@dxos/node-std 0.8.3-staging.0fa589b → 0.8.4-main.84f28bd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/_/config.mjs +1 -1
- package/dist/lib/browser/assert.mjs +37 -38
- package/dist/lib/browser/assert.mjs.map +1 -1
- package/dist/lib/browser/buffer.mjs +2 -2
- package/dist/lib/browser/{chunk-W3AYESYQ.mjs → chunk-LJ5EWKWX.mjs} +4 -4
- package/dist/lib/browser/{chunk-QWZSWMMO.mjs → chunk-WA6DPORN.mjs} +2 -2
- package/dist/lib/browser/{chunk-GM2BGSSZ.mjs → chunk-WIBV42KC.mjs} +219 -750
- package/dist/lib/browser/chunk-WIBV42KC.mjs.map +7 -0
- package/dist/lib/browser/{chunk-PY2IJ42L.mjs → chunk-YERYCS33.mjs} +7 -7
- package/dist/lib/browser/crypto.mjs +1 -1
- package/dist/lib/browser/events.mjs +3 -3
- package/dist/lib/browser/fs/promises.mjs +1 -1
- package/dist/lib/browser/fs.mjs +1 -1
- package/dist/lib/browser/globals.mjs +3 -3
- package/dist/lib/browser/inject-globals.mjs +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/path.mjs +3 -3
- package/dist/lib/browser/stream.mjs +1 -1
- package/dist/lib/browser/util.mjs +5 -5
- package/dist/lib/node-esm/_/config.mjs +1 -1
- package/dist/lib/node-esm/assert.mjs +1 -1
- package/dist/lib/node-esm/buffer.mjs +2 -2
- package/dist/lib/node-esm/{chunk-KIVTZY6Z.mjs → chunk-3EE3KRAW.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-SOGAFZTS.mjs → chunk-F5GZS76O.mjs} +7 -7
- package/dist/lib/node-esm/{chunk-I3G4DBJU.mjs → chunk-RJ7I7ZC3.mjs} +4 -4
- package/dist/lib/node-esm/crypto.mjs +1 -1
- package/dist/lib/node-esm/events.mjs +1 -1
- package/dist/lib/node-esm/fs/promises.mjs +1 -1
- package/dist/lib/node-esm/fs.mjs +1 -1
- package/dist/lib/node-esm/globals.mjs +3 -3
- package/dist/lib/node-esm/inject-globals.mjs +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/path.mjs +3 -3
- package/dist/lib/node-esm/stream.mjs +1 -1
- package/dist/lib/node-esm/util.mjs +182 -712
- package/dist/lib/node-esm/util.mjs.map +4 -4
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +2 -2
- package/dist/lib/browser/chunk-GM2BGSSZ.mjs.map +0 -7
- package/dist/lib/node/_/config.cjs +0 -44
- package/dist/lib/node/_/config.cjs.map +0 -7
- package/dist/lib/node/assert.cjs +0 -37
- package/dist/lib/node/assert.cjs.map +0 -7
- package/dist/lib/node/buffer.cjs +0 -32
- package/dist/lib/node/buffer.cjs.map +0 -7
- package/dist/lib/node/chunk-6SZKM6EC.cjs +0 -63
- package/dist/lib/node/chunk-6SZKM6EC.cjs.map +0 -7
- package/dist/lib/node/chunk-ENV4LVNZ.cjs +0 -133
- package/dist/lib/node/chunk-ENV4LVNZ.cjs.map +0 -7
- package/dist/lib/node/chunk-FCCITQEP.cjs +0 -1812
- package/dist/lib/node/chunk-FCCITQEP.cjs.map +0 -7
- package/dist/lib/node/chunk-P2R5OUNF.cjs +0 -22
- package/dist/lib/node/chunk-P2R5OUNF.cjs.map +0 -7
- package/dist/lib/node/crypto.cjs +0 -32
- package/dist/lib/node/crypto.cjs.map +0 -7
- package/dist/lib/node/events.cjs +0 -32
- package/dist/lib/node/events.cjs.map +0 -7
- package/dist/lib/node/fs/promises.cjs +0 -120
- package/dist/lib/node/fs/promises.cjs.map +0 -7
- package/dist/lib/node/fs.cjs +0 -53
- package/dist/lib/node/fs.cjs.map +0 -7
- package/dist/lib/node/globals.cjs +0 -6
- package/dist/lib/node/globals.cjs.map +0 -7
- package/dist/lib/node/inject-globals.cjs +0 -38
- package/dist/lib/node/inject-globals.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/lib/node/path.cjs +0 -466
- package/dist/lib/node/path.cjs.map +0 -7
- package/dist/lib/node/stream.cjs +0 -42
- package/dist/lib/node/stream.cjs.map +0 -7
- package/dist/lib/node/util.cjs +0 -2493
- package/dist/lib/node/util.cjs.map +0 -7
- /package/dist/lib/browser/{chunk-W3AYESYQ.mjs.map → chunk-LJ5EWKWX.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-QWZSWMMO.mjs.map → chunk-WA6DPORN.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-PY2IJ42L.mjs.map → chunk-YERYCS33.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-KIVTZY6Z.mjs.map → chunk-3EE3KRAW.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-SOGAFZTS.mjs.map → chunk-F5GZS76O.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-I3G4DBJU.mjs.map → chunk-RJ7I7ZC3.mjs.map} +0 -0
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var inject_globals_exports = {};
|
|
20
|
-
__export(inject_globals_exports, {
|
|
21
|
-
Buffer: () => export_Buffer,
|
|
22
|
-
global: () => global,
|
|
23
|
-
process: () => import_chunk_ENV4LVNZ.process
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(inject_globals_exports);
|
|
26
|
-
var import_chunk_ENV4LVNZ = require("./chunk-ENV4LVNZ.cjs");
|
|
27
|
-
var import_chunk_FCCITQEP = require("./chunk-FCCITQEP.cjs");
|
|
28
|
-
var import_chunk_6SZKM6EC = require("./chunk-6SZKM6EC.cjs");
|
|
29
|
-
var import_buffer = (0, import_chunk_6SZKM6EC.__toESM)((0, import_chunk_FCCITQEP.require_buffer)(), 1);
|
|
30
|
-
var global = globalThis;
|
|
31
|
-
var export_Buffer = import_buffer.Buffer;
|
|
32
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
33
|
-
0 && (module.exports = {
|
|
34
|
-
Buffer,
|
|
35
|
-
global,
|
|
36
|
-
process
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=inject-globals.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/inject-globals.js"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2022 DXOS.org\n//\n\n// To be used with esbuild's inject option.\n\nimport { Buffer } from 'buffer/';\n\nimport { process } from './process';\n\nconst global = globalThis;\n\n// Keep in sync with packages/common/esbuild-plugins/src/node-external-plugin.ts\nexport { global, Buffer, process };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAA,oBAAuB,mCAAA,sCAAA,GAAA,CAAA;AAIvB,IAAM,SAAS;;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/dist/lib/node/meta.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"packages/common/node-std/src/_/config.js":{"bytes":237,"imports":[],"format":"esm"},"packages/common/node-std/src/assert.js":{"bytes":326,"imports":[{"path":"assert","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js":{"bytes":3932,"imports":[],"format":"cjs"},"node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js":{"bytes":2154,"imports":[],"format":"cjs"},"node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js":{"bytes":58353,"imports":[{"path":"node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js","kind":"require-call","original":"base64-js"},{"path":"node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js","kind":"require-call","original":"ieee754"}],"format":"cjs"},"packages/common/node-std/src/buffer.js":{"bytes":68,"imports":[{"path":"node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js","kind":"import-statement","original":"buffer/"}],"format":"esm"},"packages/common/node-std/src/crypto.js":{"bytes":125,"imports":[],"format":"esm"},"packages/common/node-std/src/events.js":{"bytes":133,"imports":[{"path":"events","kind":"import-statement","external":true}],"format":"esm"},"packages/common/node-std/src/fs.js":{"bytes":449,"imports":[],"format":"esm"},"packages/common/node-std/src/fs/promises.js":{"bytes":1438,"imports":[],"format":"esm"},"packages/common/node-std/src/process.js":{"bytes":3094,"imports":[],"format":"esm"},"packages/common/node-std/src/globals.js":{"bytes":791,"imports":[{"path":"node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js","kind":"import-statement","original":"buffer/"},{"path":"packages/common/node-std/src/process.js","kind":"import-statement","original":"./process"}],"format":"esm"},"packages/common/node-std/src/inject-globals.js":{"bytes":297,"imports":[{"path":"node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js","kind":"import-statement","original":"buffer/"},{"path":"packages/common/node-std/src/process.js","kind":"import-statement","original":"./process"}],"format":"esm"},"node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js":{"bytes":16166,"imports":[],"format":"cjs"},"packages/common/node-std/src/path.js":{"bytes":243,"imports":[{"path":"node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js","kind":"import-statement","original":"path-browserify"},{"path":"node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js","kind":"import-statement","original":"path-browserify"}],"format":"esm"},"packages/common/node-std/src/stream.js":{"bytes":138,"imports":[{"path":"readable-stream","kind":"import-statement","external":true}],"format":"esm"},"node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js":{"bytes":1761,"imports":[],"format":"cjs"},"node_modules/.pnpm/has-tostringtag@1.0.0/node_modules/has-tostringtag/shams.js":{"bytes":162,"imports":[{"path":"node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js","kind":"require-call","original":"has-symbols/shams"}],"format":"cjs"},"node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.js":{"bytes":420,"imports":[{"path":"node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js","kind":"require-call","original":"./shams"}],"format":"cjs"},"node_modules/.pnpm/has-proto@1.0.1/node_modules/has-proto/index.js":{"bytes":197,"imports":[],"format":"cjs"},"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js":{"bytes":2043,"imports":[],"format":"cjs"},"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js":{"bytes":126,"imports":[{"path":"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js","kind":"require-call","original":"./implementation"}],"format":"cjs"},"node_modules/.pnpm/hasown@2.0.0/node_modules/hasown/index.js":{"bytes":234,"imports":[{"path":"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js","kind":"require-call","original":"function-bind"}],"format":"cjs"},"node_modules/.pnpm/get-intrinsic@1.2.2/node_modules/get-intrinsic/index.js":{"bytes":13326,"imports":[{"path":"node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.js","kind":"require-call","original":"has-symbols"},{"path":"node_modules/.pnpm/has-proto@1.0.1/node_modules/has-proto/index.js","kind":"require-call","original":"has-proto"},{"path":"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js","kind":"require-call","original":"function-bind"},{"path":"node_modules/.pnpm/hasown@2.0.0/node_modules/hasown/index.js","kind":"require-call","original":"hasown"}],"format":"cjs"},"node_modules/.pnpm/has-property-descriptors@1.0.0/node_modules/has-property-descriptors/index.js":{"bytes":817,"imports":[{"path":"node_modules/.pnpm/get-intrinsic@1.2.2/node_modules/get-intrinsic/index.js","kind":"require-call","original":"get-intrinsic"}],"format":"cjs"},"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js":{"bytes":66,"imports":[],"format":"cjs"},"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js":{"bytes":75,"imports":[],"format":"cjs"},"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js":{"bytes":77,"imports":[],"format":"cjs"},"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js":{"bytes":79,"imports":[],"format":"cjs"},"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js":{"bytes":79,"imports":[],"format":"cjs"},"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js":{"bytes":75,"imports":[],"format":"cjs"},"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js":{"bytes":73,"imports":[],"format":"cjs"},"node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js":{"bytes":302,"imports":[],"format":"cjs"},"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js":{"bytes":206,"imports":[{"path":"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js","kind":"require-call","original":"function-bind"}],"format":"cjs"},"node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.js":{"bytes":13615,"imports":[{"path":"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js","kind":"require-call","original":"es-errors"},{"path":"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js","kind":"require-call","original":"es-errors/eval"},{"path":"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js","kind":"require-call","original":"es-errors/range"},{"path":"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js","kind":"require-call","original":"es-errors/ref"},{"path":"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js","kind":"require-call","original":"es-errors/syntax"},{"path":"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js","kind":"require-call","original":"es-errors/type"},{"path":"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js","kind":"require-call","original":"es-errors/uri"},{"path":"node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.js","kind":"require-call","original":"has-symbols"},{"path":"node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js","kind":"require-call","original":"has-proto"},{"path":"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js","kind":"require-call","original":"function-bind"},{"path":"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js","kind":"require-call","original":"hasown"}],"format":"cjs"},"node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js":{"bytes":263,"imports":[{"path":"node_modules/.pnpm/get-intrinsic@1.2.2/node_modules/get-intrinsic/index.js","kind":"require-call","original":"get-intrinsic"}],"format":"cjs"},"node_modules/.pnpm/define-data-property@1.1.1/node_modules/define-data-property/index.js":{"bytes":2838,"imports":[{"path":"node_modules/.pnpm/has-property-descriptors@1.0.0/node_modules/has-property-descriptors/index.js","kind":"require-call","original":"has-property-descriptors"},{"path":"node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.js","kind":"require-call","original":"get-intrinsic"},{"path":"node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js","kind":"require-call","original":"gopd"}],"format":"cjs"},"node_modules/.pnpm/set-function-length@1.1.1/node_modules/set-function-length/index.js":{"bytes":1170,"imports":[{"path":"node_modules/.pnpm/get-intrinsic@1.2.2/node_modules/get-intrinsic/index.js","kind":"require-call","original":"get-intrinsic"},{"path":"node_modules/.pnpm/define-data-property@1.1.1/node_modules/define-data-property/index.js","kind":"require-call","original":"define-data-property"},{"path":"node_modules/.pnpm/has-property-descriptors@1.0.0/node_modules/has-property-descriptors/index.js","kind":"require-call","original":"has-property-descriptors"},{"path":"node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js","kind":"require-call","original":"gopd"}],"format":"cjs"},"node_modules/.pnpm/call-bind@1.0.5/node_modules/call-bind/index.js":{"bytes":1212,"imports":[{"path":"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js","kind":"require-call","original":"function-bind"},{"path":"node_modules/.pnpm/get-intrinsic@1.2.2/node_modules/get-intrinsic/index.js","kind":"require-call","original":"get-intrinsic"},{"path":"node_modules/.pnpm/set-function-length@1.1.1/node_modules/set-function-length/index.js","kind":"require-call","original":"set-function-length"}],"format":"cjs"},"node_modules/.pnpm/call-bind@1.0.5/node_modules/call-bind/callBound.js":{"bytes":413,"imports":[{"path":"node_modules/.pnpm/get-intrinsic@1.2.2/node_modules/get-intrinsic/index.js","kind":"require-call","original":"get-intrinsic"},{"path":"node_modules/.pnpm/call-bind@1.0.5/node_modules/call-bind/index.js","kind":"require-call","original":"./"}],"format":"cjs"},"node_modules/.pnpm/is-arguments@1.1.1/node_modules/is-arguments/index.js":{"bytes":976,"imports":[{"path":"node_modules/.pnpm/has-tostringtag@1.0.0/node_modules/has-tostringtag/shams.js","kind":"require-call","original":"has-tostringtag/shams"},{"path":"node_modules/.pnpm/call-bind@1.0.5/node_modules/call-bind/callBound.js","kind":"require-call","original":"call-bind/callBound"}],"format":"cjs"},"node_modules/.pnpm/is-generator-function@1.0.10/node_modules/is-generator-function/index.js":{"bytes":964,"imports":[{"path":"node_modules/.pnpm/has-tostringtag@1.0.0/node_modules/has-tostringtag/shams.js","kind":"require-call","original":"has-tostringtag/shams"}],"format":"cjs"},"node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js":{"bytes":3224,"imports":[],"format":"cjs"},"node_modules/.pnpm/for-each@0.3.3/node_modules/for-each/index.js":{"bytes":1761,"imports":[{"path":"node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js","kind":"require-call","original":"is-callable"}],"format":"cjs"},"node_modules/.pnpm/available-typed-arrays@1.0.5/node_modules/available-typed-arrays/index.js":{"bytes":519,"imports":[],"format":"cjs"},"node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/index.js":{"bytes":1306,"imports":[{"path":"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js","kind":"require-call","original":"function-bind"},{"path":"node_modules/.pnpm/get-intrinsic@1.2.2/node_modules/get-intrinsic/index.js","kind":"require-call","original":"get-intrinsic"}],"format":"cjs"},"node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js":{"bytes":413,"imports":[{"path":"node_modules/.pnpm/get-intrinsic@1.2.2/node_modules/get-intrinsic/index.js","kind":"require-call","original":"get-intrinsic"},{"path":"node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/index.js","kind":"require-call","original":"./"}],"format":"cjs"},"node_modules/.pnpm/es-abstract@1.20.4/node_modules/es-abstract/helpers/getOwnPropertyDescriptor.js":{"bytes":262,"imports":[{"path":"node_modules/.pnpm/get-intrinsic@1.2.2/node_modules/get-intrinsic/index.js","kind":"require-call","original":"get-intrinsic"}],"format":"cjs"},"node_modules/.pnpm/which-typed-array@1.1.13/node_modules/which-typed-array/index.js":{"bytes":2406,"imports":[{"path":"node_modules/.pnpm/for-each@0.3.3/node_modules/for-each/index.js","kind":"require-call","original":"for-each"},{"path":"node_modules/.pnpm/available-typed-arrays@1.0.5/node_modules/available-typed-arrays/index.js","kind":"require-call","original":"available-typed-arrays"},{"path":"node_modules/.pnpm/call-bind@1.0.5/node_modules/call-bind/index.js","kind":"require-call","original":"call-bind"},{"path":"node_modules/.pnpm/call-bind@1.0.5/node_modules/call-bind/callBound.js","kind":"require-call","original":"call-bind/callBound"},{"path":"node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js","kind":"require-call","original":"gopd"},{"path":"node_modules/.pnpm/has-tostringtag@1.0.0/node_modules/has-tostringtag/shams.js","kind":"require-call","original":"has-tostringtag/shams"}],"format":"cjs"},"node_modules/.pnpm/is-typed-array@1.1.12/node_modules/is-typed-array/index.js":{"bytes":153,"imports":[{"path":"node_modules/.pnpm/which-typed-array@1.1.13/node_modules/which-typed-array/index.js","kind":"require-call","original":"which-typed-array"}],"format":"cjs"},"node_modules/.pnpm/which-typed-array@1.1.8/node_modules/which-typed-array/index.js":{"bytes":1670,"imports":[{"path":"node_modules/.pnpm/for-each@0.3.3/node_modules/for-each/index.js","kind":"require-call","original":"for-each"},{"path":"node_modules/.pnpm/available-typed-arrays@1.0.5/node_modules/available-typed-arrays/index.js","kind":"require-call","original":"available-typed-arrays"},{"path":"node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js","kind":"require-call","original":"call-bind/callBound"},{"path":"node_modules/.pnpm/has-tostringtag@1.0.0/node_modules/has-tostringtag/shams.js","kind":"require-call","original":"has-tostringtag/shams"},{"path":"node_modules/.pnpm/es-abstract@1.20.4/node_modules/es-abstract/helpers/getOwnPropertyDescriptor.js","kind":"require-call","original":"es-abstract/helpers/getOwnPropertyDescriptor"},{"path":"node_modules/.pnpm/is-typed-array@1.1.12/node_modules/is-typed-array/index.js","kind":"require-call","original":"is-typed-array"}],"format":"cjs"},"node_modules/.pnpm/is-typed-array@1.1.9/node_modules/is-typed-array/index.js":{"bytes":1810,"imports":[{"path":"node_modules/.pnpm/for-each@0.3.3/node_modules/for-each/index.js","kind":"require-call","original":"for-each"},{"path":"node_modules/.pnpm/available-typed-arrays@1.0.5/node_modules/available-typed-arrays/index.js","kind":"require-call","original":"available-typed-arrays"},{"path":"node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js","kind":"require-call","original":"call-bind/callBound"},{"path":"node_modules/.pnpm/has-tostringtag@1.0.0/node_modules/has-tostringtag/shams.js","kind":"require-call","original":"has-tostringtag/shams"},{"path":"node_modules/.pnpm/es-abstract@1.20.4/node_modules/es-abstract/helpers/getOwnPropertyDescriptor.js","kind":"require-call","original":"es-abstract/helpers/getOwnPropertyDescriptor"}],"format":"cjs"},"node_modules/.pnpm/util@0.12.5/node_modules/util/support/types.js":{"bytes":8672,"imports":[{"path":"node_modules/.pnpm/is-arguments@1.1.1/node_modules/is-arguments/index.js","kind":"require-call","original":"is-arguments"},{"path":"node_modules/.pnpm/is-generator-function@1.0.10/node_modules/is-generator-function/index.js","kind":"require-call","original":"is-generator-function"},{"path":"node_modules/.pnpm/which-typed-array@1.1.8/node_modules/which-typed-array/index.js","kind":"require-call","original":"which-typed-array"},{"path":"node_modules/.pnpm/is-typed-array@1.1.9/node_modules/is-typed-array/index.js","kind":"require-call","original":"is-typed-array"}],"format":"cjs"},"node_modules/.pnpm/util@0.12.5/node_modules/util/support/isBuffer.js":{"bytes":76,"imports":[],"format":"cjs"},"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js":{"bytes":753,"imports":[],"format":"cjs"},"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js":{"bytes":250,"imports":[{"path":"util","kind":"require-call","external":true},{"path":"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js","kind":"require-call","original":"./inherits_browser.js"}],"format":"cjs"},"node_modules/.pnpm/util@0.12.5/node_modules/util/util.js":{"bytes":19697,"imports":[{"path":"node_modules/.pnpm/util@0.12.5/node_modules/util/support/types.js","kind":"require-call","original":"./support/types"},{"path":"node_modules/.pnpm/util@0.12.5/node_modules/util/support/isBuffer.js","kind":"require-call","original":"./support/isBuffer"},{"path":"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js","kind":"require-call","original":"inherits"}],"format":"cjs"},"packages/common/node-std/src/util.js":{"bytes":200,"imports":[{"path":"packages/common/node-std/src/globals.js","kind":"import-statement","original":"./globals"},{"path":"node_modules/.pnpm/util@0.12.5/node_modules/util/util.js","kind":"import-statement","original":"util/"},{"path":"node_modules/.pnpm/util@0.12.5/node_modules/util/util.js","kind":"import-statement","original":"util/"}],"format":"esm"}},"outputs":{"packages/common/node-std/dist/lib/node/inject-globals.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":477},"packages/common/node-std/dist/lib/node/inject-globals.cjs":{"imports":[{"path":"packages/common/node-std/dist/lib/node/chunk-ENV4LVNZ.cjs","kind":"import-statement"},{"path":"packages/common/node-std/dist/lib/node/chunk-FCCITQEP.cjs","kind":"import-statement"},{"path":"packages/common/node-std/dist/lib/node/chunk-6SZKM6EC.cjs","kind":"import-statement"}],"exports":["Buffer","global","process"],"entryPoint":"packages/common/node-std/src/inject-globals.js","inputs":{"packages/common/node-std/src/inject-globals.js":{"bytesInOutput":75}},"bytes":428},"packages/common/node-std/dist/lib/node/path.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":25634},"packages/common/node-std/dist/lib/node/path.cjs":{"imports":[{"path":"packages/common/node-std/dist/lib/node/chunk-6SZKM6EC.cjs","kind":"import-statement"}],"exports":["basename","default","dirname","extname","format","isAbsolute","join","normalize","parse","relative","resolve"],"entryPoint":"packages/common/node-std/src/path.js","inputs":{"node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js":{"bytesInOutput":13373},"packages/common/node-std/src/path.js":{"bytesInOutput":143}},"bytes":14600},"packages/common/node-std/dist/lib/node/stream.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":312},"packages/common/node-std/dist/lib/node/stream.cjs":{"imports":[{"path":"packages/common/node-std/dist/lib/node/chunk-6SZKM6EC.cjs","kind":"import-statement"},{"path":"readable-stream","kind":"import-statement","external":true}],"exports":["Duplex","PassThrough","Readable","Stream","Transform","Writable","pipeline"],"entryPoint":"packages/common/node-std/src/stream.js","inputs":{"packages/common/node-std/src/stream.js":{"bytesInOutput":104}},"bytes":309},"packages/common/node-std/dist/lib/node/util.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":147428},"packages/common/node-std/dist/lib/node/util.cjs":{"imports":[{"path":"packages/common/node-std/dist/lib/node/chunk-P2R5OUNF.cjs","kind":"import-statement"},{"path":"packages/common/node-std/dist/lib/node/chunk-ENV4LVNZ.cjs","kind":"import-statement"},{"path":"packages/common/node-std/dist/lib/node/chunk-FCCITQEP.cjs","kind":"import-statement"},{"path":"packages/common/node-std/dist/lib/node/chunk-6SZKM6EC.cjs","kind":"import-statement"},{"path":"util","kind":"require-call","external":true}],"exports":["callbackify","default","inspect","promisify"],"entryPoint":"packages/common/node-std/src/util.js","inputs":{"node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js":{"bytesInOutput":1620},"node_modules/.pnpm/has-tostringtag@1.0.0/node_modules/has-tostringtag/shams.js":{"bytesInOutput":312},"node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.js":{"bytesInOutput":656},"node_modules/.pnpm/has-proto@1.0.1/node_modules/has-proto/index.js":{"bytesInOutput":363},"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js":{"bytesInOutput":2246},"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js":{"bytesInOutput":280},"node_modules/.pnpm/hasown@2.0.0/node_modules/hasown/index.js":{"bytesInOutput":322},"node_modules/.pnpm/get-intrinsic@1.2.2/node_modules/get-intrinsic/index.js":{"bytesInOutput":14029},"node_modules/.pnpm/has-property-descriptors@1.0.0/node_modules/has-property-descriptors/index.js":{"bytesInOutput":940},"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js":{"bytesInOutput":181},"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js":{"bytesInOutput":179},"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js":{"bytesInOutput":182},"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js":{"bytesInOutput":182},"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js":{"bytesInOutput":185},"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js":{"bytesInOutput":179},"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js":{"bytesInOutput":176},"node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js":{"bytesInOutput":372},"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js":{"bytesInOutput":323},"node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.js":{"bytesInOutput":14283},"node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js":{"bytesInOutput":401},"node_modules/.pnpm/define-data-property@1.1.1/node_modules/define-data-property/index.js":{"bytesInOutput":2778},"node_modules/.pnpm/set-function-length@1.1.1/node_modules/set-function-length/index.js":{"bytesInOutput":1509},"node_modules/.pnpm/call-bind@1.0.5/node_modules/call-bind/index.js":{"bytesInOutput":1467},"node_modules/.pnpm/call-bind@1.0.5/node_modules/call-bind/callBound.js":{"bytesInOutput":603},"node_modules/.pnpm/is-arguments@1.1.1/node_modules/is-arguments/index.js":{"bytesInOutput":1155},"node_modules/.pnpm/is-generator-function@1.0.10/node_modules/is-generator-function/index.js":{"bytesInOutput":1254},"node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js":{"bytesInOutput":3544},"node_modules/.pnpm/for-each@0.3.3/node_modules/for-each/index.js":{"bytesInOutput":1892},"node_modules/.pnpm/available-typed-arrays@1.0.5/node_modules/available-typed-arrays/index.js":{"bytesInOutput":808},"node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/index.js":{"bytesInOutput":1492},"node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js":{"bytesInOutput":605},"node_modules/.pnpm/es-abstract@1.20.4/node_modules/es-abstract/helpers/getOwnPropertyDescriptor.js":{"bytesInOutput":463},"node_modules/.pnpm/which-typed-array@1.1.13/node_modules/which-typed-array/index.js":{"bytesInOutput":2924},"node_modules/.pnpm/is-typed-array@1.1.12/node_modules/is-typed-array/index.js":{"bytesInOutput":322},"node_modules/.pnpm/which-typed-array@1.1.8/node_modules/which-typed-array/index.js":{"bytesInOutput":2051},"node_modules/.pnpm/is-typed-array@1.1.9/node_modules/is-typed-array/index.js":{"bytesInOutput":2191},"node_modules/.pnpm/util@0.12.5/node_modules/util/support/types.js":{"bytesInOutput":9162},"node_modules/.pnpm/util@0.12.5/node_modules/util/support/isBuffer.js":{"bytesInOutput":225},"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js":{"bytesInOutput":928},"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js":{"bytesInOutput":365},"node_modules/.pnpm/util@0.12.5/node_modules/util/util.js":{"bytesInOutput":17665},"packages/common/node-std/src/util.js":{"bytesInOutput":133}},"bytes":94641},"packages/common/node-std/dist/lib/node/_/config.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":539},"packages/common/node-std/dist/lib/node/_/config.cjs":{"imports":[{"path":"packages/common/node-std/dist/lib/node/chunk-6SZKM6EC.cjs","kind":"import-statement"}],"exports":["GLOBALS","MODULES"],"entryPoint":"packages/common/node-std/src/_/config.js","inputs":{"packages/common/node-std/src/_/config.js":{"bytesInOutput":183}},"bytes":329},"packages/common/node-std/dist/lib/node/assert.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":491},"packages/common/node-std/dist/lib/node/assert.cjs":{"imports":[{"path":"packages/common/node-std/dist/lib/node/chunk-6SZKM6EC.cjs","kind":"import-statement"},{"path":"assert","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/common/node-std/src/assert.js","inputs":{"packages/common/node-std/src/assert.js":{"bytesInOutput":58}},"bytes":208},"packages/common/node-std/dist/lib/node/buffer.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":212},"packages/common/node-std/dist/lib/node/buffer.cjs":{"imports":[{"path":"packages/common/node-std/dist/lib/node/chunk-FCCITQEP.cjs","kind":"import-statement"},{"path":"packages/common/node-std/dist/lib/node/chunk-6SZKM6EC.cjs","kind":"import-statement"}],"exports":["Buffer"],"entryPoint":"packages/common/node-std/src/buffer.js","inputs":{"packages/common/node-std/src/buffer.js":{"bytesInOutput":50}},"bytes":316},"packages/common/node-std/dist/lib/node/crypto.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":308},"packages/common/node-std/dist/lib/node/crypto.cjs":{"imports":[{"path":"packages/common/node-std/dist/lib/node/chunk-6SZKM6EC.cjs","kind":"import-statement"}],"exports":["randomBytes"],"entryPoint":"packages/common/node-std/src/crypto.js","inputs":{"packages/common/node-std/src/crypto.js":{"bytesInOutput":82}},"bytes":218},"packages/common/node-std/dist/lib/node/events.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":308},"packages/common/node-std/dist/lib/node/events.cjs":{"imports":[{"path":"packages/common/node-std/dist/lib/node/chunk-6SZKM6EC.cjs","kind":"import-statement"},{"path":"events","kind":"import-statement","external":true}],"exports":["EventEmitter","default"],"entryPoint":"packages/common/node-std/src/events.js","inputs":{"packages/common/node-std/src/events.js":{"bytesInOutput":78}},"bytes":244},"packages/common/node-std/dist/lib/node/fs.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":844},"packages/common/node-std/dist/lib/node/fs.cjs":{"imports":[{"path":"packages/common/node-std/dist/lib/node/chunk-6SZKM6EC.cjs","kind":"import-statement"}],"exports":["appendFileSync","default","existsSync","mkdirSync","openSync","statSync"],"entryPoint":"packages/common/node-std/src/fs.js","inputs":{"packages/common/node-std/src/fs.js":{"bytesInOutput":367}},"bytes":574},"packages/common/node-std/dist/lib/node/fs/promises.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2439},"packages/common/node-std/dist/lib/node/fs/promises.cjs":{"imports":[{"path":"packages/common/node-std/dist/lib/node/chunk-6SZKM6EC.cjs","kind":"import-statement"}],"exports":["access","appendFile","chmod","chown","copyFile","cp","lchmod","lchown","link","lstat","lutimes","mkdir","mkdtemp","open","opendir","readFile","readdir","readlink","realpath","rename","rm","rmdir","stat","symlink","to","truncate","unlink","utimes","watch","writeFile"],"entryPoint":"packages/common/node-std/src/fs/promises.js","inputs":{"packages/common/node-std/src/fs/promises.js":{"bytesInOutput":1131}},"bytes":1558},"packages/common/node-std/dist/lib/node/globals.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/common/node-std/dist/lib/node/globals.cjs":{"imports":[{"path":"packages/common/node-std/dist/lib/node/chunk-P2R5OUNF.cjs","kind":"import-statement"},{"path":"packages/common/node-std/dist/lib/node/chunk-ENV4LVNZ.cjs","kind":"import-statement"},{"path":"packages/common/node-std/dist/lib/node/chunk-FCCITQEP.cjs","kind":"import-statement"},{"path":"packages/common/node-std/dist/lib/node/chunk-6SZKM6EC.cjs","kind":"import-statement"}],"exports":[],"entryPoint":"packages/common/node-std/src/globals.js","inputs":{},"bytes":161},"packages/common/node-std/dist/lib/node/chunk-P2R5OUNF.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1288},"packages/common/node-std/dist/lib/node/chunk-P2R5OUNF.cjs":{"imports":[{"path":"packages/common/node-std/dist/lib/node/chunk-ENV4LVNZ.cjs","kind":"import-statement"},{"path":"packages/common/node-std/dist/lib/node/chunk-FCCITQEP.cjs","kind":"import-statement"},{"path":"packages/common/node-std/dist/lib/node/chunk-6SZKM6EC.cjs","kind":"import-statement"}],"exports":[],"inputs":{"packages/common/node-std/src/globals.js":{"bytesInOutput":544}},"bytes":789},"packages/common/node-std/dist/lib/node/chunk-ENV4LVNZ.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5258},"packages/common/node-std/dist/lib/node/chunk-ENV4LVNZ.cjs":{"imports":[],"exports":["process"],"inputs":{"packages/common/node-std/src/process.js":{"bytesInOutput":2367}},"bytes":2477},"packages/common/node-std/dist/lib/node/chunk-FCCITQEP.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":111114},"packages/common/node-std/dist/lib/node/chunk-FCCITQEP.cjs":{"imports":[{"path":"packages/common/node-std/dist/lib/node/chunk-6SZKM6EC.cjs","kind":"import-statement"}],"exports":["require_buffer"],"inputs":{"node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js":{"bytesInOutput":3727},"node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js":{"bytesInOutput":2505},"node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js":{"bytesInOutput":56911}},"bytes":63784},"packages/common/node-std/dist/lib/node/chunk-6SZKM6EC.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/common/node-std/dist/lib/node/chunk-6SZKM6EC.cjs":{"imports":[],"exports":["__commonJS","__require","__toESM"],"inputs":{},"bytes":1780}}}
|
package/dist/lib/node/path.cjs
DELETED
|
@@ -1,466 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var path_exports = {};
|
|
20
|
-
__export(path_exports, {
|
|
21
|
-
basename: () => export_basename,
|
|
22
|
-
default: () => path_default,
|
|
23
|
-
dirname: () => export_dirname,
|
|
24
|
-
extname: () => export_extname,
|
|
25
|
-
format: () => export_format,
|
|
26
|
-
isAbsolute: () => export_isAbsolute,
|
|
27
|
-
join: () => export_join,
|
|
28
|
-
normalize: () => export_normalize,
|
|
29
|
-
parse: () => export_parse,
|
|
30
|
-
relative: () => export_relative,
|
|
31
|
-
resolve: () => export_resolve
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(path_exports);
|
|
34
|
-
var import_chunk_6SZKM6EC = require("./chunk-6SZKM6EC.cjs");
|
|
35
|
-
var require_path_browserify = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
36
|
-
"node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.js"(exports2, module2) {
|
|
37
|
-
"use strict";
|
|
38
|
-
function assertPath(path2) {
|
|
39
|
-
if (typeof path2 !== "string") {
|
|
40
|
-
throw new TypeError("Path must be a string. Received " + JSON.stringify(path2));
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
function normalizeStringPosix(path2, allowAboveRoot) {
|
|
44
|
-
var res = "";
|
|
45
|
-
var lastSegmentLength = 0;
|
|
46
|
-
var lastSlash = -1;
|
|
47
|
-
var dots = 0;
|
|
48
|
-
var code;
|
|
49
|
-
for (var i = 0; i <= path2.length; ++i) {
|
|
50
|
-
if (i < path2.length)
|
|
51
|
-
code = path2.charCodeAt(i);
|
|
52
|
-
else if (code === 47)
|
|
53
|
-
break;
|
|
54
|
-
else
|
|
55
|
-
code = 47;
|
|
56
|
-
if (code === 47) {
|
|
57
|
-
if (lastSlash === i - 1 || dots === 1) {
|
|
58
|
-
} else if (lastSlash !== i - 1 && dots === 2) {
|
|
59
|
-
if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 || res.charCodeAt(res.length - 2) !== 46) {
|
|
60
|
-
if (res.length > 2) {
|
|
61
|
-
var lastSlashIndex = res.lastIndexOf("/");
|
|
62
|
-
if (lastSlashIndex !== res.length - 1) {
|
|
63
|
-
if (lastSlashIndex === -1) {
|
|
64
|
-
res = "";
|
|
65
|
-
lastSegmentLength = 0;
|
|
66
|
-
} else {
|
|
67
|
-
res = res.slice(0, lastSlashIndex);
|
|
68
|
-
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
69
|
-
}
|
|
70
|
-
lastSlash = i;
|
|
71
|
-
dots = 0;
|
|
72
|
-
continue;
|
|
73
|
-
}
|
|
74
|
-
} else if (res.length === 2 || res.length === 1) {
|
|
75
|
-
res = "";
|
|
76
|
-
lastSegmentLength = 0;
|
|
77
|
-
lastSlash = i;
|
|
78
|
-
dots = 0;
|
|
79
|
-
continue;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
if (allowAboveRoot) {
|
|
83
|
-
if (res.length > 0)
|
|
84
|
-
res += "/..";
|
|
85
|
-
else
|
|
86
|
-
res = "..";
|
|
87
|
-
lastSegmentLength = 2;
|
|
88
|
-
}
|
|
89
|
-
} else {
|
|
90
|
-
if (res.length > 0)
|
|
91
|
-
res += "/" + path2.slice(lastSlash + 1, i);
|
|
92
|
-
else
|
|
93
|
-
res = path2.slice(lastSlash + 1, i);
|
|
94
|
-
lastSegmentLength = i - lastSlash - 1;
|
|
95
|
-
}
|
|
96
|
-
lastSlash = i;
|
|
97
|
-
dots = 0;
|
|
98
|
-
} else if (code === 46 && dots !== -1) {
|
|
99
|
-
++dots;
|
|
100
|
-
} else {
|
|
101
|
-
dots = -1;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
return res;
|
|
105
|
-
}
|
|
106
|
-
function _format(sep, pathObject) {
|
|
107
|
-
var dir = pathObject.dir || pathObject.root;
|
|
108
|
-
var base = pathObject.base || (pathObject.name || "") + (pathObject.ext || "");
|
|
109
|
-
if (!dir) {
|
|
110
|
-
return base;
|
|
111
|
-
}
|
|
112
|
-
if (dir === pathObject.root) {
|
|
113
|
-
return dir + base;
|
|
114
|
-
}
|
|
115
|
-
return dir + sep + base;
|
|
116
|
-
}
|
|
117
|
-
var posix = {
|
|
118
|
-
// path.resolve([from ...], to)
|
|
119
|
-
resolve: function resolve2() {
|
|
120
|
-
var resolvedPath = "";
|
|
121
|
-
var resolvedAbsolute = false;
|
|
122
|
-
var cwd;
|
|
123
|
-
for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
|
|
124
|
-
var path2;
|
|
125
|
-
if (i >= 0)
|
|
126
|
-
path2 = arguments[i];
|
|
127
|
-
else {
|
|
128
|
-
if (cwd === void 0)
|
|
129
|
-
cwd = process.cwd();
|
|
130
|
-
path2 = cwd;
|
|
131
|
-
}
|
|
132
|
-
assertPath(path2);
|
|
133
|
-
if (path2.length === 0) {
|
|
134
|
-
continue;
|
|
135
|
-
}
|
|
136
|
-
resolvedPath = path2 + "/" + resolvedPath;
|
|
137
|
-
resolvedAbsolute = path2.charCodeAt(0) === 47;
|
|
138
|
-
}
|
|
139
|
-
resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute);
|
|
140
|
-
if (resolvedAbsolute) {
|
|
141
|
-
if (resolvedPath.length > 0)
|
|
142
|
-
return "/" + resolvedPath;
|
|
143
|
-
else
|
|
144
|
-
return "/";
|
|
145
|
-
} else if (resolvedPath.length > 0) {
|
|
146
|
-
return resolvedPath;
|
|
147
|
-
} else {
|
|
148
|
-
return ".";
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
normalize: function normalize2(path2) {
|
|
152
|
-
assertPath(path2);
|
|
153
|
-
if (path2.length === 0) return ".";
|
|
154
|
-
var isAbsolute2 = path2.charCodeAt(0) === 47;
|
|
155
|
-
var trailingSeparator = path2.charCodeAt(path2.length - 1) === 47;
|
|
156
|
-
path2 = normalizeStringPosix(path2, !isAbsolute2);
|
|
157
|
-
if (path2.length === 0 && !isAbsolute2) path2 = ".";
|
|
158
|
-
if (path2.length > 0 && trailingSeparator) path2 += "/";
|
|
159
|
-
if (isAbsolute2) return "/" + path2;
|
|
160
|
-
return path2;
|
|
161
|
-
},
|
|
162
|
-
isAbsolute: function isAbsolute2(path2) {
|
|
163
|
-
assertPath(path2);
|
|
164
|
-
return path2.length > 0 && path2.charCodeAt(0) === 47;
|
|
165
|
-
},
|
|
166
|
-
join: function join2() {
|
|
167
|
-
if (arguments.length === 0)
|
|
168
|
-
return ".";
|
|
169
|
-
var joined;
|
|
170
|
-
for (var i = 0; i < arguments.length; ++i) {
|
|
171
|
-
var arg = arguments[i];
|
|
172
|
-
assertPath(arg);
|
|
173
|
-
if (arg.length > 0) {
|
|
174
|
-
if (joined === void 0)
|
|
175
|
-
joined = arg;
|
|
176
|
-
else
|
|
177
|
-
joined += "/" + arg;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
if (joined === void 0)
|
|
181
|
-
return ".";
|
|
182
|
-
return posix.normalize(joined);
|
|
183
|
-
},
|
|
184
|
-
relative: function relative2(from, to) {
|
|
185
|
-
assertPath(from);
|
|
186
|
-
assertPath(to);
|
|
187
|
-
if (from === to) return "";
|
|
188
|
-
from = posix.resolve(from);
|
|
189
|
-
to = posix.resolve(to);
|
|
190
|
-
if (from === to) return "";
|
|
191
|
-
var fromStart = 1;
|
|
192
|
-
for (; fromStart < from.length; ++fromStart) {
|
|
193
|
-
if (from.charCodeAt(fromStart) !== 47)
|
|
194
|
-
break;
|
|
195
|
-
}
|
|
196
|
-
var fromEnd = from.length;
|
|
197
|
-
var fromLen = fromEnd - fromStart;
|
|
198
|
-
var toStart = 1;
|
|
199
|
-
for (; toStart < to.length; ++toStart) {
|
|
200
|
-
if (to.charCodeAt(toStart) !== 47)
|
|
201
|
-
break;
|
|
202
|
-
}
|
|
203
|
-
var toEnd = to.length;
|
|
204
|
-
var toLen = toEnd - toStart;
|
|
205
|
-
var length = fromLen < toLen ? fromLen : toLen;
|
|
206
|
-
var lastCommonSep = -1;
|
|
207
|
-
var i = 0;
|
|
208
|
-
for (; i <= length; ++i) {
|
|
209
|
-
if (i === length) {
|
|
210
|
-
if (toLen > length) {
|
|
211
|
-
if (to.charCodeAt(toStart + i) === 47) {
|
|
212
|
-
return to.slice(toStart + i + 1);
|
|
213
|
-
} else if (i === 0) {
|
|
214
|
-
return to.slice(toStart + i);
|
|
215
|
-
}
|
|
216
|
-
} else if (fromLen > length) {
|
|
217
|
-
if (from.charCodeAt(fromStart + i) === 47) {
|
|
218
|
-
lastCommonSep = i;
|
|
219
|
-
} else if (i === 0) {
|
|
220
|
-
lastCommonSep = 0;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
break;
|
|
224
|
-
}
|
|
225
|
-
var fromCode = from.charCodeAt(fromStart + i);
|
|
226
|
-
var toCode = to.charCodeAt(toStart + i);
|
|
227
|
-
if (fromCode !== toCode)
|
|
228
|
-
break;
|
|
229
|
-
else if (fromCode === 47)
|
|
230
|
-
lastCommonSep = i;
|
|
231
|
-
}
|
|
232
|
-
var out = "";
|
|
233
|
-
for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
|
|
234
|
-
if (i === fromEnd || from.charCodeAt(i) === 47) {
|
|
235
|
-
if (out.length === 0)
|
|
236
|
-
out += "..";
|
|
237
|
-
else
|
|
238
|
-
out += "/..";
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
if (out.length > 0)
|
|
242
|
-
return out + to.slice(toStart + lastCommonSep);
|
|
243
|
-
else {
|
|
244
|
-
toStart += lastCommonSep;
|
|
245
|
-
if (to.charCodeAt(toStart) === 47)
|
|
246
|
-
++toStart;
|
|
247
|
-
return to.slice(toStart);
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
_makeLong: function _makeLong(path2) {
|
|
251
|
-
return path2;
|
|
252
|
-
},
|
|
253
|
-
dirname: function dirname2(path2) {
|
|
254
|
-
assertPath(path2);
|
|
255
|
-
if (path2.length === 0) return ".";
|
|
256
|
-
var code = path2.charCodeAt(0);
|
|
257
|
-
var hasRoot = code === 47;
|
|
258
|
-
var end = -1;
|
|
259
|
-
var matchedSlash = true;
|
|
260
|
-
for (var i = path2.length - 1; i >= 1; --i) {
|
|
261
|
-
code = path2.charCodeAt(i);
|
|
262
|
-
if (code === 47) {
|
|
263
|
-
if (!matchedSlash) {
|
|
264
|
-
end = i;
|
|
265
|
-
break;
|
|
266
|
-
}
|
|
267
|
-
} else {
|
|
268
|
-
matchedSlash = false;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
if (end === -1) return hasRoot ? "/" : ".";
|
|
272
|
-
if (hasRoot && end === 1) return "//";
|
|
273
|
-
return path2.slice(0, end);
|
|
274
|
-
},
|
|
275
|
-
basename: function basename2(path2, ext) {
|
|
276
|
-
if (ext !== void 0 && typeof ext !== "string") throw new TypeError('"ext" argument must be a string');
|
|
277
|
-
assertPath(path2);
|
|
278
|
-
var start = 0;
|
|
279
|
-
var end = -1;
|
|
280
|
-
var matchedSlash = true;
|
|
281
|
-
var i;
|
|
282
|
-
if (ext !== void 0 && ext.length > 0 && ext.length <= path2.length) {
|
|
283
|
-
if (ext.length === path2.length && ext === path2) return "";
|
|
284
|
-
var extIdx = ext.length - 1;
|
|
285
|
-
var firstNonSlashEnd = -1;
|
|
286
|
-
for (i = path2.length - 1; i >= 0; --i) {
|
|
287
|
-
var code = path2.charCodeAt(i);
|
|
288
|
-
if (code === 47) {
|
|
289
|
-
if (!matchedSlash) {
|
|
290
|
-
start = i + 1;
|
|
291
|
-
break;
|
|
292
|
-
}
|
|
293
|
-
} else {
|
|
294
|
-
if (firstNonSlashEnd === -1) {
|
|
295
|
-
matchedSlash = false;
|
|
296
|
-
firstNonSlashEnd = i + 1;
|
|
297
|
-
}
|
|
298
|
-
if (extIdx >= 0) {
|
|
299
|
-
if (code === ext.charCodeAt(extIdx)) {
|
|
300
|
-
if (--extIdx === -1) {
|
|
301
|
-
end = i;
|
|
302
|
-
}
|
|
303
|
-
} else {
|
|
304
|
-
extIdx = -1;
|
|
305
|
-
end = firstNonSlashEnd;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
if (start === end) end = firstNonSlashEnd;
|
|
311
|
-
else if (end === -1) end = path2.length;
|
|
312
|
-
return path2.slice(start, end);
|
|
313
|
-
} else {
|
|
314
|
-
for (i = path2.length - 1; i >= 0; --i) {
|
|
315
|
-
if (path2.charCodeAt(i) === 47) {
|
|
316
|
-
if (!matchedSlash) {
|
|
317
|
-
start = i + 1;
|
|
318
|
-
break;
|
|
319
|
-
}
|
|
320
|
-
} else if (end === -1) {
|
|
321
|
-
matchedSlash = false;
|
|
322
|
-
end = i + 1;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
if (end === -1) return "";
|
|
326
|
-
return path2.slice(start, end);
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
extname: function extname2(path2) {
|
|
330
|
-
assertPath(path2);
|
|
331
|
-
var startDot = -1;
|
|
332
|
-
var startPart = 0;
|
|
333
|
-
var end = -1;
|
|
334
|
-
var matchedSlash = true;
|
|
335
|
-
var preDotState = 0;
|
|
336
|
-
for (var i = path2.length - 1; i >= 0; --i) {
|
|
337
|
-
var code = path2.charCodeAt(i);
|
|
338
|
-
if (code === 47) {
|
|
339
|
-
if (!matchedSlash) {
|
|
340
|
-
startPart = i + 1;
|
|
341
|
-
break;
|
|
342
|
-
}
|
|
343
|
-
continue;
|
|
344
|
-
}
|
|
345
|
-
if (end === -1) {
|
|
346
|
-
matchedSlash = false;
|
|
347
|
-
end = i + 1;
|
|
348
|
-
}
|
|
349
|
-
if (code === 46) {
|
|
350
|
-
if (startDot === -1)
|
|
351
|
-
startDot = i;
|
|
352
|
-
else if (preDotState !== 1)
|
|
353
|
-
preDotState = 1;
|
|
354
|
-
} else if (startDot !== -1) {
|
|
355
|
-
preDotState = -1;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
|
|
359
|
-
preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
|
|
360
|
-
preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
|
|
361
|
-
return "";
|
|
362
|
-
}
|
|
363
|
-
return path2.slice(startDot, end);
|
|
364
|
-
},
|
|
365
|
-
format: function format2(pathObject) {
|
|
366
|
-
if (pathObject === null || typeof pathObject !== "object") {
|
|
367
|
-
throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof pathObject);
|
|
368
|
-
}
|
|
369
|
-
return _format("/", pathObject);
|
|
370
|
-
},
|
|
371
|
-
parse: function parse2(path2) {
|
|
372
|
-
assertPath(path2);
|
|
373
|
-
var ret = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
374
|
-
if (path2.length === 0) return ret;
|
|
375
|
-
var code = path2.charCodeAt(0);
|
|
376
|
-
var isAbsolute2 = code === 47;
|
|
377
|
-
var start;
|
|
378
|
-
if (isAbsolute2) {
|
|
379
|
-
ret.root = "/";
|
|
380
|
-
start = 1;
|
|
381
|
-
} else {
|
|
382
|
-
start = 0;
|
|
383
|
-
}
|
|
384
|
-
var startDot = -1;
|
|
385
|
-
var startPart = 0;
|
|
386
|
-
var end = -1;
|
|
387
|
-
var matchedSlash = true;
|
|
388
|
-
var i = path2.length - 1;
|
|
389
|
-
var preDotState = 0;
|
|
390
|
-
for (; i >= start; --i) {
|
|
391
|
-
code = path2.charCodeAt(i);
|
|
392
|
-
if (code === 47) {
|
|
393
|
-
if (!matchedSlash) {
|
|
394
|
-
startPart = i + 1;
|
|
395
|
-
break;
|
|
396
|
-
}
|
|
397
|
-
continue;
|
|
398
|
-
}
|
|
399
|
-
if (end === -1) {
|
|
400
|
-
matchedSlash = false;
|
|
401
|
-
end = i + 1;
|
|
402
|
-
}
|
|
403
|
-
if (code === 46) {
|
|
404
|
-
if (startDot === -1) startDot = i;
|
|
405
|
-
else if (preDotState !== 1) preDotState = 1;
|
|
406
|
-
} else if (startDot !== -1) {
|
|
407
|
-
preDotState = -1;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
|
|
411
|
-
preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
|
|
412
|
-
preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
|
|
413
|
-
if (end !== -1) {
|
|
414
|
-
if (startPart === 0 && isAbsolute2) ret.base = ret.name = path2.slice(1, end);
|
|
415
|
-
else ret.base = ret.name = path2.slice(startPart, end);
|
|
416
|
-
}
|
|
417
|
-
} else {
|
|
418
|
-
if (startPart === 0 && isAbsolute2) {
|
|
419
|
-
ret.name = path2.slice(1, startDot);
|
|
420
|
-
ret.base = path2.slice(1, end);
|
|
421
|
-
} else {
|
|
422
|
-
ret.name = path2.slice(startPart, startDot);
|
|
423
|
-
ret.base = path2.slice(startPart, end);
|
|
424
|
-
}
|
|
425
|
-
ret.ext = path2.slice(startDot, end);
|
|
426
|
-
}
|
|
427
|
-
if (startPart > 0) ret.dir = path2.slice(0, startPart - 1);
|
|
428
|
-
else if (isAbsolute2) ret.dir = "/";
|
|
429
|
-
return ret;
|
|
430
|
-
},
|
|
431
|
-
sep: "/",
|
|
432
|
-
delimiter: ":",
|
|
433
|
-
win32: null,
|
|
434
|
-
posix: null
|
|
435
|
-
};
|
|
436
|
-
posix.posix = posix;
|
|
437
|
-
module2.exports = posix;
|
|
438
|
-
}
|
|
439
|
-
});
|
|
440
|
-
var path = (0, import_chunk_6SZKM6EC.__toESM)(require_path_browserify(), 1);
|
|
441
|
-
var import_path_browserify = (0, import_chunk_6SZKM6EC.__toESM)(require_path_browserify(), 1);
|
|
442
|
-
var path_default = path;
|
|
443
|
-
var export_basename = import_path_browserify.basename;
|
|
444
|
-
var export_dirname = import_path_browserify.dirname;
|
|
445
|
-
var export_extname = import_path_browserify.extname;
|
|
446
|
-
var export_format = import_path_browserify.format;
|
|
447
|
-
var export_isAbsolute = import_path_browserify.isAbsolute;
|
|
448
|
-
var export_join = import_path_browserify.join;
|
|
449
|
-
var export_normalize = import_path_browserify.normalize;
|
|
450
|
-
var export_parse = import_path_browserify.parse;
|
|
451
|
-
var export_relative = import_path_browserify.relative;
|
|
452
|
-
var export_resolve = import_path_browserify.resolve;
|
|
453
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
454
|
-
0 && (module.exports = {
|
|
455
|
-
basename,
|
|
456
|
-
dirname,
|
|
457
|
-
extname,
|
|
458
|
-
format,
|
|
459
|
-
isAbsolute,
|
|
460
|
-
join,
|
|
461
|
-
normalize,
|
|
462
|
-
parse,
|
|
463
|
-
relative,
|
|
464
|
-
resolve
|
|
465
|
-
});
|
|
466
|
-
//# sourceMappingURL=path.cjs.map
|