@zokugun/fs-path 0.2.0 → 0.2.1
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.
|
@@ -18,7 +18,7 @@ function isSafeSegment(_nodePath, localPath) {
|
|
|
18
18
|
const sanitizer = fs_path_sanitize_1.Sanitizer.getInstance(target);
|
|
19
19
|
return (segment, target) => {
|
|
20
20
|
if (!target || target === 'auto') {
|
|
21
|
-
return sanitizer.
|
|
21
|
+
return sanitizer.isSafeSegment(segment);
|
|
22
22
|
}
|
|
23
23
|
else {
|
|
24
24
|
return (0, fs_path_sanitize_1.isSafeSegment)(segment, target);
|
|
@@ -12,7 +12,7 @@ export function isSafeSegment(_nodePath, localPath) {
|
|
|
12
12
|
const sanitizer = Sanitizer.getInstance(target);
|
|
13
13
|
return (segment, target) => {
|
|
14
14
|
if (!target || target === 'auto') {
|
|
15
|
-
return sanitizer.
|
|
15
|
+
return sanitizer.isSafeSegment(segment);
|
|
16
16
|
}
|
|
17
17
|
else {
|
|
18
18
|
return isSafe(segment, target);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zokugun/fs-path",
|
|
3
3
|
"description": "Path utilities complementing the builtin path module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Baptiste Augrain",
|
|
7
7
|
"email": "daiyam@zokugun.org"
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"module": "lib/esm/index.mjs",
|
|
21
21
|
"scripts": {
|
|
22
22
|
"audit:fix": "npm audit fix --min-release-age=0",
|
|
23
|
-
"build": "npm run clean && npm run build:
|
|
24
|
-
"build:
|
|
23
|
+
"build": "npm run clean && npm run build:out",
|
|
24
|
+
"build:out": "tsc-leda generate",
|
|
25
25
|
"build:package": "tsc-leda update-package && npm run lint:package",
|
|
26
26
|
"ci:lint": "zizmor .",
|
|
27
27
|
"ci:lint:fix": "zizmor . --fix=all",
|
|
28
28
|
"clean": "rimraf lib; rimraf .src; rimraf .test",
|
|
29
29
|
"compile:src": "tsc -p src",
|
|
30
30
|
"compile:test": "tsc -p test",
|
|
31
|
-
"lint": "
|
|
32
|
-
"lint:all": "npm audit && npm run lint:package && npm run ci:lint
|
|
33
|
-
"lint:fix": "
|
|
31
|
+
"lint": "eslint",
|
|
32
|
+
"lint:all": "npm audit && npm run lint:package && npm run ci:lint",
|
|
33
|
+
"lint:fix": "eslint --fix",
|
|
34
34
|
"lint:package": "fixpack || true",
|
|
35
35
|
"prepack": "npm run build",
|
|
36
36
|
"prepare": "husky; npm run lint:package",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"test:ui": "vitest --ui --coverage",
|
|
41
41
|
"test:watch": "vitest",
|
|
42
42
|
"update:artifacts": "artifact update",
|
|
43
|
-
"update:ci": "
|
|
43
|
+
"update:ci": "pinact run -min-age 7 -update",
|
|
44
44
|
"update:deps": "taze --all",
|
|
45
45
|
"watch:build": "tsc-watch -p src --onSuccess 'npm run build'",
|
|
46
46
|
"watch:src": "tsc-watch -p src",
|
|
@@ -54,30 +54,70 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@commitlint/cli": "20.5.3",
|
|
56
56
|
"@commitlint/config-conventional": "20.5.3",
|
|
57
|
-
"@types/node": "20.19.
|
|
58
|
-
"@vitest/coverage-v8": "4.1.
|
|
59
|
-
"@vitest/ui": "4.1.
|
|
60
|
-
"@zokugun/
|
|
61
|
-
"@zokugun/
|
|
57
|
+
"@types/node": "20.19.43",
|
|
58
|
+
"@vitest/coverage-v8": "4.1.12",
|
|
59
|
+
"@vitest/ui": "4.1.12",
|
|
60
|
+
"@zokugun/eslint-config": "0.2.1",
|
|
61
|
+
"@zokugun/eslint-config-data": "0.2.1",
|
|
62
|
+
"@zokugun/eslint-config-glossary": "0.2.0",
|
|
63
|
+
"@zokugun/eslint-config-js": "0.2.1",
|
|
64
|
+
"@zokugun/eslint-config-md": "0.4.1",
|
|
65
|
+
"@zokugun/eslint-config-nodejs": "0.2.0",
|
|
66
|
+
"@zokugun/eslint-config-style": "0.3.1",
|
|
67
|
+
"@zokugun/eslint-config-test": "0.2.0",
|
|
68
|
+
"@zokugun/eslint-config-ts": "0.3.2",
|
|
69
|
+
"@zokugun/fs-extra-plus": "0.6.2",
|
|
70
|
+
"@zokugun/tsc-leda": "0.9.1",
|
|
71
|
+
"eslint": "10.14.0",
|
|
62
72
|
"fixpack": "4.0.0",
|
|
63
|
-
"globby": "16.2.0",
|
|
64
73
|
"husky": "9.1.7",
|
|
65
74
|
"lint-staged": "16.4.0",
|
|
66
|
-
"release-it": "20.
|
|
75
|
+
"release-it": "20.2.1",
|
|
67
76
|
"rimraf": "6.1.3",
|
|
68
|
-
"taze": "19.
|
|
69
|
-
"tsc-watch": "7.2.
|
|
77
|
+
"taze": "19.17.2",
|
|
78
|
+
"tsc-watch": "7.2.1",
|
|
70
79
|
"typescript": "5.9.3",
|
|
71
|
-
"vitest": "4.1.
|
|
72
|
-
"xo": "0.60.0"
|
|
80
|
+
"vitest": "4.1.12"
|
|
73
81
|
},
|
|
74
82
|
"overrides": {
|
|
75
|
-
"
|
|
76
|
-
"
|
|
83
|
+
"@eslint/config-array": {
|
|
84
|
+
"minimatch": "11.0.1"
|
|
77
85
|
},
|
|
78
86
|
"@inquirer/core": {
|
|
79
87
|
"mute-stream": "3.0.0"
|
|
88
|
+
},
|
|
89
|
+
"@octokit/request": {
|
|
90
|
+
"content-type": "2.1.0"
|
|
91
|
+
},
|
|
92
|
+
"@typescript-eslint/typescript-estree": {
|
|
93
|
+
"minimatch": "11.0.1"
|
|
94
|
+
},
|
|
95
|
+
"eslint": {
|
|
96
|
+
"minimatch": "11.0.1"
|
|
97
|
+
},
|
|
98
|
+
"eslint-plugin-import-x": {
|
|
99
|
+
"minimatch": "11.0.1"
|
|
100
|
+
},
|
|
101
|
+
"get-uri": {
|
|
102
|
+
"basic-ftp": "6.2.3"
|
|
103
|
+
},
|
|
104
|
+
"glob": {
|
|
105
|
+
"minimatch": "11.0.1"
|
|
106
|
+
},
|
|
107
|
+
"micromark-extension-math": {
|
|
108
|
+
"katex": "0.18.2"
|
|
109
|
+
},
|
|
110
|
+
"rimraf": {
|
|
111
|
+
"glob": "14.0.2"
|
|
112
|
+
},
|
|
113
|
+
"release-it": {
|
|
114
|
+
"undici": "7.30.1"
|
|
80
115
|
}
|
|
81
116
|
},
|
|
117
|
+
"allowScripts": {
|
|
118
|
+
"@zokugun/cli-utils": true,
|
|
119
|
+
"fsevents": true,
|
|
120
|
+
"unrs-resolver": true
|
|
121
|
+
},
|
|
82
122
|
"keywords": []
|
|
83
123
|
}
|