diff options
Diffstat (limited to 'vanilla/node_modules/pathe/dist/index.cjs')
| -rw-r--r-- | vanilla/node_modules/pathe/dist/index.cjs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/vanilla/node_modules/pathe/dist/index.cjs b/vanilla/node_modules/pathe/dist/index.cjs new file mode 100644 index 0000000..d64a6d2 --- /dev/null +++ b/vanilla/node_modules/pathe/dist/index.cjs @@ -0,0 +1,39 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +const _path = require('./shared/pathe.BSlhyZSM.cjs'); + +const delimiter = /* @__PURE__ */ (() => globalThis.process?.platform === "win32" ? ";" : ":")(); +const _platforms = { posix: void 0, win32: void 0 }; +const mix = (del = delimiter) => { + return new Proxy(_path._path, { + get(_, prop) { + if (prop === "delimiter") return del; + if (prop === "posix") return posix; + if (prop === "win32") return win32; + return _platforms[prop] || _path._path[prop]; + } + }); +}; +const posix = /* @__PURE__ */ mix(":"); +const win32 = /* @__PURE__ */ mix(";"); + +exports.basename = _path.basename; +exports.dirname = _path.dirname; +exports.extname = _path.extname; +exports.format = _path.format; +exports.isAbsolute = _path.isAbsolute; +exports.join = _path.join; +exports.matchesGlob = _path.matchesGlob; +exports.normalize = _path.normalize; +exports.normalizeString = _path.normalizeString; +exports.parse = _path.parse; +exports.relative = _path.relative; +exports.resolve = _path.resolve; +exports.sep = _path.sep; +exports.toNamespacedPath = _path.toNamespacedPath; +exports.default = posix; +exports.delimiter = delimiter; +exports.posix = posix; +exports.win32 = win32; |
