@bemoje/path 2.0.2 → 2.0.3
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/README.md +1 -1
- package/lib/index.d.cts +4 -2
- package/lib/index.d.ts +4 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ Cross-platform path utilities extending upath with validation, manipulation, and
|
|
|
14
14
|
- **hasExtname**: Checks if a file path has any of the specified file extensions.
|
|
15
15
|
- **hasParentDirname**: Whether fspath is a subpath of a parent directory with the given name.
|
|
16
16
|
- **isDotFile**: Determines if a given filepath is a dotfile.
|
|
17
|
-
- **isExtValid**: Check if a file extension is valid. Invalid: - empty string - single dot: "." - illegal characters: <>"
|
|
17
|
+
- **isExtValid**: Check if a file extension is valid. Invalid: - empty string - single dot: "." - illegal characters: <>"|?*:
|
|
18
18
|
- **isRelative**: Whether a path is a relative string, ie. not absolute.
|
|
19
19
|
- **isUnc**: Determines if a given filepath is a UNC path.
|
|
20
20
|
- **isValidWin32**.aspx
|
package/lib/index.d.cts
CHANGED
|
@@ -16,6 +16,8 @@ declare function cwd(...p: string[]): string;
|
|
|
16
16
|
*/
|
|
17
17
|
declare function dirnameDeep(p: string, depth?: number): string;
|
|
18
18
|
|
|
19
|
+
// For `@link`
|
|
20
|
+
|
|
19
21
|
/**
|
|
20
22
|
Create a type that represents either the value or an array of the value.
|
|
21
23
|
|
|
@@ -30,8 +32,8 @@ function bundle(input: string, output: Arrayable<string>) {
|
|
|
30
32
|
|
|
31
33
|
// …
|
|
32
34
|
|
|
33
|
-
for (const
|
|
34
|
-
console.log(`write ${input} to: ${
|
|
35
|
+
for (const outputPath of outputList) {
|
|
36
|
+
console.log(`write ${input} to: ${outputPath}`);
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
|
package/lib/index.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ declare function cwd(...p: string[]): string;
|
|
|
16
16
|
*/
|
|
17
17
|
declare function dirnameDeep(p: string, depth?: number): string;
|
|
18
18
|
|
|
19
|
+
// For `@link`
|
|
20
|
+
|
|
19
21
|
/**
|
|
20
22
|
Create a type that represents either the value or an array of the value.
|
|
21
23
|
|
|
@@ -30,8 +32,8 @@ function bundle(input: string, output: Arrayable<string>) {
|
|
|
30
32
|
|
|
31
33
|
// …
|
|
32
34
|
|
|
33
|
-
for (const
|
|
34
|
-
console.log(`write ${input} to: ${
|
|
35
|
+
for (const outputPath of outputList) {
|
|
36
|
+
console.log(`write ${input} to: ${outputPath}`);
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bemoje/path",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Cross-platform path utilities extending upath with validation, manipulation, and inspection helpers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"upath": "^
|
|
11
|
+
"upath": "^3.0.8"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"path",
|