@gjsify/path 0.3.12 → 0.3.14
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/lib/esm/_virtual/_rolldown/runtime.js +18 -0
- package/lib/esm/constants.js +4 -11
- package/lib/esm/index.js +24 -51
- package/lib/esm/posix.js +316 -312
- package/lib/esm/util.js +92 -99
- package/lib/esm/win32.js +549 -549
- package/package.json +3 -3
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) {
|
|
6
|
+
__defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
if (!no_symbols) {
|
|
12
|
+
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
13
|
+
}
|
|
14
|
+
return target;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { __exportAll };
|
package/lib/esm/constants.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/constants.ts
|
|
1
2
|
const CHAR_DOT = 46;
|
|
2
3
|
const CHAR_FORWARD_SLASH = 47;
|
|
3
4
|
const CHAR_BACKWARD_SLASH = 92;
|
|
@@ -7,14 +8,6 @@ const CHAR_LOWERCASE_A = 97;
|
|
|
7
8
|
const CHAR_LOWERCASE_Z = 122;
|
|
8
9
|
const CHAR_UPPERCASE_A = 65;
|
|
9
10
|
const CHAR_UPPERCASE_Z = 90;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
CHAR_DOT,
|
|
14
|
-
CHAR_FORWARD_SLASH,
|
|
15
|
-
CHAR_LOWERCASE_A,
|
|
16
|
-
CHAR_LOWERCASE_Z,
|
|
17
|
-
CHAR_QUESTION_MARK,
|
|
18
|
-
CHAR_UPPERCASE_A,
|
|
19
|
-
CHAR_UPPERCASE_Z
|
|
20
|
-
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { CHAR_BACKWARD_SLASH, CHAR_COLON, CHAR_DOT, CHAR_FORWARD_SLASH, CHAR_LOWERCASE_A, CHAR_LOWERCASE_Z, CHAR_QUESTION_MARK, CHAR_UPPERCASE_A, CHAR_UPPERCASE_Z };
|
package/lib/esm/index.js
CHANGED
|
@@ -1,52 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
join: posix.join,
|
|
23
|
-
relative: posix.relative,
|
|
24
|
-
toNamespacedPath: posix.toNamespacedPath,
|
|
25
|
-
dirname: posix.dirname,
|
|
26
|
-
basename: posix.basename,
|
|
27
|
-
extname: posix.extname,
|
|
28
|
-
format: posix.format,
|
|
29
|
-
parse: posix.parse,
|
|
30
|
-
sep: posix.sep,
|
|
31
|
-
delimiter: posix.delimiter,
|
|
32
|
-
posix,
|
|
33
|
-
win32
|
|
34
|
-
};
|
|
35
|
-
export {
|
|
36
|
-
basename,
|
|
37
|
-
index_default as default,
|
|
38
|
-
delimiter,
|
|
39
|
-
dirname,
|
|
40
|
-
extname,
|
|
41
|
-
format,
|
|
42
|
-
isAbsolute,
|
|
43
|
-
join,
|
|
44
|
-
normalize,
|
|
45
|
-
parse,
|
|
46
|
-
posix,
|
|
47
|
-
relative,
|
|
48
|
-
resolve,
|
|
49
|
-
sep,
|
|
50
|
-
toNamespacedPath,
|
|
51
|
-
win32
|
|
1
|
+
import { basename as basename$1, delimiter as delimiter$1, dirname as dirname$1, extname as extname$1, format as format$1, isAbsolute as isAbsolute$1, join as join$1, normalize as normalize$1, parse as parse$1, posix_exports, relative as relative$1, resolve as resolve$1, sep as sep$1, toNamespacedPath as toNamespacedPath$1 } from "./posix.js";
|
|
2
|
+
import { win32_exports } from "./win32.js";
|
|
3
|
+
|
|
4
|
+
//#region src/index.ts
|
|
5
|
+
const { resolve, normalize, isAbsolute, join, relative, toNamespacedPath, dirname, basename, extname, format, parse, sep, delimiter } = posix_exports;
|
|
6
|
+
var src_default = {
|
|
7
|
+
resolve: resolve$1,
|
|
8
|
+
normalize: normalize$1,
|
|
9
|
+
isAbsolute: isAbsolute$1,
|
|
10
|
+
join: join$1,
|
|
11
|
+
relative: relative$1,
|
|
12
|
+
toNamespacedPath: toNamespacedPath$1,
|
|
13
|
+
dirname: dirname$1,
|
|
14
|
+
basename: basename$1,
|
|
15
|
+
extname: extname$1,
|
|
16
|
+
format: format$1,
|
|
17
|
+
parse: parse$1,
|
|
18
|
+
sep: "/",
|
|
19
|
+
delimiter: ":",
|
|
20
|
+
posix: posix_exports,
|
|
21
|
+
win32: win32_exports
|
|
52
22
|
};
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { basename, src_default as default, delimiter, dirname, extname, format, isAbsolute, join, normalize, parse, posix_exports as posix, relative, resolve, sep, toNamespacedPath, win32_exports as win32 };
|