MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isAllowedSpecifier

Function isAllowedSpecifier

apps/kimi-code/scripts/native/check-bundle.mjs:28–33  ·  view source on GitHub ↗
(specifier)

Source from the content-addressed store, hash-verified

26const handledNativeRuntimeRequires = new Set();
27
28function isAllowedSpecifier(specifier) {
29 if (builtins.has(specifier) || specifier.startsWith('node:')) return true;
30 if (optionalRuntimeRequires.has(specifier)) return true;
31 if (handledNativeRuntimeRequires.has(specifier)) return true;
32 return false;
33}
34
35const errors = [];
36

Callers 1

check-bundle.mjsFile · 0.85

Calls 1

hasMethod · 0.65

Tested by

no test coverage detected