14332 lines
731 KiB
JavaScript
14332 lines
731 KiB
JavaScript
|
#!/usr/bin/env node
|
|||
|
/* eslint-disable */
|
|||
|
|
|||
|
try {
|
|||
|
Object.freeze({}).detectStrictMode = true;
|
|||
|
} catch (error) {
|
|||
|
throw new Error(`The whole PnP file got strict-mode-ified, which is known to break (Emscripten libraries aren't strict mode). This usually happens when the file goes through Babel.`);
|
|||
|
}
|
|||
|
|
|||
|
function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
|
return hydrateRuntimeState(JSON.parse('{\
|
|||
|
"__info": [\
|
|||
|
"This file is automatically generated. Do not touch it, or risk",\
|
|||
|
"your modifications being lost. We also recommend you not to read",\
|
|||
|
"it either without using the @yarnpkg/pnp package, as the data layout",\
|
|||
|
"is entirely unspecified and WILL change from a version to another."\
|
|||
|
],\
|
|||
|
"dependencyTreeRoots": [\
|
|||
|
{\
|
|||
|
"name": "live-atlas",\
|
|||
|
"reference": "workspace:."\
|
|||
|
}\
|
|||
|
],\
|
|||
|
"enableTopLevelFallback": true,\
|
|||
|
"ignorePatternData": "(^(?:\\\\.yarn\\\\/sdks(?:\\\\/(?!\\\\.{1,2}(?:\\\\/|$))(?:(?:(?!(?:^|\\\\/)\\\\.{1,2}(?:\\\\/|$)).)*?)|$))$)",\
|
|||
|
"fallbackExclusionList": [\
|
|||
|
["live-atlas", ["workspace:."]]\
|
|||
|
],\
|
|||
|
"fallbackPool": [\
|
|||
|
],\
|
|||
|
"packageRegistryData": [\
|
|||
|
[null, [\
|
|||
|
[null, {\
|
|||
|
"packageLocation": "./",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@kyvg/vue3-notification", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#patch:@kyvg/vue3-notification@npm%3A2.3.0#patches/@kyvg+vue3-notification+2.3.0.patch::version=2.3.0&hash=c98249&locator=live-atlas%40workspace%3A."],\
|
|||
|
["@soerenmartius/vue3-clipboard", "npm:0.1.2"],\
|
|||
|
["@types/dynmap", "npm:3.1.1"],\
|
|||
|
["@types/leaflet", "npm:1.7.11"],\
|
|||
|
["@types/lodash.debounce", "npm:4.0.7"],\
|
|||
|
["@types/node", "npm:18.0.0"],\
|
|||
|
["@typescript-eslint/eslint-plugin", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:5.30.0"],\
|
|||
|
["@typescript-eslint/parser", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:5.30.0"],\
|
|||
|
["@vitejs/plugin-vue", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:2.3.3"],\
|
|||
|
["@vue/compiler-sfc", "npm:3.2.37"],\
|
|||
|
["@vue/eslint-config-typescript", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:10.0.0"],\
|
|||
|
["@vue/reactivity", "npm:3.2.37"],\
|
|||
|
["@vue/runtime-core", "npm:3.2.37"],\
|
|||
|
["@vue/test-utils", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:2.0.0"],\
|
|||
|
["c8", "npm:7.11.3"],\
|
|||
|
["cpy-cli", "npm:4.1.0"],\
|
|||
|
["eslint", "npm:8.18.0"],\
|
|||
|
["eslint-plugin-vue", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:8.7.1"],\
|
|||
|
["leaflet", "https://github.com/JLyne/Leaflet.git#commit=843eb3124492dc48245cd187c6dc94c2f33b65c1"],\
|
|||
|
["lodash.debounce", "npm:4.0.8"],\
|
|||
|
["modern-normalize", "patch:modern-normalize@npm%3A1.1.0#patches/modern-normalize+1.1.0.patch::version=1.1.0&hash=0cce26&locator=live-atlas%40workspace%3A."],\
|
|||
|
["rimraf", "npm:3.0.2"],\
|
|||
|
["rollup-plugin-analyzer", "npm:4.0.0"],\
|
|||
|
["sass", "npm:1.53.0"],\
|
|||
|
["ts-node", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:10.8.1"],\
|
|||
|
["typescript", "patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=7ad353"],\
|
|||
|
["vite", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:2.9.12"],\
|
|||
|
["vite-plugin-svg-sprite-component", "npm:1.0.10"],\
|
|||
|
["vitest", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:0.15.2"],\
|
|||
|
["vue", "npm:3.2.37"],\
|
|||
|
["vue-tsc", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:0.37.9"],\
|
|||
|
["vuex", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:4.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@babel/code-frame", [\
|
|||
|
["npm:7.18.6", {\
|
|||
|
"packageLocation": "./.yarn/cache/@babel-code-frame-npm-7.18.6-25229a7e34-195e2be317.zip/node_modules/@babel/code-frame/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@babel/code-frame", "npm:7.18.6"],\
|
|||
|
["@babel/highlight", "npm:7.18.6"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@babel/helper-validator-identifier", [\
|
|||
|
["npm:7.18.6", {\
|
|||
|
"packageLocation": "./.yarn/cache/@babel-helper-validator-identifier-npm-7.18.6-357e4653ab-e295254d61.zip/node_modules/@babel/helper-validator-identifier/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@babel/helper-validator-identifier", "npm:7.18.6"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@babel/highlight", [\
|
|||
|
["npm:7.18.6", {\
|
|||
|
"packageLocation": "./.yarn/cache/@babel-highlight-npm-7.18.6-9d35ad2e27-92d8ee6154.zip/node_modules/@babel/highlight/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@babel/highlight", "npm:7.18.6"],\
|
|||
|
["@babel/helper-validator-identifier", "npm:7.18.6"],\
|
|||
|
["chalk", "npm:2.4.2"],\
|
|||
|
["js-tokens", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@babel/parser", [\
|
|||
|
["npm:7.18.6", {\
|
|||
|
"packageLocation": "./.yarn/cache/@babel-parser-npm-7.18.6-f3f50dbfca-533ffc2666.zip/node_modules/@babel/parser/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@babel/parser", "npm:7.18.6"],\
|
|||
|
["@babel/types", "npm:7.18.8"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@babel/types", [\
|
|||
|
["npm:7.18.8", {\
|
|||
|
"packageLocation": "./.yarn/cache/@babel-types-npm-7.18.8-55c9582d81-a485531faa.zip/node_modules/@babel/types/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@babel/types", "npm:7.18.8"],\
|
|||
|
["@babel/helper-validator-identifier", "npm:7.18.6"],\
|
|||
|
["to-fast-properties", "npm:2.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@bcoe/v8-coverage", [\
|
|||
|
["npm:0.2.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/@bcoe-v8-coverage-npm-0.2.3-9e27b3c57e-850f930553.zip/node_modules/@bcoe/v8-coverage/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@bcoe/v8-coverage", "npm:0.2.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@cspotcode/source-map-support", [\
|
|||
|
["npm:0.8.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/@cspotcode-source-map-support-npm-0.8.1-964f2de99d-5718f26708.zip/node_modules/@cspotcode/source-map-support/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@cspotcode/source-map-support", "npm:0.8.1"],\
|
|||
|
["@jridgewell/trace-mapping", "npm:0.3.9"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@eslint/eslintrc", [\
|
|||
|
["npm:1.3.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/@eslint-eslintrc-npm-1.3.0-1f3c51be25-a1e734ad31.zip/node_modules/@eslint/eslintrc/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@eslint/eslintrc", "npm:1.3.0"],\
|
|||
|
["ajv", "npm:6.12.6"],\
|
|||
|
["debug", "virtual:1f3c51be25fef20e854261431be23d317093b3b463e81e911f4f45a636ff582620db066c9d2a5922a428e07e10fe4788eee8196c796ce2c9bd49d22743fec207#npm:4.3.4"],\
|
|||
|
["espree", "npm:9.3.2"],\
|
|||
|
["globals", "npm:13.15.0"],\
|
|||
|
["ignore", "npm:5.2.0"],\
|
|||
|
["import-fresh", "npm:3.3.0"],\
|
|||
|
["js-yaml", "npm:4.1.0"],\
|
|||
|
["minimatch", "npm:3.1.2"],\
|
|||
|
["strip-json-comments", "npm:3.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@gar/promisify", [\
|
|||
|
["npm:1.1.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/@gar-promisify-npm-1.1.3-ac1a325862-4059f790e2.zip/node_modules/@gar/promisify/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@gar/promisify", "npm:1.1.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@humanwhocodes/config-array", [\
|
|||
|
["npm:0.9.5", {\
|
|||
|
"packageLocation": "./.yarn/cache/@humanwhocodes-config-array-npm-0.9.5-030a025eae-8ba6281bc0.zip/node_modules/@humanwhocodes/config-array/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@humanwhocodes/config-array", "npm:0.9.5"],\
|
|||
|
["@humanwhocodes/object-schema", "npm:1.2.1"],\
|
|||
|
["debug", "virtual:1f3c51be25fef20e854261431be23d317093b3b463e81e911f4f45a636ff582620db066c9d2a5922a428e07e10fe4788eee8196c796ce2c9bd49d22743fec207#npm:4.3.4"],\
|
|||
|
["minimatch", "npm:3.1.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@humanwhocodes/object-schema", [\
|
|||
|
["npm:1.2.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/@humanwhocodes-object-schema-npm-1.2.1-eb622b5d0e-a824a1ec31.zip/node_modules/@humanwhocodes/object-schema/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@humanwhocodes/object-schema", "npm:1.2.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@istanbuljs/schema", [\
|
|||
|
["npm:0.1.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/@istanbuljs-schema-npm-0.1.3-466bd3eaaa-5282759d96.zip/node_modules/@istanbuljs/schema/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@istanbuljs/schema", "npm:0.1.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@jridgewell/resolve-uri", [\
|
|||
|
["npm:3.0.8", {\
|
|||
|
"packageLocation": "./.yarn/cache/@jridgewell-resolve-uri-npm-3.0.8-94779c6a1d-28d739f49b.zip/node_modules/@jridgewell/resolve-uri/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@jridgewell/resolve-uri", "npm:3.0.8"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@jridgewell/sourcemap-codec", [\
|
|||
|
["npm:1.4.14", {\
|
|||
|
"packageLocation": "./.yarn/cache/@jridgewell-sourcemap-codec-npm-1.4.14-f5f0630788-61100637b6.zip/node_modules/@jridgewell/sourcemap-codec/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@jridgewell/sourcemap-codec", "npm:1.4.14"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@jridgewell/trace-mapping", [\
|
|||
|
["npm:0.3.14", {\
|
|||
|
"packageLocation": "./.yarn/cache/@jridgewell-trace-mapping-npm-0.3.14-c78fcccfdf-b9537b9630.zip/node_modules/@jridgewell/trace-mapping/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@jridgewell/trace-mapping", "npm:0.3.14"],\
|
|||
|
["@jridgewell/resolve-uri", "npm:3.0.8"],\
|
|||
|
["@jridgewell/sourcemap-codec", "npm:1.4.14"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:0.3.9", {\
|
|||
|
"packageLocation": "./.yarn/cache/@jridgewell-trace-mapping-npm-0.3.9-91625cd7fb-d89597752f.zip/node_modules/@jridgewell/trace-mapping/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@jridgewell/trace-mapping", "npm:0.3.9"],\
|
|||
|
["@jridgewell/resolve-uri", "npm:3.0.8"],\
|
|||
|
["@jridgewell/sourcemap-codec", "npm:1.4.14"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@kyvg/vue3-notification", [\
|
|||
|
["patch:@kyvg/vue3-notification@npm%3A2.3.0#patches/@kyvg+vue3-notification+2.3.0.patch::version=2.3.0&hash=c98249&locator=live-atlas%40workspace%3A.", {\
|
|||
|
"packageLocation": "./.yarn/cache/@kyvg-vue3-notification-patch-5b8017c566-1c2889cb03.zip/node_modules/@kyvg/vue3-notification/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@kyvg/vue3-notification", "patch:@kyvg/vue3-notification@npm%3A2.3.0#patches/@kyvg+vue3-notification+2.3.0.patch::version=2.3.0&hash=c98249&locator=live-atlas%40workspace%3A."]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#patch:@kyvg/vue3-notification@npm%3A2.3.0#patches/@kyvg+vue3-notification+2.3.0.patch::version=2.3.0&hash=c98249&locator=live-atlas%40workspace%3A.", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/@kyvg-vue3-notification-virtual-4d623f2f99/0/cache/@kyvg-vue3-notification-patch-5b8017c566-1c2889cb03.zip/node_modules/@kyvg/vue3-notification/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@kyvg/vue3-notification", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#patch:@kyvg/vue3-notification@npm%3A2.3.0#patches/@kyvg+vue3-notification+2.3.0.patch::version=2.3.0&hash=c98249&locator=live-atlas%40workspace%3A."],\
|
|||
|
["@types/vue", null],\
|
|||
|
["vue", "npm:3.2.37"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/vue",\
|
|||
|
"vue"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@nodelib/fs.scandir", [\
|
|||
|
["npm:2.1.5", {\
|
|||
|
"packageLocation": "./.yarn/cache/@nodelib-fs.scandir-npm-2.1.5-89c67370dd-a970d595bd.zip/node_modules/@nodelib/fs.scandir/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@nodelib/fs.scandir", "npm:2.1.5"],\
|
|||
|
["@nodelib/fs.stat", "npm:2.0.5"],\
|
|||
|
["run-parallel", "npm:1.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@nodelib/fs.stat", [\
|
|||
|
["npm:2.0.5", {\
|
|||
|
"packageLocation": "./.yarn/cache/@nodelib-fs.stat-npm-2.0.5-01f4dd3030-012480b5ca.zip/node_modules/@nodelib/fs.stat/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@nodelib/fs.stat", "npm:2.0.5"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@nodelib/fs.walk", [\
|
|||
|
["npm:1.2.8", {\
|
|||
|
"packageLocation": "./.yarn/cache/@nodelib-fs.walk-npm-1.2.8-b4a89da548-190c643f15.zip/node_modules/@nodelib/fs.walk/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@nodelib/fs.walk", "npm:1.2.8"],\
|
|||
|
["@nodelib/fs.scandir", "npm:2.1.5"],\
|
|||
|
["fastq", "npm:1.13.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@npmcli/fs", [\
|
|||
|
["npm:2.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/@npmcli-fs-npm-2.1.0-3b106d08bc-6ec6d678af.zip/node_modules/@npmcli/fs/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@npmcli/fs", "npm:2.1.0"],\
|
|||
|
["@gar/promisify", "npm:1.1.3"],\
|
|||
|
["semver", "npm:7.3.7"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@npmcli/move-file", [\
|
|||
|
["npm:2.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/@npmcli-move-file-npm-2.0.0-d8bd1d35d2-1388777b50.zip/node_modules/@npmcli/move-file/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@npmcli/move-file", "npm:2.0.0"],\
|
|||
|
["mkdirp", "npm:1.0.4"],\
|
|||
|
["rimraf", "npm:3.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@soerenmartius/vue3-clipboard", [\
|
|||
|
["npm:0.1.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/@soerenmartius-vue3-clipboard-npm-0.1.2-54932362bd-044f0c7a77.zip/node_modules/@soerenmartius/vue3-clipboard/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@soerenmartius/vue3-clipboard", "npm:0.1.2"],\
|
|||
|
["clipboard", "npm:2.0.11"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@tootallnate/once", [\
|
|||
|
["npm:2.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/@tootallnate-once-npm-2.0.0-e36cf4f140-ad87447820.zip/node_modules/@tootallnate/once/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@tootallnate/once", "npm:2.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@tsconfig/node10", [\
|
|||
|
["npm:1.0.9", {\
|
|||
|
"packageLocation": "./.yarn/cache/@tsconfig-node10-npm-1.0.9-f2e2d20feb-a33ae4dc2a.zip/node_modules/@tsconfig/node10/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@tsconfig/node10", "npm:1.0.9"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@tsconfig/node12", [\
|
|||
|
["npm:1.0.11", {\
|
|||
|
"packageLocation": "./.yarn/cache/@tsconfig-node12-npm-1.0.11-9710d1c61b-5ce29a41b1.zip/node_modules/@tsconfig/node12/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@tsconfig/node12", "npm:1.0.11"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@tsconfig/node14", [\
|
|||
|
["npm:1.0.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/@tsconfig-node14-npm-1.0.3-15321421d2-19275fe80c.zip/node_modules/@tsconfig/node14/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@tsconfig/node14", "npm:1.0.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@tsconfig/node16", [\
|
|||
|
["npm:1.0.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/@tsconfig-node16-npm-1.0.3-6a4a30eda2-3a8b657dd0.zip/node_modules/@tsconfig/node16/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@tsconfig/node16", "npm:1.0.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@types/chai", [\
|
|||
|
["npm:4.3.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/@types-chai-npm-4.3.1-dab3901c30-2ee246b76c.zip/node_modules/@types/chai/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@types/chai", "npm:4.3.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@types/chai-subset", [\
|
|||
|
["npm:1.3.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/@types-chai-subset-npm-1.3.3-acf55b3b37-4481da7345.zip/node_modules/@types/chai-subset/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@types/chai-subset", "npm:1.3.3"],\
|
|||
|
["@types/chai", "npm:4.3.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@types/dynmap", [\
|
|||
|
["npm:3.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/@types-dynmap-npm-3.1.1-8f2ae226ae-6d01ff237c.zip/node_modules/@types/dynmap/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@types/dynmap", "npm:3.1.1"],\
|
|||
|
["@types/jquery", "npm:3.5.14"],\
|
|||
|
["@types/jquery-mousewheel", "npm:3.1.9"],\
|
|||
|
["@types/leaflet", "npm:1.7.11"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@types/geojson", [\
|
|||
|
["npm:7946.0.8", {\
|
|||
|
"packageLocation": "./.yarn/cache/@types-geojson-npm-7946.0.8-df9187edab-6049a39b02.zip/node_modules/@types/geojson/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@types/geojson", "npm:7946.0.8"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@types/istanbul-lib-coverage", [\
|
|||
|
["npm:2.0.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/@types-istanbul-lib-coverage-npm-2.0.4-734954bb56-a25d7589ee.zip/node_modules/@types/istanbul-lib-coverage/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@types/istanbul-lib-coverage", "npm:2.0.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@types/jquery", [\
|
|||
|
["npm:3.5.14", {\
|
|||
|
"packageLocation": "./.yarn/cache/@types-jquery-npm-3.5.14-5fafe75fbb-159d6f804e.zip/node_modules/@types/jquery/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@types/jquery", "npm:3.5.14"],\
|
|||
|
["@types/sizzle", "npm:2.3.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@types/jquery-mousewheel", [\
|
|||
|
["npm:3.1.9", {\
|
|||
|
"packageLocation": "./.yarn/cache/@types-jquery-mousewheel-npm-3.1.9-7a513e09fc-a5c4ba2632.zip/node_modules/@types/jquery-mousewheel/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@types/jquery-mousewheel", "npm:3.1.9"],\
|
|||
|
["@types/jquery", "npm:3.5.14"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@types/json-schema", [\
|
|||
|
["npm:7.0.11", {\
|
|||
|
"packageLocation": "./.yarn/cache/@types-json-schema-npm-7.0.11-79462ae5ca-527bddfe62.zip/node_modules/@types/json-schema/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@types/json-schema", "npm:7.0.11"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@types/leaflet", [\
|
|||
|
["npm:1.7.11", {\
|
|||
|
"packageLocation": "./.yarn/cache/@types-leaflet-npm-1.7.11-cd0facb4a2-6613dbc91f.zip/node_modules/@types/leaflet/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@types/leaflet", "npm:1.7.11"],\
|
|||
|
["@types/geojson", "npm:7946.0.8"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@types/lodash", [\
|
|||
|
["npm:4.14.182", {\
|
|||
|
"packageLocation": "./.yarn/cache/@types-lodash-npm-4.14.182-1073aac722-7dd137aa9d.zip/node_modules/@types/lodash/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@types/lodash", "npm:4.14.182"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@types/lodash.debounce", [\
|
|||
|
["npm:4.0.7", {\
|
|||
|
"packageLocation": "./.yarn/cache/@types-lodash.debounce-npm-4.0.7-efe92bf273-e873b2d77f.zip/node_modules/@types/lodash.debounce/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@types/lodash.debounce", "npm:4.0.7"],\
|
|||
|
["@types/lodash", "npm:4.14.182"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@types/minimist", [\
|
|||
|
["npm:1.2.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/@types-minimist-npm-1.2.2-a445de65da-b8da83c66e.zip/node_modules/@types/minimist/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@types/minimist", "npm:1.2.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@types/node", [\
|
|||
|
["npm:18.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/@types-node-npm-18.0.0-c8497066c5-aab2b32572.zip/node_modules/@types/node/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@types/node", "npm:18.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@types/normalize-package-data", [\
|
|||
|
["npm:2.4.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/@types-normalize-package-data-npm-2.4.1-c31c56ae6a-e87bccbf11.zip/node_modules/@types/normalize-package-data/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@types/normalize-package-data", "npm:2.4.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@types/sizzle", [\
|
|||
|
["npm:2.3.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/@types-sizzle-npm-2.3.3-9403924950-586a9fb1f6.zip/node_modules/@types/sizzle/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@types/sizzle", "npm:2.3.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@typescript-eslint/eslint-plugin", [\
|
|||
|
["npm:5.30.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/@typescript-eslint-eslint-plugin-npm-5.30.0-c72e6ffad8-f2fe96082c.zip/node_modules/@typescript-eslint/eslint-plugin/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@typescript-eslint/eslint-plugin", "npm:5.30.0"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:5.30.0", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/@typescript-eslint-eslint-plugin-virtual-207df49e2c/0/cache/@typescript-eslint-eslint-plugin-npm-5.30.0-c72e6ffad8-f2fe96082c.zip/node_modules/@typescript-eslint/eslint-plugin/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@typescript-eslint/eslint-plugin", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:5.30.0"],\
|
|||
|
["@types/eslint", null],\
|
|||
|
["@types/typescript", null],\
|
|||
|
["@types/typescript-eslint__parser", null],\
|
|||
|
["@typescript-eslint/parser", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:5.30.0"],\
|
|||
|
["@typescript-eslint/scope-manager", "npm:5.30.0"],\
|
|||
|
["@typescript-eslint/type-utils", "virtual:207df49e2c7c5c1f8f4bb49fffbe750ded7fdf837b8db565ba256c3342fbd2211fbbe16c672c01156ee51f17bd351ea390f17e479d78f2e75562b4da3cafe666#npm:5.30.0"],\
|
|||
|
["@typescript-eslint/utils", "virtual:207df49e2c7c5c1f8f4bb49fffbe750ded7fdf837b8db565ba256c3342fbd2211fbbe16c672c01156ee51f17bd351ea390f17e479d78f2e75562b4da3cafe666#npm:5.30.0"],\
|
|||
|
["debug", "virtual:1f3c51be25fef20e854261431be23d317093b3b463e81e911f4f45a636ff582620db066c9d2a5922a428e07e10fe4788eee8196c796ce2c9bd49d22743fec207#npm:4.3.4"],\
|
|||
|
["eslint", "npm:8.18.0"],\
|
|||
|
["functional-red-black-tree", "npm:1.0.1"],\
|
|||
|
["ignore", "npm:5.2.0"],\
|
|||
|
["regexpp", "npm:3.2.0"],\
|
|||
|
["semver", "npm:7.3.7"],\
|
|||
|
["tsutils", "virtual:207df49e2c7c5c1f8f4bb49fffbe750ded7fdf837b8db565ba256c3342fbd2211fbbe16c672c01156ee51f17bd351ea390f17e479d78f2e75562b4da3cafe666#npm:3.21.0"],\
|
|||
|
["typescript", "patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=7ad353"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/eslint",\
|
|||
|
"@types/typescript-eslint__parser",\
|
|||
|
"@types/typescript",\
|
|||
|
"@typescript-eslint/parser",\
|
|||
|
"eslint",\
|
|||
|
"typescript"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@typescript-eslint/parser", [\
|
|||
|
["npm:5.30.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/@typescript-eslint-parser-npm-5.30.0-02dd191940-7067ba4ede.zip/node_modules/@typescript-eslint/parser/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@typescript-eslint/parser", "npm:5.30.0"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:5.30.0", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/@typescript-eslint-parser-virtual-1109454a5b/0/cache/@typescript-eslint-parser-npm-5.30.0-02dd191940-7067ba4ede.zip/node_modules/@typescript-eslint/parser/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@typescript-eslint/parser", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:5.30.0"],\
|
|||
|
["@types/eslint", null],\
|
|||
|
["@types/typescript", null],\
|
|||
|
["@typescript-eslint/scope-manager", "npm:5.30.0"],\
|
|||
|
["@typescript-eslint/types", "npm:5.30.0"],\
|
|||
|
["@typescript-eslint/typescript-estree", "virtual:1109454a5b5c1cb559d4644f915244f06e02d2a92a443eb9fd819a2aab926ab57da67f31c98477a5bf2eea1436e903ad16cc993265826fc6446c6c070f53ec02#npm:5.30.0"],\
|
|||
|
["debug", "virtual:1f3c51be25fef20e854261431be23d317093b3b463e81e911f4f45a636ff582620db066c9d2a5922a428e07e10fe4788eee8196c796ce2c9bd49d22743fec207#npm:4.3.4"],\
|
|||
|
["eslint", "npm:8.18.0"],\
|
|||
|
["typescript", "patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=7ad353"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/eslint",\
|
|||
|
"@types/typescript",\
|
|||
|
"eslint",\
|
|||
|
"typescript"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@typescript-eslint/scope-manager", [\
|
|||
|
["npm:5.30.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/@typescript-eslint-scope-manager-npm-5.30.0-53c13117cb-51246d0f6c.zip/node_modules/@typescript-eslint/scope-manager/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@typescript-eslint/scope-manager", "npm:5.30.0"],\
|
|||
|
["@typescript-eslint/types", "npm:5.30.0"],\
|
|||
|
["@typescript-eslint/visitor-keys", "npm:5.30.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@typescript-eslint/type-utils", [\
|
|||
|
["npm:5.30.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/@typescript-eslint-type-utils-npm-5.30.0-de31c989eb-6185117638.zip/node_modules/@typescript-eslint/type-utils/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@typescript-eslint/type-utils", "npm:5.30.0"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:207df49e2c7c5c1f8f4bb49fffbe750ded7fdf837b8db565ba256c3342fbd2211fbbe16c672c01156ee51f17bd351ea390f17e479d78f2e75562b4da3cafe666#npm:5.30.0", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/@typescript-eslint-type-utils-virtual-7d7e461515/0/cache/@typescript-eslint-type-utils-npm-5.30.0-de31c989eb-6185117638.zip/node_modules/@typescript-eslint/type-utils/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@typescript-eslint/type-utils", "virtual:207df49e2c7c5c1f8f4bb49fffbe750ded7fdf837b8db565ba256c3342fbd2211fbbe16c672c01156ee51f17bd351ea390f17e479d78f2e75562b4da3cafe666#npm:5.30.0"],\
|
|||
|
["@types/eslint", null],\
|
|||
|
["@types/typescript", null],\
|
|||
|
["@typescript-eslint/utils", "virtual:207df49e2c7c5c1f8f4bb49fffbe750ded7fdf837b8db565ba256c3342fbd2211fbbe16c672c01156ee51f17bd351ea390f17e479d78f2e75562b4da3cafe666#npm:5.30.0"],\
|
|||
|
["debug", "virtual:1f3c51be25fef20e854261431be23d317093b3b463e81e911f4f45a636ff582620db066c9d2a5922a428e07e10fe4788eee8196c796ce2c9bd49d22743fec207#npm:4.3.4"],\
|
|||
|
["eslint", "npm:8.18.0"],\
|
|||
|
["tsutils", "virtual:207df49e2c7c5c1f8f4bb49fffbe750ded7fdf837b8db565ba256c3342fbd2211fbbe16c672c01156ee51f17bd351ea390f17e479d78f2e75562b4da3cafe666#npm:3.21.0"],\
|
|||
|
["typescript", "patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=7ad353"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/eslint",\
|
|||
|
"@types/typescript",\
|
|||
|
"eslint",\
|
|||
|
"typescript"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@typescript-eslint/types", [\
|
|||
|
["npm:5.30.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/@typescript-eslint-types-npm-5.30.0-1829c252da-f83a506880.zip/node_modules/@typescript-eslint/types/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@typescript-eslint/types", "npm:5.30.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@typescript-eslint/typescript-estree", [\
|
|||
|
["npm:5.30.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/@typescript-eslint-typescript-estree-npm-5.30.0-7d89cc3db4-cf8caea435.zip/node_modules/@typescript-eslint/typescript-estree/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@typescript-eslint/typescript-estree", "npm:5.30.0"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:1109454a5b5c1cb559d4644f915244f06e02d2a92a443eb9fd819a2aab926ab57da67f31c98477a5bf2eea1436e903ad16cc993265826fc6446c6c070f53ec02#npm:5.30.0", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/@typescript-eslint-typescript-estree-virtual-f58ee1e12a/0/cache/@typescript-eslint-typescript-estree-npm-5.30.0-7d89cc3db4-cf8caea435.zip/node_modules/@typescript-eslint/typescript-estree/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@typescript-eslint/typescript-estree", "virtual:1109454a5b5c1cb559d4644f915244f06e02d2a92a443eb9fd819a2aab926ab57da67f31c98477a5bf2eea1436e903ad16cc993265826fc6446c6c070f53ec02#npm:5.30.0"],\
|
|||
|
["@types/typescript", null],\
|
|||
|
["@typescript-eslint/types", "npm:5.30.0"],\
|
|||
|
["@typescript-eslint/visitor-keys", "npm:5.30.0"],\
|
|||
|
["debug", "virtual:1f3c51be25fef20e854261431be23d317093b3b463e81e911f4f45a636ff582620db066c9d2a5922a428e07e10fe4788eee8196c796ce2c9bd49d22743fec207#npm:4.3.4"],\
|
|||
|
["globby", "npm:11.1.0"],\
|
|||
|
["is-glob", "npm:4.0.3"],\
|
|||
|
["semver", "npm:7.3.7"],\
|
|||
|
["tsutils", "virtual:207df49e2c7c5c1f8f4bb49fffbe750ded7fdf837b8db565ba256c3342fbd2211fbbe16c672c01156ee51f17bd351ea390f17e479d78f2e75562b4da3cafe666#npm:3.21.0"],\
|
|||
|
["typescript", "patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=7ad353"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/typescript",\
|
|||
|
"typescript"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["virtual:1e147193141a13c1df6c3ef77dd143b1e0bc5ea00d77fe269dac540e5224dddd4c906dd6ad9ba9f179671c24b34606b855b6bd906335d1c109166f788bdfe944#npm:5.30.0", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/@typescript-eslint-typescript-estree-virtual-7aabd768ca/0/cache/@typescript-eslint-typescript-estree-npm-5.30.0-7d89cc3db4-cf8caea435.zip/node_modules/@typescript-eslint/typescript-estree/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@typescript-eslint/typescript-estree", "virtual:1e147193141a13c1df6c3ef77dd143b1e0bc5ea00d77fe269dac540e5224dddd4c906dd6ad9ba9f179671c24b34606b855b6bd906335d1c109166f788bdfe944#npm:5.30.0"],\
|
|||
|
["@types/typescript", null],\
|
|||
|
["@typescript-eslint/types", "npm:5.30.0"],\
|
|||
|
["@typescript-eslint/visitor-keys", "npm:5.30.0"],\
|
|||
|
["debug", "virtual:1f3c51be25fef20e854261431be23d317093b3b463e81e911f4f45a636ff582620db066c9d2a5922a428e07e10fe4788eee8196c796ce2c9bd49d22743fec207#npm:4.3.4"],\
|
|||
|
["globby", "npm:11.1.0"],\
|
|||
|
["is-glob", "npm:4.0.3"],\
|
|||
|
["semver", "npm:7.3.7"],\
|
|||
|
["tsutils", "virtual:7aabd768ca17d614d349c06d1e63af4544eba2c591f6b6d6d91674798050a6a67a1e8511567728107ac3cb922dab565ed36d29d5cfe00259999aef281f45dd2a#npm:3.21.0"],\
|
|||
|
["typescript", null]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/typescript",\
|
|||
|
"typescript"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@typescript-eslint/utils", [\
|
|||
|
["npm:5.30.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/@typescript-eslint-utils-npm-5.30.0-6128c1c85a-176eda4629.zip/node_modules/@typescript-eslint/utils/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@typescript-eslint/utils", "npm:5.30.0"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:207df49e2c7c5c1f8f4bb49fffbe750ded7fdf837b8db565ba256c3342fbd2211fbbe16c672c01156ee51f17bd351ea390f17e479d78f2e75562b4da3cafe666#npm:5.30.0", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/@typescript-eslint-utils-virtual-1e14719314/0/cache/@typescript-eslint-utils-npm-5.30.0-6128c1c85a-176eda4629.zip/node_modules/@typescript-eslint/utils/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@typescript-eslint/utils", "virtual:207df49e2c7c5c1f8f4bb49fffbe750ded7fdf837b8db565ba256c3342fbd2211fbbe16c672c01156ee51f17bd351ea390f17e479d78f2e75562b4da3cafe666#npm:5.30.0"],\
|
|||
|
["@types/eslint", null],\
|
|||
|
["@types/json-schema", "npm:7.0.11"],\
|
|||
|
["@typescript-eslint/scope-manager", "npm:5.30.0"],\
|
|||
|
["@typescript-eslint/types", "npm:5.30.0"],\
|
|||
|
["@typescript-eslint/typescript-estree", "virtual:1e147193141a13c1df6c3ef77dd143b1e0bc5ea00d77fe269dac540e5224dddd4c906dd6ad9ba9f179671c24b34606b855b6bd906335d1c109166f788bdfe944#npm:5.30.0"],\
|
|||
|
["eslint", "npm:8.18.0"],\
|
|||
|
["eslint-scope", "npm:5.1.1"],\
|
|||
|
["eslint-utils", "virtual:3b3bfb190f25ed01591b1d51c8e6a15e818ab97d9cabea5c63912afc819a8f6e3ad395aaf338cd170314411b04e35eec5c8cff33dfa644476d292dcf2c5354d1#npm:3.0.0"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/eslint",\
|
|||
|
"eslint"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@typescript-eslint/visitor-keys", [\
|
|||
|
["npm:5.30.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/@typescript-eslint-visitor-keys-npm-5.30.0-1edc3a593e-bf2219cbb9.zip/node_modules/@typescript-eslint/visitor-keys/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@typescript-eslint/visitor-keys", "npm:5.30.0"],\
|
|||
|
["@typescript-eslint/types", "npm:5.30.0"],\
|
|||
|
["eslint-visitor-keys", "npm:3.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@vitejs/plugin-vue", [\
|
|||
|
["npm:2.3.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/@vitejs-plugin-vue-npm-2.3.3-89ac1da9f4-9303dcb9c8.zip/node_modules/@vitejs/plugin-vue/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vitejs/plugin-vue", "npm:2.3.3"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:2.3.3", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/@vitejs-plugin-vue-virtual-43f9dd1bd1/0/cache/@vitejs-plugin-vue-npm-2.3.3-89ac1da9f4-9303dcb9c8.zip/node_modules/@vitejs/plugin-vue/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vitejs/plugin-vue", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:2.3.3"],\
|
|||
|
["@types/vite", null],\
|
|||
|
["@types/vue", null],\
|
|||
|
["vite", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:2.9.12"],\
|
|||
|
["vue", "npm:3.2.37"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/vite",\
|
|||
|
"@types/vue",\
|
|||
|
"vite",\
|
|||
|
"vue"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@volar/code-gen", [\
|
|||
|
["npm:0.37.9", {\
|
|||
|
"packageLocation": "./.yarn/cache/@volar-code-gen-npm-0.37.9-c1cdfcc189-38dc255b17.zip/node_modules/@volar/code-gen/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@volar/code-gen", "npm:0.37.9"],\
|
|||
|
["@volar/source-map", "npm:0.37.9"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@volar/source-map", [\
|
|||
|
["npm:0.37.9", {\
|
|||
|
"packageLocation": "./.yarn/cache/@volar-source-map-npm-0.37.9-0c65d7e61c-c4dd5f30cf.zip/node_modules/@volar/source-map/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@volar/source-map", "npm:0.37.9"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@volar/vue-code-gen", [\
|
|||
|
["npm:0.37.9", {\
|
|||
|
"packageLocation": "./.yarn/cache/@volar-vue-code-gen-npm-0.37.9-a6dd4b24cd-c3ef79b0b2.zip/node_modules/@volar/vue-code-gen/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@volar/vue-code-gen", "npm:0.37.9"],\
|
|||
|
["@volar/code-gen", "npm:0.37.9"],\
|
|||
|
["@volar/source-map", "npm:0.37.9"],\
|
|||
|
["@vue/compiler-core", "npm:3.2.37"],\
|
|||
|
["@vue/compiler-dom", "npm:3.2.37"],\
|
|||
|
["@vue/shared", "npm:3.2.37"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@volar/vue-typescript", [\
|
|||
|
["npm:0.37.9", {\
|
|||
|
"packageLocation": "./.yarn/cache/@volar-vue-typescript-npm-0.37.9-1ede5cea67-dc33ace5ed.zip/node_modules/@volar/vue-typescript/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@volar/vue-typescript", "npm:0.37.9"],\
|
|||
|
["@volar/code-gen", "npm:0.37.9"],\
|
|||
|
["@volar/source-map", "npm:0.37.9"],\
|
|||
|
["@volar/vue-code-gen", "npm:0.37.9"],\
|
|||
|
["@vue/compiler-sfc", "npm:3.2.37"],\
|
|||
|
["@vue/reactivity", "npm:3.2.37"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@vue/compiler-core", [\
|
|||
|
["npm:3.2.37", {\
|
|||
|
"packageLocation": "./.yarn/cache/@vue-compiler-core-npm-3.2.37-1ed1423427-5642e20813.zip/node_modules/@vue/compiler-core/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vue/compiler-core", "npm:3.2.37"],\
|
|||
|
["@babel/parser", "npm:7.18.6"],\
|
|||
|
["@vue/shared", "npm:3.2.37"],\
|
|||
|
["estree-walker", "npm:2.0.2"],\
|
|||
|
["source-map", "npm:0.6.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@vue/compiler-dom", [\
|
|||
|
["npm:3.2.37", {\
|
|||
|
"packageLocation": "./.yarn/cache/@vue-compiler-dom-npm-3.2.37-b8cfefaa49-6cfa9d2ee1.zip/node_modules/@vue/compiler-dom/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vue/compiler-dom", "npm:3.2.37"],\
|
|||
|
["@vue/compiler-core", "npm:3.2.37"],\
|
|||
|
["@vue/shared", "npm:3.2.37"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@vue/compiler-sfc", [\
|
|||
|
["npm:3.2.37", {\
|
|||
|
"packageLocation": "./.yarn/cache/@vue-compiler-sfc-npm-3.2.37-a6956912bb-9f9067d79f.zip/node_modules/@vue/compiler-sfc/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vue/compiler-sfc", "npm:3.2.37"],\
|
|||
|
["@babel/parser", "npm:7.18.6"],\
|
|||
|
["@vue/compiler-core", "npm:3.2.37"],\
|
|||
|
["@vue/compiler-dom", "npm:3.2.37"],\
|
|||
|
["@vue/compiler-ssr", "npm:3.2.37"],\
|
|||
|
["@vue/reactivity-transform", "npm:3.2.37"],\
|
|||
|
["@vue/shared", "npm:3.2.37"],\
|
|||
|
["estree-walker", "npm:2.0.2"],\
|
|||
|
["magic-string", "npm:0.25.9"],\
|
|||
|
["postcss", "npm:8.4.14"],\
|
|||
|
["source-map", "npm:0.6.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@vue/compiler-ssr", [\
|
|||
|
["npm:3.2.37", {\
|
|||
|
"packageLocation": "./.yarn/cache/@vue-compiler-ssr-npm-3.2.37-30882c5f14-e137462340.zip/node_modules/@vue/compiler-ssr/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vue/compiler-ssr", "npm:3.2.37"],\
|
|||
|
["@vue/compiler-dom", "npm:3.2.37"],\
|
|||
|
["@vue/shared", "npm:3.2.37"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@vue/devtools-api", [\
|
|||
|
["npm:6.1.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/@vue-devtools-api-npm-6.1.4-4ee2c9cc71-027bb138b0.zip/node_modules/@vue/devtools-api/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vue/devtools-api", "npm:6.1.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@vue/eslint-config-typescript", [\
|
|||
|
["npm:10.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/@vue-eslint-config-typescript-npm-10.0.0-28769ec1e6-8af585db57.zip/node_modules/@vue/eslint-config-typescript/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vue/eslint-config-typescript", "npm:10.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:10.0.0", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/@vue-eslint-config-typescript-virtual-9bd4bcf4da/0/cache/@vue-eslint-config-typescript-npm-10.0.0-28769ec1e6-8af585db57.zip/node_modules/@vue/eslint-config-typescript/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vue/eslint-config-typescript", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:10.0.0"],\
|
|||
|
["@types/eslint", null],\
|
|||
|
["@types/eslint-plugin-vue", null],\
|
|||
|
["@types/typescript", null],\
|
|||
|
["@typescript-eslint/eslint-plugin", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:5.30.0"],\
|
|||
|
["@typescript-eslint/parser", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:5.30.0"],\
|
|||
|
["eslint", "npm:8.18.0"],\
|
|||
|
["eslint-plugin-vue", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:8.7.1"],\
|
|||
|
["typescript", "patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=7ad353"],\
|
|||
|
["vue-eslint-parser", "virtual:9bd4bcf4dac8ed135c1c46679da10f9f418432974de09d194e63d188f9824382a047bdd72fd0dbdf689cf390d44f9cf3c579926587bb020f4a7de4f34e75d717#npm:8.3.0"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/eslint-plugin-vue",\
|
|||
|
"@types/eslint",\
|
|||
|
"@types/typescript",\
|
|||
|
"eslint-plugin-vue",\
|
|||
|
"eslint",\
|
|||
|
"typescript"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@vue/reactivity", [\
|
|||
|
["npm:3.2.37", {\
|
|||
|
"packageLocation": "./.yarn/cache/@vue-reactivity-npm-3.2.37-b6bb8fbcbd-94e353f8b8.zip/node_modules/@vue/reactivity/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vue/reactivity", "npm:3.2.37"],\
|
|||
|
["@vue/shared", "npm:3.2.37"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@vue/reactivity-transform", [\
|
|||
|
["npm:3.2.37", {\
|
|||
|
"packageLocation": "./.yarn/cache/@vue-reactivity-transform-npm-3.2.37-96d5a7d46e-d9e7c353e2.zip/node_modules/@vue/reactivity-transform/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vue/reactivity-transform", "npm:3.2.37"],\
|
|||
|
["@babel/parser", "npm:7.18.6"],\
|
|||
|
["@vue/compiler-core", "npm:3.2.37"],\
|
|||
|
["@vue/shared", "npm:3.2.37"],\
|
|||
|
["estree-walker", "npm:2.0.2"],\
|
|||
|
["magic-string", "npm:0.25.9"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@vue/runtime-core", [\
|
|||
|
["npm:3.2.37", {\
|
|||
|
"packageLocation": "./.yarn/cache/@vue-runtime-core-npm-3.2.37-4babb388df-8dbf4e1f97.zip/node_modules/@vue/runtime-core/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vue/runtime-core", "npm:3.2.37"],\
|
|||
|
["@vue/reactivity", "npm:3.2.37"],\
|
|||
|
["@vue/shared", "npm:3.2.37"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@vue/runtime-dom", [\
|
|||
|
["npm:3.2.37", {\
|
|||
|
"packageLocation": "./.yarn/cache/@vue-runtime-dom-npm-3.2.37-6bd25ee477-36dddfd561.zip/node_modules/@vue/runtime-dom/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vue/runtime-dom", "npm:3.2.37"],\
|
|||
|
["@vue/runtime-core", "npm:3.2.37"],\
|
|||
|
["@vue/shared", "npm:3.2.37"],\
|
|||
|
["csstype", "npm:2.6.20"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@vue/server-renderer", [\
|
|||
|
["npm:3.2.37", {\
|
|||
|
"packageLocation": "./.yarn/cache/@vue-server-renderer-npm-3.2.37-93c5150576-634d43cd21.zip/node_modules/@vue/server-renderer/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vue/server-renderer", "npm:3.2.37"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:c15242c7af88e957688e92d9c054d0c6533fd55fdb771c3854473b923e00751099a2c292023fc5bcf1d904adde806541a7f6b2b8e48d11e76ccb2ee0856b45bd#npm:3.2.37", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/@vue-server-renderer-virtual-947c838fbc/0/cache/@vue-server-renderer-npm-3.2.37-93c5150576-634d43cd21.zip/node_modules/@vue/server-renderer/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vue/server-renderer", "virtual:c15242c7af88e957688e92d9c054d0c6533fd55fdb771c3854473b923e00751099a2c292023fc5bcf1d904adde806541a7f6b2b8e48d11e76ccb2ee0856b45bd#npm:3.2.37"],\
|
|||
|
["@types/vue", null],\
|
|||
|
["@vue/compiler-ssr", "npm:3.2.37"],\
|
|||
|
["@vue/shared", "npm:3.2.37"],\
|
|||
|
["vue", "npm:3.2.37"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/vue",\
|
|||
|
"vue"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@vue/shared", [\
|
|||
|
["npm:3.2.37", {\
|
|||
|
"packageLocation": "./.yarn/cache/@vue-shared-npm-3.2.37-60a8943fc6-999ab8baeb.zip/node_modules/@vue/shared/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vue/shared", "npm:3.2.37"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["@vue/test-utils", [\
|
|||
|
["npm:2.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/@vue-test-utils-npm-2.0.0-7cbb33e37d-538f168387.zip/node_modules/@vue/test-utils/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vue/test-utils", "npm:2.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:2.0.0", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/@vue-test-utils-virtual-108dd057d0/0/cache/@vue-test-utils-npm-2.0.0-7cbb33e37d-538f168387.zip/node_modules/@vue/test-utils/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["@vue/test-utils", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:2.0.0"],\
|
|||
|
["@types/vue", null],\
|
|||
|
["vue", "npm:3.2.37"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/vue",\
|
|||
|
"vue"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["abbrev", [\
|
|||
|
["npm:1.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/abbrev-npm-1.1.1-3659247eab-a4a97ec07d.zip/node_modules/abbrev/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["abbrev", "npm:1.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["acorn", [\
|
|||
|
["npm:8.7.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/acorn-npm-8.7.1-7c7a019990-aca0aabf98.zip/node_modules/acorn/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["acorn", "npm:8.7.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["acorn-jsx", [\
|
|||
|
["npm:5.3.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/acorn-jsx-npm-5.3.2-d7594599ea-c3d3b2a89c.zip/node_modules/acorn-jsx/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["acorn-jsx", "npm:5.3.2"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:c70fa2a91dcbd99b022aeff42b1b7671b1079fb9945248dc00dedd7520f879dc07058703f4626782de94f97692f30d5b18138d744c1e1ed1913a7610755d40e3#npm:5.3.2", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/acorn-jsx-virtual-068582d542/0/cache/acorn-jsx-npm-5.3.2-d7594599ea-c3d3b2a89c.zip/node_modules/acorn-jsx/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["acorn-jsx", "virtual:c70fa2a91dcbd99b022aeff42b1b7671b1079fb9945248dc00dedd7520f879dc07058703f4626782de94f97692f30d5b18138d744c1e1ed1913a7610755d40e3#npm:5.3.2"],\
|
|||
|
["@types/acorn", null],\
|
|||
|
["acorn", "npm:8.7.1"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/acorn",\
|
|||
|
"acorn"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["acorn-walk", [\
|
|||
|
["npm:8.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/acorn-walk-npm-8.2.0-2f2cac3177-1715e76c01.zip/node_modules/acorn-walk/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["acorn-walk", "npm:8.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["agent-base", [\
|
|||
|
["npm:6.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/agent-base-npm-6.0.2-428f325a93-f52b6872cc.zip/node_modules/agent-base/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["agent-base", "npm:6.0.2"],\
|
|||
|
["debug", "virtual:1f3c51be25fef20e854261431be23d317093b3b463e81e911f4f45a636ff582620db066c9d2a5922a428e07e10fe4788eee8196c796ce2c9bd49d22743fec207#npm:4.3.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["agentkeepalive", [\
|
|||
|
["npm:4.2.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/agentkeepalive-npm-4.2.1-b86a9fb343-39cb49ed8c.zip/node_modules/agentkeepalive/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["agentkeepalive", "npm:4.2.1"],\
|
|||
|
["debug", "virtual:1f3c51be25fef20e854261431be23d317093b3b463e81e911f4f45a636ff582620db066c9d2a5922a428e07e10fe4788eee8196c796ce2c9bd49d22743fec207#npm:4.3.4"],\
|
|||
|
["depd", "npm:1.1.2"],\
|
|||
|
["humanize-ms", "npm:1.2.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["aggregate-error", [\
|
|||
|
["npm:3.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/aggregate-error-npm-3.1.0-415a406f4e-1101a33f21.zip/node_modules/aggregate-error/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["aggregate-error", "npm:3.1.0"],\
|
|||
|
["clean-stack", "npm:2.2.0"],\
|
|||
|
["indent-string", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:4.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/aggregate-error-npm-4.0.1-12d0501fb7-bb3ffdfd13.zip/node_modules/aggregate-error/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["aggregate-error", "npm:4.0.1"],\
|
|||
|
["clean-stack", "npm:4.2.0"],\
|
|||
|
["indent-string", "npm:5.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["ajv", [\
|
|||
|
["npm:6.12.6", {\
|
|||
|
"packageLocation": "./.yarn/cache/ajv-npm-6.12.6-4b5105e2b2-874972efe5.zip/node_modules/ajv/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["ajv", "npm:6.12.6"],\
|
|||
|
["fast-deep-equal", "npm:3.1.3"],\
|
|||
|
["fast-json-stable-stringify", "npm:2.1.0"],\
|
|||
|
["json-schema-traverse", "npm:0.4.1"],\
|
|||
|
["uri-js", "npm:4.4.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["ansi-regex", [\
|
|||
|
["npm:5.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/ansi-regex-npm-5.0.1-c963a48615-2aa4bb54ca.zip/node_modules/ansi-regex/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["ansi-regex", "npm:5.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["ansi-styles", [\
|
|||
|
["npm:3.2.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/ansi-styles-npm-3.2.1-8cb8107983-d85ade01c1.zip/node_modules/ansi-styles/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["ansi-styles", "npm:3.2.1"],\
|
|||
|
["color-convert", "npm:1.9.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:4.3.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/ansi-styles-npm-4.3.0-245c7d42c7-513b44c3b2.zip/node_modules/ansi-styles/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["ansi-styles", "npm:4.3.0"],\
|
|||
|
["color-convert", "npm:2.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["anymatch", [\
|
|||
|
["npm:3.1.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/anymatch-npm-3.1.2-1d5471acfa-985163db22.zip/node_modules/anymatch/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["anymatch", "npm:3.1.2"],\
|
|||
|
["normalize-path", "npm:3.0.0"],\
|
|||
|
["picomatch", "npm:2.3.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["aproba", [\
|
|||
|
["npm:2.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/aproba-npm-2.0.0-8716bcfde6-5615cadcfb.zip/node_modules/aproba/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["aproba", "npm:2.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["are-we-there-yet", [\
|
|||
|
["npm:3.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/are-we-there-yet-npm-3.0.0-1391430190-348edfdd93.zip/node_modules/are-we-there-yet/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["are-we-there-yet", "npm:3.0.0"],\
|
|||
|
["delegates", "npm:1.0.0"],\
|
|||
|
["readable-stream", "npm:3.6.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["arg", [\
|
|||
|
["npm:4.1.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/arg-npm-4.1.3-1748b966a8-544af8dd3f.zip/node_modules/arg/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["arg", "npm:4.1.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["argparse", [\
|
|||
|
["npm:2.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/argparse-npm-2.0.1-faff7999e6-83644b5649.zip/node_modules/argparse/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["argparse", "npm:2.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["array-union", [\
|
|||
|
["npm:2.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/array-union-npm-2.1.0-4e4852b221-5bee12395c.zip/node_modules/array-union/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["array-union", "npm:2.1.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["arrify", [\
|
|||
|
["npm:1.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/arrify-npm-1.0.1-affafba9fe-745075dd4a.zip/node_modules/arrify/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["arrify", "npm:1.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:3.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/arrify-npm-3.0.0-84cf7a301c-d6c6f3dad9.zip/node_modules/arrify/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["arrify", "npm:3.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["assertion-error", [\
|
|||
|
["npm:1.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/assertion-error-npm-1.1.0-66b893015e-fd9429d3a3.zip/node_modules/assertion-error/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["assertion-error", "npm:1.1.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["balanced-match", [\
|
|||
|
["npm:1.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/balanced-match-npm-1.0.2-a53c126459-9706c088a2.zip/node_modules/balanced-match/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["balanced-match", "npm:1.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["binary-extensions", [\
|
|||
|
["npm:2.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/binary-extensions-npm-2.2.0-180c33fec7-ccd267956c.zip/node_modules/binary-extensions/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["binary-extensions", "npm:2.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["boolbase", [\
|
|||
|
["npm:1.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/boolbase-npm-1.0.0-965fe9af6d-3e25c80ef6.zip/node_modules/boolbase/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["boolbase", "npm:1.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["brace-expansion", [\
|
|||
|
["npm:1.1.11", {\
|
|||
|
"packageLocation": "./.yarn/cache/brace-expansion-npm-1.1.11-fb95eb05ad-faf34a7bb0.zip/node_modules/brace-expansion/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["brace-expansion", "npm:1.1.11"],\
|
|||
|
["balanced-match", "npm:1.0.2"],\
|
|||
|
["concat-map", "npm:0.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:2.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/brace-expansion-npm-2.0.1-17aa2616f9-a61e7cd2e8.zip/node_modules/brace-expansion/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["brace-expansion", "npm:2.0.1"],\
|
|||
|
["balanced-match", "npm:1.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["braces", [\
|
|||
|
["npm:3.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/braces-npm-3.0.2-782240b28a-e2a8e769a8.zip/node_modules/braces/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["braces", "npm:3.0.2"],\
|
|||
|
["fill-range", "npm:7.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["c8", [\
|
|||
|
["npm:7.11.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/c8-npm-7.11.3-42cccbff9b-9f7272bb5f.zip/node_modules/c8/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["c8", "npm:7.11.3"],\
|
|||
|
["@bcoe/v8-coverage", "npm:0.2.3"],\
|
|||
|
["@istanbuljs/schema", "npm:0.1.3"],\
|
|||
|
["find-up", "npm:5.0.0"],\
|
|||
|
["foreground-child", "npm:2.0.0"],\
|
|||
|
["istanbul-lib-coverage", "npm:3.2.0"],\
|
|||
|
["istanbul-lib-report", "npm:3.0.0"],\
|
|||
|
["istanbul-reports", "npm:3.1.4"],\
|
|||
|
["rimraf", "npm:3.0.2"],\
|
|||
|
["test-exclude", "npm:6.0.0"],\
|
|||
|
["v8-to-istanbul", "npm:9.0.1"],\
|
|||
|
["yargs", "npm:16.2.0"],\
|
|||
|
["yargs-parser", "npm:20.2.9"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["cacache", [\
|
|||
|
["npm:16.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/cacache-npm-16.1.1-84a00badf3-4885246170.zip/node_modules/cacache/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["cacache", "npm:16.1.1"],\
|
|||
|
["@npmcli/fs", "npm:2.1.0"],\
|
|||
|
["@npmcli/move-file", "npm:2.0.0"],\
|
|||
|
["chownr", "npm:2.0.0"],\
|
|||
|
["fs-minipass", "npm:2.1.0"],\
|
|||
|
["glob", "npm:8.0.3"],\
|
|||
|
["infer-owner", "npm:1.0.4"],\
|
|||
|
["lru-cache", "npm:7.12.0"],\
|
|||
|
["minipass", "npm:3.3.4"],\
|
|||
|
["minipass-collect", "npm:1.0.2"],\
|
|||
|
["minipass-flush", "npm:1.0.5"],\
|
|||
|
["minipass-pipeline", "npm:1.2.4"],\
|
|||
|
["mkdirp", "npm:1.0.4"],\
|
|||
|
["p-map", "npm:4.0.0"],\
|
|||
|
["promise-inflight", "virtual:84a00badf32fd1afaf93817400747915046d2012712b8d0165c9b380a8ca122b717268023cb7925f79b92bac1d0305a8c7f77f430ac0705ca3d110cd76516a4c#npm:1.0.1"],\
|
|||
|
["rimraf", "npm:3.0.2"],\
|
|||
|
["ssri", "npm:9.0.1"],\
|
|||
|
["tar", "npm:6.1.11"],\
|
|||
|
["unique-filename", "npm:1.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["callsites", [\
|
|||
|
["npm:3.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/callsites-npm-3.1.0-268f989910-072d17b6ab.zip/node_modules/callsites/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["callsites", "npm:3.1.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["camelcase", [\
|
|||
|
["npm:6.3.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/camelcase-npm-6.3.0-e5e42a0d15-8c96818a90.zip/node_modules/camelcase/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["camelcase", "npm:6.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["camelcase-keys", [\
|
|||
|
["npm:7.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/camelcase-keys-npm-7.0.2-36fbc5a8f7-b5821cc48d.zip/node_modules/camelcase-keys/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["camelcase-keys", "npm:7.0.2"],\
|
|||
|
["camelcase", "npm:6.3.0"],\
|
|||
|
["map-obj", "npm:4.3.0"],\
|
|||
|
["quick-lru", "npm:5.1.1"],\
|
|||
|
["type-fest", "npm:1.4.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["chai", [\
|
|||
|
["npm:4.3.6", {\
|
|||
|
"packageLocation": "./.yarn/cache/chai-npm-4.3.6-dba90e4b0b-acff93fd53.zip/node_modules/chai/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["chai", "npm:4.3.6"],\
|
|||
|
["assertion-error", "npm:1.1.0"],\
|
|||
|
["check-error", "npm:1.0.2"],\
|
|||
|
["deep-eql", "npm:3.0.1"],\
|
|||
|
["get-func-name", "npm:2.0.0"],\
|
|||
|
["loupe", "npm:2.3.4"],\
|
|||
|
["pathval", "npm:1.1.1"],\
|
|||
|
["type-detect", "npm:4.0.8"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["chalk", [\
|
|||
|
["npm:2.4.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/chalk-npm-2.4.2-3ea16dd91e-ec3661d38f.zip/node_modules/chalk/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["chalk", "npm:2.4.2"],\
|
|||
|
["ansi-styles", "npm:3.2.1"],\
|
|||
|
["escape-string-regexp", "npm:1.0.5"],\
|
|||
|
["supports-color", "npm:5.5.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:4.1.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/chalk-npm-4.1.2-ba8b67ab80-fe75c9d5c7.zip/node_modules/chalk/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["chalk", "npm:4.1.2"],\
|
|||
|
["ansi-styles", "npm:4.3.0"],\
|
|||
|
["supports-color", "npm:7.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["check-error", [\
|
|||
|
["npm:1.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/check-error-npm-1.0.2-00c540c6e9-d9d1065044.zip/node_modules/check-error/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["check-error", "npm:1.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["chokidar", [\
|
|||
|
["npm:3.5.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/chokidar-npm-3.5.3-c5f9b0a56a-b49fcde401.zip/node_modules/chokidar/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["chokidar", "npm:3.5.3"],\
|
|||
|
["anymatch", "npm:3.1.2"],\
|
|||
|
["braces", "npm:3.0.2"],\
|
|||
|
["fsevents", "patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7"],\
|
|||
|
["glob-parent", "npm:5.1.2"],\
|
|||
|
["is-binary-path", "npm:2.1.0"],\
|
|||
|
["is-glob", "npm:4.0.3"],\
|
|||
|
["normalize-path", "npm:3.0.0"],\
|
|||
|
["readdirp", "npm:3.6.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["chownr", [\
|
|||
|
["npm:2.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/chownr-npm-2.0.0-638f1c9c61-c57cf9dd07.zip/node_modules/chownr/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["chownr", "npm:2.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["clean-stack", [\
|
|||
|
["npm:2.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/clean-stack-npm-2.2.0-a8ce435a5c-2ac8cd2b2f.zip/node_modules/clean-stack/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["clean-stack", "npm:2.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:4.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/clean-stack-npm-4.2.0-bb0dff47b2-373f656a31.zip/node_modules/clean-stack/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["clean-stack", "npm:4.2.0"],\
|
|||
|
["escape-string-regexp", "npm:5.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["clipboard", [\
|
|||
|
["npm:2.0.11", {\
|
|||
|
"packageLocation": "./.yarn/cache/clipboard-npm-2.0.11-45358b5ae8-413055a603.zip/node_modules/clipboard/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["clipboard", "npm:2.0.11"],\
|
|||
|
["good-listener", "npm:1.2.2"],\
|
|||
|
["select", "npm:1.1.2"],\
|
|||
|
["tiny-emitter", "npm:2.1.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["cliui", [\
|
|||
|
["npm:7.0.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/cliui-npm-7.0.4-d6b8a9edb6-ce2e8f578a.zip/node_modules/cliui/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["cliui", "npm:7.0.4"],\
|
|||
|
["string-width", "npm:4.2.3"],\
|
|||
|
["strip-ansi", "npm:6.0.1"],\
|
|||
|
["wrap-ansi", "npm:7.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["color-convert", [\
|
|||
|
["npm:1.9.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/color-convert-npm-1.9.3-1fe690075e-fd7a64a17c.zip/node_modules/color-convert/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["color-convert", "npm:1.9.3"],\
|
|||
|
["color-name", "npm:1.1.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:2.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/color-convert-npm-2.0.1-79730e935b-79e6bdb9fd.zip/node_modules/color-convert/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["color-convert", "npm:2.0.1"],\
|
|||
|
["color-name", "npm:1.1.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["color-name", [\
|
|||
|
["npm:1.1.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/color-name-npm-1.1.3-728b7b5d39-09c5d3e33d.zip/node_modules/color-name/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["color-name", "npm:1.1.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:1.1.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/color-name-npm-1.1.4-025792b0ea-b044585952.zip/node_modules/color-name/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["color-name", "npm:1.1.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["color-support", [\
|
|||
|
["npm:1.1.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/color-support-npm-1.1.3-3be5c53455-9b73568176.zip/node_modules/color-support/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["color-support", "npm:1.1.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["concat-map", [\
|
|||
|
["npm:0.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/concat-map-npm-0.0.1-85a921b7ee-902a9f5d89.zip/node_modules/concat-map/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["concat-map", "npm:0.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["console-control-strings", [\
|
|||
|
["npm:1.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/console-control-strings-npm-1.1.0-e3160e5275-8755d76787.zip/node_modules/console-control-strings/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["console-control-strings", "npm:1.1.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["convert-source-map", [\
|
|||
|
["npm:1.8.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/convert-source-map-npm-1.8.0-037f671dde-985d974a2d.zip/node_modules/convert-source-map/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["convert-source-map", "npm:1.8.0"],\
|
|||
|
["safe-buffer", "npm:5.1.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["cp-file", [\
|
|||
|
["npm:9.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/cp-file-npm-9.1.0-358478e371-0ba0fb568b.zip/node_modules/cp-file/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["cp-file", "npm:9.1.0"],\
|
|||
|
["graceful-fs", "npm:4.2.10"],\
|
|||
|
["make-dir", "npm:3.1.0"],\
|
|||
|
["nested-error-stacks", "npm:2.1.1"],\
|
|||
|
["p-event", "npm:4.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["cpy", [\
|
|||
|
["npm:9.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/cpy-npm-9.0.1-17c1663b2d-5139dfc07d.zip/node_modules/cpy/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["cpy", "npm:9.0.1"],\
|
|||
|
["arrify", "npm:3.0.0"],\
|
|||
|
["cp-file", "npm:9.1.0"],\
|
|||
|
["globby", "npm:13.1.2"],\
|
|||
|
["junk", "npm:4.0.0"],\
|
|||
|
["micromatch", "npm:4.0.5"],\
|
|||
|
["nested-error-stacks", "npm:2.1.1"],\
|
|||
|
["p-filter", "npm:3.0.0"],\
|
|||
|
["p-map", "npm:5.5.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["cpy-cli", [\
|
|||
|
["npm:4.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/cpy-cli-npm-4.1.0-c30806ecc5-ae6f8474ba.zip/node_modules/cpy-cli/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["cpy-cli", "npm:4.1.0"],\
|
|||
|
["cpy", "npm:9.0.1"],\
|
|||
|
["meow", "npm:10.1.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["create-require", [\
|
|||
|
["npm:1.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/create-require-npm-1.1.1-839884ca2e-a9a1503d43.zip/node_modules/create-require/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["create-require", "npm:1.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["cross-spawn", [\
|
|||
|
["npm:7.0.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/cross-spawn-npm-7.0.3-e4ff3e65b3-671cc7c728.zip/node_modules/cross-spawn/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["cross-spawn", "npm:7.0.3"],\
|
|||
|
["path-key", "npm:3.1.1"],\
|
|||
|
["shebang-command", "npm:2.0.0"],\
|
|||
|
["which", "npm:2.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["cssesc", [\
|
|||
|
["npm:3.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/cssesc-npm-3.0.0-15ec56f86f-f8c4ababff.zip/node_modules/cssesc/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["cssesc", "npm:3.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["csstype", [\
|
|||
|
["npm:2.6.20", {\
|
|||
|
"packageLocation": "./.yarn/cache/csstype-npm-2.6.20-7c929732a1-cb5d5ded49.zip/node_modules/csstype/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["csstype", "npm:2.6.20"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["debug", [\
|
|||
|
["npm:4.3.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/debug-npm-4.3.4-4513954577-3dbad3f94e.zip/node_modules/debug/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["debug", "npm:4.3.4"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:1f3c51be25fef20e854261431be23d317093b3b463e81e911f4f45a636ff582620db066c9d2a5922a428e07e10fe4788eee8196c796ce2c9bd49d22743fec207#npm:4.3.4", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/debug-virtual-6891af4fab/0/cache/debug-npm-4.3.4-4513954577-3dbad3f94e.zip/node_modules/debug/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["debug", "virtual:1f3c51be25fef20e854261431be23d317093b3b463e81e911f4f45a636ff582620db066c9d2a5922a428e07e10fe4788eee8196c796ce2c9bd49d22743fec207#npm:4.3.4"],\
|
|||
|
["@types/supports-color", null],\
|
|||
|
["ms", "npm:2.1.2"],\
|
|||
|
["supports-color", null]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/supports-color",\
|
|||
|
"supports-color"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["decamelize", [\
|
|||
|
["npm:1.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/decamelize-npm-1.2.0-c5a2fdc622-ad8c51a7e7.zip/node_modules/decamelize/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["decamelize", "npm:1.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:5.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/decamelize-npm-5.0.1-2fde8c926c-7c3b1ed4b3.zip/node_modules/decamelize/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["decamelize", "npm:5.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["decamelize-keys", [\
|
|||
|
["npm:1.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/decamelize-keys-npm-1.1.0-75168ffadd-8bc5d32e03.zip/node_modules/decamelize-keys/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["decamelize-keys", "npm:1.1.0"],\
|
|||
|
["decamelize", "npm:1.2.0"],\
|
|||
|
["map-obj", "npm:1.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["deep-eql", [\
|
|||
|
["npm:3.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/deep-eql-npm-3.0.1-9a66c09c65-4f4c9fb79e.zip/node_modules/deep-eql/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["deep-eql", "npm:3.0.1"],\
|
|||
|
["type-detect", "npm:4.0.8"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["deep-is", [\
|
|||
|
["npm:0.1.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/deep-is-npm-0.1.4-88938b5a67-edb65dd0d7.zip/node_modules/deep-is/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["deep-is", "npm:0.1.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["delegate", [\
|
|||
|
["npm:3.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/delegate-npm-3.2.0-d3f849ea99-d943058fe0.zip/node_modules/delegate/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["delegate", "npm:3.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["delegates", [\
|
|||
|
["npm:1.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/delegates-npm-1.0.0-9b1942d75f-a51744d9b5.zip/node_modules/delegates/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["delegates", "npm:1.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["depd", [\
|
|||
|
["npm:1.1.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/depd-npm-1.1.2-b0c8414da7-6b406620d2.zip/node_modules/depd/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["depd", "npm:1.1.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["diff", [\
|
|||
|
["npm:4.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/diff-npm-4.0.2-73133c7102-f2c09b0ce4.zip/node_modules/diff/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["diff", "npm:4.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["dir-glob", [\
|
|||
|
["npm:3.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/dir-glob-npm-3.0.1-1aea628b1b-fa05e18324.zip/node_modules/dir-glob/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["dir-glob", "npm:3.0.1"],\
|
|||
|
["path-type", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["doctrine", [\
|
|||
|
["npm:3.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/doctrine-npm-3.0.0-c6f1615f04-fd7673ca77.zip/node_modules/doctrine/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["doctrine", "npm:3.0.0"],\
|
|||
|
["esutils", "npm:2.0.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["dom-serializer", [\
|
|||
|
["npm:1.4.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/dom-serializer-npm-1.4.1-ebb24349c1-fbb0b01f87.zip/node_modules/dom-serializer/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["dom-serializer", "npm:1.4.1"],\
|
|||
|
["domelementtype", "npm:2.3.0"],\
|
|||
|
["domhandler", "npm:4.3.1"],\
|
|||
|
["entities", "npm:2.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:2.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/dom-serializer-npm-2.0.0-378ebc7200-cd1810544f.zip/node_modules/dom-serializer/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["dom-serializer", "npm:2.0.0"],\
|
|||
|
["domelementtype", "npm:2.3.0"],\
|
|||
|
["domhandler", "npm:5.0.3"],\
|
|||
|
["entities", "npm:4.3.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["domelementtype", [\
|
|||
|
["npm:2.3.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/domelementtype-npm-2.3.0-02de7cbfba-ee837a318f.zip/node_modules/domelementtype/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["domelementtype", "npm:2.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["domhandler", [\
|
|||
|
["npm:3.3.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/domhandler-npm-3.3.0-6417f7e17e-850e5e9fee.zip/node_modules/domhandler/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["domhandler", "npm:3.3.0"],\
|
|||
|
["domelementtype", "npm:2.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:4.3.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/domhandler-npm-4.3.1-493539c1ca-4c665ceed0.zip/node_modules/domhandler/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["domhandler", "npm:4.3.1"],\
|
|||
|
["domelementtype", "npm:2.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:5.0.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/domhandler-npm-5.0.3-3ede73dc10-0f58f4a6af.zip/node_modules/domhandler/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["domhandler", "npm:5.0.3"],\
|
|||
|
["domelementtype", "npm:2.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["domutils", [\
|
|||
|
["npm:2.8.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/domutils-npm-2.8.0-0325139e5c-abf7434315.zip/node_modules/domutils/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["domutils", "npm:2.8.0"],\
|
|||
|
["dom-serializer", "npm:1.4.1"],\
|
|||
|
["domelementtype", "npm:2.3.0"],\
|
|||
|
["domhandler", "npm:4.3.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["emoji-regex", [\
|
|||
|
["npm:8.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/emoji-regex-npm-8.0.0-213764015c-d4c5c39d5a.zip/node_modules/emoji-regex/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["emoji-regex", "npm:8.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["encoding", [\
|
|||
|
["npm:0.1.13", {\
|
|||
|
"packageLocation": "./.yarn/cache/encoding-npm-0.1.13-82a1837d30-bb98632f8f.zip/node_modules/encoding/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["encoding", "npm:0.1.13"],\
|
|||
|
["iconv-lite", "npm:0.6.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["entities", [\
|
|||
|
["npm:2.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/entities-npm-2.2.0-0fc8d5b2f7-19010dacaf.zip/node_modules/entities/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["entities", "npm:2.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:4.3.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/entities-npm-4.3.1-3a76d89ee3-e8f6d2bac2.zip/node_modules/entities/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["entities", "npm:4.3.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["env-paths", [\
|
|||
|
["npm:2.2.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/env-paths-npm-2.2.1-7c7577428c-65b5df55a8.zip/node_modules/env-paths/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["env-paths", "npm:2.2.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["err-code", [\
|
|||
|
["npm:2.0.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/err-code-npm-2.0.3-082e0ff9a7-8b7b1be20d.zip/node_modules/err-code/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["err-code", "npm:2.0.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["error-ex", [\
|
|||
|
["npm:1.3.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/error-ex-npm-1.3.2-5654f80c0f-c1c2b8b65f.zip/node_modules/error-ex/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["error-ex", "npm:1.3.2"],\
|
|||
|
["is-arrayish", "npm:0.2.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-npm-0.14.47-f23a823d41/node_modules/esbuild/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild", "npm:0.14.47"],\
|
|||
|
["esbuild-android-64", "npm:0.14.47"],\
|
|||
|
["esbuild-android-arm64", "npm:0.14.47"],\
|
|||
|
["esbuild-darwin-64", "npm:0.14.47"],\
|
|||
|
["esbuild-darwin-arm64", "npm:0.14.47"],\
|
|||
|
["esbuild-freebsd-64", "npm:0.14.47"],\
|
|||
|
["esbuild-freebsd-arm64", "npm:0.14.47"],\
|
|||
|
["esbuild-linux-32", "npm:0.14.47"],\
|
|||
|
["esbuild-linux-64", "npm:0.14.47"],\
|
|||
|
["esbuild-linux-arm", "npm:0.14.47"],\
|
|||
|
["esbuild-linux-arm64", "npm:0.14.47"],\
|
|||
|
["esbuild-linux-mips64le", "npm:0.14.47"],\
|
|||
|
["esbuild-linux-ppc64le", "npm:0.14.47"],\
|
|||
|
["esbuild-linux-riscv64", "npm:0.14.47"],\
|
|||
|
["esbuild-linux-s390x", "npm:0.14.47"],\
|
|||
|
["esbuild-netbsd-64", "npm:0.14.47"],\
|
|||
|
["esbuild-openbsd-64", "npm:0.14.47"],\
|
|||
|
["esbuild-sunos-64", "npm:0.14.47"],\
|
|||
|
["esbuild-windows-32", "npm:0.14.47"],\
|
|||
|
["esbuild-windows-64", "npm:0.14.47"],\
|
|||
|
["esbuild-windows-arm64", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-android-64", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-android-64-npm-0.14.47-1fcdc8e465/node_modules/esbuild-android-64/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-android-64", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-android-arm64", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-android-arm64-npm-0.14.47-8677f42f0e/node_modules/esbuild-android-arm64/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-android-arm64", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-darwin-64", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-darwin-64-npm-0.14.47-dff6f44cf8/node_modules/esbuild-darwin-64/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-darwin-64", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-darwin-arm64", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-darwin-arm64-npm-0.14.47-5ad0d743a0/node_modules/esbuild-darwin-arm64/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-darwin-arm64", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-freebsd-64", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-freebsd-64-npm-0.14.47-fb47f0c715/node_modules/esbuild-freebsd-64/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-freebsd-64", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-freebsd-arm64", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-freebsd-arm64-npm-0.14.47-87978aed0c/node_modules/esbuild-freebsd-arm64/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-freebsd-arm64", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-linux-32", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-linux-32-npm-0.14.47-c809ce45ea/node_modules/esbuild-linux-32/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-linux-32", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-linux-64", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-linux-64-npm-0.14.47-6ac252ecbf/node_modules/esbuild-linux-64/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-linux-64", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-linux-arm", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-linux-arm-npm-0.14.47-061fdd13dd/node_modules/esbuild-linux-arm/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-linux-arm", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-linux-arm64", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-linux-arm64-npm-0.14.47-01f6077dd9/node_modules/esbuild-linux-arm64/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-linux-arm64", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-linux-mips64le", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-linux-mips64le-npm-0.14.47-a1b198ec52/node_modules/esbuild-linux-mips64le/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-linux-mips64le", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-linux-ppc64le", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-linux-ppc64le-npm-0.14.47-7e2efa6772/node_modules/esbuild-linux-ppc64le/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-linux-ppc64le", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-linux-riscv64", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-linux-riscv64-npm-0.14.47-c847141f1b/node_modules/esbuild-linux-riscv64/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-linux-riscv64", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-linux-s390x", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-linux-s390x-npm-0.14.47-ccc4547e5e/node_modules/esbuild-linux-s390x/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-linux-s390x", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-netbsd-64", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-netbsd-64-npm-0.14.47-631a25ad04/node_modules/esbuild-netbsd-64/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-netbsd-64", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-openbsd-64", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-openbsd-64-npm-0.14.47-9424813a88/node_modules/esbuild-openbsd-64/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-openbsd-64", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-sunos-64", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-sunos-64-npm-0.14.47-aa1d9b0ca0/node_modules/esbuild-sunos-64/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-sunos-64", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-windows-32", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-windows-32-npm-0.14.47-ff9873483a/node_modules/esbuild-windows-32/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-windows-32", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-windows-64", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-windows-64-npm-0.14.47-d90118566a/node_modules/esbuild-windows-64/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-windows-64", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esbuild-windows-arm64", [\
|
|||
|
["npm:0.14.47", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/esbuild-windows-arm64-npm-0.14.47-583aa162ac/node_modules/esbuild-windows-arm64/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esbuild-windows-arm64", "npm:0.14.47"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["escalade", [\
|
|||
|
["npm:3.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/escalade-npm-3.1.1-e02da076aa-a3e2a99f07.zip/node_modules/escalade/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["escalade", "npm:3.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["escape-string-regexp", [\
|
|||
|
["npm:1.0.5", {\
|
|||
|
"packageLocation": "./.yarn/cache/escape-string-regexp-npm-1.0.5-3284de402f-6092fda75c.zip/node_modules/escape-string-regexp/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["escape-string-regexp", "npm:1.0.5"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:4.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/escape-string-regexp-npm-4.0.0-4b531d8d59-98b48897d9.zip/node_modules/escape-string-regexp/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["escape-string-regexp", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:5.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/escape-string-regexp-npm-5.0.0-a663e825ce-20daabe197.zip/node_modules/escape-string-regexp/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["escape-string-regexp", "npm:5.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["eslint", [\
|
|||
|
["npm:8.18.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/eslint-npm-8.18.0-3b3bfb190f-d9b4b7488a.zip/node_modules/eslint/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["eslint", "npm:8.18.0"],\
|
|||
|
["@eslint/eslintrc", "npm:1.3.0"],\
|
|||
|
["@humanwhocodes/config-array", "npm:0.9.5"],\
|
|||
|
["ajv", "npm:6.12.6"],\
|
|||
|
["chalk", "npm:4.1.2"],\
|
|||
|
["cross-spawn", "npm:7.0.3"],\
|
|||
|
["debug", "virtual:1f3c51be25fef20e854261431be23d317093b3b463e81e911f4f45a636ff582620db066c9d2a5922a428e07e10fe4788eee8196c796ce2c9bd49d22743fec207#npm:4.3.4"],\
|
|||
|
["doctrine", "npm:3.0.0"],\
|
|||
|
["escape-string-regexp", "npm:4.0.0"],\
|
|||
|
["eslint-scope", "npm:7.1.1"],\
|
|||
|
["eslint-utils", "virtual:3b3bfb190f25ed01591b1d51c8e6a15e818ab97d9cabea5c63912afc819a8f6e3ad395aaf338cd170314411b04e35eec5c8cff33dfa644476d292dcf2c5354d1#npm:3.0.0"],\
|
|||
|
["eslint-visitor-keys", "npm:3.3.0"],\
|
|||
|
["espree", "npm:9.3.2"],\
|
|||
|
["esquery", "npm:1.4.0"],\
|
|||
|
["esutils", "npm:2.0.3"],\
|
|||
|
["fast-deep-equal", "npm:3.1.3"],\
|
|||
|
["file-entry-cache", "npm:6.0.1"],\
|
|||
|
["functional-red-black-tree", "npm:1.0.1"],\
|
|||
|
["glob-parent", "npm:6.0.2"],\
|
|||
|
["globals", "npm:13.15.0"],\
|
|||
|
["ignore", "npm:5.2.0"],\
|
|||
|
["import-fresh", "npm:3.3.0"],\
|
|||
|
["imurmurhash", "npm:0.1.4"],\
|
|||
|
["is-glob", "npm:4.0.3"],\
|
|||
|
["js-yaml", "npm:4.1.0"],\
|
|||
|
["json-stable-stringify-without-jsonify", "npm:1.0.1"],\
|
|||
|
["levn", "npm:0.4.1"],\
|
|||
|
["lodash.merge", "npm:4.6.2"],\
|
|||
|
["minimatch", "npm:3.1.2"],\
|
|||
|
["natural-compare", "npm:1.4.0"],\
|
|||
|
["optionator", "npm:0.9.1"],\
|
|||
|
["regexpp", "npm:3.2.0"],\
|
|||
|
["strip-ansi", "npm:6.0.1"],\
|
|||
|
["strip-json-comments", "npm:3.1.1"],\
|
|||
|
["text-table", "npm:0.2.0"],\
|
|||
|
["v8-compile-cache", "npm:2.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["eslint-plugin-vue", [\
|
|||
|
["npm:8.7.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/eslint-plugin-vue-npm-8.7.1-f78c4cd4a3-c3aefb226d.zip/node_modules/eslint-plugin-vue/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["eslint-plugin-vue", "npm:8.7.1"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:8.7.1", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/eslint-plugin-vue-virtual-c6cee749d3/0/cache/eslint-plugin-vue-npm-8.7.1-f78c4cd4a3-c3aefb226d.zip/node_modules/eslint-plugin-vue/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["eslint-plugin-vue", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:8.7.1"],\
|
|||
|
["@types/eslint", null],\
|
|||
|
["eslint", "npm:8.18.0"],\
|
|||
|
["eslint-utils", "virtual:3b3bfb190f25ed01591b1d51c8e6a15e818ab97d9cabea5c63912afc819a8f6e3ad395aaf338cd170314411b04e35eec5c8cff33dfa644476d292dcf2c5354d1#npm:3.0.0"],\
|
|||
|
["natural-compare", "npm:1.4.0"],\
|
|||
|
["nth-check", "npm:2.1.1"],\
|
|||
|
["postcss-selector-parser", "npm:6.0.10"],\
|
|||
|
["semver", "npm:7.3.7"],\
|
|||
|
["vue-eslint-parser", "virtual:9bd4bcf4dac8ed135c1c46679da10f9f418432974de09d194e63d188f9824382a047bdd72fd0dbdf689cf390d44f9cf3c579926587bb020f4a7de4f34e75d717#npm:8.3.0"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/eslint",\
|
|||
|
"eslint"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["eslint-scope", [\
|
|||
|
["npm:5.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/eslint-scope-npm-5.1.1-71fe59b18a-47e4b6a3f0.zip/node_modules/eslint-scope/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["eslint-scope", "npm:5.1.1"],\
|
|||
|
["esrecurse", "npm:4.3.0"],\
|
|||
|
["estraverse", "npm:4.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:7.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/eslint-scope-npm-7.1.1-23935eb377-9f6e974ab2.zip/node_modules/eslint-scope/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["eslint-scope", "npm:7.1.1"],\
|
|||
|
["esrecurse", "npm:4.3.0"],\
|
|||
|
["estraverse", "npm:5.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["eslint-utils", [\
|
|||
|
["npm:3.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/eslint-utils-npm-3.0.0-630b3a4013-0668fe02f5.zip/node_modules/eslint-utils/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["eslint-utils", "npm:3.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:3b3bfb190f25ed01591b1d51c8e6a15e818ab97d9cabea5c63912afc819a8f6e3ad395aaf338cd170314411b04e35eec5c8cff33dfa644476d292dcf2c5354d1#npm:3.0.0", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/eslint-utils-virtual-c2e00a0f83/0/cache/eslint-utils-npm-3.0.0-630b3a4013-0668fe02f5.zip/node_modules/eslint-utils/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["eslint-utils", "virtual:3b3bfb190f25ed01591b1d51c8e6a15e818ab97d9cabea5c63912afc819a8f6e3ad395aaf338cd170314411b04e35eec5c8cff33dfa644476d292dcf2c5354d1#npm:3.0.0"],\
|
|||
|
["@types/eslint", null],\
|
|||
|
["eslint", "npm:8.18.0"],\
|
|||
|
["eslint-visitor-keys", "npm:2.1.0"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/eslint",\
|
|||
|
"eslint"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["eslint-visitor-keys", [\
|
|||
|
["npm:2.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/eslint-visitor-keys-npm-2.1.0-c31806b6b9-e3081d7dd2.zip/node_modules/eslint-visitor-keys/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["eslint-visitor-keys", "npm:2.1.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:3.3.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/eslint-visitor-keys-npm-3.3.0-d329af7c8c-d59e68a7c5.zip/node_modules/eslint-visitor-keys/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["eslint-visitor-keys", "npm:3.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["espree", [\
|
|||
|
["npm:9.3.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/espree-npm-9.3.2-c70fa2a91d-9a790d6779.zip/node_modules/espree/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["espree", "npm:9.3.2"],\
|
|||
|
["acorn", "npm:8.7.1"],\
|
|||
|
["acorn-jsx", "virtual:c70fa2a91dcbd99b022aeff42b1b7671b1079fb9945248dc00dedd7520f879dc07058703f4626782de94f97692f30d5b18138d744c1e1ed1913a7610755d40e3#npm:5.3.2"],\
|
|||
|
["eslint-visitor-keys", "npm:3.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esquery", [\
|
|||
|
["npm:1.4.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/esquery-npm-1.4.0-f39408b1a7-a0807e17ab.zip/node_modules/esquery/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esquery", "npm:1.4.0"],\
|
|||
|
["estraverse", "npm:5.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esrecurse", [\
|
|||
|
["npm:4.3.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/esrecurse-npm-4.3.0-10b86a887a-ebc17b1a33.zip/node_modules/esrecurse/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esrecurse", "npm:4.3.0"],\
|
|||
|
["estraverse", "npm:5.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["estraverse", [\
|
|||
|
["npm:4.3.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/estraverse-npm-4.3.0-920a32f3c6-a6299491f9.zip/node_modules/estraverse/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["estraverse", "npm:4.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:5.3.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/estraverse-npm-5.3.0-03284f8f63-072780882d.zip/node_modules/estraverse/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["estraverse", "npm:5.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["estree-walker", [\
|
|||
|
["npm:2.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/estree-walker-npm-2.0.2-dfab42f65c-6151e6f982.zip/node_modules/estree-walker/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["estree-walker", "npm:2.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["esutils", [\
|
|||
|
["npm:2.0.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/esutils-npm-2.0.3-f865beafd5-22b5b08f74.zip/node_modules/esutils/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["esutils", "npm:2.0.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["fast-deep-equal", [\
|
|||
|
["npm:3.1.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/fast-deep-equal-npm-3.1.3-790edcfcf5-e21a9d8d84.zip/node_modules/fast-deep-equal/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["fast-deep-equal", "npm:3.1.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["fast-glob", [\
|
|||
|
["npm:3.2.11", {\
|
|||
|
"packageLocation": "./.yarn/cache/fast-glob-npm-3.2.11-bc01135fef-f473105324.zip/node_modules/fast-glob/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["fast-glob", "npm:3.2.11"],\
|
|||
|
["@nodelib/fs.stat", "npm:2.0.5"],\
|
|||
|
["@nodelib/fs.walk", "npm:1.2.8"],\
|
|||
|
["glob-parent", "npm:5.1.2"],\
|
|||
|
["merge2", "npm:1.4.1"],\
|
|||
|
["micromatch", "npm:4.0.5"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["fast-json-stable-stringify", [\
|
|||
|
["npm:2.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/fast-json-stable-stringify-npm-2.1.0-02e8905fda-b191531e36.zip/node_modules/fast-json-stable-stringify/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["fast-json-stable-stringify", "npm:2.1.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["fast-levenshtein", [\
|
|||
|
["npm:2.0.6", {\
|
|||
|
"packageLocation": "./.yarn/cache/fast-levenshtein-npm-2.0.6-fcd74b8df5-92cfec0a8d.zip/node_modules/fast-levenshtein/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["fast-levenshtein", "npm:2.0.6"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["fastq", [\
|
|||
|
["npm:1.13.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/fastq-npm-1.13.0-a45963881c-32cf15c29a.zip/node_modules/fastq/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["fastq", "npm:1.13.0"],\
|
|||
|
["reusify", "npm:1.0.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["file-entry-cache", [\
|
|||
|
["npm:6.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/file-entry-cache-npm-6.0.1-31965cf0af-f49701feaa.zip/node_modules/file-entry-cache/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["file-entry-cache", "npm:6.0.1"],\
|
|||
|
["flat-cache", "npm:3.0.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["fill-range", [\
|
|||
|
["npm:7.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/fill-range-npm-7.0.1-b8b1817caa-cc283f4e65.zip/node_modules/fill-range/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["fill-range", "npm:7.0.1"],\
|
|||
|
["to-regex-range", "npm:5.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["find-up", [\
|
|||
|
["npm:5.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/find-up-npm-5.0.0-e03e9b796d-07955e3573.zip/node_modules/find-up/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["find-up", "npm:5.0.0"],\
|
|||
|
["locate-path", "npm:6.0.0"],\
|
|||
|
["path-exists", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["flat-cache", [\
|
|||
|
["npm:3.0.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/flat-cache-npm-3.0.4-ee77e5911e-4fdd10ecbc.zip/node_modules/flat-cache/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["flat-cache", "npm:3.0.4"],\
|
|||
|
["flatted", "npm:3.2.6"],\
|
|||
|
["rimraf", "npm:3.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["flatted", [\
|
|||
|
["npm:3.2.6", {\
|
|||
|
"packageLocation": "./.yarn/cache/flatted-npm-3.2.6-a309e17eb3-33b87aa88d.zip/node_modules/flatted/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["flatted", "npm:3.2.6"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["foreground-child", [\
|
|||
|
["npm:2.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/foreground-child-npm-2.0.0-80c976b61e-f77ec9aff6.zip/node_modules/foreground-child/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["foreground-child", "npm:2.0.0"],\
|
|||
|
["cross-spawn", "npm:7.0.3"],\
|
|||
|
["signal-exit", "npm:3.0.7"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["fs-minipass", [\
|
|||
|
["npm:2.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/fs-minipass-npm-2.1.0-501ef87306-1b8d128dae.zip/node_modules/fs-minipass/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["fs-minipass", "npm:2.1.0"],\
|
|||
|
["minipass", "npm:3.3.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["fs.realpath", [\
|
|||
|
["npm:1.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/fs.realpath-npm-1.0.0-c8f05d8126-99ddea01a7.zip/node_modules/fs.realpath/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["fs.realpath", "npm:1.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["fsevents", [\
|
|||
|
["patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/fsevents-patch-3340e2eb10/node_modules/fsevents/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["fsevents", "patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7"],\
|
|||
|
["node-gyp", "npm:9.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["function-bind", [\
|
|||
|
["npm:1.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip/node_modules/function-bind/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["function-bind", "npm:1.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["functional-red-black-tree", [\
|
|||
|
["npm:1.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/functional-red-black-tree-npm-1.0.1-ccfe924dcd-ca6c170f37.zip/node_modules/functional-red-black-tree/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["functional-red-black-tree", "npm:1.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["gauge", [\
|
|||
|
["npm:4.0.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/gauge-npm-4.0.4-8f878385e9-788b6bfe52.zip/node_modules/gauge/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["gauge", "npm:4.0.4"],\
|
|||
|
["aproba", "npm:2.0.0"],\
|
|||
|
["color-support", "npm:1.1.3"],\
|
|||
|
["console-control-strings", "npm:1.1.0"],\
|
|||
|
["has-unicode", "npm:2.0.1"],\
|
|||
|
["signal-exit", "npm:3.0.7"],\
|
|||
|
["string-width", "npm:4.2.3"],\
|
|||
|
["strip-ansi", "npm:6.0.1"],\
|
|||
|
["wide-align", "npm:1.1.5"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["get-caller-file", [\
|
|||
|
["npm:2.0.5", {\
|
|||
|
"packageLocation": "./.yarn/cache/get-caller-file-npm-2.0.5-80e8a86305-b9769a836d.zip/node_modules/get-caller-file/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["get-caller-file", "npm:2.0.5"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["get-func-name", [\
|
|||
|
["npm:2.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/get-func-name-npm-2.0.0-afbf363765-8d82e69f3e.zip/node_modules/get-func-name/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["get-func-name", "npm:2.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["glob", [\
|
|||
|
["npm:7.2.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/glob-npm-7.2.3-2d866d17a5-29452e97b3.zip/node_modules/glob/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["glob", "npm:7.2.3"],\
|
|||
|
["fs.realpath", "npm:1.0.0"],\
|
|||
|
["inflight", "npm:1.0.6"],\
|
|||
|
["inherits", "npm:2.0.4"],\
|
|||
|
["minimatch", "npm:3.1.2"],\
|
|||
|
["once", "npm:1.4.0"],\
|
|||
|
["path-is-absolute", "npm:1.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:8.0.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/glob-npm-8.0.3-750f909025-50bcdea19d.zip/node_modules/glob/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["glob", "npm:8.0.3"],\
|
|||
|
["fs.realpath", "npm:1.0.0"],\
|
|||
|
["inflight", "npm:1.0.6"],\
|
|||
|
["inherits", "npm:2.0.4"],\
|
|||
|
["minimatch", "npm:5.1.0"],\
|
|||
|
["once", "npm:1.4.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["glob-parent", [\
|
|||
|
["npm:5.1.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/glob-parent-npm-5.1.2-021ab32634-f4f2bfe242.zip/node_modules/glob-parent/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["glob-parent", "npm:5.1.2"],\
|
|||
|
["is-glob", "npm:4.0.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:6.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/glob-parent-npm-6.0.2-2cbef12738-c13ee97978.zip/node_modules/glob-parent/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["glob-parent", "npm:6.0.2"],\
|
|||
|
["is-glob", "npm:4.0.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["globals", [\
|
|||
|
["npm:13.15.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/globals-npm-13.15.0-c0b0c83a7a-383ade0873.zip/node_modules/globals/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["globals", "npm:13.15.0"],\
|
|||
|
["type-fest", "npm:0.20.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["globby", [\
|
|||
|
["npm:11.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/globby-npm-11.1.0-bdcdf20c71-b4be8885e0.zip/node_modules/globby/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["globby", "npm:11.1.0"],\
|
|||
|
["array-union", "npm:2.1.0"],\
|
|||
|
["dir-glob", "npm:3.0.1"],\
|
|||
|
["fast-glob", "npm:3.2.11"],\
|
|||
|
["ignore", "npm:5.2.0"],\
|
|||
|
["merge2", "npm:1.4.1"],\
|
|||
|
["slash", "npm:3.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:13.1.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/globby-npm-13.1.2-3d26efd428-c148fcda0c.zip/node_modules/globby/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["globby", "npm:13.1.2"],\
|
|||
|
["dir-glob", "npm:3.0.1"],\
|
|||
|
["fast-glob", "npm:3.2.11"],\
|
|||
|
["ignore", "npm:5.2.0"],\
|
|||
|
["merge2", "npm:1.4.1"],\
|
|||
|
["slash", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["good-listener", [\
|
|||
|
["npm:1.2.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/good-listener-npm-1.2.2-e7865da849-f39fb82c4e.zip/node_modules/good-listener/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["good-listener", "npm:1.2.2"],\
|
|||
|
["delegate", "npm:3.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["graceful-fs", [\
|
|||
|
["npm:4.2.10", {\
|
|||
|
"packageLocation": "./.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip/node_modules/graceful-fs/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["graceful-fs", "npm:4.2.10"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["hard-rejection", [\
|
|||
|
["npm:2.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/hard-rejection-npm-2.1.0-a80f2a977d-7baaf80a0c.zip/node_modules/hard-rejection/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["hard-rejection", "npm:2.1.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["has", [\
|
|||
|
["npm:1.0.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/has-npm-1.0.3-b7f00631c1-b9ad53d53b.zip/node_modules/has/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["has", "npm:1.0.3"],\
|
|||
|
["function-bind", "npm:1.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["has-flag", [\
|
|||
|
["npm:3.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/has-flag-npm-3.0.0-16ac11fe05-4a15638b45.zip/node_modules/has-flag/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["has-flag", "npm:3.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:4.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/has-flag-npm-4.0.0-32af9f0536-261a135703.zip/node_modules/has-flag/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["has-flag", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["has-unicode", [\
|
|||
|
["npm:2.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/has-unicode-npm-2.0.1-893adb4747-1eab07a743.zip/node_modules/has-unicode/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["has-unicode", "npm:2.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["hosted-git-info", [\
|
|||
|
["npm:4.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/hosted-git-info-npm-4.1.0-4efcdf8fd3-c3f87b3c2f.zip/node_modules/hosted-git-info/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["hosted-git-info", "npm:4.1.0"],\
|
|||
|
["lru-cache", "npm:6.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["html-escaper", [\
|
|||
|
["npm:2.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/html-escaper-npm-2.0.2-38e51ef294-d2df2da3ad.zip/node_modules/html-escaper/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["html-escaper", "npm:2.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["htmlparser2", [\
|
|||
|
["npm:5.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/htmlparser2-npm-5.0.1-d50ebd0fbb-b67ac02e44.zip/node_modules/htmlparser2/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["htmlparser2", "npm:5.0.1"],\
|
|||
|
["domelementtype", "npm:2.3.0"],\
|
|||
|
["domhandler", "npm:3.3.0"],\
|
|||
|
["domutils", "npm:2.8.0"],\
|
|||
|
["entities", "npm:2.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["http-cache-semantics", [\
|
|||
|
["npm:4.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/http-cache-semantics-npm-4.1.0-860520a31f-974de94a81.zip/node_modules/http-cache-semantics/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["http-cache-semantics", "npm:4.1.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["http-proxy-agent", [\
|
|||
|
["npm:5.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/http-proxy-agent-npm-5.0.0-7f1f121b83-e2ee1ff165.zip/node_modules/http-proxy-agent/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["http-proxy-agent", "npm:5.0.0"],\
|
|||
|
["@tootallnate/once", "npm:2.0.0"],\
|
|||
|
["agent-base", "npm:6.0.2"],\
|
|||
|
["debug", "virtual:1f3c51be25fef20e854261431be23d317093b3b463e81e911f4f45a636ff582620db066c9d2a5922a428e07e10fe4788eee8196c796ce2c9bd49d22743fec207#npm:4.3.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["https-proxy-agent", [\
|
|||
|
["npm:5.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/https-proxy-agent-npm-5.0.1-42d65f358e-571fccdf38.zip/node_modules/https-proxy-agent/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["https-proxy-agent", "npm:5.0.1"],\
|
|||
|
["agent-base", "npm:6.0.2"],\
|
|||
|
["debug", "virtual:1f3c51be25fef20e854261431be23d317093b3b463e81e911f4f45a636ff582620db066c9d2a5922a428e07e10fe4788eee8196c796ce2c9bd49d22743fec207#npm:4.3.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["humanize-ms", [\
|
|||
|
["npm:1.2.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/humanize-ms-npm-1.2.1-e942bd7329-9c7a74a282.zip/node_modules/humanize-ms/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["humanize-ms", "npm:1.2.1"],\
|
|||
|
["ms", "npm:2.1.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["iconv-lite", [\
|
|||
|
["npm:0.6.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/iconv-lite-npm-0.6.3-24b8aae27e-3f60d47a5c.zip/node_modules/iconv-lite/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["iconv-lite", "npm:0.6.3"],\
|
|||
|
["safer-buffer", "npm:2.1.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["ignore", [\
|
|||
|
["npm:5.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/ignore-npm-5.2.0-fc4b58a4f3-6b1f926792.zip/node_modules/ignore/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["ignore", "npm:5.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["immutable", [\
|
|||
|
["npm:4.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/immutable-npm-4.1.0-f6635927b8-b9bc1f14fb.zip/node_modules/immutable/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["immutable", "npm:4.1.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["import-fresh", [\
|
|||
|
["npm:3.3.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/import-fresh-npm-3.3.0-3e34265ca9-2cacfad06e.zip/node_modules/import-fresh/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["import-fresh", "npm:3.3.0"],\
|
|||
|
["parent-module", "npm:1.0.1"],\
|
|||
|
["resolve-from", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["imurmurhash", [\
|
|||
|
["npm:0.1.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/imurmurhash-npm-0.1.4-610c5068a0-7cae75c8cd.zip/node_modules/imurmurhash/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["imurmurhash", "npm:0.1.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["indent-string", [\
|
|||
|
["npm:4.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/indent-string-npm-4.0.0-7b717435b2-824cfb9929.zip/node_modules/indent-string/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["indent-string", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:5.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/indent-string-npm-5.0.0-35eaa3b052-e466c27b63.zip/node_modules/indent-string/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["indent-string", "npm:5.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["infer-owner", [\
|
|||
|
["npm:1.0.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/infer-owner-npm-1.0.4-685ac3d2af-181e732764.zip/node_modules/infer-owner/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["infer-owner", "npm:1.0.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["inflight", [\
|
|||
|
["npm:1.0.6", {\
|
|||
|
"packageLocation": "./.yarn/cache/inflight-npm-1.0.6-ccedb4b908-f4f76aa072.zip/node_modules/inflight/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["inflight", "npm:1.0.6"],\
|
|||
|
["once", "npm:1.4.0"],\
|
|||
|
["wrappy", "npm:1.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["inherits", [\
|
|||
|
["npm:2.0.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip/node_modules/inherits/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["inherits", "npm:2.0.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["ip", [\
|
|||
|
["npm:1.1.8", {\
|
|||
|
"packageLocation": "./.yarn/cache/ip-npm-1.1.8-abea558b72-a2ade53eb3.zip/node_modules/ip/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["ip", "npm:1.1.8"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["is-arrayish", [\
|
|||
|
["npm:0.2.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/is-arrayish-npm-0.2.1-23927dfb15-eef4417e3c.zip/node_modules/is-arrayish/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["is-arrayish", "npm:0.2.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["is-binary-path", [\
|
|||
|
["npm:2.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/is-binary-path-npm-2.1.0-e61d46f557-84192eb88c.zip/node_modules/is-binary-path/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["is-binary-path", "npm:2.1.0"],\
|
|||
|
["binary-extensions", "npm:2.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["is-core-module", [\
|
|||
|
["npm:2.9.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/is-core-module-npm-2.9.0-5ba77c35ae-b27034318b.zip/node_modules/is-core-module/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["is-core-module", "npm:2.9.0"],\
|
|||
|
["has", "npm:1.0.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["is-extglob", [\
|
|||
|
["npm:2.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/is-extglob-npm-2.1.1-0870ea68b5-df033653d0.zip/node_modules/is-extglob/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["is-extglob", "npm:2.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["is-fullwidth-code-point", [\
|
|||
|
["npm:3.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/is-fullwidth-code-point-npm-3.0.0-1ecf4ebee5-44a30c2945.zip/node_modules/is-fullwidth-code-point/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["is-fullwidth-code-point", "npm:3.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["is-glob", [\
|
|||
|
["npm:4.0.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/is-glob-npm-4.0.3-cb87bf1bdb-d381c1319f.zip/node_modules/is-glob/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["is-glob", "npm:4.0.3"],\
|
|||
|
["is-extglob", "npm:2.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["is-lambda", [\
|
|||
|
["npm:1.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/is-lambda-npm-1.0.1-7ab55bc8a8-93a32f0194.zip/node_modules/is-lambda/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["is-lambda", "npm:1.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["is-number", [\
|
|||
|
["npm:7.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/is-number-npm-7.0.0-060086935c-456ac6f8e0.zip/node_modules/is-number/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["is-number", "npm:7.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["is-plain-obj", [\
|
|||
|
["npm:1.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/is-plain-obj-npm-1.1.0-1046f64c0b-0ee0480779.zip/node_modules/is-plain-obj/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["is-plain-obj", "npm:1.1.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["isexe", [\
|
|||
|
["npm:2.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/isexe-npm-2.0.0-b58870bd2e-26bf6c5480.zip/node_modules/isexe/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["isexe", "npm:2.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["istanbul-lib-coverage", [\
|
|||
|
["npm:3.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/istanbul-lib-coverage-npm-3.2.0-93f84b2c8c-a2a545033b.zip/node_modules/istanbul-lib-coverage/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["istanbul-lib-coverage", "npm:3.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["istanbul-lib-report", [\
|
|||
|
["npm:3.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/istanbul-lib-report-npm-3.0.0-660f97340a-3f29eb3f53.zip/node_modules/istanbul-lib-report/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["istanbul-lib-report", "npm:3.0.0"],\
|
|||
|
["istanbul-lib-coverage", "npm:3.2.0"],\
|
|||
|
["make-dir", "npm:3.1.0"],\
|
|||
|
["supports-color", "npm:7.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["istanbul-reports", [\
|
|||
|
["npm:3.1.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/istanbul-reports-npm-3.1.4-5faaa9636c-2132983355.zip/node_modules/istanbul-reports/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["istanbul-reports", "npm:3.1.4"],\
|
|||
|
["html-escaper", "npm:2.0.2"],\
|
|||
|
["istanbul-lib-report", "npm:3.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["js-tokens", [\
|
|||
|
["npm:4.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/js-tokens-npm-4.0.0-0ac852e9e2-8a95213a5a.zip/node_modules/js-tokens/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["js-tokens", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["js-yaml", [\
|
|||
|
["npm:4.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/js-yaml-npm-4.1.0-3606f32312-c7830dfd45.zip/node_modules/js-yaml/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["js-yaml", "npm:4.1.0"],\
|
|||
|
["argparse", "npm:2.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["json-parse-even-better-errors", [\
|
|||
|
["npm:2.3.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/json-parse-even-better-errors-npm-2.3.1-144d62256e-798ed4cf33.zip/node_modules/json-parse-even-better-errors/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["json-parse-even-better-errors", "npm:2.3.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["json-schema-traverse", [\
|
|||
|
["npm:0.4.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/json-schema-traverse-npm-0.4.1-4759091693-7486074d3b.zip/node_modules/json-schema-traverse/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["json-schema-traverse", "npm:0.4.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["json-stable-stringify-without-jsonify", [\
|
|||
|
["npm:1.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/json-stable-stringify-without-jsonify-npm-1.0.1-b65772b28b-cff44156dd.zip/node_modules/json-stable-stringify-without-jsonify/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["json-stable-stringify-without-jsonify", "npm:1.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["junk", [\
|
|||
|
["npm:4.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/junk-npm-4.0.0-8cf3176f64-af79841fbd.zip/node_modules/junk/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["junk", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["kind-of", [\
|
|||
|
["npm:6.0.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/kind-of-npm-6.0.3-ab15f36220-3ab01e7b1d.zip/node_modules/kind-of/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["kind-of", "npm:6.0.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["leaflet", [\
|
|||
|
["https://github.com/JLyne/Leaflet.git#commit=843eb3124492dc48245cd187c6dc94c2f33b65c1", {\
|
|||
|
"packageLocation": "./.yarn/cache/leaflet-https-ea931ed21d-7c9a6f3677.zip/node_modules/leaflet/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["leaflet", "https://github.com/JLyne/Leaflet.git#commit=843eb3124492dc48245cd187c6dc94c2f33b65c1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["levn", [\
|
|||
|
["npm:0.4.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/levn-npm-0.4.1-d183b2d7bb-12c5021c85.zip/node_modules/levn/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["levn", "npm:0.4.1"],\
|
|||
|
["prelude-ls", "npm:1.2.1"],\
|
|||
|
["type-check", "npm:0.4.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["lines-and-columns", [\
|
|||
|
["npm:1.2.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/lines-and-columns-npm-1.2.4-d6c7cc5799-0c37f9f7fa.zip/node_modules/lines-and-columns/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["lines-and-columns", "npm:1.2.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["live-atlas", [\
|
|||
|
["workspace:.", {\
|
|||
|
"packageLocation": "./",\
|
|||
|
"packageDependencies": [\
|
|||
|
["live-atlas", "workspace:."],\
|
|||
|
["@kyvg/vue3-notification", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#patch:@kyvg/vue3-notification@npm%3A2.3.0#patches/@kyvg+vue3-notification+2.3.0.patch::version=2.3.0&hash=c98249&locator=live-atlas%40workspace%3A."],\
|
|||
|
["@soerenmartius/vue3-clipboard", "npm:0.1.2"],\
|
|||
|
["@types/dynmap", "npm:3.1.1"],\
|
|||
|
["@types/leaflet", "npm:1.7.11"],\
|
|||
|
["@types/lodash.debounce", "npm:4.0.7"],\
|
|||
|
["@types/node", "npm:18.0.0"],\
|
|||
|
["@typescript-eslint/eslint-plugin", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:5.30.0"],\
|
|||
|
["@typescript-eslint/parser", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:5.30.0"],\
|
|||
|
["@vitejs/plugin-vue", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:2.3.3"],\
|
|||
|
["@vue/compiler-sfc", "npm:3.2.37"],\
|
|||
|
["@vue/eslint-config-typescript", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:10.0.0"],\
|
|||
|
["@vue/reactivity", "npm:3.2.37"],\
|
|||
|
["@vue/runtime-core", "npm:3.2.37"],\
|
|||
|
["@vue/test-utils", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:2.0.0"],\
|
|||
|
["c8", "npm:7.11.3"],\
|
|||
|
["cpy-cli", "npm:4.1.0"],\
|
|||
|
["eslint", "npm:8.18.0"],\
|
|||
|
["eslint-plugin-vue", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:8.7.1"],\
|
|||
|
["leaflet", "https://github.com/JLyne/Leaflet.git#commit=843eb3124492dc48245cd187c6dc94c2f33b65c1"],\
|
|||
|
["lodash.debounce", "npm:4.0.8"],\
|
|||
|
["modern-normalize", "patch:modern-normalize@npm%3A1.1.0#patches/modern-normalize+1.1.0.patch::version=1.1.0&hash=0cce26&locator=live-atlas%40workspace%3A."],\
|
|||
|
["rimraf", "npm:3.0.2"],\
|
|||
|
["rollup-plugin-analyzer", "npm:4.0.0"],\
|
|||
|
["sass", "npm:1.53.0"],\
|
|||
|
["ts-node", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:10.8.1"],\
|
|||
|
["typescript", "patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=7ad353"],\
|
|||
|
["vite", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:2.9.12"],\
|
|||
|
["vite-plugin-svg-sprite-component", "npm:1.0.10"],\
|
|||
|
["vitest", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:0.15.2"],\
|
|||
|
["vue", "npm:3.2.37"],\
|
|||
|
["vue-tsc", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:0.37.9"],\
|
|||
|
["vuex", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:4.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["local-pkg", [\
|
|||
|
["npm:0.4.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/local-pkg-npm-0.4.1-c7f285f64e-4ab3b4853f.zip/node_modules/local-pkg/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["local-pkg", "npm:0.4.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["locate-path", [\
|
|||
|
["npm:6.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/locate-path-npm-6.0.0-06a1e4c528-72eb661788.zip/node_modules/locate-path/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["locate-path", "npm:6.0.0"],\
|
|||
|
["p-locate", "npm:5.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["lodash", [\
|
|||
|
["npm:4.17.21", {\
|
|||
|
"packageLocation": "./.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["lodash", "npm:4.17.21"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["lodash.debounce", [\
|
|||
|
["npm:4.0.8", {\
|
|||
|
"packageLocation": "./.yarn/cache/lodash.debounce-npm-4.0.8-f1d6e09799-a3f527d22c.zip/node_modules/lodash.debounce/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["lodash.debounce", "npm:4.0.8"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["lodash.merge", [\
|
|||
|
["npm:4.6.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/lodash.merge-npm-4.6.2-77cb4416bf-ad580b4bdb.zip/node_modules/lodash.merge/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["lodash.merge", "npm:4.6.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["loupe", [\
|
|||
|
["npm:2.3.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/loupe-npm-2.3.4-2067703c8d-5af91db61a.zip/node_modules/loupe/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["loupe", "npm:2.3.4"],\
|
|||
|
["get-func-name", "npm:2.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["lru-cache", [\
|
|||
|
["npm:6.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-f97f499f89.zip/node_modules/lru-cache/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["lru-cache", "npm:6.0.0"],\
|
|||
|
["yallist", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:7.12.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/lru-cache-npm-7.12.0-eae8176c54-fdb6226297.zip/node_modules/lru-cache/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["lru-cache", "npm:7.12.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["magic-string", [\
|
|||
|
["npm:0.25.9", {\
|
|||
|
"packageLocation": "./.yarn/cache/magic-string-npm-0.25.9-0b51c0ea50-9a0e55a15c.zip/node_modules/magic-string/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["magic-string", "npm:0.25.9"],\
|
|||
|
["sourcemap-codec", "npm:1.4.8"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["make-dir", [\
|
|||
|
["npm:3.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/make-dir-npm-3.1.0-d1d7505142-484200020a.zip/node_modules/make-dir/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["make-dir", "npm:3.1.0"],\
|
|||
|
["semver", "npm:6.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["make-error", [\
|
|||
|
["npm:1.3.6", {\
|
|||
|
"packageLocation": "./.yarn/cache/make-error-npm-1.3.6-ccb85d9458-b86e5e0e25.zip/node_modules/make-error/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["make-error", "npm:1.3.6"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["make-fetch-happen", [\
|
|||
|
["npm:10.1.8", {\
|
|||
|
"packageLocation": "./.yarn/cache/make-fetch-happen-npm-10.1.8-1571a0a77a-5fe9fd9da5.zip/node_modules/make-fetch-happen/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["make-fetch-happen", "npm:10.1.8"],\
|
|||
|
["agentkeepalive", "npm:4.2.1"],\
|
|||
|
["cacache", "npm:16.1.1"],\
|
|||
|
["http-cache-semantics", "npm:4.1.0"],\
|
|||
|
["http-proxy-agent", "npm:5.0.0"],\
|
|||
|
["https-proxy-agent", "npm:5.0.1"],\
|
|||
|
["is-lambda", "npm:1.0.1"],\
|
|||
|
["lru-cache", "npm:7.12.0"],\
|
|||
|
["minipass", "npm:3.3.4"],\
|
|||
|
["minipass-collect", "npm:1.0.2"],\
|
|||
|
["minipass-fetch", "npm:2.1.0"],\
|
|||
|
["minipass-flush", "npm:1.0.5"],\
|
|||
|
["minipass-pipeline", "npm:1.2.4"],\
|
|||
|
["negotiator", "npm:0.6.3"],\
|
|||
|
["promise-retry", "npm:2.0.1"],\
|
|||
|
["socks-proxy-agent", "npm:7.0.0"],\
|
|||
|
["ssri", "npm:9.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["map-obj", [\
|
|||
|
["npm:1.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/map-obj-npm-1.0.1-fa55100fac-9949e7baec.zip/node_modules/map-obj/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["map-obj", "npm:1.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:4.3.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/map-obj-npm-4.3.0-d53e32935d-fbc554934d.zip/node_modules/map-obj/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["map-obj", "npm:4.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["meow", [\
|
|||
|
["npm:10.1.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/meow-npm-10.1.3-d181f869da-4dfa763dad.zip/node_modules/meow/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["meow", "npm:10.1.3"],\
|
|||
|
["@types/minimist", "npm:1.2.2"],\
|
|||
|
["camelcase-keys", "npm:7.0.2"],\
|
|||
|
["decamelize", "npm:5.0.1"],\
|
|||
|
["decamelize-keys", "npm:1.1.0"],\
|
|||
|
["hard-rejection", "npm:2.1.0"],\
|
|||
|
["minimist-options", "npm:4.1.0"],\
|
|||
|
["normalize-package-data", "npm:3.0.3"],\
|
|||
|
["read-pkg-up", "npm:8.0.0"],\
|
|||
|
["redent", "npm:4.0.0"],\
|
|||
|
["trim-newlines", "npm:4.0.2"],\
|
|||
|
["type-fest", "npm:1.4.0"],\
|
|||
|
["yargs-parser", "npm:20.2.9"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["merge2", [\
|
|||
|
["npm:1.4.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/merge2-npm-1.4.1-a2507bd06c-7268db63ed.zip/node_modules/merge2/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["merge2", "npm:1.4.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["micromatch", [\
|
|||
|
["npm:4.0.5", {\
|
|||
|
"packageLocation": "./.yarn/cache/micromatch-npm-4.0.5-cfab5d7669-02a17b671c.zip/node_modules/micromatch/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["micromatch", "npm:4.0.5"],\
|
|||
|
["braces", "npm:3.0.2"],\
|
|||
|
["picomatch", "npm:2.3.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["min-indent", [\
|
|||
|
["npm:1.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/min-indent-npm-1.0.1-77031f50e1-bfc6dd03c5.zip/node_modules/min-indent/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["min-indent", "npm:1.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["minimatch", [\
|
|||
|
["npm:3.1.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/minimatch-npm-3.1.2-9405269906-c154e56640.zip/node_modules/minimatch/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["minimatch", "npm:3.1.2"],\
|
|||
|
["brace-expansion", "npm:1.1.11"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:5.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/minimatch-npm-5.1.0-34f6240621-15ce53d31a.zip/node_modules/minimatch/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["minimatch", "npm:5.1.0"],\
|
|||
|
["brace-expansion", "npm:2.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["minimist-options", [\
|
|||
|
["npm:4.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/minimist-options-npm-4.1.0-64ca250fc1-8c040b3068.zip/node_modules/minimist-options/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["minimist-options", "npm:4.1.0"],\
|
|||
|
["arrify", "npm:1.0.1"],\
|
|||
|
["is-plain-obj", "npm:1.1.0"],\
|
|||
|
["kind-of", "npm:6.0.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["minipass", [\
|
|||
|
["npm:3.3.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/minipass-npm-3.3.4-6cf48a6c5e-5d95a7738c.zip/node_modules/minipass/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["minipass", "npm:3.3.4"],\
|
|||
|
["yallist", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["minipass-collect", [\
|
|||
|
["npm:1.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/minipass-collect-npm-1.0.2-3b4676eab5-14df761028.zip/node_modules/minipass-collect/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["minipass-collect", "npm:1.0.2"],\
|
|||
|
["minipass", "npm:3.3.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["minipass-fetch", [\
|
|||
|
["npm:2.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/minipass-fetch-npm-2.1.0-300ce55188-1334732859.zip/node_modules/minipass-fetch/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["minipass-fetch", "npm:2.1.0"],\
|
|||
|
["encoding", "npm:0.1.13"],\
|
|||
|
["minipass", "npm:3.3.4"],\
|
|||
|
["minipass-sized", "npm:1.0.3"],\
|
|||
|
["minizlib", "npm:2.1.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["minipass-flush", [\
|
|||
|
["npm:1.0.5", {\
|
|||
|
"packageLocation": "./.yarn/cache/minipass-flush-npm-1.0.5-efe79d9826-56269a0b22.zip/node_modules/minipass-flush/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["minipass-flush", "npm:1.0.5"],\
|
|||
|
["minipass", "npm:3.3.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["minipass-pipeline", [\
|
|||
|
["npm:1.2.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/minipass-pipeline-npm-1.2.4-5924cb077f-b14240dac0.zip/node_modules/minipass-pipeline/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["minipass-pipeline", "npm:1.2.4"],\
|
|||
|
["minipass", "npm:3.3.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["minipass-sized", [\
|
|||
|
["npm:1.0.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/minipass-sized-npm-1.0.3-306d86f432-79076749fc.zip/node_modules/minipass-sized/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["minipass-sized", "npm:1.0.3"],\
|
|||
|
["minipass", "npm:3.3.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["minizlib", [\
|
|||
|
["npm:2.1.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/minizlib-npm-2.1.2-ea89cd0cfb-f1fdeac0b0.zip/node_modules/minizlib/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["minizlib", "npm:2.1.2"],\
|
|||
|
["minipass", "npm:3.3.4"],\
|
|||
|
["yallist", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["mkdirp", [\
|
|||
|
["npm:1.0.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/mkdirp-npm-1.0.4-37f6ef56b9-a96865108c.zip/node_modules/mkdirp/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["mkdirp", "npm:1.0.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["modern-normalize", [\
|
|||
|
["patch:modern-normalize@npm%3A1.1.0#patches/modern-normalize+1.1.0.patch::version=1.1.0&hash=0cce26&locator=live-atlas%40workspace%3A.", {\
|
|||
|
"packageLocation": "./.yarn/cache/modern-normalize-patch-528d5bc8a8-d9eeec1753.zip/node_modules/modern-normalize/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["modern-normalize", "patch:modern-normalize@npm%3A1.1.0#patches/modern-normalize+1.1.0.patch::version=1.1.0&hash=0cce26&locator=live-atlas%40workspace%3A."]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["ms", [\
|
|||
|
["npm:2.1.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/ms-npm-2.1.2-ec0c1512ff-673cdb2c31.zip/node_modules/ms/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["ms", "npm:2.1.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:2.1.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/ms-npm-2.1.3-81ff3cfac1-aa92de6080.zip/node_modules/ms/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["ms", "npm:2.1.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["nanoid", [\
|
|||
|
["npm:3.3.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/nanoid-npm-3.3.4-3d250377d6-2fddd6dee9.zip/node_modules/nanoid/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["nanoid", "npm:3.3.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["natural-compare", [\
|
|||
|
["npm:1.4.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/natural-compare-npm-1.4.0-97b75b362d-23ad088b08.zip/node_modules/natural-compare/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["natural-compare", "npm:1.4.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["negotiator", [\
|
|||
|
["npm:0.6.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/negotiator-npm-0.6.3-9d50e36171-b8ffeb1e26.zip/node_modules/negotiator/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["negotiator", "npm:0.6.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["nested-error-stacks", [\
|
|||
|
["npm:2.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/nested-error-stacks-npm-2.1.1-0b1da05af0-5f452fad75.zip/node_modules/nested-error-stacks/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["nested-error-stacks", "npm:2.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["node-gyp", [\
|
|||
|
["npm:9.0.0", {\
|
|||
|
"packageLocation": "./.yarn/unplugged/node-gyp-npm-9.0.0-0eccfca4d1/node_modules/node-gyp/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["node-gyp", "npm:9.0.0"],\
|
|||
|
["env-paths", "npm:2.2.1"],\
|
|||
|
["glob", "npm:7.2.3"],\
|
|||
|
["graceful-fs", "npm:4.2.10"],\
|
|||
|
["make-fetch-happen", "npm:10.1.8"],\
|
|||
|
["nopt", "npm:5.0.0"],\
|
|||
|
["npmlog", "npm:6.0.2"],\
|
|||
|
["rimraf", "npm:3.0.2"],\
|
|||
|
["semver", "npm:7.3.7"],\
|
|||
|
["tar", "npm:6.1.11"],\
|
|||
|
["which", "npm:2.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["nopt", [\
|
|||
|
["npm:5.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/nopt-npm-5.0.0-304b40fbfe-d35fdec187.zip/node_modules/nopt/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["nopt", "npm:5.0.0"],\
|
|||
|
["abbrev", "npm:1.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["normalize-package-data", [\
|
|||
|
["npm:3.0.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["normalize-package-data", "npm:3.0.3"],\
|
|||
|
["hosted-git-info", "npm:4.1.0"],\
|
|||
|
["is-core-module", "npm:2.9.0"],\
|
|||
|
["semver", "npm:7.3.7"],\
|
|||
|
["validate-npm-package-license", "npm:3.0.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["normalize-path", [\
|
|||
|
["npm:3.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/normalize-path-npm-3.0.0-658ba7d77f-88eeb4da89.zip/node_modules/normalize-path/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["normalize-path", "npm:3.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["npmlog", [\
|
|||
|
["npm:6.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/npmlog-npm-6.0.2-e0e69455c7-ae238cd264.zip/node_modules/npmlog/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["npmlog", "npm:6.0.2"],\
|
|||
|
["are-we-there-yet", "npm:3.0.0"],\
|
|||
|
["console-control-strings", "npm:1.1.0"],\
|
|||
|
["gauge", "npm:4.0.4"],\
|
|||
|
["set-blocking", "npm:2.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["nth-check", [\
|
|||
|
["npm:2.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/nth-check-npm-2.1.1-f97afc8169-5afc3dafcd.zip/node_modules/nth-check/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["nth-check", "npm:2.1.1"],\
|
|||
|
["boolbase", "npm:1.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["once", [\
|
|||
|
["npm:1.4.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/once-npm-1.4.0-ccf03ef07a-cd0a885013.zip/node_modules/once/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["once", "npm:1.4.0"],\
|
|||
|
["wrappy", "npm:1.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["optionator", [\
|
|||
|
["npm:0.9.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/optionator-npm-0.9.1-577e397aae-dbc6fa0656.zip/node_modules/optionator/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["optionator", "npm:0.9.1"],\
|
|||
|
["deep-is", "npm:0.1.4"],\
|
|||
|
["fast-levenshtein", "npm:2.0.6"],\
|
|||
|
["levn", "npm:0.4.1"],\
|
|||
|
["prelude-ls", "npm:1.2.1"],\
|
|||
|
["type-check", "npm:0.4.0"],\
|
|||
|
["word-wrap", "npm:1.2.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["p-event", [\
|
|||
|
["npm:4.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/p-event-npm-4.2.0-1d17e9941e-8a3588f7a8.zip/node_modules/p-event/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["p-event", "npm:4.2.0"],\
|
|||
|
["p-timeout", "npm:3.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["p-filter", [\
|
|||
|
["npm:3.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/p-filter-npm-3.0.0-6c8ee98212-aacc36820f.zip/node_modules/p-filter/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["p-filter", "npm:3.0.0"],\
|
|||
|
["p-map", "npm:5.5.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["p-finally", [\
|
|||
|
["npm:1.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/p-finally-npm-1.0.0-35fbaa57c6-93a654c53d.zip/node_modules/p-finally/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["p-finally", "npm:1.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["p-limit", [\
|
|||
|
["npm:3.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/p-limit-npm-3.1.0-05d2ede37f-7c3690c4db.zip/node_modules/p-limit/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["p-limit", "npm:3.1.0"],\
|
|||
|
["yocto-queue", "npm:0.1.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["p-locate", [\
|
|||
|
["npm:5.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/p-locate-npm-5.0.0-92cc7c7a3e-1623088f36.zip/node_modules/p-locate/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["p-locate", "npm:5.0.0"],\
|
|||
|
["p-limit", "npm:3.1.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["p-map", [\
|
|||
|
["npm:4.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/p-map-npm-4.0.0-4677ae07c7-cb0ab21ec0.zip/node_modules/p-map/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["p-map", "npm:4.0.0"],\
|
|||
|
["aggregate-error", "npm:3.1.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:5.5.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/p-map-npm-5.5.0-9758eb14ee-065cb6fca6.zip/node_modules/p-map/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["p-map", "npm:5.5.0"],\
|
|||
|
["aggregate-error", "npm:4.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["p-timeout", [\
|
|||
|
["npm:3.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/p-timeout-npm-3.2.0-7fdb33f733-3dd0eaa048.zip/node_modules/p-timeout/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["p-timeout", "npm:3.2.0"],\
|
|||
|
["p-finally", "npm:1.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["parent-module", [\
|
|||
|
["npm:1.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/parent-module-npm-1.0.1-1fae11b095-6ba8b25514.zip/node_modules/parent-module/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["parent-module", "npm:1.0.1"],\
|
|||
|
["callsites", "npm:3.1.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["parse-json", [\
|
|||
|
["npm:5.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/parse-json-npm-5.2.0-00a63b1199-62085b17d6.zip/node_modules/parse-json/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["parse-json", "npm:5.2.0"],\
|
|||
|
["@babel/code-frame", "npm:7.18.6"],\
|
|||
|
["error-ex", "npm:1.3.2"],\
|
|||
|
["json-parse-even-better-errors", "npm:2.3.1"],\
|
|||
|
["lines-and-columns", "npm:1.2.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["path-exists", [\
|
|||
|
["npm:4.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/path-exists-npm-4.0.0-e9e4f63eb0-505807199d.zip/node_modules/path-exists/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["path-exists", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["path-is-absolute", [\
|
|||
|
["npm:1.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/path-is-absolute-npm-1.0.1-31bc695ffd-060840f92c.zip/node_modules/path-is-absolute/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["path-is-absolute", "npm:1.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["path-key", [\
|
|||
|
["npm:3.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/path-key-npm-3.1.1-0e66ea8321-55cd7a9dd4.zip/node_modules/path-key/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["path-key", "npm:3.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["path-parse", [\
|
|||
|
["npm:1.0.7", {\
|
|||
|
"packageLocation": "./.yarn/cache/path-parse-npm-1.0.7-09564527b7-49abf3d811.zip/node_modules/path-parse/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["path-parse", "npm:1.0.7"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["path-type", [\
|
|||
|
["npm:4.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/path-type-npm-4.0.0-10d47fc86a-5b1e2daa24.zip/node_modules/path-type/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["path-type", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["pathval", [\
|
|||
|
["npm:1.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/pathval-npm-1.1.1-ce0311d7e0-090e314771.zip/node_modules/pathval/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["pathval", "npm:1.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["picocolors", [\
|
|||
|
["npm:1.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/picocolors-npm-1.0.0-d81e0b1927-a2e8092dd8.zip/node_modules/picocolors/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["picocolors", "npm:1.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["picomatch", [\
|
|||
|
["npm:2.3.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/picomatch-npm-2.3.1-c782cfd986-050c865ce8.zip/node_modules/picomatch/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["picomatch", "npm:2.3.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["postcss", [\
|
|||
|
["npm:8.4.14", {\
|
|||
|
"packageLocation": "./.yarn/cache/postcss-npm-8.4.14-c0d448b728-fe58766ff3.zip/node_modules/postcss/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["postcss", "npm:8.4.14"],\
|
|||
|
["nanoid", "npm:3.3.4"],\
|
|||
|
["picocolors", "npm:1.0.0"],\
|
|||
|
["source-map-js", "npm:1.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["postcss-selector-parser", [\
|
|||
|
["npm:6.0.10", {\
|
|||
|
"packageLocation": "./.yarn/cache/postcss-selector-parser-npm-6.0.10-a4d7aaa270-46afaa60e3.zip/node_modules/postcss-selector-parser/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["postcss-selector-parser", "npm:6.0.10"],\
|
|||
|
["cssesc", "npm:3.0.0"],\
|
|||
|
["util-deprecate", "npm:1.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["prelude-ls", [\
|
|||
|
["npm:1.2.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/prelude-ls-npm-1.2.1-3e4d272a55-cd192ec0d0.zip/node_modules/prelude-ls/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["prelude-ls", "npm:1.2.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["promise-inflight", [\
|
|||
|
["npm:1.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/promise-inflight-npm-1.0.1-5bb925afac-2274948309.zip/node_modules/promise-inflight/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["promise-inflight", "npm:1.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:84a00badf32fd1afaf93817400747915046d2012712b8d0165c9b380a8ca122b717268023cb7925f79b92bac1d0305a8c7f77f430ac0705ca3d110cd76516a4c#npm:1.0.1", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/promise-inflight-virtual-19d408057d/0/cache/promise-inflight-npm-1.0.1-5bb925afac-2274948309.zip/node_modules/promise-inflight/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["promise-inflight", "virtual:84a00badf32fd1afaf93817400747915046d2012712b8d0165c9b380a8ca122b717268023cb7925f79b92bac1d0305a8c7f77f430ac0705ca3d110cd76516a4c#npm:1.0.1"],\
|
|||
|
["@types/bluebird", null],\
|
|||
|
["bluebird", null]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/bluebird",\
|
|||
|
"bluebird"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["promise-retry", [\
|
|||
|
["npm:2.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/promise-retry-npm-2.0.1-871f0b01b7-f96a3f6d90.zip/node_modules/promise-retry/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["promise-retry", "npm:2.0.1"],\
|
|||
|
["err-code", "npm:2.0.3"],\
|
|||
|
["retry", "npm:0.12.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["punycode", [\
|
|||
|
["npm:2.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/punycode-npm-2.1.1-26eb3e15cf-823bf443c6.zip/node_modules/punycode/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["punycode", "npm:2.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["queue-microtask", [\
|
|||
|
["npm:1.2.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/queue-microtask-npm-1.2.3-fcc98e4e2d-b676f8c040.zip/node_modules/queue-microtask/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["queue-microtask", "npm:1.2.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["quick-lru", [\
|
|||
|
["npm:5.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/quick-lru-npm-5.1.1-e38e0edce3-a516faa255.zip/node_modules/quick-lru/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["quick-lru", "npm:5.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["read-pkg", [\
|
|||
|
["npm:6.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/read-pkg-npm-6.0.0-d89ce14684-0cebdff381.zip/node_modules/read-pkg/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["read-pkg", "npm:6.0.0"],\
|
|||
|
["@types/normalize-package-data", "npm:2.4.1"],\
|
|||
|
["normalize-package-data", "npm:3.0.3"],\
|
|||
|
["parse-json", "npm:5.2.0"],\
|
|||
|
["type-fest", "npm:1.4.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["read-pkg-up", [\
|
|||
|
["npm:8.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/read-pkg-up-npm-8.0.0-6f39941cc9-fe4c804016.zip/node_modules/read-pkg-up/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["read-pkg-up", "npm:8.0.0"],\
|
|||
|
["find-up", "npm:5.0.0"],\
|
|||
|
["read-pkg", "npm:6.0.0"],\
|
|||
|
["type-fest", "npm:1.4.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["readable-stream", [\
|
|||
|
["npm:3.6.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["readable-stream", "npm:3.6.0"],\
|
|||
|
["inherits", "npm:2.0.4"],\
|
|||
|
["string_decoder", "npm:1.3.0"],\
|
|||
|
["util-deprecate", "npm:1.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["readdirp", [\
|
|||
|
["npm:3.6.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/readdirp-npm-3.6.0-f950cc74ab-1ced032e6e.zip/node_modules/readdirp/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["readdirp", "npm:3.6.0"],\
|
|||
|
["picomatch", "npm:2.3.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["redent", [\
|
|||
|
["npm:4.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/redent-npm-4.0.0-67da39f156-6944e7b1d8.zip/node_modules/redent/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["redent", "npm:4.0.0"],\
|
|||
|
["indent-string", "npm:5.0.0"],\
|
|||
|
["strip-indent", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["regexpp", [\
|
|||
|
["npm:3.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/regexpp-npm-3.2.0-2513f32cfc-a78dc5c715.zip/node_modules/regexpp/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["regexpp", "npm:3.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["require-directory", [\
|
|||
|
["npm:2.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/require-directory-npm-2.1.1-8608aee50b-fb47e70bf0.zip/node_modules/require-directory/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["require-directory", "npm:2.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["resolve", [\
|
|||
|
["patch:resolve@npm%3A1.22.1#~builtin<compat/resolve>::version=1.22.1&hash=07638b", {\
|
|||
|
"packageLocation": "./.yarn/cache/resolve-patch-46f9469d0d-5656f4d0be.zip/node_modules/resolve/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["resolve", "patch:resolve@npm%3A1.22.1#~builtin<compat/resolve>::version=1.22.1&hash=07638b"],\
|
|||
|
["is-core-module", "npm:2.9.0"],\
|
|||
|
["path-parse", "npm:1.0.7"],\
|
|||
|
["supports-preserve-symlinks-flag", "npm:1.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["resolve-from", [\
|
|||
|
["npm:4.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/resolve-from-npm-4.0.0-f758ec21bf-f4ba0b8494.zip/node_modules/resolve-from/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["resolve-from", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["retry", [\
|
|||
|
["npm:0.12.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/retry-npm-0.12.0-72ac7fb4cc-623bd7d2e5.zip/node_modules/retry/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["retry", "npm:0.12.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["reusify", [\
|
|||
|
["npm:1.0.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/reusify-npm-1.0.4-95ac4aec11-c3076ebcc2.zip/node_modules/reusify/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["reusify", "npm:1.0.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["rimraf", [\
|
|||
|
["npm:3.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/rimraf-npm-3.0.2-2cb7dac69a-87f4164e39.zip/node_modules/rimraf/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["rimraf", "npm:3.0.2"],\
|
|||
|
["glob", "npm:7.2.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["rollup", [\
|
|||
|
["npm:2.75.7", {\
|
|||
|
"packageLocation": "./.yarn/cache/rollup-npm-2.75.7-3918160ee7-a6331d46b0.zip/node_modules/rollup/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["rollup", "npm:2.75.7"],\
|
|||
|
["fsevents", "patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["rollup-plugin-analyzer", [\
|
|||
|
["npm:4.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/rollup-plugin-analyzer-npm-4.0.0-fff416638d-72f794f79e.zip/node_modules/rollup-plugin-analyzer/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["rollup-plugin-analyzer", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["run-parallel", [\
|
|||
|
["npm:1.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/run-parallel-npm-1.2.0-3f47ff2034-cb4f97ad25.zip/node_modules/run-parallel/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["run-parallel", "npm:1.2.0"],\
|
|||
|
["queue-microtask", "npm:1.2.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["safe-buffer", [\
|
|||
|
["npm:5.1.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/safe-buffer-npm-5.1.2-c27fedf6c4-f2f1f7943c.zip/node_modules/safe-buffer/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["safe-buffer", "npm:5.1.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:5.2.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/safe-buffer-npm-5.2.1-3481c8aa9b-b99c4b41fd.zip/node_modules/safe-buffer/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["safe-buffer", "npm:5.2.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["safer-buffer", [\
|
|||
|
["npm:2.1.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/safer-buffer-npm-2.1.2-8d5c0b705e-cab8f25ae6.zip/node_modules/safer-buffer/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["safer-buffer", "npm:2.1.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["sass", [\
|
|||
|
["npm:1.53.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/sass-npm-1.53.0-84886439f0-4bcb0617d6.zip/node_modules/sass/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["sass", "npm:1.53.0"],\
|
|||
|
["chokidar", "npm:3.5.3"],\
|
|||
|
["immutable", "npm:4.1.0"],\
|
|||
|
["source-map-js", "npm:1.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["select", [\
|
|||
|
["npm:1.1.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/select-npm-1.1.2-13cd366fa2-4346151e94.zip/node_modules/select/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["select", "npm:1.1.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["semver", [\
|
|||
|
["npm:6.3.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/semver-npm-6.3.0-b3eace8bfd-1b26ecf6db.zip/node_modules/semver/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["semver", "npm:6.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:7.3.7", {\
|
|||
|
"packageLocation": "./.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["semver", "npm:7.3.7"],\
|
|||
|
["lru-cache", "npm:6.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["set-blocking", [\
|
|||
|
["npm:2.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/set-blocking-npm-2.0.0-49e2cffa24-6e65a05f7c.zip/node_modules/set-blocking/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["set-blocking", "npm:2.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["shebang-command", [\
|
|||
|
["npm:2.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/shebang-command-npm-2.0.0-eb2b01921d-6b52fe8727.zip/node_modules/shebang-command/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["shebang-command", "npm:2.0.0"],\
|
|||
|
["shebang-regex", "npm:3.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["shebang-regex", [\
|
|||
|
["npm:3.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/shebang-regex-npm-3.0.0-899a0cd65e-1a2bcae50d.zip/node_modules/shebang-regex/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["shebang-regex", "npm:3.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["signal-exit", [\
|
|||
|
["npm:3.0.7", {\
|
|||
|
"packageLocation": "./.yarn/cache/signal-exit-npm-3.0.7-bd270458a3-a2f098f247.zip/node_modules/signal-exit/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["signal-exit", "npm:3.0.7"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["slash", [\
|
|||
|
["npm:3.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/slash-npm-3.0.0-b87de2279a-94a93fff61.zip/node_modules/slash/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["slash", "npm:3.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:4.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/slash-npm-4.0.0-ce4bbc4a80-da8e4af737.zip/node_modules/slash/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["slash", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["smart-buffer", [\
|
|||
|
["npm:4.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/smart-buffer-npm-4.2.0-5ac3f668bb-b5167a7142.zip/node_modules/smart-buffer/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["smart-buffer", "npm:4.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["socks", [\
|
|||
|
["npm:2.6.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/socks-npm-2.6.2-94c1dcb8b8-dd91942930.zip/node_modules/socks/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["socks", "npm:2.6.2"],\
|
|||
|
["ip", "npm:1.1.8"],\
|
|||
|
["smart-buffer", "npm:4.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["socks-proxy-agent", [\
|
|||
|
["npm:7.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/socks-proxy-agent-npm-7.0.0-7aacf32ea0-7205543701.zip/node_modules/socks-proxy-agent/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["socks-proxy-agent", "npm:7.0.0"],\
|
|||
|
["agent-base", "npm:6.0.2"],\
|
|||
|
["debug", "virtual:1f3c51be25fef20e854261431be23d317093b3b463e81e911f4f45a636ff582620db066c9d2a5922a428e07e10fe4788eee8196c796ce2c9bd49d22743fec207#npm:4.3.4"],\
|
|||
|
["socks", "npm:2.6.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["source-map", [\
|
|||
|
["npm:0.6.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["source-map", "npm:0.6.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["source-map-js", [\
|
|||
|
["npm:1.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/source-map-js-npm-1.0.2-ee4f9f9b30-c049a7fc4d.zip/node_modules/source-map-js/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["source-map-js", "npm:1.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["sourcemap-codec", [\
|
|||
|
["npm:1.4.8", {\
|
|||
|
"packageLocation": "./.yarn/cache/sourcemap-codec-npm-1.4.8-3a1a9e60b1-b57981c056.zip/node_modules/sourcemap-codec/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["sourcemap-codec", "npm:1.4.8"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["spdx-correct", [\
|
|||
|
["npm:3.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/spdx-correct-npm-3.1.1-47f574c27a-77ce438344.zip/node_modules/spdx-correct/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["spdx-correct", "npm:3.1.1"],\
|
|||
|
["spdx-expression-parse", "npm:3.0.1"],\
|
|||
|
["spdx-license-ids", "npm:3.0.11"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["spdx-exceptions", [\
|
|||
|
["npm:2.3.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/spdx-exceptions-npm-2.3.0-2b68dad75a-cb69a26fa3.zip/node_modules/spdx-exceptions/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["spdx-exceptions", "npm:2.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["spdx-expression-parse", [\
|
|||
|
["npm:3.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/spdx-expression-parse-npm-3.0.1-b718cbb35a-a1c6e104a2.zip/node_modules/spdx-expression-parse/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["spdx-expression-parse", "npm:3.0.1"],\
|
|||
|
["spdx-exceptions", "npm:2.3.0"],\
|
|||
|
["spdx-license-ids", "npm:3.0.11"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["spdx-license-ids", [\
|
|||
|
["npm:3.0.11", {\
|
|||
|
"packageLocation": "./.yarn/cache/spdx-license-ids-npm-3.0.11-a8d9a5ff74-1da1acb090.zip/node_modules/spdx-license-ids/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["spdx-license-ids", "npm:3.0.11"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["ssri", [\
|
|||
|
["npm:9.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/ssri-npm-9.0.1-33ce27f4f8-fb58f5e46b.zip/node_modules/ssri/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["ssri", "npm:9.0.1"],\
|
|||
|
["minipass", "npm:3.3.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["string-width", [\
|
|||
|
["npm:4.2.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/string-width-npm-4.2.3-2c27177bae-e52c10dc3f.zip/node_modules/string-width/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["string-width", "npm:4.2.3"],\
|
|||
|
["emoji-regex", "npm:8.0.0"],\
|
|||
|
["is-fullwidth-code-point", "npm:3.0.0"],\
|
|||
|
["strip-ansi", "npm:6.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["string_decoder", [\
|
|||
|
["npm:1.3.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/string_decoder-npm-1.3.0-2422117fd0-8417646695.zip/node_modules/string_decoder/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["string_decoder", "npm:1.3.0"],\
|
|||
|
["safe-buffer", "npm:5.2.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["strip-ansi", [\
|
|||
|
["npm:6.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/strip-ansi-npm-6.0.1-caddc7cb40-f3cd25890a.zip/node_modules/strip-ansi/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["strip-ansi", "npm:6.0.1"],\
|
|||
|
["ansi-regex", "npm:5.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["strip-indent", [\
|
|||
|
["npm:4.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/strip-indent-npm-4.0.0-12c489be86-06cbcd93da.zip/node_modules/strip-indent/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["strip-indent", "npm:4.0.0"],\
|
|||
|
["min-indent", "npm:1.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["strip-json-comments", [\
|
|||
|
["npm:3.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/strip-json-comments-npm-3.1.1-dcb2324823-492f73e272.zip/node_modules/strip-json-comments/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["strip-json-comments", "npm:3.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["supports-color", [\
|
|||
|
["npm:5.5.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/supports-color-npm-5.5.0-183ac537bc-95f6f4ba5a.zip/node_modules/supports-color/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["supports-color", "npm:5.5.0"],\
|
|||
|
["has-flag", "npm:3.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:7.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/supports-color-npm-7.2.0-606bfcf7da-3dda818de0.zip/node_modules/supports-color/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["supports-color", "npm:7.2.0"],\
|
|||
|
["has-flag", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["supports-preserve-symlinks-flag", [\
|
|||
|
["npm:1.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/supports-preserve-symlinks-flag-npm-1.0.0-f17c4d0028-53b1e247e6.zip/node_modules/supports-preserve-symlinks-flag/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["supports-preserve-symlinks-flag", "npm:1.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["tar", [\
|
|||
|
["npm:6.1.11", {\
|
|||
|
"packageLocation": "./.yarn/cache/tar-npm-6.1.11-e6ac3cba9c-a04c07bb9e.zip/node_modules/tar/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["tar", "npm:6.1.11"],\
|
|||
|
["chownr", "npm:2.0.0"],\
|
|||
|
["fs-minipass", "npm:2.1.0"],\
|
|||
|
["minipass", "npm:3.3.4"],\
|
|||
|
["minizlib", "npm:2.1.2"],\
|
|||
|
["mkdirp", "npm:1.0.4"],\
|
|||
|
["yallist", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["test-exclude", [\
|
|||
|
["npm:6.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/test-exclude-npm-6.0.0-3fb03d69df-3b34a3d771.zip/node_modules/test-exclude/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["test-exclude", "npm:6.0.0"],\
|
|||
|
["@istanbuljs/schema", "npm:0.1.3"],\
|
|||
|
["glob", "npm:7.2.3"],\
|
|||
|
["minimatch", "npm:3.1.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["text-table", [\
|
|||
|
["npm:0.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/text-table-npm-0.2.0-d92a778b59-b6937a38c8.zip/node_modules/text-table/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["text-table", "npm:0.2.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["tiny-emitter", [\
|
|||
|
["npm:2.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/tiny-emitter-npm-2.1.0-2a4d94f487-fbcfb51457.zip/node_modules/tiny-emitter/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["tiny-emitter", "npm:2.1.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["tinypool", [\
|
|||
|
["npm:0.1.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/tinypool-npm-0.1.3-e53f5bf61a-13ac687a23.zip/node_modules/tinypool/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["tinypool", "npm:0.1.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["tinyspy", [\
|
|||
|
["npm:0.3.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/tinyspy-npm-0.3.3-ab1d101b5c-1beb8f04c1.zip/node_modules/tinyspy/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["tinyspy", "npm:0.3.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["to-fast-properties", [\
|
|||
|
["npm:2.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/to-fast-properties-npm-2.0.0-0dc60cc481-be2de62fe5.zip/node_modules/to-fast-properties/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["to-fast-properties", "npm:2.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["to-regex-range", [\
|
|||
|
["npm:5.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/to-regex-range-npm-5.0.1-f1e8263b00-f76fa01b3d.zip/node_modules/to-regex-range/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["to-regex-range", "npm:5.0.1"],\
|
|||
|
["is-number", "npm:7.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["trim-newlines", [\
|
|||
|
["npm:4.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/trim-newlines-npm-4.0.2-e01f9adaf9-1eef206eb7.zip/node_modules/trim-newlines/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["trim-newlines", "npm:4.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["ts-node", [\
|
|||
|
["npm:10.8.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/ts-node-npm-10.8.1-24280b0982-7d1aa7aa3a.zip/node_modules/ts-node/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["ts-node", "npm:10.8.1"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:10.8.1", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/ts-node-virtual-10d8d560c5/0/cache/ts-node-npm-10.8.1-24280b0982-7d1aa7aa3a.zip/node_modules/ts-node/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["ts-node", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:10.8.1"],\
|
|||
|
["@cspotcode/source-map-support", "npm:0.8.1"],\
|
|||
|
["@swc/core", null],\
|
|||
|
["@swc/wasm", null],\
|
|||
|
["@tsconfig/node10", "npm:1.0.9"],\
|
|||
|
["@tsconfig/node12", "npm:1.0.11"],\
|
|||
|
["@tsconfig/node14", "npm:1.0.3"],\
|
|||
|
["@tsconfig/node16", "npm:1.0.3"],\
|
|||
|
["@types/node", "npm:18.0.0"],\
|
|||
|
["@types/swc__core", null],\
|
|||
|
["@types/swc__wasm", null],\
|
|||
|
["@types/typescript", null],\
|
|||
|
["acorn", "npm:8.7.1"],\
|
|||
|
["acorn-walk", "npm:8.2.0"],\
|
|||
|
["arg", "npm:4.1.3"],\
|
|||
|
["create-require", "npm:1.1.1"],\
|
|||
|
["diff", "npm:4.0.2"],\
|
|||
|
["make-error", "npm:1.3.6"],\
|
|||
|
["typescript", "patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=7ad353"],\
|
|||
|
["v8-compile-cache-lib", "npm:3.0.1"],\
|
|||
|
["yn", "npm:3.1.1"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@swc/core",\
|
|||
|
"@swc/wasm",\
|
|||
|
"@types/node",\
|
|||
|
"@types/swc__core",\
|
|||
|
"@types/swc__wasm",\
|
|||
|
"@types/typescript",\
|
|||
|
"typescript"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["tslib", [\
|
|||
|
["npm:1.14.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/tslib-npm-1.14.1-102499115e-dbe628ef87.zip/node_modules/tslib/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["tslib", "npm:1.14.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["tsutils", [\
|
|||
|
["npm:3.21.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/tsutils-npm-3.21.0-347e6636c5-1843f4c1b2.zip/node_modules/tsutils/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["tsutils", "npm:3.21.0"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:207df49e2c7c5c1f8f4bb49fffbe750ded7fdf837b8db565ba256c3342fbd2211fbbe16c672c01156ee51f17bd351ea390f17e479d78f2e75562b4da3cafe666#npm:3.21.0", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/tsutils-virtual-79b5a722ff/0/cache/tsutils-npm-3.21.0-347e6636c5-1843f4c1b2.zip/node_modules/tsutils/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["tsutils", "virtual:207df49e2c7c5c1f8f4bb49fffbe750ded7fdf837b8db565ba256c3342fbd2211fbbe16c672c01156ee51f17bd351ea390f17e479d78f2e75562b4da3cafe666#npm:3.21.0"],\
|
|||
|
["@types/typescript", null],\
|
|||
|
["tslib", "npm:1.14.1"],\
|
|||
|
["typescript", "patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=7ad353"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/typescript",\
|
|||
|
"typescript"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["virtual:7aabd768ca17d614d349c06d1e63af4544eba2c591f6b6d6d91674798050a6a67a1e8511567728107ac3cb922dab565ed36d29d5cfe00259999aef281f45dd2a#npm:3.21.0", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/tsutils-virtual-8405111cd1/0/cache/tsutils-npm-3.21.0-347e6636c5-1843f4c1b2.zip/node_modules/tsutils/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["tsutils", "virtual:7aabd768ca17d614d349c06d1e63af4544eba2c591f6b6d6d91674798050a6a67a1e8511567728107ac3cb922dab565ed36d29d5cfe00259999aef281f45dd2a#npm:3.21.0"],\
|
|||
|
["@types/typescript", null],\
|
|||
|
["tslib", "npm:1.14.1"],\
|
|||
|
["typescript", null]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/typescript",\
|
|||
|
"typescript"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["type-check", [\
|
|||
|
["npm:0.4.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/type-check-npm-0.4.0-60565800ce-ec688ebfc9.zip/node_modules/type-check/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["type-check", "npm:0.4.0"],\
|
|||
|
["prelude-ls", "npm:1.2.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["type-detect", [\
|
|||
|
["npm:4.0.8", {\
|
|||
|
"packageLocation": "./.yarn/cache/type-detect-npm-4.0.8-8d8127b901-62b5628bff.zip/node_modules/type-detect/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["type-detect", "npm:4.0.8"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["type-fest", [\
|
|||
|
["npm:0.20.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/type-fest-npm-0.20.2-b36432617f-4fb3272df2.zip/node_modules/type-fest/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["type-fest", "npm:0.20.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["npm:1.4.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/type-fest-npm-1.4.0-7dd848962a-b011c33886.zip/node_modules/type-fest/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["type-fest", "npm:1.4.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["typescript", [\
|
|||
|
["patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=7ad353", {\
|
|||
|
"packageLocation": "./.yarn/cache/typescript-patch-e8b9857d0c-9096d8f6c1.zip/node_modules/typescript/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["typescript", "patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=7ad353"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["unique-filename", [\
|
|||
|
["npm:1.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/unique-filename-npm-1.1.1-c885c5095b-cf4998c922.zip/node_modules/unique-filename/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["unique-filename", "npm:1.1.1"],\
|
|||
|
["unique-slug", "npm:2.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["unique-slug", [\
|
|||
|
["npm:2.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/unique-slug-npm-2.0.2-f6ba1ddeb7-5b6876a645.zip/node_modules/unique-slug/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["unique-slug", "npm:2.0.2"],\
|
|||
|
["imurmurhash", "npm:0.1.4"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["uri-js", [\
|
|||
|
["npm:4.4.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/uri-js-npm-4.4.1-66d11cbcaf-7167432de6.zip/node_modules/uri-js/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["uri-js", "npm:4.4.1"],\
|
|||
|
["punycode", "npm:2.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["util-deprecate", [\
|
|||
|
["npm:1.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/util-deprecate-npm-1.0.2-e3fe1a219c-474acf1146.zip/node_modules/util-deprecate/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["util-deprecate", "npm:1.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["v8-compile-cache", [\
|
|||
|
["npm:2.3.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/v8-compile-cache-npm-2.3.0-961375f150-adb0a271ea.zip/node_modules/v8-compile-cache/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["v8-compile-cache", "npm:2.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["v8-compile-cache-lib", [\
|
|||
|
["npm:3.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/v8-compile-cache-lib-npm-3.0.1-4886071ece-78089ad549.zip/node_modules/v8-compile-cache-lib/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["v8-compile-cache-lib", "npm:3.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["v8-to-istanbul", [\
|
|||
|
["npm:9.0.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/v8-to-istanbul-npm-9.0.1-58bbce7857-a49c34bf0a.zip/node_modules/v8-to-istanbul/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["v8-to-istanbul", "npm:9.0.1"],\
|
|||
|
["@jridgewell/trace-mapping", "npm:0.3.14"],\
|
|||
|
["@types/istanbul-lib-coverage", "npm:2.0.4"],\
|
|||
|
["convert-source-map", "npm:1.8.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["validate-npm-package-license", [\
|
|||
|
["npm:3.0.4", {\
|
|||
|
"packageLocation": "./.yarn/cache/validate-npm-package-license-npm-3.0.4-7af8adc7a8-35703ac889.zip/node_modules/validate-npm-package-license/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["validate-npm-package-license", "npm:3.0.4"],\
|
|||
|
["spdx-correct", "npm:3.1.1"],\
|
|||
|
["spdx-expression-parse", "npm:3.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["vite", [\
|
|||
|
["npm:2.9.12", {\
|
|||
|
"packageLocation": "./.yarn/cache/vite-npm-2.9.12-406992b98c-33cf8b6bfb.zip/node_modules/vite/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["vite", "npm:2.9.12"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["npm:2.9.13", {\
|
|||
|
"packageLocation": "./.yarn/cache/vite-npm-2.9.13-cda1bb45b9-a5e501b920.zip/node_modules/vite/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["vite", "npm:2.9.13"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:4ca631ca1d2949c06025a52558a5ea140e154d19e592a46cdb2d8e8693735613c0f033aa94b015265539bc6bd0ca4ec238bde484493e634dbe4be940f393f87b#npm:2.9.13", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/vite-virtual-89c2eb7115/0/cache/vite-npm-2.9.13-cda1bb45b9-a5e501b920.zip/node_modules/vite/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["vite", "virtual:4ca631ca1d2949c06025a52558a5ea140e154d19e592a46cdb2d8e8693735613c0f033aa94b015265539bc6bd0ca4ec238bde484493e634dbe4be940f393f87b#npm:2.9.13"],\
|
|||
|
["@types/less", null],\
|
|||
|
["@types/sass", null],\
|
|||
|
["@types/stylus", null],\
|
|||
|
["esbuild", "npm:0.14.47"],\
|
|||
|
["fsevents", "patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7"],\
|
|||
|
["less", null],\
|
|||
|
["postcss", "npm:8.4.14"],\
|
|||
|
["resolve", "patch:resolve@npm%3A1.22.1#~builtin<compat/resolve>::version=1.22.1&hash=07638b"],\
|
|||
|
["rollup", "npm:2.75.7"],\
|
|||
|
["sass", null],\
|
|||
|
["stylus", null]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/less",\
|
|||
|
"@types/sass",\
|
|||
|
"@types/stylus",\
|
|||
|
"less",\
|
|||
|
"sass",\
|
|||
|
"stylus"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}],\
|
|||
|
["virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:2.9.12", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/vite-virtual-d350fe9c56/0/cache/vite-npm-2.9.12-406992b98c-33cf8b6bfb.zip/node_modules/vite/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["vite", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:2.9.12"],\
|
|||
|
["@types/less", null],\
|
|||
|
["@types/sass", null],\
|
|||
|
["@types/stylus", null],\
|
|||
|
["esbuild", "npm:0.14.47"],\
|
|||
|
["fsevents", "patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7"],\
|
|||
|
["less", null],\
|
|||
|
["postcss", "npm:8.4.14"],\
|
|||
|
["resolve", "patch:resolve@npm%3A1.22.1#~builtin<compat/resolve>::version=1.22.1&hash=07638b"],\
|
|||
|
["rollup", "npm:2.75.7"],\
|
|||
|
["sass", "npm:1.53.0"],\
|
|||
|
["stylus", null]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/less",\
|
|||
|
"@types/sass",\
|
|||
|
"@types/stylus",\
|
|||
|
"less",\
|
|||
|
"sass",\
|
|||
|
"stylus"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["vite-plugin-svg-sprite-component", [\
|
|||
|
["npm:1.0.10", {\
|
|||
|
"packageLocation": "./.yarn/cache/vite-plugin-svg-sprite-component-npm-1.0.10-cfb4ddaf23-c02725081f.zip/node_modules/vite-plugin-svg-sprite-component/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["vite-plugin-svg-sprite-component", "npm:1.0.10"],\
|
|||
|
["dom-serializer", "npm:2.0.0"],\
|
|||
|
["htmlparser2", "npm:5.0.1"],\
|
|||
|
["magic-string", "npm:0.25.9"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["vitest", [\
|
|||
|
["npm:0.15.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/vitest-npm-0.15.2-acc11b1434-48b6f98ece.zip/node_modules/vitest/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["vitest", "npm:0.15.2"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:0.15.2", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/vitest-virtual-4ca631ca1d/0/cache/vitest-npm-0.15.2-acc11b1434-48b6f98ece.zip/node_modules/vitest/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["vitest", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:0.15.2"],\
|
|||
|
["@types/c8", null],\
|
|||
|
["@types/chai", "npm:4.3.1"],\
|
|||
|
["@types/chai-subset", "npm:1.3.3"],\
|
|||
|
["@types/happy-dom", null],\
|
|||
|
["@types/jsdom", null],\
|
|||
|
["@types/node", "npm:18.0.0"],\
|
|||
|
["@types/vitest__ui", null],\
|
|||
|
["@vitest/ui", null],\
|
|||
|
["c8", "npm:7.11.3"],\
|
|||
|
["chai", "npm:4.3.6"],\
|
|||
|
["debug", "virtual:1f3c51be25fef20e854261431be23d317093b3b463e81e911f4f45a636ff582620db066c9d2a5922a428e07e10fe4788eee8196c796ce2c9bd49d22743fec207#npm:4.3.4"],\
|
|||
|
["happy-dom", null],\
|
|||
|
["jsdom", null],\
|
|||
|
["local-pkg", "npm:0.4.1"],\
|
|||
|
["tinypool", "npm:0.1.3"],\
|
|||
|
["tinyspy", "npm:0.3.3"],\
|
|||
|
["vite", "virtual:4ca631ca1d2949c06025a52558a5ea140e154d19e592a46cdb2d8e8693735613c0f033aa94b015265539bc6bd0ca4ec238bde484493e634dbe4be940f393f87b#npm:2.9.13"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/c8",\
|
|||
|
"@types/happy-dom",\
|
|||
|
"@types/jsdom",\
|
|||
|
"@types/vitest__ui",\
|
|||
|
"@vitest/ui",\
|
|||
|
"c8",\
|
|||
|
"happy-dom",\
|
|||
|
"jsdom"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["vue", [\
|
|||
|
["npm:3.2.37", {\
|
|||
|
"packageLocation": "./.yarn/cache/vue-npm-3.2.37-c15242c7af-cd20069c31.zip/node_modules/vue/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["vue", "npm:3.2.37"],\
|
|||
|
["@vue/compiler-dom", "npm:3.2.37"],\
|
|||
|
["@vue/compiler-sfc", "npm:3.2.37"],\
|
|||
|
["@vue/runtime-dom", "npm:3.2.37"],\
|
|||
|
["@vue/server-renderer", "virtual:c15242c7af88e957688e92d9c054d0c6533fd55fdb771c3854473b923e00751099a2c292023fc5bcf1d904adde806541a7f6b2b8e48d11e76ccb2ee0856b45bd#npm:3.2.37"],\
|
|||
|
["@vue/shared", "npm:3.2.37"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["vue-eslint-parser", [\
|
|||
|
["npm:8.3.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/vue-eslint-parser-npm-8.3.0-961d6d1447-8cc751e9fc.zip/node_modules/vue-eslint-parser/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["vue-eslint-parser", "npm:8.3.0"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:9bd4bcf4dac8ed135c1c46679da10f9f418432974de09d194e63d188f9824382a047bdd72fd0dbdf689cf390d44f9cf3c579926587bb020f4a7de4f34e75d717#npm:8.3.0", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/vue-eslint-parser-virtual-72bd20fab4/0/cache/vue-eslint-parser-npm-8.3.0-961d6d1447-8cc751e9fc.zip/node_modules/vue-eslint-parser/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["vue-eslint-parser", "virtual:9bd4bcf4dac8ed135c1c46679da10f9f418432974de09d194e63d188f9824382a047bdd72fd0dbdf689cf390d44f9cf3c579926587bb020f4a7de4f34e75d717#npm:8.3.0"],\
|
|||
|
["@types/eslint", null],\
|
|||
|
["debug", "virtual:1f3c51be25fef20e854261431be23d317093b3b463e81e911f4f45a636ff582620db066c9d2a5922a428e07e10fe4788eee8196c796ce2c9bd49d22743fec207#npm:4.3.4"],\
|
|||
|
["eslint", "npm:8.18.0"],\
|
|||
|
["eslint-scope", "npm:7.1.1"],\
|
|||
|
["eslint-visitor-keys", "npm:3.3.0"],\
|
|||
|
["espree", "npm:9.3.2"],\
|
|||
|
["esquery", "npm:1.4.0"],\
|
|||
|
["lodash", "npm:4.17.21"],\
|
|||
|
["semver", "npm:7.3.7"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/eslint",\
|
|||
|
"eslint"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["vue-tsc", [\
|
|||
|
["npm:0.37.9", {\
|
|||
|
"packageLocation": "./.yarn/cache/vue-tsc-npm-0.37.9-e32d749624-0eb161d6b9.zip/node_modules/vue-tsc/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["vue-tsc", "npm:0.37.9"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:0.37.9", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/vue-tsc-virtual-87b386711f/0/cache/vue-tsc-npm-0.37.9-e32d749624-0eb161d6b9.zip/node_modules/vue-tsc/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["vue-tsc", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:0.37.9"],\
|
|||
|
["@types/typescript", null],\
|
|||
|
["@volar/vue-typescript", "npm:0.37.9"],\
|
|||
|
["typescript", "patch:typescript@npm%3A4.7.4#~builtin<compat/typescript>::version=4.7.4&hash=7ad353"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/typescript",\
|
|||
|
"typescript"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["vuex", [\
|
|||
|
["npm:4.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/vuex-npm-4.0.2-809c9d1907-d7c03f0afc.zip/node_modules/vuex/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["vuex", "npm:4.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "SOFT"\
|
|||
|
}],\
|
|||
|
["virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:4.0.2", {\
|
|||
|
"packageLocation": "./.yarn/__virtual__/vuex-virtual-adcde0c60b/0/cache/vuex-npm-4.0.2-809c9d1907-d7c03f0afc.zip/node_modules/vuex/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["vuex", "virtual:6ef8ef7ca60c7401da286b58a80b5534fb43f151218d408f0670cd5c460fd9b3d979dd0bd893bd4a34bedd44bc2c3e08bddd1c15169ad152f800a088b793e74b#npm:4.0.2"],\
|
|||
|
["@types/vue", null],\
|
|||
|
["@vue/devtools-api", "npm:6.1.4"],\
|
|||
|
["vue", "npm:3.2.37"]\
|
|||
|
],\
|
|||
|
"packagePeers": [\
|
|||
|
"@types/vue",\
|
|||
|
"vue"\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["which", [\
|
|||
|
["npm:2.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/which-npm-2.0.2-320ddf72f7-1a5c563d3c.zip/node_modules/which/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["which", "npm:2.0.2"],\
|
|||
|
["isexe", "npm:2.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["wide-align", [\
|
|||
|
["npm:1.1.5", {\
|
|||
|
"packageLocation": "./.yarn/cache/wide-align-npm-1.1.5-889d77e592-d5fc37cd56.zip/node_modules/wide-align/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["wide-align", "npm:1.1.5"],\
|
|||
|
["string-width", "npm:4.2.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["word-wrap", [\
|
|||
|
["npm:1.2.3", {\
|
|||
|
"packageLocation": "./.yarn/cache/word-wrap-npm-1.2.3-7fb15ab002-30b48f91fc.zip/node_modules/word-wrap/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["word-wrap", "npm:1.2.3"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["wrap-ansi", [\
|
|||
|
["npm:7.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/wrap-ansi-npm-7.0.0-ad6e1a0554-a790b846fd.zip/node_modules/wrap-ansi/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["wrap-ansi", "npm:7.0.0"],\
|
|||
|
["ansi-styles", "npm:4.3.0"],\
|
|||
|
["string-width", "npm:4.2.3"],\
|
|||
|
["strip-ansi", "npm:6.0.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["wrappy", [\
|
|||
|
["npm:1.0.2", {\
|
|||
|
"packageLocation": "./.yarn/cache/wrappy-npm-1.0.2-916de4d4b3-159da4805f.zip/node_modules/wrappy/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["wrappy", "npm:1.0.2"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["y18n", [\
|
|||
|
["npm:5.0.8", {\
|
|||
|
"packageLocation": "./.yarn/cache/y18n-npm-5.0.8-5f3a0a7e62-54f0fb9562.zip/node_modules/y18n/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["y18n", "npm:5.0.8"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["yallist", [\
|
|||
|
["npm:4.0.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.zip/node_modules/yallist/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["yallist", "npm:4.0.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["yargs", [\
|
|||
|
["npm:16.2.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/yargs-npm-16.2.0-547873d425-b14afbb51e.zip/node_modules/yargs/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["yargs", "npm:16.2.0"],\
|
|||
|
["cliui", "npm:7.0.4"],\
|
|||
|
["escalade", "npm:3.1.1"],\
|
|||
|
["get-caller-file", "npm:2.0.5"],\
|
|||
|
["require-directory", "npm:2.1.1"],\
|
|||
|
["string-width", "npm:4.2.3"],\
|
|||
|
["y18n", "npm:5.0.8"],\
|
|||
|
["yargs-parser", "npm:20.2.9"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["yargs-parser", [\
|
|||
|
["npm:20.2.9", {\
|
|||
|
"packageLocation": "./.yarn/cache/yargs-parser-npm-20.2.9-a1d19e598d-8bb69015f2.zip/node_modules/yargs-parser/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["yargs-parser", "npm:20.2.9"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["yn", [\
|
|||
|
["npm:3.1.1", {\
|
|||
|
"packageLocation": "./.yarn/cache/yn-npm-3.1.1-8ad4259784-2c487b0e14.zip/node_modules/yn/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["yn", "npm:3.1.1"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]],\
|
|||
|
["yocto-queue", [\
|
|||
|
["npm:0.1.0", {\
|
|||
|
"packageLocation": "./.yarn/cache/yocto-queue-npm-0.1.0-c6c9a7db29-f77b3d8d00.zip/node_modules/yocto-queue/",\
|
|||
|
"packageDependencies": [\
|
|||
|
["yocto-queue", "npm:0.1.0"]\
|
|||
|
],\
|
|||
|
"linkType": "HARD"\
|
|||
|
}]\
|
|||
|
]]\
|
|||
|
]\
|
|||
|
}'), {basePath: basePath || __dirname});
|
|||
|
}
|
|||
|
|
|||
|
const fs = require('fs');
|
|||
|
const path = require('path');
|
|||
|
const require$$0 = require('module');
|
|||
|
const StringDecoder = require('string_decoder');
|
|||
|
const url = require('url');
|
|||
|
const nodeUtils = require('util');
|
|||
|
const os = require('os');
|
|||
|
const stream = require('stream');
|
|||
|
const zlib = require('zlib');
|
|||
|
const events = require('events');
|
|||
|
|
|||
|
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { default: e };
|
|||
|
|
|||
|
function _interopNamespace(e) {
|
|||
|
if (e && e.__esModule) return e;
|
|||
|
const n = Object.create(null);
|
|||
|
if (e) {
|
|||
|
for (const k in e) {
|
|||
|
if (k !== 'default') {
|
|||
|
const d = Object.getOwnPropertyDescriptor(e, k);
|
|||
|
Object.defineProperty(n, k, d.get ? d : {
|
|||
|
enumerable: true,
|
|||
|
get: () => e[k]
|
|||
|
});
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
n.default = e;
|
|||
|
return Object.freeze(n);
|
|||
|
}
|
|||
|
|
|||
|
const fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|||
|
const path__default = /*#__PURE__*/_interopDefaultLegacy(path);
|
|||
|
const require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
|
|||
|
const StringDecoder__default = /*#__PURE__*/_interopDefaultLegacy(StringDecoder);
|
|||
|
const nodeUtils__namespace = /*#__PURE__*/_interopNamespace(nodeUtils);
|
|||
|
const zlib__default = /*#__PURE__*/_interopDefaultLegacy(zlib);
|
|||
|
|
|||
|
const S_IFMT = 61440;
|
|||
|
const S_IFDIR = 16384;
|
|||
|
const S_IFREG = 32768;
|
|||
|
const S_IFLNK = 40960;
|
|||
|
const SAFE_TIME = 456789e3;
|
|||
|
|
|||
|
const DEFAULT_MODE = S_IFREG | 420;
|
|||
|
class StatEntry {
|
|||
|
constructor() {
|
|||
|
this.uid = 0;
|
|||
|
this.gid = 0;
|
|||
|
this.size = 0;
|
|||
|
this.blksize = 0;
|
|||
|
this.atimeMs = 0;
|
|||
|
this.mtimeMs = 0;
|
|||
|
this.ctimeMs = 0;
|
|||
|
this.birthtimeMs = 0;
|
|||
|
this.atime = new Date(0);
|
|||
|
this.mtime = new Date(0);
|
|||
|
this.ctime = new Date(0);
|
|||
|
this.birthtime = new Date(0);
|
|||
|
this.dev = 0;
|
|||
|
this.ino = 0;
|
|||
|
this.mode = DEFAULT_MODE;
|
|||
|
this.nlink = 1;
|
|||
|
this.rdev = 0;
|
|||
|
this.blocks = 1;
|
|||
|
}
|
|||
|
isBlockDevice() {
|
|||
|
return false;
|
|||
|
}
|
|||
|
isCharacterDevice() {
|
|||
|
return false;
|
|||
|
}
|
|||
|
isDirectory() {
|
|||
|
return (this.mode & S_IFMT) === S_IFDIR;
|
|||
|
}
|
|||
|
isFIFO() {
|
|||
|
return false;
|
|||
|
}
|
|||
|
isFile() {
|
|||
|
return (this.mode & S_IFMT) === S_IFREG;
|
|||
|
}
|
|||
|
isSocket() {
|
|||
|
return false;
|
|||
|
}
|
|||
|
isSymbolicLink() {
|
|||
|
return (this.mode & S_IFMT) === S_IFLNK;
|
|||
|
}
|
|||
|
}
|
|||
|
class BigIntStatsEntry {
|
|||
|
constructor() {
|
|||
|
this.uid = BigInt(0);
|
|||
|
this.gid = BigInt(0);
|
|||
|
this.size = BigInt(0);
|
|||
|
this.blksize = BigInt(0);
|
|||
|
this.atimeMs = BigInt(0);
|
|||
|
this.mtimeMs = BigInt(0);
|
|||
|
this.ctimeMs = BigInt(0);
|
|||
|
this.birthtimeMs = BigInt(0);
|
|||
|
this.atimeNs = BigInt(0);
|
|||
|
this.mtimeNs = BigInt(0);
|
|||
|
this.ctimeNs = BigInt(0);
|
|||
|
this.birthtimeNs = BigInt(0);
|
|||
|
this.atime = new Date(0);
|
|||
|
this.mtime = new Date(0);
|
|||
|
this.ctime = new Date(0);
|
|||
|
this.birthtime = new Date(0);
|
|||
|
this.dev = BigInt(0);
|
|||
|
this.ino = BigInt(0);
|
|||
|
this.mode = BigInt(DEFAULT_MODE);
|
|||
|
this.nlink = BigInt(1);
|
|||
|
this.rdev = BigInt(0);
|
|||
|
this.blocks = BigInt(1);
|
|||
|
}
|
|||
|
isBlockDevice() {
|
|||
|
return false;
|
|||
|
}
|
|||
|
isCharacterDevice() {
|
|||
|
return false;
|
|||
|
}
|
|||
|
isDirectory() {
|
|||
|
return (this.mode & BigInt(S_IFMT)) === BigInt(S_IFDIR);
|
|||
|
}
|
|||
|
isFIFO() {
|
|||
|
return false;
|
|||
|
}
|
|||
|
isFile() {
|
|||
|
return (this.mode & BigInt(S_IFMT)) === BigInt(S_IFREG);
|
|||
|
}
|
|||
|
isSocket() {
|
|||
|
return false;
|
|||
|
}
|
|||
|
isSymbolicLink() {
|
|||
|
return (this.mode & BigInt(S_IFMT)) === BigInt(S_IFLNK);
|
|||
|
}
|
|||
|
}
|
|||
|
function makeDefaultStats() {
|
|||
|
return new StatEntry();
|
|||
|
}
|
|||
|
function clearStats(stats) {
|
|||
|
for (const key in stats) {
|
|||
|
if (Object.prototype.hasOwnProperty.call(stats, key)) {
|
|||
|
const element = stats[key];
|
|||
|
if (typeof element === `number`) {
|
|||
|
stats[key] = 0;
|
|||
|
} else if (typeof element === `bigint`) {
|
|||
|
stats[key] = BigInt(0);
|
|||
|
} else if (nodeUtils__namespace.types.isDate(element)) {
|
|||
|
stats[key] = new Date(0);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
return stats;
|
|||
|
}
|
|||
|
function convertToBigIntStats(stats) {
|
|||
|
const bigintStats = new BigIntStatsEntry();
|
|||
|
for (const key in stats) {
|
|||
|
if (Object.prototype.hasOwnProperty.call(stats, key)) {
|
|||
|
const element = stats[key];
|
|||
|
if (typeof element === `number`) {
|
|||
|
bigintStats[key] = BigInt(element);
|
|||
|
} else if (nodeUtils__namespace.types.isDate(element)) {
|
|||
|
bigintStats[key] = new Date(element);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
bigintStats.atimeNs = bigintStats.atimeMs * BigInt(1e6);
|
|||
|
bigintStats.mtimeNs = bigintStats.mtimeMs * BigInt(1e6);
|
|||
|
bigintStats.ctimeNs = bigintStats.ctimeMs * BigInt(1e6);
|
|||
|
bigintStats.birthtimeNs = bigintStats.birthtimeMs * BigInt(1e6);
|
|||
|
return bigintStats;
|
|||
|
}
|
|||
|
function areStatsEqual(a, b) {
|
|||
|
if (a.atimeMs !== b.atimeMs)
|
|||
|
return false;
|
|||
|
if (a.birthtimeMs !== b.birthtimeMs)
|
|||
|
return false;
|
|||
|
if (a.blksize !== b.blksize)
|
|||
|
return false;
|
|||
|
if (a.blocks !== b.blocks)
|
|||
|
return false;
|
|||
|
if (a.ctimeMs !== b.ctimeMs)
|
|||
|
return false;
|
|||
|
if (a.dev !== b.dev)
|
|||
|
return false;
|
|||
|
if (a.gid !== b.gid)
|
|||
|
return false;
|
|||
|
if (a.ino !== b.ino)
|
|||
|
return false;
|
|||
|
if (a.isBlockDevice() !== b.isBlockDevice())
|
|||
|
return false;
|
|||
|
if (a.isCharacterDevice() !== b.isCharacterDevice())
|
|||
|
return false;
|
|||
|
if (a.isDirectory() !== b.isDirectory())
|
|||
|
return false;
|
|||
|
if (a.isFIFO() !== b.isFIFO())
|
|||
|
return false;
|
|||
|
if (a.isFile() !== b.isFile())
|
|||
|
return false;
|
|||
|
if (a.isSocket() !== b.isSocket())
|
|||
|
return false;
|
|||
|
if (a.isSymbolicLink() !== b.isSymbolicLink())
|
|||
|
return false;
|
|||
|
if (a.mode !== b.mode)
|
|||
|
return false;
|
|||
|
if (a.mtimeMs !== b.mtimeMs)
|
|||
|
return false;
|
|||
|
if (a.nlink !== b.nlink)
|
|||
|
return false;
|
|||
|
if (a.rdev !== b.rdev)
|
|||
|
return false;
|
|||
|
if (a.size !== b.size)
|
|||
|
return false;
|
|||
|
if (a.uid !== b.uid)
|
|||
|
return false;
|
|||
|
const aN = a;
|
|||
|
const bN = b;
|
|||
|
if (aN.atimeNs !== bN.atimeNs)
|
|||
|
return false;
|
|||
|
if (aN.mtimeNs !== bN.mtimeNs)
|
|||
|
return false;
|
|||
|
if (aN.ctimeNs !== bN.ctimeNs)
|
|||
|
return false;
|
|||
|
if (aN.birthtimeNs !== bN.birthtimeNs)
|
|||
|
return false;
|
|||
|
return true;
|
|||
|
}
|
|||
|
|
|||
|
var PathType;
|
|||
|
(function(PathType2) {
|
|||
|
PathType2[PathType2["File"] = 0] = "File";
|
|||
|
PathType2[PathType2["Portable"] = 1] = "Portable";
|
|||
|
PathType2[PathType2["Native"] = 2] = "Native";
|
|||
|
})(PathType || (PathType = {}));
|
|||
|
const PortablePath = {
|
|||
|
root: `/`,
|
|||
|
dot: `.`
|
|||
|
};
|
|||
|
const Filename = {
|
|||
|
nodeModules: `node_modules`,
|
|||
|
manifest: `package.json`,
|
|||
|
lockfile: `yarn.lock`,
|
|||
|
virtual: `__virtual__`,
|
|||
|
pnpJs: `.pnp.js`,
|
|||
|
pnpCjs: `.pnp.cjs`,
|
|||
|
rc: `.yarnrc.yml`
|
|||
|
};
|
|||
|
const npath = Object.create(path__default.default);
|
|||
|
const ppath = Object.create(path__default.default.posix);
|
|||
|
npath.cwd = () => process.cwd();
|
|||
|
ppath.cwd = () => toPortablePath(process.cwd());
|
|||
|
ppath.resolve = (...segments) => {
|
|||
|
if (segments.length > 0 && ppath.isAbsolute(segments[0])) {
|
|||
|
return path__default.default.posix.resolve(...segments);
|
|||
|
} else {
|
|||
|
return path__default.default.posix.resolve(ppath.cwd(), ...segments);
|
|||
|
}
|
|||
|
};
|
|||
|
const contains = function(pathUtils, from, to) {
|
|||
|
from = pathUtils.normalize(from);
|
|||
|
to = pathUtils.normalize(to);
|
|||
|
if (from === to)
|
|||
|
return `.`;
|
|||
|
if (!from.endsWith(pathUtils.sep))
|
|||
|
from = from + pathUtils.sep;
|
|||
|
if (to.startsWith(from)) {
|
|||
|
return to.slice(from.length);
|
|||
|
} else {
|
|||
|
return null;
|
|||
|
}
|
|||
|
};
|
|||
|
npath.fromPortablePath = fromPortablePath;
|
|||
|
npath.toPortablePath = toPortablePath;
|
|||
|
npath.contains = (from, to) => contains(npath, from, to);
|
|||
|
ppath.contains = (from, to) => contains(ppath, from, to);
|
|||
|
const WINDOWS_PATH_REGEXP = /^([a-zA-Z]:.*)$/;
|
|||
|
const UNC_WINDOWS_PATH_REGEXP = /^\/\/(\.\/)?(.*)$/;
|
|||
|
const PORTABLE_PATH_REGEXP = /^\/([a-zA-Z]:.*)$/;
|
|||
|
const UNC_PORTABLE_PATH_REGEXP = /^\/unc\/(\.dot\/)?(.*)$/;
|
|||
|
function fromPortablePath(p) {
|
|||
|
if (process.platform !== `win32`)
|
|||
|
return p;
|
|||
|
let portablePathMatch, uncPortablePathMatch;
|
|||
|
if (portablePathMatch = p.match(PORTABLE_PATH_REGEXP))
|
|||
|
p = portablePathMatch[1];
|
|||
|
else if (uncPortablePathMatch = p.match(UNC_PORTABLE_PATH_REGEXP))
|
|||
|
p = `\\\\${uncPortablePathMatch[1] ? `.\\` : ``}${uncPortablePathMatch[2]}`;
|
|||
|
else
|
|||
|
return p;
|
|||
|
return p.replace(/\//g, `\\`);
|
|||
|
}
|
|||
|
function toPortablePath(p) {
|
|||
|
if (process.platform !== `win32`)
|
|||
|
return p;
|
|||
|
p = p.replace(/\\/g, `/`);
|
|||
|
let windowsPathMatch, uncWindowsPathMatch;
|
|||
|
if (windowsPathMatch = p.match(WINDOWS_PATH_REGEXP))
|
|||
|
p = `/${windowsPathMatch[1]}`;
|
|||
|
else if (uncWindowsPathMatch = p.match(UNC_WINDOWS_PATH_REGEXP))
|
|||
|
p = `/unc/${uncWindowsPathMatch[1] ? `.dot/` : ``}${uncWindowsPathMatch[2]}`;
|
|||
|
return p;
|
|||
|
}
|
|||
|
function convertPath(targetPathUtils, sourcePath) {
|
|||
|
return targetPathUtils === npath ? fromPortablePath(sourcePath) : toPortablePath(sourcePath);
|
|||
|
}
|
|||
|
|
|||
|
var __defProp$4 = Object.defineProperty;
|
|||
|
var __defProps$2 = Object.defineProperties;
|
|||
|
var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
|
|||
|
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|||
|
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|||
|
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|||
|
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
|
|||
|
var __spreadValues$4 = (a, b) => {
|
|||
|
for (var prop in b || (b = {}))
|
|||
|
if (__hasOwnProp$5.call(b, prop))
|
|||
|
__defNormalProp$4(a, prop, b[prop]);
|
|||
|
if (__getOwnPropSymbols$5)
|
|||
|
for (var prop of __getOwnPropSymbols$5(b)) {
|
|||
|
if (__propIsEnum$5.call(b, prop))
|
|||
|
__defNormalProp$4(a, prop, b[prop]);
|
|||
|
}
|
|||
|
return a;
|
|||
|
};
|
|||
|
var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
|
|||
|
const defaultTime = new Date(SAFE_TIME * 1e3);
|
|||
|
var LinkStrategy;
|
|||
|
(function(LinkStrategy2) {
|
|||
|
LinkStrategy2["Allow"] = `allow`;
|
|||
|
LinkStrategy2["ReadOnly"] = `readOnly`;
|
|||
|
})(LinkStrategy || (LinkStrategy = {}));
|
|||
|
async function copyPromise(destinationFs, destination, sourceFs, source, opts) {
|
|||
|
const normalizedDestination = destinationFs.pathUtils.normalize(destination);
|
|||
|
const normalizedSource = sourceFs.pathUtils.normalize(source);
|
|||
|
const prelayout = [];
|
|||
|
const postlayout = [];
|
|||
|
const {atime, mtime} = opts.stableTime ? {atime: defaultTime, mtime: defaultTime} : await sourceFs.lstatPromise(normalizedSource);
|
|||
|
await destinationFs.mkdirpPromise(destinationFs.pathUtils.dirname(destination), {utimes: [atime, mtime]});
|
|||
|
const updateTime = typeof destinationFs.lutimesPromise === `function` ? destinationFs.lutimesPromise.bind(destinationFs) : destinationFs.utimesPromise.bind(destinationFs);
|
|||
|
await copyImpl(prelayout, postlayout, updateTime, destinationFs, normalizedDestination, sourceFs, normalizedSource, __spreadProps$2(__spreadValues$4({}, opts), {didParentExist: true}));
|
|||
|
for (const operation of prelayout)
|
|||
|
await operation();
|
|||
|
await Promise.all(postlayout.map((operation) => {
|
|||
|
return operation();
|
|||
|
}));
|
|||
|
}
|
|||
|
async function copyImpl(prelayout, postlayout, updateTime, destinationFs, destination, sourceFs, source, opts) {
|
|||
|
var _a, _b;
|
|||
|
const destinationStat = opts.didParentExist ? await maybeLStat(destinationFs, destination) : null;
|
|||
|
const sourceStat = await sourceFs.lstatPromise(source);
|
|||
|
const {atime, mtime} = opts.stableTime ? {atime: defaultTime, mtime: defaultTime} : sourceStat;
|
|||
|
let updated;
|
|||
|
switch (true) {
|
|||
|
case sourceStat.isDirectory():
|
|||
|
{
|
|||
|
updated = await copyFolder(prelayout, postlayout, updateTime, destinationFs, destination, destinationStat, sourceFs, source, sourceStat, opts);
|
|||
|
}
|
|||
|
break;
|
|||
|
case sourceStat.isFile():
|
|||
|
{
|
|||
|
updated = await copyFile(prelayout, postlayout, updateTime, destinationFs, destination, destinationStat, sourceFs, source, sourceStat, opts);
|
|||
|
}
|
|||
|
break;
|
|||
|
case sourceStat.isSymbolicLink():
|
|||
|
{
|
|||
|
updated = await copySymlink(prelayout, postlayout, updateTime, destinationFs, destination, destinationStat, sourceFs, source, sourceStat, opts);
|
|||
|
}
|
|||
|
break;
|
|||
|
default:
|
|||
|
{
|
|||
|
throw new Error(`Unsupported file type (${sourceStat.mode})`);
|
|||
|
}
|
|||
|
}
|
|||
|
if (updated || ((_a = destinationStat == null ? void 0 : destinationStat.mtime) == null ? void 0 : _a.getTime()) !== mtime.getTime() || ((_b = destinationStat == null ? void 0 : destinationStat.atime) == null ? void 0 : _b.getTime()) !== atime.getTime()) {
|
|||
|
postlayout.push(() => updateTime(destination, atime, mtime));
|
|||
|
updated = true;
|
|||
|
}
|
|||
|
if (destinationStat === null || (destinationStat.mode & 511) !== (sourceStat.mode & 511)) {
|
|||
|
postlayout.push(() => destinationFs.chmodPromise(destination, sourceStat.mode & 511));
|
|||
|
updated = true;
|
|||
|
}
|
|||
|
return updated;
|
|||
|
}
|
|||
|
async function maybeLStat(baseFs, p) {
|
|||
|
try {
|
|||
|
return await baseFs.lstatPromise(p);
|
|||
|
} catch (e) {
|
|||
|
return null;
|
|||
|
}
|
|||
|
}
|
|||
|
async function copyFolder(prelayout, postlayout, updateTime, destinationFs, destination, destinationStat, sourceFs, source, sourceStat, opts) {
|
|||
|
if (destinationStat !== null && !destinationStat.isDirectory()) {
|
|||
|
if (opts.overwrite) {
|
|||
|
prelayout.push(async () => destinationFs.removePromise(destination));
|
|||
|
destinationStat = null;
|
|||
|
} else {
|
|||
|
return false;
|
|||
|
}
|
|||
|
}
|
|||
|
let updated = false;
|
|||
|
if (destinationStat === null) {
|
|||
|
prelayout.push(async () => {
|
|||
|
try {
|
|||
|
await destinationFs.mkdirPromise(destination, {mode: sourceStat.mode});
|
|||
|
} catch (err) {
|
|||
|
if (err.code !== `EEXIST`) {
|
|||
|
throw err;
|
|||
|
}
|
|||
|
}
|
|||
|
});
|
|||
|
updated = true;
|
|||
|
}
|
|||
|
const entries = await sourceFs.readdirPromise(source);
|
|||
|
const nextOpts = opts.didParentExist && !destinationStat ? __spreadProps$2(__spreadValues$4({}, opts), {didParentExist: false}) : opts;
|
|||
|
if (opts.stableSort) {
|
|||
|
for (const entry of entries.sort()) {
|
|||
|
if (await copyImpl(prelayout, postlayout, updateTime, destinationFs, destinationFs.pathUtils.join(destination, entry), sourceFs, sourceFs.pathUtils.join(source, entry), nextOpts)) {
|
|||
|
updated = true;
|
|||
|
}
|
|||
|
}
|
|||
|
} else {
|
|||
|
const entriesUpdateStatus = await Promise.all(entries.map(async (entry) => {
|
|||
|
await copyImpl(prelayout, postlayout, updateTime, destinationFs, destinationFs.pathUtils.join(destination, entry), sourceFs, sourceFs.pathUtils.join(source, entry), nextOpts);
|
|||
|
}));
|
|||
|
if (entriesUpdateStatus.some((status) => status)) {
|
|||
|
updated = true;
|
|||
|
}
|
|||
|
}
|
|||
|
return updated;
|
|||
|
}
|
|||
|
const isCloneSupportedCache = new WeakMap();
|
|||
|
function makeLinkOperation(opFs, destination, source, sourceStat, linkStrategy) {
|
|||
|
return async () => {
|
|||
|
await opFs.linkPromise(source, destination);
|
|||
|
if (linkStrategy === LinkStrategy.ReadOnly) {
|
|||
|
sourceStat.mode &= ~146;
|
|||
|
await opFs.chmodPromise(destination, sourceStat.mode);
|
|||
|
}
|
|||
|
};
|
|||
|
}
|
|||
|
function makeCloneLinkOperation(opFs, destination, source, sourceStat, linkStrategy) {
|
|||
|
const isCloneSupported = isCloneSupportedCache.get(opFs);
|
|||
|
if (typeof isCloneSupported === `undefined`) {
|
|||
|
return async () => {
|
|||
|
try {
|
|||
|
await opFs.copyFilePromise(source, destination, fs__default.default.constants.COPYFILE_FICLONE_FORCE);
|
|||
|
isCloneSupportedCache.set(opFs, true);
|
|||
|
} catch (err) {
|
|||
|
if (err.code === `ENOSYS` || err.code === `ENOTSUP`) {
|
|||
|
isCloneSupportedCache.set(opFs, false);
|
|||
|
await makeLinkOperation(opFs, destination, source, sourceStat, linkStrategy)();
|
|||
|
} else {
|
|||
|
throw err;
|
|||
|
}
|
|||
|
}
|
|||
|
};
|
|||
|
} else {
|
|||
|
if (isCloneSupported) {
|
|||
|
return async () => opFs.copyFilePromise(source, destination, fs__default.default.constants.COPYFILE_FICLONE_FORCE);
|
|||
|
} else {
|
|||
|
return makeLinkOperation(opFs, destination, source, sourceStat, linkStrategy);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
async function copyFile(prelayout, postlayout, updateTime, destinationFs, destination, destinationStat, sourceFs, source, sourceStat, opts) {
|
|||
|
var _a;
|
|||
|
if (destinationStat !== null) {
|
|||
|
if (opts.overwrite) {
|
|||
|
prelayout.push(async () => destinationFs.removePromise(destination));
|
|||
|
destinationStat = null;
|
|||
|
} else {
|
|||
|
return false;
|
|||
|
}
|
|||
|
}
|
|||
|
const linkStrategy = (_a = opts.linkStrategy) != null ? _a : null;
|
|||
|
const op = destinationFs === sourceFs ? linkStrategy !== null ? makeCloneLinkOperation(destinationFs, destination, source, sourceStat, linkStrategy) : async () => destinationFs.copyFilePromise(source, destination, fs__default.default.constants.COPYFILE_FICLONE) : linkStrategy !== null ? makeLinkOperation(destinationFs, destination, source, sourceStat, linkStrategy) : async () => destinationFs.writeFilePromise(destination, await sourceFs.readFilePromise(source));
|
|||
|
prelayout.push(async () => op());
|
|||
|
return true;
|
|||
|
}
|
|||
|
async function copySymlink(prelayout, postlayout, updateTime, destinationFs, destination, destinationStat, sourceFs, source, sourceStat, opts) {
|
|||
|
if (destinationStat !== null) {
|
|||
|
if (opts.overwrite) {
|
|||
|
prelayout.push(async () => destinationFs.removePromise(destination));
|
|||
|
destinationStat = null;
|
|||
|
} else {
|
|||
|
return false;
|
|||
|
}
|
|||
|
}
|
|||
|
prelayout.push(async () => {
|
|||
|
await destinationFs.symlinkPromise(convertPath(destinationFs.pathUtils, await sourceFs.readlinkPromise(source)), destination);
|
|||
|
});
|
|||
|
return true;
|
|||
|
}
|
|||
|
|
|||
|
function makeError$1(code, message) {
|
|||
|
return Object.assign(new Error(`${code}: ${message}`), {code});
|
|||
|
}
|
|||
|
function EBUSY(message) {
|
|||
|
return makeError$1(`EBUSY`, message);
|
|||
|
}
|
|||
|
function ENOSYS(message, reason) {
|
|||
|
return makeError$1(`ENOSYS`, `${message}, ${reason}`);
|
|||
|
}
|
|||
|
function EINVAL(reason) {
|
|||
|
return makeError$1(`EINVAL`, `invalid argument, ${reason}`);
|
|||
|
}
|
|||
|
function EBADF(reason) {
|
|||
|
return makeError$1(`EBADF`, `bad file descriptor, ${reason}`);
|
|||
|
}
|
|||
|
function ENOENT(reason) {
|
|||
|
return makeError$1(`ENOENT`, `no such file or directory, ${reason}`);
|
|||
|
}
|
|||
|
function ENOTDIR(reason) {
|
|||
|
return makeError$1(`ENOTDIR`, `not a directory, ${reason}`);
|
|||
|
}
|
|||
|
function EISDIR(reason) {
|
|||
|
return makeError$1(`EISDIR`, `illegal operation on a directory, ${reason}`);
|
|||
|
}
|
|||
|
function EEXIST(reason) {
|
|||
|
return makeError$1(`EEXIST`, `file already exists, ${reason}`);
|
|||
|
}
|
|||
|
function EROFS(reason) {
|
|||
|
return makeError$1(`EROFS`, `read-only filesystem, ${reason}`);
|
|||
|
}
|
|||
|
function ENOTEMPTY(reason) {
|
|||
|
return makeError$1(`ENOTEMPTY`, `directory not empty, ${reason}`);
|
|||
|
}
|
|||
|
function EOPNOTSUPP(reason) {
|
|||
|
return makeError$1(`EOPNOTSUPP`, `operation not supported, ${reason}`);
|
|||
|
}
|
|||
|
function ERR_DIR_CLOSED() {
|
|||
|
return makeError$1(`ERR_DIR_CLOSED`, `Directory handle was closed`);
|
|||
|
}
|
|||
|
class LibzipError extends Error {
|
|||
|
constructor(message, code) {
|
|||
|
super(message);
|
|||
|
this.name = `Libzip Error`;
|
|||
|
this.code = code;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
class CustomDir {
|
|||
|
constructor(path, nextDirent, opts = {}) {
|
|||
|
this.path = path;
|
|||
|
this.nextDirent = nextDirent;
|
|||
|
this.opts = opts;
|
|||
|
this.closed = false;
|
|||
|
}
|
|||
|
throwIfClosed() {
|
|||
|
if (this.closed) {
|
|||
|
throw ERR_DIR_CLOSED();
|
|||
|
}
|
|||
|
}
|
|||
|
async *[Symbol.asyncIterator]() {
|
|||
|
try {
|
|||
|
let dirent;
|
|||
|
while ((dirent = await this.read()) !== null) {
|
|||
|
yield dirent;
|
|||
|
}
|
|||
|
} finally {
|
|||
|
await this.close();
|
|||
|
}
|
|||
|
}
|
|||
|
read(cb) {
|
|||
|
const dirent = this.readSync();
|
|||
|
if (typeof cb !== `undefined`)
|
|||
|
return cb(null, dirent);
|
|||
|
return Promise.resolve(dirent);
|
|||
|
}
|
|||
|
readSync() {
|
|||
|
this.throwIfClosed();
|
|||
|
return this.nextDirent();
|
|||
|
}
|
|||
|
close(cb) {
|
|||
|
this.closeSync();
|
|||
|
if (typeof cb !== `undefined`)
|
|||
|
return cb(null);
|
|||
|
return Promise.resolve();
|
|||
|
}
|
|||
|
closeSync() {
|
|||
|
var _a, _b;
|
|||
|
this.throwIfClosed();
|
|||
|
(_b = (_a = this.opts).onClose) == null ? void 0 : _b.call(_a);
|
|||
|
this.closed = true;
|
|||
|
}
|
|||
|
}
|
|||
|
function opendir(fakeFs, path, entries, opts) {
|
|||
|
const nextDirent = () => {
|
|||
|
const filename = entries.shift();
|
|||
|
if (typeof filename === `undefined`)
|
|||
|
return null;
|
|||
|
return Object.assign(fakeFs.statSync(fakeFs.pathUtils.join(path, filename)), {
|
|||
|
name: filename
|
|||
|
});
|
|||
|
};
|
|||
|
return new CustomDir(path, nextDirent, opts);
|
|||
|
}
|
|||
|
|
|||
|
class FakeFS {
|
|||
|
constructor(pathUtils) {
|
|||
|
this.pathUtils = pathUtils;
|
|||
|
}
|
|||
|
async *genTraversePromise(init, {stableSort = false} = {}) {
|
|||
|
const stack = [init];
|
|||
|
while (stack.length > 0) {
|
|||
|
const p = stack.shift();
|
|||
|
const entry = await this.lstatPromise(p);
|
|||
|
if (entry.isDirectory()) {
|
|||
|
const entries = await this.readdirPromise(p);
|
|||
|
if (stableSort) {
|
|||
|
for (const entry2 of entries.sort()) {
|
|||
|
stack.push(this.pathUtils.join(p, entry2));
|
|||
|
}
|
|||
|
} else {
|
|||
|
throw new Error(`Not supported`);
|
|||
|
}
|
|||
|
} else {
|
|||
|
yield p;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
async removePromise(p, {recursive = true, maxRetries = 5} = {}) {
|
|||
|
let stat;
|
|||
|
try {
|
|||
|
stat = await this.lstatPromise(p);
|
|||
|
} catch (error) {
|
|||
|
if (error.code === `ENOENT`) {
|
|||
|
return;
|
|||
|
} else {
|
|||
|
throw error;
|
|||
|
}
|
|||
|
}
|
|||
|
if (stat.isDirectory()) {
|
|||
|
if (recursive) {
|
|||
|
const entries = await this.readdirPromise(p);
|
|||
|
await Promise.all(entries.map((entry) => {
|
|||
|
return this.removePromise(this.pathUtils.resolve(p, entry));
|
|||
|
}));
|
|||
|
}
|
|||
|
for (let t = 0; t <= maxRetries; t++) {
|
|||
|
try {
|
|||
|
await this.rmdirPromise(p);
|
|||
|
break;
|
|||
|
} catch (error) {
|
|||
|
if (error.code !== `EBUSY` && error.code !== `ENOTEMPTY`) {
|
|||
|
throw error;
|
|||
|
} else if (t < maxRetries) {
|
|||
|
await new Promise((resolve) => setTimeout(resolve, t * 100));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
} else {
|
|||
|
await this.unlinkPromise(p);
|
|||
|
}
|
|||
|
}
|
|||
|
removeSync(p, {recursive = true} = {}) {
|
|||
|
let stat;
|
|||
|
try {
|
|||
|
stat = this.lstatSync(p);
|
|||
|
} catch (error) {
|
|||
|
if (error.code === `ENOENT`) {
|
|||
|
return;
|
|||
|
} else {
|
|||
|
throw error;
|
|||
|
}
|
|||
|
}
|
|||
|
if (stat.isDirectory()) {
|
|||
|
if (recursive)
|
|||
|
for (const entry of this.readdirSync(p))
|
|||
|
this.removeSync(this.pathUtils.resolve(p, entry));
|
|||
|
this.rmdirSync(p);
|
|||
|
} else {
|
|||
|
this.unlinkSync(p);
|
|||
|
}
|
|||
|
}
|
|||
|
async mkdirpPromise(p, {chmod, utimes} = {}) {
|
|||
|
p = this.resolve(p);
|
|||
|
if (p === this.pathUtils.dirname(p))
|
|||
|
return;
|
|||
|
const parts = p.split(this.pathUtils.sep);
|
|||
|
for (let u = 2; u <= parts.length; ++u) {
|
|||
|
const subPath = parts.slice(0, u).join(this.pathUtils.sep);
|
|||
|
if (!this.existsSync(subPath)) {
|
|||
|
try {
|
|||
|
await this.mkdirPromise(subPath);
|
|||
|
} catch (error) {
|
|||
|
if (error.code === `EEXIST`) {
|
|||
|
continue;
|
|||
|
} else {
|
|||
|
throw error;
|
|||
|
}
|
|||
|
}
|
|||
|
if (chmod != null)
|
|||
|
await this.chmodPromise(subPath, chmod);
|
|||
|
if (utimes != null) {
|
|||
|
await this.utimesPromise(subPath, utimes[0], utimes[1]);
|
|||
|
} else {
|
|||
|
const parentStat = await this.statPromise(this.pathUtils.dirname(subPath));
|
|||
|
await this.utimesPromise(subPath, parentStat.atime, parentStat.mtime);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
mkdirpSync(p, {chmod, utimes} = {}) {
|
|||
|
p = this.resolve(p);
|
|||
|
if (p === this.pathUtils.dirname(p))
|
|||
|
return;
|
|||
|
const parts = p.split(this.pathUtils.sep);
|
|||
|
for (let u = 2; u <= parts.length; ++u) {
|
|||
|
const subPath = parts.slice(0, u).join(this.pathUtils.sep);
|
|||
|
if (!this.existsSync(subPath)) {
|
|||
|
try {
|
|||
|
this.mkdirSync(subPath);
|
|||
|
} catch (error) {
|
|||
|
if (error.code === `EEXIST`) {
|
|||
|
continue;
|
|||
|
} else {
|
|||
|
throw error;
|
|||
|
}
|
|||
|
}
|
|||
|
if (chmod != null)
|
|||
|
this.chmodSync(subPath, chmod);
|
|||
|
if (utimes != null) {
|
|||
|
this.utimesSync(subPath, utimes[0], utimes[1]);
|
|||
|
} else {
|
|||
|
const parentStat = this.statSync(this.pathUtils.dirname(subPath));
|
|||
|
this.utimesSync(subPath, parentStat.atime, parentStat.mtime);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
async copyPromise(destination, source, {baseFs = this, overwrite = true, stableSort = false, stableTime = false, linkStrategy = null} = {}) {
|
|||
|
return await copyPromise(this, destination, baseFs, source, {overwrite, stableSort, stableTime, linkStrategy});
|
|||
|
}
|
|||
|
copySync(destination, source, {baseFs = this, overwrite = true} = {}) {
|
|||
|
const stat = baseFs.lstatSync(source);
|
|||
|
const exists = this.existsSync(destination);
|
|||
|
if (stat.isDirectory()) {
|
|||
|
this.mkdirpSync(destination);
|
|||
|
const directoryListing = baseFs.readdirSync(source);
|
|||
|
for (const entry of directoryListing) {
|
|||
|
this.copySync(this.pathUtils.join(destination, entry), baseFs.pathUtils.join(source, entry), {baseFs, overwrite});
|
|||
|
}
|
|||
|
} else if (stat.isFile()) {
|
|||
|
if (!exists || overwrite) {
|
|||
|
if (exists)
|
|||
|
this.removeSync(destination);
|
|||
|
const content = baseFs.readFileSync(source);
|
|||
|
this.writeFileSync(destination, content);
|
|||
|
}
|
|||
|
} else if (stat.isSymbolicLink()) {
|
|||
|
if (!exists || overwrite) {
|
|||
|
if (exists)
|
|||
|
this.removeSync(destination);
|
|||
|
const target = baseFs.readlinkSync(source);
|
|||
|
this.symlinkSync(convertPath(this.pathUtils, target), destination);
|
|||
|
}
|
|||
|
} else {
|
|||
|
throw new Error(`Unsupported file type (file: ${source}, mode: 0o${stat.mode.toString(8).padStart(6, `0`)})`);
|
|||
|
}
|
|||
|
const mode = stat.mode & 511;
|
|||
|
this.chmodSync(destination, mode);
|
|||
|
}
|
|||
|
async changeFilePromise(p, content, opts = {}) {
|
|||
|
if (Buffer.isBuffer(content)) {
|
|||
|
return this.changeFileBufferPromise(p, content, opts);
|
|||
|
} else {
|
|||
|
return this.changeFileTextPromise(p, content, opts);
|
|||
|
}
|
|||
|
}
|
|||
|
async changeFileBufferPromise(p, content, {mode} = {}) {
|
|||
|
let current = Buffer.alloc(0);
|
|||
|
try {
|
|||
|
current = await this.readFilePromise(p);
|
|||
|
} catch (error) {
|
|||
|
}
|
|||
|
if (Buffer.compare(current, content) === 0)
|
|||
|
return;
|
|||
|
await this.writeFilePromise(p, content, {mode});
|
|||
|
}
|
|||
|
async changeFileTextPromise(p, content, {automaticNewlines, mode} = {}) {
|
|||
|
let current = ``;
|
|||
|
try {
|
|||
|
current = await this.readFilePromise(p, `utf8`);
|
|||
|
} catch (error) {
|
|||
|
}
|
|||
|
const normalizedContent = automaticNewlines ? normalizeLineEndings(current, content) : content;
|
|||
|
if (current === normalizedContent)
|
|||
|
return;
|
|||
|
await this.writeFilePromise(p, normalizedContent, {mode});
|
|||
|
}
|
|||
|
changeFileSync(p, content, opts = {}) {
|
|||
|
if (Buffer.isBuffer(content)) {
|
|||
|
return this.changeFileBufferSync(p, content, opts);
|
|||
|
} else {
|
|||
|
return this.changeFileTextSync(p, content, opts);
|
|||
|
}
|
|||
|
}
|
|||
|
changeFileBufferSync(p, content, {mode} = {}) {
|
|||
|
let current = Buffer.alloc(0);
|
|||
|
try {
|
|||
|
current = this.readFileSync(p);
|
|||
|
} catch (error) {
|
|||
|
}
|
|||
|
if (Buffer.compare(current, content) === 0)
|
|||
|
return;
|
|||
|
this.writeFileSync(p, content, {mode});
|
|||
|
}
|
|||
|
changeFileTextSync(p, content, {automaticNewlines = false, mode} = {}) {
|
|||
|
let current = ``;
|
|||
|
try {
|
|||
|
current = this.readFileSync(p, `utf8`);
|
|||
|
} catch (error) {
|
|||
|
}
|
|||
|
const normalizedContent = automaticNewlines ? normalizeLineEndings(current, content) : content;
|
|||
|
if (current === normalizedContent)
|
|||
|
return;
|
|||
|
this.writeFileSync(p, normalizedContent, {mode});
|
|||
|
}
|
|||
|
async movePromise(fromP, toP) {
|
|||
|
try {
|
|||
|
await this.renamePromise(fromP, toP);
|
|||
|
} catch (error) {
|
|||
|
if (error.code === `EXDEV`) {
|
|||
|
await this.copyPromise(toP, fromP);
|
|||
|
await this.removePromise(fromP);
|
|||
|
} else {
|
|||
|
throw error;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
moveSync(fromP, toP) {
|
|||
|
try {
|
|||
|
this.renameSync(fromP, toP);
|
|||
|
} catch (error) {
|
|||
|
if (error.code === `EXDEV`) {
|
|||
|
this.copySync(toP, fromP);
|
|||
|
this.removeSync(fromP);
|
|||
|
} else {
|
|||
|
throw error;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
async lockPromise(affectedPath, callback) {
|
|||
|
const lockPath = `${affectedPath}.flock`;
|
|||
|
const interval = 1e3 / 60;
|
|||
|
const startTime = Date.now();
|
|||
|
let fd = null;
|
|||
|
const isAlive = async () => {
|
|||
|
let pid;
|
|||
|
try {
|
|||
|
[pid] = await this.readJsonPromise(lockPath);
|
|||
|
} catch (error) {
|
|||
|
return Date.now() - startTime < 500;
|
|||
|
}
|
|||
|
try {
|
|||
|
process.kill(pid, 0);
|
|||
|
return true;
|
|||
|
} catch (error) {
|
|||
|
return false;
|
|||
|
}
|
|||
|
};
|
|||
|
while (fd === null) {
|
|||
|
try {
|
|||
|
fd = await this.openPromise(lockPath, `wx`);
|
|||
|
} catch (error) {
|
|||
|
if (error.code === `EEXIST`) {
|
|||
|
if (!await isAlive()) {
|
|||
|
try {
|
|||
|
await this.unlinkPromise(lockPath);
|
|||
|
continue;
|
|||
|
} catch (error2) {
|
|||
|
}
|
|||
|
}
|
|||
|
if (Date.now() - startTime < 60 * 1e3) {
|
|||
|
await new Promise((resolve) => setTimeout(resolve, interval));
|
|||
|
} else {
|
|||
|
throw new Error(`Couldn't acquire a lock in a reasonable time (via ${lockPath})`);
|
|||
|
}
|
|||
|
} else {
|
|||
|
throw error;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
await this.writePromise(fd, JSON.stringify([process.pid]));
|
|||
|
try {
|
|||
|
return await callback();
|
|||
|
} finally {
|
|||
|
try {
|
|||
|
await this.closePromise(fd);
|
|||
|
await this.unlinkPromise(lockPath);
|
|||
|
} catch (error) {
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
async readJsonPromise(p) {
|
|||
|
const content = await this.readFilePromise(p, `utf8`);
|
|||
|
try {
|
|||
|
return JSON.parse(content);
|
|||
|
} catch (error) {
|
|||
|
error.message += ` (in ${p})`;
|
|||
|
throw error;
|
|||
|
}
|
|||
|
}
|
|||
|
readJsonSync(p) {
|
|||
|
const content = this.readFileSync(p, `utf8`);
|
|||
|
try {
|
|||
|
return JSON.parse(content);
|
|||
|
} catch (error) {
|
|||
|
error.message += ` (in ${p})`;
|
|||
|
throw error;
|
|||
|
}
|
|||
|
}
|
|||
|
async writeJsonPromise(p, data) {
|
|||
|
return await this.writeFilePromise(p, `${JSON.stringify(data, null, 2)}
|
|||
|
`);
|
|||
|
}
|
|||
|
writeJsonSync(p, data) {
|
|||
|
return this.writeFileSync(p, `${JSON.stringify(data, null, 2)}
|
|||
|
`);
|
|||
|
}
|
|||
|
async preserveTimePromise(p, cb) {
|
|||
|
const stat = await this.lstatPromise(p);
|
|||
|
const result = await cb();
|
|||
|
if (typeof result !== `undefined`)
|
|||
|
p = result;
|
|||
|
if (this.lutimesPromise) {
|
|||
|
await this.lutimesPromise(p, stat.atime, stat.mtime);
|
|||
|
} else if (!stat.isSymbolicLink()) {
|
|||
|
await this.utimesPromise(p, stat.atime, stat.mtime);
|
|||
|
}
|
|||
|
}
|
|||
|
async preserveTimeSync(p, cb) {
|
|||
|
const stat = this.lstatSync(p);
|
|||
|
const result = cb();
|
|||
|
if (typeof result !== `undefined`)
|
|||
|
p = result;
|
|||
|
if (this.lutimesSync) {
|
|||
|
this.lutimesSync(p, stat.atime, stat.mtime);
|
|||
|
} else if (!stat.isSymbolicLink()) {
|
|||
|
this.utimesSync(p, stat.atime, stat.mtime);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
class BasePortableFakeFS extends FakeFS {
|
|||
|
constructor() {
|
|||
|
super(ppath);
|
|||
|
}
|
|||
|
}
|
|||
|
function getEndOfLine(content) {
|
|||
|
const matches = content.match(/\r?\n/g);
|
|||
|
if (matches === null)
|
|||
|
return os.EOL;
|
|||
|
const crlf = matches.filter((nl) => nl === `\r
|
|||
|
`).length;
|
|||
|
const lf = matches.length - crlf;
|
|||
|
return crlf > lf ? `\r
|
|||
|
` : `
|
|||
|
`;
|
|||
|
}
|
|||
|
function normalizeLineEndings(originalContent, newContent) {
|
|||
|
return newContent.replace(/\r?\n/g, getEndOfLine(originalContent));
|
|||
|
}
|
|||
|
|
|||
|
class NodeFS extends BasePortableFakeFS {
|
|||
|
constructor(realFs = fs__default.default) {
|
|||
|
super();
|
|||
|
this.realFs = realFs;
|
|||
|
if (typeof this.realFs.lutimes !== `undefined`) {
|
|||
|
this.lutimesPromise = this.lutimesPromiseImpl;
|
|||
|
this.lutimesSync = this.lutimesSyncImpl;
|
|||
|
}
|
|||
|
}
|
|||
|
getExtractHint() {
|
|||
|
return false;
|
|||
|
}
|
|||
|
getRealPath() {
|
|||
|
return PortablePath.root;
|
|||
|
}
|
|||
|
resolve(p) {
|
|||
|
return ppath.resolve(p);
|
|||
|
}
|
|||
|
async openPromise(p, flags, mode) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
this.realFs.open(npath.fromPortablePath(p), flags, mode, this.makeCallback(resolve, reject));
|
|||
|
});
|
|||
|
}
|
|||
|
openSync(p, flags, mode) {
|
|||
|
return this.realFs.openSync(npath.fromPortablePath(p), flags, mode);
|
|||
|
}
|
|||
|
async opendirPromise(p, opts) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
if (typeof opts !== `undefined`) {
|
|||
|
this.realFs.opendir(npath.fromPortablePath(p), opts, this.makeCallback(resolve, reject));
|
|||
|
} else {
|
|||
|
this.realFs.opendir(npath.fromPortablePath(p), this.makeCallback(resolve, reject));
|
|||
|
}
|
|||
|
}).then((dir) => {
|
|||
|
return Object.defineProperty(dir, `path`, {value: p, configurable: true, writable: true});
|
|||
|
});
|
|||
|
}
|
|||
|
opendirSync(p, opts) {
|
|||
|
const dir = typeof opts !== `undefined` ? this.realFs.opendirSync(npath.fromPortablePath(p), opts) : this.realFs.opendirSync(npath.fromPortablePath(p));
|
|||
|
return Object.defineProperty(dir, `path`, {value: p, configurable: true, writable: true});
|
|||
|
}
|
|||
|
async readPromise(fd, buffer, offset = 0, length = 0, position = -1) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
this.realFs.read(fd, buffer, offset, length, position, (error, bytesRead) => {
|
|||
|
if (error) {
|
|||
|
reject(error);
|
|||
|
} else {
|
|||
|
resolve(bytesRead);
|
|||
|
}
|
|||
|
});
|
|||
|
});
|
|||
|
}
|
|||
|
readSync(fd, buffer, offset, length, position) {
|
|||
|
return this.realFs.readSync(fd, buffer, offset, length, position);
|
|||
|
}
|
|||
|
async writePromise(fd, buffer, offset, length, position) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
if (typeof buffer === `string`) {
|
|||
|
return this.realFs.write(fd, buffer, offset, this.makeCallback(resolve, reject));
|
|||
|
} else {
|
|||
|
return this.realFs.write(fd, buffer, offset, length, position, this.makeCallback(resolve, reject));
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
writeSync(fd, buffer, offset, length, position) {
|
|||
|
if (typeof buffer === `string`) {
|
|||
|
return this.realFs.writeSync(fd, buffer, offset);
|
|||
|
} else {
|
|||
|
return this.realFs.writeSync(fd, buffer, offset, length, position);
|
|||
|
}
|
|||
|
}
|
|||
|
async closePromise(fd) {
|
|||
|
await new Promise((resolve, reject) => {
|
|||
|
this.realFs.close(fd, this.makeCallback(resolve, reject));
|
|||
|
});
|
|||
|
}
|
|||
|
closeSync(fd) {
|
|||
|
this.realFs.closeSync(fd);
|
|||
|
}
|
|||
|
createReadStream(p, opts) {
|
|||
|
const realPath = p !== null ? npath.fromPortablePath(p) : p;
|
|||
|
return this.realFs.createReadStream(realPath, opts);
|
|||
|
}
|
|||
|
createWriteStream(p, opts) {
|
|||
|
const realPath = p !== null ? npath.fromPortablePath(p) : p;
|
|||
|
return this.realFs.createWriteStream(realPath, opts);
|
|||
|
}
|
|||
|
async realpathPromise(p) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
this.realFs.realpath(npath.fromPortablePath(p), {}, this.makeCallback(resolve, reject));
|
|||
|
}).then((path) => {
|
|||
|
return npath.toPortablePath(path);
|
|||
|
});
|
|||
|
}
|
|||
|
realpathSync(p) {
|
|||
|
return npath.toPortablePath(this.realFs.realpathSync(npath.fromPortablePath(p), {}));
|
|||
|
}
|
|||
|
async existsPromise(p) {
|
|||
|
return await new Promise((resolve) => {
|
|||
|
this.realFs.exists(npath.fromPortablePath(p), resolve);
|
|||
|
});
|
|||
|
}
|
|||
|
accessSync(p, mode) {
|
|||
|
return this.realFs.accessSync(npath.fromPortablePath(p), mode);
|
|||
|
}
|
|||
|
async accessPromise(p, mode) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
this.realFs.access(npath.fromPortablePath(p), mode, this.makeCallback(resolve, reject));
|
|||
|
});
|
|||
|
}
|
|||
|
existsSync(p) {
|
|||
|
return this.realFs.existsSync(npath.fromPortablePath(p));
|
|||
|
}
|
|||
|
async statPromise(p, opts) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
if (opts) {
|
|||
|
this.realFs.stat(npath.fromPortablePath(p), opts, this.makeCallback(resolve, reject));
|
|||
|
} else {
|
|||
|
this.realFs.stat(npath.fromPortablePath(p), this.makeCallback(resolve, reject));
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
statSync(p, opts) {
|
|||
|
if (opts) {
|
|||
|
return this.realFs.statSync(npath.fromPortablePath(p), opts);
|
|||
|
} else {
|
|||
|
return this.realFs.statSync(npath.fromPortablePath(p));
|
|||
|
}
|
|||
|
}
|
|||
|
async fstatPromise(fd, opts) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
if (opts) {
|
|||
|
this.realFs.fstat(fd, opts, this.makeCallback(resolve, reject));
|
|||
|
} else {
|
|||
|
this.realFs.fstat(fd, this.makeCallback(resolve, reject));
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
fstatSync(fd, opts) {
|
|||
|
if (opts) {
|
|||
|
return this.realFs.fstatSync(fd, opts);
|
|||
|
} else {
|
|||
|
return this.realFs.fstatSync(fd);
|
|||
|
}
|
|||
|
}
|
|||
|
async lstatPromise(p, opts) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
if (opts) {
|
|||
|
this.realFs.lstat(npath.fromPortablePath(p), opts, this.makeCallback(resolve, reject));
|
|||
|
} else {
|
|||
|
this.realFs.lstat(npath.fromPortablePath(p), this.makeCallback(resolve, reject));
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
lstatSync(p, opts) {
|
|||
|
if (opts) {
|
|||
|
return this.realFs.lstatSync(npath.fromPortablePath(p), opts);
|
|||
|
} else {
|
|||
|
return this.realFs.lstatSync(npath.fromPortablePath(p));
|
|||
|
}
|
|||
|
}
|
|||
|
async chmodPromise(p, mask) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
this.realFs.chmod(npath.fromPortablePath(p), mask, this.makeCallback(resolve, reject));
|
|||
|
});
|
|||
|
}
|
|||
|
chmodSync(p, mask) {
|
|||
|
return this.realFs.chmodSync(npath.fromPortablePath(p), mask);
|
|||
|
}
|
|||
|
async chownPromise(p, uid, gid) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
this.realFs.chown(npath.fromPortablePath(p), uid, gid, this.makeCallback(resolve, reject));
|
|||
|
});
|
|||
|
}
|
|||
|
chownSync(p, uid, gid) {
|
|||
|
return this.realFs.chownSync(npath.fromPortablePath(p), uid, gid);
|
|||
|
}
|
|||
|
async renamePromise(oldP, newP) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
this.realFs.rename(npath.fromPortablePath(oldP), npath.fromPortablePath(newP), this.makeCallback(resolve, reject));
|
|||
|
});
|
|||
|
}
|
|||
|
renameSync(oldP, newP) {
|
|||
|
return this.realFs.renameSync(npath.fromPortablePath(oldP), npath.fromPortablePath(newP));
|
|||
|
}
|
|||
|
async copyFilePromise(sourceP, destP, flags = 0) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
this.realFs.copyFile(npath.fromPortablePath(sourceP), npath.fromPortablePath(destP), flags, this.makeCallback(resolve, reject));
|
|||
|
});
|
|||
|
}
|
|||
|
copyFileSync(sourceP, destP, flags = 0) {
|
|||
|
return this.realFs.copyFileSync(npath.fromPortablePath(sourceP), npath.fromPortablePath(destP), flags);
|
|||
|
}
|
|||
|
async appendFilePromise(p, content, opts) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
const fsNativePath = typeof p === `string` ? npath.fromPortablePath(p) : p;
|
|||
|
if (opts) {
|
|||
|
this.realFs.appendFile(fsNativePath, content, opts, this.makeCallback(resolve, reject));
|
|||
|
} else {
|
|||
|
this.realFs.appendFile(fsNativePath, content, this.makeCallback(resolve, reject));
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
appendFileSync(p, content, opts) {
|
|||
|
const fsNativePath = typeof p === `string` ? npath.fromPortablePath(p) : p;
|
|||
|
if (opts) {
|
|||
|
this.realFs.appendFileSync(fsNativePath, content, opts);
|
|||
|
} else {
|
|||
|
this.realFs.appendFileSync(fsNativePath, content);
|
|||
|
}
|
|||
|
}
|
|||
|
async writeFilePromise(p, content, opts) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
const fsNativePath = typeof p === `string` ? npath.fromPortablePath(p) : p;
|
|||
|
if (opts) {
|
|||
|
this.realFs.writeFile(fsNativePath, content, opts, this.makeCallback(resolve, reject));
|
|||
|
} else {
|
|||
|
this.realFs.writeFile(fsNativePath, content, this.makeCallback(resolve, reject));
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
writeFileSync(p, content, opts) {
|
|||
|
const fsNativePath = typeof p === `string` ? npath.fromPortablePath(p) : p;
|
|||
|
if (opts) {
|
|||
|
this.realFs.writeFileSync(fsNativePath, content, opts);
|
|||
|
} else {
|
|||
|
this.realFs.writeFileSync(fsNativePath, content);
|
|||
|
}
|
|||
|
}
|
|||
|
async unlinkPromise(p) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
this.realFs.unlink(npath.fromPortablePath(p), this.makeCallback(resolve, reject));
|
|||
|
});
|
|||
|
}
|
|||
|
unlinkSync(p) {
|
|||
|
return this.realFs.unlinkSync(npath.fromPortablePath(p));
|
|||
|
}
|
|||
|
async utimesPromise(p, atime, mtime) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
this.realFs.utimes(npath.fromPortablePath(p), atime, mtime, this.makeCallback(resolve, reject));
|
|||
|
});
|
|||
|
}
|
|||
|
utimesSync(p, atime, mtime) {
|
|||
|
this.realFs.utimesSync(npath.fromPortablePath(p), atime, mtime);
|
|||
|
}
|
|||
|
async lutimesPromiseImpl(p, atime, mtime) {
|
|||
|
const lutimes = this.realFs.lutimes;
|
|||
|
if (typeof lutimes === `undefined`)
|
|||
|
throw ENOSYS(`unavailable Node binding`, `lutimes '${p}'`);
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
lutimes.call(this.realFs, npath.fromPortablePath(p), atime, mtime, this.makeCallback(resolve, reject));
|
|||
|
});
|
|||
|
}
|
|||
|
lutimesSyncImpl(p, atime, mtime) {
|
|||
|
const lutimesSync = this.realFs.lutimesSync;
|
|||
|
if (typeof lutimesSync === `undefined`)
|
|||
|
throw ENOSYS(`unavailable Node binding`, `lutimes '${p}'`);
|
|||
|
lutimesSync.call(this.realFs, npath.fromPortablePath(p), atime, mtime);
|
|||
|
}
|
|||
|
async mkdirPromise(p, opts) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
this.realFs.mkdir(npath.fromPortablePath(p), opts, this.makeCallback(resolve, reject));
|
|||
|
});
|
|||
|
}
|
|||
|
mkdirSync(p, opts) {
|
|||
|
return this.realFs.mkdirSync(npath.fromPortablePath(p), opts);
|
|||
|
}
|
|||
|
async rmdirPromise(p, opts) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
if (opts) {
|
|||
|
this.realFs.rmdir(npath.fromPortablePath(p), opts, this.makeCallback(resolve, reject));
|
|||
|
} else {
|
|||
|
this.realFs.rmdir(npath.fromPortablePath(p), this.makeCallback(resolve, reject));
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
rmdirSync(p, opts) {
|
|||
|
return this.realFs.rmdirSync(npath.fromPortablePath(p), opts);
|
|||
|
}
|
|||
|
async linkPromise(existingP, newP) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
this.realFs.link(npath.fromPortablePath(existingP), npath.fromPortablePath(newP), this.makeCallback(resolve, reject));
|
|||
|
});
|
|||
|
}
|
|||
|
linkSync(existingP, newP) {
|
|||
|
return this.realFs.linkSync(npath.fromPortablePath(existingP), npath.fromPortablePath(newP));
|
|||
|
}
|
|||
|
async symlinkPromise(target, p, type) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
this.realFs.symlink(npath.fromPortablePath(target.replace(/\/+$/, ``)), npath.fromPortablePath(p), type, this.makeCallback(resolve, reject));
|
|||
|
});
|
|||
|
}
|
|||
|
symlinkSync(target, p, type) {
|
|||
|
return this.realFs.symlinkSync(npath.fromPortablePath(target.replace(/\/+$/, ``)), npath.fromPortablePath(p), type);
|
|||
|
}
|
|||
|
async readFilePromise(p, encoding) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
const fsNativePath = typeof p === `string` ? npath.fromPortablePath(p) : p;
|
|||
|
this.realFs.readFile(fsNativePath, encoding, this.makeCallback(resolve, reject));
|
|||
|
});
|
|||
|
}
|
|||
|
readFileSync(p, encoding) {
|
|||
|
const fsNativePath = typeof p === `string` ? npath.fromPortablePath(p) : p;
|
|||
|
return this.realFs.readFileSync(fsNativePath, encoding);
|
|||
|
}
|
|||
|
async readdirPromise(p, opts) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
if (opts == null ? void 0 : opts.withFileTypes) {
|
|||
|
this.realFs.readdir(npath.fromPortablePath(p), {withFileTypes: true}, this.makeCallback(resolve, reject));
|
|||
|
} else {
|
|||
|
this.realFs.readdir(npath.fromPortablePath(p), this.makeCallback((value) => resolve(value), reject));
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
readdirSync(p, opts) {
|
|||
|
if (opts == null ? void 0 : opts.withFileTypes) {
|
|||
|
return this.realFs.readdirSync(npath.fromPortablePath(p), {withFileTypes: true});
|
|||
|
} else {
|
|||
|
return this.realFs.readdirSync(npath.fromPortablePath(p));
|
|||
|
}
|
|||
|
}
|
|||
|
async readlinkPromise(p) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
this.realFs.readlink(npath.fromPortablePath(p), this.makeCallback(resolve, reject));
|
|||
|
}).then((path) => {
|
|||
|
return npath.toPortablePath(path);
|
|||
|
});
|
|||
|
}
|
|||
|
readlinkSync(p) {
|
|||
|
return npath.toPortablePath(this.realFs.readlinkSync(npath.fromPortablePath(p)));
|
|||
|
}
|
|||
|
async truncatePromise(p, len) {
|
|||
|
return await new Promise((resolve, reject) => {
|
|||
|
this.realFs.truncate(npath.fromPortablePath(p), len, this.makeCallback(resolve, reject));
|
|||
|
});
|
|||
|
}
|
|||
|
truncateSync(p, len) {
|
|||
|
return this.realFs.truncateSync(npath.fromPortablePath(p), len);
|
|||
|
}
|
|||
|
watch(p, a, b) {
|
|||
|
return this.realFs.watch(npath.fromPortablePath(p), a, b);
|
|||
|
}
|
|||
|
watchFile(p, a, b) {
|
|||
|
return this.realFs.watchFile(npath.fromPortablePath(p), a, b);
|
|||
|
}
|
|||
|
unwatchFile(p, cb) {
|
|||
|
return this.realFs.unwatchFile(npath.fromPortablePath(p), cb);
|
|||
|
}
|
|||
|
makeCallback(resolve, reject) {
|
|||
|
return (err, result) => {
|
|||
|
if (err) {
|
|||
|
reject(err);
|
|||
|
} else {
|
|||
|
resolve(result);
|
|||
|
}
|
|||
|
};
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
var Event;
|
|||
|
(function(Event2) {
|
|||
|
Event2["Change"] = `change`;
|
|||
|
Event2["Stop"] = `stop`;
|
|||
|
})(Event || (Event = {}));
|
|||
|
var Status;
|
|||
|
(function(Status2) {
|
|||
|
Status2["Ready"] = `ready`;
|
|||
|
Status2["Running"] = `running`;
|
|||
|
Status2["Stopped"] = `stopped`;
|
|||
|
})(Status || (Status = {}));
|
|||
|
function assertStatus(current, expected) {
|
|||
|
if (current !== expected) {
|
|||
|
throw new Error(`Invalid StatWatcher status: expected '${expected}', got '${current}'`);
|
|||
|
}
|
|||
|
}
|
|||
|
class CustomStatWatcher extends events.EventEmitter {
|
|||
|
constructor(fakeFs, path, {bigint = false} = {}) {
|
|||
|
super();
|
|||
|
this.status = Status.Ready;
|
|||
|
this.changeListeners = new Map();
|
|||
|
this.startTimeout = null;
|
|||
|
this.fakeFs = fakeFs;
|
|||
|
this.path = path;
|
|||
|
this.bigint = bigint;
|
|||
|
this.lastStats = this.stat();
|
|||
|
}
|
|||
|
static create(fakeFs, path, opts) {
|
|||
|
const statWatcher = new CustomStatWatcher(fakeFs, path, opts);
|
|||
|
statWatcher.start();
|
|||
|
return statWatcher;
|
|||
|
}
|
|||
|
start() {
|
|||
|
assertStatus(this.status, Status.Ready);
|
|||
|
this.status = Status.Running;
|
|||
|
this.startTimeout = setTimeout(() => {
|
|||
|
this.startTimeout = null;
|
|||
|
if (!this.fakeFs.existsSync(this.path)) {
|
|||
|
this.emit(Event.Change, this.lastStats, this.lastStats);
|
|||
|
}
|
|||
|
}, 3);
|
|||
|
}
|
|||
|
stop() {
|
|||
|
assertStatus(this.status, Status.Running);
|
|||
|
this.status = Status.Stopped;
|
|||
|
if (this.startTimeout !== null) {
|
|||
|
clearTimeout(this.startTimeout);
|
|||
|
this.startTimeout = null;
|
|||
|
}
|
|||
|
this.emit(Event.Stop);
|
|||
|
}
|
|||
|
stat() {
|
|||
|
try {
|
|||
|
return this.fakeFs.statSync(this.path, {bigint: this.bigint});
|
|||
|
} catch (error) {
|
|||
|
const statInstance = this.bigint ? new BigIntStatsEntry() : new StatEntry();
|
|||
|
return clearStats(statInstance);
|
|||
|
}
|
|||
|
}
|
|||
|
makeInterval(opts) {
|
|||
|
const interval = setInterval(() => {
|
|||
|
const currentStats = this.stat();
|
|||
|
const previousStats = this.lastStats;
|
|||
|
if (areStatsEqual(currentStats, previousStats))
|
|||
|
return;
|
|||
|
this.lastStats = currentStats;
|
|||
|
this.emit(Event.Change, currentStats, previousStats);
|
|||
|
}, opts.interval);
|
|||
|
return opts.persistent ? interval : interval.unref();
|
|||
|
}
|
|||
|
registerChangeListener(listener, opts) {
|
|||
|
this.addListener(Event.Change, listener);
|
|||
|
this.changeListeners.set(listener, this.makeInterval(opts));
|
|||
|
}
|
|||
|
unregisterChangeListener(listener) {
|
|||
|
this.removeListener(Event.Change, listener);
|
|||
|
const interval = this.changeListeners.get(listener);
|
|||
|
if (typeof interval !== `undefined`)
|
|||
|
clearInterval(interval);
|
|||
|
this.changeListeners.delete(listener);
|
|||
|
}
|
|||
|
unregisterAllChangeListeners() {
|
|||
|
for (const listener of this.changeListeners.keys()) {
|
|||
|
this.unregisterChangeListener(listener);
|
|||
|
}
|
|||
|
}
|
|||
|
hasChangeListeners() {
|
|||
|
return this.changeListeners.size > 0;
|
|||
|
}
|
|||
|
ref() {
|
|||
|
for (const interval of this.changeListeners.values())
|
|||
|
interval.ref();
|
|||
|
return this;
|
|||
|
}
|
|||
|
unref() {
|
|||
|
for (const interval of this.changeListeners.values())
|
|||
|
interval.unref();
|
|||
|
return this;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
const statWatchersByFakeFS = new WeakMap();
|
|||
|
function watchFile(fakeFs, path, a, b) {
|
|||
|
let bigint;
|
|||
|
let persistent;
|
|||
|
let interval;
|
|||
|
let listener;
|
|||
|
switch (typeof a) {
|
|||
|
case `function`:
|
|||
|
{
|
|||
|
bigint = false;
|
|||
|
persistent = true;
|
|||
|
interval = 5007;
|
|||
|
listener = a;
|
|||
|
}
|
|||
|
break;
|
|||
|
default:
|
|||
|
{
|
|||
|
({
|
|||
|
bigint = false,
|
|||
|
persistent = true,
|
|||
|
interval = 5007
|
|||
|
} = a);
|
|||
|
listener = b;
|
|||
|
}
|
|||
|
break;
|
|||
|
}
|
|||
|
let statWatchers = statWatchersByFakeFS.get(fakeFs);
|
|||
|
if (typeof statWatchers === `undefined`)
|
|||
|
statWatchersByFakeFS.set(fakeFs, statWatchers = new Map());
|
|||
|
let statWatcher = statWatchers.get(path);
|
|||
|
if (typeof statWatcher === `undefined`) {
|
|||
|
statWatcher = CustomStatWatcher.create(fakeFs, path, {bigint});
|
|||
|
statWatchers.set(path, statWatcher);
|
|||
|
}
|
|||
|
statWatcher.registerChangeListener(listener, {persistent, interval});
|
|||
|
return statWatcher;
|
|||
|
}
|
|||
|
function unwatchFile(fakeFs, path, cb) {
|
|||
|
const statWatchers = statWatchersByFakeFS.get(fakeFs);
|
|||
|
if (typeof statWatchers === `undefined`)
|
|||
|
return;
|
|||
|
const statWatcher = statWatchers.get(path);
|
|||
|
if (typeof statWatcher === `undefined`)
|
|||
|
return;
|
|||
|
if (typeof cb === `undefined`)
|
|||
|
statWatcher.unregisterAllChangeListeners();
|
|||
|
else
|
|||
|
statWatcher.unregisterChangeListener(cb);
|
|||
|
if (!statWatcher.hasChangeListeners()) {
|
|||
|
statWatcher.stop();
|
|||
|
statWatchers.delete(path);
|
|||
|
}
|
|||
|
}
|
|||
|
function unwatchAllFiles(fakeFs) {
|
|||
|
const statWatchers = statWatchersByFakeFS.get(fakeFs);
|
|||
|
if (typeof statWatchers === `undefined`)
|
|||
|
return;
|
|||
|
for (const path of statWatchers.keys()) {
|
|||
|
unwatchFile(fakeFs, path);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
var __defProp$3 = Object.defineProperty;
|
|||
|
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|||
|
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|||
|
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|||
|
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
|
|||
|
var __spreadValues$3 = (a, b) => {
|
|||
|
for (var prop in b || (b = {}))
|
|||
|
if (__hasOwnProp$4.call(b, prop))
|
|||
|
__defNormalProp$3(a, prop, b[prop]);
|
|||
|
if (__getOwnPropSymbols$4)
|
|||
|
for (var prop of __getOwnPropSymbols$4(b)) {
|
|||
|
if (__propIsEnum$4.call(b, prop))
|
|||
|
__defNormalProp$3(a, prop, b[prop]);
|
|||
|
}
|
|||
|
return a;
|
|||
|
};
|
|||
|
const DEFAULT_COMPRESSION_LEVEL = `mixed`;
|
|||
|
function toUnixTimestamp(time) {
|
|||
|
if (typeof time === `string` && String(+time) === time)
|
|||
|
return +time;
|
|||
|
if (Number.isFinite(time)) {
|
|||
|
if (time < 0) {
|
|||
|
return Date.now() / 1e3;
|
|||
|
} else {
|
|||
|
return time;
|
|||
|
}
|
|||
|
}
|
|||
|
if (nodeUtils.types.isDate(time))
|
|||
|
return time.getTime() / 1e3;
|
|||
|
throw new Error(`Invalid time`);
|
|||
|
}
|
|||
|
function makeEmptyArchive() {
|
|||
|
return Buffer.from([
|
|||
|
80,
|
|||
|
75,
|
|||
|
5,
|
|||
|
6,
|
|||
|
0,
|
|||
|
0,
|
|||
|
0,
|
|||
|
0,
|
|||
|
0,
|
|||
|
0,
|
|||
|
0,
|
|||
|
0,
|
|||
|
0,
|
|||
|
0,
|
|||
|
0,
|
|||
|
0,
|
|||
|
0,
|
|||
|
0,
|
|||
|
0,
|
|||
|
0,
|
|||
|
0,
|
|||
|
0
|
|||
|
]);
|
|||
|
}
|
|||
|
class ZipFS extends BasePortableFakeFS {
|
|||
|
constructor(source, opts) {
|
|||
|
super();
|
|||
|
this.lzSource = null;
|
|||
|
this.listings = new Map();
|
|||
|
this.entries = new Map();
|
|||
|
this.fileSources = new Map();
|
|||
|
this.fds = new Map();
|
|||
|
this.nextFd = 0;
|
|||
|
this.ready = false;
|
|||
|
this.readOnly = false;
|
|||
|
this.libzip = opts.libzip;
|
|||
|
const pathOptions = opts;
|
|||
|
this.level = typeof pathOptions.level !== `undefined` ? pathOptions.level : DEFAULT_COMPRESSION_LEVEL;
|
|||
|
source != null ? source : source = makeEmptyArchive();
|
|||
|
if (typeof source === `string`) {
|
|||
|
const {baseFs = new NodeFS()} = pathOptions;
|
|||
|
this.baseFs = baseFs;
|
|||
|
this.path = source;
|
|||
|
} else {
|
|||
|
this.path = null;
|
|||
|
this.baseFs = null;
|
|||
|
}
|
|||
|
if (opts.stats) {
|
|||
|
this.stats = opts.stats;
|
|||
|
} else {
|
|||
|
if (typeof source === `string`) {
|
|||
|
try {
|
|||
|
this.stats = this.baseFs.statSync(source);
|
|||
|
} catch (error) {
|
|||
|
if (error.code === `ENOENT` && pathOptions.create) {
|
|||
|
this.stats = makeDefaultStats();
|
|||
|
} else {
|
|||
|
throw error;
|
|||
|
}
|
|||
|
}
|
|||
|
} else {
|
|||
|
this.stats = makeDefaultStats();
|
|||
|
}
|
|||
|
}
|
|||
|
const errPtr = this.libzip.malloc(4);
|
|||
|
try {
|
|||
|
let flags = 0;
|
|||
|
if (typeof source === `string` && pathOptions.create)
|
|||
|
flags |= this.libzip.ZIP_CREATE | this.libzip.ZIP_TRUNCATE;
|
|||
|
if (opts.readOnly) {
|
|||
|
flags |= this.libzip.ZIP_RDONLY;
|
|||
|
this.readOnly = true;
|
|||
|
}
|
|||
|
if (typeof source === `string`) {
|
|||
|
this.zip = this.libzip.open(npath.fromPortablePath(source), flags, errPtr);
|
|||
|
} else {
|
|||
|
const lzSource = this.allocateUnattachedSource(source);
|
|||
|
try {
|
|||
|
this.zip = this.libzip.openFromSource(lzSource, flags, errPtr);
|
|||
|
this.lzSource = lzSource;
|
|||
|
} catch (error) {
|
|||
|
this.libzip.source.free(lzSource);
|
|||
|
throw error;
|
|||
|
}
|
|||
|
}
|
|||
|
if (this.zip === 0) {
|
|||
|
const error = this.libzip.struct.errorS();
|
|||
|
this.libzip.error.initWithCode(error, this.libzip.getValue(errPtr, `i32`));
|
|||
|
throw this.makeLibzipError(error);
|
|||
|
}
|
|||
|
} finally {
|
|||
|
this.libzip.free(errPtr);
|
|||
|
}
|
|||
|
this.listings.set(PortablePath.root, new Set());
|
|||
|
const entryCount = this.libzip.getNumEntries(this.zip, 0);
|
|||
|
for (let t = 0; t < entryCount; ++t) {
|
|||
|
const raw = this.libzip.getName(this.zip, t, 0);
|
|||
|
if (ppath.isAbsolute(raw))
|
|||
|
continue;
|
|||
|
const p = ppath.resolve(PortablePath.root, raw);
|
|||
|
this.registerEntry(p, t);
|
|||
|
if (raw.endsWith(`/`)) {
|
|||
|
this.registerListing(p);
|
|||
|
}
|
|||
|
}
|
|||
|
this.symlinkCount = this.libzip.ext.countSymlinks(this.zip);
|
|||
|
if (this.symlinkCount === -1)
|
|||
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|||
|
this.ready = true;
|
|||
|
}
|
|||
|
makeLibzipError(error) {
|
|||
|
const errorCode = this.libzip.struct.errorCodeZip(error);
|
|||
|
const strerror = this.libzip.error.strerror(error);
|
|||
|
const libzipError = new LibzipError(strerror, this.libzip.errors[errorCode]);
|
|||
|
if (errorCode === this.libzip.errors.ZIP_ER_CHANGED)
|
|||
|
throw new Error(`Assertion failed: Unexpected libzip error: ${libzipError.message}`);
|
|||
|
return libzipError;
|
|||
|
}
|
|||
|
getExtractHint(hints) {
|
|||
|
for (const fileName of this.entries.keys()) {
|
|||
|
const ext = this.pathUtils.extname(fileName);
|
|||
|
if (hints.relevantExtensions.has(ext)) {
|
|||
|
return true;
|
|||
|
}
|
|||
|
}
|
|||
|
return false;
|
|||
|
}
|
|||
|
getAllFiles() {
|
|||
|
return Array.from(this.entries.keys());
|
|||
|
}
|
|||
|
getRealPath() {
|
|||
|
if (!this.path)
|
|||
|
throw new Error(`ZipFS don't have real paths when loaded from a buffer`);
|
|||
|
return this.path;
|
|||
|
}
|
|||
|
getBufferAndClose() {
|
|||
|
this.prepareClose();
|
|||
|
if (!this.lzSource)
|
|||
|
throw new Error(`ZipFS was not created from a Buffer`);
|
|||
|
try {
|
|||
|
this.libzip.source.keep(this.lzSource);
|
|||
|
if (this.libzip.close(this.zip) === -1)
|
|||
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|||
|
if (this.libzip.source.open(this.lzSource) === -1)
|
|||
|
throw this.makeLibzipError(this.libzip.source.error(this.lzSource));
|
|||
|
if (this.libzip.source.seek(this.lzSource, 0, 0, this.libzip.SEEK_END) === -1)
|
|||
|
throw this.makeLibzipError(this.libzip.source.error(this.lzSource));
|
|||
|
const size = this.libzip.source.tell(this.lzSource);
|
|||
|
if (size === -1)
|
|||
|
throw this.makeLibzipError(this.libzip.source.error(this.lzSource));
|
|||
|
if (this.libzip.source.seek(this.lzSource, 0, 0, this.libzip.SEEK_SET) === -1)
|
|||
|
throw this.makeLibzipError(this.libzip.source.error(this.lzSource));
|
|||
|
const buffer = this.libzip.malloc(size);
|
|||
|
if (!buffer)
|
|||
|
throw new Error(`Couldn't allocate enough memory`);
|
|||
|
try {
|
|||
|
const rc = this.libzip.source.read(this.lzSource, buffer, size);
|
|||
|
if (rc === -1)
|
|||
|
throw this.makeLibzipError(this.libzip.source.error(this.lzSource));
|
|||
|
else if (rc < size)
|
|||
|
throw new Error(`Incomplete read`);
|
|||
|
else if (rc > size)
|
|||
|
throw new Error(`Overread`);
|
|||
|
const memory = this.libzip.HEAPU8.subarray(buffer, buffer + size);
|
|||
|
return Buffer.from(memory);
|
|||
|
} finally {
|
|||
|
this.libzip.free(buffer);
|
|||
|
}
|
|||
|
} finally {
|
|||
|
this.libzip.source.close(this.lzSource);
|
|||
|
this.libzip.source.free(this.lzSource);
|
|||
|
this.ready = false;
|
|||
|
}
|
|||
|
}
|
|||
|
prepareClose() {
|
|||
|
if (!this.ready)
|
|||
|
throw EBUSY(`archive closed, close`);
|
|||
|
unwatchAllFiles(this);
|
|||
|
}
|
|||
|
saveAndClose() {
|
|||
|
if (!this.path || !this.baseFs)
|
|||
|
throw new Error(`ZipFS cannot be saved and must be discarded when loaded from a buffer`);
|
|||
|
this.prepareClose();
|
|||
|
if (this.readOnly) {
|
|||
|
this.discardAndClose();
|
|||
|
return;
|
|||
|
}
|
|||
|
const newMode = this.baseFs.existsSync(this.path) || this.stats.mode === DEFAULT_MODE ? void 0 : this.stats.mode;
|
|||
|
if (this.entries.size === 0) {
|
|||
|
this.discardAndClose();
|
|||
|
this.baseFs.writeFileSync(this.path, makeEmptyArchive(), {mode: newMode});
|
|||
|
} else {
|
|||
|
const rc = this.libzip.close(this.zip);
|
|||
|
if (rc === -1)
|
|||
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|||
|
if (typeof newMode !== `undefined`) {
|
|||
|
this.baseFs.chmodSync(this.path, newMode);
|
|||
|
}
|
|||
|
}
|
|||
|
this.ready = false;
|
|||
|
}
|
|||
|
discardAndClose() {
|
|||
|
this.prepareClose();
|
|||
|
this.libzip.discard(this.zip);
|
|||
|
this.ready = false;
|
|||
|
}
|
|||
|
resolve(p) {
|
|||
|
return ppath.resolve(PortablePath.root, p);
|
|||
|
}
|
|||
|
async openPromise(p, flags, mode) {
|
|||
|
return this.openSync(p, flags, mode);
|
|||
|
}
|
|||
|
openSync(p, flags, mode) {
|
|||
|
const fd = this.nextFd++;
|
|||
|
this.fds.set(fd, {cursor: 0, p});
|
|||
|
return fd;
|
|||
|
}
|
|||
|
hasOpenFileHandles() {
|
|||
|
return !!this.fds.size;
|
|||
|
}
|
|||
|
async opendirPromise(p, opts) {
|
|||
|
return this.opendirSync(p, opts);
|
|||
|
}
|
|||
|
opendirSync(p, opts = {}) {
|
|||
|
const resolvedP = this.resolveFilename(`opendir '${p}'`, p);
|
|||
|
if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP))
|
|||
|
throw ENOENT(`opendir '${p}'`);
|
|||
|
const directoryListing = this.listings.get(resolvedP);
|
|||
|
if (!directoryListing)
|
|||
|
throw ENOTDIR(`opendir '${p}'`);
|
|||
|
const entries = [...directoryListing];
|
|||
|
const fd = this.openSync(resolvedP, `r`);
|
|||
|
const onClose = () => {
|
|||
|
this.closeSync(fd);
|
|||
|
};
|
|||
|
return opendir(this, resolvedP, entries, {onClose});
|
|||
|
}
|
|||
|
async readPromise(fd, buffer, offset, length, position) {
|
|||
|
return this.readSync(fd, buffer, offset, length, position);
|
|||
|
}
|
|||
|
readSync(fd, buffer, offset = 0, length = buffer.byteLength, position = -1) {
|
|||
|
const entry = this.fds.get(fd);
|
|||
|
if (typeof entry === `undefined`)
|
|||
|
throw EBADF(`read`);
|
|||
|
const realPosition = position === -1 || position === null ? entry.cursor : position;
|
|||
|
const source = this.readFileSync(entry.p);
|
|||
|
source.copy(buffer, offset, realPosition, realPosition + length);
|
|||
|
const bytesRead = Math.max(0, Math.min(source.length - realPosition, length));
|
|||
|
if (position === -1 || position === null)
|
|||
|
entry.cursor += bytesRead;
|
|||
|
return bytesRead;
|
|||
|
}
|
|||
|
async writePromise(fd, buffer, offset, length, position) {
|
|||
|
if (typeof buffer === `string`) {
|
|||
|
return this.writeSync(fd, buffer, position);
|
|||
|
} else {
|
|||
|
return this.writeSync(fd, buffer, offset, length, position);
|
|||
|
}
|
|||
|
}
|
|||
|
writeSync(fd, buffer, offset, length, position) {
|
|||
|
const entry = this.fds.get(fd);
|
|||
|
if (typeof entry === `undefined`)
|
|||
|
throw EBADF(`read`);
|
|||
|
throw new Error(`Unimplemented`);
|
|||
|
}
|
|||
|
async closePromise(fd) {
|
|||
|
return this.closeSync(fd);
|
|||
|
}
|
|||
|
closeSync(fd) {
|
|||
|
const entry = this.fds.get(fd);
|
|||
|
if (typeof entry === `undefined`)
|
|||
|
throw EBADF(`read`);
|
|||
|
this.fds.delete(fd);
|
|||
|
}
|
|||
|
createReadStream(p, {encoding} = {}) {
|
|||
|
if (p === null)
|
|||
|
throw new Error(`Unimplemented`);
|
|||
|
const fd = this.openSync(p, `r`);
|
|||
|
const stream$1 = Object.assign(new stream.PassThrough({
|
|||
|
emitClose: true,
|
|||
|
autoDestroy: true,
|
|||
|
destroy: (error, callback) => {
|
|||
|
clearImmediate(immediate);
|
|||
|
this.closeSync(fd);
|
|||
|
callback(error);
|
|||
|
}
|
|||
|
}), {
|
|||
|
close() {
|
|||
|
stream$1.destroy();
|
|||
|
},
|
|||
|
bytesRead: 0,
|
|||
|
path: p
|
|||
|
});
|
|||
|
const immediate = setImmediate(async () => {
|
|||
|
try {
|
|||
|
const data = await this.readFilePromise(p, encoding);
|
|||
|
stream$1.bytesRead = data.length;
|
|||
|
stream$1.end(data);
|
|||
|
} catch (error) {
|
|||
|
stream$1.destroy(error);
|
|||
|
}
|
|||
|
});
|
|||
|
return stream$1;
|
|||
|
}
|
|||
|
createWriteStream(p, {encoding} = {}) {
|
|||
|
if (this.readOnly)
|
|||
|
throw EROFS(`open '${p}'`);
|
|||
|
if (p === null)
|
|||
|
throw new Error(`Unimplemented`);
|
|||
|
const chunks = [];
|
|||
|
const fd = this.openSync(p, `w`);
|
|||
|
const stream$1 = Object.assign(new stream.PassThrough({
|
|||
|
autoDestroy: true,
|
|||
|
emitClose: true,
|
|||
|
destroy: (error, callback) => {
|
|||
|
try {
|
|||
|
if (error) {
|
|||
|
callback(error);
|
|||
|
} else {
|
|||
|
this.writeFileSync(p, Buffer.concat(chunks), encoding);
|
|||
|
callback(null);
|
|||
|
}
|
|||
|
} catch (err) {
|
|||
|
callback(err);
|
|||
|
} finally {
|
|||
|
this.closeSync(fd);
|
|||
|
}
|
|||
|
}
|
|||
|
}), {
|
|||
|
bytesWritten: 0,
|
|||
|
path: p,
|
|||
|
close() {
|
|||
|
stream$1.destroy();
|
|||
|
}
|
|||
|
});
|
|||
|
stream$1.on(`data`, (chunk) => {
|
|||
|
const chunkBuffer = Buffer.from(chunk);
|
|||
|
stream$1.bytesWritten += chunkBuffer.length;
|
|||
|
chunks.push(chunkBuffer);
|
|||
|
});
|
|||
|
return stream$1;
|
|||
|
}
|
|||
|
async realpathPromise(p) {
|
|||
|
return this.realpathSync(p);
|
|||
|
}
|
|||
|
realpathSync(p) {
|
|||
|
const resolvedP = this.resolveFilename(`lstat '${p}'`, p);
|
|||
|
if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP))
|
|||
|
throw ENOENT(`lstat '${p}'`);
|
|||
|
return resolvedP;
|
|||
|
}
|
|||
|
async existsPromise(p) {
|
|||
|
return this.existsSync(p);
|
|||
|
}
|
|||
|
existsSync(p) {
|
|||
|
if (!this.ready)
|
|||
|
throw EBUSY(`archive closed, existsSync '${p}'`);
|
|||
|
if (this.symlinkCount === 0) {
|
|||
|
const resolvedP2 = ppath.resolve(PortablePath.root, p);
|
|||
|
return this.entries.has(resolvedP2) || this.listings.has(resolvedP2);
|
|||
|
}
|
|||
|
let resolvedP;
|
|||
|
try {
|
|||
|
resolvedP = this.resolveFilename(`stat '${p}'`, p);
|
|||
|
} catch (error) {
|
|||
|
return false;
|
|||
|
}
|
|||
|
return this.entries.has(resolvedP) || this.listings.has(resolvedP);
|
|||
|
}
|
|||
|
async accessPromise(p, mode) {
|
|||
|
return this.accessSync(p, mode);
|
|||
|
}
|
|||
|
accessSync(p, mode = fs.constants.F_OK) {
|
|||
|
const resolvedP = this.resolveFilename(`access '${p}'`, p);
|
|||
|
if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP))
|
|||
|
throw ENOENT(`access '${p}'`);
|
|||
|
if (this.readOnly && mode & fs.constants.W_OK) {
|
|||
|
throw EROFS(`access '${p}'`);
|
|||
|
}
|
|||
|
}
|
|||
|
async statPromise(p, opts) {
|
|||
|
return this.statSync(p, opts);
|
|||
|
}
|
|||
|
statSync(p, opts) {
|
|||
|
const resolvedP = this.resolveFilename(`stat '${p}'`, p);
|
|||
|
if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP))
|
|||
|
throw ENOENT(`stat '${p}'`);
|
|||
|
if (p[p.length - 1] === `/` && !this.listings.has(resolvedP))
|
|||
|
throw ENOTDIR(`stat '${p}'`);
|
|||
|
return this.statImpl(`stat '${p}'`, resolvedP, opts);
|
|||
|
}
|
|||
|
async fstatPromise(fd, opts) {
|
|||
|
return this.fstatSync(fd, opts);
|
|||
|
}
|
|||
|
fstatSync(fd, opts) {
|
|||
|
const entry = this.fds.get(fd);
|
|||
|
if (typeof entry === `undefined`)
|
|||
|
throw EBADF(`fstatSync`);
|
|||
|
const {p} = entry;
|
|||
|
const resolvedP = this.resolveFilename(`stat '${p}'`, p);
|
|||
|
if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP))
|
|||
|
throw ENOENT(`stat '${p}'`);
|
|||
|
if (p[p.length - 1] === `/` && !this.listings.has(resolvedP))
|
|||
|
throw ENOTDIR(`stat '${p}'`);
|
|||
|
return this.statImpl(`fstat '${p}'`, resolvedP, opts);
|
|||
|
}
|
|||
|
async lstatPromise(p, opts) {
|
|||
|
return this.lstatSync(p, opts);
|
|||
|
}
|
|||
|
lstatSync(p, opts) {
|
|||
|
const resolvedP = this.resolveFilename(`lstat '${p}'`, p, false);
|
|||
|
if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP))
|
|||
|
throw ENOENT(`lstat '${p}'`);
|
|||
|
if (p[p.length - 1] === `/` && !this.listings.has(resolvedP))
|
|||
|
throw ENOTDIR(`lstat '${p}'`);
|
|||
|
return this.statImpl(`lstat '${p}'`, resolvedP, opts);
|
|||
|
}
|
|||
|
statImpl(reason, p, opts = {}) {
|
|||
|
const entry = this.entries.get(p);
|
|||
|
if (typeof entry !== `undefined`) {
|
|||
|
const stat = this.libzip.struct.statS();
|
|||
|
const rc = this.libzip.statIndex(this.zip, entry, 0, 0, stat);
|
|||
|
if (rc === -1)
|
|||
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|||
|
const uid = this.stats.uid;
|
|||
|
const gid = this.stats.gid;
|
|||
|
const size = this.libzip.struct.statSize(stat) >>> 0;
|
|||
|
const blksize = 512;
|
|||
|
const blocks = Math.ceil(size / blksize);
|
|||
|
const mtimeMs = (this.libzip.struct.statMtime(stat) >>> 0) * 1e3;
|
|||
|
const atimeMs = mtimeMs;
|
|||
|
const birthtimeMs = mtimeMs;
|
|||
|
const ctimeMs = mtimeMs;
|
|||
|
const atime = new Date(atimeMs);
|
|||
|
const birthtime = new Date(birthtimeMs);
|
|||
|
const ctime = new Date(ctimeMs);
|
|||
|
const mtime = new Date(mtimeMs);
|
|||
|
const type = this.listings.has(p) ? S_IFDIR : this.isSymbolicLink(entry) ? S_IFLNK : S_IFREG;
|
|||
|
const defaultMode = type === S_IFDIR ? 493 : 420;
|
|||
|
const mode = type | this.getUnixMode(entry, defaultMode) & 511;
|
|||
|
const crc = this.libzip.struct.statCrc(stat);
|
|||
|
const statInstance = Object.assign(new StatEntry(), {uid, gid, size, blksize, blocks, atime, birthtime, ctime, mtime, atimeMs, birthtimeMs, ctimeMs, mtimeMs, mode, crc});
|
|||
|
return opts.bigint === true ? convertToBigIntStats(statInstance) : statInstance;
|
|||
|
}
|
|||
|
if (this.listings.has(p)) {
|
|||
|
const uid = this.stats.uid;
|
|||
|
const gid = this.stats.gid;
|
|||
|
const size = 0;
|
|||
|
const blksize = 512;
|
|||
|
const blocks = 0;
|
|||
|
const atimeMs = this.stats.mtimeMs;
|
|||
|
const birthtimeMs = this.stats.mtimeMs;
|
|||
|
const ctimeMs = this.stats.mtimeMs;
|
|||
|
const mtimeMs = this.stats.mtimeMs;
|
|||
|
const atime = new Date(atimeMs);
|
|||
|
const birthtime = new Date(birthtimeMs);
|
|||
|
const ctime = new Date(ctimeMs);
|
|||
|
const mtime = new Date(mtimeMs);
|
|||
|
const mode = S_IFDIR | 493;
|
|||
|
const crc = 0;
|
|||
|
const statInstance = Object.assign(new StatEntry(), {uid, gid, size, blksize, blocks, atime, birthtime, ctime, mtime, atimeMs, birthtimeMs, ctimeMs, mtimeMs, mode, crc});
|
|||
|
return opts.bigint === true ? convertToBigIntStats(statInstance) : statInstance;
|
|||
|
}
|
|||
|
throw new Error(`Unreachable`);
|
|||
|
}
|
|||
|
getUnixMode(index, defaultMode) {
|
|||
|
const rc = this.libzip.file.getExternalAttributes(this.zip, index, 0, 0, this.libzip.uint08S, this.libzip.uint32S);
|
|||
|
if (rc === -1)
|
|||
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|||
|
const opsys = this.libzip.getValue(this.libzip.uint08S, `i8`) >>> 0;
|
|||
|
if (opsys !== this.libzip.ZIP_OPSYS_UNIX)
|
|||
|
return defaultMode;
|
|||
|
return this.libzip.getValue(this.libzip.uint32S, `i32`) >>> 16;
|
|||
|
}
|
|||
|
registerListing(p) {
|
|||
|
const existingListing = this.listings.get(p);
|
|||
|
if (existingListing)
|
|||
|
return existingListing;
|
|||
|
const parentListing = this.registerListing(ppath.dirname(p));
|
|||
|
parentListing.add(ppath.basename(p));
|
|||
|
const newListing = new Set();
|
|||
|
this.listings.set(p, newListing);
|
|||
|
return newListing;
|
|||
|
}
|
|||
|
registerEntry(p, index) {
|
|||
|
const parentListing = this.registerListing(ppath.dirname(p));
|
|||
|
parentListing.add(ppath.basename(p));
|
|||
|
this.entries.set(p, index);
|
|||
|
}
|
|||
|
unregisterListing(p) {
|
|||
|
this.listings.delete(p);
|
|||
|
const parentListing = this.listings.get(ppath.dirname(p));
|
|||
|
parentListing == null ? void 0 : parentListing.delete(ppath.basename(p));
|
|||
|
}
|
|||
|
unregisterEntry(p) {
|
|||
|
this.unregisterListing(p);
|
|||
|
const entry = this.entries.get(p);
|
|||
|
this.entries.delete(p);
|
|||
|
if (typeof entry === `undefined`)
|
|||
|
return;
|
|||
|
this.fileSources.delete(entry);
|
|||
|
if (this.isSymbolicLink(entry)) {
|
|||
|
this.symlinkCount--;
|
|||
|
}
|
|||
|
}
|
|||
|
deleteEntry(p, index) {
|
|||
|
this.unregisterEntry(p);
|
|||
|
const rc = this.libzip.delete(this.zip, index);
|
|||
|
if (rc === -1) {
|
|||
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|||
|
}
|
|||
|
}
|
|||
|
resolveFilename(reason, p, resolveLastComponent = true) {
|
|||
|
if (!this.ready)
|
|||
|
throw EBUSY(`archive closed, ${reason}`);
|
|||
|
let resolvedP = ppath.resolve(PortablePath.root, p);
|
|||
|
if (resolvedP === `/`)
|
|||
|
return PortablePath.root;
|
|||
|
const fileIndex = this.entries.get(resolvedP);
|
|||
|
if (resolveLastComponent && fileIndex !== void 0) {
|
|||
|
if (this.symlinkCount !== 0 && this.isSymbolicLink(fileIndex)) {
|
|||
|
const target = this.getFileSource(fileIndex).toString();
|
|||
|
return this.resolveFilename(reason, ppath.resolve(ppath.dirname(resolvedP), target), true);
|
|||
|
} else {
|
|||
|
return resolvedP;
|
|||
|
}
|
|||
|
}
|
|||
|
while (true) {
|
|||
|
const parentP = this.resolveFilename(reason, ppath.dirname(resolvedP), true);
|
|||
|
const isDir = this.listings.has(parentP);
|
|||
|
const doesExist = this.entries.has(parentP);
|
|||
|
if (!isDir && !doesExist)
|
|||
|
throw ENOENT(reason);
|
|||
|
if (!isDir)
|
|||
|
throw ENOTDIR(reason);
|
|||
|
resolvedP = ppath.resolve(parentP, ppath.basename(resolvedP));
|
|||
|
if (!resolveLastComponent || this.symlinkCount === 0)
|
|||
|
break;
|
|||
|
const index = this.libzip.name.locate(this.zip, resolvedP.slice(1));
|
|||
|
if (index === -1)
|
|||
|
break;
|
|||
|
if (this.isSymbolicLink(index)) {
|
|||
|
const target = this.getFileSource(index).toString();
|
|||
|
resolvedP = ppath.resolve(ppath.dirname(resolvedP), target);
|
|||
|
} else {
|
|||
|
break;
|
|||
|
}
|
|||
|
}
|
|||
|
return resolvedP;
|
|||
|
}
|
|||
|
allocateBuffer(content) {
|
|||
|
if (!Buffer.isBuffer(content))
|
|||
|
content = Buffer.from(content);
|
|||
|
const buffer = this.libzip.malloc(content.byteLength);
|
|||
|
if (!buffer)
|
|||
|
throw new Error(`Couldn't allocate enough memory`);
|
|||
|
const heap = new Uint8Array(this.libzip.HEAPU8.buffer, buffer, content.byteLength);
|
|||
|
heap.set(content);
|
|||
|
return {buffer, byteLength: content.byteLength};
|
|||
|
}
|
|||
|
allocateUnattachedSource(content) {
|
|||
|
const error = this.libzip.struct.errorS();
|
|||
|
const {buffer, byteLength} = this.allocateBuffer(content);
|
|||
|
const source = this.libzip.source.fromUnattachedBuffer(buffer, byteLength, 0, true, error);
|
|||
|
if (source === 0) {
|
|||
|
this.libzip.free(error);
|
|||
|
throw this.makeLibzipError(error);
|
|||
|
}
|
|||
|
return source;
|
|||
|
}
|
|||
|
allocateSource(content) {
|
|||
|
const {buffer, byteLength} = this.allocateBuffer(content);
|
|||
|
const source = this.libzip.source.fromBuffer(this.zip, buffer, byteLength, 0, true);
|
|||
|
if (source === 0) {
|
|||
|
this.libzip.free(buffer);
|
|||
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|||
|
}
|
|||
|
return source;
|
|||
|
}
|
|||
|
setFileSource(p, content) {
|
|||
|
const buffer = Buffer.isBuffer(content) ? content : Buffer.from(content);
|
|||
|
const target = ppath.relative(PortablePath.root, p);
|
|||
|
const lzSource = this.allocateSource(content);
|
|||
|
try {
|
|||
|
const newIndex = this.libzip.file.add(this.zip, target, lzSource, this.libzip.ZIP_FL_OVERWRITE);
|
|||
|
if (newIndex === -1)
|
|||
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|||
|
if (this.level !== `mixed`) {
|
|||
|
const method = this.level === 0 ? this.libzip.ZIP_CM_STORE : this.libzip.ZIP_CM_DEFLATE;
|
|||
|
const rc = this.libzip.file.setCompression(this.zip, newIndex, 0, method, this.level);
|
|||
|
if (rc === -1) {
|
|||
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|||
|
}
|
|||
|
}
|
|||
|
this.fileSources.set(newIndex, buffer);
|
|||
|
return newIndex;
|
|||
|
} catch (error) {
|
|||
|
this.libzip.source.free(lzSource);
|
|||
|
throw error;
|
|||
|
}
|
|||
|
}
|
|||
|
isSymbolicLink(index) {
|
|||
|
if (this.symlinkCount === 0)
|
|||
|
return false;
|
|||
|
const attrs = this.libzip.file.getExternalAttributes(this.zip, index, 0, 0, this.libzip.uint08S, this.libzip.uint32S);
|
|||
|
if (attrs === -1)
|
|||
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|||
|
const opsys = this.libzip.getValue(this.libzip.uint08S, `i8`) >>> 0;
|
|||
|
if (opsys !== this.libzip.ZIP_OPSYS_UNIX)
|
|||
|
return false;
|
|||
|
const attributes = this.libzip.getValue(this.libzip.uint32S, `i32`) >>> 16;
|
|||
|
return (attributes & S_IFMT) === S_IFLNK;
|
|||
|
}
|
|||
|
getFileSource(index, opts = {asyncDecompress: false}) {
|
|||
|
const cachedFileSource = this.fileSources.get(index);
|
|||
|
if (typeof cachedFileSource !== `undefined`)
|
|||
|
return cachedFileSource;
|
|||
|
const stat = this.libzip.struct.statS();
|
|||
|
const rc = this.libzip.statIndex(this.zip, index, 0, 0, stat);
|
|||
|
if (rc === -1)
|
|||
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|||
|
const size = this.libzip.struct.statCompSize(stat);
|
|||
|
const compressionMethod = this.libzip.struct.statCompMethod(stat);
|
|||
|
const buffer = this.libzip.malloc(size);
|
|||
|
try {
|
|||
|
const file = this.libzip.fopenIndex(this.zip, index, 0, this.libzip.ZIP_FL_COMPRESSED);
|
|||
|
if (file === 0)
|
|||
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|||
|
try {
|
|||
|
const rc2 = this.libzip.fread(file, buffer, size, 0);
|
|||
|
if (rc2 === -1)
|
|||
|
throw this.makeLibzipError(this.libzip.file.getError(file));
|
|||
|
else if (rc2 < size)
|
|||
|
throw new Error(`Incomplete read`);
|
|||
|
else if (rc2 > size)
|
|||
|
throw new Error(`Overread`);
|
|||
|
const memory = this.libzip.HEAPU8.subarray(buffer, buffer + size);
|
|||
|
const data = Buffer.from(memory);
|
|||
|
if (compressionMethod === 0) {
|
|||
|
this.fileSources.set(index, data);
|
|||
|
return data;
|
|||
|
} else if (opts.asyncDecompress) {
|
|||
|
return new Promise((resolve, reject) => {
|
|||
|
zlib__default.default.inflateRaw(data, (error, result) => {
|
|||
|
if (error) {
|
|||
|
reject(error);
|
|||
|
} else {
|
|||
|
this.fileSources.set(index, result);
|
|||
|
resolve(result);
|
|||
|
}
|
|||
|
});
|
|||
|
});
|
|||
|
} else {
|
|||
|
const decompressedData = zlib__default.default.inflateRawSync(data);
|
|||
|
this.fileSources.set(index, decompressedData);
|
|||
|
return decompressedData;
|
|||
|
}
|
|||
|
} finally {
|
|||
|
this.libzip.fclose(file);
|
|||
|
}
|
|||
|
} finally {
|
|||
|
this.libzip.free(buffer);
|
|||
|
}
|
|||
|
}
|
|||
|
async chmodPromise(p, mask) {
|
|||
|
return this.chmodSync(p, mask);
|
|||
|
}
|
|||
|
chmodSync(p, mask) {
|
|||
|
if (this.readOnly)
|
|||
|
throw EROFS(`chmod '${p}'`);
|
|||
|
mask &= 493;
|
|||
|
const resolvedP = this.resolveFilename(`chmod '${p}'`, p, false);
|
|||
|
const entry = this.entries.get(resolvedP);
|
|||
|
if (typeof entry === `undefined`)
|
|||
|
throw new Error(`Assertion failed: The entry should have been registered (${resolvedP})`);
|
|||
|
const oldMod = this.getUnixMode(entry, S_IFREG | 0);
|
|||
|
const newMod = oldMod & ~511 | mask;
|
|||
|
const rc = this.libzip.file.setExternalAttributes(this.zip, entry, 0, 0, this.libzip.ZIP_OPSYS_UNIX, newMod << 16);
|
|||
|
if (rc === -1) {
|
|||
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|||
|
}
|
|||
|
}
|
|||
|
async chownPromise(p, uid, gid) {
|
|||
|
return this.chownSync(p, uid, gid);
|
|||
|
}
|
|||
|
chownSync(p, uid, gid) {
|
|||
|
throw new Error(`Unimplemented`);
|
|||
|
}
|
|||
|
async renamePromise(oldP, newP) {
|
|||
|
return this.renameSync(oldP, newP);
|
|||
|
}
|
|||
|
renameSync(oldP, newP) {
|
|||
|
throw new Error(`Unimplemented`);
|
|||
|
}
|
|||
|
async copyFilePromise(sourceP, destP, flags) {
|
|||
|
const {indexSource, indexDest, resolvedDestP} = this.prepareCopyFile(sourceP, destP, flags);
|
|||
|
const source = await this.getFileSource(indexSource, {asyncDecompress: true});
|
|||
|
const newIndex = this.setFileSource(resolvedDestP, source);
|
|||
|
if (newIndex !== indexDest) {
|
|||
|
this.registerEntry(resolvedDestP, newIndex);
|
|||
|
}
|
|||
|
}
|
|||
|
copyFileSync(sourceP, destP, flags = 0) {
|
|||
|
const {indexSource, indexDest, resolvedDestP} = this.prepareCopyFile(sourceP, destP, flags);
|
|||
|
const source = this.getFileSource(indexSource);
|
|||
|
const newIndex = this.setFileSource(resolvedDestP, source);
|
|||
|
if (newIndex !== indexDest) {
|
|||
|
this.registerEntry(resolvedDestP, newIndex);
|
|||
|
}
|
|||
|
}
|
|||
|
prepareCopyFile(sourceP, destP, flags = 0) {
|
|||
|
if (this.readOnly)
|
|||
|
throw EROFS(`copyfile '${sourceP} -> '${destP}'`);
|
|||
|
if ((flags & fs.constants.COPYFILE_FICLONE_FORCE) !== 0)
|
|||
|
throw ENOSYS(`unsupported clone operation`, `copyfile '${sourceP}' -> ${destP}'`);
|
|||
|
const resolvedSourceP = this.resolveFilename(`copyfile '${sourceP} -> ${destP}'`, sourceP);
|
|||
|
const indexSource = this.entries.get(resolvedSourceP);
|
|||
|
if (typeof indexSource === `undefined`)
|
|||
|
throw EINVAL(`copyfile '${sourceP}' -> '${destP}'`);
|
|||
|
const resolvedDestP = this.resolveFilename(`copyfile '${sourceP}' -> ${destP}'`, destP);
|
|||
|
const indexDest = this.entries.get(resolvedDestP);
|
|||
|
if ((flags & (fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE_FORCE)) !== 0 && typeof indexDest !== `undefined`)
|
|||
|
throw EEXIST(`copyfile '${sourceP}' -> '${destP}'`);
|
|||
|
return {
|
|||
|
indexSource,
|
|||
|
resolvedDestP,
|
|||
|
indexDest
|
|||
|
};
|
|||
|
}
|
|||
|
async appendFilePromise(p, content, opts) {
|
|||
|
if (this.readOnly)
|
|||
|
throw EROFS(`open '${p}'`);
|
|||
|
if (typeof opts === `undefined`)
|
|||
|
opts = {flag: `a`};
|
|||
|
else if (typeof opts === `string`)
|
|||
|
opts = {flag: `a`, encoding: opts};
|
|||
|
else if (typeof opts.flag === `undefined`)
|
|||
|
opts = __spreadValues$3({flag: `a`}, opts);
|
|||
|
return this.writeFilePromise(p, content, opts);
|
|||
|
}
|
|||
|
appendFileSync(p, content, opts = {}) {
|
|||
|
if (this.readOnly)
|
|||
|
throw EROFS(`open '${p}'`);
|
|||
|
if (typeof opts === `undefined`)
|
|||
|
opts = {flag: `a`};
|
|||
|
else if (typeof opts === `string`)
|
|||
|
opts = {flag: `a`, encoding: opts};
|
|||
|
else if (typeof opts.flag === `undefined`)
|
|||
|
opts = __spreadValues$3({flag: `a`}, opts);
|
|||
|
return this.writeFileSync(p, content, opts);
|
|||
|
}
|
|||
|
fdToPath(fd, reason) {
|
|||
|
var _a;
|
|||
|
const path = (_a = this.fds.get(fd)) == null ? void 0 : _a.p;
|
|||
|
if (typeof path === `undefined`)
|
|||
|
throw EBADF(reason);
|
|||
|
return path;
|
|||
|
}
|
|||
|
async writeFilePromise(p, content, opts) {
|
|||
|
const {encoding, mode, index, resolvedP} = this.prepareWriteFile(p, opts);
|
|||
|
if (index !== void 0 && typeof opts === `object` && opts.flag && opts.flag.includes(`a`))
|
|||
|
content = Buffer.concat([await this.getFileSource(index, {asyncDecompress: true}), Buffer.from(content)]);
|
|||
|
if (encoding !== null)
|
|||
|
content = content.toString(encoding);
|
|||
|
const newIndex = this.setFileSource(resolvedP, content);
|
|||
|
if (newIndex !== index)
|
|||
|
this.registerEntry(resolvedP, newIndex);
|
|||
|
if (mode !== null) {
|
|||
|
await this.chmodPromise(resolvedP, mode);
|
|||
|
}
|
|||
|
}
|
|||
|
writeFileSync(p, content, opts) {
|
|||
|
const {encoding, mode, index, resolvedP} = this.prepareWriteFile(p, opts);
|
|||
|
if (index !== void 0 && typeof opts === `object` && opts.flag && opts.flag.includes(`a`))
|
|||
|
content = Buffer.concat([this.getFileSource(index), Buffer.from(content)]);
|
|||
|
if (encoding !== null)
|
|||
|
content = content.toString(encoding);
|
|||
|
const newIndex = this.setFileSource(resolvedP, content);
|
|||
|
if (newIndex !== index)
|
|||
|
this.registerEntry(resolvedP, newIndex);
|
|||
|
if (mode !== null) {
|
|||
|
this.chmodSync(resolvedP, mode);
|
|||
|
}
|
|||
|
}
|
|||
|
prepareWriteFile(p, opts) {
|
|||
|
if (typeof p === `number`)
|
|||
|
p = this.fdToPath(p, `read`);
|
|||
|
if (this.readOnly)
|
|||
|
throw EROFS(`open '${p}'`);
|
|||
|
const resolvedP = this.resolveFilename(`open '${p}'`, p);
|
|||
|
if (this.listings.has(resolvedP))
|
|||
|
throw EISDIR(`open '${p}'`);
|
|||
|
let encoding = null, mode = null;
|
|||
|
if (typeof opts === `string`) {
|
|||
|
encoding = opts;
|
|||
|
} else if (typeof opts === `object`) {
|
|||
|
({
|
|||
|
encoding = null,
|
|||
|
mode = null
|
|||
|
} = opts);
|
|||
|
}
|
|||
|
const index = this.entries.get(resolvedP);
|
|||
|
return {
|
|||
|
encoding,
|
|||
|
mode,
|
|||
|
resolvedP,
|
|||
|
index
|
|||
|
};
|
|||
|
}
|
|||
|
async unlinkPromise(p) {
|
|||
|
return this.unlinkSync(p);
|
|||
|
}
|
|||
|
unlinkSync(p) {
|
|||
|
if (this.readOnly)
|
|||
|
throw EROFS(`unlink '${p}'`);
|
|||
|
const resolvedP = this.resolveFilename(`unlink '${p}'`, p);
|
|||
|
if (this.listings.has(resolvedP))
|
|||
|
throw EISDIR(`unlink '${p}'`);
|
|||
|
const index = this.entries.get(resolvedP);
|
|||
|
if (typeof index === `undefined`)
|
|||
|
throw EINVAL(`unlink '${p}'`);
|
|||
|
this.deleteEntry(resolvedP, index);
|
|||
|
}
|
|||
|
async utimesPromise(p, atime, mtime) {
|
|||
|
return this.utimesSync(p, atime, mtime);
|
|||
|
}
|
|||
|
utimesSync(p, atime, mtime) {
|
|||
|
if (this.readOnly)
|
|||
|
throw EROFS(`utimes '${p}'`);
|
|||
|
const resolvedP = this.resolveFilename(`utimes '${p}'`, p);
|
|||
|
this.utimesImpl(resolvedP, mtime);
|
|||
|
}
|
|||
|
async lutimesPromise(p, atime, mtime) {
|
|||
|
return this.lutimesSync(p, atime, mtime);
|
|||
|
}
|
|||
|
lutimesSync(p, atime, mtime) {
|
|||
|
if (this.readOnly)
|
|||
|
throw EROFS(`lutimes '${p}'`);
|
|||
|
const resolvedP = this.resolveFilename(`utimes '${p}'`, p, false);
|
|||
|
this.utimesImpl(resolvedP, mtime);
|
|||
|
}
|
|||
|
utimesImpl(resolvedP, mtime) {
|
|||
|
if (this.listings.has(resolvedP)) {
|
|||
|
if (!this.entries.has(resolvedP))
|
|||
|
this.hydrateDirectory(resolvedP);
|
|||
|
}
|
|||
|
const entry = this.entries.get(resolvedP);
|
|||
|
if (entry === void 0)
|
|||
|
throw new Error(`Unreachable`);
|
|||
|
const rc = this.libzip.file.setMtime(this.zip, entry, 0, toUnixTimestamp(mtime), 0);
|
|||
|
if (rc === -1) {
|
|||
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|||
|
}
|
|||
|
}
|
|||
|
async mkdirPromise(p, opts) {
|
|||
|
return this.mkdirSync(p, opts);
|
|||
|
}
|
|||
|
mkdirSync(p, {mode = 493, recursive = false} = {}) {
|
|||
|
if (recursive) {
|
|||
|
this.mkdirpSync(p, {chmod: mode});
|
|||
|
return;
|
|||
|
}
|
|||
|
if (this.readOnly)
|
|||
|
throw EROFS(`mkdir '${p}'`);
|
|||
|
const resolvedP = this.resolveFilename(`mkdir '${p}'`, p);
|
|||
|
if (this.entries.has(resolvedP) || this.listings.has(resolvedP))
|
|||
|
throw EEXIST(`mkdir '${p}'`);
|
|||
|
this.hydrateDirectory(resolvedP);
|
|||
|
this.chmodSync(resolvedP, mode);
|
|||
|
}
|
|||
|
async rmdirPromise(p, opts) {
|
|||
|
return this.rmdirSync(p, opts);
|
|||
|
}
|
|||
|
rmdirSync(p, {recursive = false} = {}) {
|
|||
|
if (this.readOnly)
|
|||
|
throw EROFS(`rmdir '${p}'`);
|
|||
|
if (recursive) {
|
|||
|
this.removeSync(p);
|
|||
|
return;
|
|||
|
}
|
|||
|
const resolvedP = this.resolveFilename(`rmdir '${p}'`, p);
|
|||
|
const directoryListing = this.listings.get(resolvedP);
|
|||
|
if (!directoryListing)
|
|||
|
throw ENOTDIR(`rmdir '${p}'`);
|
|||
|
if (directoryListing.size > 0)
|
|||
|
throw ENOTEMPTY(`rmdir '${p}'`);
|
|||
|
const index = this.entries.get(resolvedP);
|
|||
|
if (typeof index === `undefined`)
|
|||
|
throw EINVAL(`rmdir '${p}'`);
|
|||
|
this.deleteEntry(p, index);
|
|||
|
}
|
|||
|
hydrateDirectory(resolvedP) {
|
|||
|
const index = this.libzip.dir.add(this.zip, ppath.relative(PortablePath.root, resolvedP));
|
|||
|
if (index === -1)
|
|||
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|||
|
this.registerListing(resolvedP);
|
|||
|
this.registerEntry(resolvedP, index);
|
|||
|
return index;
|
|||
|
}
|
|||
|
async linkPromise(existingP, newP) {
|
|||
|
return this.linkSync(existingP, newP);
|
|||
|
}
|
|||
|
linkSync(existingP, newP) {
|
|||
|
throw EOPNOTSUPP(`link '${existingP}' -> '${newP}'`);
|
|||
|
}
|
|||
|
async symlinkPromise(target, p) {
|
|||
|
return this.symlinkSync(target, p);
|
|||
|
}
|
|||
|
symlinkSync(target, p) {
|
|||
|
if (this.readOnly)
|
|||
|
throw EROFS(`symlink '${target}' -> '${p}'`);
|
|||
|
const resolvedP = this.resolveFilename(`symlink '${target}' -> '${p}'`, p);
|
|||
|
if (this.listings.has(resolvedP))
|
|||
|
throw EISDIR(`symlink '${target}' -> '${p}'`);
|
|||
|
if (this.entries.has(resolvedP))
|
|||
|
throw EEXIST(`symlink '${target}' -> '${p}'`);
|
|||
|
const index = this.setFileSource(resolvedP, target);
|
|||
|
this.registerEntry(resolvedP, index);
|
|||
|
const rc = this.libzip.file.setExternalAttributes(this.zip, index, 0, 0, this.libzip.ZIP_OPSYS_UNIX, (S_IFLNK | 511) << 16);
|
|||
|
if (rc === -1)
|
|||
|
throw this.makeLibzipError(this.libzip.getError(this.zip));
|
|||
|
this.symlinkCount += 1;
|
|||
|
}
|
|||
|
async readFilePromise(p, encoding) {
|
|||
|
if (typeof encoding === `object`)
|
|||
|
encoding = encoding ? encoding.encoding : void 0;
|
|||
|
const data = await this.readFileBuffer(p, {asyncDecompress: true});
|
|||
|
return encoding ? data.toString(encoding) : data;
|
|||
|
}
|
|||
|
readFileSync(p, encoding) {
|
|||
|
if (typeof encoding === `object`)
|
|||
|
encoding = encoding ? encoding.encoding : void 0;
|
|||
|
const data = this.readFileBuffer(p);
|
|||
|
return encoding ? data.toString(encoding) : data;
|
|||
|
}
|
|||
|
readFileBuffer(p, opts = {asyncDecompress: false}) {
|
|||
|
if (typeof p === `number`)
|
|||
|
p = this.fdToPath(p, `read`);
|
|||
|
const resolvedP = this.resolveFilename(`open '${p}'`, p);
|
|||
|
if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP))
|
|||
|
throw ENOENT(`open '${p}'`);
|
|||
|
if (p[p.length - 1] === `/` && !this.listings.has(resolvedP))
|
|||
|
throw ENOTDIR(`open '${p}'`);
|
|||
|
if (this.listings.has(resolvedP))
|
|||
|
throw EISDIR(`read`);
|
|||
|
const entry = this.entries.get(resolvedP);
|
|||
|
if (entry === void 0)
|
|||
|
throw new Error(`Unreachable`);
|
|||
|
return this.getFileSource(entry, opts);
|
|||
|
}
|
|||
|
async readdirPromise(p, opts) {
|
|||
|
return this.readdirSync(p, opts);
|
|||
|
}
|
|||
|
readdirSync(p, opts) {
|
|||
|
const resolvedP = this.resolveFilename(`scandir '${p}'`, p);
|
|||
|
if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP))
|
|||
|
throw ENOENT(`scandir '${p}'`);
|
|||
|
const directoryListing = this.listings.get(resolvedP);
|
|||
|
if (!directoryListing)
|
|||
|
throw ENOTDIR(`scandir '${p}'`);
|
|||
|
const entries = [...directoryListing];
|
|||
|
if (!(opts == null ? void 0 : opts.withFileTypes))
|
|||
|
return entries;
|
|||
|
return entries.map((name) => {
|
|||
|
return Object.assign(this.statImpl(`lstat`, ppath.join(p, name)), {
|
|||
|
name
|
|||
|
});
|
|||
|
});
|
|||
|
}
|
|||
|
async readlinkPromise(p) {
|
|||
|
const entry = this.prepareReadlink(p);
|
|||
|
return (await this.getFileSource(entry, {asyncDecompress: true})).toString();
|
|||
|
}
|
|||
|
readlinkSync(p) {
|
|||
|
const entry = this.prepareReadlink(p);
|
|||
|
return this.getFileSource(entry).toString();
|
|||
|
}
|
|||
|
prepareReadlink(p) {
|
|||
|
const resolvedP = this.resolveFilename(`readlink '${p}'`, p, false);
|
|||
|
if (!this.entries.has(resolvedP) && !this.listings.has(resolvedP))
|
|||
|
throw ENOENT(`readlink '${p}'`);
|
|||
|
if (p[p.length - 1] === `/` && !this.listings.has(resolvedP))
|
|||
|
throw ENOTDIR(`open '${p}'`);
|
|||
|
if (this.listings.has(resolvedP))
|
|||
|
throw EINVAL(`readlink '${p}'`);
|
|||
|
const entry = this.entries.get(resolvedP);
|
|||
|
if (entry === void 0)
|
|||
|
throw new Error(`Unreachable`);
|
|||
|
if (!this.isSymbolicLink(entry))
|
|||
|
throw EINVAL(`readlink '${p}'`);
|
|||
|
return entry;
|
|||
|
}
|
|||
|
async truncatePromise(p, len = 0) {
|
|||
|
const resolvedP = this.resolveFilename(`open '${p}'`, p);
|
|||
|
const index = this.entries.get(resolvedP);
|
|||
|
if (typeof index === `undefined`)
|
|||
|
throw EINVAL(`open '${p}'`);
|
|||
|
const source = await this.getFileSource(index, {asyncDecompress: true});
|
|||
|
const truncated = Buffer.alloc(len, 0);
|
|||
|
source.copy(truncated);
|
|||
|
return await this.writeFilePromise(p, truncated);
|
|||
|
}
|
|||
|
truncateSync(p, len = 0) {
|
|||
|
const resolvedP = this.resolveFilename(`open '${p}'`, p);
|
|||
|
const index = this.entries.get(resolvedP);
|
|||
|
if (typeof index === `undefined`)
|
|||
|
throw EINVAL(`open '${p}'`);
|
|||
|
const source = this.getFileSource(index);
|
|||
|
const truncated = Buffer.alloc(len, 0);
|
|||
|
source.copy(truncated);
|
|||
|
return this.writeFileSync(p, truncated);
|
|||
|
}
|
|||
|
watch(p, a, b) {
|
|||
|
let persistent;
|
|||
|
switch (typeof a) {
|
|||
|
case `function`:
|
|||
|
case `string`:
|
|||
|
case `undefined`:
|
|||
|
{
|
|||
|
persistent = true;
|
|||
|
}
|
|||
|
break;
|
|||
|
default:
|
|||
|
{
|
|||
|
({persistent = true} = a);
|
|||
|
}
|
|||
|
break;
|
|||
|
}
|
|||
|
if (!persistent)
|
|||
|
return {on: () => {
|
|||
|
}, close: () => {
|
|||
|
}};
|
|||
|
const interval = setInterval(() => {
|
|||
|
}, 24 * 60 * 60 * 1e3);
|
|||
|
return {on: () => {
|
|||
|
}, close: () => {
|
|||
|
clearInterval(interval);
|
|||
|
}};
|
|||
|
}
|
|||
|
watchFile(p, a, b) {
|
|||
|
const resolvedP = ppath.resolve(PortablePath.root, p);
|
|||
|
return watchFile(this, resolvedP, a, b);
|
|||
|
}
|
|||
|
unwatchFile(p, cb) {
|
|||
|
const resolvedP = ppath.resolve(PortablePath.root, p);
|
|||
|
return unwatchFile(this, resolvedP, cb);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
class ProxiedFS extends FakeFS {
|
|||
|
getExtractHint(hints) {
|
|||
|
return this.baseFs.getExtractHint(hints);
|
|||
|
}
|
|||
|
resolve(path) {
|
|||
|
return this.mapFromBase(this.baseFs.resolve(this.mapToBase(path)));
|
|||
|
}
|
|||
|
getRealPath() {
|
|||
|
return this.mapFromBase(this.baseFs.getRealPath());
|
|||
|
}
|
|||
|
async openPromise(p, flags, mode) {
|
|||
|
return this.baseFs.openPromise(this.mapToBase(p), flags, mode);
|
|||
|
}
|
|||
|
openSync(p, flags, mode) {
|
|||
|
return this.baseFs.openSync(this.mapToBase(p), flags, mode);
|
|||
|
}
|
|||
|
async opendirPromise(p, opts) {
|
|||
|
return Object.assign(await this.baseFs.opendirPromise(this.mapToBase(p), opts), {path: p});
|
|||
|
}
|
|||
|
opendirSync(p, opts) {
|
|||
|
return Object.assign(this.baseFs.opendirSync(this.mapToBase(p), opts), {path: p});
|
|||
|
}
|
|||
|
async readPromise(fd, buffer, offset, length, position) {
|
|||
|
return await this.baseFs.readPromise(fd, buffer, offset, length, position);
|
|||
|
}
|
|||
|
readSync(fd, buffer, offset, length, position) {
|
|||
|
return this.baseFs.readSync(fd, buffer, offset, length, position);
|
|||
|
}
|
|||
|
async writePromise(fd, buffer, offset, length, position) {
|
|||
|
if (typeof buffer === `string`) {
|
|||
|
return await this.baseFs.writePromise(fd, buffer, offset);
|
|||
|
} else {
|
|||
|
return await this.baseFs.writePromise(fd, buffer, offset, length, position);
|
|||
|
}
|
|||
|
}
|
|||
|
writeSync(fd, buffer, offset, length, position) {
|
|||
|
if (typeof buffer === `string`) {
|
|||
|
return this.baseFs.writeSync(fd, buffer, offset);
|
|||
|
} else {
|
|||
|
return this.baseFs.writeSync(fd, buffer, offset, length, position);
|
|||
|
}
|
|||
|
}
|
|||
|
async closePromise(fd) {
|
|||
|
return this.baseFs.closePromise(fd);
|
|||
|
}
|
|||
|
closeSync(fd) {
|
|||
|
this.baseFs.closeSync(fd);
|
|||
|
}
|
|||
|
createReadStream(p, opts) {
|
|||
|
return this.baseFs.createReadStream(p !== null ? this.mapToBase(p) : p, opts);
|
|||
|
}
|
|||
|
createWriteStream(p, opts) {
|
|||
|
return this.baseFs.createWriteStream(p !== null ? this.mapToBase(p) : p, opts);
|
|||
|
}
|
|||
|
async realpathPromise(p) {
|
|||
|
return this.mapFromBase(await this.baseFs.realpathPromise(this.mapToBase(p)));
|
|||
|
}
|
|||
|
realpathSync(p) {
|
|||
|
return this.mapFromBase(this.baseFs.realpathSync(this.mapToBase(p)));
|
|||
|
}
|
|||
|
async existsPromise(p) {
|
|||
|
return this.baseFs.existsPromise(this.mapToBase(p));
|
|||
|
}
|
|||
|
existsSync(p) {
|
|||
|
return this.baseFs.existsSync(this.mapToBase(p));
|
|||
|
}
|
|||
|
accessSync(p, mode) {
|
|||
|
return this.baseFs.accessSync(this.mapToBase(p), mode);
|
|||
|
}
|
|||
|
async accessPromise(p, mode) {
|
|||
|
return this.baseFs.accessPromise(this.mapToBase(p), mode);
|
|||
|
}
|
|||
|
async statPromise(p, opts) {
|
|||
|
return this.baseFs.statPromise(this.mapToBase(p), opts);
|
|||
|
}
|
|||
|
statSync(p, opts) {
|
|||
|
return this.baseFs.statSync(this.mapToBase(p), opts);
|
|||
|
}
|
|||
|
async fstatPromise(fd, opts) {
|
|||
|
return this.baseFs.fstatPromise(fd, opts);
|
|||
|
}
|
|||
|
fstatSync(fd, opts) {
|
|||
|
return this.baseFs.fstatSync(fd, opts);
|
|||
|
}
|
|||
|
async lstatPromise(p, opts) {
|
|||
|
return this.baseFs.lstatPromise(this.mapToBase(p), opts);
|
|||
|
}
|
|||
|
lstatSync(p, opts) {
|
|||
|
return this.baseFs.lstatSync(this.mapToBase(p), opts);
|
|||
|
}
|
|||
|
async chmodPromise(p, mask) {
|
|||
|
return this.baseFs.chmodPromise(this.mapToBase(p), mask);
|
|||
|
}
|
|||
|
chmodSync(p, mask) {
|
|||
|
return this.baseFs.chmodSync(this.mapToBase(p), mask);
|
|||
|
}
|
|||
|
async chownPromise(p, uid, gid) {
|
|||
|
return this.baseFs.chownPromise(this.mapToBase(p), uid, gid);
|
|||
|
}
|
|||
|
chownSync(p, uid, gid) {
|
|||
|
return this.baseFs.chownSync(this.mapToBase(p), uid, gid);
|
|||
|
}
|
|||
|
async renamePromise(oldP, newP) {
|
|||
|
return this.baseFs.renamePromise(this.mapToBase(oldP), this.mapToBase(newP));
|
|||
|
}
|
|||
|
renameSync(oldP, newP) {
|
|||
|
return this.baseFs.renameSync(this.mapToBase(oldP), this.mapToBase(newP));
|
|||
|
}
|
|||
|
async copyFilePromise(sourceP, destP, flags = 0) {
|
|||
|
return this.baseFs.copyFilePromise(this.mapToBase(sourceP), this.mapToBase(destP), flags);
|
|||
|
}
|
|||
|
copyFileSync(sourceP, destP, flags = 0) {
|
|||
|
return this.baseFs.copyFileSync(this.mapToBase(sourceP), this.mapToBase(destP), flags);
|
|||
|
}
|
|||
|
async appendFilePromise(p, content, opts) {
|
|||
|
return this.baseFs.appendFilePromise(this.fsMapToBase(p), content, opts);
|
|||
|
}
|
|||
|
appendFileSync(p, content, opts) {
|
|||
|
return this.baseFs.appendFileSync(this.fsMapToBase(p), content, opts);
|
|||
|
}
|
|||
|
async writeFilePromise(p, content, opts) {
|
|||
|
return this.baseFs.writeFilePromise(this.fsMapToBase(p), content, opts);
|
|||
|
}
|
|||
|
writeFileSync(p, content, opts) {
|
|||
|
return this.baseFs.writeFileSync(this.fsMapToBase(p), content, opts);
|
|||
|
}
|
|||
|
async unlinkPromise(p) {
|
|||
|
return this.baseFs.unlinkPromise(this.mapToBase(p));
|
|||
|
}
|
|||
|
unlinkSync(p) {
|
|||
|
return this.baseFs.unlinkSync(this.mapToBase(p));
|
|||
|
}
|
|||
|
async utimesPromise(p, atime, mtime) {
|
|||
|
return this.baseFs.utimesPromise(this.mapToBase(p), atime, mtime);
|
|||
|
}
|
|||
|
utimesSync(p, atime, mtime) {
|
|||
|
return this.baseFs.utimesSync(this.mapToBase(p), atime, mtime);
|
|||
|
}
|
|||
|
async mkdirPromise(p, opts) {
|
|||
|
return this.baseFs.mkdirPromise(this.mapToBase(p), opts);
|
|||
|
}
|
|||
|
mkdirSync(p, opts) {
|
|||
|
return this.baseFs.mkdirSync(this.mapToBase(p), opts);
|
|||
|
}
|
|||
|
async rmdirPromise(p, opts) {
|
|||
|
return this.baseFs.rmdirPromise(this.mapToBase(p), opts);
|
|||
|
}
|
|||
|
rmdirSync(p, opts) {
|
|||
|
return this.baseFs.rmdirSync(this.mapToBase(p), opts);
|
|||
|
}
|
|||
|
async linkPromise(existingP, newP) {
|
|||
|
return this.baseFs.linkPromise(this.mapToBase(existingP), this.mapToBase(newP));
|
|||
|
}
|
|||
|
linkSync(existingP, newP) {
|
|||
|
return this.baseFs.linkSync(this.mapToBase(existingP), this.mapToBase(newP));
|
|||
|
}
|
|||
|
async symlinkPromise(target, p, type) {
|
|||
|
const mappedP = this.mapToBase(p);
|
|||
|
if (this.pathUtils.isAbsolute(target))
|
|||
|
return this.baseFs.symlinkPromise(this.mapToBase(target), mappedP, type);
|
|||
|
const mappedAbsoluteTarget = this.mapToBase(this.pathUtils.join(this.pathUtils.dirname(p), target));
|
|||
|
const mappedTarget = this.baseFs.pathUtils.relative(this.baseFs.pathUtils.dirname(mappedP), mappedAbsoluteTarget);
|
|||
|
return this.baseFs.symlinkPromise(mappedTarget, mappedP, type);
|
|||
|
}
|
|||
|
symlinkSync(target, p, type) {
|
|||
|
const mappedP = this.mapToBase(p);
|
|||
|
if (this.pathUtils.isAbsolute(target))
|
|||
|
return this.baseFs.symlinkSync(this.mapToBase(target), mappedP, type);
|
|||
|
const mappedAbsoluteTarget = this.mapToBase(this.pathUtils.join(this.pathUtils.dirname(p), target));
|
|||
|
const mappedTarget = this.baseFs.pathUtils.relative(this.baseFs.pathUtils.dirname(mappedP), mappedAbsoluteTarget);
|
|||
|
return this.baseFs.symlinkSync(mappedTarget, mappedP, type);
|
|||
|
}
|
|||
|
async readFilePromise(p, encoding) {
|
|||
|
if (encoding === `utf8`) {
|
|||
|
return this.baseFs.readFilePromise(this.fsMapToBase(p), encoding);
|
|||
|
} else {
|
|||
|
return this.baseFs.readFilePromise(this.fsMapToBase(p), encoding);
|
|||
|
}
|
|||
|
}
|
|||
|
readFileSync(p, encoding) {
|
|||
|
if (encoding === `utf8`) {
|
|||
|
return this.baseFs.readFileSync(this.fsMapToBase(p), encoding);
|
|||
|
} else {
|
|||
|
return this.baseFs.readFileSync(this.fsMapToBase(p), encoding);
|
|||
|
}
|
|||
|
}
|
|||
|
async readdirPromise(p, opts) {
|
|||
|
return this.baseFs.readdirPromise(this.mapToBase(p), opts);
|
|||
|
}
|
|||
|
readdirSync(p, opts) {
|
|||
|
return this.baseFs.readdirSync(this.mapToBase(p), opts);
|
|||
|
}
|
|||
|
async readlinkPromise(p) {
|
|||
|
return this.mapFromBase(await this.baseFs.readlinkPromise(this.mapToBase(p)));
|
|||
|
}
|
|||
|
readlinkSync(p) {
|
|||
|
return this.mapFromBase(this.baseFs.readlinkSync(this.mapToBase(p)));
|
|||
|
}
|
|||
|
async truncatePromise(p, len) {
|
|||
|
return this.baseFs.truncatePromise(this.mapToBase(p), len);
|
|||
|
}
|
|||
|
truncateSync(p, len) {
|
|||
|
return this.baseFs.truncateSync(this.mapToBase(p), len);
|
|||
|
}
|
|||
|
watch(p, a, b) {
|
|||
|
return this.baseFs.watch(this.mapToBase(p), a, b);
|
|||
|
}
|
|||
|
watchFile(p, a, b) {
|
|||
|
return this.baseFs.watchFile(this.mapToBase(p), a, b);
|
|||
|
}
|
|||
|
unwatchFile(p, cb) {
|
|||
|
return this.baseFs.unwatchFile(this.mapToBase(p), cb);
|
|||
|
}
|
|||
|
fsMapToBase(p) {
|
|||
|
if (typeof p === `number`) {
|
|||
|
return p;
|
|||
|
} else {
|
|||
|
return this.mapToBase(p);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
class PosixFS extends ProxiedFS {
|
|||
|
constructor(baseFs) {
|
|||
|
super(npath);
|
|||
|
this.baseFs = baseFs;
|
|||
|
}
|
|||
|
mapFromBase(path) {
|
|||
|
return npath.fromPortablePath(path);
|
|||
|
}
|
|||
|
mapToBase(path) {
|
|||
|
return npath.toPortablePath(path);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
const NUMBER_REGEXP = /^[0-9]+$/;
|
|||
|
const VIRTUAL_REGEXP = /^(\/(?:[^/]+\/)*?(?:\$\$virtual|__virtual__))((?:\/((?:[^/]+-)?[a-f0-9]+)(?:\/([^/]+))?)?((?:\/.*)?))$/;
|
|||
|
const VALID_COMPONENT = /^([^/]+-)?[a-f0-9]+$/;
|
|||
|
class VirtualFS extends ProxiedFS {
|
|||
|
static makeVirtualPath(base, component, to) {
|
|||
|
if (ppath.basename(base) !== `__virtual__`)
|
|||
|
throw new Error(`Assertion failed: Virtual folders must be named "__virtual__"`);
|
|||
|
if (!ppath.basename(component).match(VALID_COMPONENT))
|
|||
|
throw new Error(`Assertion failed: Virtual components must be ended by an hexadecimal hash`);
|
|||
|
const target = ppath.relative(ppath.dirname(base), to);
|
|||
|
const segments = target.split(`/`);
|
|||
|
let depth = 0;
|
|||
|
while (depth < segments.length && segments[depth] === `..`)
|
|||
|
depth += 1;
|
|||
|
const finalSegments = segments.slice(depth);
|
|||
|
const fullVirtualPath = ppath.join(base, component, String(depth), ...finalSegments);
|
|||
|
return fullVirtualPath;
|
|||
|
}
|
|||
|
static resolveVirtual(p) {
|
|||
|
const match = p.match(VIRTUAL_REGEXP);
|
|||
|
if (!match || !match[3] && match[5])
|
|||
|
return p;
|
|||
|
const target = ppath.dirname(match[1]);
|
|||
|
if (!match[3] || !match[4])
|
|||
|
return target;
|
|||
|
const isnum = NUMBER_REGEXP.test(match[4]);
|
|||
|
if (!isnum)
|
|||
|
return p;
|
|||
|
const depth = Number(match[4]);
|
|||
|
const backstep = `../`.repeat(depth);
|
|||
|
const subpath = match[5] || `.`;
|
|||
|
return VirtualFS.resolveVirtual(ppath.join(target, backstep, subpath));
|
|||
|
}
|
|||
|
constructor({baseFs = new NodeFS()} = {}) {
|
|||
|
super(ppath);
|
|||
|
this.baseFs = baseFs;
|
|||
|
}
|
|||
|
getExtractHint(hints) {
|
|||
|
return this.baseFs.getExtractHint(hints);
|
|||
|
}
|
|||
|
getRealPath() {
|
|||
|
return this.baseFs.getRealPath();
|
|||
|
}
|
|||
|
realpathSync(p) {
|
|||
|
const match = p.match(VIRTUAL_REGEXP);
|
|||
|
if (!match)
|
|||
|
return this.baseFs.realpathSync(p);
|
|||
|
if (!match[5])
|
|||
|
return p;
|
|||
|
const realpath = this.baseFs.realpathSync(this.mapToBase(p));
|
|||
|
return VirtualFS.makeVirtualPath(match[1], match[3], realpath);
|
|||
|
}
|
|||
|
async realpathPromise(p) {
|
|||
|
const match = p.match(VIRTUAL_REGEXP);
|
|||
|
if (!match)
|
|||
|
return await this.baseFs.realpathPromise(p);
|
|||
|
if (!match[5])
|
|||
|
return p;
|
|||
|
const realpath = await this.baseFs.realpathPromise(this.mapToBase(p));
|
|||
|
return VirtualFS.makeVirtualPath(match[1], match[3], realpath);
|
|||
|
}
|
|||
|
mapToBase(p) {
|
|||
|
if (p === ``)
|
|||
|
return p;
|
|||
|
if (this.pathUtils.isAbsolute(p))
|
|||
|
return VirtualFS.resolveVirtual(p);
|
|||
|
const resolvedRoot = VirtualFS.resolveVirtual(this.baseFs.resolve(PortablePath.dot));
|
|||
|
const resolvedP = VirtualFS.resolveVirtual(this.baseFs.resolve(p));
|
|||
|
return ppath.relative(resolvedRoot, resolvedP) || PortablePath.dot;
|
|||
|
}
|
|||
|
mapFromBase(p) {
|
|||
|
return p;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
const ZIP_FD = 2147483648;
|
|||
|
const getArchivePart = (path, extension) => {
|
|||
|
let idx = path.indexOf(extension);
|
|||
|
if (idx <= 0)
|
|||
|
return null;
|
|||
|
let nextCharIdx = idx;
|
|||
|
while (idx >= 0) {
|
|||
|
nextCharIdx = idx + extension.length;
|
|||
|
if (path[nextCharIdx] === ppath.sep)
|
|||
|
break;
|
|||
|
if (path[idx - 1] === ppath.sep)
|
|||
|
return null;
|
|||
|
idx = path.indexOf(extension, nextCharIdx);
|
|||
|
}
|
|||
|
if (path.length > nextCharIdx && path[nextCharIdx] !== ppath.sep)
|
|||
|
return null;
|
|||
|
return path.slice(0, nextCharIdx);
|
|||
|
};
|
|||
|
class ZipOpenFS extends BasePortableFakeFS {
|
|||
|
constructor({libzip, baseFs = new NodeFS(), filter = null, maxOpenFiles = Infinity, readOnlyArchives = false, useCache = true, maxAge = 5e3, fileExtensions = null}) {
|
|||
|
super();
|
|||
|
this.fdMap = new Map();
|
|||
|
this.nextFd = 3;
|
|||
|
this.isZip = new Set();
|
|||
|
this.notZip = new Set();
|
|||
|
this.realPaths = new Map();
|
|||
|
this.limitOpenFilesTimeout = null;
|
|||
|
this.libzipFactory = typeof libzip !== `function` ? () => libzip : libzip;
|
|||
|
this.baseFs = baseFs;
|
|||
|
this.zipInstances = useCache ? new Map() : null;
|
|||
|
this.filter = filter;
|
|||
|
this.maxOpenFiles = maxOpenFiles;
|
|||
|
this.readOnlyArchives = readOnlyArchives;
|
|||
|
this.maxAge = maxAge;
|
|||
|
this.fileExtensions = fileExtensions;
|
|||
|
}
|
|||
|
static async openPromise(fn, opts) {
|
|||
|
const zipOpenFs = new ZipOpenFS(opts);
|
|||
|
try {
|
|||
|
return await fn(zipOpenFs);
|
|||
|
} finally {
|
|||
|
zipOpenFs.saveAndClose();
|
|||
|
}
|
|||
|
}
|
|||
|
get libzip() {
|
|||
|
if (typeof this.libzipInstance === `undefined`)
|
|||
|
this.libzipInstance = this.libzipFactory();
|
|||
|
return this.libzipInstance;
|
|||
|
}
|
|||
|
getExtractHint(hints) {
|
|||
|
return this.baseFs.getExtractHint(hints);
|
|||
|
}
|
|||
|
getRealPath() {
|
|||
|
return this.baseFs.getRealPath();
|
|||
|
}
|
|||
|
saveAndClose() {
|
|||
|
unwatchAllFiles(this);
|
|||
|
if (this.zipInstances) {
|
|||
|
for (const [path, {zipFs}] of this.zipInstances.entries()) {
|
|||
|
zipFs.saveAndClose();
|
|||
|
this.zipInstances.delete(path);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
discardAndClose() {
|
|||
|
unwatchAllFiles(this);
|
|||
|
if (this.zipInstances) {
|
|||
|
for (const [path, {zipFs}] of this.zipInstances.entries()) {
|
|||
|
zipFs.discardAndClose();
|
|||
|
this.zipInstances.delete(path);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
resolve(p) {
|
|||
|
return this.baseFs.resolve(p);
|
|||
|
}
|
|||
|
remapFd(zipFs, fd) {
|
|||
|
const remappedFd = this.nextFd++ | ZIP_FD;
|
|||
|
this.fdMap.set(remappedFd, [zipFs, fd]);
|
|||
|
return remappedFd;
|
|||
|
}
|
|||
|
async openPromise(p, flags, mode) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.openPromise(p, flags, mode);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return this.remapFd(zipFs, await zipFs.openPromise(subPath, flags, mode));
|
|||
|
});
|
|||
|
}
|
|||
|
openSync(p, flags, mode) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.openSync(p, flags, mode);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return this.remapFd(zipFs, zipFs.openSync(subPath, flags, mode));
|
|||
|
});
|
|||
|
}
|
|||
|
async opendirPromise(p, opts) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.opendirPromise(p, opts);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.opendirPromise(subPath, opts);
|
|||
|
}, {
|
|||
|
requireSubpath: false
|
|||
|
});
|
|||
|
}
|
|||
|
opendirSync(p, opts) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.opendirSync(p, opts);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.opendirSync(subPath, opts);
|
|||
|
}, {
|
|||
|
requireSubpath: false
|
|||
|
});
|
|||
|
}
|
|||
|
async readPromise(fd, buffer, offset, length, position) {
|
|||
|
if ((fd & ZIP_FD) === 0)
|
|||
|
return await this.baseFs.readPromise(fd, buffer, offset, length, position);
|
|||
|
const entry = this.fdMap.get(fd);
|
|||
|
if (typeof entry === `undefined`)
|
|||
|
throw EBADF(`read`);
|
|||
|
const [zipFs, realFd] = entry;
|
|||
|
return await zipFs.readPromise(realFd, buffer, offset, length, position);
|
|||
|
}
|
|||
|
readSync(fd, buffer, offset, length, position) {
|
|||
|
if ((fd & ZIP_FD) === 0)
|
|||
|
return this.baseFs.readSync(fd, buffer, offset, length, position);
|
|||
|
const entry = this.fdMap.get(fd);
|
|||
|
if (typeof entry === `undefined`)
|
|||
|
throw EBADF(`readSync`);
|
|||
|
const [zipFs, realFd] = entry;
|
|||
|
return zipFs.readSync(realFd, buffer, offset, length, position);
|
|||
|
}
|
|||
|
async writePromise(fd, buffer, offset, length, position) {
|
|||
|
if ((fd & ZIP_FD) === 0) {
|
|||
|
if (typeof buffer === `string`) {
|
|||
|
return await this.baseFs.writePromise(fd, buffer, offset);
|
|||
|
} else {
|
|||
|
return await this.baseFs.writePromise(fd, buffer, offset, length, position);
|
|||
|
}
|
|||
|
}
|
|||
|
const entry = this.fdMap.get(fd);
|
|||
|
if (typeof entry === `undefined`)
|
|||
|
throw EBADF(`write`);
|
|||
|
const [zipFs, realFd] = entry;
|
|||
|
if (typeof buffer === `string`) {
|
|||
|
return await zipFs.writePromise(realFd, buffer, offset);
|
|||
|
} else {
|
|||
|
return await zipFs.writePromise(realFd, buffer, offset, length, position);
|
|||
|
}
|
|||
|
}
|
|||
|
writeSync(fd, buffer, offset, length, position) {
|
|||
|
if ((fd & ZIP_FD) === 0) {
|
|||
|
if (typeof buffer === `string`) {
|
|||
|
return this.baseFs.writeSync(fd, buffer, offset);
|
|||
|
} else {
|
|||
|
return this.baseFs.writeSync(fd, buffer, offset, length, position);
|
|||
|
}
|
|||
|
}
|
|||
|
const entry = this.fdMap.get(fd);
|
|||
|
if (typeof entry === `undefined`)
|
|||
|
throw EBADF(`writeSync`);
|
|||
|
const [zipFs, realFd] = entry;
|
|||
|
if (typeof buffer === `string`) {
|
|||
|
return zipFs.writeSync(realFd, buffer, offset);
|
|||
|
} else {
|
|||
|
return zipFs.writeSync(realFd, buffer, offset, length, position);
|
|||
|
}
|
|||
|
}
|
|||
|
async closePromise(fd) {
|
|||
|
if ((fd & ZIP_FD) === 0)
|
|||
|
return await this.baseFs.closePromise(fd);
|
|||
|
const entry = this.fdMap.get(fd);
|
|||
|
if (typeof entry === `undefined`)
|
|||
|
throw EBADF(`close`);
|
|||
|
this.fdMap.delete(fd);
|
|||
|
const [zipFs, realFd] = entry;
|
|||
|
return await zipFs.closePromise(realFd);
|
|||
|
}
|
|||
|
closeSync(fd) {
|
|||
|
if ((fd & ZIP_FD) === 0)
|
|||
|
return this.baseFs.closeSync(fd);
|
|||
|
const entry = this.fdMap.get(fd);
|
|||
|
if (typeof entry === `undefined`)
|
|||
|
throw EBADF(`closeSync`);
|
|||
|
this.fdMap.delete(fd);
|
|||
|
const [zipFs, realFd] = entry;
|
|||
|
return zipFs.closeSync(realFd);
|
|||
|
}
|
|||
|
createReadStream(p, opts) {
|
|||
|
if (p === null)
|
|||
|
return this.baseFs.createReadStream(p, opts);
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.createReadStream(p, opts);
|
|||
|
}, (zipFs, {archivePath, subPath}) => {
|
|||
|
const stream = zipFs.createReadStream(subPath, opts);
|
|||
|
stream.path = npath.fromPortablePath(this.pathUtils.join(archivePath, subPath));
|
|||
|
return stream;
|
|||
|
});
|
|||
|
}
|
|||
|
createWriteStream(p, opts) {
|
|||
|
if (p === null)
|
|||
|
return this.baseFs.createWriteStream(p, opts);
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.createWriteStream(p, opts);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.createWriteStream(subPath, opts);
|
|||
|
});
|
|||
|
}
|
|||
|
async realpathPromise(p) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.realpathPromise(p);
|
|||
|
}, async (zipFs, {archivePath, subPath}) => {
|
|||
|
let realArchivePath = this.realPaths.get(archivePath);
|
|||
|
if (typeof realArchivePath === `undefined`) {
|
|||
|
realArchivePath = await this.baseFs.realpathPromise(archivePath);
|
|||
|
this.realPaths.set(archivePath, realArchivePath);
|
|||
|
}
|
|||
|
return this.pathUtils.join(realArchivePath, this.pathUtils.relative(PortablePath.root, await zipFs.realpathPromise(subPath)));
|
|||
|
});
|
|||
|
}
|
|||
|
realpathSync(p) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.realpathSync(p);
|
|||
|
}, (zipFs, {archivePath, subPath}) => {
|
|||
|
let realArchivePath = this.realPaths.get(archivePath);
|
|||
|
if (typeof realArchivePath === `undefined`) {
|
|||
|
realArchivePath = this.baseFs.realpathSync(archivePath);
|
|||
|
this.realPaths.set(archivePath, realArchivePath);
|
|||
|
}
|
|||
|
return this.pathUtils.join(realArchivePath, this.pathUtils.relative(PortablePath.root, zipFs.realpathSync(subPath)));
|
|||
|
});
|
|||
|
}
|
|||
|
async existsPromise(p) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.existsPromise(p);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.existsPromise(subPath);
|
|||
|
});
|
|||
|
}
|
|||
|
existsSync(p) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.existsSync(p);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.existsSync(subPath);
|
|||
|
});
|
|||
|
}
|
|||
|
async accessPromise(p, mode) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.accessPromise(p, mode);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.accessPromise(subPath, mode);
|
|||
|
});
|
|||
|
}
|
|||
|
accessSync(p, mode) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.accessSync(p, mode);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.accessSync(subPath, mode);
|
|||
|
});
|
|||
|
}
|
|||
|
async statPromise(p, opts) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.statPromise(p, opts);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.statPromise(subPath, opts);
|
|||
|
});
|
|||
|
}
|
|||
|
statSync(p, opts) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.statSync(p, opts);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.statSync(subPath, opts);
|
|||
|
});
|
|||
|
}
|
|||
|
async fstatPromise(fd, opts) {
|
|||
|
if ((fd & ZIP_FD) === 0)
|
|||
|
return this.baseFs.fstatPromise(fd, opts);
|
|||
|
const entry = this.fdMap.get(fd);
|
|||
|
if (typeof entry === `undefined`)
|
|||
|
throw EBADF(`fstat`);
|
|||
|
const [zipFs, realFd] = entry;
|
|||
|
return zipFs.fstatPromise(realFd, opts);
|
|||
|
}
|
|||
|
fstatSync(fd, opts) {
|
|||
|
if ((fd & ZIP_FD) === 0)
|
|||
|
return this.baseFs.fstatSync(fd, opts);
|
|||
|
const entry = this.fdMap.get(fd);
|
|||
|
if (typeof entry === `undefined`)
|
|||
|
throw EBADF(`fstatSync`);
|
|||
|
const [zipFs, realFd] = entry;
|
|||
|
return zipFs.fstatSync(realFd, opts);
|
|||
|
}
|
|||
|
async lstatPromise(p, opts) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.lstatPromise(p, opts);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.lstatPromise(subPath, opts);
|
|||
|
});
|
|||
|
}
|
|||
|
lstatSync(p, opts) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.lstatSync(p, opts);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.lstatSync(subPath, opts);
|
|||
|
});
|
|||
|
}
|
|||
|
async chmodPromise(p, mask) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.chmodPromise(p, mask);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.chmodPromise(subPath, mask);
|
|||
|
});
|
|||
|
}
|
|||
|
chmodSync(p, mask) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.chmodSync(p, mask);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.chmodSync(subPath, mask);
|
|||
|
});
|
|||
|
}
|
|||
|
async chownPromise(p, uid, gid) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.chownPromise(p, uid, gid);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.chownPromise(subPath, uid, gid);
|
|||
|
});
|
|||
|
}
|
|||
|
chownSync(p, uid, gid) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.chownSync(p, uid, gid);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.chownSync(subPath, uid, gid);
|
|||
|
});
|
|||
|
}
|
|||
|
async renamePromise(oldP, newP) {
|
|||
|
return await this.makeCallPromise(oldP, async () => {
|
|||
|
return await this.makeCallPromise(newP, async () => {
|
|||
|
return await this.baseFs.renamePromise(oldP, newP);
|
|||
|
}, async () => {
|
|||
|
throw Object.assign(new Error(`EEXDEV: cross-device link not permitted`), {code: `EEXDEV`});
|
|||
|
});
|
|||
|
}, async (zipFsO, {subPath: subPathO}) => {
|
|||
|
return await this.makeCallPromise(newP, async () => {
|
|||
|
throw Object.assign(new Error(`EEXDEV: cross-device link not permitted`), {code: `EEXDEV`});
|
|||
|
}, async (zipFsN, {subPath: subPathN}) => {
|
|||
|
if (zipFsO !== zipFsN) {
|
|||
|
throw Object.assign(new Error(`EEXDEV: cross-device link not permitted`), {code: `EEXDEV`});
|
|||
|
} else {
|
|||
|
return await zipFsO.renamePromise(subPathO, subPathN);
|
|||
|
}
|
|||
|
});
|
|||
|
});
|
|||
|
}
|
|||
|
renameSync(oldP, newP) {
|
|||
|
return this.makeCallSync(oldP, () => {
|
|||
|
return this.makeCallSync(newP, () => {
|
|||
|
return this.baseFs.renameSync(oldP, newP);
|
|||
|
}, () => {
|
|||
|
throw Object.assign(new Error(`EEXDEV: cross-device link not permitted`), {code: `EEXDEV`});
|
|||
|
});
|
|||
|
}, (zipFsO, {subPath: subPathO}) => {
|
|||
|
return this.makeCallSync(newP, () => {
|
|||
|
throw Object.assign(new Error(`EEXDEV: cross-device link not permitted`), {code: `EEXDEV`});
|
|||
|
}, (zipFsN, {subPath: subPathN}) => {
|
|||
|
if (zipFsO !== zipFsN) {
|
|||
|
throw Object.assign(new Error(`EEXDEV: cross-device link not permitted`), {code: `EEXDEV`});
|
|||
|
} else {
|
|||
|
return zipFsO.renameSync(subPathO, subPathN);
|
|||
|
}
|
|||
|
});
|
|||
|
});
|
|||
|
}
|
|||
|
async copyFilePromise(sourceP, destP, flags = 0) {
|
|||
|
const fallback = async (sourceFs, sourceP2, destFs, destP2) => {
|
|||
|
if ((flags & fs.constants.COPYFILE_FICLONE_FORCE) !== 0)
|
|||
|
throw Object.assign(new Error(`EXDEV: cross-device clone not permitted, copyfile '${sourceP2}' -> ${destP2}'`), {code: `EXDEV`});
|
|||
|
if (flags & fs.constants.COPYFILE_EXCL && await this.existsPromise(sourceP2))
|
|||
|
throw Object.assign(new Error(`EEXIST: file already exists, copyfile '${sourceP2}' -> '${destP2}'`), {code: `EEXIST`});
|
|||
|
let content;
|
|||
|
try {
|
|||
|
content = await sourceFs.readFilePromise(sourceP2);
|
|||
|
} catch (error) {
|
|||
|
throw Object.assign(new Error(`EINVAL: invalid argument, copyfile '${sourceP2}' -> '${destP2}'`), {code: `EINVAL`});
|
|||
|
}
|
|||
|
await destFs.writeFilePromise(destP2, content);
|
|||
|
};
|
|||
|
return await this.makeCallPromise(sourceP, async () => {
|
|||
|
return await this.makeCallPromise(destP, async () => {
|
|||
|
return await this.baseFs.copyFilePromise(sourceP, destP, flags);
|
|||
|
}, async (zipFsD, {subPath: subPathD}) => {
|
|||
|
return await fallback(this.baseFs, sourceP, zipFsD, subPathD);
|
|||
|
});
|
|||
|
}, async (zipFsS, {subPath: subPathS}) => {
|
|||
|
return await this.makeCallPromise(destP, async () => {
|
|||
|
return await fallback(zipFsS, subPathS, this.baseFs, destP);
|
|||
|
}, async (zipFsD, {subPath: subPathD}) => {
|
|||
|
if (zipFsS !== zipFsD) {
|
|||
|
return await fallback(zipFsS, subPathS, zipFsD, subPathD);
|
|||
|
} else {
|
|||
|
return await zipFsS.copyFilePromise(subPathS, subPathD, flags);
|
|||
|
}
|
|||
|
});
|
|||
|
});
|
|||
|
}
|
|||
|
copyFileSync(sourceP, destP, flags = 0) {
|
|||
|
const fallback = (sourceFs, sourceP2, destFs, destP2) => {
|
|||
|
if ((flags & fs.constants.COPYFILE_FICLONE_FORCE) !== 0)
|
|||
|
throw Object.assign(new Error(`EXDEV: cross-device clone not permitted, copyfile '${sourceP2}' -> ${destP2}'`), {code: `EXDEV`});
|
|||
|
if (flags & fs.constants.COPYFILE_EXCL && this.existsSync(sourceP2))
|
|||
|
throw Object.assign(new Error(`EEXIST: file already exists, copyfile '${sourceP2}' -> '${destP2}'`), {code: `EEXIST`});
|
|||
|
let content;
|
|||
|
try {
|
|||
|
content = sourceFs.readFileSync(sourceP2);
|
|||
|
} catch (error) {
|
|||
|
throw Object.assign(new Error(`EINVAL: invalid argument, copyfile '${sourceP2}' -> '${destP2}'`), {code: `EINVAL`});
|
|||
|
}
|
|||
|
destFs.writeFileSync(destP2, content);
|
|||
|
};
|
|||
|
return this.makeCallSync(sourceP, () => {
|
|||
|
return this.makeCallSync(destP, () => {
|
|||
|
return this.baseFs.copyFileSync(sourceP, destP, flags);
|
|||
|
}, (zipFsD, {subPath: subPathD}) => {
|
|||
|
return fallback(this.baseFs, sourceP, zipFsD, subPathD);
|
|||
|
});
|
|||
|
}, (zipFsS, {subPath: subPathS}) => {
|
|||
|
return this.makeCallSync(destP, () => {
|
|||
|
return fallback(zipFsS, subPathS, this.baseFs, destP);
|
|||
|
}, (zipFsD, {subPath: subPathD}) => {
|
|||
|
if (zipFsS !== zipFsD) {
|
|||
|
return fallback(zipFsS, subPathS, zipFsD, subPathD);
|
|||
|
} else {
|
|||
|
return zipFsS.copyFileSync(subPathS, subPathD, flags);
|
|||
|
}
|
|||
|
});
|
|||
|
});
|
|||
|
}
|
|||
|
async appendFilePromise(p, content, opts) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.appendFilePromise(p, content, opts);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.appendFilePromise(subPath, content, opts);
|
|||
|
});
|
|||
|
}
|
|||
|
appendFileSync(p, content, opts) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.appendFileSync(p, content, opts);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.appendFileSync(subPath, content, opts);
|
|||
|
});
|
|||
|
}
|
|||
|
async writeFilePromise(p, content, opts) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.writeFilePromise(p, content, opts);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.writeFilePromise(subPath, content, opts);
|
|||
|
});
|
|||
|
}
|
|||
|
writeFileSync(p, content, opts) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.writeFileSync(p, content, opts);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.writeFileSync(subPath, content, opts);
|
|||
|
});
|
|||
|
}
|
|||
|
async unlinkPromise(p) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.unlinkPromise(p);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.unlinkPromise(subPath);
|
|||
|
});
|
|||
|
}
|
|||
|
unlinkSync(p) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.unlinkSync(p);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.unlinkSync(subPath);
|
|||
|
});
|
|||
|
}
|
|||
|
async utimesPromise(p, atime, mtime) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.utimesPromise(p, atime, mtime);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.utimesPromise(subPath, atime, mtime);
|
|||
|
});
|
|||
|
}
|
|||
|
utimesSync(p, atime, mtime) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.utimesSync(p, atime, mtime);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.utimesSync(subPath, atime, mtime);
|
|||
|
});
|
|||
|
}
|
|||
|
async mkdirPromise(p, opts) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.mkdirPromise(p, opts);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.mkdirPromise(subPath, opts);
|
|||
|
});
|
|||
|
}
|
|||
|
mkdirSync(p, opts) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.mkdirSync(p, opts);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.mkdirSync(subPath, opts);
|
|||
|
});
|
|||
|
}
|
|||
|
async rmdirPromise(p, opts) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.rmdirPromise(p, opts);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.rmdirPromise(subPath, opts);
|
|||
|
});
|
|||
|
}
|
|||
|
rmdirSync(p, opts) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.rmdirSync(p, opts);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.rmdirSync(subPath, opts);
|
|||
|
});
|
|||
|
}
|
|||
|
async linkPromise(existingP, newP) {
|
|||
|
return await this.makeCallPromise(newP, async () => {
|
|||
|
return await this.baseFs.linkPromise(existingP, newP);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.linkPromise(existingP, subPath);
|
|||
|
});
|
|||
|
}
|
|||
|
linkSync(existingP, newP) {
|
|||
|
return this.makeCallSync(newP, () => {
|
|||
|
return this.baseFs.linkSync(existingP, newP);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.linkSync(existingP, subPath);
|
|||
|
});
|
|||
|
}
|
|||
|
async symlinkPromise(target, p, type) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.symlinkPromise(target, p, type);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.symlinkPromise(target, subPath);
|
|||
|
});
|
|||
|
}
|
|||
|
symlinkSync(target, p, type) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.symlinkSync(target, p, type);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.symlinkSync(target, subPath);
|
|||
|
});
|
|||
|
}
|
|||
|
async readFilePromise(p, encoding) {
|
|||
|
return this.makeCallPromise(p, async () => {
|
|||
|
switch (encoding) {
|
|||
|
case `utf8`:
|
|||
|
return await this.baseFs.readFilePromise(p, encoding);
|
|||
|
default:
|
|||
|
return await this.baseFs.readFilePromise(p, encoding);
|
|||
|
}
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.readFilePromise(subPath, encoding);
|
|||
|
});
|
|||
|
}
|
|||
|
readFileSync(p, encoding) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
switch (encoding) {
|
|||
|
case `utf8`:
|
|||
|
return this.baseFs.readFileSync(p, encoding);
|
|||
|
default:
|
|||
|
return this.baseFs.readFileSync(p, encoding);
|
|||
|
}
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.readFileSync(subPath, encoding);
|
|||
|
});
|
|||
|
}
|
|||
|
async readdirPromise(p, opts) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.readdirPromise(p, opts);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.readdirPromise(subPath, opts);
|
|||
|
}, {
|
|||
|
requireSubpath: false
|
|||
|
});
|
|||
|
}
|
|||
|
readdirSync(p, opts) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.readdirSync(p, opts);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.readdirSync(subPath, opts);
|
|||
|
}, {
|
|||
|
requireSubpath: false
|
|||
|
});
|
|||
|
}
|
|||
|
async readlinkPromise(p) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.readlinkPromise(p);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.readlinkPromise(subPath);
|
|||
|
});
|
|||
|
}
|
|||
|
readlinkSync(p) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.readlinkSync(p);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.readlinkSync(subPath);
|
|||
|
});
|
|||
|
}
|
|||
|
async truncatePromise(p, len) {
|
|||
|
return await this.makeCallPromise(p, async () => {
|
|||
|
return await this.baseFs.truncatePromise(p, len);
|
|||
|
}, async (zipFs, {subPath}) => {
|
|||
|
return await zipFs.truncatePromise(subPath, len);
|
|||
|
});
|
|||
|
}
|
|||
|
truncateSync(p, len) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.truncateSync(p, len);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.truncateSync(subPath, len);
|
|||
|
});
|
|||
|
}
|
|||
|
watch(p, a, b) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.watch(p, a, b);
|
|||
|
}, (zipFs, {subPath}) => {
|
|||
|
return zipFs.watch(subPath, a, b);
|
|||
|
});
|
|||
|
}
|
|||
|
watchFile(p, a, b) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.watchFile(p, a, b);
|
|||
|
}, () => {
|
|||
|
return watchFile(this, p, a, b);
|
|||
|
});
|
|||
|
}
|
|||
|
unwatchFile(p, cb) {
|
|||
|
return this.makeCallSync(p, () => {
|
|||
|
return this.baseFs.unwatchFile(p, cb);
|
|||
|
}, () => {
|
|||
|
return unwatchFile(this, p, cb);
|
|||
|
});
|
|||
|
}
|
|||
|
async makeCallPromise(p, discard, accept, {requireSubpath = true} = {}) {
|
|||
|
if (typeof p !== `string`)
|
|||
|
return await discard();
|
|||
|
const normalizedP = this.resolve(p);
|
|||
|
const zipInfo = this.findZip(normalizedP);
|
|||
|
if (!zipInfo)
|
|||
|
return await discard();
|
|||
|
if (requireSubpath && zipInfo.subPath === `/`)
|
|||
|
return await discard();
|
|||
|
return await this.getZipPromise(zipInfo.archivePath, async (zipFs) => await accept(zipFs, zipInfo));
|
|||
|
}
|
|||
|
makeCallSync(p, discard, accept, {requireSubpath = true} = {}) {
|
|||
|
if (typeof p !== `string`)
|
|||
|
return discard();
|
|||
|
const normalizedP = this.resolve(p);
|
|||
|
const zipInfo = this.findZip(normalizedP);
|
|||
|
if (!zipInfo)
|
|||
|
return discard();
|
|||
|
if (requireSubpath && zipInfo.subPath === `/`)
|
|||
|
return discard();
|
|||
|
return this.getZipSync(zipInfo.archivePath, (zipFs) => accept(zipFs, zipInfo));
|
|||
|
}
|
|||
|
findZip(p) {
|
|||
|
if (this.filter && !this.filter.test(p))
|
|||
|
return null;
|
|||
|
let filePath = ``;
|
|||
|
while (true) {
|
|||
|
const pathPartWithArchive = p.substring(filePath.length);
|
|||
|
let archivePart;
|
|||
|
if (!this.fileExtensions) {
|
|||
|
archivePart = getArchivePart(pathPartWithArchive, `.zip`);
|
|||
|
} else {
|
|||
|
for (const ext of this.fileExtensions) {
|
|||
|
archivePart = getArchivePart(pathPartWithArchive, ext);
|
|||
|
if (archivePart) {
|
|||
|
break;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
if (!archivePart)
|
|||
|
return null;
|
|||
|
filePath = this.pathUtils.join(filePath, archivePart);
|
|||
|
if (this.isZip.has(filePath) === false) {
|
|||
|
if (this.notZip.has(filePath))
|
|||
|
continue;
|
|||
|
try {
|
|||
|
if (!this.baseFs.lstatSync(filePath).isFile()) {
|
|||
|
this.notZip.add(filePath);
|
|||
|
continue;
|
|||
|
}
|
|||
|
} catch {
|
|||
|
return null;
|
|||
|
}
|
|||
|
this.isZip.add(filePath);
|
|||
|
}
|
|||
|
return {
|
|||
|
archivePath: filePath,
|
|||
|
subPath: this.pathUtils.join(PortablePath.root, p.substring(filePath.length))
|
|||
|
};
|
|||
|
}
|
|||
|
}
|
|||
|
limitOpenFiles(max) {
|
|||
|
if (this.zipInstances === null)
|
|||
|
return;
|
|||
|
const now = Date.now();
|
|||
|
let nextExpiresAt = now + this.maxAge;
|
|||
|
let closeCount = max === null ? 0 : this.zipInstances.size - max;
|
|||
|
for (const [path, {zipFs, expiresAt, refCount}] of this.zipInstances.entries()) {
|
|||
|
if (refCount !== 0 || zipFs.hasOpenFileHandles()) {
|
|||
|
continue;
|
|||
|
} else if (now >= expiresAt) {
|
|||
|
zipFs.saveAndClose();
|
|||
|
this.zipInstances.delete(path);
|
|||
|
closeCount -= 1;
|
|||
|
continue;
|
|||
|
} else if (max === null || closeCount <= 0) {
|
|||
|
nextExpiresAt = expiresAt;
|
|||
|
break;
|
|||
|
}
|
|||
|
zipFs.saveAndClose();
|
|||
|
this.zipInstances.delete(path);
|
|||
|
closeCount -= 1;
|
|||
|
}
|
|||
|
if (this.limitOpenFilesTimeout === null && (max === null && this.zipInstances.size > 0 || max !== null)) {
|
|||
|
this.limitOpenFilesTimeout = setTimeout(() => {
|
|||
|
this.limitOpenFilesTimeout = null;
|
|||
|
this.limitOpenFiles(null);
|
|||
|
}, nextExpiresAt - now).unref();
|
|||
|
}
|
|||
|
}
|
|||
|
async getZipPromise(p, accept) {
|
|||
|
const getZipOptions = async () => ({
|
|||
|
baseFs: this.baseFs,
|
|||
|
libzip: this.libzip,
|
|||
|
readOnly: this.readOnlyArchives,
|
|||
|
stats: await this.baseFs.statPromise(p)
|
|||
|
});
|
|||
|
if (this.zipInstances) {
|
|||
|
let cachedZipFs = this.zipInstances.get(p);
|
|||
|
if (!cachedZipFs) {
|
|||
|
const zipOptions = await getZipOptions();
|
|||
|
cachedZipFs = this.zipInstances.get(p);
|
|||
|
if (!cachedZipFs) {
|
|||
|
cachedZipFs = {
|
|||
|
zipFs: new ZipFS(p, zipOptions),
|
|||
|
expiresAt: 0,
|
|||
|
refCount: 0
|
|||
|
};
|
|||
|
}
|
|||
|
}
|
|||
|
this.zipInstances.delete(p);
|
|||
|
this.limitOpenFiles(this.maxOpenFiles - 1);
|
|||
|
this.zipInstances.set(p, cachedZipFs);
|
|||
|
cachedZipFs.expiresAt = Date.now() + this.maxAge;
|
|||
|
cachedZipFs.refCount += 1;
|
|||
|
try {
|
|||
|
return await accept(cachedZipFs.zipFs);
|
|||
|
} finally {
|
|||
|
cachedZipFs.refCount -= 1;
|
|||
|
}
|
|||
|
} else {
|
|||
|
const zipFs = new ZipFS(p, await getZipOptions());
|
|||
|
try {
|
|||
|
return await accept(zipFs);
|
|||
|
} finally {
|
|||
|
zipFs.saveAndClose();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
getZipSync(p, accept) {
|
|||
|
const getZipOptions = () => ({
|
|||
|
baseFs: this.baseFs,
|
|||
|
libzip: this.libzip,
|
|||
|
readOnly: this.readOnlyArchives,
|
|||
|
stats: this.baseFs.statSync(p)
|
|||
|
});
|
|||
|
if (this.zipInstances) {
|
|||
|
let cachedZipFs = this.zipInstances.get(p);
|
|||
|
if (!cachedZipFs) {
|
|||
|
cachedZipFs = {
|
|||
|
zipFs: new ZipFS(p, getZipOptions()),
|
|||
|
expiresAt: 0,
|
|||
|
refCount: 0
|
|||
|
};
|
|||
|
}
|
|||
|
this.zipInstances.delete(p);
|
|||
|
this.limitOpenFiles(this.maxOpenFiles - 1);
|
|||
|
this.zipInstances.set(p, cachedZipFs);
|
|||
|
cachedZipFs.expiresAt = Date.now() + this.maxAge;
|
|||
|
return accept(cachedZipFs.zipFs);
|
|||
|
} else {
|
|||
|
const zipFs = new ZipFS(p, getZipOptions());
|
|||
|
try {
|
|||
|
return accept(zipFs);
|
|||
|
} finally {
|
|||
|
zipFs.saveAndClose();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
class URLFS extends ProxiedFS {
|
|||
|
constructor(baseFs) {
|
|||
|
super(npath);
|
|||
|
this.baseFs = baseFs;
|
|||
|
}
|
|||
|
mapFromBase(path) {
|
|||
|
return path;
|
|||
|
}
|
|||
|
mapToBase(path) {
|
|||
|
if (path instanceof url.URL)
|
|||
|
return url.fileURLToPath(path);
|
|||
|
return path;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
const SYNC_IMPLEMENTATIONS = new Set([
|
|||
|
`accessSync`,
|
|||
|
`appendFileSync`,
|
|||
|
`createReadStream`,
|
|||
|
`createWriteStream`,
|
|||
|
`chmodSync`,
|
|||
|
`chownSync`,
|
|||
|
`closeSync`,
|
|||
|
`copyFileSync`,
|
|||
|
`linkSync`,
|
|||
|
`lstatSync`,
|
|||
|
`fstatSync`,
|
|||
|
`lutimesSync`,
|
|||
|
`mkdirSync`,
|
|||
|
`openSync`,
|
|||
|
`opendirSync`,
|
|||
|
`readlinkSync`,
|
|||
|
`readFileSync`,
|
|||
|
`readdirSync`,
|
|||
|
`readlinkSync`,
|
|||
|
`realpathSync`,
|
|||
|
`renameSync`,
|
|||
|
`rmdirSync`,
|
|||
|
`statSync`,
|
|||
|
`symlinkSync`,
|
|||
|
`truncateSync`,
|
|||
|
`unlinkSync`,
|
|||
|
`unwatchFile`,
|
|||
|
`utimesSync`,
|
|||
|
`watch`,
|
|||
|
`watchFile`,
|
|||
|
`writeFileSync`,
|
|||
|
`writeSync`
|
|||
|
]);
|
|||
|
const ASYNC_IMPLEMENTATIONS = new Set([
|
|||
|
`accessPromise`,
|
|||
|
`appendFilePromise`,
|
|||
|
`chmodPromise`,
|
|||
|
`chownPromise`,
|
|||
|
`closePromise`,
|
|||
|
`copyFilePromise`,
|
|||
|
`linkPromise`,
|
|||
|
`fstatPromise`,
|
|||
|
`lstatPromise`,
|
|||
|
`lutimesPromise`,
|
|||
|
`mkdirPromise`,
|
|||
|
`openPromise`,
|
|||
|
`opendirPromise`,
|
|||
|
`readdirPromise`,
|
|||
|
`realpathPromise`,
|
|||
|
`readFilePromise`,
|
|||
|
`readdirPromise`,
|
|||
|
`readlinkPromise`,
|
|||
|
`renamePromise`,
|
|||
|
`rmdirPromise`,
|
|||
|
`statPromise`,
|
|||
|
`symlinkPromise`,
|
|||
|
`truncatePromise`,
|
|||
|
`unlinkPromise`,
|
|||
|
`utimesPromise`,
|
|||
|
`writeFilePromise`,
|
|||
|
`writeSync`
|
|||
|
]);
|
|||
|
const FILEHANDLE_IMPLEMENTATIONS = new Set([
|
|||
|
`appendFilePromise`,
|
|||
|
`chmodPromise`,
|
|||
|
`chownPromise`,
|
|||
|
`closePromise`,
|
|||
|
`readPromise`,
|
|||
|
`readFilePromise`,
|
|||
|
`statPromise`,
|
|||
|
`truncatePromise`,
|
|||
|
`utimesPromise`,
|
|||
|
`writePromise`,
|
|||
|
`writeFilePromise`
|
|||
|
]);
|
|||
|
function patchFs(patchedFs, fakeFs) {
|
|||
|
fakeFs = new URLFS(fakeFs);
|
|||
|
const setupFn = (target, name, replacement) => {
|
|||
|
const orig = target[name];
|
|||
|
target[name] = replacement;
|
|||
|
if (typeof (orig == null ? void 0 : orig[nodeUtils.promisify.custom]) !== `undefined`) {
|
|||
|
replacement[nodeUtils.promisify.custom] = orig[nodeUtils.promisify.custom];
|
|||
|
}
|
|||
|
};
|
|||
|
{
|
|||
|
setupFn(patchedFs, `exists`, (p, ...args) => {
|
|||
|
const hasCallback = typeof args[args.length - 1] === `function`;
|
|||
|
const callback = hasCallback ? args.pop() : () => {
|
|||
|
};
|
|||
|
process.nextTick(() => {
|
|||
|
fakeFs.existsPromise(p).then((exists) => {
|
|||
|
callback(exists);
|
|||
|
}, () => {
|
|||
|
callback(false);
|
|||
|
});
|
|||
|
});
|
|||
|
});
|
|||
|
setupFn(patchedFs, `read`, (...args) => {
|
|||
|
let [fd, buffer, offset, length, position, callback] = args;
|
|||
|
if (args.length <= 3) {
|
|||
|
let options = {};
|
|||
|
if (args.length < 3) {
|
|||
|
callback = args[1];
|
|||
|
} else {
|
|||
|
options = args[1];
|
|||
|
callback = args[2];
|
|||
|
}
|
|||
|
({
|
|||
|
buffer = Buffer.alloc(16384),
|
|||
|
offset = 0,
|
|||
|
length = buffer.byteLength,
|
|||
|
position
|
|||
|
} = options);
|
|||
|
}
|
|||
|
if (offset == null)
|
|||
|
offset = 0;
|
|||
|
length |= 0;
|
|||
|
if (length === 0) {
|
|||
|
process.nextTick(() => {
|
|||
|
callback(null, 0, buffer);
|
|||
|
});
|
|||
|
return;
|
|||
|
}
|
|||
|
if (position == null)
|
|||
|
position = -1;
|
|||
|
process.nextTick(() => {
|
|||
|
fakeFs.readPromise(fd, buffer, offset, length, position).then((bytesRead) => {
|
|||
|
callback(null, bytesRead, buffer);
|
|||
|
}, (error) => {
|
|||
|
callback(error, 0, buffer);
|
|||
|
});
|
|||
|
});
|
|||
|
});
|
|||
|
for (const fnName of ASYNC_IMPLEMENTATIONS) {
|
|||
|
const origName = fnName.replace(/Promise$/, ``);
|
|||
|
if (typeof patchedFs[origName] === `undefined`)
|
|||
|
continue;
|
|||
|
const fakeImpl = fakeFs[fnName];
|
|||
|
if (typeof fakeImpl === `undefined`)
|
|||
|
continue;
|
|||
|
const wrapper = (...args) => {
|
|||
|
const hasCallback = typeof args[args.length - 1] === `function`;
|
|||
|
const callback = hasCallback ? args.pop() : () => {
|
|||
|
};
|
|||
|
process.nextTick(() => {
|
|||
|
fakeImpl.apply(fakeFs, args).then((result) => {
|
|||
|
callback(null, result);
|
|||
|
}, (error) => {
|
|||
|
callback(error);
|
|||
|
});
|
|||
|
});
|
|||
|
};
|
|||
|
setupFn(patchedFs, origName, wrapper);
|
|||
|
}
|
|||
|
patchedFs.realpath.native = patchedFs.realpath;
|
|||
|
}
|
|||
|
{
|
|||
|
setupFn(patchedFs, `existsSync`, (p) => {
|
|||
|
try {
|
|||
|
return fakeFs.existsSync(p);
|
|||
|
} catch (error) {
|
|||
|
return false;
|
|||
|
}
|
|||
|
});
|
|||
|
setupFn(patchedFs, `readSync`, (...args) => {
|
|||
|
let [fd, buffer, offset, length, position] = args;
|
|||
|
if (args.length <= 3) {
|
|||
|
const options = args[2] || {};
|
|||
|
({offset = 0, length = buffer.byteLength, position} = options);
|
|||
|
}
|
|||
|
if (offset == null)
|
|||
|
offset = 0;
|
|||
|
length |= 0;
|
|||
|
if (length === 0)
|
|||
|
return 0;
|
|||
|
if (position == null)
|
|||
|
position = -1;
|
|||
|
return fakeFs.readSync(fd, buffer, offset, length, position);
|
|||
|
});
|
|||
|
for (const fnName of SYNC_IMPLEMENTATIONS) {
|
|||
|
const origName = fnName;
|
|||
|
if (typeof patchedFs[origName] === `undefined`)
|
|||
|
continue;
|
|||
|
const fakeImpl = fakeFs[fnName];
|
|||
|
if (typeof fakeImpl === `undefined`)
|
|||
|
continue;
|
|||
|
setupFn(patchedFs, origName, fakeImpl.bind(fakeFs));
|
|||
|
}
|
|||
|
patchedFs.realpathSync.native = patchedFs.realpathSync;
|
|||
|
}
|
|||
|
{
|
|||
|
const origEmitWarning = process.emitWarning;
|
|||
|
process.emitWarning = () => {
|
|||
|
};
|
|||
|
let patchedFsPromises;
|
|||
|
try {
|
|||
|
patchedFsPromises = patchedFs.promises;
|
|||
|
} finally {
|
|||
|
process.emitWarning = origEmitWarning;
|
|||
|
}
|
|||
|
if (typeof patchedFsPromises !== `undefined`) {
|
|||
|
for (const fnName of ASYNC_IMPLEMENTATIONS) {
|
|||
|
const origName = fnName.replace(/Promise$/, ``);
|
|||
|
if (typeof patchedFsPromises[origName] === `undefined`)
|
|||
|
continue;
|
|||
|
const fakeImpl = fakeFs[fnName];
|
|||
|
if (typeof fakeImpl === `undefined`)
|
|||
|
continue;
|
|||
|
if (fnName === `open`)
|
|||
|
continue;
|
|||
|
setupFn(patchedFsPromises, origName, fakeImpl.bind(fakeFs));
|
|||
|
}
|
|||
|
class FileHandle {
|
|||
|
constructor(fd) {
|
|||
|
this.fd = fd;
|
|||
|
}
|
|||
|
}
|
|||
|
for (const fnName of FILEHANDLE_IMPLEMENTATIONS) {
|
|||
|
const origName = fnName.replace(/Promise$/, ``);
|
|||
|
const fakeImpl = fakeFs[fnName];
|
|||
|
if (typeof fakeImpl === `undefined`)
|
|||
|
continue;
|
|||
|
setupFn(FileHandle.prototype, origName, function(...args) {
|
|||
|
return fakeImpl.call(fakeFs, this.fd, ...args);
|
|||
|
});
|
|||
|
}
|
|||
|
setupFn(patchedFsPromises, `open`, async (...args) => {
|
|||
|
const fd = await fakeFs.openPromise(...args);
|
|||
|
return new FileHandle(fd);
|
|||
|
});
|
|||
|
}
|
|||
|
}
|
|||
|
{
|
|||
|
patchedFs.read[nodeUtils.promisify.custom] = async (fd, buffer, ...args) => {
|
|||
|
const res = fakeFs.readPromise(fd, buffer, ...args);
|
|||
|
return {bytesRead: await res, buffer};
|
|||
|
};
|
|||
|
patchedFs.write[nodeUtils.promisify.custom] = async (fd, buffer, ...args) => {
|
|||
|
const res = fakeFs.writePromise(fd, buffer, ...args);
|
|||
|
return {bytesWritten: await res, buffer};
|
|||
|
};
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
var libzipSync = {exports: {}};
|
|||
|
|
|||
|
(function (module, exports) {
|
|||
|
var frozenFs = Object.assign({}, fs__default.default);
|
|||
|
var createModule = function() {
|
|||
|
var _scriptDir = void 0;
|
|||
|
if (typeof __filename !== "undefined")
|
|||
|
_scriptDir = _scriptDir || __filename;
|
|||
|
return function(createModule2) {
|
|||
|
createModule2 = createModule2 || {};
|
|||
|
var Module = typeof createModule2 !== "undefined" ? createModule2 : {};
|
|||
|
var readyPromiseResolve, readyPromiseReject;
|
|||
|
Module["ready"] = new Promise(function(resolve, reject) {
|
|||
|
readyPromiseResolve = resolve;
|
|||
|
readyPromiseReject = reject;
|
|||
|
});
|
|||
|
var moduleOverrides = {};
|
|||
|
var key;
|
|||
|
for (key in Module) {
|
|||
|
if (Module.hasOwnProperty(key)) {
|
|||
|
moduleOverrides[key] = Module[key];
|
|||
|
}
|
|||
|
}
|
|||
|
var scriptDirectory = "";
|
|||
|
function locateFile(path) {
|
|||
|
if (Module["locateFile"]) {
|
|||
|
return Module["locateFile"](path, scriptDirectory);
|
|||
|
}
|
|||
|
return scriptDirectory + path;
|
|||
|
}
|
|||
|
var read_, readBinary;
|
|||
|
var nodeFS;
|
|||
|
var nodePath;
|
|||
|
{
|
|||
|
{
|
|||
|
scriptDirectory = __dirname + "/";
|
|||
|
}
|
|||
|
read_ = function shell_read(filename, binary) {
|
|||
|
var ret = tryParseAsDataURI(filename);
|
|||
|
if (ret) {
|
|||
|
return binary ? ret : ret.toString();
|
|||
|
}
|
|||
|
if (!nodeFS)
|
|||
|
nodeFS = frozenFs;
|
|||
|
if (!nodePath)
|
|||
|
nodePath = path__default.default;
|
|||
|
filename = nodePath["normalize"](filename);
|
|||
|
return nodeFS["readFileSync"](filename, binary ? null : "utf8");
|
|||
|
};
|
|||
|
readBinary = function readBinary2(filename) {
|
|||
|
var ret = read_(filename, true);
|
|||
|
if (!ret.buffer) {
|
|||
|
ret = new Uint8Array(ret);
|
|||
|
}
|
|||
|
assert(ret.buffer);
|
|||
|
return ret;
|
|||
|
};
|
|||
|
if (process["argv"].length > 1) {
|
|||
|
process["argv"][1].replace(/\\/g, "/");
|
|||
|
}
|
|||
|
process["argv"].slice(2);
|
|||
|
Module["inspect"] = function() {
|
|||
|
return "[Emscripten Module object]";
|
|||
|
};
|
|||
|
}
|
|||
|
var out = Module["print"] || console.log.bind(console);
|
|||
|
var err = Module["printErr"] || console.warn.bind(console);
|
|||
|
for (key in moduleOverrides) {
|
|||
|
if (moduleOverrides.hasOwnProperty(key)) {
|
|||
|
Module[key] = moduleOverrides[key];
|
|||
|
}
|
|||
|
}
|
|||
|
moduleOverrides = null;
|
|||
|
if (Module["arguments"])
|
|||
|
;
|
|||
|
if (Module["thisProgram"])
|
|||
|
;
|
|||
|
if (Module["quit"])
|
|||
|
;
|
|||
|
var STACK_ALIGN = 16;
|
|||
|
function alignMemory(size, factor) {
|
|||
|
if (!factor)
|
|||
|
factor = STACK_ALIGN;
|
|||
|
return Math.ceil(size / factor) * factor;
|
|||
|
}
|
|||
|
var wasmBinary;
|
|||
|
if (Module["wasmBinary"])
|
|||
|
wasmBinary = Module["wasmBinary"];
|
|||
|
Module["noExitRuntime"] || true;
|
|||
|
if (typeof WebAssembly !== "object") {
|
|||
|
abort("no native wasm support detected");
|
|||
|
}
|
|||
|
function getValue(ptr, type, noSafe) {
|
|||
|
type = type || "i8";
|
|||
|
if (type.charAt(type.length - 1) === "*")
|
|||
|
type = "i32";
|
|||
|
switch (type) {
|
|||
|
case "i1":
|
|||
|
return HEAP8[ptr >> 0];
|
|||
|
case "i8":
|
|||
|
return HEAP8[ptr >> 0];
|
|||
|
case "i16":
|
|||
|
return HEAP16[ptr >> 1];
|
|||
|
case "i32":
|
|||
|
return HEAP32[ptr >> 2];
|
|||
|
case "i64":
|
|||
|
return HEAP32[ptr >> 2];
|
|||
|
case "float":
|
|||
|
return HEAPF32[ptr >> 2];
|
|||
|
case "double":
|
|||
|
return HEAPF64[ptr >> 3];
|
|||
|
default:
|
|||
|
abort("invalid type for getValue: " + type);
|
|||
|
}
|
|||
|
return null;
|
|||
|
}
|
|||
|
var wasmMemory;
|
|||
|
var ABORT = false;
|
|||
|
function assert(condition, text) {
|
|||
|
if (!condition) {
|
|||
|
abort("Assertion failed: " + text);
|
|||
|
}
|
|||
|
}
|
|||
|
function getCFunc(ident) {
|
|||
|
var func = Module["_" + ident];
|
|||
|
assert(func, "Cannot call unknown function " + ident + ", make sure it is exported");
|
|||
|
return func;
|
|||
|
}
|
|||
|
function ccall(ident, returnType, argTypes, args, opts) {
|
|||
|
var toC = {
|
|||
|
string: function(str) {
|
|||
|
var ret2 = 0;
|
|||
|
if (str !== null && str !== void 0 && str !== 0) {
|
|||
|
var len = (str.length << 2) + 1;
|
|||
|
ret2 = stackAlloc(len);
|
|||
|
stringToUTF8(str, ret2, len);
|
|||
|
}
|
|||
|
return ret2;
|
|||
|
},
|
|||
|
array: function(arr) {
|
|||
|
var ret2 = stackAlloc(arr.length);
|
|||
|
writeArrayToMemory(arr, ret2);
|
|||
|
return ret2;
|
|||
|
}
|
|||
|
};
|
|||
|
function convertReturnValue(ret2) {
|
|||
|
if (returnType === "string")
|
|||
|
return UTF8ToString(ret2);
|
|||
|
if (returnType === "boolean")
|
|||
|
return Boolean(ret2);
|
|||
|
return ret2;
|
|||
|
}
|
|||
|
var func = getCFunc(ident);
|
|||
|
var cArgs = [];
|
|||
|
var stack = 0;
|
|||
|
if (args) {
|
|||
|
for (var i = 0; i < args.length; i++) {
|
|||
|
var converter = toC[argTypes[i]];
|
|||
|
if (converter) {
|
|||
|
if (stack === 0)
|
|||
|
stack = stackSave();
|
|||
|
cArgs[i] = converter(args[i]);
|
|||
|
} else {
|
|||
|
cArgs[i] = args[i];
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
var ret = func.apply(null, cArgs);
|
|||
|
ret = convertReturnValue(ret);
|
|||
|
if (stack !== 0)
|
|||
|
stackRestore(stack);
|
|||
|
return ret;
|
|||
|
}
|
|||
|
function cwrap(ident, returnType, argTypes, opts) {
|
|||
|
argTypes = argTypes || [];
|
|||
|
var numericArgs = argTypes.every(function(type) {
|
|||
|
return type === "number";
|
|||
|
});
|
|||
|
var numericRet = returnType !== "string";
|
|||
|
if (numericRet && numericArgs && !opts) {
|
|||
|
return getCFunc(ident);
|
|||
|
}
|
|||
|
return function() {
|
|||
|
return ccall(ident, returnType, argTypes, arguments);
|
|||
|
};
|
|||
|
}
|
|||
|
var UTF8Decoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf8") : void 0;
|
|||
|
function UTF8ArrayToString(heap, idx, maxBytesToRead) {
|
|||
|
var endIdx = idx + maxBytesToRead;
|
|||
|
var endPtr = idx;
|
|||
|
while (heap[endPtr] && !(endPtr >= endIdx))
|
|||
|
++endPtr;
|
|||
|
if (endPtr - idx > 16 && heap.subarray && UTF8Decoder) {
|
|||
|
return UTF8Decoder.decode(heap.subarray(idx, endPtr));
|
|||
|
} else {
|
|||
|
var str = "";
|
|||
|
while (idx < endPtr) {
|
|||
|
var u0 = heap[idx++];
|
|||
|
if (!(u0 & 128)) {
|
|||
|
str += String.fromCharCode(u0);
|
|||
|
continue;
|
|||
|
}
|
|||
|
var u1 = heap[idx++] & 63;
|
|||
|
if ((u0 & 224) == 192) {
|
|||
|
str += String.fromCharCode((u0 & 31) << 6 | u1);
|
|||
|
continue;
|
|||
|
}
|
|||
|
var u2 = heap[idx++] & 63;
|
|||
|
if ((u0 & 240) == 224) {
|
|||
|
u0 = (u0 & 15) << 12 | u1 << 6 | u2;
|
|||
|
} else {
|
|||
|
u0 = (u0 & 7) << 18 | u1 << 12 | u2 << 6 | heap[idx++] & 63;
|
|||
|
}
|
|||
|
if (u0 < 65536) {
|
|||
|
str += String.fromCharCode(u0);
|
|||
|
} else {
|
|||
|
var ch = u0 - 65536;
|
|||
|
str += String.fromCharCode(55296 | ch >> 10, 56320 | ch & 1023);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
return str;
|
|||
|
}
|
|||
|
function UTF8ToString(ptr, maxBytesToRead) {
|
|||
|
return ptr ? UTF8ArrayToString(HEAPU8, ptr, maxBytesToRead) : "";
|
|||
|
}
|
|||
|
function stringToUTF8Array(str, heap, outIdx, maxBytesToWrite) {
|
|||
|
if (!(maxBytesToWrite > 0))
|
|||
|
return 0;
|
|||
|
var startIdx = outIdx;
|
|||
|
var endIdx = outIdx + maxBytesToWrite - 1;
|
|||
|
for (var i = 0; i < str.length; ++i) {
|
|||
|
var u = str.charCodeAt(i);
|
|||
|
if (u >= 55296 && u <= 57343) {
|
|||
|
var u1 = str.charCodeAt(++i);
|
|||
|
u = 65536 + ((u & 1023) << 10) | u1 & 1023;
|
|||
|
}
|
|||
|
if (u <= 127) {
|
|||
|
if (outIdx >= endIdx)
|
|||
|
break;
|
|||
|
heap[outIdx++] = u;
|
|||
|
} else if (u <= 2047) {
|
|||
|
if (outIdx + 1 >= endIdx)
|
|||
|
break;
|
|||
|
heap[outIdx++] = 192 | u >> 6;
|
|||
|
heap[outIdx++] = 128 | u & 63;
|
|||
|
} else if (u <= 65535) {
|
|||
|
if (outIdx + 2 >= endIdx)
|
|||
|
break;
|
|||
|
heap[outIdx++] = 224 | u >> 12;
|
|||
|
heap[outIdx++] = 128 | u >> 6 & 63;
|
|||
|
heap[outIdx++] = 128 | u & 63;
|
|||
|
} else {
|
|||
|
if (outIdx + 3 >= endIdx)
|
|||
|
break;
|
|||
|
heap[outIdx++] = 240 | u >> 18;
|
|||
|
heap[outIdx++] = 128 | u >> 12 & 63;
|
|||
|
heap[outIdx++] = 128 | u >> 6 & 63;
|
|||
|
heap[outIdx++] = 128 | u & 63;
|
|||
|
}
|
|||
|
}
|
|||
|
heap[outIdx] = 0;
|
|||
|
return outIdx - startIdx;
|
|||
|
}
|
|||
|
function stringToUTF8(str, outPtr, maxBytesToWrite) {
|
|||
|
return stringToUTF8Array(str, HEAPU8, outPtr, maxBytesToWrite);
|
|||
|
}
|
|||
|
function lengthBytesUTF8(str) {
|
|||
|
var len = 0;
|
|||
|
for (var i = 0; i < str.length; ++i) {
|
|||
|
var u = str.charCodeAt(i);
|
|||
|
if (u >= 55296 && u <= 57343)
|
|||
|
u = 65536 + ((u & 1023) << 10) | str.charCodeAt(++i) & 1023;
|
|||
|
if (u <= 127)
|
|||
|
++len;
|
|||
|
else if (u <= 2047)
|
|||
|
len += 2;
|
|||
|
else if (u <= 65535)
|
|||
|
len += 3;
|
|||
|
else
|
|||
|
len += 4;
|
|||
|
}
|
|||
|
return len;
|
|||
|
}
|
|||
|
function allocateUTF8(str) {
|
|||
|
var size = lengthBytesUTF8(str) + 1;
|
|||
|
var ret = _malloc(size);
|
|||
|
if (ret)
|
|||
|
stringToUTF8Array(str, HEAP8, ret, size);
|
|||
|
return ret;
|
|||
|
}
|
|||
|
function writeArrayToMemory(array, buffer2) {
|
|||
|
HEAP8.set(array, buffer2);
|
|||
|
}
|
|||
|
function alignUp(x, multiple) {
|
|||
|
if (x % multiple > 0) {
|
|||
|
x += multiple - x % multiple;
|
|||
|
}
|
|||
|
return x;
|
|||
|
}
|
|||
|
var buffer, HEAP8, HEAPU8, HEAP16, HEAP32, HEAPF32, HEAPF64;
|
|||
|
function updateGlobalBufferAndViews(buf) {
|
|||
|
buffer = buf;
|
|||
|
Module["HEAP8"] = HEAP8 = new Int8Array(buf);
|
|||
|
Module["HEAP16"] = HEAP16 = new Int16Array(buf);
|
|||
|
Module["HEAP32"] = HEAP32 = new Int32Array(buf);
|
|||
|
Module["HEAPU8"] = HEAPU8 = new Uint8Array(buf);
|
|||
|
Module["HEAPU16"] = new Uint16Array(buf);
|
|||
|
Module["HEAPU32"] = new Uint32Array(buf);
|
|||
|
Module["HEAPF32"] = HEAPF32 = new Float32Array(buf);
|
|||
|
Module["HEAPF64"] = HEAPF64 = new Float64Array(buf);
|
|||
|
}
|
|||
|
Module["INITIAL_MEMORY"] || 16777216;
|
|||
|
var wasmTable;
|
|||
|
var __ATPRERUN__ = [];
|
|||
|
var __ATINIT__ = [];
|
|||
|
var __ATPOSTRUN__ = [];
|
|||
|
function preRun() {
|
|||
|
if (Module["preRun"]) {
|
|||
|
if (typeof Module["preRun"] == "function")
|
|||
|
Module["preRun"] = [Module["preRun"]];
|
|||
|
while (Module["preRun"].length) {
|
|||
|
addOnPreRun(Module["preRun"].shift());
|
|||
|
}
|
|||
|
}
|
|||
|
callRuntimeCallbacks(__ATPRERUN__);
|
|||
|
}
|
|||
|
function initRuntime() {
|
|||
|
if (!Module["noFSInit"] && !FS.init.initialized)
|
|||
|
FS.init();
|
|||
|
callRuntimeCallbacks(__ATINIT__);
|
|||
|
}
|
|||
|
function postRun() {
|
|||
|
if (Module["postRun"]) {
|
|||
|
if (typeof Module["postRun"] == "function")
|
|||
|
Module["postRun"] = [Module["postRun"]];
|
|||
|
while (Module["postRun"].length) {
|
|||
|
addOnPostRun(Module["postRun"].shift());
|
|||
|
}
|
|||
|
}
|
|||
|
callRuntimeCallbacks(__ATPOSTRUN__);
|
|||
|
}
|
|||
|
function addOnPreRun(cb) {
|
|||
|
__ATPRERUN__.unshift(cb);
|
|||
|
}
|
|||
|
function addOnInit(cb) {
|
|||
|
__ATINIT__.unshift(cb);
|
|||
|
}
|
|||
|
function addOnPostRun(cb) {
|
|||
|
__ATPOSTRUN__.unshift(cb);
|
|||
|
}
|
|||
|
var runDependencies = 0;
|
|||
|
var dependenciesFulfilled = null;
|
|||
|
function addRunDependency(id) {
|
|||
|
runDependencies++;
|
|||
|
if (Module["monitorRunDependencies"]) {
|
|||
|
Module["monitorRunDependencies"](runDependencies);
|
|||
|
}
|
|||
|
}
|
|||
|
function removeRunDependency(id) {
|
|||
|
runDependencies--;
|
|||
|
if (Module["monitorRunDependencies"]) {
|
|||
|
Module["monitorRunDependencies"](runDependencies);
|
|||
|
}
|
|||
|
if (runDependencies == 0) {
|
|||
|
if (dependenciesFulfilled) {
|
|||
|
var callback = dependenciesFulfilled;
|
|||
|
dependenciesFulfilled = null;
|
|||
|
callback();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
Module["preloadedImages"] = {};
|
|||
|
Module["preloadedAudios"] = {};
|
|||
|
function abort(what) {
|
|||
|
if (Module["onAbort"]) {
|
|||
|
Module["onAbort"](what);
|
|||
|
}
|
|||
|
what += "";
|
|||
|
err(what);
|
|||
|
ABORT = true;
|
|||
|
what = "abort(" + what + "). Build with -s ASSERTIONS=1 for more info.";
|
|||
|
var e = new WebAssembly.RuntimeError(what);
|
|||
|
readyPromiseReject(e);
|
|||
|
throw e;
|
|||
|
}
|
|||
|
var dataURIPrefix = "data:application/octet-stream;base64,";
|
|||
|
function isDataURI(filename) {
|
|||
|
return filename.startsWith(dataURIPrefix);
|
|||
|
}
|
|||
|
var wasmBinaryFile = "data:application/octet-stream;base64,AGFzbQEAAAABlAInYAF/AX9gA39/fwF/YAF/AGACf38Bf2ACf38AYAV/f39/fwF/YAR/f39/AX9gA39/fwBgBH9+f38Bf2AAAX9gBX9/f35/AX5gA39+fwF/YAF/AX5gAn9+AX9gBH9/fn8BfmADf35/AX5gA39/fgF/YAR/f35/AX9gBn9/f39/fwF/YAR/f39/AGADf39+AX5gAn5/AX9gA398fwBgBH9/f38BfmADf39/AX5gBn98f39/fwF/YAV/f35/fwF/YAV/fn9/fwF/YAV/f39/fwBgAn9+AGACf38BfmACf3wAYAh/fn5/f39+fwF/YAV/f39+fwBgAABgBX5+f35/AX5gBX9/f39/AX5gAnx/AXxgAn9+AX4CeRQBYQFhAAIBYQFiAAABYQFjAAMBYQFkAAYBYQFlAAEBYQFmAAABYQFnAAYBYQFoAAABYQFpAAMBYQFqAAMBYQFrAAMBYQFsAAEBYQFtAAABYQFuAAUBYQFvAAEBYQFwAAMBYQFxAAEBYQFyAAABYQFzAAMBYQF0AAADggKAAgcCAgQAAQECAgANBA4EBwICAhwLEw0AFA0dAAAMDAIHHgwQAgIDAwICAQAIAAcIFBUEBgAADAAECAgDAQYAAgIBBgAfFwEBAwITAiAPBgIFEQMFAxgBCAIBAAAHBQEYABoSAQIABwQDIREIAyIGAAEBAwMAIwUbASQHAQsVAQMABQMEAA0bFw0BBAALCwMDDAwAAwAHJQMBAAgaAQECBQMBAgMDAAcHBwICAgImEQsICAsECQoJAgAAAAAAAAkFAAUFBQEGAwYGBgUSBgYBARIBAAIJBgABDgABAQ8ACQEEGQkJCQAAAAMECgoBAQIQAAAAAgEDAwAEAQoFAA4ACQAEBQFwAR8fBQcBAYACgIACBgkBfwFB0KDBAgsHvgI8AXUCAAF2AIABAXcAkwIBeADjAQF5APEBAXoA0QEBQQDQAQFCAM8BAUMAzgEBRADMAQFFAMsBAUYAyQEBRwCSAgFIAJECAUkAjwIBSgCKAgFLAOkBAUwA4gEBTQDhAQFOADwBTwD8AQFQAPkBAVEA+AEBUgDwAQFTAPoBAVQA4AEBVQAVAVYAGAFXAMcBAVgAzQEBWQDfAQFaAN4BAV8A3QEBJADkAQJhYQDcAQJiYQDbAQJjYQDaAQJkYQDZAQJlYQDYAQJmYQDXAQJnYQDqAQJoYQCcAQJpYQDWAQJqYQDVAQJrYQDUAQJsYQAvAm1hABsCbmEAygECb2EASAJwYQEAAnFhAGcCcmEA0wECc2EA6AECdGEA0gECdWEA9wECdmEA9gECd2EA9QECeGEA5wECeWEA5gECemEA5QEJQQEAQQELHsgBkAKNAo4CjAKLArcBiQKIAocChgKFAoQCgwKCAoECgAL/Af4B/QH7AVv0AfMB8gHvAe4B7QHsAesBCu+QCYACQAEBfyMAQRBrIgMgADYCDCADIAE2AgggAyACNgIEIAMoAgwEQCADKAIMIAMoAgg2AgAgAygCDCADKAIENgIECwvMDAEHfwJAIABFDQAgAEEIayIDIABBBGsoAgAiAUF4cSIAaiEFAkAgAUEBcQ0AIAFBA3FFDQEgAyADKAIAIgFrIgNB9JsBKAIASQ0BIAAgAWohACADQfibASgCAEcEQCABQf8BTQRAIAMoAggiAiABQQN2IgRBA3RBjJwBakYaIAIgAygCDCIBRgRAQeSbAUHkmwEoAgBBfiAEd3E2AgAMAwsgAiABNgIMIAEgAjYCCAwCCyADKAIYIQYCQCADIAMoAgwiAUcEQCADKAIIIgIgATYCDCABIAI2AggMAQsCQCADQRRqIgIoAgAiBA0AIANBEGoiAigCACIEDQBBACEBDAELA0AgAiEHIAQiAUEUaiICKAIAIgQNACABQRBqIQIgASgCECIEDQALIAdBADYCAAsgBkUNAQJAIAMgAygCHCICQQJ0QZSeAWoiBCgCAEYEQCAEIAE2AgAgAQ0BQeibAUHomwEoAgBBfiACd3E2AgAMAwsgBkEQQRQgBigCECADRhtqIAE2AgAgAUUNAgsgASAGNgIYIAMoAhAiAgRAIAEgAjYCECACIAE2AhgLIAMoAhQiAkUNASABIAI2AhQgAiABNgIYDAELIAUoAgQiAUEDcUEDRw0AQeybASAANgIAIAUgAUF+cTYCBCADIABBAXI2AgQgACADaiAANgIADwsgAyAFTw0AIAUoAgQiAUEBcUUNAAJAIAFBAnFFBEAgBUH8mwEoAgBGBEBB/JsBIAM2AgBB8JsBQfCbASgCACAAaiIANgIAIAMgAEEBcjYCBCADQfibASgCAEcNA0HsmwFBADYCAEH4mwFBADYCAA8LIAVB+JsBKAIARgRAQfibASADNgIAQeybAUHsmwEoAgAgAGoiADYCACADIABBAXI2AgQgACADaiAANgIADwsgAUF4cSAAaiEAAkAgAUH/AU0EQCAFKAIIIgIgAUEDdiIEQQN0QYycAWpGGiACIAUoAgwiAUYEQEHkmwFB5JsBKAIAQX4gBHdxNgIADAILIAIgATYCDCABIAI2AggMAQsgBSgCGCEGAkAgBSAFKAIMIgFHBEAgBSgCCCICQfSbASgCAEkaIAIgATYCDCABIAI2AggMAQsCQCAFQRRqIgIoAgAiBA0AIAVBEGoiAigCACIEDQBBACEBDAELA0AgAiEHIAQiAUEUaiICKAIAIgQNACABQRBqIQIgASgCECIEDQALIAdBADYCAAsgBkUNAAJAIAUgBSgCHCICQQJ0QZSeAWoiBCgCAEYEQCAEIAE2AgAgAQ0BQeibAUHomwEoAgBBfiACd3E2AgAMAgsgBkEQQRQgBigCECAFRhtqIAE2AgAgAUUNAQsgASAGNgIYIAUoAhAiAgRAIAEgAjYCECACIAE2AhgLIAUoAhQiAkUNACABIAI2AhQgAiABNgIYCyADIABBAXI2AgQgACADaiAANgIAIANB+JsBKAIARw0BQeybASAANgIADwsgBSABQX5xNgIEIAMgAEEBcjYCBCAAIANqIAA2AgALIABB/wFNBEAgAEEDdiIBQQN0QYycAWohAAJ/QeSbASgCACICQQEgAXQiAXFFBEBB5JsBIAEgAnI2AgAgAAwBCyAAKAIICyECIAAgAzYCCCACIAM2AgwgAyAANgIMIAMgAjYCCA8LQR8hAiADQgA3AhAgAEH///8HTQRAIABBCHYiASABQYD+P2pBEHZBCHEiAXQiAiACQYDgH2pBEHZBBHEiAnQiBCAEQYCAD2pBEHZBAnEiBHRBD3YgASACciAEcmsiAUEBdCAAIAFBFWp2QQFxckEcaiECCyADIAI2AhwgAkECdEGUngFqIQECQAJAAkBB6JsBKAIAIgRBASACdCIHcUUEQEHomwEgBCAHcjYCACABIAM2AgAgAyABNgIYDAELIABBAEEZIAJBAXZrIAJBH0YbdCECIAEoAgAhAQNAIAEiBCgCBEF4cSAARg0CIAJBHXYhASACQQF0IQIgBCABQQRxaiIHQRBqKAIAIgENAAsgByADNgIQIAMgBDYCGAsgAyADNgIMIAMgAzYCCAwBCyAEKAIIIgAgAzYCDCAEIAM2AgggA0EANgIYIAMgBDYCDCADIAA2AggLQYScAUGEnAEoAgBBAWsiAEF/IAAbNgIACwtCAQF/IwBBEGsiASQAIAEgADYCDCABKAIMBEAgASgCDC0AAUEBcQRAIAEoAgwoAgQQFQsgASgCDBAVCyABQRBqJAALQwEBfyMAQRBrIgIkACACIAA2AgwgAiABNgIIIAIoAgwCfyMAQRBrIgAgAigCCDYCDCAAKAIMQQxqCxBFIAJBEGokAAuiLgEMfyMAQRBrIgwkAAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAQfQBTQRAQeSbASgCACIFQRAgAEELakF4cSAAQQtJGyIIQQN2IgJ2IgFBA3EEQCABQX9zQQFxIAJqIgNBA3QiAUGUnAFqKAIAIgRBCGoh
|
|||
|
if (!isDataURI(wasmBinaryFile)) {
|
|||
|
wasmBinaryFile = locateFile(wasmBinaryFile);
|
|||
|
}
|
|||
|
function getBinary(file) {
|
|||
|
try {
|
|||
|
if (file == wasmBinaryFile && wasmBinary) {
|
|||
|
return new Uint8Array(wasmBinary);
|
|||
|
}
|
|||
|
var binary = tryParseAsDataURI(file);
|
|||
|
if (binary) {
|
|||
|
return binary;
|
|||
|
}
|
|||
|
if (readBinary) {
|
|||
|
return readBinary(file);
|
|||
|
} else {
|
|||
|
throw "sync fetching of the wasm failed: you can preload it to Module['wasmBinary'] manually, or emcc.py will do that for you when generating HTML (but not JS)";
|
|||
|
}
|
|||
|
} catch (err2) {
|
|||
|
abort(err2);
|
|||
|
}
|
|||
|
}
|
|||
|
function instantiateSync(file, info) {
|
|||
|
var instance;
|
|||
|
var module2;
|
|||
|
var binary;
|
|||
|
try {
|
|||
|
binary = getBinary(file);
|
|||
|
module2 = new WebAssembly.Module(binary);
|
|||
|
instance = new WebAssembly.Instance(module2, info);
|
|||
|
} catch (e) {
|
|||
|
var str = e.toString();
|
|||
|
err("failed to compile wasm module: " + str);
|
|||
|
if (str.includes("imported Memory") || str.includes("memory import")) {
|
|||
|
err("Memory size incompatibility issues may be due to changing INITIAL_MEMORY at runtime to something too large. Use ALLOW_MEMORY_GROWTH to allow any size memory (and also make sure not to set INITIAL_MEMORY at runtime to something smaller than it was at compile time).");
|
|||
|
}
|
|||
|
throw e;
|
|||
|
}
|
|||
|
return [instance, module2];
|
|||
|
}
|
|||
|
function createWasm() {
|
|||
|
var info = {a: asmLibraryArg};
|
|||
|
function receiveInstance(instance, module2) {
|
|||
|
var exports3 = instance.exports;
|
|||
|
Module["asm"] = exports3;
|
|||
|
wasmMemory = Module["asm"]["u"];
|
|||
|
updateGlobalBufferAndViews(wasmMemory.buffer);
|
|||
|
wasmTable = Module["asm"]["pa"];
|
|||
|
addOnInit(Module["asm"]["v"]);
|
|||
|
removeRunDependency();
|
|||
|
}
|
|||
|
addRunDependency();
|
|||
|
if (Module["instantiateWasm"]) {
|
|||
|
try {
|
|||
|
var exports2 = Module["instantiateWasm"](info, receiveInstance);
|
|||
|
return exports2;
|
|||
|
} catch (e) {
|
|||
|
err("Module.instantiateWasm callback failed with error: " + e);
|
|||
|
return false;
|
|||
|
}
|
|||
|
}
|
|||
|
var result = instantiateSync(wasmBinaryFile, info);
|
|||
|
receiveInstance(result[0]);
|
|||
|
return Module["asm"];
|
|||
|
}
|
|||
|
var tempDouble;
|
|||
|
var tempI64;
|
|||
|
function callRuntimeCallbacks(callbacks) {
|
|||
|
while (callbacks.length > 0) {
|
|||
|
var callback = callbacks.shift();
|
|||
|
if (typeof callback == "function") {
|
|||
|
callback(Module);
|
|||
|
continue;
|
|||
|
}
|
|||
|
var func = callback.func;
|
|||
|
if (typeof func === "number") {
|
|||
|
if (callback.arg === void 0) {
|
|||
|
wasmTable.get(func)();
|
|||
|
} else {
|
|||
|
wasmTable.get(func)(callback.arg);
|
|||
|
}
|
|||
|
} else {
|
|||
|
func(callback.arg === void 0 ? null : callback.arg);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
function _gmtime_r(time, tmPtr) {
|
|||
|
var date = new Date(HEAP32[time >> 2] * 1e3);
|
|||
|
HEAP32[tmPtr >> 2] = date.getUTCSeconds();
|
|||
|
HEAP32[tmPtr + 4 >> 2] = date.getUTCMinutes();
|
|||
|
HEAP32[tmPtr + 8 >> 2] = date.getUTCHours();
|
|||
|
HEAP32[tmPtr + 12 >> 2] = date.getUTCDate();
|
|||
|
HEAP32[tmPtr + 16 >> 2] = date.getUTCMonth();
|
|||
|
HEAP32[tmPtr + 20 >> 2] = date.getUTCFullYear() - 1900;
|
|||
|
HEAP32[tmPtr + 24 >> 2] = date.getUTCDay();
|
|||
|
HEAP32[tmPtr + 36 >> 2] = 0;
|
|||
|
HEAP32[tmPtr + 32 >> 2] = 0;
|
|||
|
var start = Date.UTC(date.getUTCFullYear(), 0, 1, 0, 0, 0, 0);
|
|||
|
var yday = (date.getTime() - start) / (1e3 * 60 * 60 * 24) | 0;
|
|||
|
HEAP32[tmPtr + 28 >> 2] = yday;
|
|||
|
if (!_gmtime_r.GMTString)
|
|||
|
_gmtime_r.GMTString = allocateUTF8("GMT");
|
|||
|
HEAP32[tmPtr + 40 >> 2] = _gmtime_r.GMTString;
|
|||
|
return tmPtr;
|
|||
|
}
|
|||
|
function ___gmtime_r(a0, a1) {
|
|||
|
return _gmtime_r(a0, a1);
|
|||
|
}
|
|||
|
var PATH = {
|
|||
|
splitPath: function(filename) {
|
|||
|
var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
|
|||
|
return splitPathRe.exec(filename).slice(1);
|
|||
|
},
|
|||
|
normalizeArray: function(parts, allowAboveRoot) {
|
|||
|
var up = 0;
|
|||
|
for (var i = parts.length - 1; i >= 0; i--) {
|
|||
|
var last = parts[i];
|
|||
|
if (last === ".") {
|
|||
|
parts.splice(i, 1);
|
|||
|
} else if (last === "..") {
|
|||
|
parts.splice(i, 1);
|
|||
|
up++;
|
|||
|
} else if (up) {
|
|||
|
parts.splice(i, 1);
|
|||
|
up--;
|
|||
|
}
|
|||
|
}
|
|||
|
if (allowAboveRoot) {
|
|||
|
for (; up; up--) {
|
|||
|
parts.unshift("..");
|
|||
|
}
|
|||
|
}
|
|||
|
return parts;
|
|||
|
},
|
|||
|
normalize: function(path) {
|
|||
|
var isAbsolute = path.charAt(0) === "/", trailingSlash = path.substr(-1) === "/";
|
|||
|
path = PATH.normalizeArray(path.split("/").filter(function(p) {
|
|||
|
return !!p;
|
|||
|
}), !isAbsolute).join("/");
|
|||
|
if (!path && !isAbsolute) {
|
|||
|
path = ".";
|
|||
|
}
|
|||
|
if (path && trailingSlash) {
|
|||
|
path += "/";
|
|||
|
}
|
|||
|
return (isAbsolute ? "/" : "") + path;
|
|||
|
},
|
|||
|
dirname: function(path) {
|
|||
|
var result = PATH.splitPath(path), root = result[0], dir = result[1];
|
|||
|
if (!root && !dir) {
|
|||
|
return ".";
|
|||
|
}
|
|||
|
if (dir) {
|
|||
|
dir = dir.substr(0, dir.length - 1);
|
|||
|
}
|
|||
|
return root + dir;
|
|||
|
},
|
|||
|
basename: function(path) {
|
|||
|
if (path === "/")
|
|||
|
return "/";
|
|||
|
path = PATH.normalize(path);
|
|||
|
path = path.replace(/\/$/, "");
|
|||
|
var lastSlash = path.lastIndexOf("/");
|
|||
|
if (lastSlash === -1)
|
|||
|
return path;
|
|||
|
return path.substr(lastSlash + 1);
|
|||
|
},
|
|||
|
extname: function(path) {
|
|||
|
return PATH.splitPath(path)[3];
|
|||
|
},
|
|||
|
join: function() {
|
|||
|
var paths = Array.prototype.slice.call(arguments, 0);
|
|||
|
return PATH.normalize(paths.join("/"));
|
|||
|
},
|
|||
|
join2: function(l, r) {
|
|||
|
return PATH.normalize(l + "/" + r);
|
|||
|
}
|
|||
|
};
|
|||
|
function getRandomDevice() {
|
|||
|
{
|
|||
|
try {
|
|||
|
var crypto_module = require("crypto");
|
|||
|
return function() {
|
|||
|
return crypto_module["randomBytes"](1)[0];
|
|||
|
};
|
|||
|
} catch (e) {
|
|||
|
}
|
|||
|
}
|
|||
|
return function() {
|
|||
|
abort("randomDevice");
|
|||
|
};
|
|||
|
}
|
|||
|
var PATH_FS = {
|
|||
|
resolve: function() {
|
|||
|
var resolvedPath = "", resolvedAbsolute = false;
|
|||
|
for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
|
|||
|
var path = i >= 0 ? arguments[i] : FS.cwd();
|
|||
|
if (typeof path !== "string") {
|
|||
|
throw new TypeError("Arguments to path.resolve must be strings");
|
|||
|
} else if (!path) {
|
|||
|
return "";
|
|||
|
}
|
|||
|
resolvedPath = path + "/" + resolvedPath;
|
|||
|
resolvedAbsolute = path.charAt(0) === "/";
|
|||
|
}
|
|||
|
resolvedPath = PATH.normalizeArray(resolvedPath.split("/").filter(function(p) {
|
|||
|
return !!p;
|
|||
|
}), !resolvedAbsolute).join("/");
|
|||
|
return (resolvedAbsolute ? "/" : "") + resolvedPath || ".";
|
|||
|
},
|
|||
|
relative: function(from, to) {
|
|||
|
from = PATH_FS.resolve(from).substr(1);
|
|||
|
to = PATH_FS.resolve(to).substr(1);
|
|||
|
function trim(arr) {
|
|||
|
var start = 0;
|
|||
|
for (; start < arr.length; start++) {
|
|||
|
if (arr[start] !== "")
|
|||
|
break;
|
|||
|
}
|
|||
|
var end = arr.length - 1;
|
|||
|
for (; end >= 0; end--) {
|
|||
|
if (arr[end] !== "")
|
|||
|
break;
|
|||
|
}
|
|||
|
if (start > end)
|
|||
|
return [];
|
|||
|
return arr.slice(start, end - start + 1);
|
|||
|
}
|
|||
|
var fromParts = trim(from.split("/"));
|
|||
|
var toParts = trim(to.split("/"));
|
|||
|
var length = Math.min(fromParts.length, toParts.length);
|
|||
|
var samePartsLength = length;
|
|||
|
for (var i = 0; i < length; i++) {
|
|||
|
if (fromParts[i] !== toParts[i]) {
|
|||
|
samePartsLength = i;
|
|||
|
break;
|
|||
|
}
|
|||
|
}
|
|||
|
var outputParts = [];
|
|||
|
for (var i = samePartsLength; i < fromParts.length; i++) {
|
|||
|
outputParts.push("..");
|
|||
|
}
|
|||
|
outputParts = outputParts.concat(toParts.slice(samePartsLength));
|
|||
|
return outputParts.join("/");
|
|||
|
}
|
|||
|
};
|
|||
|
var TTY = {
|
|||
|
ttys: [],
|
|||
|
init: function() {
|
|||
|
},
|
|||
|
shutdown: function() {
|
|||
|
},
|
|||
|
register: function(dev, ops) {
|
|||
|
TTY.ttys[dev] = {input: [], output: [], ops};
|
|||
|
FS.registerDevice(dev, TTY.stream_ops);
|
|||
|
},
|
|||
|
stream_ops: {
|
|||
|
open: function(stream) {
|
|||
|
var tty = TTY.ttys[stream.node.rdev];
|
|||
|
if (!tty) {
|
|||
|
throw new FS.ErrnoError(43);
|
|||
|
}
|
|||
|
stream.tty = tty;
|
|||
|
stream.seekable = false;
|
|||
|
},
|
|||
|
close: function(stream) {
|
|||
|
stream.tty.ops.flush(stream.tty);
|
|||
|
},
|
|||
|
flush: function(stream) {
|
|||
|
stream.tty.ops.flush(stream.tty);
|
|||
|
},
|
|||
|
read: function(stream, buffer2, offset, length, pos) {
|
|||
|
if (!stream.tty || !stream.tty.ops.get_char) {
|
|||
|
throw new FS.ErrnoError(60);
|
|||
|
}
|
|||
|
var bytesRead = 0;
|
|||
|
for (var i = 0; i < length; i++) {
|
|||
|
var result;
|
|||
|
try {
|
|||
|
result = stream.tty.ops.get_char(stream.tty);
|
|||
|
} catch (e) {
|
|||
|
throw new FS.ErrnoError(29);
|
|||
|
}
|
|||
|
if (result === void 0 && bytesRead === 0) {
|
|||
|
throw new FS.ErrnoError(6);
|
|||
|
}
|
|||
|
if (result === null || result === void 0)
|
|||
|
break;
|
|||
|
bytesRead++;
|
|||
|
buffer2[offset + i] = result;
|
|||
|
}
|
|||
|
if (bytesRead) {
|
|||
|
stream.node.timestamp = Date.now();
|
|||
|
}
|
|||
|
return bytesRead;
|
|||
|
},
|
|||
|
write: function(stream, buffer2, offset, length, pos) {
|
|||
|
if (!stream.tty || !stream.tty.ops.put_char) {
|
|||
|
throw new FS.ErrnoError(60);
|
|||
|
}
|
|||
|
try {
|
|||
|
for (var i = 0; i < length; i++) {
|
|||
|
stream.tty.ops.put_char(stream.tty, buffer2[offset + i]);
|
|||
|
}
|
|||
|
} catch (e) {
|
|||
|
throw new FS.ErrnoError(29);
|
|||
|
}
|
|||
|
if (length) {
|
|||
|
stream.node.timestamp = Date.now();
|
|||
|
}
|
|||
|
return i;
|
|||
|
}
|
|||
|
},
|
|||
|
default_tty_ops: {
|
|||
|
get_char: function(tty) {
|
|||
|
if (!tty.input.length) {
|
|||
|
var result = null;
|
|||
|
{
|
|||
|
var BUFSIZE = 256;
|
|||
|
var buf = Buffer.alloc ? Buffer.alloc(BUFSIZE) : new Buffer(BUFSIZE);
|
|||
|
var bytesRead = 0;
|
|||
|
try {
|
|||
|
bytesRead = nodeFS.readSync(process.stdin.fd, buf, 0, BUFSIZE, null);
|
|||
|
} catch (e) {
|
|||
|
if (e.toString().includes("EOF"))
|
|||
|
bytesRead = 0;
|
|||
|
else
|
|||
|
throw e;
|
|||
|
}
|
|||
|
if (bytesRead > 0) {
|
|||
|
result = buf.slice(0, bytesRead).toString("utf-8");
|
|||
|
} else {
|
|||
|
result = null;
|
|||
|
}
|
|||
|
}
|
|||
|
if (!result) {
|
|||
|
return null;
|
|||
|
}
|
|||
|
tty.input = intArrayFromString(result, true);
|
|||
|
}
|
|||
|
return tty.input.shift();
|
|||
|
},
|
|||
|
put_char: function(tty, val) {
|
|||
|
if (val === null || val === 10) {
|
|||
|
out(UTF8ArrayToString(tty.output, 0));
|
|||
|
tty.output = [];
|
|||
|
} else {
|
|||
|
if (val != 0)
|
|||
|
tty.output.push(val);
|
|||
|
}
|
|||
|
},
|
|||
|
flush: function(tty) {
|
|||
|
if (tty.output && tty.output.length > 0) {
|
|||
|
out(UTF8ArrayToString(tty.output, 0));
|
|||
|
tty.output = [];
|
|||
|
}
|
|||
|
}
|
|||
|
},
|
|||
|
default_tty1_ops: {
|
|||
|
put_char: function(tty, val) {
|
|||
|
if (val === null || val === 10) {
|
|||
|
err(UTF8ArrayToString(tty.output, 0));
|
|||
|
tty.output = [];
|
|||
|
} else {
|
|||
|
if (val != 0)
|
|||
|
tty.output.push(val);
|
|||
|
}
|
|||
|
},
|
|||
|
flush: function(tty) {
|
|||
|
if (tty.output && tty.output.length > 0) {
|
|||
|
err(UTF8ArrayToString(tty.output, 0));
|
|||
|
tty.output = [];
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
};
|
|||
|
function mmapAlloc(size) {
|
|||
|
var alignedSize = alignMemory(size, 65536);
|
|||
|
var ptr = _malloc(alignedSize);
|
|||
|
while (size < alignedSize)
|
|||
|
HEAP8[ptr + size++] = 0;
|
|||
|
return ptr;
|
|||
|
}
|
|||
|
var MEMFS = {
|
|||
|
ops_table: null,
|
|||
|
mount: function(mount) {
|
|||
|
return MEMFS.createNode(null, "/", 16384 | 511, 0);
|
|||
|
},
|
|||
|
createNode: function(parent, name, mode, dev) {
|
|||
|
if (FS.isBlkdev(mode) || FS.isFIFO(mode)) {
|
|||
|
throw new FS.ErrnoError(63);
|
|||
|
}
|
|||
|
if (!MEMFS.ops_table) {
|
|||
|
MEMFS.ops_table = {
|
|||
|
dir: {
|
|||
|
node: {
|
|||
|
getattr: MEMFS.node_ops.getattr,
|
|||
|
setattr: MEMFS.node_ops.setattr,
|
|||
|
lookup: MEMFS.node_ops.lookup,
|
|||
|
mknod: MEMFS.node_ops.mknod,
|
|||
|
rename: MEMFS.node_ops.rename,
|
|||
|
unlink: MEMFS.node_ops.unlink,
|
|||
|
rmdir: MEMFS.node_ops.rmdir,
|
|||
|
readdir: MEMFS.node_ops.readdir,
|
|||
|
symlink: MEMFS.node_ops.symlink
|
|||
|
},
|
|||
|
stream: {llseek: MEMFS.stream_ops.llseek}
|
|||
|
},
|
|||
|
file: {
|
|||
|
node: {
|
|||
|
getattr: MEMFS.node_ops.getattr,
|
|||
|
setattr: MEMFS.node_ops.setattr
|
|||
|
},
|
|||
|
stream: {
|
|||
|
llseek: MEMFS.stream_ops.llseek,
|
|||
|
read: MEMFS.stream_ops.read,
|
|||
|
write: MEMFS.stream_ops.write,
|
|||
|
allocate: MEMFS.stream_ops.allocate,
|
|||
|
mmap: MEMFS.stream_ops.mmap,
|
|||
|
msync: MEMFS.stream_ops.msync
|
|||
|
}
|
|||
|
},
|
|||
|
link: {
|
|||
|
node: {
|
|||
|
getattr: MEMFS.node_ops.getattr,
|
|||
|
setattr: MEMFS.node_ops.setattr,
|
|||
|
readlink: MEMFS.node_ops.readlink
|
|||
|
},
|
|||
|
stream: {}
|
|||
|
},
|
|||
|
chrdev: {
|
|||
|
node: {
|
|||
|
getattr: MEMFS.node_ops.getattr,
|
|||
|
setattr: MEMFS.node_ops.setattr
|
|||
|
},
|
|||
|
stream: FS.chrdev_stream_ops
|
|||
|
}
|
|||
|
};
|
|||
|
}
|
|||
|
var node = FS.createNode(parent, name, mode, dev);
|
|||
|
if (FS.isDir(node.mode)) {
|
|||
|
node.node_ops = MEMFS.ops_table.dir.node;
|
|||
|
node.stream_ops = MEMFS.ops_table.dir.stream;
|
|||
|
node.contents = {};
|
|||
|
} else if (FS.isFile(node.mode)) {
|
|||
|
node.node_ops = MEMFS.ops_table.file.node;
|
|||
|
node.stream_ops = MEMFS.ops_table.file.stream;
|
|||
|
node.usedBytes = 0;
|
|||
|
node.contents = null;
|
|||
|
} else if (FS.isLink(node.mode)) {
|
|||
|
node.node_ops = MEMFS.ops_table.link.node;
|
|||
|
node.stream_ops = MEMFS.ops_table.link.stream;
|
|||
|
} else if (FS.isChrdev(node.mode)) {
|
|||
|
node.node_ops = MEMFS.ops_table.chrdev.node;
|
|||
|
node.stream_ops = MEMFS.ops_table.chrdev.stream;
|
|||
|
}
|
|||
|
node.timestamp = Date.now();
|
|||
|
if (parent) {
|
|||
|
parent.contents[name] = node;
|
|||
|
parent.timestamp = node.timestamp;
|
|||
|
}
|
|||
|
return node;
|
|||
|
},
|
|||
|
getFileDataAsTypedArray: function(node) {
|
|||
|
if (!node.contents)
|
|||
|
return new Uint8Array(0);
|
|||
|
if (node.contents.subarray)
|
|||
|
return node.contents.subarray(0, node.usedBytes);
|
|||
|
return new Uint8Array(node.contents);
|
|||
|
},
|
|||
|
expandFileStorage: function(node, newCapacity) {
|
|||
|
var prevCapacity = node.contents ? node.contents.length : 0;
|
|||
|
if (prevCapacity >= newCapacity)
|
|||
|
return;
|
|||
|
var CAPACITY_DOUBLING_MAX = 1024 * 1024;
|
|||
|
newCapacity = Math.max(newCapacity, prevCapacity * (prevCapacity < CAPACITY_DOUBLING_MAX ? 2 : 1.125) >>> 0);
|
|||
|
if (prevCapacity != 0)
|
|||
|
newCapacity = Math.max(newCapacity, 256);
|
|||
|
var oldContents = node.contents;
|
|||
|
node.contents = new Uint8Array(newCapacity);
|
|||
|
if (node.usedBytes > 0)
|
|||
|
node.contents.set(oldContents.subarray(0, node.usedBytes), 0);
|
|||
|
},
|
|||
|
resizeFileStorage: function(node, newSize) {
|
|||
|
if (node.usedBytes == newSize)
|
|||
|
return;
|
|||
|
if (newSize == 0) {
|
|||
|
node.contents = null;
|
|||
|
node.usedBytes = 0;
|
|||
|
} else {
|
|||
|
var oldContents = node.contents;
|
|||
|
node.contents = new Uint8Array(newSize);
|
|||
|
if (oldContents) {
|
|||
|
node.contents.set(oldContents.subarray(0, Math.min(newSize, node.usedBytes)));
|
|||
|
}
|
|||
|
node.usedBytes = newSize;
|
|||
|
}
|
|||
|
},
|
|||
|
node_ops: {
|
|||
|
getattr: function(node) {
|
|||
|
var attr = {};
|
|||
|
attr.dev = FS.isChrdev(node.mode) ? node.id : 1;
|
|||
|
attr.ino = node.id;
|
|||
|
attr.mode = node.mode;
|
|||
|
attr.nlink = 1;
|
|||
|
attr.uid = 0;
|
|||
|
attr.gid = 0;
|
|||
|
attr.rdev = node.rdev;
|
|||
|
if (FS.isDir(node.mode)) {
|
|||
|
attr.size = 4096;
|
|||
|
} else if (FS.isFile(node.mode)) {
|
|||
|
attr.size = node.usedBytes;
|
|||
|
} else if (FS.isLink(node.mode)) {
|
|||
|
attr.size = node.link.length;
|
|||
|
} else {
|
|||
|
attr.size = 0;
|
|||
|
}
|
|||
|
attr.atime = new Date(node.timestamp);
|
|||
|
attr.mtime = new Date(node.timestamp);
|
|||
|
attr.ctime = new Date(node.timestamp);
|
|||
|
attr.blksize = 4096;
|
|||
|
attr.blocks = Math.ceil(attr.size / attr.blksize);
|
|||
|
return attr;
|
|||
|
},
|
|||
|
setattr: function(node, attr) {
|
|||
|
if (attr.mode !== void 0) {
|
|||
|
node.mode = attr.mode;
|
|||
|
}
|
|||
|
if (attr.timestamp !== void 0) {
|
|||
|
node.timestamp = attr.timestamp;
|
|||
|
}
|
|||
|
if (attr.size !== void 0) {
|
|||
|
MEMFS.resizeFileStorage(node, attr.size);
|
|||
|
}
|
|||
|
},
|
|||
|
lookup: function(parent, name) {
|
|||
|
throw FS.genericErrors[44];
|
|||
|
},
|
|||
|
mknod: function(parent, name, mode, dev) {
|
|||
|
return MEMFS.createNode(parent, name, mode, dev);
|
|||
|
},
|
|||
|
rename: function(old_node, new_dir, new_name) {
|
|||
|
if (FS.isDir(old_node.mode)) {
|
|||
|
var new_node;
|
|||
|
try {
|
|||
|
new_node = FS.lookupNode(new_dir, new_name);
|
|||
|
} catch (e) {
|
|||
|
}
|
|||
|
if (new_node) {
|
|||
|
for (var i in new_node.contents) {
|
|||
|
throw new FS.ErrnoError(55);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
delete old_node.parent.contents[old_node.name];
|
|||
|
old_node.parent.timestamp = Date.now();
|
|||
|
old_node.name = new_name;
|
|||
|
new_dir.contents[new_name] = old_node;
|
|||
|
new_dir.timestamp = old_node.parent.timestamp;
|
|||
|
old_node.parent = new_dir;
|
|||
|
},
|
|||
|
unlink: function(parent, name) {
|
|||
|
delete parent.contents[name];
|
|||
|
parent.timestamp = Date.now();
|
|||
|
},
|
|||
|
rmdir: function(parent, name) {
|
|||
|
var node = FS.lookupNode(parent, name);
|
|||
|
for (var i in node.contents) {
|
|||
|
throw new FS.ErrnoError(55);
|
|||
|
}
|
|||
|
delete parent.contents[name];
|
|||
|
parent.timestamp = Date.now();
|
|||
|
},
|
|||
|
readdir: function(node) {
|
|||
|
var entries = [".", ".."];
|
|||
|
for (var key2 in node.contents) {
|
|||
|
if (!node.contents.hasOwnProperty(key2)) {
|
|||
|
continue;
|
|||
|
}
|
|||
|
entries.push(key2);
|
|||
|
}
|
|||
|
return entries;
|
|||
|
},
|
|||
|
symlink: function(parent, newname, oldpath) {
|
|||
|
var node = MEMFS.createNode(parent, newname, 511 | 40960, 0);
|
|||
|
node.link = oldpath;
|
|||
|
return node;
|
|||
|
},
|
|||
|
readlink: function(node) {
|
|||
|
if (!FS.isLink(node.mode)) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
return node.link;
|
|||
|
}
|
|||
|
},
|
|||
|
stream_ops: {
|
|||
|
read: function(stream, buffer2, offset, length, position) {
|
|||
|
var contents = stream.node.contents;
|
|||
|
if (position >= stream.node.usedBytes)
|
|||
|
return 0;
|
|||
|
var size = Math.min(stream.node.usedBytes - position, length);
|
|||
|
if (size > 8 && contents.subarray) {
|
|||
|
buffer2.set(contents.subarray(position, position + size), offset);
|
|||
|
} else {
|
|||
|
for (var i = 0; i < size; i++)
|
|||
|
buffer2[offset + i] = contents[position + i];
|
|||
|
}
|
|||
|
return size;
|
|||
|
},
|
|||
|
write: function(stream, buffer2, offset, length, position, canOwn) {
|
|||
|
if (buffer2.buffer === HEAP8.buffer) {
|
|||
|
canOwn = false;
|
|||
|
}
|
|||
|
if (!length)
|
|||
|
return 0;
|
|||
|
var node = stream.node;
|
|||
|
node.timestamp = Date.now();
|
|||
|
if (buffer2.subarray && (!node.contents || node.contents.subarray)) {
|
|||
|
if (canOwn) {
|
|||
|
node.contents = buffer2.subarray(offset, offset + length);
|
|||
|
node.usedBytes = length;
|
|||
|
return length;
|
|||
|
} else if (node.usedBytes === 0 && position === 0) {
|
|||
|
node.contents = buffer2.slice(offset, offset + length);
|
|||
|
node.usedBytes = length;
|
|||
|
return length;
|
|||
|
} else if (position + length <= node.usedBytes) {
|
|||
|
node.contents.set(buffer2.subarray(offset, offset + length), position);
|
|||
|
return length;
|
|||
|
}
|
|||
|
}
|
|||
|
MEMFS.expandFileStorage(node, position + length);
|
|||
|
if (node.contents.subarray && buffer2.subarray) {
|
|||
|
node.contents.set(buffer2.subarray(offset, offset + length), position);
|
|||
|
} else {
|
|||
|
for (var i = 0; i < length; i++) {
|
|||
|
node.contents[position + i] = buffer2[offset + i];
|
|||
|
}
|
|||
|
}
|
|||
|
node.usedBytes = Math.max(node.usedBytes, position + length);
|
|||
|
return length;
|
|||
|
},
|
|||
|
llseek: function(stream, offset, whence) {
|
|||
|
var position = offset;
|
|||
|
if (whence === 1) {
|
|||
|
position += stream.position;
|
|||
|
} else if (whence === 2) {
|
|||
|
if (FS.isFile(stream.node.mode)) {
|
|||
|
position += stream.node.usedBytes;
|
|||
|
}
|
|||
|
}
|
|||
|
if (position < 0) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
return position;
|
|||
|
},
|
|||
|
allocate: function(stream, offset, length) {
|
|||
|
MEMFS.expandFileStorage(stream.node, offset + length);
|
|||
|
stream.node.usedBytes = Math.max(stream.node.usedBytes, offset + length);
|
|||
|
},
|
|||
|
mmap: function(stream, address, length, position, prot, flags) {
|
|||
|
if (address !== 0) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
if (!FS.isFile(stream.node.mode)) {
|
|||
|
throw new FS.ErrnoError(43);
|
|||
|
}
|
|||
|
var ptr;
|
|||
|
var allocated;
|
|||
|
var contents = stream.node.contents;
|
|||
|
if (!(flags & 2) && contents.buffer === buffer) {
|
|||
|
allocated = false;
|
|||
|
ptr = contents.byteOffset;
|
|||
|
} else {
|
|||
|
if (position > 0 || position + length < contents.length) {
|
|||
|
if (contents.subarray) {
|
|||
|
contents = contents.subarray(position, position + length);
|
|||
|
} else {
|
|||
|
contents = Array.prototype.slice.call(contents, position, position + length);
|
|||
|
}
|
|||
|
}
|
|||
|
allocated = true;
|
|||
|
ptr = mmapAlloc(length);
|
|||
|
if (!ptr) {
|
|||
|
throw new FS.ErrnoError(48);
|
|||
|
}
|
|||
|
HEAP8.set(contents, ptr);
|
|||
|
}
|
|||
|
return {ptr, allocated};
|
|||
|
},
|
|||
|
msync: function(stream, buffer2, offset, length, mmapFlags) {
|
|||
|
if (!FS.isFile(stream.node.mode)) {
|
|||
|
throw new FS.ErrnoError(43);
|
|||
|
}
|
|||
|
if (mmapFlags & 2) {
|
|||
|
return 0;
|
|||
|
}
|
|||
|
MEMFS.stream_ops.write(stream, buffer2, 0, length, offset, false);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
}
|
|||
|
};
|
|||
|
var ERRNO_CODES = {
|
|||
|
EPERM: 63,
|
|||
|
ENOENT: 44,
|
|||
|
ESRCH: 71,
|
|||
|
EINTR: 27,
|
|||
|
EIO: 29,
|
|||
|
ENXIO: 60,
|
|||
|
E2BIG: 1,
|
|||
|
ENOEXEC: 45,
|
|||
|
EBADF: 8,
|
|||
|
ECHILD: 12,
|
|||
|
EAGAIN: 6,
|
|||
|
EWOULDBLOCK: 6,
|
|||
|
ENOMEM: 48,
|
|||
|
EACCES: 2,
|
|||
|
EFAULT: 21,
|
|||
|
ENOTBLK: 105,
|
|||
|
EBUSY: 10,
|
|||
|
EEXIST: 20,
|
|||
|
EXDEV: 75,
|
|||
|
ENODEV: 43,
|
|||
|
ENOTDIR: 54,
|
|||
|
EISDIR: 31,
|
|||
|
EINVAL: 28,
|
|||
|
ENFILE: 41,
|
|||
|
EMFILE: 33,
|
|||
|
ENOTTY: 59,
|
|||
|
ETXTBSY: 74,
|
|||
|
EFBIG: 22,
|
|||
|
ENOSPC: 51,
|
|||
|
ESPIPE: 70,
|
|||
|
EROFS: 69,
|
|||
|
EMLINK: 34,
|
|||
|
EPIPE: 64,
|
|||
|
EDOM: 18,
|
|||
|
ERANGE: 68,
|
|||
|
ENOMSG: 49,
|
|||
|
EIDRM: 24,
|
|||
|
ECHRNG: 106,
|
|||
|
EL2NSYNC: 156,
|
|||
|
EL3HLT: 107,
|
|||
|
EL3RST: 108,
|
|||
|
ELNRNG: 109,
|
|||
|
EUNATCH: 110,
|
|||
|
ENOCSI: 111,
|
|||
|
EL2HLT: 112,
|
|||
|
EDEADLK: 16,
|
|||
|
ENOLCK: 46,
|
|||
|
EBADE: 113,
|
|||
|
EBADR: 114,
|
|||
|
EXFULL: 115,
|
|||
|
ENOANO: 104,
|
|||
|
EBADRQC: 103,
|
|||
|
EBADSLT: 102,
|
|||
|
EDEADLOCK: 16,
|
|||
|
EBFONT: 101,
|
|||
|
ENOSTR: 100,
|
|||
|
ENODATA: 116,
|
|||
|
ETIME: 117,
|
|||
|
ENOSR: 118,
|
|||
|
ENONET: 119,
|
|||
|
ENOPKG: 120,
|
|||
|
EREMOTE: 121,
|
|||
|
ENOLINK: 47,
|
|||
|
EADV: 122,
|
|||
|
ESRMNT: 123,
|
|||
|
ECOMM: 124,
|
|||
|
EPROTO: 65,
|
|||
|
EMULTIHOP: 36,
|
|||
|
EDOTDOT: 125,
|
|||
|
EBADMSG: 9,
|
|||
|
ENOTUNIQ: 126,
|
|||
|
EBADFD: 127,
|
|||
|
EREMCHG: 128,
|
|||
|
ELIBACC: 129,
|
|||
|
ELIBBAD: 130,
|
|||
|
ELIBSCN: 131,
|
|||
|
ELIBMAX: 132,
|
|||
|
ELIBEXEC: 133,
|
|||
|
ENOSYS: 52,
|
|||
|
ENOTEMPTY: 55,
|
|||
|
ENAMETOOLONG: 37,
|
|||
|
ELOOP: 32,
|
|||
|
EOPNOTSUPP: 138,
|
|||
|
EPFNOSUPPORT: 139,
|
|||
|
ECONNRESET: 15,
|
|||
|
ENOBUFS: 42,
|
|||
|
EAFNOSUPPORT: 5,
|
|||
|
EPROTOTYPE: 67,
|
|||
|
ENOTSOCK: 57,
|
|||
|
ENOPROTOOPT: 50,
|
|||
|
ESHUTDOWN: 140,
|
|||
|
ECONNREFUSED: 14,
|
|||
|
EADDRINUSE: 3,
|
|||
|
ECONNABORTED: 13,
|
|||
|
ENETUNREACH: 40,
|
|||
|
ENETDOWN: 38,
|
|||
|
ETIMEDOUT: 73,
|
|||
|
EHOSTDOWN: 142,
|
|||
|
EHOSTUNREACH: 23,
|
|||
|
EINPROGRESS: 26,
|
|||
|
EALREADY: 7,
|
|||
|
EDESTADDRREQ: 17,
|
|||
|
EMSGSIZE: 35,
|
|||
|
EPROTONOSUPPORT: 66,
|
|||
|
ESOCKTNOSUPPORT: 137,
|
|||
|
EADDRNOTAVAIL: 4,
|
|||
|
ENETRESET: 39,
|
|||
|
EISCONN: 30,
|
|||
|
ENOTCONN: 53,
|
|||
|
ETOOMANYREFS: 141,
|
|||
|
EUSERS: 136,
|
|||
|
EDQUOT: 19,
|
|||
|
ESTALE: 72,
|
|||
|
ENOTSUP: 138,
|
|||
|
ENOMEDIUM: 148,
|
|||
|
EILSEQ: 25,
|
|||
|
EOVERFLOW: 61,
|
|||
|
ECANCELED: 11,
|
|||
|
ENOTRECOVERABLE: 56,
|
|||
|
EOWNERDEAD: 62,
|
|||
|
ESTRPIPE: 135
|
|||
|
};
|
|||
|
var NODEFS = {
|
|||
|
isWindows: false,
|
|||
|
staticInit: function() {
|
|||
|
NODEFS.isWindows = !!process.platform.match(/^win/);
|
|||
|
var flags = {fs: fs.constants};
|
|||
|
if (flags["fs"]) {
|
|||
|
flags = flags["fs"];
|
|||
|
}
|
|||
|
NODEFS.flagsForNodeMap = {
|
|||
|
1024: flags["O_APPEND"],
|
|||
|
64: flags["O_CREAT"],
|
|||
|
128: flags["O_EXCL"],
|
|||
|
256: flags["O_NOCTTY"],
|
|||
|
0: flags["O_RDONLY"],
|
|||
|
2: flags["O_RDWR"],
|
|||
|
4096: flags["O_SYNC"],
|
|||
|
512: flags["O_TRUNC"],
|
|||
|
1: flags["O_WRONLY"]
|
|||
|
};
|
|||
|
},
|
|||
|
bufferFrom: function(arrayBuffer) {
|
|||
|
return Buffer["alloc"] ? Buffer.from(arrayBuffer) : new Buffer(arrayBuffer);
|
|||
|
},
|
|||
|
convertNodeCode: function(e) {
|
|||
|
var code = e.code;
|
|||
|
return ERRNO_CODES[code];
|
|||
|
},
|
|||
|
mount: function(mount) {
|
|||
|
return NODEFS.createNode(null, "/", NODEFS.getMode(mount.opts.root), 0);
|
|||
|
},
|
|||
|
createNode: function(parent, name, mode, dev) {
|
|||
|
if (!FS.isDir(mode) && !FS.isFile(mode) && !FS.isLink(mode)) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
var node = FS.createNode(parent, name, mode);
|
|||
|
node.node_ops = NODEFS.node_ops;
|
|||
|
node.stream_ops = NODEFS.stream_ops;
|
|||
|
return node;
|
|||
|
},
|
|||
|
getMode: function(path) {
|
|||
|
var stat;
|
|||
|
try {
|
|||
|
stat = fs.lstatSync(path);
|
|||
|
if (NODEFS.isWindows) {
|
|||
|
stat.mode = stat.mode | (stat.mode & 292) >> 2;
|
|||
|
}
|
|||
|
} catch (e) {
|
|||
|
if (!e.code)
|
|||
|
throw e;
|
|||
|
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|||
|
}
|
|||
|
return stat.mode;
|
|||
|
},
|
|||
|
realPath: function(node) {
|
|||
|
var parts = [];
|
|||
|
while (node.parent !== node) {
|
|||
|
parts.push(node.name);
|
|||
|
node = node.parent;
|
|||
|
}
|
|||
|
parts.push(node.mount.opts.root);
|
|||
|
parts.reverse();
|
|||
|
return PATH.join.apply(null, parts);
|
|||
|
},
|
|||
|
flagsForNode: function(flags) {
|
|||
|
flags &= ~2097152;
|
|||
|
flags &= ~2048;
|
|||
|
flags &= ~32768;
|
|||
|
flags &= ~524288;
|
|||
|
var newFlags = 0;
|
|||
|
for (var k in NODEFS.flagsForNodeMap) {
|
|||
|
if (flags & k) {
|
|||
|
newFlags |= NODEFS.flagsForNodeMap[k];
|
|||
|
flags ^= k;
|
|||
|
}
|
|||
|
}
|
|||
|
if (!flags) {
|
|||
|
return newFlags;
|
|||
|
} else {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
},
|
|||
|
node_ops: {
|
|||
|
getattr: function(node) {
|
|||
|
var path = NODEFS.realPath(node);
|
|||
|
var stat;
|
|||
|
try {
|
|||
|
stat = fs.lstatSync(path);
|
|||
|
} catch (e) {
|
|||
|
if (!e.code)
|
|||
|
throw e;
|
|||
|
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|||
|
}
|
|||
|
if (NODEFS.isWindows && !stat.blksize) {
|
|||
|
stat.blksize = 4096;
|
|||
|
}
|
|||
|
if (NODEFS.isWindows && !stat.blocks) {
|
|||
|
stat.blocks = (stat.size + stat.blksize - 1) / stat.blksize | 0;
|
|||
|
}
|
|||
|
return {
|
|||
|
dev: stat.dev,
|
|||
|
ino: stat.ino,
|
|||
|
mode: stat.mode,
|
|||
|
nlink: stat.nlink,
|
|||
|
uid: stat.uid,
|
|||
|
gid: stat.gid,
|
|||
|
rdev: stat.rdev,
|
|||
|
size: stat.size,
|
|||
|
atime: stat.atime,
|
|||
|
mtime: stat.mtime,
|
|||
|
ctime: stat.ctime,
|
|||
|
blksize: stat.blksize,
|
|||
|
blocks: stat.blocks
|
|||
|
};
|
|||
|
},
|
|||
|
setattr: function(node, attr) {
|
|||
|
var path = NODEFS.realPath(node);
|
|||
|
try {
|
|||
|
if (attr.mode !== void 0) {
|
|||
|
fs.chmodSync(path, attr.mode);
|
|||
|
node.mode = attr.mode;
|
|||
|
}
|
|||
|
if (attr.timestamp !== void 0) {
|
|||
|
var date = new Date(attr.timestamp);
|
|||
|
fs.utimesSync(path, date, date);
|
|||
|
}
|
|||
|
if (attr.size !== void 0) {
|
|||
|
fs.truncateSync(path, attr.size);
|
|||
|
}
|
|||
|
} catch (e) {
|
|||
|
if (!e.code)
|
|||
|
throw e;
|
|||
|
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|||
|
}
|
|||
|
},
|
|||
|
lookup: function(parent, name) {
|
|||
|
var path = PATH.join2(NODEFS.realPath(parent), name);
|
|||
|
var mode = NODEFS.getMode(path);
|
|||
|
return NODEFS.createNode(parent, name, mode);
|
|||
|
},
|
|||
|
mknod: function(parent, name, mode, dev) {
|
|||
|
var node = NODEFS.createNode(parent, name, mode, dev);
|
|||
|
var path = NODEFS.realPath(node);
|
|||
|
try {
|
|||
|
if (FS.isDir(node.mode)) {
|
|||
|
fs.mkdirSync(path, node.mode);
|
|||
|
} else {
|
|||
|
fs.writeFileSync(path, "", {mode: node.mode});
|
|||
|
}
|
|||
|
} catch (e) {
|
|||
|
if (!e.code)
|
|||
|
throw e;
|
|||
|
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|||
|
}
|
|||
|
return node;
|
|||
|
},
|
|||
|
rename: function(oldNode, newDir, newName) {
|
|||
|
var oldPath = NODEFS.realPath(oldNode);
|
|||
|
var newPath = PATH.join2(NODEFS.realPath(newDir), newName);
|
|||
|
try {
|
|||
|
fs.renameSync(oldPath, newPath);
|
|||
|
} catch (e) {
|
|||
|
if (!e.code)
|
|||
|
throw e;
|
|||
|
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|||
|
}
|
|||
|
oldNode.name = newName;
|
|||
|
},
|
|||
|
unlink: function(parent, name) {
|
|||
|
var path = PATH.join2(NODEFS.realPath(parent), name);
|
|||
|
try {
|
|||
|
fs.unlinkSync(path);
|
|||
|
} catch (e) {
|
|||
|
if (!e.code)
|
|||
|
throw e;
|
|||
|
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|||
|
}
|
|||
|
},
|
|||
|
rmdir: function(parent, name) {
|
|||
|
var path = PATH.join2(NODEFS.realPath(parent), name);
|
|||
|
try {
|
|||
|
fs.rmdirSync(path);
|
|||
|
} catch (e) {
|
|||
|
if (!e.code)
|
|||
|
throw e;
|
|||
|
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|||
|
}
|
|||
|
},
|
|||
|
readdir: function(node) {
|
|||
|
var path = NODEFS.realPath(node);
|
|||
|
try {
|
|||
|
return fs.readdirSync(path);
|
|||
|
} catch (e) {
|
|||
|
if (!e.code)
|
|||
|
throw e;
|
|||
|
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|||
|
}
|
|||
|
},
|
|||
|
symlink: function(parent, newName, oldPath) {
|
|||
|
var newPath = PATH.join2(NODEFS.realPath(parent), newName);
|
|||
|
try {
|
|||
|
fs.symlinkSync(oldPath, newPath);
|
|||
|
} catch (e) {
|
|||
|
if (!e.code)
|
|||
|
throw e;
|
|||
|
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|||
|
}
|
|||
|
},
|
|||
|
readlink: function(node) {
|
|||
|
var path = NODEFS.realPath(node);
|
|||
|
try {
|
|||
|
path = fs.readlinkSync(path);
|
|||
|
path = NODEJS_PATH.relative(NODEJS_PATH.resolve(node.mount.opts.root), path);
|
|||
|
return path;
|
|||
|
} catch (e) {
|
|||
|
if (!e.code)
|
|||
|
throw e;
|
|||
|
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|||
|
}
|
|||
|
}
|
|||
|
},
|
|||
|
stream_ops: {
|
|||
|
open: function(stream) {
|
|||
|
var path = NODEFS.realPath(stream.node);
|
|||
|
try {
|
|||
|
if (FS.isFile(stream.node.mode)) {
|
|||
|
stream.nfd = fs.openSync(path, NODEFS.flagsForNode(stream.flags));
|
|||
|
}
|
|||
|
} catch (e) {
|
|||
|
if (!e.code)
|
|||
|
throw e;
|
|||
|
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|||
|
}
|
|||
|
},
|
|||
|
close: function(stream) {
|
|||
|
try {
|
|||
|
if (FS.isFile(stream.node.mode) && stream.nfd) {
|
|||
|
fs.closeSync(stream.nfd);
|
|||
|
}
|
|||
|
} catch (e) {
|
|||
|
if (!e.code)
|
|||
|
throw e;
|
|||
|
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|||
|
}
|
|||
|
},
|
|||
|
read: function(stream, buffer2, offset, length, position) {
|
|||
|
if (length === 0)
|
|||
|
return 0;
|
|||
|
try {
|
|||
|
return fs.readSync(stream.nfd, NODEFS.bufferFrom(buffer2.buffer), offset, length, position);
|
|||
|
} catch (e) {
|
|||
|
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|||
|
}
|
|||
|
},
|
|||
|
write: function(stream, buffer2, offset, length, position) {
|
|||
|
try {
|
|||
|
return fs.writeSync(stream.nfd, NODEFS.bufferFrom(buffer2.buffer), offset, length, position);
|
|||
|
} catch (e) {
|
|||
|
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|||
|
}
|
|||
|
},
|
|||
|
llseek: function(stream, offset, whence) {
|
|||
|
var position = offset;
|
|||
|
if (whence === 1) {
|
|||
|
position += stream.position;
|
|||
|
} else if (whence === 2) {
|
|||
|
if (FS.isFile(stream.node.mode)) {
|
|||
|
try {
|
|||
|
var stat = fs.fstatSync(stream.nfd);
|
|||
|
position += stat.size;
|
|||
|
} catch (e) {
|
|||
|
throw new FS.ErrnoError(NODEFS.convertNodeCode(e));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
if (position < 0) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
return position;
|
|||
|
},
|
|||
|
mmap: function(stream, address, length, position, prot, flags) {
|
|||
|
if (address !== 0) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
if (!FS.isFile(stream.node.mode)) {
|
|||
|
throw new FS.ErrnoError(43);
|
|||
|
}
|
|||
|
var ptr = mmapAlloc(length);
|
|||
|
NODEFS.stream_ops.read(stream, HEAP8, ptr, length, position);
|
|||
|
return {ptr, allocated: true};
|
|||
|
},
|
|||
|
msync: function(stream, buffer2, offset, length, mmapFlags) {
|
|||
|
if (!FS.isFile(stream.node.mode)) {
|
|||
|
throw new FS.ErrnoError(43);
|
|||
|
}
|
|||
|
if (mmapFlags & 2) {
|
|||
|
return 0;
|
|||
|
}
|
|||
|
NODEFS.stream_ops.write(stream, buffer2, 0, length, offset, false);
|
|||
|
return 0;
|
|||
|
}
|
|||
|
}
|
|||
|
};
|
|||
|
var NODERAWFS = {
|
|||
|
lookupPath: function(path) {
|
|||
|
return {path, node: {mode: NODEFS.getMode(path)}};
|
|||
|
},
|
|||
|
createStandardStreams: function() {
|
|||
|
FS.streams[0] = {
|
|||
|
fd: 0,
|
|||
|
nfd: 0,
|
|||
|
position: 0,
|
|||
|
path: "",
|
|||
|
flags: 0,
|
|||
|
tty: true,
|
|||
|
seekable: false
|
|||
|
};
|
|||
|
for (var i = 1; i < 3; i++) {
|
|||
|
FS.streams[i] = {
|
|||
|
fd: i,
|
|||
|
nfd: i,
|
|||
|
position: 0,
|
|||
|
path: "",
|
|||
|
flags: 577,
|
|||
|
tty: true,
|
|||
|
seekable: false
|
|||
|
};
|
|||
|
}
|
|||
|
},
|
|||
|
cwd: function() {
|
|||
|
return process.cwd();
|
|||
|
},
|
|||
|
chdir: function() {
|
|||
|
process.chdir.apply(void 0, arguments);
|
|||
|
},
|
|||
|
mknod: function(path, mode) {
|
|||
|
if (FS.isDir(path)) {
|
|||
|
fs.mkdirSync(path, mode);
|
|||
|
} else {
|
|||
|
fs.writeFileSync(path, "", {mode});
|
|||
|
}
|
|||
|
},
|
|||
|
mkdir: function() {
|
|||
|
fs.mkdirSync.apply(void 0, arguments);
|
|||
|
},
|
|||
|
symlink: function() {
|
|||
|
fs.symlinkSync.apply(void 0, arguments);
|
|||
|
},
|
|||
|
rename: function() {
|
|||
|
fs.renameSync.apply(void 0, arguments);
|
|||
|
},
|
|||
|
rmdir: function() {
|
|||
|
fs.rmdirSync.apply(void 0, arguments);
|
|||
|
},
|
|||
|
readdir: function() {
|
|||
|
fs.readdirSync.apply(void 0, arguments);
|
|||
|
},
|
|||
|
unlink: function() {
|
|||
|
fs.unlinkSync.apply(void 0, arguments);
|
|||
|
},
|
|||
|
readlink: function() {
|
|||
|
return fs.readlinkSync.apply(void 0, arguments);
|
|||
|
},
|
|||
|
stat: function() {
|
|||
|
return fs.statSync.apply(void 0, arguments);
|
|||
|
},
|
|||
|
lstat: function() {
|
|||
|
return fs.lstatSync.apply(void 0, arguments);
|
|||
|
},
|
|||
|
chmod: function() {
|
|||
|
fs.chmodSync.apply(void 0, arguments);
|
|||
|
},
|
|||
|
fchmod: function() {
|
|||
|
fs.fchmodSync.apply(void 0, arguments);
|
|||
|
},
|
|||
|
chown: function() {
|
|||
|
fs.chownSync.apply(void 0, arguments);
|
|||
|
},
|
|||
|
fchown: function() {
|
|||
|
fs.fchownSync.apply(void 0, arguments);
|
|||
|
},
|
|||
|
truncate: function() {
|
|||
|
fs.truncateSync.apply(void 0, arguments);
|
|||
|
},
|
|||
|
ftruncate: function(fd, len) {
|
|||
|
if (len < 0) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
fs.ftruncateSync.apply(void 0, arguments);
|
|||
|
},
|
|||
|
utime: function() {
|
|||
|
fs.utimesSync.apply(void 0, arguments);
|
|||
|
},
|
|||
|
open: function(path, flags, mode, suggestFD) {
|
|||
|
if (typeof flags === "string") {
|
|||
|
flags = VFS.modeStringToFlags(flags);
|
|||
|
}
|
|||
|
var nfd = fs.openSync(path, NODEFS.flagsForNode(flags), mode);
|
|||
|
var fd = suggestFD != null ? suggestFD : FS.nextfd(nfd);
|
|||
|
var stream = {
|
|||
|
fd,
|
|||
|
nfd,
|
|||
|
position: 0,
|
|||
|
path,
|
|||
|
flags,
|
|||
|
seekable: true
|
|||
|
};
|
|||
|
FS.streams[fd] = stream;
|
|||
|
return stream;
|
|||
|
},
|
|||
|
close: function(stream) {
|
|||
|
if (!stream.stream_ops) {
|
|||
|
fs.closeSync(stream.nfd);
|
|||
|
}
|
|||
|
FS.closeStream(stream.fd);
|
|||
|
},
|
|||
|
llseek: function(stream, offset, whence) {
|
|||
|
if (stream.stream_ops) {
|
|||
|
return VFS.llseek(stream, offset, whence);
|
|||
|
}
|
|||
|
var position = offset;
|
|||
|
if (whence === 1) {
|
|||
|
position += stream.position;
|
|||
|
} else if (whence === 2) {
|
|||
|
position += fs.fstatSync(stream.nfd).size;
|
|||
|
} else if (whence !== 0) {
|
|||
|
throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
|
|||
|
}
|
|||
|
if (position < 0) {
|
|||
|
throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
|
|||
|
}
|
|||
|
stream.position = position;
|
|||
|
return position;
|
|||
|
},
|
|||
|
read: function(stream, buffer2, offset, length, position) {
|
|||
|
if (stream.stream_ops) {
|
|||
|
return VFS.read(stream, buffer2, offset, length, position);
|
|||
|
}
|
|||
|
var seeking = typeof position !== "undefined";
|
|||
|
if (!seeking && stream.seekable)
|
|||
|
position = stream.position;
|
|||
|
var bytesRead = fs.readSync(stream.nfd, NODEFS.bufferFrom(buffer2.buffer), offset, length, position);
|
|||
|
if (!seeking)
|
|||
|
stream.position += bytesRead;
|
|||
|
return bytesRead;
|
|||
|
},
|
|||
|
write: function(stream, buffer2, offset, length, position) {
|
|||
|
if (stream.stream_ops) {
|
|||
|
return VFS.write(stream, buffer2, offset, length, position);
|
|||
|
}
|
|||
|
if (stream.flags & +"1024") {
|
|||
|
FS.llseek(stream, 0, +"2");
|
|||
|
}
|
|||
|
var seeking = typeof position !== "undefined";
|
|||
|
if (!seeking && stream.seekable)
|
|||
|
position = stream.position;
|
|||
|
var bytesWritten = fs.writeSync(stream.nfd, NODEFS.bufferFrom(buffer2.buffer), offset, length, position);
|
|||
|
if (!seeking)
|
|||
|
stream.position += bytesWritten;
|
|||
|
return bytesWritten;
|
|||
|
},
|
|||
|
allocate: function() {
|
|||
|
throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP);
|
|||
|
},
|
|||
|
mmap: function(stream, address, length, position, prot, flags) {
|
|||
|
if (stream.stream_ops) {
|
|||
|
return VFS.mmap(stream, address, length, position, prot, flags);
|
|||
|
}
|
|||
|
if (address !== 0) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
var ptr = mmapAlloc(length);
|
|||
|
FS.read(stream, HEAP8, ptr, length, position);
|
|||
|
return {ptr, allocated: true};
|
|||
|
},
|
|||
|
msync: function(stream, buffer2, offset, length, mmapFlags) {
|
|||
|
if (stream.stream_ops) {
|
|||
|
return VFS.msync(stream, buffer2, offset, length, mmapFlags);
|
|||
|
}
|
|||
|
if (mmapFlags & 2) {
|
|||
|
return 0;
|
|||
|
}
|
|||
|
FS.write(stream, buffer2, 0, length, offset);
|
|||
|
return 0;
|
|||
|
},
|
|||
|
munmap: function() {
|
|||
|
return 0;
|
|||
|
},
|
|||
|
ioctl: function() {
|
|||
|
throw new FS.ErrnoError(ERRNO_CODES.ENOTTY);
|
|||
|
}
|
|||
|
};
|
|||
|
var FS = {
|
|||
|
root: null,
|
|||
|
mounts: [],
|
|||
|
devices: {},
|
|||
|
streams: [],
|
|||
|
nextInode: 1,
|
|||
|
nameTable: null,
|
|||
|
currentPath: "/",
|
|||
|
initialized: false,
|
|||
|
ignorePermissions: true,
|
|||
|
trackingDelegate: {},
|
|||
|
tracking: {openFlags: {READ: 1, WRITE: 2}},
|
|||
|
ErrnoError: null,
|
|||
|
genericErrors: {},
|
|||
|
filesystems: null,
|
|||
|
syncFSRequests: 0,
|
|||
|
lookupPath: function(path, opts) {
|
|||
|
path = PATH_FS.resolve(FS.cwd(), path);
|
|||
|
opts = opts || {};
|
|||
|
if (!path)
|
|||
|
return {path: "", node: null};
|
|||
|
var defaults = {follow_mount: true, recurse_count: 0};
|
|||
|
for (var key2 in defaults) {
|
|||
|
if (opts[key2] === void 0) {
|
|||
|
opts[key2] = defaults[key2];
|
|||
|
}
|
|||
|
}
|
|||
|
if (opts.recurse_count > 8) {
|
|||
|
throw new FS.ErrnoError(32);
|
|||
|
}
|
|||
|
var parts = PATH.normalizeArray(path.split("/").filter(function(p) {
|
|||
|
return !!p;
|
|||
|
}), false);
|
|||
|
var current = FS.root;
|
|||
|
var current_path = "/";
|
|||
|
for (var i = 0; i < parts.length; i++) {
|
|||
|
var islast = i === parts.length - 1;
|
|||
|
if (islast && opts.parent) {
|
|||
|
break;
|
|||
|
}
|
|||
|
current = FS.lookupNode(current, parts[i]);
|
|||
|
current_path = PATH.join2(current_path, parts[i]);
|
|||
|
if (FS.isMountpoint(current)) {
|
|||
|
if (!islast || islast && opts.follow_mount) {
|
|||
|
current = current.mounted.root;
|
|||
|
}
|
|||
|
}
|
|||
|
if (!islast || opts.follow) {
|
|||
|
var count = 0;
|
|||
|
while (FS.isLink(current.mode)) {
|
|||
|
var link = FS.readlink(current_path);
|
|||
|
current_path = PATH_FS.resolve(PATH.dirname(current_path), link);
|
|||
|
var lookup = FS.lookupPath(current_path, {
|
|||
|
recurse_count: opts.recurse_count
|
|||
|
});
|
|||
|
current = lookup.node;
|
|||
|
if (count++ > 40) {
|
|||
|
throw new FS.ErrnoError(32);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
return {path: current_path, node: current};
|
|||
|
},
|
|||
|
getPath: function(node) {
|
|||
|
var path;
|
|||
|
while (true) {
|
|||
|
if (FS.isRoot(node)) {
|
|||
|
var mount = node.mount.mountpoint;
|
|||
|
if (!path)
|
|||
|
return mount;
|
|||
|
return mount[mount.length - 1] !== "/" ? mount + "/" + path : mount + path;
|
|||
|
}
|
|||
|
path = path ? node.name + "/" + path : node.name;
|
|||
|
node = node.parent;
|
|||
|
}
|
|||
|
},
|
|||
|
hashName: function(parentid, name) {
|
|||
|
var hash = 0;
|
|||
|
for (var i = 0; i < name.length; i++) {
|
|||
|
hash = (hash << 5) - hash + name.charCodeAt(i) | 0;
|
|||
|
}
|
|||
|
return (parentid + hash >>> 0) % FS.nameTable.length;
|
|||
|
},
|
|||
|
hashAddNode: function(node) {
|
|||
|
var hash = FS.hashName(node.parent.id, node.name);
|
|||
|
node.name_next = FS.nameTable[hash];
|
|||
|
FS.nameTable[hash] = node;
|
|||
|
},
|
|||
|
hashRemoveNode: function(node) {
|
|||
|
var hash = FS.hashName(node.parent.id, node.name);
|
|||
|
if (FS.nameTable[hash] === node) {
|
|||
|
FS.nameTable[hash] = node.name_next;
|
|||
|
} else {
|
|||
|
var current = FS.nameTable[hash];
|
|||
|
while (current) {
|
|||
|
if (current.name_next === node) {
|
|||
|
current.name_next = node.name_next;
|
|||
|
break;
|
|||
|
}
|
|||
|
current = current.name_next;
|
|||
|
}
|
|||
|
}
|
|||
|
},
|
|||
|
lookupNode: function(parent, name) {
|
|||
|
var errCode = FS.mayLookup(parent);
|
|||
|
if (errCode) {
|
|||
|
throw new FS.ErrnoError(errCode, parent);
|
|||
|
}
|
|||
|
var hash = FS.hashName(parent.id, name);
|
|||
|
for (var node = FS.nameTable[hash]; node; node = node.name_next) {
|
|||
|
var nodeName = node.name;
|
|||
|
if (node.parent.id === parent.id && nodeName === name) {
|
|||
|
return node;
|
|||
|
}
|
|||
|
}
|
|||
|
return FS.lookup(parent, name);
|
|||
|
},
|
|||
|
createNode: function(parent, name, mode, rdev) {
|
|||
|
var node = new FS.FSNode(parent, name, mode, rdev);
|
|||
|
FS.hashAddNode(node);
|
|||
|
return node;
|
|||
|
},
|
|||
|
destroyNode: function(node) {
|
|||
|
FS.hashRemoveNode(node);
|
|||
|
},
|
|||
|
isRoot: function(node) {
|
|||
|
return node === node.parent;
|
|||
|
},
|
|||
|
isMountpoint: function(node) {
|
|||
|
return !!node.mounted;
|
|||
|
},
|
|||
|
isFile: function(mode) {
|
|||
|
return (mode & 61440) === 32768;
|
|||
|
},
|
|||
|
isDir: function(mode) {
|
|||
|
return (mode & 61440) === 16384;
|
|||
|
},
|
|||
|
isLink: function(mode) {
|
|||
|
return (mode & 61440) === 40960;
|
|||
|
},
|
|||
|
isChrdev: function(mode) {
|
|||
|
return (mode & 61440) === 8192;
|
|||
|
},
|
|||
|
isBlkdev: function(mode) {
|
|||
|
return (mode & 61440) === 24576;
|
|||
|
},
|
|||
|
isFIFO: function(mode) {
|
|||
|
return (mode & 61440) === 4096;
|
|||
|
},
|
|||
|
isSocket: function(mode) {
|
|||
|
return (mode & 49152) === 49152;
|
|||
|
},
|
|||
|
flagModes: {r: 0, "r+": 2, w: 577, "w+": 578, a: 1089, "a+": 1090},
|
|||
|
modeStringToFlags: function(str) {
|
|||
|
var flags = FS.flagModes[str];
|
|||
|
if (typeof flags === "undefined") {
|
|||
|
throw new Error("Unknown file open mode: " + str);
|
|||
|
}
|
|||
|
return flags;
|
|||
|
},
|
|||
|
flagsToPermissionString: function(flag) {
|
|||
|
var perms = ["r", "w", "rw"][flag & 3];
|
|||
|
if (flag & 512) {
|
|||
|
perms += "w";
|
|||
|
}
|
|||
|
return perms;
|
|||
|
},
|
|||
|
nodePermissions: function(node, perms) {
|
|||
|
if (FS.ignorePermissions) {
|
|||
|
return 0;
|
|||
|
}
|
|||
|
if (perms.includes("r") && !(node.mode & 292)) {
|
|||
|
return 2;
|
|||
|
} else if (perms.includes("w") && !(node.mode & 146)) {
|
|||
|
return 2;
|
|||
|
} else if (perms.includes("x") && !(node.mode & 73)) {
|
|||
|
return 2;
|
|||
|
}
|
|||
|
return 0;
|
|||
|
},
|
|||
|
mayLookup: function(dir) {
|
|||
|
var errCode = FS.nodePermissions(dir, "x");
|
|||
|
if (errCode)
|
|||
|
return errCode;
|
|||
|
if (!dir.node_ops.lookup)
|
|||
|
return 2;
|
|||
|
return 0;
|
|||
|
},
|
|||
|
mayCreate: function(dir, name) {
|
|||
|
try {
|
|||
|
var node = FS.lookupNode(dir, name);
|
|||
|
return 20;
|
|||
|
} catch (e) {
|
|||
|
}
|
|||
|
return FS.nodePermissions(dir, "wx");
|
|||
|
},
|
|||
|
mayDelete: function(dir, name, isdir) {
|
|||
|
var node;
|
|||
|
try {
|
|||
|
node = FS.lookupNode(dir, name);
|
|||
|
} catch (e) {
|
|||
|
return e.errno;
|
|||
|
}
|
|||
|
var errCode = FS.nodePermissions(dir, "wx");
|
|||
|
if (errCode) {
|
|||
|
return errCode;
|
|||
|
}
|
|||
|
if (isdir) {
|
|||
|
if (!FS.isDir(node.mode)) {
|
|||
|
return 54;
|
|||
|
}
|
|||
|
if (FS.isRoot(node) || FS.getPath(node) === FS.cwd()) {
|
|||
|
return 10;
|
|||
|
}
|
|||
|
} else {
|
|||
|
if (FS.isDir(node.mode)) {
|
|||
|
return 31;
|
|||
|
}
|
|||
|
}
|
|||
|
return 0;
|
|||
|
},
|
|||
|
mayOpen: function(node, flags) {
|
|||
|
if (!node) {
|
|||
|
return 44;
|
|||
|
}
|
|||
|
if (FS.isLink(node.mode)) {
|
|||
|
return 32;
|
|||
|
} else if (FS.isDir(node.mode)) {
|
|||
|
if (FS.flagsToPermissionString(flags) !== "r" || flags & 512) {
|
|||
|
return 31;
|
|||
|
}
|
|||
|
}
|
|||
|
return FS.nodePermissions(node, FS.flagsToPermissionString(flags));
|
|||
|
},
|
|||
|
MAX_OPEN_FDS: 4096,
|
|||
|
nextfd: function(fd_start, fd_end) {
|
|||
|
fd_start = fd_start || 0;
|
|||
|
fd_end = fd_end || FS.MAX_OPEN_FDS;
|
|||
|
for (var fd = fd_start; fd <= fd_end; fd++) {
|
|||
|
if (!FS.streams[fd]) {
|
|||
|
return fd;
|
|||
|
}
|
|||
|
}
|
|||
|
throw new FS.ErrnoError(33);
|
|||
|
},
|
|||
|
getStream: function(fd) {
|
|||
|
return FS.streams[fd];
|
|||
|
},
|
|||
|
createStream: function(stream, fd_start, fd_end) {
|
|||
|
if (!FS.FSStream) {
|
|||
|
FS.FSStream = function() {
|
|||
|
};
|
|||
|
FS.FSStream.prototype = {
|
|||
|
object: {
|
|||
|
get: function() {
|
|||
|
return this.node;
|
|||
|
},
|
|||
|
set: function(val) {
|
|||
|
this.node = val;
|
|||
|
}
|
|||
|
},
|
|||
|
isRead: {
|
|||
|
get: function() {
|
|||
|
return (this.flags & 2097155) !== 1;
|
|||
|
}
|
|||
|
},
|
|||
|
isWrite: {
|
|||
|
get: function() {
|
|||
|
return (this.flags & 2097155) !== 0;
|
|||
|
}
|
|||
|
},
|
|||
|
isAppend: {
|
|||
|
get: function() {
|
|||
|
return this.flags & 1024;
|
|||
|
}
|
|||
|
}
|
|||
|
};
|
|||
|
}
|
|||
|
var newStream = new FS.FSStream();
|
|||
|
for (var p in stream) {
|
|||
|
newStream[p] = stream[p];
|
|||
|
}
|
|||
|
stream = newStream;
|
|||
|
var fd = FS.nextfd(fd_start, fd_end);
|
|||
|
stream.fd = fd;
|
|||
|
FS.streams[fd] = stream;
|
|||
|
return stream;
|
|||
|
},
|
|||
|
closeStream: function(fd) {
|
|||
|
FS.streams[fd] = null;
|
|||
|
},
|
|||
|
chrdev_stream_ops: {
|
|||
|
open: function(stream) {
|
|||
|
var device = FS.getDevice(stream.node.rdev);
|
|||
|
stream.stream_ops = device.stream_ops;
|
|||
|
if (stream.stream_ops.open) {
|
|||
|
stream.stream_ops.open(stream);
|
|||
|
}
|
|||
|
},
|
|||
|
llseek: function() {
|
|||
|
throw new FS.ErrnoError(70);
|
|||
|
}
|
|||
|
},
|
|||
|
major: function(dev) {
|
|||
|
return dev >> 8;
|
|||
|
},
|
|||
|
minor: function(dev) {
|
|||
|
return dev & 255;
|
|||
|
},
|
|||
|
makedev: function(ma, mi) {
|
|||
|
return ma << 8 | mi;
|
|||
|
},
|
|||
|
registerDevice: function(dev, ops) {
|
|||
|
FS.devices[dev] = {stream_ops: ops};
|
|||
|
},
|
|||
|
getDevice: function(dev) {
|
|||
|
return FS.devices[dev];
|
|||
|
},
|
|||
|
getMounts: function(mount) {
|
|||
|
var mounts = [];
|
|||
|
var check = [mount];
|
|||
|
while (check.length) {
|
|||
|
var m = check.pop();
|
|||
|
mounts.push(m);
|
|||
|
check.push.apply(check, m.mounts);
|
|||
|
}
|
|||
|
return mounts;
|
|||
|
},
|
|||
|
syncfs: function(populate, callback) {
|
|||
|
if (typeof populate === "function") {
|
|||
|
callback = populate;
|
|||
|
populate = false;
|
|||
|
}
|
|||
|
FS.syncFSRequests++;
|
|||
|
if (FS.syncFSRequests > 1) {
|
|||
|
err("warning: " + FS.syncFSRequests + " FS.syncfs operations in flight at once, probably just doing extra work");
|
|||
|
}
|
|||
|
var mounts = FS.getMounts(FS.root.mount);
|
|||
|
var completed = 0;
|
|||
|
function doCallback(errCode) {
|
|||
|
FS.syncFSRequests--;
|
|||
|
return callback(errCode);
|
|||
|
}
|
|||
|
function done(errCode) {
|
|||
|
if (errCode) {
|
|||
|
if (!done.errored) {
|
|||
|
done.errored = true;
|
|||
|
return doCallback(errCode);
|
|||
|
}
|
|||
|
return;
|
|||
|
}
|
|||
|
if (++completed >= mounts.length) {
|
|||
|
doCallback(null);
|
|||
|
}
|
|||
|
}
|
|||
|
mounts.forEach(function(mount) {
|
|||
|
if (!mount.type.syncfs) {
|
|||
|
return done(null);
|
|||
|
}
|
|||
|
mount.type.syncfs(mount, populate, done);
|
|||
|
});
|
|||
|
},
|
|||
|
mount: function(type, opts, mountpoint) {
|
|||
|
var root = mountpoint === "/";
|
|||
|
var pseudo = !mountpoint;
|
|||
|
var node;
|
|||
|
if (root && FS.root) {
|
|||
|
throw new FS.ErrnoError(10);
|
|||
|
} else if (!root && !pseudo) {
|
|||
|
var lookup = FS.lookupPath(mountpoint, {follow_mount: false});
|
|||
|
mountpoint = lookup.path;
|
|||
|
node = lookup.node;
|
|||
|
if (FS.isMountpoint(node)) {
|
|||
|
throw new FS.ErrnoError(10);
|
|||
|
}
|
|||
|
if (!FS.isDir(node.mode)) {
|
|||
|
throw new FS.ErrnoError(54);
|
|||
|
}
|
|||
|
}
|
|||
|
var mount = {
|
|||
|
type,
|
|||
|
opts,
|
|||
|
mountpoint,
|
|||
|
mounts: []
|
|||
|
};
|
|||
|
var mountRoot = type.mount(mount);
|
|||
|
mountRoot.mount = mount;
|
|||
|
mount.root = mountRoot;
|
|||
|
if (root) {
|
|||
|
FS.root = mountRoot;
|
|||
|
} else if (node) {
|
|||
|
node.mounted = mount;
|
|||
|
if (node.mount) {
|
|||
|
node.mount.mounts.push(mount);
|
|||
|
}
|
|||
|
}
|
|||
|
return mountRoot;
|
|||
|
},
|
|||
|
unmount: function(mountpoint) {
|
|||
|
var lookup = FS.lookupPath(mountpoint, {follow_mount: false});
|
|||
|
if (!FS.isMountpoint(lookup.node)) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
var node = lookup.node;
|
|||
|
var mount = node.mounted;
|
|||
|
var mounts = FS.getMounts(mount);
|
|||
|
Object.keys(FS.nameTable).forEach(function(hash) {
|
|||
|
var current = FS.nameTable[hash];
|
|||
|
while (current) {
|
|||
|
var next = current.name_next;
|
|||
|
if (mounts.includes(current.mount)) {
|
|||
|
FS.destroyNode(current);
|
|||
|
}
|
|||
|
current = next;
|
|||
|
}
|
|||
|
});
|
|||
|
node.mounted = null;
|
|||
|
var idx = node.mount.mounts.indexOf(mount);
|
|||
|
node.mount.mounts.splice(idx, 1);
|
|||
|
},
|
|||
|
lookup: function(parent, name) {
|
|||
|
return parent.node_ops.lookup(parent, name);
|
|||
|
},
|
|||
|
mknod: function(path, mode, dev) {
|
|||
|
var lookup = FS.lookupPath(path, {parent: true});
|
|||
|
var parent = lookup.node;
|
|||
|
var name = PATH.basename(path);
|
|||
|
if (!name || name === "." || name === "..") {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
var errCode = FS.mayCreate(parent, name);
|
|||
|
if (errCode) {
|
|||
|
throw new FS.ErrnoError(errCode);
|
|||
|
}
|
|||
|
if (!parent.node_ops.mknod) {
|
|||
|
throw new FS.ErrnoError(63);
|
|||
|
}
|
|||
|
return parent.node_ops.mknod(parent, name, mode, dev);
|
|||
|
},
|
|||
|
create: function(path, mode) {
|
|||
|
mode = mode !== void 0 ? mode : 438;
|
|||
|
mode &= 4095;
|
|||
|
mode |= 32768;
|
|||
|
return FS.mknod(path, mode, 0);
|
|||
|
},
|
|||
|
mkdir: function(path, mode) {
|
|||
|
mode = mode !== void 0 ? mode : 511;
|
|||
|
mode &= 511 | 512;
|
|||
|
mode |= 16384;
|
|||
|
return FS.mknod(path, mode, 0);
|
|||
|
},
|
|||
|
mkdirTree: function(path, mode) {
|
|||
|
var dirs = path.split("/");
|
|||
|
var d = "";
|
|||
|
for (var i = 0; i < dirs.length; ++i) {
|
|||
|
if (!dirs[i])
|
|||
|
continue;
|
|||
|
d += "/" + dirs[i];
|
|||
|
try {
|
|||
|
FS.mkdir(d, mode);
|
|||
|
} catch (e) {
|
|||
|
if (e.errno != 20)
|
|||
|
throw e;
|
|||
|
}
|
|||
|
}
|
|||
|
},
|
|||
|
mkdev: function(path, mode, dev) {
|
|||
|
if (typeof dev === "undefined") {
|
|||
|
dev = mode;
|
|||
|
mode = 438;
|
|||
|
}
|
|||
|
mode |= 8192;
|
|||
|
return FS.mknod(path, mode, dev);
|
|||
|
},
|
|||
|
symlink: function(oldpath, newpath) {
|
|||
|
if (!PATH_FS.resolve(oldpath)) {
|
|||
|
throw new FS.ErrnoError(44);
|
|||
|
}
|
|||
|
var lookup = FS.lookupPath(newpath, {parent: true});
|
|||
|
var parent = lookup.node;
|
|||
|
if (!parent) {
|
|||
|
throw new FS.ErrnoError(44);
|
|||
|
}
|
|||
|
var newname = PATH.basename(newpath);
|
|||
|
var errCode = FS.mayCreate(parent, newname);
|
|||
|
if (errCode) {
|
|||
|
throw new FS.ErrnoError(errCode);
|
|||
|
}
|
|||
|
if (!parent.node_ops.symlink) {
|
|||
|
throw new FS.ErrnoError(63);
|
|||
|
}
|
|||
|
return parent.node_ops.symlink(parent, newname, oldpath);
|
|||
|
},
|
|||
|
rename: function(old_path, new_path) {
|
|||
|
var old_dirname = PATH.dirname(old_path);
|
|||
|
var new_dirname = PATH.dirname(new_path);
|
|||
|
var old_name = PATH.basename(old_path);
|
|||
|
var new_name = PATH.basename(new_path);
|
|||
|
var lookup, old_dir, new_dir;
|
|||
|
lookup = FS.lookupPath(old_path, {parent: true});
|
|||
|
old_dir = lookup.node;
|
|||
|
lookup = FS.lookupPath(new_path, {parent: true});
|
|||
|
new_dir = lookup.node;
|
|||
|
if (!old_dir || !new_dir)
|
|||
|
throw new FS.ErrnoError(44);
|
|||
|
if (old_dir.mount !== new_dir.mount) {
|
|||
|
throw new FS.ErrnoError(75);
|
|||
|
}
|
|||
|
var old_node = FS.lookupNode(old_dir, old_name);
|
|||
|
var relative = PATH_FS.relative(old_path, new_dirname);
|
|||
|
if (relative.charAt(0) !== ".") {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
relative = PATH_FS.relative(new_path, old_dirname);
|
|||
|
if (relative.charAt(0) !== ".") {
|
|||
|
throw new FS.ErrnoError(55);
|
|||
|
}
|
|||
|
var new_node;
|
|||
|
try {
|
|||
|
new_node = FS.lookupNode(new_dir, new_name);
|
|||
|
} catch (e) {
|
|||
|
}
|
|||
|
if (old_node === new_node) {
|
|||
|
return;
|
|||
|
}
|
|||
|
var isdir = FS.isDir(old_node.mode);
|
|||
|
var errCode = FS.mayDelete(old_dir, old_name, isdir);
|
|||
|
if (errCode) {
|
|||
|
throw new FS.ErrnoError(errCode);
|
|||
|
}
|
|||
|
errCode = new_node ? FS.mayDelete(new_dir, new_name, isdir) : FS.mayCreate(new_dir, new_name);
|
|||
|
if (errCode) {
|
|||
|
throw new FS.ErrnoError(errCode);
|
|||
|
}
|
|||
|
if (!old_dir.node_ops.rename) {
|
|||
|
throw new FS.ErrnoError(63);
|
|||
|
}
|
|||
|
if (FS.isMountpoint(old_node) || new_node && FS.isMountpoint(new_node)) {
|
|||
|
throw new FS.ErrnoError(10);
|
|||
|
}
|
|||
|
if (new_dir !== old_dir) {
|
|||
|
errCode = FS.nodePermissions(old_dir, "w");
|
|||
|
if (errCode) {
|
|||
|
throw new FS.ErrnoError(errCode);
|
|||
|
}
|
|||
|
}
|
|||
|
try {
|
|||
|
if (FS.trackingDelegate["willMovePath"]) {
|
|||
|
FS.trackingDelegate["willMovePath"](old_path, new_path);
|
|||
|
}
|
|||
|
} catch (e) {
|
|||
|
err("FS.trackingDelegate['willMovePath']('" + old_path + "', '" + new_path + "') threw an exception: " + e.message);
|
|||
|
}
|
|||
|
FS.hashRemoveNode(old_node);
|
|||
|
try {
|
|||
|
old_dir.node_ops.rename(old_node, new_dir, new_name);
|
|||
|
} catch (e) {
|
|||
|
throw e;
|
|||
|
} finally {
|
|||
|
FS.hashAddNode(old_node);
|
|||
|
}
|
|||
|
try {
|
|||
|
if (FS.trackingDelegate["onMovePath"])
|
|||
|
FS.trackingDelegate["onMovePath"](old_path, new_path);
|
|||
|
} catch (e) {
|
|||
|
err("FS.trackingDelegate['onMovePath']('" + old_path + "', '" + new_path + "') threw an exception: " + e.message);
|
|||
|
}
|
|||
|
},
|
|||
|
rmdir: function(path) {
|
|||
|
var lookup = FS.lookupPath(path, {parent: true});
|
|||
|
var parent = lookup.node;
|
|||
|
var name = PATH.basename(path);
|
|||
|
var node = FS.lookupNode(parent, name);
|
|||
|
var errCode = FS.mayDelete(parent, name, true);
|
|||
|
if (errCode) {
|
|||
|
throw new FS.ErrnoError(errCode);
|
|||
|
}
|
|||
|
if (!parent.node_ops.rmdir) {
|
|||
|
throw new FS.ErrnoError(63);
|
|||
|
}
|
|||
|
if (FS.isMountpoint(node)) {
|
|||
|
throw new FS.ErrnoError(10);
|
|||
|
}
|
|||
|
try {
|
|||
|
if (FS.trackingDelegate["willDeletePath"]) {
|
|||
|
FS.trackingDelegate["willDeletePath"](path);
|
|||
|
}
|
|||
|
} catch (e) {
|
|||
|
err("FS.trackingDelegate['willDeletePath']('" + path + "') threw an exception: " + e.message);
|
|||
|
}
|
|||
|
parent.node_ops.rmdir(parent, name);
|
|||
|
FS.destroyNode(node);
|
|||
|
try {
|
|||
|
if (FS.trackingDelegate["onDeletePath"])
|
|||
|
FS.trackingDelegate["onDeletePath"](path);
|
|||
|
} catch (e) {
|
|||
|
err("FS.trackingDelegate['onDeletePath']('" + path + "') threw an exception: " + e.message);
|
|||
|
}
|
|||
|
},
|
|||
|
readdir: function(path) {
|
|||
|
var lookup = FS.lookupPath(path, {follow: true});
|
|||
|
var node = lookup.node;
|
|||
|
if (!node.node_ops.readdir) {
|
|||
|
throw new FS.ErrnoError(54);
|
|||
|
}
|
|||
|
return node.node_ops.readdir(node);
|
|||
|
},
|
|||
|
unlink: function(path) {
|
|||
|
var lookup = FS.lookupPath(path, {parent: true});
|
|||
|
var parent = lookup.node;
|
|||
|
var name = PATH.basename(path);
|
|||
|
var node = FS.lookupNode(parent, name);
|
|||
|
var errCode = FS.mayDelete(parent, name, false);
|
|||
|
if (errCode) {
|
|||
|
throw new FS.ErrnoError(errCode);
|
|||
|
}
|
|||
|
if (!parent.node_ops.unlink) {
|
|||
|
throw new FS.ErrnoError(63);
|
|||
|
}
|
|||
|
if (FS.isMountpoint(node)) {
|
|||
|
throw new FS.ErrnoError(10);
|
|||
|
}
|
|||
|
try {
|
|||
|
if (FS.trackingDelegate["willDeletePath"]) {
|
|||
|
FS.trackingDelegate["willDeletePath"](path);
|
|||
|
}
|
|||
|
} catch (e) {
|
|||
|
err("FS.trackingDelegate['willDeletePath']('" + path + "') threw an exception: " + e.message);
|
|||
|
}
|
|||
|
parent.node_ops.unlink(parent, name);
|
|||
|
FS.destroyNode(node);
|
|||
|
try {
|
|||
|
if (FS.trackingDelegate["onDeletePath"])
|
|||
|
FS.trackingDelegate["onDeletePath"](path);
|
|||
|
} catch (e) {
|
|||
|
err("FS.trackingDelegate['onDeletePath']('" + path + "') threw an exception: " + e.message);
|
|||
|
}
|
|||
|
},
|
|||
|
readlink: function(path) {
|
|||
|
var lookup = FS.lookupPath(path);
|
|||
|
var link = lookup.node;
|
|||
|
if (!link) {
|
|||
|
throw new FS.ErrnoError(44);
|
|||
|
}
|
|||
|
if (!link.node_ops.readlink) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
return PATH_FS.resolve(FS.getPath(link.parent), link.node_ops.readlink(link));
|
|||
|
},
|
|||
|
stat: function(path, dontFollow) {
|
|||
|
var lookup = FS.lookupPath(path, {follow: !dontFollow});
|
|||
|
var node = lookup.node;
|
|||
|
if (!node) {
|
|||
|
throw new FS.ErrnoError(44);
|
|||
|
}
|
|||
|
if (!node.node_ops.getattr) {
|
|||
|
throw new FS.ErrnoError(63);
|
|||
|
}
|
|||
|
return node.node_ops.getattr(node);
|
|||
|
},
|
|||
|
lstat: function(path) {
|
|||
|
return FS.stat(path, true);
|
|||
|
},
|
|||
|
chmod: function(path, mode, dontFollow) {
|
|||
|
var node;
|
|||
|
if (typeof path === "string") {
|
|||
|
var lookup = FS.lookupPath(path, {follow: !dontFollow});
|
|||
|
node = lookup.node;
|
|||
|
} else {
|
|||
|
node = path;
|
|||
|
}
|
|||
|
if (!node.node_ops.setattr) {
|
|||
|
throw new FS.ErrnoError(63);
|
|||
|
}
|
|||
|
node.node_ops.setattr(node, {
|
|||
|
mode: mode & 4095 | node.mode & ~4095,
|
|||
|
timestamp: Date.now()
|
|||
|
});
|
|||
|
},
|
|||
|
lchmod: function(path, mode) {
|
|||
|
FS.chmod(path, mode, true);
|
|||
|
},
|
|||
|
fchmod: function(fd, mode) {
|
|||
|
var stream = FS.getStream(fd);
|
|||
|
if (!stream) {
|
|||
|
throw new FS.ErrnoError(8);
|
|||
|
}
|
|||
|
FS.chmod(stream.node, mode);
|
|||
|
},
|
|||
|
chown: function(path, uid, gid, dontFollow) {
|
|||
|
var node;
|
|||
|
if (typeof path === "string") {
|
|||
|
var lookup = FS.lookupPath(path, {follow: !dontFollow});
|
|||
|
node = lookup.node;
|
|||
|
} else {
|
|||
|
node = path;
|
|||
|
}
|
|||
|
if (!node.node_ops.setattr) {
|
|||
|
throw new FS.ErrnoError(63);
|
|||
|
}
|
|||
|
node.node_ops.setattr(node, {timestamp: Date.now()});
|
|||
|
},
|
|||
|
lchown: function(path, uid, gid) {
|
|||
|
FS.chown(path, uid, gid, true);
|
|||
|
},
|
|||
|
fchown: function(fd, uid, gid) {
|
|||
|
var stream = FS.getStream(fd);
|
|||
|
if (!stream) {
|
|||
|
throw new FS.ErrnoError(8);
|
|||
|
}
|
|||
|
FS.chown(stream.node, uid, gid);
|
|||
|
},
|
|||
|
truncate: function(path, len) {
|
|||
|
if (len < 0) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
var node;
|
|||
|
if (typeof path === "string") {
|
|||
|
var lookup = FS.lookupPath(path, {follow: true});
|
|||
|
node = lookup.node;
|
|||
|
} else {
|
|||
|
node = path;
|
|||
|
}
|
|||
|
if (!node.node_ops.setattr) {
|
|||
|
throw new FS.ErrnoError(63);
|
|||
|
}
|
|||
|
if (FS.isDir(node.mode)) {
|
|||
|
throw new FS.ErrnoError(31);
|
|||
|
}
|
|||
|
if (!FS.isFile(node.mode)) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
var errCode = FS.nodePermissions(node, "w");
|
|||
|
if (errCode) {
|
|||
|
throw new FS.ErrnoError(errCode);
|
|||
|
}
|
|||
|
node.node_ops.setattr(node, {size: len, timestamp: Date.now()});
|
|||
|
},
|
|||
|
ftruncate: function(fd, len) {
|
|||
|
var stream = FS.getStream(fd);
|
|||
|
if (!stream) {
|
|||
|
throw new FS.ErrnoError(8);
|
|||
|
}
|
|||
|
if ((stream.flags & 2097155) === 0) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
FS.truncate(stream.node, len);
|
|||
|
},
|
|||
|
utime: function(path, atime, mtime) {
|
|||
|
var lookup = FS.lookupPath(path, {follow: true});
|
|||
|
var node = lookup.node;
|
|||
|
node.node_ops.setattr(node, {timestamp: Math.max(atime, mtime)});
|
|||
|
},
|
|||
|
open: function(path, flags, mode, fd_start, fd_end) {
|
|||
|
if (path === "") {
|
|||
|
throw new FS.ErrnoError(44);
|
|||
|
}
|
|||
|
flags = typeof flags === "string" ? FS.modeStringToFlags(flags) : flags;
|
|||
|
mode = typeof mode === "undefined" ? 438 : mode;
|
|||
|
if (flags & 64) {
|
|||
|
mode = mode & 4095 | 32768;
|
|||
|
} else {
|
|||
|
mode = 0;
|
|||
|
}
|
|||
|
var node;
|
|||
|
if (typeof path === "object") {
|
|||
|
node = path;
|
|||
|
} else {
|
|||
|
path = PATH.normalize(path);
|
|||
|
try {
|
|||
|
var lookup = FS.lookupPath(path, {follow: !(flags & 131072)});
|
|||
|
node = lookup.node;
|
|||
|
} catch (e) {
|
|||
|
}
|
|||
|
}
|
|||
|
var created = false;
|
|||
|
if (flags & 64) {
|
|||
|
if (node) {
|
|||
|
if (flags & 128) {
|
|||
|
throw new FS.ErrnoError(20);
|
|||
|
}
|
|||
|
} else {
|
|||
|
node = FS.mknod(path, mode, 0);
|
|||
|
created = true;
|
|||
|
}
|
|||
|
}
|
|||
|
if (!node) {
|
|||
|
throw new FS.ErrnoError(44);
|
|||
|
}
|
|||
|
if (FS.isChrdev(node.mode)) {
|
|||
|
flags &= ~512;
|
|||
|
}
|
|||
|
if (flags & 65536 && !FS.isDir(node.mode)) {
|
|||
|
throw new FS.ErrnoError(54);
|
|||
|
}
|
|||
|
if (!created) {
|
|||
|
var errCode = FS.mayOpen(node, flags);
|
|||
|
if (errCode) {
|
|||
|
throw new FS.ErrnoError(errCode);
|
|||
|
}
|
|||
|
}
|
|||
|
if (flags & 512) {
|
|||
|
FS.truncate(node, 0);
|
|||
|
}
|
|||
|
flags &= ~(128 | 512 | 131072);
|
|||
|
var stream = FS.createStream({
|
|||
|
node,
|
|||
|
path: FS.getPath(node),
|
|||
|
flags,
|
|||
|
seekable: true,
|
|||
|
position: 0,
|
|||
|
stream_ops: node.stream_ops,
|
|||
|
ungotten: [],
|
|||
|
error: false
|
|||
|
}, fd_start, fd_end);
|
|||
|
if (stream.stream_ops.open) {
|
|||
|
stream.stream_ops.open(stream);
|
|||
|
}
|
|||
|
if (Module["logReadFiles"] && !(flags & 1)) {
|
|||
|
if (!FS.readFiles)
|
|||
|
FS.readFiles = {};
|
|||
|
if (!(path in FS.readFiles)) {
|
|||
|
FS.readFiles[path] = 1;
|
|||
|
err("FS.trackingDelegate error on read file: " + path);
|
|||
|
}
|
|||
|
}
|
|||
|
try {
|
|||
|
if (FS.trackingDelegate["onOpenFile"]) {
|
|||
|
var trackingFlags = 0;
|
|||
|
if ((flags & 2097155) !== 1) {
|
|||
|
trackingFlags |= FS.tracking.openFlags.READ;
|
|||
|
}
|
|||
|
if ((flags & 2097155) !== 0) {
|
|||
|
trackingFlags |= FS.tracking.openFlags.WRITE;
|
|||
|
}
|
|||
|
FS.trackingDelegate["onOpenFile"](path, trackingFlags);
|
|||
|
}
|
|||
|
} catch (e) {
|
|||
|
err("FS.trackingDelegate['onOpenFile']('" + path + "', flags) threw an exception: " + e.message);
|
|||
|
}
|
|||
|
return stream;
|
|||
|
},
|
|||
|
close: function(stream) {
|
|||
|
if (FS.isClosed(stream)) {
|
|||
|
throw new FS.ErrnoError(8);
|
|||
|
}
|
|||
|
if (stream.getdents)
|
|||
|
stream.getdents = null;
|
|||
|
try {
|
|||
|
if (stream.stream_ops.close) {
|
|||
|
stream.stream_ops.close(stream);
|
|||
|
}
|
|||
|
} catch (e) {
|
|||
|
throw e;
|
|||
|
} finally {
|
|||
|
FS.closeStream(stream.fd);
|
|||
|
}
|
|||
|
stream.fd = null;
|
|||
|
},
|
|||
|
isClosed: function(stream) {
|
|||
|
return stream.fd === null;
|
|||
|
},
|
|||
|
llseek: function(stream, offset, whence) {
|
|||
|
if (FS.isClosed(stream)) {
|
|||
|
throw new FS.ErrnoError(8);
|
|||
|
}
|
|||
|
if (!stream.seekable || !stream.stream_ops.llseek) {
|
|||
|
throw new FS.ErrnoError(70);
|
|||
|
}
|
|||
|
if (whence != 0 && whence != 1 && whence != 2) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
stream.position = stream.stream_ops.llseek(stream, offset, whence);
|
|||
|
stream.ungotten = [];
|
|||
|
return stream.position;
|
|||
|
},
|
|||
|
read: function(stream, buffer2, offset, length, position) {
|
|||
|
if (length < 0 || position < 0) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
if (FS.isClosed(stream)) {
|
|||
|
throw new FS.ErrnoError(8);
|
|||
|
}
|
|||
|
if ((stream.flags & 2097155) === 1) {
|
|||
|
throw new FS.ErrnoError(8);
|
|||
|
}
|
|||
|
if (FS.isDir(stream.node.mode)) {
|
|||
|
throw new FS.ErrnoError(31);
|
|||
|
}
|
|||
|
if (!stream.stream_ops.read) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
var seeking = typeof position !== "undefined";
|
|||
|
if (!seeking) {
|
|||
|
position = stream.position;
|
|||
|
} else if (!stream.seekable) {
|
|||
|
throw new FS.ErrnoError(70);
|
|||
|
}
|
|||
|
var bytesRead = stream.stream_ops.read(stream, buffer2, offset, length, position);
|
|||
|
if (!seeking)
|
|||
|
stream.position += bytesRead;
|
|||
|
return bytesRead;
|
|||
|
},
|
|||
|
write: function(stream, buffer2, offset, length, position, canOwn) {
|
|||
|
if (length < 0 || position < 0) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
if (FS.isClosed(stream)) {
|
|||
|
throw new FS.ErrnoError(8);
|
|||
|
}
|
|||
|
if ((stream.flags & 2097155) === 0) {
|
|||
|
throw new FS.ErrnoError(8);
|
|||
|
}
|
|||
|
if (FS.isDir(stream.node.mode)) {
|
|||
|
throw new FS.ErrnoError(31);
|
|||
|
}
|
|||
|
if (!stream.stream_ops.write) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
if (stream.seekable && stream.flags & 1024) {
|
|||
|
FS.llseek(stream, 0, 2);
|
|||
|
}
|
|||
|
var seeking = typeof position !== "undefined";
|
|||
|
if (!seeking) {
|
|||
|
position = stream.position;
|
|||
|
} else if (!stream.seekable) {
|
|||
|
throw new FS.ErrnoError(70);
|
|||
|
}
|
|||
|
var bytesWritten = stream.stream_ops.write(stream, buffer2, offset, length, position, canOwn);
|
|||
|
if (!seeking)
|
|||
|
stream.position += bytesWritten;
|
|||
|
try {
|
|||
|
if (stream.path && FS.trackingDelegate["onWriteToFile"])
|
|||
|
FS.trackingDelegate["onWriteToFile"](stream.path);
|
|||
|
} catch (e) {
|
|||
|
err("FS.trackingDelegate['onWriteToFile']('" + stream.path + "') threw an exception: " + e.message);
|
|||
|
}
|
|||
|
return bytesWritten;
|
|||
|
},
|
|||
|
allocate: function(stream, offset, length) {
|
|||
|
if (FS.isClosed(stream)) {
|
|||
|
throw new FS.ErrnoError(8);
|
|||
|
}
|
|||
|
if (offset < 0 || length <= 0) {
|
|||
|
throw new FS.ErrnoError(28);
|
|||
|
}
|
|||
|
if ((stream.flags & 2097155) === 0) {
|
|||
|
throw new FS.ErrnoError(8);
|
|||
|
}
|
|||
|
if (!FS.isFile(stream.node.mode) && !FS.isDir(stream.node.mode)) {
|
|||
|
throw new FS.ErrnoError(43);
|
|||
|
}
|
|||
|
if (!stream.stream_ops.allocate) {
|
|||
|
throw new FS.ErrnoError(138);
|
|||
|
}
|
|||
|
stream.stream_ops.allocate(stream, offset, length);
|
|||
|
},
|
|||
|
mmap: function(stream, address, length, position, prot, flags) {
|
|||
|
if ((prot & 2) !== 0 && (flags & 2) === 0 && (stream.flags & 2097155) !== 2) {
|
|||
|
throw new FS.ErrnoError(2);
|
|||
|
}
|
|||
|
if ((stream.flags & 2097155) === 1) {
|
|||
|
throw new FS.ErrnoError(2);
|
|||
|
}
|
|||
|
if (!stream.stream_ops.mmap) {
|
|||
|
throw new FS.ErrnoError(43);
|
|||
|
}
|
|||
|
return stream.stream_ops.mmap(stream, address, length, position, prot, flags);
|
|||
|
},
|
|||
|
msync: function(stream, buffer2, offset, length, mmapFlags) {
|
|||
|
if (!stream || !stream.stream_ops.msync) {
|
|||
|
return 0;
|
|||
|
}
|
|||
|
return stream.stream_ops.msync(stream, buffer2, offset, length, mmapFlags);
|
|||
|
},
|
|||
|
munmap: function(stream) {
|
|||
|
return 0;
|
|||
|
},
|
|||
|
ioctl: function(stream, cmd, arg) {
|
|||
|
if (!stream.stream_ops.ioctl) {
|
|||
|
throw new FS.ErrnoError(59);
|
|||
|
}
|
|||
|
return stream.stream_ops.ioctl(stream, cmd, arg);
|
|||
|
},
|
|||
|
readFile: function(path, opts) {
|
|||
|
opts = opts || {};
|
|||
|
opts.flags = opts.flags || 0;
|
|||
|
opts.encoding = opts.encoding || "binary";
|
|||
|
if (opts.encoding !== "utf8" && opts.encoding !== "binary") {
|
|||
|
throw new Error('Invalid encoding type "' + opts.encoding + '"');
|
|||
|
}
|
|||
|
var ret;
|
|||
|
var stream = FS.open(path, opts.flags);
|
|||
|
var stat = FS.stat(path);
|
|||
|
var length = stat.size;
|
|||
|
var buf = new Uint8Array(length);
|
|||
|
FS.read(stream, buf, 0, length, 0);
|
|||
|
if (opts.encoding === "utf8") {
|
|||
|
ret = UTF8ArrayToString(buf, 0);
|
|||
|
} else if (opts.encoding === "binary") {
|
|||
|
ret = buf;
|
|||
|
}
|
|||
|
FS.close(stream);
|
|||
|
return ret;
|
|||
|
},
|
|||
|
writeFile: function(path, data, opts) {
|
|||
|
opts = opts || {};
|
|||
|
opts.flags = opts.flags || 577;
|
|||
|
var stream = FS.open(path, opts.flags, opts.mode);
|
|||
|
if (typeof data === "string") {
|
|||
|
var buf = new Uint8Array(lengthBytesUTF8(data) + 1);
|
|||
|
var actualNumBytes = stringToUTF8Array(data, buf, 0, buf.length);
|
|||
|
FS.write(stream, buf, 0, actualNumBytes, void 0, opts.canOwn);
|
|||
|
} else if (ArrayBuffer.isView(data)) {
|
|||
|
FS.write(stream, data, 0, data.byteLength, void 0, opts.canOwn);
|
|||
|
} else {
|
|||
|
throw new Error("Unsupported data type");
|
|||
|
}
|
|||
|
FS.close(stream);
|
|||
|
},
|
|||
|
cwd: function() {
|
|||
|
return FS.currentPath;
|
|||
|
},
|
|||
|
chdir: function(path) {
|
|||
|
var lookup = FS.lookupPath(path, {follow: true});
|
|||
|
if (lookup.node === null) {
|
|||
|
throw new FS.ErrnoError(44);
|
|||
|
}
|
|||
|
if (!FS.isDir(lookup.node.mode)) {
|
|||
|
throw new FS.ErrnoError(54);
|
|||
|
}
|
|||
|
var errCode = FS.nodePermissions(lookup.node, "x");
|
|||
|
if (errCode) {
|
|||
|
throw new FS.ErrnoError(errCode);
|
|||
|
}
|
|||
|
FS.currentPath = lookup.path;
|
|||
|
},
|
|||
|
createDefaultDirectories: function() {
|
|||
|
FS.mkdir("/tmp");
|
|||
|
FS.mkdir("/home");
|
|||
|
FS.mkdir("/home/web_user");
|
|||
|
},
|
|||
|
createDefaultDevices: function() {
|
|||
|
FS.mkdir("/dev");
|
|||
|
FS.registerDevice(FS.makedev(1, 3), {
|
|||
|
read: function() {
|
|||
|
return 0;
|
|||
|
},
|
|||
|
write: function(stream, buffer2, offset, length, pos) {
|
|||
|
return length;
|
|||
|
}
|
|||
|
});
|
|||
|
FS.mkdev("/dev/null", FS.makedev(1, 3));
|
|||
|
TTY.register(FS.makedev(5, 0), TTY.default_tty_ops);
|
|||
|
TTY.register(FS.makedev(6, 0), TTY.default_tty1_ops);
|
|||
|
FS.mkdev("/dev/tty", FS.makedev(5, 0));
|
|||
|
FS.mkdev("/dev/tty1", FS.makedev(6, 0));
|
|||
|
var random_device = getRandomDevice();
|
|||
|
FS.createDevice("/dev", "random", random_device);
|
|||
|
FS.createDevice("/dev", "urandom", random_device);
|
|||
|
FS.mkdir("/dev/shm");
|
|||
|
FS.mkdir("/dev/shm/tmp");
|
|||
|
},
|
|||
|
createSpecialDirectories: function() {
|
|||
|
FS.mkdir("/proc");
|
|||
|
var proc_self = FS.mkdir("/proc/self");
|
|||
|
FS.mkdir("/proc/self/fd");
|
|||
|
FS.mount({
|
|||
|
mount: function() {
|
|||
|
var node = FS.createNode(proc_self, "fd", 16384 | 511, 73);
|
|||
|
node.node_ops = {
|
|||
|
lookup: function(parent, name) {
|
|||
|
var fd = +name;
|
|||
|
var stream = FS.getStream(fd);
|
|||
|
if (!stream)
|
|||
|
throw new FS.ErrnoError(8);
|
|||
|
var ret = {
|
|||
|
parent: null,
|
|||
|
mount: {mountpoint: "fake"},
|
|||
|
node_ops: {
|
|||
|
readlink: function() {
|
|||
|
return stream.path;
|
|||
|
}
|
|||
|
}
|
|||
|
};
|
|||
|
ret.parent = ret;
|
|||
|
return ret;
|
|||
|
}
|
|||
|
};
|
|||
|
return node;
|
|||
|
}
|
|||
|
}, {}, "/proc/self/fd");
|
|||
|
},
|
|||
|
createStandardStreams: function() {
|
|||
|
if (Module["stdin"]) {
|
|||
|
FS.createDevice("/dev", "stdin", Module["stdin"]);
|
|||
|
} else {
|
|||
|
FS.symlink("/dev/tty", "/dev/stdin");
|
|||
|
}
|
|||
|
if (Module["stdout"]) {
|
|||
|
FS.createDevice("/dev", "stdout", null, Module["stdout"]);
|
|||
|
} else {
|
|||
|
FS.symlink("/dev/tty", "/dev/stdout");
|
|||
|
}
|
|||
|
if (Module["stderr"]) {
|
|||
|
FS.createDevice("/dev", "stderr", null, Module["stderr"]);
|
|||
|
} else {
|
|||
|
FS.symlink("/dev/tty1", "/dev/stderr");
|
|||
|
}
|
|||
|
FS.open("/dev/stdin", 0);
|
|||
|
FS.open("/dev/stdout", 1);
|
|||
|
FS.open("/dev/stderr", 1);
|
|||
|
},
|
|||
|
ensureErrnoError: function() {
|
|||
|
if (FS.ErrnoError)
|
|||
|
return;
|
|||
|
FS.ErrnoError = function ErrnoError(errno, node) {
|
|||
|
this.node = node;
|
|||
|
this.setErrno = function(errno2) {
|
|||
|
this.errno = errno2;
|
|||
|
};
|
|||
|
this.setErrno(errno);
|
|||
|
this.message = "FS error";
|
|||
|
};
|
|||
|
FS.ErrnoError.prototype = new Error();
|
|||
|
FS.ErrnoError.prototype.constructor = FS.ErrnoError;
|
|||
|
[44].forEach(function(code) {
|
|||
|
FS.genericErrors[code] = new FS.ErrnoError(code);
|
|||
|
FS.genericErrors[code].stack = "<generic error, no stack>";
|
|||
|
});
|
|||
|
},
|
|||
|
staticInit: function() {
|
|||
|
FS.ensureErrnoError();
|
|||
|
FS.nameTable = new Array(4096);
|
|||
|
FS.mount(MEMFS, {}, "/");
|
|||
|
FS.createDefaultDirectories();
|
|||
|
FS.createDefaultDevices();
|
|||
|
FS.createSpecialDirectories();
|
|||
|
FS.filesystems = {MEMFS, NODEFS};
|
|||
|
},
|
|||
|
init: function(input, output, error) {
|
|||
|
FS.init.initialized = true;
|
|||
|
FS.ensureErrnoError();
|
|||
|
Module["stdin"] = input || Module["stdin"];
|
|||
|
Module["stdout"] = output || Module["stdout"];
|
|||
|
Module["stderr"] = error || Module["stderr"];
|
|||
|
FS.createStandardStreams();
|
|||
|
},
|
|||
|
quit: function() {
|
|||
|
FS.init.initialized = false;
|
|||
|
var fflush = Module["_fflush"];
|
|||
|
if (fflush)
|
|||
|
fflush(0);
|
|||
|
for (var i = 0; i < FS.streams.length; i++) {
|
|||
|
var stream = FS.streams[i];
|
|||
|
if (!stream) {
|
|||
|
continue;
|
|||
|
}
|
|||
|
FS.close(stream);
|
|||
|
}
|
|||
|
},
|
|||
|
getMode: function(canRead, canWrite) {
|
|||
|
var mode = 0;
|
|||
|
if (canRead)
|
|||
|
mode |= 292 | 73;
|
|||
|
if (canWrite)
|
|||
|
mode |= 146;
|
|||
|
return mode;
|
|||
|
},
|
|||
|
findObject: function(path, dontResolveLastLink) {
|
|||
|
var ret = FS.analyzePath(path, dontResolveLastLink);
|
|||
|
if (ret.exists) {
|
|||
|
return ret.object;
|
|||
|
} else {
|
|||
|
return null;
|
|||
|
}
|
|||
|
},
|
|||
|
analyzePath: function(path, dontResolveLastLink) {
|
|||
|
try {
|
|||
|
var lookup = FS.lookupPath(path, {follow: !dontResolveLastLink});
|
|||
|
path = lookup.path;
|
|||
|
} catch (e) {
|
|||
|
}
|
|||
|
var ret = {
|
|||
|
isRoot: false,
|
|||
|
exists: false,
|
|||
|
error: 0,
|
|||
|
name: null,
|
|||
|
path: null,
|
|||
|
object: null,
|
|||
|
parentExists: false,
|
|||
|
parentPath: null,
|
|||
|
parentObject: null
|
|||
|
};
|
|||
|
try {
|
|||
|
var lookup = FS.lookupPath(path, {parent: true});
|
|||
|
ret.parentExists = true;
|
|||
|
ret.parentPath = lookup.path;
|
|||
|
ret.parentObject = lookup.node;
|
|||
|
ret.name = PATH.basename(path);
|
|||
|
lookup = FS.lookupPath(path, {follow: !dontResolveLastLink});
|
|||
|
ret.exists = true;
|
|||
|
ret.path = lookup.path;
|
|||
|
ret.object = lookup.node;
|
|||
|
ret.name = lookup.node.name;
|
|||
|
ret.isRoot = lookup.path === "/";
|
|||
|
} catch (e) {
|
|||
|
ret.error = e.errno;
|
|||
|
}
|
|||
|
return ret;
|
|||
|
},
|
|||
|
createPath: function(parent, path, canRead, canWrite) {
|
|||
|
parent = typeof parent === "string" ? parent : FS.getPath(parent);
|
|||
|
var parts = path.split("/").reverse();
|
|||
|
while (parts.length) {
|
|||
|
var part = parts.pop();
|
|||
|
if (!part)
|
|||
|
continue;
|
|||
|
var current = PATH.join2(parent, part);
|
|||
|
try {
|
|||
|
FS.mkdir(current);
|
|||
|
} catch (e) {
|
|||
|
}
|
|||
|
parent = current;
|
|||
|
}
|
|||
|
return current;
|
|||
|
},
|
|||
|
createFile: function(parent, name, properties, canRead, canWrite) {
|
|||
|
var path = PATH.join2(typeof parent === "string" ? parent : FS.getPath(parent), name);
|
|||
|
var mode = FS.getMode(canRead, canWrite);
|
|||
|
return FS.create(path, mode);
|
|||
|
},
|
|||
|
createDataFile: function(parent, name, data, canRead, canWrite, canOwn) {
|
|||
|
var path = name ? PATH.join2(typeof parent === "string" ? parent : FS.getPath(parent), name) : parent;
|
|||
|
var mode = FS.getMode(canRead, canWrite);
|
|||
|
var node = FS.create(path, mode);
|
|||
|
if (data) {
|
|||
|
if (typeof data === "string") {
|
|||
|
var arr = new Array(data.length);
|
|||
|
for (var i = 0, len = data.length; i < len; ++i)
|
|||
|
arr[i] = data.charCodeAt(i);
|
|||
|
data = arr;
|
|||
|
}
|
|||
|
FS.chmod(node, mode | 146);
|
|||
|
var stream = FS.open(node, 577);
|
|||
|
FS.write(stream, data, 0, data.length, 0, canOwn);
|
|||
|
FS.close(stream);
|
|||
|
FS.chmod(node, mode);
|
|||
|
}
|
|||
|
return node;
|
|||
|
},
|
|||
|
createDevice: function(parent, name, input, output) {
|
|||
|
var path = PATH.join2(typeof parent === "string" ? parent : FS.getPath(parent), name);
|
|||
|
var mode = FS.getMode(!!input, !!output);
|
|||
|
if (!FS.createDevice.major)
|
|||
|
FS.createDevice.major = 64;
|
|||
|
var dev = FS.makedev(FS.createDevice.major++, 0);
|
|||
|
FS.registerDevice(dev, {
|
|||
|
open: function(stream) {
|
|||
|
stream.seekable = false;
|
|||
|
},
|
|||
|
close: function(stream) {
|
|||
|
if (output && output.buffer && output.buffer.length) {
|
|||
|
output(10);
|
|||
|
}
|
|||
|
},
|
|||
|
read: function(stream, buffer2, offset, length, pos) {
|
|||
|
var bytesRead = 0;
|
|||
|
for (var i = 0; i < length; i++) {
|
|||
|
var result;
|
|||
|
try {
|
|||
|
result = input();
|
|||
|
} catch (e) {
|
|||
|
throw new FS.ErrnoError(29);
|
|||
|
}
|
|||
|
if (result === void 0 && bytesRead === 0) {
|
|||
|
throw new FS.ErrnoError(6);
|
|||
|
}
|
|||
|
if (result === null || result === void 0)
|
|||
|
break;
|
|||
|
bytesRead++;
|
|||
|
buffer2[offset + i] = result;
|
|||
|
}
|
|||
|
if (bytesRead) {
|
|||
|
stream.node.timestamp = Date.now();
|
|||
|
}
|
|||
|
return bytesRead;
|
|||
|
},
|
|||
|
write: function(stream, buffer2, offset, length, pos) {
|
|||
|
for (var i = 0; i < length; i++) {
|
|||
|
try {
|
|||
|
output(buffer2[offset + i]);
|
|||
|
} catch (e) {
|
|||
|
throw new FS.ErrnoError(29);
|
|||
|
}
|
|||
|
}
|
|||
|
if (length) {
|
|||
|
stream.node.timestamp = Date.now();
|
|||
|
}
|
|||
|
return i;
|
|||
|
}
|
|||
|
});
|
|||
|
return FS.mkdev(path, mode, dev);
|
|||
|
},
|
|||
|
forceLoadFile: function(obj) {
|
|||
|
if (obj.isDevice || obj.isFolder || obj.link || obj.contents)
|
|||
|
return true;
|
|||
|
if (read_) {
|
|||
|
try {
|
|||
|
obj.contents = intArrayFromString(read_(obj.url), true);
|
|||
|
obj.usedBytes = obj.contents.length;
|
|||
|
} catch (e) {
|
|||
|
throw new FS.ErrnoError(29);
|
|||
|
}
|
|||
|
} else {
|
|||
|
throw new Error("Cannot load without read() or XMLHttpRequest.");
|
|||
|
}
|
|||
|
},
|
|||
|
createLazyFile: function(parent, name, url, canRead, canWrite) {
|
|||
|
var properties; {
|
|||
|
var properties = {isDevice: false, url};
|
|||
|
}
|
|||
|
var node = FS.createFile(parent, name, properties, canRead, canWrite);
|
|||
|
if (properties.contents) {
|
|||
|
node.contents = properties.contents;
|
|||
|
} else if (properties.url) {
|
|||
|
node.contents = null;
|
|||
|
node.url = properties.url;
|
|||
|
}
|
|||
|
Object.defineProperties(node, {
|
|||
|
usedBytes: {
|
|||
|
get: function() {
|
|||
|
return this.contents.length;
|
|||
|
}
|
|||
|
}
|
|||
|
});
|
|||
|
var stream_ops = {};
|
|||
|
var keys = Object.keys(node.stream_ops);
|
|||
|
keys.forEach(function(key2) {
|
|||
|
var fn = node.stream_ops[key2];
|
|||
|
stream_ops[key2] = function forceLoadLazyFile() {
|
|||
|
FS.forceLoadFile(node);
|
|||
|
return fn.apply(null, arguments);
|
|||
|
};
|
|||
|
});
|
|||
|
stream_ops.read = function stream_ops_read(stream, buffer2, offset, length, position) {
|
|||
|
FS.forceLoadFile(node);
|
|||
|
var contents = stream.node.contents;
|
|||
|
if (position >= contents.length)
|
|||
|
return 0;
|
|||
|
var size = Math.min(contents.length - position, length);
|
|||
|
if (contents.slice) {
|
|||
|
for (var i = 0; i < size; i++) {
|
|||
|
buffer2[offset + i] = contents[position + i];
|
|||
|
}
|
|||
|
} else {
|
|||
|
for (var i = 0; i < size; i++) {
|
|||
|
buffer2[offset + i] = contents.get(position + i);
|
|||
|
}
|
|||
|
}
|
|||
|
return size;
|
|||
|
};
|
|||
|
node.stream_ops = stream_ops;
|
|||
|
return node;
|
|||
|
},
|
|||
|
createPreloadedFile: function(parent, name, url, canRead, canWrite, onload, onerror, dontCreateFile, canOwn, preFinish) {
|
|||
|
Browser.init();
|
|||
|
var fullname = name ? PATH_FS.resolve(PATH.join2(parent, name)) : parent;
|
|||
|
function processData(byteArray) {
|
|||
|
function finish(byteArray2) {
|
|||
|
if (preFinish)
|
|||
|
preFinish();
|
|||
|
if (!dontCreateFile) {
|
|||
|
FS.createDataFile(parent, name, byteArray2, canRead, canWrite, canOwn);
|
|||
|
}
|
|||
|
if (onload)
|
|||
|
onload();
|
|||
|
removeRunDependency();
|
|||
|
}
|
|||
|
var handled = false;
|
|||
|
Module["preloadPlugins"].forEach(function(plugin) {
|
|||
|
if (handled)
|
|||
|
return;
|
|||
|
if (plugin["canHandle"](fullname)) {
|
|||
|
plugin["handle"](byteArray, fullname, finish, function() {
|
|||
|
if (onerror)
|
|||
|
onerror();
|
|||
|
removeRunDependency();
|
|||
|
});
|
|||
|
handled = true;
|
|||
|
}
|
|||
|
});
|
|||
|
if (!handled)
|
|||
|
finish(byteArray);
|
|||
|
}
|
|||
|
addRunDependency();
|
|||
|
if (typeof url == "string") {
|
|||
|
Browser.asyncLoad(url, function(byteArray) {
|
|||
|
processData(byteArray);
|
|||
|
}, onerror);
|
|||
|
} else {
|
|||
|
processData(url);
|
|||
|
}
|
|||
|
},
|
|||
|
indexedDB: function() {
|
|||
|
return window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
|
|||
|
},
|
|||
|
DB_NAME: function() {
|
|||
|
return "EM_FS_" + window.location.pathname;
|
|||
|
},
|
|||
|
DB_VERSION: 20,
|
|||
|
DB_STORE_NAME: "FILE_DATA",
|
|||
|
saveFilesToDB: function(paths, onload, onerror) {
|
|||
|
onload = onload || function() {
|
|||
|
};
|
|||
|
onerror = onerror || function() {
|
|||
|
};
|
|||
|
var indexedDB = FS.indexedDB();
|
|||
|
try {
|
|||
|
var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
|
|||
|
} catch (e) {
|
|||
|
return onerror(e);
|
|||
|
}
|
|||
|
openRequest.onupgradeneeded = function openRequest_onupgradeneeded() {
|
|||
|
out("creating db");
|
|||
|
var db = openRequest.result;
|
|||
|
db.createObjectStore(FS.DB_STORE_NAME);
|
|||
|
};
|
|||
|
openRequest.onsuccess = function openRequest_onsuccess() {
|
|||
|
var db = openRequest.result;
|
|||
|
var transaction = db.transaction([FS.DB_STORE_NAME], "readwrite");
|
|||
|
var files = transaction.objectStore(FS.DB_STORE_NAME);
|
|||
|
var ok = 0, fail = 0, total = paths.length;
|
|||
|
function finish() {
|
|||
|
if (fail == 0)
|
|||
|
onload();
|
|||
|
else
|
|||
|
onerror();
|
|||
|
}
|
|||
|
paths.forEach(function(path) {
|
|||
|
var putRequest = files.put(FS.analyzePath(path).object.contents, path);
|
|||
|
putRequest.onsuccess = function putRequest_onsuccess() {
|
|||
|
ok++;
|
|||
|
if (ok + fail == total)
|
|||
|
finish();
|
|||
|
};
|
|||
|
putRequest.onerror = function putRequest_onerror() {
|
|||
|
fail++;
|
|||
|
if (ok + fail == total)
|
|||
|
finish();
|
|||
|
};
|
|||
|
});
|
|||
|
transaction.onerror = onerror;
|
|||
|
};
|
|||
|
openRequest.onerror = onerror;
|
|||
|
},
|
|||
|
loadFilesFromDB: function(paths, onload, onerror) {
|
|||
|
onload = onload || function() {
|
|||
|
};
|
|||
|
onerror = onerror || function() {
|
|||
|
};
|
|||
|
var indexedDB = FS.indexedDB();
|
|||
|
try {
|
|||
|
var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
|
|||
|
} catch (e) {
|
|||
|
return onerror(e);
|
|||
|
}
|
|||
|
openRequest.onupgradeneeded = onerror;
|
|||
|
openRequest.onsuccess = function openRequest_onsuccess() {
|
|||
|
var db = openRequest.result;
|
|||
|
try {
|
|||
|
var transaction = db.transaction([FS.DB_STORE_NAME], "readonly");
|
|||
|
} catch (e) {
|
|||
|
onerror(e);
|
|||
|
return;
|
|||
|
}
|
|||
|
var files = transaction.objectStore(FS.DB_STORE_NAME);
|
|||
|
var ok = 0, fail = 0, total = paths.length;
|
|||
|
function finish() {
|
|||
|
if (fail == 0)
|
|||
|
onload();
|
|||
|
else
|
|||
|
onerror();
|
|||
|
}
|
|||
|
paths.forEach(function(path) {
|
|||
|
var getRequest = files.get(path);
|
|||
|
getRequest.onsuccess = function getRequest_onsuccess() {
|
|||
|
if (FS.analyzePath(path).exists) {
|
|||
|
FS.unlink(path);
|
|||
|
}
|
|||
|
FS.createDataFile(PATH.dirname(path), PATH.basename(path), getRequest.result, true, true, true);
|
|||
|
ok++;
|
|||
|
if (ok + fail == total)
|
|||
|
finish();
|
|||
|
};
|
|||
|
getRequest.onerror = function getRequest_onerror() {
|
|||
|
fail++;
|
|||
|
if (ok + fail == total)
|
|||
|
finish();
|
|||
|
};
|
|||
|
});
|
|||
|
transaction.onerror = onerror;
|
|||
|
};
|
|||
|
openRequest.onerror = onerror;
|
|||
|
}
|
|||
|
};
|
|||
|
var SYSCALLS = {
|
|||
|
mappings: {},
|
|||
|
DEFAULT_POLLMASK: 5,
|
|||
|
umask: 511,
|
|||
|
calculateAt: function(dirfd, path, allowEmpty) {
|
|||
|
if (path[0] === "/") {
|
|||
|
return path;
|
|||
|
}
|
|||
|
var dir;
|
|||
|
if (dirfd === -100) {
|
|||
|
dir = FS.cwd();
|
|||
|
} else {
|
|||
|
var dirstream = FS.getStream(dirfd);
|
|||
|
if (!dirstream)
|
|||
|
throw new FS.ErrnoError(8);
|
|||
|
dir = dirstream.path;
|
|||
|
}
|
|||
|
if (path.length == 0) {
|
|||
|
if (!allowEmpty) {
|
|||
|
throw new FS.ErrnoError(44);
|
|||
|
}
|
|||
|
return dir;
|
|||
|
}
|
|||
|
return PATH.join2(dir, path);
|
|||
|
},
|
|||
|
doStat: function(func, path, buf) {
|
|||
|
try {
|
|||
|
var stat = func(path);
|
|||
|
} catch (e) {
|
|||
|
if (e && e.node && PATH.normalize(path) !== PATH.normalize(FS.getPath(e.node))) {
|
|||
|
return -54;
|
|||
|
}
|
|||
|
throw e;
|
|||
|
}
|
|||
|
HEAP32[buf >> 2] = stat.dev;
|
|||
|
HEAP32[buf + 4 >> 2] = 0;
|
|||
|
HEAP32[buf + 8 >> 2] = stat.ino;
|
|||
|
HEAP32[buf + 12 >> 2] = stat.mode;
|
|||
|
HEAP32[buf + 16 >> 2] = stat.nlink;
|
|||
|
HEAP32[buf + 20 >> 2] = stat.uid;
|
|||
|
HEAP32[buf + 24 >> 2] = stat.gid;
|
|||
|
HEAP32[buf + 28 >> 2] = stat.rdev;
|
|||
|
HEAP32[buf + 32 >> 2] = 0;
|
|||
|
tempI64 = [
|
|||
|
stat.size >>> 0,
|
|||
|
(tempDouble = stat.size, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? (Math.min(+Math.floor(tempDouble / 4294967296), 4294967295) | 0) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)
|
|||
|
], HEAP32[buf + 40 >> 2] = tempI64[0], HEAP32[buf + 44 >> 2] = tempI64[1];
|
|||
|
HEAP32[buf + 48 >> 2] = 4096;
|
|||
|
HEAP32[buf + 52 >> 2] = stat.blocks;
|
|||
|
HEAP32[buf + 56 >> 2] = stat.atime.getTime() / 1e3 | 0;
|
|||
|
HEAP32[buf + 60 >> 2] = 0;
|
|||
|
HEAP32[buf + 64 >> 2] = stat.mtime.getTime() / 1e3 | 0;
|
|||
|
HEAP32[buf + 68 >> 2] = 0;
|
|||
|
HEAP32[buf + 72 >> 2] = stat.ctime.getTime() / 1e3 | 0;
|
|||
|
HEAP32[buf + 76 >> 2] = 0;
|
|||
|
tempI64 = [
|
|||
|
stat.ino >>> 0,
|
|||
|
(tempDouble = stat.ino, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? (Math.min(+Math.floor(tempDouble / 4294967296), 4294967295) | 0) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)
|
|||
|
], HEAP32[buf + 80 >> 2] = tempI64[0], HEAP32[buf + 84 >> 2] = tempI64[1];
|
|||
|
return 0;
|
|||
|
},
|
|||
|
doMsync: function(addr, stream, len, flags, offset) {
|
|||
|
var buffer2 = HEAPU8.slice(addr, addr + len);
|
|||
|
FS.msync(stream, buffer2, offset, len, flags);
|
|||
|
},
|
|||
|
doMkdir: function(path, mode) {
|
|||
|
path = PATH.normalize(path);
|
|||
|
if (path[path.length - 1] === "/")
|
|||
|
path = path.substr(0, path.length - 1);
|
|||
|
FS.mkdir(path, mode, 0);
|
|||
|
return 0;
|
|||
|
},
|
|||
|
doMknod: function(path, mode, dev) {
|
|||
|
switch (mode & 61440) {
|
|||
|
case 32768:
|
|||
|
case 8192:
|
|||
|
case 24576:
|
|||
|
case 4096:
|
|||
|
case 49152:
|
|||
|
break;
|
|||
|
default:
|
|||
|
return -28;
|
|||
|
}
|
|||
|
FS.mknod(path, mode, dev);
|
|||
|
return 0;
|
|||
|
},
|
|||
|
doReadlink: function(path, buf, bufsize) {
|
|||
|
if (bufsize <= 0)
|
|||
|
return -28;
|
|||
|
var ret = FS.readlink(path);
|
|||
|
var len = Math.min(bufsize, lengthBytesUTF8(ret));
|
|||
|
var endChar = HEAP8[buf + len];
|
|||
|
stringToUTF8(ret, buf, bufsize + 1);
|
|||
|
HEAP8[buf + len] = endChar;
|
|||
|
return len;
|
|||
|
},
|
|||
|
doAccess: function(path, amode) {
|
|||
|
if (amode & ~7) {
|
|||
|
return -28;
|
|||
|
}
|
|||
|
var node;
|
|||
|
var lookup = FS.lookupPath(path, {follow: true});
|
|||
|
node = lookup.node;
|
|||
|
if (!node) {
|
|||
|
return -44;
|
|||
|
}
|
|||
|
var perms = "";
|
|||
|
if (amode & 4)
|
|||
|
perms += "r";
|
|||
|
if (amode & 2)
|
|||
|
perms += "w";
|
|||
|
if (amode & 1)
|
|||
|
perms += "x";
|
|||
|
if (perms && FS.nodePermissions(node, perms)) {
|
|||
|
return -2;
|
|||
|
}
|
|||
|
return 0;
|
|||
|
},
|
|||
|
doDup: function(path, flags, suggestFD) {
|
|||
|
var suggest = FS.getStream(suggestFD);
|
|||
|
if (suggest)
|
|||
|
FS.close(suggest);
|
|||
|
return FS.open(path, flags, 0, suggestFD, suggestFD).fd;
|
|||
|
},
|
|||
|
doReadv: function(stream, iov, iovcnt, offset) {
|
|||
|
var ret = 0;
|
|||
|
for (var i = 0; i < iovcnt; i++) {
|
|||
|
var ptr = HEAP32[iov + i * 8 >> 2];
|
|||
|
var len = HEAP32[iov + (i * 8 + 4) >> 2];
|
|||
|
var curr = FS.read(stream, HEAP8, ptr, len, offset);
|
|||
|
if (curr < 0)
|
|||
|
return -1;
|
|||
|
ret += curr;
|
|||
|
if (curr < len)
|
|||
|
break;
|
|||
|
}
|
|||
|
return ret;
|
|||
|
},
|
|||
|
doWritev: function(stream, iov, iovcnt, offset) {
|
|||
|
var ret = 0;
|
|||
|
for (var i = 0; i < iovcnt; i++) {
|
|||
|
var ptr = HEAP32[iov + i * 8 >> 2];
|
|||
|
var len = HEAP32[iov + (i * 8 + 4) >> 2];
|
|||
|
var curr = FS.write(stream, HEAP8, ptr, len, offset);
|
|||
|
if (curr < 0)
|
|||
|
return -1;
|
|||
|
ret += curr;
|
|||
|
}
|
|||
|
return ret;
|
|||
|
},
|
|||
|
varargs: void 0,
|
|||
|
get: function() {
|
|||
|
SYSCALLS.varargs += 4;
|
|||
|
var ret = HEAP32[SYSCALLS.varargs - 4 >> 2];
|
|||
|
return ret;
|
|||
|
},
|
|||
|
getStr: function(ptr) {
|
|||
|
var ret = UTF8ToString(ptr);
|
|||
|
return ret;
|
|||
|
},
|
|||
|
getStreamFromFD: function(fd) {
|
|||
|
var stream = FS.getStream(fd);
|
|||
|
if (!stream)
|
|||
|
throw new FS.ErrnoError(8);
|
|||
|
return stream;
|
|||
|
},
|
|||
|
get64: function(low, high) {
|
|||
|
return low;
|
|||
|
}
|
|||
|
};
|
|||
|
function ___sys_chmod(path, mode) {
|
|||
|
try {
|
|||
|
path = SYSCALLS.getStr(path);
|
|||
|
FS.chmod(path, mode);
|
|||
|
return 0;
|
|||
|
} catch (e) {
|
|||
|
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|||
|
abort(e);
|
|||
|
return -e.errno;
|
|||
|
}
|
|||
|
}
|
|||
|
function setErrNo(value) {
|
|||
|
HEAP32[___errno_location() >> 2] = value;
|
|||
|
return value;
|
|||
|
}
|
|||
|
function ___sys_fcntl64(fd, cmd, varargs) {
|
|||
|
SYSCALLS.varargs = varargs;
|
|||
|
try {
|
|||
|
var stream = SYSCALLS.getStreamFromFD(fd);
|
|||
|
switch (cmd) {
|
|||
|
case 0: {
|
|||
|
var arg = SYSCALLS.get();
|
|||
|
if (arg < 0) {
|
|||
|
return -28;
|
|||
|
}
|
|||
|
var newStream;
|
|||
|
newStream = FS.open(stream.path, stream.flags, 0, arg);
|
|||
|
return newStream.fd;
|
|||
|
}
|
|||
|
case 1:
|
|||
|
case 2:
|
|||
|
return 0;
|
|||
|
case 3:
|
|||
|
return stream.flags;
|
|||
|
case 4: {
|
|||
|
var arg = SYSCALLS.get();
|
|||
|
stream.flags |= arg;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
case 12: {
|
|||
|
var arg = SYSCALLS.get();
|
|||
|
var offset = 0;
|
|||
|
HEAP16[arg + offset >> 1] = 2;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
case 13:
|
|||
|
case 14:
|
|||
|
return 0;
|
|||
|
case 16:
|
|||
|
case 8:
|
|||
|
return -28;
|
|||
|
case 9:
|
|||
|
setErrNo(28);
|
|||
|
return -1;
|
|||
|
default: {
|
|||
|
return -28;
|
|||
|
}
|
|||
|
}
|
|||
|
} catch (e) {
|
|||
|
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|||
|
abort(e);
|
|||
|
return -e.errno;
|
|||
|
}
|
|||
|
}
|
|||
|
function ___sys_fstat64(fd, buf) {
|
|||
|
try {
|
|||
|
var stream = SYSCALLS.getStreamFromFD(fd);
|
|||
|
return SYSCALLS.doStat(FS.stat, stream.path, buf);
|
|||
|
} catch (e) {
|
|||
|
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|||
|
abort(e);
|
|||
|
return -e.errno;
|
|||
|
}
|
|||
|
}
|
|||
|
function ___sys_ioctl(fd, op, varargs) {
|
|||
|
SYSCALLS.varargs = varargs;
|
|||
|
try {
|
|||
|
var stream = SYSCALLS.getStreamFromFD(fd);
|
|||
|
switch (op) {
|
|||
|
case 21509:
|
|||
|
case 21505: {
|
|||
|
if (!stream.tty)
|
|||
|
return -59;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
case 21510:
|
|||
|
case 21511:
|
|||
|
case 21512:
|
|||
|
case 21506:
|
|||
|
case 21507:
|
|||
|
case 21508: {
|
|||
|
if (!stream.tty)
|
|||
|
return -59;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
case 21519: {
|
|||
|
if (!stream.tty)
|
|||
|
return -59;
|
|||
|
var argp = SYSCALLS.get();
|
|||
|
HEAP32[argp >> 2] = 0;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
case 21520: {
|
|||
|
if (!stream.tty)
|
|||
|
return -59;
|
|||
|
return -28;
|
|||
|
}
|
|||
|
case 21531: {
|
|||
|
var argp = SYSCALLS.get();
|
|||
|
return FS.ioctl(stream, op, argp);
|
|||
|
}
|
|||
|
case 21523: {
|
|||
|
if (!stream.tty)
|
|||
|
return -59;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
case 21524: {
|
|||
|
if (!stream.tty)
|
|||
|
return -59;
|
|||
|
return 0;
|
|||
|
}
|
|||
|
default:
|
|||
|
abort("bad ioctl syscall " + op);
|
|||
|
}
|
|||
|
} catch (e) {
|
|||
|
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|||
|
abort(e);
|
|||
|
return -e.errno;
|
|||
|
}
|
|||
|
}
|
|||
|
function ___sys_open(path, flags, varargs) {
|
|||
|
SYSCALLS.varargs = varargs;
|
|||
|
try {
|
|||
|
var pathname = SYSCALLS.getStr(path);
|
|||
|
var mode = varargs ? SYSCALLS.get() : 0;
|
|||
|
var stream = FS.open(pathname, flags, mode);
|
|||
|
return stream.fd;
|
|||
|
} catch (e) {
|
|||
|
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|||
|
abort(e);
|
|||
|
return -e.errno;
|
|||
|
}
|
|||
|
}
|
|||
|
function ___sys_rename(old_path, new_path) {
|
|||
|
try {
|
|||
|
old_path = SYSCALLS.getStr(old_path);
|
|||
|
new_path = SYSCALLS.getStr(new_path);
|
|||
|
FS.rename(old_path, new_path);
|
|||
|
return 0;
|
|||
|
} catch (e) {
|
|||
|
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|||
|
abort(e);
|
|||
|
return -e.errno;
|
|||
|
}
|
|||
|
}
|
|||
|
function ___sys_rmdir(path) {
|
|||
|
try {
|
|||
|
path = SYSCALLS.getStr(path);
|
|||
|
FS.rmdir(path);
|
|||
|
return 0;
|
|||
|
} catch (e) {
|
|||
|
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|||
|
abort(e);
|
|||
|
return -e.errno;
|
|||
|
}
|
|||
|
}
|
|||
|
function ___sys_stat64(path, buf) {
|
|||
|
try {
|
|||
|
path = SYSCALLS.getStr(path);
|
|||
|
return SYSCALLS.doStat(FS.stat, path, buf);
|
|||
|
} catch (e) {
|
|||
|
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|||
|
abort(e);
|
|||
|
return -e.errno;
|
|||
|
}
|
|||
|
}
|
|||
|
function ___sys_unlink(path) {
|
|||
|
try {
|
|||
|
path = SYSCALLS.getStr(path);
|
|||
|
FS.unlink(path);
|
|||
|
return 0;
|
|||
|
} catch (e) {
|
|||
|
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|||
|
abort(e);
|
|||
|
return -e.errno;
|
|||
|
}
|
|||
|
}
|
|||
|
function _emscripten_memcpy_big(dest, src, num) {
|
|||
|
HEAPU8.copyWithin(dest, src, src + num);
|
|||
|
}
|
|||
|
function emscripten_realloc_buffer(size) {
|
|||
|
try {
|
|||
|
wasmMemory.grow(size - buffer.byteLength + 65535 >>> 16);
|
|||
|
updateGlobalBufferAndViews(wasmMemory.buffer);
|
|||
|
return 1;
|
|||
|
} catch (e) {
|
|||
|
}
|
|||
|
}
|
|||
|
function _emscripten_resize_heap(requestedSize) {
|
|||
|
var oldSize = HEAPU8.length;
|
|||
|
requestedSize = requestedSize >>> 0;
|
|||
|
var maxHeapSize = 2147483648;
|
|||
|
if (requestedSize > maxHeapSize) {
|
|||
|
return false;
|
|||
|
}
|
|||
|
for (var cutDown = 1; cutDown <= 4; cutDown *= 2) {
|
|||
|
var overGrownHeapSize = oldSize * (1 + 0.2 / cutDown);
|
|||
|
overGrownHeapSize = Math.min(overGrownHeapSize, requestedSize + 100663296);
|
|||
|
var newSize = Math.min(maxHeapSize, alignUp(Math.max(requestedSize, overGrownHeapSize), 65536));
|
|||
|
var replacement = emscripten_realloc_buffer(newSize);
|
|||
|
if (replacement) {
|
|||
|
return true;
|
|||
|
}
|
|||
|
}
|
|||
|
return false;
|
|||
|
}
|
|||
|
function _fd_close(fd) {
|
|||
|
try {
|
|||
|
var stream = SYSCALLS.getStreamFromFD(fd);
|
|||
|
FS.close(stream);
|
|||
|
return 0;
|
|||
|
} catch (e) {
|
|||
|
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|||
|
abort(e);
|
|||
|
return e.errno;
|
|||
|
}
|
|||
|
}
|
|||
|
function _fd_fdstat_get(fd, pbuf) {
|
|||
|
try {
|
|||
|
var stream = SYSCALLS.getStreamFromFD(fd);
|
|||
|
var type = stream.tty ? 2 : FS.isDir(stream.mode) ? 3 : FS.isLink(stream.mode) ? 7 : 4;
|
|||
|
HEAP8[pbuf >> 0] = type;
|
|||
|
return 0;
|
|||
|
} catch (e) {
|
|||
|
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|||
|
abort(e);
|
|||
|
return e.errno;
|
|||
|
}
|
|||
|
}
|
|||
|
function _fd_read(fd, iov, iovcnt, pnum) {
|
|||
|
try {
|
|||
|
var stream = SYSCALLS.getStreamFromFD(fd);
|
|||
|
var num = SYSCALLS.doReadv(stream, iov, iovcnt);
|
|||
|
HEAP32[pnum >> 2] = num;
|
|||
|
return 0;
|
|||
|
} catch (e) {
|
|||
|
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|||
|
abort(e);
|
|||
|
return e.errno;
|
|||
|
}
|
|||
|
}
|
|||
|
function _fd_seek(fd, offset_low, offset_high, whence, newOffset) {
|
|||
|
try {
|
|||
|
var stream = SYSCALLS.getStreamFromFD(fd);
|
|||
|
var HIGH_OFFSET = 4294967296;
|
|||
|
var offset = offset_high * HIGH_OFFSET + (offset_low >>> 0);
|
|||
|
var DOUBLE_LIMIT = 9007199254740992;
|
|||
|
if (offset <= -DOUBLE_LIMIT || offset >= DOUBLE_LIMIT) {
|
|||
|
return -61;
|
|||
|
}
|
|||
|
FS.llseek(stream, offset, whence);
|
|||
|
tempI64 = [
|
|||
|
stream.position >>> 0,
|
|||
|
(tempDouble = stream.position, +Math.abs(tempDouble) >= 1 ? tempDouble > 0 ? (Math.min(+Math.floor(tempDouble / 4294967296), 4294967295) | 0) >>> 0 : ~~+Math.ceil((tempDouble - +(~~tempDouble >>> 0)) / 4294967296) >>> 0 : 0)
|
|||
|
], HEAP32[newOffset >> 2] = tempI64[0], HEAP32[newOffset + 4 >> 2] = tempI64[1];
|
|||
|
if (stream.getdents && offset === 0 && whence === 0)
|
|||
|
stream.getdents = null;
|
|||
|
return 0;
|
|||
|
} catch (e) {
|
|||
|
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|||
|
abort(e);
|
|||
|
return e.errno;
|
|||
|
}
|
|||
|
}
|
|||
|
function _fd_write(fd, iov, iovcnt, pnum) {
|
|||
|
try {
|
|||
|
var stream = SYSCALLS.getStreamFromFD(fd);
|
|||
|
var num = SYSCALLS.doWritev(stream, iov, iovcnt);
|
|||
|
HEAP32[pnum >> 2] = num;
|
|||
|
return 0;
|
|||
|
} catch (e) {
|
|||
|
if (typeof FS === "undefined" || !(e instanceof FS.ErrnoError))
|
|||
|
abort(e);
|
|||
|
return e.errno;
|
|||
|
}
|
|||
|
}
|
|||
|
function _setTempRet0(val) {
|
|||
|
}
|
|||
|
function _time(ptr) {
|
|||
|
var ret = Date.now() / 1e3 | 0;
|
|||
|
if (ptr) {
|
|||
|
HEAP32[ptr >> 2] = ret;
|
|||
|
}
|
|||
|
return ret;
|
|||
|
}
|
|||
|
function _tzset() {
|
|||
|
if (_tzset.called)
|
|||
|
return;
|
|||
|
_tzset.called = true;
|
|||
|
var currentYear = new Date().getFullYear();
|
|||
|
var winter = new Date(currentYear, 0, 1);
|
|||
|
var summer = new Date(currentYear, 6, 1);
|
|||
|
var winterOffset = winter.getTimezoneOffset();
|
|||
|
var summerOffset = summer.getTimezoneOffset();
|
|||
|
var stdTimezoneOffset = Math.max(winterOffset, summerOffset);
|
|||
|
HEAP32[__get_timezone() >> 2] = stdTimezoneOffset * 60;
|
|||
|
HEAP32[__get_daylight() >> 2] = Number(winterOffset != summerOffset);
|
|||
|
function extractZone(date) {
|
|||
|
var match = date.toTimeString().match(/\(([A-Za-z ]+)\)$/);
|
|||
|
return match ? match[1] : "GMT";
|
|||
|
}
|
|||
|
var winterName = extractZone(winter);
|
|||
|
var summerName = extractZone(summer);
|
|||
|
var winterNamePtr = allocateUTF8(winterName);
|
|||
|
var summerNamePtr = allocateUTF8(summerName);
|
|||
|
if (summerOffset < winterOffset) {
|
|||
|
HEAP32[__get_tzname() >> 2] = winterNamePtr;
|
|||
|
HEAP32[__get_tzname() + 4 >> 2] = summerNamePtr;
|
|||
|
} else {
|
|||
|
HEAP32[__get_tzname() >> 2] = summerNamePtr;
|
|||
|
HEAP32[__get_tzname() + 4 >> 2] = winterNamePtr;
|
|||
|
}
|
|||
|
}
|
|||
|
function _timegm(tmPtr) {
|
|||
|
_tzset();
|
|||
|
var time = Date.UTC(HEAP32[tmPtr + 20 >> 2] + 1900, HEAP32[tmPtr + 16 >> 2], HEAP32[tmPtr + 12 >> 2], HEAP32[tmPtr + 8 >> 2], HEAP32[tmPtr + 4 >> 2], HEAP32[tmPtr >> 2], 0);
|
|||
|
var date = new Date(time);
|
|||
|
HEAP32[tmPtr + 24 >> 2] = date.getUTCDay();
|
|||
|
var start = Date.UTC(date.getUTCFullYear(), 0, 1, 0, 0, 0, 0);
|
|||
|
var yday = (date.getTime() - start) / (1e3 * 60 * 60 * 24) | 0;
|
|||
|
HEAP32[tmPtr + 28 >> 2] = yday;
|
|||
|
return date.getTime() / 1e3 | 0;
|
|||
|
}
|
|||
|
var FSNode = function(parent, name, mode, rdev) {
|
|||
|
if (!parent) {
|
|||
|
parent = this;
|
|||
|
}
|
|||
|
this.parent = parent;
|
|||
|
this.mount = parent.mount;
|
|||
|
this.mounted = null;
|
|||
|
this.id = FS.nextInode++;
|
|||
|
this.name = name;
|
|||
|
this.mode = mode;
|
|||
|
this.node_ops = {};
|
|||
|
this.stream_ops = {};
|
|||
|
this.rdev = rdev;
|
|||
|
};
|
|||
|
var readMode = 292 | 73;
|
|||
|
var writeMode = 146;
|
|||
|
Object.defineProperties(FSNode.prototype, {
|
|||
|
read: {
|
|||
|
get: function() {
|
|||
|
return (this.mode & readMode) === readMode;
|
|||
|
},
|
|||
|
set: function(val) {
|
|||
|
val ? this.mode |= readMode : this.mode &= ~readMode;
|
|||
|
}
|
|||
|
},
|
|||
|
write: {
|
|||
|
get: function() {
|
|||
|
return (this.mode & writeMode) === writeMode;
|
|||
|
},
|
|||
|
set: function(val) {
|
|||
|
val ? this.mode |= writeMode : this.mode &= ~writeMode;
|
|||
|
}
|
|||
|
},
|
|||
|
isFolder: {
|
|||
|
get: function() {
|
|||
|
return FS.isDir(this.mode);
|
|||
|
}
|
|||
|
},
|
|||
|
isDevice: {
|
|||
|
get: function() {
|
|||
|
return FS.isChrdev(this.mode);
|
|||
|
}
|
|||
|
}
|
|||
|
});
|
|||
|
FS.FSNode = FSNode;
|
|||
|
FS.staticInit();
|
|||
|
{
|
|||
|
var fs = frozenFs;
|
|||
|
var NODEJS_PATH = path__default.default;
|
|||
|
NODEFS.staticInit();
|
|||
|
}
|
|||
|
{
|
|||
|
var _wrapNodeError = function(func) {
|
|||
|
return function() {
|
|||
|
try {
|
|||
|
return func.apply(this, arguments);
|
|||
|
} catch (e) {
|
|||
|
if (!e.code)
|
|||
|
throw e;
|
|||
|
throw new FS.ErrnoError(ERRNO_CODES[e.code]);
|
|||
|
}
|
|||
|
};
|
|||
|
};
|
|||
|
var VFS = Object.assign({}, FS);
|
|||
|
for (var _key in NODERAWFS)
|
|||
|
FS[_key] = _wrapNodeError(NODERAWFS[_key]);
|
|||
|
}
|
|||
|
function intArrayFromString(stringy, dontAddNull, length) {
|
|||
|
var len = length > 0 ? length : lengthBytesUTF8(stringy) + 1;
|
|||
|
var u8array = new Array(len);
|
|||
|
var numBytesWritten = stringToUTF8Array(stringy, u8array, 0, u8array.length);
|
|||
|
if (dontAddNull)
|
|||
|
u8array.length = numBytesWritten;
|
|||
|
return u8array;
|
|||
|
}
|
|||
|
function intArrayFromBase64(s) {
|
|||
|
{
|
|||
|
var buf;
|
|||
|
try {
|
|||
|
buf = Buffer.from(s, "base64");
|
|||
|
} catch (_) {
|
|||
|
buf = new Buffer(s, "base64");
|
|||
|
}
|
|||
|
return new Uint8Array(buf["buffer"], buf["byteOffset"], buf["byteLength"]);
|
|||
|
}
|
|||
|
}
|
|||
|
function tryParseAsDataURI(filename) {
|
|||
|
if (!isDataURI(filename)) {
|
|||
|
return;
|
|||
|
}
|
|||
|
return intArrayFromBase64(filename.slice(dataURIPrefix.length));
|
|||
|
}
|
|||
|
var asmLibraryArg = {
|
|||
|
s: ___gmtime_r,
|
|||
|
p: ___sys_chmod,
|
|||
|
e: ___sys_fcntl64,
|
|||
|
k: ___sys_fstat64,
|
|||
|
o: ___sys_ioctl,
|
|||
|
q: ___sys_open,
|
|||
|
i: ___sys_rename,
|
|||
|
r: ___sys_rmdir,
|
|||
|
c: ___sys_stat64,
|
|||
|
h: ___sys_unlink,
|
|||
|
l: _emscripten_memcpy_big,
|
|||
|
m: _emscripten_resize_heap,
|
|||
|
f: _fd_close,
|
|||
|
j: _fd_fdstat_get,
|
|||
|
g: _fd_read,
|
|||
|
n: _fd_seek,
|
|||
|
d: _fd_write,
|
|||
|
a: _setTempRet0,
|
|||
|
b: _time,
|
|||
|
t: _timegm
|
|||
|
};
|
|||
|
var asm = createWasm();
|
|||
|
Module["___wasm_call_ctors"] = asm["v"];
|
|||
|
Module["_zip_ext_count_symlinks"] = asm["w"];
|
|||
|
Module["_zip_file_get_external_attributes"] = asm["x"];
|
|||
|
Module["_zipstruct_stat"] = asm["y"];
|
|||
|
Module["_zipstruct_statS"] = asm["z"];
|
|||
|
Module["_zipstruct_stat_name"] = asm["A"];
|
|||
|
Module["_zipstruct_stat_index"] = asm["B"];
|
|||
|
Module["_zipstruct_stat_size"] = asm["C"];
|
|||
|
Module["_zipstruct_stat_mtime"] = asm["D"];
|
|||
|
Module["_zipstruct_stat_crc"] = asm["E"];
|
|||
|
Module["_zipstruct_error"] = asm["F"];
|
|||
|
Module["_zipstruct_errorS"] = asm["G"];
|
|||
|
Module["_zipstruct_error_code_zip"] = asm["H"];
|
|||
|
Module["_zipstruct_stat_comp_size"] = asm["I"];
|
|||
|
Module["_zipstruct_stat_comp_method"] = asm["J"];
|
|||
|
Module["_zip_close"] = asm["K"];
|
|||
|
Module["_zip_delete"] = asm["L"];
|
|||
|
Module["_zip_dir_add"] = asm["M"];
|
|||
|
Module["_zip_discard"] = asm["N"];
|
|||
|
Module["_zip_error_init_with_code"] = asm["O"];
|
|||
|
Module["_zip_get_error"] = asm["P"];
|
|||
|
Module["_zip_file_get_error"] = asm["Q"];
|
|||
|
Module["_zip_error_strerror"] = asm["R"];
|
|||
|
Module["_zip_fclose"] = asm["S"];
|
|||
|
Module["_zip_file_add"] = asm["T"];
|
|||
|
Module["_free"] = asm["U"];
|
|||
|
var _malloc = Module["_malloc"] = asm["V"];
|
|||
|
var ___errno_location = Module["___errno_location"] = asm["W"];
|
|||
|
Module["_zip_source_error"] = asm["X"];
|
|||
|
Module["_zip_source_seek"] = asm["Y"];
|
|||
|
Module["_zip_file_set_external_attributes"] = asm["Z"];
|
|||
|
Module["_zip_file_set_mtime"] = asm["_"];
|
|||
|
Module["_zip_fopen"] = asm["$"];
|
|||
|
Module["_zip_fopen_index"] = asm["aa"];
|
|||
|
Module["_zip_fread"] = asm["ba"];
|
|||
|
Module["_zip_get_name"] = asm["ca"];
|
|||
|
Module["_zip_get_num_entries"] = asm["da"];
|
|||
|
Module["_zip_source_read"] = asm["ea"];
|
|||
|
Module["_zip_name_locate"] = asm["fa"];
|
|||
|
Module["_zip_open"] = asm["ga"];
|
|||
|
Module["_zip_open_from_source"] = asm["ha"];
|
|||
|
Module["_zip_set_file_compression"] = asm["ia"];
|
|||
|
Module["_zip_source_buffer"] = asm["ja"];
|
|||
|
Module["_zip_source_buffer_create"] = asm["ka"];
|
|||
|
Module["_zip_source_close"] = asm["la"];
|
|||
|
Module["_zip_source_free"] = asm["ma"];
|
|||
|
Module["_zip_source_keep"] = asm["na"];
|
|||
|
Module["_zip_source_open"] = asm["oa"];
|
|||
|
Module["_zip_source_set_mtime"] = asm["qa"];
|
|||
|
Module["_zip_source_tell"] = asm["ra"];
|
|||
|
Module["_zip_stat"] = asm["sa"];
|
|||
|
Module["_zip_stat_index"] = asm["ta"];
|
|||
|
var __get_tzname = Module["__get_tzname"] = asm["ua"];
|
|||
|
var __get_daylight = Module["__get_daylight"] = asm["va"];
|
|||
|
var __get_timezone = Module["__get_timezone"] = asm["wa"];
|
|||
|
var stackSave = Module["stackSave"] = asm["xa"];
|
|||
|
var stackRestore = Module["stackRestore"] = asm["ya"];
|
|||
|
var stackAlloc = Module["stackAlloc"] = asm["za"];
|
|||
|
Module["cwrap"] = cwrap;
|
|||
|
Module["getValue"] = getValue;
|
|||
|
var calledRun;
|
|||
|
dependenciesFulfilled = function runCaller() {
|
|||
|
if (!calledRun)
|
|||
|
run();
|
|||
|
if (!calledRun)
|
|||
|
dependenciesFulfilled = runCaller;
|
|||
|
};
|
|||
|
function run(args) {
|
|||
|
if (runDependencies > 0) {
|
|||
|
return;
|
|||
|
}
|
|||
|
preRun();
|
|||
|
if (runDependencies > 0) {
|
|||
|
return;
|
|||
|
}
|
|||
|
function doRun() {
|
|||
|
if (calledRun)
|
|||
|
return;
|
|||
|
calledRun = true;
|
|||
|
Module["calledRun"] = true;
|
|||
|
if (ABORT)
|
|||
|
return;
|
|||
|
initRuntime();
|
|||
|
readyPromiseResolve(Module);
|
|||
|
if (Module["onRuntimeInitialized"])
|
|||
|
Module["onRuntimeInitialized"]();
|
|||
|
postRun();
|
|||
|
}
|
|||
|
if (Module["setStatus"]) {
|
|||
|
Module["setStatus"]("Running...");
|
|||
|
setTimeout(function() {
|
|||
|
setTimeout(function() {
|
|||
|
Module["setStatus"]("");
|
|||
|
}, 1);
|
|||
|
doRun();
|
|||
|
}, 1);
|
|||
|
} else {
|
|||
|
doRun();
|
|||
|
}
|
|||
|
}
|
|||
|
Module["run"] = run;
|
|||
|
if (Module["preInit"]) {
|
|||
|
if (typeof Module["preInit"] == "function")
|
|||
|
Module["preInit"] = [Module["preInit"]];
|
|||
|
while (Module["preInit"].length > 0) {
|
|||
|
Module["preInit"].pop()();
|
|||
|
}
|
|||
|
}
|
|||
|
run();
|
|||
|
return createModule2;
|
|||
|
};
|
|||
|
}();
|
|||
|
module.exports = createModule;
|
|||
|
}(libzipSync));
|
|||
|
|
|||
|
const createModule = libzipSync.exports;
|
|||
|
|
|||
|
const number64 = [
|
|||
|
`number`,
|
|||
|
`number`
|
|||
|
];
|
|||
|
var Errors;
|
|||
|
(function(Errors2) {
|
|||
|
Errors2[Errors2["ZIP_ER_OK"] = 0] = "ZIP_ER_OK";
|
|||
|
Errors2[Errors2["ZIP_ER_MULTIDISK"] = 1] = "ZIP_ER_MULTIDISK";
|
|||
|
Errors2[Errors2["ZIP_ER_RENAME"] = 2] = "ZIP_ER_RENAME";
|
|||
|
Errors2[Errors2["ZIP_ER_CLOSE"] = 3] = "ZIP_ER_CLOSE";
|
|||
|
Errors2[Errors2["ZIP_ER_SEEK"] = 4] = "ZIP_ER_SEEK";
|
|||
|
Errors2[Errors2["ZIP_ER_READ"] = 5] = "ZIP_ER_READ";
|
|||
|
Errors2[Errors2["ZIP_ER_WRITE"] = 6] = "ZIP_ER_WRITE";
|
|||
|
Errors2[Errors2["ZIP_ER_CRC"] = 7] = "ZIP_ER_CRC";
|
|||
|
Errors2[Errors2["ZIP_ER_ZIPCLOSED"] = 8] = "ZIP_ER_ZIPCLOSED";
|
|||
|
Errors2[Errors2["ZIP_ER_NOENT"] = 9] = "ZIP_ER_NOENT";
|
|||
|
Errors2[Errors2["ZIP_ER_EXISTS"] = 10] = "ZIP_ER_EXISTS";
|
|||
|
Errors2[Errors2["ZIP_ER_OPEN"] = 11] = "ZIP_ER_OPEN";
|
|||
|
Errors2[Errors2["ZIP_ER_TMPOPEN"] = 12] = "ZIP_ER_TMPOPEN";
|
|||
|
Errors2[Errors2["ZIP_ER_ZLIB"] = 13] = "ZIP_ER_ZLIB";
|
|||
|
Errors2[Errors2["ZIP_ER_MEMORY"] = 14] = "ZIP_ER_MEMORY";
|
|||
|
Errors2[Errors2["ZIP_ER_CHANGED"] = 15] = "ZIP_ER_CHANGED";
|
|||
|
Errors2[Errors2["ZIP_ER_COMPNOTSUPP"] = 16] = "ZIP_ER_COMPNOTSUPP";
|
|||
|
Errors2[Errors2["ZIP_ER_EOF"] = 17] = "ZIP_ER_EOF";
|
|||
|
Errors2[Errors2["ZIP_ER_INVAL"] = 18] = "ZIP_ER_INVAL";
|
|||
|
Errors2[Errors2["ZIP_ER_NOZIP"] = 19] = "ZIP_ER_NOZIP";
|
|||
|
Errors2[Errors2["ZIP_ER_INTERNAL"] = 20] = "ZIP_ER_INTERNAL";
|
|||
|
Errors2[Errors2["ZIP_ER_INCONS"] = 21] = "ZIP_ER_INCONS";
|
|||
|
Errors2[Errors2["ZIP_ER_REMOVE"] = 22] = "ZIP_ER_REMOVE";
|
|||
|
Errors2[Errors2["ZIP_ER_DELETED"] = 23] = "ZIP_ER_DELETED";
|
|||
|
Errors2[Errors2["ZIP_ER_ENCRNOTSUPP"] = 24] = "ZIP_ER_ENCRNOTSUPP";
|
|||
|
Errors2[Errors2["ZIP_ER_RDONLY"] = 25] = "ZIP_ER_RDONLY";
|
|||
|
Errors2[Errors2["ZIP_ER_NOPASSWD"] = 26] = "ZIP_ER_NOPASSWD";
|
|||
|
Errors2[Errors2["ZIP_ER_WRONGPASSWD"] = 27] = "ZIP_ER_WRONGPASSWD";
|
|||
|
Errors2[Errors2["ZIP_ER_OPNOTSUPP"] = 28] = "ZIP_ER_OPNOTSUPP";
|
|||
|
Errors2[Errors2["ZIP_ER_INUSE"] = 29] = "ZIP_ER_INUSE";
|
|||
|
Errors2[Errors2["ZIP_ER_TELL"] = 30] = "ZIP_ER_TELL";
|
|||
|
Errors2[Errors2["ZIP_ER_COMPRESSED_DATA"] = 31] = "ZIP_ER_COMPRESSED_DATA";
|
|||
|
})(Errors || (Errors = {}));
|
|||
|
const makeInterface = (libzip) => ({
|
|||
|
get HEAP8() {
|
|||
|
return libzip.HEAP8;
|
|||
|
},
|
|||
|
get HEAPU8() {
|
|||
|
return libzip.HEAPU8;
|
|||
|
},
|
|||
|
errors: Errors,
|
|||
|
SEEK_SET: 0,
|
|||
|
SEEK_CUR: 1,
|
|||
|
SEEK_END: 2,
|
|||
|
ZIP_CHECKCONS: 4,
|
|||
|
ZIP_CREATE: 1,
|
|||
|
ZIP_EXCL: 2,
|
|||
|
ZIP_TRUNCATE: 8,
|
|||
|
ZIP_RDONLY: 16,
|
|||
|
ZIP_FL_OVERWRITE: 8192,
|
|||
|
ZIP_FL_COMPRESSED: 4,
|
|||
|
ZIP_OPSYS_DOS: 0,
|
|||
|
ZIP_OPSYS_AMIGA: 1,
|
|||
|
ZIP_OPSYS_OPENVMS: 2,
|
|||
|
ZIP_OPSYS_UNIX: 3,
|
|||
|
ZIP_OPSYS_VM_CMS: 4,
|
|||
|
ZIP_OPSYS_ATARI_ST: 5,
|
|||
|
ZIP_OPSYS_OS_2: 6,
|
|||
|
ZIP_OPSYS_MACINTOSH: 7,
|
|||
|
ZIP_OPSYS_Z_SYSTEM: 8,
|
|||
|
ZIP_OPSYS_CPM: 9,
|
|||
|
ZIP_OPSYS_WINDOWS_NTFS: 10,
|
|||
|
ZIP_OPSYS_MVS: 11,
|
|||
|
ZIP_OPSYS_VSE: 12,
|
|||
|
ZIP_OPSYS_ACORN_RISC: 13,
|
|||
|
ZIP_OPSYS_VFAT: 14,
|
|||
|
ZIP_OPSYS_ALTERNATE_MVS: 15,
|
|||
|
ZIP_OPSYS_BEOS: 16,
|
|||
|
ZIP_OPSYS_TANDEM: 17,
|
|||
|
ZIP_OPSYS_OS_400: 18,
|
|||
|
ZIP_OPSYS_OS_X: 19,
|
|||
|
ZIP_CM_DEFAULT: -1,
|
|||
|
ZIP_CM_STORE: 0,
|
|||
|
ZIP_CM_DEFLATE: 8,
|
|||
|
uint08S: libzip._malloc(1),
|
|||
|
uint16S: libzip._malloc(2),
|
|||
|
uint32S: libzip._malloc(4),
|
|||
|
uint64S: libzip._malloc(8),
|
|||
|
malloc: libzip._malloc,
|
|||
|
free: libzip._free,
|
|||
|
getValue: libzip.getValue,
|
|||
|
open: libzip.cwrap(`zip_open`, `number`, [`string`, `number`, `number`]),
|
|||
|
openFromSource: libzip.cwrap(`zip_open_from_source`, `number`, [`number`, `number`, `number`]),
|
|||
|
close: libzip.cwrap(`zip_close`, `number`, [`number`]),
|
|||
|
discard: libzip.cwrap(`zip_discard`, null, [`number`]),
|
|||
|
getError: libzip.cwrap(`zip_get_error`, `number`, [`number`]),
|
|||
|
getName: libzip.cwrap(`zip_get_name`, `string`, [`number`, `number`, `number`]),
|
|||
|
getNumEntries: libzip.cwrap(`zip_get_num_entries`, `number`, [`number`, `number`]),
|
|||
|
delete: libzip.cwrap(`zip_delete`, `number`, [`number`, `number`]),
|
|||
|
stat: libzip.cwrap(`zip_stat`, `number`, [`number`, `string`, `number`, `number`]),
|
|||
|
statIndex: libzip.cwrap(`zip_stat_index`, `number`, [`number`, ...number64, `number`, `number`]),
|
|||
|
fopen: libzip.cwrap(`zip_fopen`, `number`, [`number`, `string`, `number`]),
|
|||
|
fopenIndex: libzip.cwrap(`zip_fopen_index`, `number`, [`number`, ...number64, `number`]),
|
|||
|
fread: libzip.cwrap(`zip_fread`, `number`, [`number`, `number`, `number`, `number`]),
|
|||
|
fclose: libzip.cwrap(`zip_fclose`, `number`, [`number`]),
|
|||
|
dir: {
|
|||
|
add: libzip.cwrap(`zip_dir_add`, `number`, [`number`, `string`])
|
|||
|
},
|
|||
|
file: {
|
|||
|
add: libzip.cwrap(`zip_file_add`, `number`, [`number`, `string`, `number`, `number`]),
|
|||
|
getError: libzip.cwrap(`zip_file_get_error`, `number`, [`number`]),
|
|||
|
getExternalAttributes: libzip.cwrap(`zip_file_get_external_attributes`, `number`, [`number`, ...number64, `number`, `number`, `number`]),
|
|||
|
setExternalAttributes: libzip.cwrap(`zip_file_set_external_attributes`, `number`, [`number`, ...number64, `number`, `number`, `number`]),
|
|||
|
setMtime: libzip.cwrap(`zip_file_set_mtime`, `number`, [`number`, ...number64, `number`, `number`]),
|
|||
|
setCompression: libzip.cwrap(`zip_set_file_compression`, `number`, [`number`, ...number64, `number`, `number`])
|
|||
|
},
|
|||
|
ext: {
|
|||
|
countSymlinks: libzip.cwrap(`zip_ext_count_symlinks`, `number`, [`number`])
|
|||
|
},
|
|||
|
error: {
|
|||
|
initWithCode: libzip.cwrap(`zip_error_init_with_code`, null, [`number`, `number`]),
|
|||
|
strerror: libzip.cwrap(`zip_error_strerror`, `string`, [`number`])
|
|||
|
},
|
|||
|
name: {
|
|||
|
locate: libzip.cwrap(`zip_name_locate`, `number`, [`number`, `string`, `number`])
|
|||
|
},
|
|||
|
source: {
|
|||
|
fromUnattachedBuffer: libzip.cwrap(`zip_source_buffer_create`, `number`, [`number`, `number`, `number`, `number`]),
|
|||
|
fromBuffer: libzip.cwrap(`zip_source_buffer`, `number`, [`number`, `number`, ...number64, `number`]),
|
|||
|
free: libzip.cwrap(`zip_source_free`, null, [`number`]),
|
|||
|
keep: libzip.cwrap(`zip_source_keep`, null, [`number`]),
|
|||
|
open: libzip.cwrap(`zip_source_open`, `number`, [`number`]),
|
|||
|
close: libzip.cwrap(`zip_source_close`, `number`, [`number`]),
|
|||
|
seek: libzip.cwrap(`zip_source_seek`, `number`, [`number`, ...number64, `number`]),
|
|||
|
tell: libzip.cwrap(`zip_source_tell`, `number`, [`number`]),
|
|||
|
read: libzip.cwrap(`zip_source_read`, `number`, [`number`, `number`, `number`]),
|
|||
|
error: libzip.cwrap(`zip_source_error`, `number`, [`number`]),
|
|||
|
setMtime: libzip.cwrap(`zip_source_set_mtime`, `number`, [`number`, `number`])
|
|||
|
},
|
|||
|
struct: {
|
|||
|
stat: libzip.cwrap(`zipstruct_stat`, `number`, []),
|
|||
|
statS: libzip.cwrap(`zipstruct_statS`, `number`, []),
|
|||
|
statName: libzip.cwrap(`zipstruct_stat_name`, `string`, [`number`]),
|
|||
|
statIndex: libzip.cwrap(`zipstruct_stat_index`, `number`, [`number`]),
|
|||
|
statSize: libzip.cwrap(`zipstruct_stat_size`, `number`, [`number`]),
|
|||
|
statCompSize: libzip.cwrap(`zipstruct_stat_comp_size`, `number`, [`number`]),
|
|||
|
statCompMethod: libzip.cwrap(`zipstruct_stat_comp_method`, `number`, [`number`]),
|
|||
|
statMtime: libzip.cwrap(`zipstruct_stat_mtime`, `number`, [`number`]),
|
|||
|
statCrc: libzip.cwrap(`zipstruct_stat_crc`, `number`, [`number`]),
|
|||
|
error: libzip.cwrap(`zipstruct_error`, `number`, []),
|
|||
|
errorS: libzip.cwrap(`zipstruct_errorS`, `number`, []),
|
|||
|
errorCodeZip: libzip.cwrap(`zipstruct_error_code_zip`, `number`, [`number`])
|
|||
|
}
|
|||
|
});
|
|||
|
|
|||
|
let mod = null;
|
|||
|
function getLibzipSync() {
|
|||
|
if (mod === null)
|
|||
|
mod = makeInterface(createModule());
|
|||
|
return mod;
|
|||
|
}
|
|||
|
|
|||
|
var __defProp$2 = Object.defineProperty;
|
|||
|
var __defProps$1 = Object.defineProperties;
|
|||
|
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|||
|
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|||
|
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|||
|
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|||
|
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
|
|||
|
var __spreadValues$2 = (a, b) => {
|
|||
|
for (var prop in b || (b = {}))
|
|||
|
if (__hasOwnProp$3.call(b, prop))
|
|||
|
__defNormalProp$2(a, prop, b[prop]);
|
|||
|
if (__getOwnPropSymbols$3)
|
|||
|
for (var prop of __getOwnPropSymbols$3(b)) {
|
|||
|
if (__propIsEnum$3.call(b, prop))
|
|||
|
__defNormalProp$2(a, prop, b[prop]);
|
|||
|
}
|
|||
|
return a;
|
|||
|
};
|
|||
|
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|||
|
var ErrorCode;
|
|||
|
(function(ErrorCode2) {
|
|||
|
ErrorCode2["API_ERROR"] = `API_ERROR`;
|
|||
|
ErrorCode2["BUILTIN_NODE_RESOLUTION_FAILED"] = `BUILTIN_NODE_RESOLUTION_FAILED`;
|
|||
|
ErrorCode2["EXPORTS_RESOLUTION_FAILED"] = `EXPORTS_RESOLUTION_FAILED`;
|
|||
|
ErrorCode2["MISSING_DEPENDENCY"] = `MISSING_DEPENDENCY`;
|
|||
|
ErrorCode2["MISSING_PEER_DEPENDENCY"] = `MISSING_PEER_DEPENDENCY`;
|
|||
|
ErrorCode2["QUALIFIED_PATH_RESOLUTION_FAILED"] = `QUALIFIED_PATH_RESOLUTION_FAILED`;
|
|||
|
ErrorCode2["INTERNAL"] = `INTERNAL`;
|
|||
|
ErrorCode2["UNDECLARED_DEPENDENCY"] = `UNDECLARED_DEPENDENCY`;
|
|||
|
ErrorCode2["UNSUPPORTED"] = `UNSUPPORTED`;
|
|||
|
})(ErrorCode || (ErrorCode = {}));
|
|||
|
const MODULE_NOT_FOUND_ERRORS = new Set([
|
|||
|
ErrorCode.BUILTIN_NODE_RESOLUTION_FAILED,
|
|||
|
ErrorCode.MISSING_DEPENDENCY,
|
|||
|
ErrorCode.MISSING_PEER_DEPENDENCY,
|
|||
|
ErrorCode.QUALIFIED_PATH_RESOLUTION_FAILED,
|
|||
|
ErrorCode.UNDECLARED_DEPENDENCY
|
|||
|
]);
|
|||
|
function makeError(pnpCode, message, data = {}, code) {
|
|||
|
code != null ? code : code = MODULE_NOT_FOUND_ERRORS.has(pnpCode) ? `MODULE_NOT_FOUND` : pnpCode;
|
|||
|
const propertySpec = {
|
|||
|
configurable: true,
|
|||
|
writable: true,
|
|||
|
enumerable: false
|
|||
|
};
|
|||
|
return Object.defineProperties(new Error(message), {
|
|||
|
code: __spreadProps$1(__spreadValues$2({}, propertySpec), {
|
|||
|
value: code
|
|||
|
}),
|
|||
|
pnpCode: __spreadProps$1(__spreadValues$2({}, propertySpec), {
|
|||
|
value: pnpCode
|
|||
|
}),
|
|||
|
data: __spreadProps$1(__spreadValues$2({}, propertySpec), {
|
|||
|
value: data
|
|||
|
})
|
|||
|
});
|
|||
|
}
|
|||
|
function getIssuerModule(parent) {
|
|||
|
let issuer = parent;
|
|||
|
while (issuer && (issuer.id === `[eval]` || issuer.id === `<repl>` || !issuer.filename))
|
|||
|
issuer = issuer.parent;
|
|||
|
return issuer || null;
|
|||
|
}
|
|||
|
function getPathForDisplay(p) {
|
|||
|
return npath.normalize(npath.fromPortablePath(p));
|
|||
|
}
|
|||
|
|
|||
|
const builtinModules = new Set(require$$0.Module.builtinModules || Object.keys(process.binding(`natives`)));
|
|||
|
const isBuiltinModule = (request) => request.startsWith(`node:`) || builtinModules.has(request);
|
|||
|
function readPackageScope(checkPath) {
|
|||
|
const rootSeparatorIndex = checkPath.indexOf(npath.sep);
|
|||
|
let separatorIndex;
|
|||
|
do {
|
|||
|
separatorIndex = checkPath.lastIndexOf(npath.sep);
|
|||
|
checkPath = checkPath.slice(0, separatorIndex);
|
|||
|
if (checkPath.endsWith(`${npath.sep}node_modules`))
|
|||
|
return false;
|
|||
|
const pjson = readPackage(checkPath + npath.sep);
|
|||
|
if (pjson) {
|
|||
|
return {
|
|||
|
data: pjson,
|
|||
|
path: checkPath
|
|||
|
};
|
|||
|
}
|
|||
|
} while (separatorIndex > rootSeparatorIndex);
|
|||
|
return false;
|
|||
|
}
|
|||
|
function readPackage(requestPath) {
|
|||
|
const jsonPath = npath.resolve(requestPath, `package.json`);
|
|||
|
if (!fs__default.default.existsSync(jsonPath))
|
|||
|
return null;
|
|||
|
return JSON.parse(fs__default.default.readFileSync(jsonPath, `utf8`));
|
|||
|
}
|
|||
|
function ERR_REQUIRE_ESM(filename, parentPath = null) {
|
|||
|
const basename = parentPath && path__default.default.basename(filename) === path__default.default.basename(parentPath) ? filename : path__default.default.basename(filename);
|
|||
|
const msg = `require() of ES Module ${filename}${parentPath ? ` from ${parentPath}` : ``} not supported.
|
|||
|
Instead change the require of ${basename} in ${parentPath} to a dynamic import() which is available in all CommonJS modules.`;
|
|||
|
const err = new Error(msg);
|
|||
|
err.code = `ERR_REQUIRE_ESM`;
|
|||
|
return err;
|
|||
|
}
|
|||
|
|
|||
|
var __getOwnPropSymbols$2 = Object.getOwnPropertySymbols;
|
|||
|
var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
|
|||
|
var __propIsEnum$2 = Object.prototype.propertyIsEnumerable;
|
|||
|
var __objRest$1 = (source, exclude) => {
|
|||
|
var target = {};
|
|||
|
for (var prop in source)
|
|||
|
if (__hasOwnProp$2.call(source, prop) && exclude.indexOf(prop) < 0)
|
|||
|
target[prop] = source[prop];
|
|||
|
if (source != null && __getOwnPropSymbols$2)
|
|||
|
for (var prop of __getOwnPropSymbols$2(source)) {
|
|||
|
if (exclude.indexOf(prop) < 0 && __propIsEnum$2.call(source, prop))
|
|||
|
target[prop] = source[prop];
|
|||
|
}
|
|||
|
return target;
|
|||
|
};
|
|||
|
function applyPatch(pnpapi, opts) {
|
|||
|
const defaultCache = {};
|
|||
|
let enableNativeHooks = true;
|
|||
|
process.versions.pnp = String(pnpapi.VERSIONS.std);
|
|||
|
const moduleExports = require$$0__default.default;
|
|||
|
moduleExports.findPnpApi = (lookupSource) => {
|
|||
|
const lookupPath = lookupSource instanceof url.URL ? url.fileURLToPath(lookupSource) : lookupSource;
|
|||
|
const apiPath = opts.manager.findApiPathFor(lookupPath);
|
|||
|
if (apiPath === null)
|
|||
|
return null;
|
|||
|
const apiEntry = opts.manager.getApiEntry(apiPath, true);
|
|||
|
return apiEntry.instance.findPackageLocator(lookupPath) ? apiEntry.instance : null;
|
|||
|
};
|
|||
|
function getRequireStack(parent) {
|
|||
|
const requireStack = [];
|
|||
|
for (let cursor = parent; cursor; cursor = cursor.parent)
|
|||
|
requireStack.push(cursor.filename || cursor.id);
|
|||
|
return requireStack;
|
|||
|
}
|
|||
|
const originalModuleLoad = require$$0.Module._load;
|
|||
|
require$$0.Module._load = function(request, parent, isMain) {
|
|||
|
if (!enableNativeHooks)
|
|||
|
return originalModuleLoad.call(require$$0.Module, request, parent, isMain);
|
|||
|
if (isBuiltinModule(request)) {
|
|||
|
try {
|
|||
|
enableNativeHooks = false;
|
|||
|
return originalModuleLoad.call(require$$0.Module, request, parent, isMain);
|
|||
|
} finally {
|
|||
|
enableNativeHooks = true;
|
|||
|
}
|
|||
|
}
|
|||
|
const parentApiPath = opts.manager.getApiPathFromParent(parent);
|
|||
|
const parentApi = parentApiPath !== null ? opts.manager.getApiEntry(parentApiPath, true).instance : null;
|
|||
|
if (parentApi === null)
|
|||
|
return originalModuleLoad(request, parent, isMain);
|
|||
|
if (request === `pnpapi`)
|
|||
|
return parentApi;
|
|||
|
const modulePath = require$$0.Module._resolveFilename(request, parent, isMain);
|
|||
|
const isOwnedByRuntime = parentApi !== null ? parentApi.findPackageLocator(modulePath) !== null : false;
|
|||
|
const moduleApiPath = isOwnedByRuntime ? parentApiPath : opts.manager.findApiPathFor(npath.dirname(modulePath));
|
|||
|
const entry = moduleApiPath !== null ? opts.manager.getApiEntry(moduleApiPath) : {instance: null, cache: defaultCache};
|
|||
|
const cacheEntry = entry.cache[modulePath];
|
|||
|
if (cacheEntry) {
|
|||
|
if (cacheEntry.loaded === false && cacheEntry.isLoading !== true) {
|
|||
|
try {
|
|||
|
cacheEntry.isLoading = true;
|
|||
|
if (isMain) {
|
|||
|
process.mainModule = cacheEntry;
|
|||
|
cacheEntry.id = `.`;
|
|||
|
}
|
|||
|
cacheEntry.load(modulePath);
|
|||
|
} finally {
|
|||
|
cacheEntry.isLoading = false;
|
|||
|
}
|
|||
|
}
|
|||
|
return cacheEntry.exports;
|
|||
|
}
|
|||
|
const module = new require$$0.Module(modulePath, parent != null ? parent : void 0);
|
|||
|
module.pnpApiPath = moduleApiPath;
|
|||
|
entry.cache[modulePath] = module;
|
|||
|
if (isMain) {
|
|||
|
process.mainModule = module;
|
|||
|
module.id = `.`;
|
|||
|
}
|
|||
|
let hasThrown = true;
|
|||
|
try {
|
|||
|
module.isLoading = true;
|
|||
|
module.load(modulePath);
|
|||
|
hasThrown = false;
|
|||
|
} finally {
|
|||
|
module.isLoading = false;
|
|||
|
if (hasThrown) {
|
|||
|
delete require$$0.Module._cache[modulePath];
|
|||
|
}
|
|||
|
}
|
|||
|
return module.exports;
|
|||
|
};
|
|||
|
function getIssuerSpecsFromPaths(paths) {
|
|||
|
return paths.map((path) => ({
|
|||
|
apiPath: opts.manager.findApiPathFor(path),
|
|||
|
path,
|
|||
|
module: null
|
|||
|
}));
|
|||
|
}
|
|||
|
function getIssuerSpecsFromModule(module) {
|
|||
|
var _a;
|
|||
|
if (module && module.id !== `<repl>` && module.id !== `internal/preload` && !module.parent && !module.filename && module.paths.length > 0) {
|
|||
|
return [{
|
|||
|
apiPath: opts.manager.findApiPathFor(module.paths[0]),
|
|||
|
path: module.paths[0],
|
|||
|
module
|
|||
|
}];
|
|||
|
}
|
|||
|
const issuer = getIssuerModule(module);
|
|||
|
if (issuer !== null) {
|
|||
|
const path = npath.dirname(issuer.filename);
|
|||
|
const apiPath = opts.manager.getApiPathFromParent(issuer);
|
|||
|
return [{apiPath, path, module}];
|
|||
|
} else {
|
|||
|
const path = process.cwd();
|
|||
|
const apiPath = (_a = opts.manager.findApiPathFor(npath.join(path, `[file]`))) != null ? _a : opts.manager.getApiPathFromParent(null);
|
|||
|
return [{apiPath, path, module}];
|
|||
|
}
|
|||
|
}
|
|||
|
function makeFakeParent(path) {
|
|||
|
const fakeParent = new require$$0.Module(``);
|
|||
|
const fakeFilePath = npath.join(path, `[file]`);
|
|||
|
fakeParent.paths = require$$0.Module._nodeModulePaths(fakeFilePath);
|
|||
|
return fakeParent;
|
|||
|
}
|
|||
|
const pathRegExp = /^(?![a-zA-Z]:[\\/]|\\\\|\.{0,2}(?:\/|$))((?:@[^/]+\/)?[^/]+)\/*(.*|)$/;
|
|||
|
const originalModuleResolveFilename = require$$0.Module._resolveFilename;
|
|||
|
require$$0.Module._resolveFilename = function(request, parent, isMain, options) {
|
|||
|
if (isBuiltinModule(request))
|
|||
|
return request;
|
|||
|
if (!enableNativeHooks)
|
|||
|
return originalModuleResolveFilename.call(require$$0.Module, request, parent, isMain, options);
|
|||
|
if (options && options.plugnplay === false) {
|
|||
|
const _a = options, rest = __objRest$1(_a, ["plugnplay"]);
|
|||
|
const forwardedOptions = Object.keys(rest).length > 0 ? rest : void 0;
|
|||
|
try {
|
|||
|
enableNativeHooks = false;
|
|||
|
return originalModuleResolveFilename.call(require$$0.Module, request, parent, isMain, forwardedOptions);
|
|||
|
} finally {
|
|||
|
enableNativeHooks = true;
|
|||
|
}
|
|||
|
}
|
|||
|
if (options) {
|
|||
|
const optionNames = new Set(Object.keys(options));
|
|||
|
optionNames.delete(`paths`);
|
|||
|
optionNames.delete(`plugnplay`);
|
|||
|
if (optionNames.size > 0) {
|
|||
|
throw makeError(ErrorCode.UNSUPPORTED, `Some options passed to require() aren't supported by PnP yet (${Array.from(optionNames).join(`, `)})`);
|
|||
|
}
|
|||
|
}
|
|||
|
const issuerSpecs = options && options.paths ? getIssuerSpecsFromPaths(options.paths) : getIssuerSpecsFromModule(parent);
|
|||
|
if (request.match(pathRegExp) === null) {
|
|||
|
const parentDirectory = (parent == null ? void 0 : parent.filename) != null ? npath.dirname(parent.filename) : null;
|
|||
|
const absoluteRequest = npath.isAbsolute(request) ? request : parentDirectory !== null ? npath.resolve(parentDirectory, request) : null;
|
|||
|
if (absoluteRequest !== null) {
|
|||
|
const apiPath = parentDirectory === npath.dirname(absoluteRequest) && (parent == null ? void 0 : parent.pnpApiPath) ? parent.pnpApiPath : opts.manager.findApiPathFor(absoluteRequest);
|
|||
|
if (apiPath !== null) {
|
|||
|
issuerSpecs.unshift({
|
|||
|
apiPath,
|
|||
|
path: parentDirectory,
|
|||
|
module: null
|
|||
|
});
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
let firstError;
|
|||
|
for (const {apiPath, path, module} of issuerSpecs) {
|
|||
|
let resolution;
|
|||
|
const issuerApi = apiPath !== null ? opts.manager.getApiEntry(apiPath, true).instance : null;
|
|||
|
try {
|
|||
|
if (issuerApi !== null) {
|
|||
|
resolution = issuerApi.resolveRequest(request, path !== null ? `${path}/` : null);
|
|||
|
} else {
|
|||
|
if (path === null)
|
|||
|
throw new Error(`Assertion failed: Expected the path to be set`);
|
|||
|
resolution = originalModuleResolveFilename.call(require$$0.Module, request, module || makeFakeParent(path), isMain);
|
|||
|
}
|
|||
|
} catch (error) {
|
|||
|
firstError = firstError || error;
|
|||
|
continue;
|
|||
|
}
|
|||
|
if (resolution !== null) {
|
|||
|
return resolution;
|
|||
|
}
|
|||
|
}
|
|||
|
const requireStack = getRequireStack(parent);
|
|||
|
Object.defineProperty(firstError, `requireStack`, {
|
|||
|
configurable: true,
|
|||
|
writable: true,
|
|||
|
enumerable: false,
|
|||
|
value: requireStack
|
|||
|
});
|
|||
|
if (requireStack.length > 0)
|
|||
|
firstError.message += `
|
|||
|
Require stack:
|
|||
|
- ${requireStack.join(`
|
|||
|
- `)}`;
|
|||
|
if (typeof firstError.pnpCode === `string`)
|
|||
|
Error.captureStackTrace(firstError);
|
|||
|
throw firstError;
|
|||
|
};
|
|||
|
const originalFindPath = require$$0.Module._findPath;
|
|||
|
require$$0.Module._findPath = function(request, paths, isMain) {
|
|||
|
if (request === `pnpapi`)
|
|||
|
return false;
|
|||
|
if (!enableNativeHooks)
|
|||
|
return originalFindPath.call(require$$0.Module, request, paths, isMain);
|
|||
|
const isAbsolute = npath.isAbsolute(request);
|
|||
|
if (isAbsolute)
|
|||
|
paths = [``];
|
|||
|
else if (!paths || paths.length === 0)
|
|||
|
return false;
|
|||
|
for (const path of paths) {
|
|||
|
let resolution;
|
|||
|
try {
|
|||
|
const pnpApiPath = opts.manager.findApiPathFor(isAbsolute ? request : path);
|
|||
|
if (pnpApiPath !== null) {
|
|||
|
const api = opts.manager.getApiEntry(pnpApiPath, true).instance;
|
|||
|
resolution = api.resolveRequest(request, path) || false;
|
|||
|
} else {
|
|||
|
resolution = originalFindPath.call(require$$0.Module, request, [path], isMain);
|
|||
|
}
|
|||
|
} catch (error) {
|
|||
|
continue;
|
|||
|
}
|
|||
|
if (resolution) {
|
|||
|
return resolution;
|
|||
|
}
|
|||
|
}
|
|||
|
return false;
|
|||
|
};
|
|||
|
const originalExtensionJSFunction = require$$0.Module._extensions[`.js`];
|
|||
|
require$$0.Module._extensions[`.js`] = function(module, filename) {
|
|||
|
var _a, _b;
|
|||
|
if (filename.endsWith(`.js`)) {
|
|||
|
const pkg = readPackageScope(filename);
|
|||
|
if (pkg && ((_a = pkg.data) == null ? void 0 : _a.type) === `module`) {
|
|||
|
const err = ERR_REQUIRE_ESM(filename, (_b = module.parent) == null ? void 0 : _b.filename);
|
|||
|
Error.captureStackTrace(err);
|
|||
|
throw err;
|
|||
|
}
|
|||
|
}
|
|||
|
originalExtensionJSFunction.call(this, module, filename);
|
|||
|
};
|
|||
|
const originalEmit = process.emit;
|
|||
|
process.emit = function(name, data, ...args) {
|
|||
|
if (name === `warning` && typeof data === `object` && data.name === `ExperimentalWarning` && (data.message.includes(`--experimental-loader`) || data.message.includes(`Custom ESM Loaders is an experimental feature`)))
|
|||
|
return false;
|
|||
|
return originalEmit.apply(process, arguments);
|
|||
|
};
|
|||
|
patchFs(fs__default.default, new PosixFS(opts.fakeFs));
|
|||
|
}
|
|||
|
|
|||
|
function hydrateRuntimeState(data, {basePath}) {
|
|||
|
const portablePath = npath.toPortablePath(basePath);
|
|||
|
const absolutePortablePath = ppath.resolve(portablePath);
|
|||
|
const ignorePattern = data.ignorePatternData !== null ? new RegExp(data.ignorePatternData) : null;
|
|||
|
const packageLocatorsByLocations = new Map();
|
|||
|
const packageRegistry = new Map(data.packageRegistryData.map(([packageName, packageStoreData]) => {
|
|||
|
return [packageName, new Map(packageStoreData.map(([packageReference, packageInformationData]) => {
|
|||
|
var _a;
|
|||
|
if (packageName === null !== (packageReference === null))
|
|||
|
throw new Error(`Assertion failed: The name and reference should be null, or neither should`);
|
|||
|
const discardFromLookup = (_a = packageInformationData.discardFromLookup) != null ? _a : false;
|
|||
|
const packageLocator = {name: packageName, reference: packageReference};
|
|||
|
const entry = packageLocatorsByLocations.get(packageInformationData.packageLocation);
|
|||
|
if (!entry) {
|
|||
|
packageLocatorsByLocations.set(packageInformationData.packageLocation, {locator: packageLocator, discardFromLookup});
|
|||
|
} else {
|
|||
|
entry.discardFromLookup = entry.discardFromLookup && discardFromLookup;
|
|||
|
if (!discardFromLookup) {
|
|||
|
entry.locator = packageLocator;
|
|||
|
}
|
|||
|
}
|
|||
|
let resolvedPackageLocation = null;
|
|||
|
return [packageReference, {
|
|||
|
packageDependencies: new Map(packageInformationData.packageDependencies),
|
|||
|
packagePeers: new Set(packageInformationData.packagePeers),
|
|||
|
linkType: packageInformationData.linkType,
|
|||
|
discardFromLookup,
|
|||
|
get packageLocation() {
|
|||
|
return resolvedPackageLocation || (resolvedPackageLocation = ppath.join(absolutePortablePath, packageInformationData.packageLocation));
|
|||
|
}
|
|||
|
}];
|
|||
|
}))];
|
|||
|
}));
|
|||
|
const fallbackExclusionList = new Map(data.fallbackExclusionList.map(([packageName, packageReferences]) => {
|
|||
|
return [packageName, new Set(packageReferences)];
|
|||
|
}));
|
|||
|
const fallbackPool = new Map(data.fallbackPool);
|
|||
|
const dependencyTreeRoots = data.dependencyTreeRoots;
|
|||
|
const enableTopLevelFallback = data.enableTopLevelFallback;
|
|||
|
return {
|
|||
|
basePath: portablePath,
|
|||
|
dependencyTreeRoots,
|
|||
|
enableTopLevelFallback,
|
|||
|
fallbackExclusionList,
|
|||
|
fallbackPool,
|
|||
|
ignorePattern,
|
|||
|
packageLocatorsByLocations,
|
|||
|
packageRegistry
|
|||
|
};
|
|||
|
}
|
|||
|
|
|||
|
/**
|
|||
|
* @param {object} exports
|
|||
|
* @param {Set<string>} keys
|
|||
|
*/
|
|||
|
function loop(exports, keys) {
|
|||
|
if (typeof exports === 'string') {
|
|||
|
return exports;
|
|||
|
}
|
|||
|
|
|||
|
if (exports) {
|
|||
|
let idx, tmp;
|
|||
|
if (Array.isArray(exports)) {
|
|||
|
for (idx=0; idx < exports.length; idx++) {
|
|||
|
if (tmp = loop(exports[idx], keys)) return tmp;
|
|||
|
}
|
|||
|
} else {
|
|||
|
for (idx in exports) {
|
|||
|
if (keys.has(idx)) {
|
|||
|
return loop(exports[idx], keys);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
/**
|
|||
|
* @param {string} name The package name
|
|||
|
* @param {string} entry The target entry, eg "."
|
|||
|
* @param {number} [condition] Unmatched condition?
|
|||
|
*/
|
|||
|
function bail(name, entry, condition) {
|
|||
|
throw new Error(
|
|||
|
condition
|
|||
|
? `No known conditions for "${entry}" entry in "${name}" package`
|
|||
|
: `Missing "${entry}" export in "${name}" package`
|
|||
|
);
|
|||
|
}
|
|||
|
|
|||
|
/**
|
|||
|
* @param {string} name the package name
|
|||
|
* @param {string} entry the target path/import
|
|||
|
*/
|
|||
|
function toName(name, entry) {
|
|||
|
return entry === name ? '.'
|
|||
|
: entry[0] === '.' ? entry
|
|||
|
: entry.replace(new RegExp('^' + name + '\/'), './');
|
|||
|
}
|
|||
|
|
|||
|
/**
|
|||
|
* @param {object} pkg package.json contents
|
|||
|
* @param {string} [entry] entry name or import path
|
|||
|
* @param {object} [options]
|
|||
|
* @param {boolean} [options.browser]
|
|||
|
* @param {boolean} [options.require]
|
|||
|
* @param {string[]} [options.conditions]
|
|||
|
* @param {boolean} [options.unsafe]
|
|||
|
*/
|
|||
|
function resolve(pkg, entry='.', options={}) {
|
|||
|
let { name, exports } = pkg;
|
|||
|
|
|||
|
if (exports) {
|
|||
|
let { browser, require, unsafe, conditions=[] } = options;
|
|||
|
|
|||
|
let target = toName(name, entry);
|
|||
|
if (target[0] !== '.') target = './' + target;
|
|||
|
|
|||
|
if (typeof exports === 'string') {
|
|||
|
return target === '.' ? exports : bail(name, target);
|
|||
|
}
|
|||
|
|
|||
|
let allows = new Set(['default', ...conditions]);
|
|||
|
unsafe || allows.add(require ? 'require' : 'import');
|
|||
|
unsafe || allows.add(browser ? 'browser' : 'node');
|
|||
|
|
|||
|
let key, tmp, isSingle=false;
|
|||
|
|
|||
|
for (key in exports) {
|
|||
|
isSingle = key[0] !== '.';
|
|||
|
break;
|
|||
|
}
|
|||
|
|
|||
|
if (isSingle) {
|
|||
|
return target === '.'
|
|||
|
? loop(exports, allows) || bail(name, target, 1)
|
|||
|
: bail(name, target);
|
|||
|
}
|
|||
|
|
|||
|
if (tmp = exports[target]) {
|
|||
|
return loop(tmp, allows) || bail(name, target, 1);
|
|||
|
}
|
|||
|
|
|||
|
for (key in exports) {
|
|||
|
tmp = key[key.length - 1];
|
|||
|
if (tmp === '/' && target.startsWith(key)) {
|
|||
|
return (tmp = loop(exports[key], allows))
|
|||
|
? (tmp + target.substring(key.length))
|
|||
|
: bail(name, target, 1);
|
|||
|
}
|
|||
|
if (tmp === '*' && target.startsWith(key.slice(0, -1))) {
|
|||
|
// do not trigger if no *content* to inject
|
|||
|
if (target.substring(key.length - 1).length > 0) {
|
|||
|
return (tmp = loop(exports[key], allows))
|
|||
|
? tmp.replace('*', target.substring(key.length - 1))
|
|||
|
: bail(name, target, 1);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
return bail(name, target);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
var __defProp$1 = Object.defineProperty;
|
|||
|
var __defProps = Object.defineProperties;
|
|||
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|||
|
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|||
|
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|||
|
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|||
|
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
|
|||
|
var __spreadValues$1 = (a, b) => {
|
|||
|
for (var prop in b || (b = {}))
|
|||
|
if (__hasOwnProp$1.call(b, prop))
|
|||
|
__defNormalProp$1(a, prop, b[prop]);
|
|||
|
if (__getOwnPropSymbols$1)
|
|||
|
for (var prop of __getOwnPropSymbols$1(b)) {
|
|||
|
if (__propIsEnum$1.call(b, prop))
|
|||
|
__defNormalProp$1(a, prop, b[prop]);
|
|||
|
}
|
|||
|
return a;
|
|||
|
};
|
|||
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|||
|
function makeApi(runtimeState, opts) {
|
|||
|
const alwaysWarnOnFallback = Number(process.env.PNP_ALWAYS_WARN_ON_FALLBACK) > 0;
|
|||
|
const debugLevel = Number(process.env.PNP_DEBUG_LEVEL);
|
|||
|
const pathRegExp = /^(?![a-zA-Z]:[\\/]|\\\\|\.{0,2}(?:\/|$))((?:node:)?(?:@[^/]+\/)?[^/]+)\/*(.*|)$/;
|
|||
|
const isStrictRegExp = /^(\/|\.{1,2}(\/|$))/;
|
|||
|
const isDirRegExp = /\/$/;
|
|||
|
const isRelativeRegexp = /^\.{0,2}\//;
|
|||
|
const topLevelLocator = {name: null, reference: null};
|
|||
|
const fallbackLocators = [];
|
|||
|
const emittedWarnings = new Set();
|
|||
|
if (runtimeState.enableTopLevelFallback === true)
|
|||
|
fallbackLocators.push(topLevelLocator);
|
|||
|
if (opts.compatibilityMode !== false) {
|
|||
|
for (const name of [`react-scripts`, `gatsby`]) {
|
|||
|
const packageStore = runtimeState.packageRegistry.get(name);
|
|||
|
if (packageStore) {
|
|||
|
for (const reference of packageStore.keys()) {
|
|||
|
if (reference === null) {
|
|||
|
throw new Error(`Assertion failed: This reference shouldn't be null`);
|
|||
|
} else {
|
|||
|
fallbackLocators.push({name, reference});
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
const {
|
|||
|
ignorePattern,
|
|||
|
packageRegistry,
|
|||
|
packageLocatorsByLocations
|
|||
|
} = runtimeState;
|
|||
|
function makeLogEntry(name, args) {
|
|||
|
return {
|
|||
|
fn: name,
|
|||
|
args,
|
|||
|
error: null,
|
|||
|
result: null
|
|||
|
};
|
|||
|
}
|
|||
|
function trace(entry) {
|
|||
|
var _a, _b, _c, _d, _e, _f;
|
|||
|
const colors = (_c = (_b = (_a = process.stderr) == null ? void 0 : _a.hasColors) == null ? void 0 : _b.call(_a)) != null ? _c : process.stdout.isTTY;
|
|||
|
const c = (n, str) => `[${n}m${str}[0m`;
|
|||
|
const error = entry.error;
|
|||
|
if (error)
|
|||
|
console.error(c(`31;1`, `\u2716 ${(_d = entry.error) == null ? void 0 : _d.message.replace(/\n.*/s, ``)}`));
|
|||
|
else
|
|||
|
console.error(c(`33;1`, `\u203C Resolution`));
|
|||
|
if (entry.args.length > 0)
|
|||
|
console.error();
|
|||
|
for (const arg of entry.args)
|
|||
|
console.error(` ${c(`37;1`, `In \u2190`)} ${nodeUtils.inspect(arg, {colors, compact: true})}`);
|
|||
|
if (entry.result) {
|
|||
|
console.error();
|
|||
|
console.error(` ${c(`37;1`, `Out \u2192`)} ${nodeUtils.inspect(entry.result, {colors, compact: true})}`);
|
|||
|
}
|
|||
|
const stack = (_f = (_e = new Error().stack.match(/(?<=^ +)at.*/gm)) == null ? void 0 : _e.slice(2)) != null ? _f : [];
|
|||
|
if (stack.length > 0) {
|
|||
|
console.error();
|
|||
|
for (const line of stack) {
|
|||
|
console.error(` ${c(`38;5;244`, line)}`);
|
|||
|
}
|
|||
|
}
|
|||
|
console.error();
|
|||
|
}
|
|||
|
function maybeLog(name, fn) {
|
|||
|
if (opts.allowDebug === false)
|
|||
|
return fn;
|
|||
|
if (Number.isFinite(debugLevel)) {
|
|||
|
if (debugLevel >= 2) {
|
|||
|
return (...args) => {
|
|||
|
const logEntry = makeLogEntry(name, args);
|
|||
|
try {
|
|||
|
return logEntry.result = fn(...args);
|
|||
|
} catch (error) {
|
|||
|
throw logEntry.error = error;
|
|||
|
} finally {
|
|||
|
trace(logEntry);
|
|||
|
}
|
|||
|
};
|
|||
|
} else if (debugLevel >= 1) {
|
|||
|
return (...args) => {
|
|||
|
try {
|
|||
|
return fn(...args);
|
|||
|
} catch (error) {
|
|||
|
const logEntry = makeLogEntry(name, args);
|
|||
|
logEntry.error = error;
|
|||
|
trace(logEntry);
|
|||
|
throw error;
|
|||
|
}
|
|||
|
};
|
|||
|
}
|
|||
|
}
|
|||
|
return fn;
|
|||
|
}
|
|||
|
function getPackageInformationSafe(packageLocator) {
|
|||
|
const packageInformation = getPackageInformation(packageLocator);
|
|||
|
if (!packageInformation) {
|
|||
|
throw makeError(ErrorCode.INTERNAL, `Couldn't find a matching entry in the dependency tree for the specified parent (this is probably an internal error)`);
|
|||
|
}
|
|||
|
return packageInformation;
|
|||
|
}
|
|||
|
function isDependencyTreeRoot(packageLocator) {
|
|||
|
if (packageLocator.name === null)
|
|||
|
return true;
|
|||
|
for (const dependencyTreeRoot of runtimeState.dependencyTreeRoots)
|
|||
|
if (dependencyTreeRoot.name === packageLocator.name && dependencyTreeRoot.reference === packageLocator.reference)
|
|||
|
return true;
|
|||
|
return false;
|
|||
|
}
|
|||
|
const defaultExportsConditions = new Set([`default`, `node`, `require`]);
|
|||
|
function applyNodeExportsResolution(unqualifiedPath, conditions = defaultExportsConditions) {
|
|||
|
const locator = findPackageLocator(ppath.join(unqualifiedPath, `internal.js`), {
|
|||
|
resolveIgnored: true,
|
|||
|
includeDiscardFromLookup: true
|
|||
|
});
|
|||
|
if (locator === null) {
|
|||
|
throw makeError(ErrorCode.INTERNAL, `The locator that owns the "${unqualifiedPath}" path can't be found inside the dependency tree (this is probably an internal error)`);
|
|||
|
}
|
|||
|
const {packageLocation} = getPackageInformationSafe(locator);
|
|||
|
const manifestPath = ppath.join(packageLocation, Filename.manifest);
|
|||
|
if (!opts.fakeFs.existsSync(manifestPath))
|
|||
|
return null;
|
|||
|
const pkgJson = JSON.parse(opts.fakeFs.readFileSync(manifestPath, `utf8`));
|
|||
|
let subpath = ppath.contains(packageLocation, unqualifiedPath);
|
|||
|
if (subpath === null) {
|
|||
|
throw makeError(ErrorCode.INTERNAL, `unqualifiedPath doesn't contain the packageLocation (this is probably an internal error)`);
|
|||
|
}
|
|||
|
if (!isRelativeRegexp.test(subpath))
|
|||
|
subpath = `./${subpath}`;
|
|||
|
let resolvedExport;
|
|||
|
try {
|
|||
|
resolvedExport = resolve(pkgJson, ppath.normalize(subpath), {
|
|||
|
conditions,
|
|||
|
unsafe: true
|
|||
|
});
|
|||
|
} catch (error) {
|
|||
|
throw makeError(ErrorCode.EXPORTS_RESOLUTION_FAILED, error.message, {unqualifiedPath: getPathForDisplay(unqualifiedPath), locator, pkgJson, subpath: getPathForDisplay(subpath), conditions}, `ERR_PACKAGE_PATH_NOT_EXPORTED`);
|
|||
|
}
|
|||
|
if (typeof resolvedExport === `string`)
|
|||
|
return ppath.join(packageLocation, resolvedExport);
|
|||
|
return null;
|
|||
|
}
|
|||
|
function applyNodeExtensionResolution(unqualifiedPath, candidates, {extensions}) {
|
|||
|
let stat;
|
|||
|
try {
|
|||
|
candidates.push(unqualifiedPath);
|
|||
|
stat = opts.fakeFs.statSync(unqualifiedPath);
|
|||
|
} catch (error) {
|
|||
|
}
|
|||
|
if (stat && !stat.isDirectory())
|
|||
|
return opts.fakeFs.realpathSync(unqualifiedPath);
|
|||
|
if (stat && stat.isDirectory()) {
|
|||
|
let pkgJson;
|
|||
|
try {
|
|||
|
pkgJson = JSON.parse(opts.fakeFs.readFileSync(ppath.join(unqualifiedPath, Filename.manifest), `utf8`));
|
|||
|
} catch (error) {
|
|||
|
}
|
|||
|
let nextUnqualifiedPath;
|
|||
|
if (pkgJson && pkgJson.main)
|
|||
|
nextUnqualifiedPath = ppath.resolve(unqualifiedPath, pkgJson.main);
|
|||
|
if (nextUnqualifiedPath && nextUnqualifiedPath !== unqualifiedPath) {
|
|||
|
const resolution = applyNodeExtensionResolution(nextUnqualifiedPath, candidates, {extensions});
|
|||
|
if (resolution !== null) {
|
|||
|
return resolution;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
for (let i = 0, length = extensions.length; i < length; i++) {
|
|||
|
const candidateFile = `${unqualifiedPath}${extensions[i]}`;
|
|||
|
candidates.push(candidateFile);
|
|||
|
if (opts.fakeFs.existsSync(candidateFile)) {
|
|||
|
return candidateFile;
|
|||
|
}
|
|||
|
}
|
|||
|
if (stat && stat.isDirectory()) {
|
|||
|
for (let i = 0, length = extensions.length; i < length; i++) {
|
|||
|
const candidateFile = ppath.format({dir: unqualifiedPath, name: `index`, ext: extensions[i]});
|
|||
|
candidates.push(candidateFile);
|
|||
|
if (opts.fakeFs.existsSync(candidateFile)) {
|
|||
|
return candidateFile;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
return null;
|
|||
|
}
|
|||
|
function makeFakeModule(path) {
|
|||
|
const fakeModule = new require$$0.Module(path, null);
|
|||
|
fakeModule.filename = path;
|
|||
|
fakeModule.paths = require$$0.Module._nodeModulePaths(path);
|
|||
|
return fakeModule;
|
|||
|
}
|
|||
|
function callNativeResolution(request, issuer) {
|
|||
|
if (issuer.endsWith(`/`))
|
|||
|
issuer = ppath.join(issuer, `internal.js`);
|
|||
|
return require$$0.Module._resolveFilename(npath.fromPortablePath(request), makeFakeModule(npath.fromPortablePath(issuer)), false, {plugnplay: false});
|
|||
|
}
|
|||
|
function isPathIgnored(path) {
|
|||
|
if (ignorePattern === null)
|
|||
|
return false;
|
|||
|
const subPath = ppath.contains(runtimeState.basePath, path);
|
|||
|
if (subPath === null)
|
|||
|
return false;
|
|||
|
if (ignorePattern.test(subPath.replace(/\/$/, ``))) {
|
|||
|
return true;
|
|||
|
} else {
|
|||
|
return false;
|
|||
|
}
|
|||
|
}
|
|||
|
const VERSIONS = {std: 3, resolveVirtual: 1, getAllLocators: 1};
|
|||
|
const topLevel = topLevelLocator;
|
|||
|
function getPackageInformation({name, reference}) {
|
|||
|
const packageInformationStore = packageRegistry.get(name);
|
|||
|
if (!packageInformationStore)
|
|||
|
return null;
|
|||
|
const packageInformation = packageInformationStore.get(reference);
|
|||
|
if (!packageInformation)
|
|||
|
return null;
|
|||
|
return packageInformation;
|
|||
|
}
|
|||
|
function findPackageDependents({name, reference}) {
|
|||
|
const dependents = [];
|
|||
|
for (const [dependentName, packageInformationStore] of packageRegistry) {
|
|||
|
if (dependentName === null)
|
|||
|
continue;
|
|||
|
for (const [dependentReference, packageInformation] of packageInformationStore) {
|
|||
|
if (dependentReference === null)
|
|||
|
continue;
|
|||
|
const dependencyReference = packageInformation.packageDependencies.get(name);
|
|||
|
if (dependencyReference !== reference)
|
|||
|
continue;
|
|||
|
if (dependentName === name && dependentReference === reference)
|
|||
|
continue;
|
|||
|
dependents.push({
|
|||
|
name: dependentName,
|
|||
|
reference: dependentReference
|
|||
|
});
|
|||
|
}
|
|||
|
}
|
|||
|
return dependents;
|
|||
|
}
|
|||
|
function findBrokenPeerDependencies(dependency, initialPackage) {
|
|||
|
const brokenPackages = new Map();
|
|||
|
const alreadyVisited = new Set();
|
|||
|
const traversal = (currentPackage) => {
|
|||
|
const identifier = JSON.stringify(currentPackage.name);
|
|||
|
if (alreadyVisited.has(identifier))
|
|||
|
return;
|
|||
|
alreadyVisited.add(identifier);
|
|||
|
const dependents = findPackageDependents(currentPackage);
|
|||
|
for (const dependent of dependents) {
|
|||
|
const dependentInformation = getPackageInformationSafe(dependent);
|
|||
|
if (dependentInformation.packagePeers.has(dependency)) {
|
|||
|
traversal(dependent);
|
|||
|
} else {
|
|||
|
let brokenSet = brokenPackages.get(dependent.name);
|
|||
|
if (typeof brokenSet === `undefined`)
|
|||
|
brokenPackages.set(dependent.name, brokenSet = new Set());
|
|||
|
brokenSet.add(dependent.reference);
|
|||
|
}
|
|||
|
}
|
|||
|
};
|
|||
|
traversal(initialPackage);
|
|||
|
const brokenList = [];
|
|||
|
for (const name of [...brokenPackages.keys()].sort())
|
|||
|
for (const reference of [...brokenPackages.get(name)].sort())
|
|||
|
brokenList.push({name, reference});
|
|||
|
return brokenList;
|
|||
|
}
|
|||
|
function findPackageLocator(location, {resolveIgnored = false, includeDiscardFromLookup = false} = {}) {
|
|||
|
if (isPathIgnored(location) && !resolveIgnored)
|
|||
|
return null;
|
|||
|
let relativeLocation = ppath.relative(runtimeState.basePath, location);
|
|||
|
if (!relativeLocation.match(isStrictRegExp))
|
|||
|
relativeLocation = `./${relativeLocation}`;
|
|||
|
if (!relativeLocation.endsWith(`/`))
|
|||
|
relativeLocation = `${relativeLocation}/`;
|
|||
|
do {
|
|||
|
const entry = packageLocatorsByLocations.get(relativeLocation);
|
|||
|
if (typeof entry === `undefined` || entry.discardFromLookup && !includeDiscardFromLookup) {
|
|||
|
relativeLocation = relativeLocation.substring(0, relativeLocation.lastIndexOf(`/`, relativeLocation.length - 2) + 1);
|
|||
|
continue;
|
|||
|
}
|
|||
|
return entry.locator;
|
|||
|
} while (relativeLocation !== ``);
|
|||
|
return null;
|
|||
|
}
|
|||
|
function resolveToUnqualified(request, issuer, {considerBuiltins = true} = {}) {
|
|||
|
if (request === `pnpapi`)
|
|||
|
return npath.toPortablePath(opts.pnpapiResolution);
|
|||
|
if (considerBuiltins && isBuiltinModule(request))
|
|||
|
return null;
|
|||
|
const requestForDisplay = getPathForDisplay(request);
|
|||
|
const issuerForDisplay = issuer && getPathForDisplay(issuer);
|
|||
|
if (issuer && isPathIgnored(issuer)) {
|
|||
|
if (!ppath.isAbsolute(request) || findPackageLocator(request) === null) {
|
|||
|
const result = callNativeResolution(request, issuer);
|
|||
|
if (result === false) {
|
|||
|
throw makeError(ErrorCode.BUILTIN_NODE_RESOLUTION_FAILED, `The builtin node resolution algorithm was unable to resolve the requested module (it didn't go through the pnp resolver because the issuer was explicitely ignored by the regexp)
|
|||
|
|
|||
|
Require request: "${requestForDisplay}"
|
|||
|
Required by: ${issuerForDisplay}
|
|||
|
`, {request: requestForDisplay, issuer: issuerForDisplay});
|
|||
|
}
|
|||
|
return npath.toPortablePath(result);
|
|||
|
}
|
|||
|
}
|
|||
|
let unqualifiedPath;
|
|||
|
const dependencyNameMatch = request.match(pathRegExp);
|
|||
|
if (!dependencyNameMatch) {
|
|||
|
if (ppath.isAbsolute(request)) {
|
|||
|
unqualifiedPath = ppath.normalize(request);
|
|||
|
} else {
|
|||
|
if (!issuer) {
|
|||
|
throw makeError(ErrorCode.API_ERROR, `The resolveToUnqualified function must be called with a valid issuer when the path isn't a builtin nor absolute`, {request: requestForDisplay, issuer: issuerForDisplay});
|
|||
|
}
|
|||
|
const absoluteIssuer = ppath.resolve(issuer);
|
|||
|
if (issuer.match(isDirRegExp)) {
|
|||
|
unqualifiedPath = ppath.normalize(ppath.join(absoluteIssuer, request));
|
|||
|
} else {
|
|||
|
unqualifiedPath = ppath.normalize(ppath.join(ppath.dirname(absoluteIssuer), request));
|
|||
|
}
|
|||
|
}
|
|||
|
} else {
|
|||
|
if (!issuer) {
|
|||
|
throw makeError(ErrorCode.API_ERROR, `The resolveToUnqualified function must be called with a valid issuer when the path isn't a builtin nor absolute`, {request: requestForDisplay, issuer: issuerForDisplay});
|
|||
|
}
|
|||
|
const [, dependencyName, subPath] = dependencyNameMatch;
|
|||
|
const issuerLocator = findPackageLocator(issuer);
|
|||
|
if (!issuerLocator) {
|
|||
|
const result = callNativeResolution(request, issuer);
|
|||
|
if (result === false) {
|
|||
|
throw makeError(ErrorCode.BUILTIN_NODE_RESOLUTION_FAILED, `The builtin node resolution algorithm was unable to resolve the requested module (it didn't go through the pnp resolver because the issuer doesn't seem to be part of the Yarn-managed dependency tree).
|
|||
|
|
|||
|
Require path: "${requestForDisplay}"
|
|||
|
Required by: ${issuerForDisplay}
|
|||
|
`, {request: requestForDisplay, issuer: issuerForDisplay});
|
|||
|
}
|
|||
|
return npath.toPortablePath(result);
|
|||
|
}
|
|||
|
const issuerInformation = getPackageInformationSafe(issuerLocator);
|
|||
|
let dependencyReference = issuerInformation.packageDependencies.get(dependencyName);
|
|||
|
let fallbackReference = null;
|
|||
|
if (dependencyReference == null) {
|
|||
|
if (issuerLocator.name !== null) {
|
|||
|
const exclusionEntry = runtimeState.fallbackExclusionList.get(issuerLocator.name);
|
|||
|
const canUseFallbacks = !exclusionEntry || !exclusionEntry.has(issuerLocator.reference);
|
|||
|
if (canUseFallbacks) {
|
|||
|
for (let t = 0, T = fallbackLocators.length; t < T; ++t) {
|
|||
|
const fallbackInformation = getPackageInformationSafe(fallbackLocators[t]);
|
|||
|
const reference = fallbackInformation.packageDependencies.get(dependencyName);
|
|||
|
if (reference == null)
|
|||
|
continue;
|
|||
|
if (alwaysWarnOnFallback)
|
|||
|
fallbackReference = reference;
|
|||
|
else
|
|||
|
dependencyReference = reference;
|
|||
|
break;
|
|||
|
}
|
|||
|
if (runtimeState.enableTopLevelFallback) {
|
|||
|
if (dependencyReference == null && fallbackReference === null) {
|
|||
|
const reference = runtimeState.fallbackPool.get(dependencyName);
|
|||
|
if (reference != null) {
|
|||
|
fallbackReference = reference;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
let error = null;
|
|||
|
if (dependencyReference === null) {
|
|||
|
if (isDependencyTreeRoot(issuerLocator)) {
|
|||
|
error = makeError(ErrorCode.MISSING_PEER_DEPENDENCY, `Your application tried to access ${dependencyName} (a peer dependency); this isn't allowed as there is no ancestor to satisfy the requirement. Use a devDependency if needed.
|
|||
|
|
|||
|
Required package: ${dependencyName}${dependencyName !== requestForDisplay ? ` (via "${requestForDisplay}")` : ``}
|
|||
|
Required by: ${issuerForDisplay}
|
|||
|
`, {request: requestForDisplay, issuer: issuerForDisplay, dependencyName});
|
|||
|
} else {
|
|||
|
const brokenAncestors = findBrokenPeerDependencies(dependencyName, issuerLocator);
|
|||
|
if (brokenAncestors.every((ancestor) => isDependencyTreeRoot(ancestor))) {
|
|||
|
error = makeError(ErrorCode.MISSING_PEER_DEPENDENCY, `${issuerLocator.name} tried to access ${dependencyName} (a peer dependency) but it isn't provided by your application; this makes the require call ambiguous and unsound.
|
|||
|
|
|||
|
Required package: ${dependencyName}${dependencyName !== requestForDisplay ? ` (via "${requestForDisplay}")` : ``}
|
|||
|
Required by: ${issuerLocator.name}@${issuerLocator.reference} (via ${issuerForDisplay})
|
|||
|
${brokenAncestors.map((ancestorLocator) => `Ancestor breaking the chain: ${ancestorLocator.name}@${ancestorLocator.reference}
|
|||
|
`).join(``)}
|
|||
|
`, {request: requestForDisplay, issuer: issuerForDisplay, issuerLocator: Object.assign({}, issuerLocator), dependencyName, brokenAncestors});
|
|||
|
} else {
|
|||
|
error = makeError(ErrorCode.MISSING_PEER_DEPENDENCY, `${issuerLocator.name} tried to access ${dependencyName} (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound.
|
|||
|
|
|||
|
Required package: ${dependencyName}${dependencyName !== requestForDisplay ? ` (via "${requestForDisplay}")` : ``}
|
|||
|
Required by: ${issuerLocator.name}@${issuerLocator.reference} (via ${issuerForDisplay})
|
|||
|
|
|||
|
${brokenAncestors.map((ancestorLocator) => `Ancestor breaking the chain: ${ancestorLocator.name}@${ancestorLocator.reference}
|
|||
|
`).join(``)}
|
|||
|
`, {request: requestForDisplay, issuer: issuerForDisplay, issuerLocator: Object.assign({}, issuerLocator), dependencyName, brokenAncestors});
|
|||
|
}
|
|||
|
}
|
|||
|
} else if (dependencyReference === void 0) {
|
|||
|
if (!considerBuiltins && isBuiltinModule(request)) {
|
|||
|
if (isDependencyTreeRoot(issuerLocator)) {
|
|||
|
error = makeError(ErrorCode.UNDECLARED_DEPENDENCY, `Your application tried to access ${dependencyName}. While this module is usually interpreted as a Node builtin, your resolver is running inside a non-Node resolution context where such builtins are ignored. Since ${dependencyName} isn't otherwise declared in your dependencies, this makes the require call ambiguous and unsound.
|
|||
|
|
|||
|
Required package: ${dependencyName}${dependencyName !== requestForDisplay ? ` (via "${requestForDisplay}")` : ``}
|
|||
|
Required by: ${issuerForDisplay}
|
|||
|
`, {request: requestForDisplay, issuer: issuerForDisplay, dependencyName});
|
|||
|
} else {
|
|||
|
error = makeError(ErrorCode.UNDECLARED_DEPENDENCY, `${issuerLocator.name} tried to access ${dependencyName}. While this module is usually interpreted as a Node builtin, your resolver is running inside a non-Node resolution context where such builtins are ignored. Since ${dependencyName} isn't otherwise declared in ${issuerLocator.name}'s dependencies, this makes the require call ambiguous and unsound.
|
|||
|
|
|||
|
Required package: ${dependencyName}${dependencyName !== requestForDisplay ? ` (via "${requestForDisplay}")` : ``}
|
|||
|
Required by: ${issuerForDisplay}
|
|||
|
`, {request: requestForDisplay, issuer: issuerForDisplay, issuerLocator: Object.assign({}, issuerLocator), dependencyName});
|
|||
|
}
|
|||
|
} else {
|
|||
|
if (isDependencyTreeRoot(issuerLocator)) {
|
|||
|
error = makeError(ErrorCode.UNDECLARED_DEPENDENCY, `Your application tried to access ${dependencyName}, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.
|
|||
|
|
|||
|
Required package: ${dependencyName}${dependencyName !== requestForDisplay ? ` (via "${requestForDisplay}")` : ``}
|
|||
|
Required by: ${issuerForDisplay}
|
|||
|
`, {request: requestForDisplay, issuer: issuerForDisplay, dependencyName});
|
|||
|
} else {
|
|||
|
error = makeError(ErrorCode.UNDECLARED_DEPENDENCY, `${issuerLocator.name} tried to access ${dependencyName}, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
|
|||
|
|
|||
|
Required package: ${dependencyName}${dependencyName !== requestForDisplay ? ` (via "${requestForDisplay}")` : ``}
|
|||
|
Required by: ${issuerLocator.name}@${issuerLocator.reference} (via ${issuerForDisplay})
|
|||
|
`, {request: requestForDisplay, issuer: issuerForDisplay, issuerLocator: Object.assign({}, issuerLocator), dependencyName});
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
if (dependencyReference == null) {
|
|||
|
if (fallbackReference === null || error === null)
|
|||
|
throw error || new Error(`Assertion failed: Expected an error to have been set`);
|
|||
|
dependencyReference = fallbackReference;
|
|||
|
const message = error.message.replace(/\n.*/g, ``);
|
|||
|
error.message = message;
|
|||
|
if (!emittedWarnings.has(message) && debugLevel !== 0) {
|
|||
|
emittedWarnings.add(message);
|
|||
|
process.emitWarning(error);
|
|||
|
}
|
|||
|
}
|
|||
|
const dependencyLocator = Array.isArray(dependencyReference) ? {name: dependencyReference[0], reference: dependencyReference[1]} : {name: dependencyName, reference: dependencyReference};
|
|||
|
const dependencyInformation = getPackageInformationSafe(dependencyLocator);
|
|||
|
if (!dependencyInformation.packageLocation) {
|
|||
|
throw makeError(ErrorCode.MISSING_DEPENDENCY, `A dependency seems valid but didn't get installed for some reason. This might be caused by a partial install, such as dev vs prod.
|
|||
|
|
|||
|
Required package: ${dependencyLocator.name}@${dependencyLocator.reference}${dependencyLocator.name !== requestForDisplay ? ` (via "${requestForDisplay}")` : ``}
|
|||
|
Required by: ${issuerLocator.name}@${issuerLocator.reference} (via ${issuerForDisplay})
|
|||
|
`, {request: requestForDisplay, issuer: issuerForDisplay, dependencyLocator: Object.assign({}, dependencyLocator)});
|
|||
|
}
|
|||
|
const dependencyLocation = dependencyInformation.packageLocation;
|
|||
|
if (subPath) {
|
|||
|
unqualifiedPath = ppath.join(dependencyLocation, subPath);
|
|||
|
} else {
|
|||
|
unqualifiedPath = dependencyLocation;
|
|||
|
}
|
|||
|
}
|
|||
|
return ppath.normalize(unqualifiedPath);
|
|||
|
}
|
|||
|
function resolveUnqualifiedExport(request, unqualifiedPath, conditions = defaultExportsConditions) {
|
|||
|
if (isStrictRegExp.test(request))
|
|||
|
return unqualifiedPath;
|
|||
|
const unqualifiedExportPath = applyNodeExportsResolution(unqualifiedPath, conditions);
|
|||
|
if (unqualifiedExportPath) {
|
|||
|
return ppath.normalize(unqualifiedExportPath);
|
|||
|
} else {
|
|||
|
return unqualifiedPath;
|
|||
|
}
|
|||
|
}
|
|||
|
function resolveUnqualified(unqualifiedPath, {extensions = Object.keys(require$$0.Module._extensions)} = {}) {
|
|||
|
var _a, _b;
|
|||
|
const candidates = [];
|
|||
|
const qualifiedPath = applyNodeExtensionResolution(unqualifiedPath, candidates, {extensions});
|
|||
|
if (qualifiedPath) {
|
|||
|
return ppath.normalize(qualifiedPath);
|
|||
|
} else {
|
|||
|
const unqualifiedPathForDisplay = getPathForDisplay(unqualifiedPath);
|
|||
|
const containingPackage = findPackageLocator(unqualifiedPath);
|
|||
|
if (containingPackage) {
|
|||
|
const {packageLocation} = getPackageInformationSafe(containingPackage);
|
|||
|
let exists = true;
|
|||
|
try {
|
|||
|
opts.fakeFs.accessSync(packageLocation);
|
|||
|
} catch (err) {
|
|||
|
if ((err == null ? void 0 : err.code) === `ENOENT`) {
|
|||
|
exists = false;
|
|||
|
} else {
|
|||
|
const readableError = ((_b = (_a = err == null ? void 0 : err.message) != null ? _a : err) != null ? _b : `empty exception thrown`).replace(/^[A-Z]/, ($0) => $0.toLowerCase());
|
|||
|
throw makeError(ErrorCode.QUALIFIED_PATH_RESOLUTION_FAILED, `Required package exists but could not be accessed (${readableError}).
|
|||
|
|
|||
|
Missing package: ${containingPackage.name}@${containingPackage.reference}
|
|||
|
Expected package location: ${getPathForDisplay(packageLocation)}
|
|||
|
`, {unqualifiedPath: unqualifiedPathForDisplay, extensions});
|
|||
|
}
|
|||
|
}
|
|||
|
if (!exists) {
|
|||
|
const errorMessage = packageLocation.includes(`/unplugged/`) ? `Required unplugged package missing from disk. This may happen when switching branches without running installs (unplugged packages must be fully materialized on disk to work).` : `Required package missing from disk. If you keep your packages inside your repository then restarting the Node process may be enough. Otherwise, try to run an install first.`;
|
|||
|
throw makeError(ErrorCode.QUALIFIED_PATH_RESOLUTION_FAILED, `${errorMessage}
|
|||
|
|
|||
|
Missing package: ${containingPackage.name}@${containingPackage.reference}
|
|||
|
Expected package location: ${getPathForDisplay(packageLocation)}
|
|||
|
`, {unqualifiedPath: unqualifiedPathForDisplay, extensions});
|
|||
|
}
|
|||
|
}
|
|||
|
throw makeError(ErrorCode.QUALIFIED_PATH_RESOLUTION_FAILED, `Qualified path resolution failed: we looked for the following paths, but none could be accessed.
|
|||
|
|
|||
|
Source path: ${unqualifiedPathForDisplay}
|
|||
|
${candidates.map((candidate) => `Not found: ${getPathForDisplay(candidate)}
|
|||
|
`).join(``)}`, {unqualifiedPath: unqualifiedPathForDisplay, extensions});
|
|||
|
}
|
|||
|
}
|
|||
|
function resolveRequest(request, issuer, {considerBuiltins, extensions, conditions} = {}) {
|
|||
|
try {
|
|||
|
const unqualifiedPath = resolveToUnqualified(request, issuer, {considerBuiltins});
|
|||
|
if (request === `pnpapi`)
|
|||
|
return unqualifiedPath;
|
|||
|
if (unqualifiedPath === null)
|
|||
|
return null;
|
|||
|
const isIssuerIgnored = () => issuer !== null ? isPathIgnored(issuer) : false;
|
|||
|
const remappedPath = (!considerBuiltins || !isBuiltinModule(request)) && !isIssuerIgnored() ? resolveUnqualifiedExport(request, unqualifiedPath, conditions) : unqualifiedPath;
|
|||
|
return resolveUnqualified(remappedPath, {extensions});
|
|||
|
} catch (error) {
|
|||
|
if (Object.prototype.hasOwnProperty.call(error, `pnpCode`))
|
|||
|
Object.assign(error.data, {request: getPathForDisplay(request), issuer: issuer && getPathForDisplay(issuer)});
|
|||
|
throw error;
|
|||
|
}
|
|||
|
}
|
|||
|
function resolveVirtual(request) {
|
|||
|
const normalized = ppath.normalize(request);
|
|||
|
const resolved = VirtualFS.resolveVirtual(normalized);
|
|||
|
return resolved !== normalized ? resolved : null;
|
|||
|
}
|
|||
|
return {
|
|||
|
VERSIONS,
|
|||
|
topLevel,
|
|||
|
getLocator: (name, referencish) => {
|
|||
|
if (Array.isArray(referencish)) {
|
|||
|
return {name: referencish[0], reference: referencish[1]};
|
|||
|
} else {
|
|||
|
return {name, reference: referencish};
|
|||
|
}
|
|||
|
},
|
|||
|
getDependencyTreeRoots: () => {
|
|||
|
return [...runtimeState.dependencyTreeRoots];
|
|||
|
},
|
|||
|
getAllLocators() {
|
|||
|
const locators = [];
|
|||
|
for (const [name, entry] of packageRegistry)
|
|||
|
for (const reference of entry.keys())
|
|||
|
if (name !== null && reference !== null)
|
|||
|
locators.push({name, reference});
|
|||
|
return locators;
|
|||
|
},
|
|||
|
getPackageInformation: (locator) => {
|
|||
|
const info = getPackageInformation(locator);
|
|||
|
if (info === null)
|
|||
|
return null;
|
|||
|
const packageLocation = npath.fromPortablePath(info.packageLocation);
|
|||
|
const nativeInfo = __spreadProps(__spreadValues$1({}, info), {packageLocation});
|
|||
|
return nativeInfo;
|
|||
|
},
|
|||
|
findPackageLocator: (path) => {
|
|||
|
return findPackageLocator(npath.toPortablePath(path));
|
|||
|
},
|
|||
|
resolveToUnqualified: maybeLog(`resolveToUnqualified`, (request, issuer, opts2) => {
|
|||
|
const portableIssuer = issuer !== null ? npath.toPortablePath(issuer) : null;
|
|||
|
const resolution = resolveToUnqualified(npath.toPortablePath(request), portableIssuer, opts2);
|
|||
|
if (resolution === null)
|
|||
|
return null;
|
|||
|
return npath.fromPortablePath(resolution);
|
|||
|
}),
|
|||
|
resolveUnqualified: maybeLog(`resolveUnqualified`, (unqualifiedPath, opts2) => {
|
|||
|
return npath.fromPortablePath(resolveUnqualified(npath.toPortablePath(unqualifiedPath), opts2));
|
|||
|
}),
|
|||
|
resolveRequest: maybeLog(`resolveRequest`, (request, issuer, opts2) => {
|
|||
|
const portableIssuer = issuer !== null ? npath.toPortablePath(issuer) : null;
|
|||
|
const resolution = resolveRequest(npath.toPortablePath(request), portableIssuer, opts2);
|
|||
|
if (resolution === null)
|
|||
|
return null;
|
|||
|
return npath.fromPortablePath(resolution);
|
|||
|
}),
|
|||
|
resolveVirtual: maybeLog(`resolveVirtual`, (path) => {
|
|||
|
const result = resolveVirtual(npath.toPortablePath(path));
|
|||
|
if (result !== null) {
|
|||
|
return npath.fromPortablePath(result);
|
|||
|
} else {
|
|||
|
return null;
|
|||
|
}
|
|||
|
})
|
|||
|
};
|
|||
|
}
|
|||
|
|
|||
|
function makeManager(pnpapi, opts) {
|
|||
|
const initialApiPath = npath.toPortablePath(pnpapi.resolveToUnqualified(`pnpapi`, null));
|
|||
|
const initialApiStats = opts.fakeFs.statSync(npath.toPortablePath(initialApiPath));
|
|||
|
const apiMetadata = new Map([
|
|||
|
[initialApiPath, {
|
|||
|
cache: require$$0.Module._cache,
|
|||
|
instance: pnpapi,
|
|||
|
stats: initialApiStats,
|
|||
|
lastRefreshCheck: Date.now()
|
|||
|
}]
|
|||
|
]);
|
|||
|
function loadApiInstance(pnpApiPath) {
|
|||
|
const nativePath = npath.fromPortablePath(pnpApiPath);
|
|||
|
const module = new require$$0.Module(nativePath, null);
|
|||
|
module.load(nativePath);
|
|||
|
return module.exports;
|
|||
|
}
|
|||
|
function refreshApiEntry(pnpApiPath, apiEntry) {
|
|||
|
const timeNow = Date.now();
|
|||
|
if (timeNow - apiEntry.lastRefreshCheck < 500)
|
|||
|
return;
|
|||
|
apiEntry.lastRefreshCheck = timeNow;
|
|||
|
const stats = opts.fakeFs.statSync(pnpApiPath);
|
|||
|
if (stats.mtime > apiEntry.stats.mtime) {
|
|||
|
process.emitWarning(`[Warning] The runtime detected new informations in a PnP file; reloading the API instance (${npath.fromPortablePath(pnpApiPath)})`);
|
|||
|
apiEntry.stats = stats;
|
|||
|
apiEntry.instance = loadApiInstance(pnpApiPath);
|
|||
|
}
|
|||
|
}
|
|||
|
function getApiEntry(pnpApiPath, refresh = false) {
|
|||
|
let apiEntry = apiMetadata.get(pnpApiPath);
|
|||
|
if (typeof apiEntry !== `undefined`) {
|
|||
|
if (refresh) {
|
|||
|
refreshApiEntry(pnpApiPath, apiEntry);
|
|||
|
}
|
|||
|
} else {
|
|||
|
apiMetadata.set(pnpApiPath, apiEntry = {
|
|||
|
cache: {},
|
|||
|
instance: loadApiInstance(pnpApiPath),
|
|||
|
stats: opts.fakeFs.statSync(pnpApiPath),
|
|||
|
lastRefreshCheck: Date.now()
|
|||
|
});
|
|||
|
}
|
|||
|
return apiEntry;
|
|||
|
}
|
|||
|
const findApiPathCache = new Map();
|
|||
|
function addToCacheAndReturn(start, end, target) {
|
|||
|
if (target !== null)
|
|||
|
target = VirtualFS.resolveVirtual(target);
|
|||
|
let curr;
|
|||
|
let next = start;
|
|||
|
do {
|
|||
|
curr = next;
|
|||
|
findApiPathCache.set(curr, target);
|
|||
|
next = ppath.dirname(curr);
|
|||
|
} while (curr !== end);
|
|||
|
return target;
|
|||
|
}
|
|||
|
function findApiPathFor(modulePath) {
|
|||
|
let bestCandidate = null;
|
|||
|
for (const [apiPath, apiEntry] of apiMetadata) {
|
|||
|
const locator = apiEntry.instance.findPackageLocator(modulePath);
|
|||
|
if (!locator)
|
|||
|
continue;
|
|||
|
if (apiMetadata.size === 1)
|
|||
|
return apiPath;
|
|||
|
const packageInformation = apiEntry.instance.getPackageInformation(locator);
|
|||
|
if (!packageInformation)
|
|||
|
throw new Error(`Assertion failed: Couldn't get package information for '${modulePath}'`);
|
|||
|
if (!bestCandidate)
|
|||
|
bestCandidate = {packageLocation: packageInformation.packageLocation, apiPaths: []};
|
|||
|
if (packageInformation.packageLocation === bestCandidate.packageLocation) {
|
|||
|
bestCandidate.apiPaths.push(apiPath);
|
|||
|
} else if (packageInformation.packageLocation.length > bestCandidate.packageLocation.length) {
|
|||
|
bestCandidate = {packageLocation: packageInformation.packageLocation, apiPaths: [apiPath]};
|
|||
|
}
|
|||
|
}
|
|||
|
if (bestCandidate) {
|
|||
|
if (bestCandidate.apiPaths.length === 1)
|
|||
|
return bestCandidate.apiPaths[0];
|
|||
|
const controlSegment = bestCandidate.apiPaths.map((apiPath) => ` ${npath.fromPortablePath(apiPath)}`).join(`
|
|||
|
`);
|
|||
|
throw new Error(`Unable to locate pnpapi, the module '${modulePath}' is controlled by multiple pnpapi instances.
|
|||
|
This is usually caused by using the global cache (enableGlobalCache: true)
|
|||
|
|
|||
|
Controlled by:
|
|||
|
${controlSegment}
|
|||
|
`);
|
|||
|
}
|
|||
|
const start = ppath.resolve(npath.toPortablePath(modulePath));
|
|||
|
let curr;
|
|||
|
let next = start;
|
|||
|
do {
|
|||
|
curr = next;
|
|||
|
const cached = findApiPathCache.get(curr);
|
|||
|
if (cached !== void 0)
|
|||
|
return addToCacheAndReturn(start, curr, cached);
|
|||
|
const cjsCandidate = ppath.join(curr, Filename.pnpCjs);
|
|||
|
if (opts.fakeFs.existsSync(cjsCandidate) && opts.fakeFs.statSync(cjsCandidate).isFile())
|
|||
|
return addToCacheAndReturn(start, curr, cjsCandidate);
|
|||
|
const legacyCjsCandidate = ppath.join(curr, Filename.pnpJs);
|
|||
|
if (opts.fakeFs.existsSync(legacyCjsCandidate) && opts.fakeFs.statSync(legacyCjsCandidate).isFile())
|
|||
|
return addToCacheAndReturn(start, curr, legacyCjsCandidate);
|
|||
|
next = ppath.dirname(curr);
|
|||
|
} while (curr !== PortablePath.root);
|
|||
|
return addToCacheAndReturn(start, curr, null);
|
|||
|
}
|
|||
|
function getApiPathFromParent(parent) {
|
|||
|
if (parent == null)
|
|||
|
return initialApiPath;
|
|||
|
if (typeof parent.pnpApiPath === `undefined`) {
|
|||
|
if (parent.filename !== null) {
|
|||
|
return parent.pnpApiPath = findApiPathFor(parent.filename);
|
|||
|
} else {
|
|||
|
return initialApiPath;
|
|||
|
}
|
|||
|
}
|
|||
|
if (parent.pnpApiPath !== null)
|
|||
|
return parent.pnpApiPath;
|
|||
|
return null;
|
|||
|
}
|
|||
|
return {
|
|||
|
getApiPathFromParent,
|
|||
|
findApiPathFor,
|
|||
|
getApiEntry
|
|||
|
};
|
|||
|
}
|
|||
|
|
|||
|
var __defProp = Object.defineProperty;
|
|||
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|||
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|||
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
|
|||
|
var __spreadValues = (a, b) => {
|
|||
|
for (var prop in b || (b = {}))
|
|||
|
if (__hasOwnProp.call(b, prop))
|
|||
|
__defNormalProp(a, prop, b[prop]);
|
|||
|
if (__getOwnPropSymbols)
|
|||
|
for (var prop of __getOwnPropSymbols(b)) {
|
|||
|
if (__propIsEnum.call(b, prop))
|
|||
|
__defNormalProp(a, prop, b[prop]);
|
|||
|
}
|
|||
|
return a;
|
|||
|
};
|
|||
|
var __objRest = (source, exclude) => {
|
|||
|
var target = {};
|
|||
|
for (var prop in source)
|
|||
|
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|||
|
target[prop] = source[prop];
|
|||
|
if (source != null && __getOwnPropSymbols)
|
|||
|
for (var prop of __getOwnPropSymbols(source)) {
|
|||
|
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|||
|
target[prop] = source[prop];
|
|||
|
}
|
|||
|
return target;
|
|||
|
};
|
|||
|
const localFs = __spreadValues({}, fs__default.default);
|
|||
|
const nodeFs = new NodeFS(localFs);
|
|||
|
const defaultRuntimeState = $$SETUP_STATE(hydrateRuntimeState);
|
|||
|
const defaultPnpapiResolution = __filename;
|
|||
|
const defaultFsLayer = new VirtualFS({
|
|||
|
baseFs: new ZipOpenFS({
|
|||
|
baseFs: nodeFs,
|
|||
|
libzip: () => getLibzipSync(),
|
|||
|
maxOpenFiles: 80,
|
|||
|
readOnlyArchives: true
|
|||
|
})
|
|||
|
});
|
|||
|
class DynamicFS extends ProxiedFS {
|
|||
|
constructor() {
|
|||
|
super(ppath);
|
|||
|
this.baseFs = defaultFsLayer;
|
|||
|
}
|
|||
|
mapToBase(p) {
|
|||
|
return p;
|
|||
|
}
|
|||
|
mapFromBase(p) {
|
|||
|
return p;
|
|||
|
}
|
|||
|
}
|
|||
|
const dynamicFsLayer = new DynamicFS();
|
|||
|
let manager;
|
|||
|
const defaultApi = Object.assign(makeApi(defaultRuntimeState, {
|
|||
|
fakeFs: dynamicFsLayer,
|
|||
|
pnpapiResolution: defaultPnpapiResolution
|
|||
|
}), {
|
|||
|
makeApi: (_a) => {
|
|||
|
var _b = _a, {
|
|||
|
basePath = void 0,
|
|||
|
fakeFs = dynamicFsLayer,
|
|||
|
pnpapiResolution = defaultPnpapiResolution
|
|||
|
} = _b, rest = __objRest(_b, [
|
|||
|
"basePath",
|
|||
|
"fakeFs",
|
|||
|
"pnpapiResolution"
|
|||
|
]);
|
|||
|
const apiRuntimeState = typeof basePath !== `undefined` ? $$SETUP_STATE(hydrateRuntimeState, basePath) : defaultRuntimeState;
|
|||
|
return makeApi(apiRuntimeState, __spreadValues({
|
|||
|
fakeFs,
|
|||
|
pnpapiResolution
|
|||
|
}, rest));
|
|||
|
},
|
|||
|
setup: (api) => {
|
|||
|
applyPatch(api || defaultApi, {
|
|||
|
fakeFs: defaultFsLayer,
|
|||
|
manager
|
|||
|
});
|
|||
|
dynamicFsLayer.baseFs = new NodeFS(fs__default.default);
|
|||
|
}
|
|||
|
});
|
|||
|
manager = makeManager(defaultApi, {
|
|||
|
fakeFs: dynamicFsLayer
|
|||
|
});
|
|||
|
if (module.parent && module.parent.id === `internal/preload`) {
|
|||
|
defaultApi.setup();
|
|||
|
if (module.filename) {
|
|||
|
delete require$$0__default.default._cache[module.filename];
|
|||
|
}
|
|||
|
}
|
|||
|
if (process.mainModule === module) {
|
|||
|
const reportError = (code, message, data) => {
|
|||
|
process.stdout.write(`${JSON.stringify([{code, message, data}, null])}
|
|||
|
`);
|
|||
|
};
|
|||
|
const reportSuccess = (resolution) => {
|
|||
|
process.stdout.write(`${JSON.stringify([null, resolution])}
|
|||
|
`);
|
|||
|
};
|
|||
|
const processResolution = (request, issuer) => {
|
|||
|
try {
|
|||
|
reportSuccess(defaultApi.resolveRequest(request, issuer));
|
|||
|
} catch (error) {
|
|||
|
reportError(error.code, error.message, error.data);
|
|||
|
}
|
|||
|
};
|
|||
|
const processRequest = (data) => {
|
|||
|
try {
|
|||
|
const [request, issuer] = JSON.parse(data);
|
|||
|
processResolution(request, issuer);
|
|||
|
} catch (error) {
|
|||
|
reportError(`INVALID_JSON`, error.message, error.data);
|
|||
|
}
|
|||
|
};
|
|||
|
if (process.argv.length > 2) {
|
|||
|
if (process.argv.length !== 4) {
|
|||
|
process.stderr.write(`Usage: ${process.argv[0]} ${process.argv[1]} <request> <issuer>
|
|||
|
`);
|
|||
|
process.exitCode = 64;
|
|||
|
} else {
|
|||
|
processResolution(process.argv[2], process.argv[3]);
|
|||
|
}
|
|||
|
} else {
|
|||
|
let buffer = ``;
|
|||
|
const decoder = new StringDecoder__default.default.StringDecoder();
|
|||
|
process.stdin.on(`data`, (chunk) => {
|
|||
|
buffer += decoder.write(chunk);
|
|||
|
do {
|
|||
|
const index = buffer.indexOf(`
|
|||
|
`);
|
|||
|
if (index === -1)
|
|||
|
break;
|
|||
|
const line = buffer.slice(0, index);
|
|||
|
buffer = buffer.slice(index + 1);
|
|||
|
processRequest(line);
|
|||
|
} while (true);
|
|||
|
});
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
module.exports = defaultApi;
|