securityos/node_modules/next/dist/server/web/sandbox/context.js.map

1 line
9.1 KiB
Plaintext

{"version":3,"sources":["../../../../src/server/web/sandbox/context.ts"],"names":["clearModuleContext","getModuleContext","moduleContexts","Map","pendingModuleCaches","path","handleContext","key","cache","context","paths","has","delete","loadWasm","wasm","modules","Promise","all","map","binding","module","WebAssembly","compile","fs","readFile","filePath","name","buildEnvironmentVariablesFrom","pairs","Object","keys","process","env","fromEntries","NEXT_RUNTIME","throwUnsupportedAPIError","error","Error","decorateServerError","COMPILER_NAMES","edgeServer","createProcessPolyfill","processPolyfill","overridenValue","defineProperty","get","undefined","set","value","enumerable","addStub","getDecorateUnhandledError","runtime","EdgeRuntimeError","evaluate","getDecorateUnhandledRejection","rejected","reason","NativeModuleMap","mods","pick","BufferImplementation","EventsImplementation","AsyncHooksImplementation","AssertImplementation","UtilImplementation","entries","createModuleContext","options","warnedEvals","Set","warnedWasmCodegens","edgeFunctionEntry","EdgeRuntime","codeGeneration","NODE_ENV","strings","extend","id","TypeError","__next_eval__","fn","toString","warning","getServerError","captureStackTrace","add","onWarning","__next_webassembly_compile__","__next_webassembly_instantiate__","result","instantiatedFromBuffer","hasOwnProperty","__fetch","fetch","input","init","callingError","assetResponse","fetchInlineAsset","assets","distDir","headers","Headers","prevs","split","concat","moduleName","join","response","url","String","catch","err","message","stack","__Request","Request","constructor","validateURL","next","__redirect","Response","redirect","bind","args","EDGE_UNSUPPORTED_NODE_APIS","assign","AsyncLocalStorage","decorateUnhandledError","addEventListener","decorateUnhandledRejection","getModuleContextShared","deferredModuleContext","lazyModuleContext","useCache","moduleContext","evaluateInContext","filepath","content","readFileSync","runInContext","filename"],"mappings":";;;;;;;;;;;;;;;IA+CsBA,kBAAkB;eAAlBA;;IAuXAC,gBAAgB;eAAhBA;;;6BAhaY;4BAI3B;2BAIA;6BACqB;oBACiB;uBACjB;sBACP;mCACY;oBACJ;mEACI;mEACA;mEACA;iEACF;wEACM;;;;;;AAQrC;;;;CAIC,GACD,MAAMC,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