@jsenv/test 3.5.34 → 3.5.36
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/jsenv_test.js +12 -7
- package/package.json +7 -7
package/dist/jsenv_test.js
CHANGED
|
@@ -2030,7 +2030,7 @@ const comparePathnames = (leftPathame, rightPathname) => {
|
|
|
2030
2030
|
|
|
2031
2031
|
// longer comes first
|
|
2032
2032
|
if (!leftPartExists) {
|
|
2033
|
-
return
|
|
2033
|
+
return 1;
|
|
2034
2034
|
}
|
|
2035
2035
|
if (!rightPartExists) {
|
|
2036
2036
|
return -1;
|
|
@@ -2040,7 +2040,7 @@ const comparePathnames = (leftPathame, rightPathname) => {
|
|
|
2040
2040
|
const rightPartIsLast = i === rightPartArray.length - 1;
|
|
2041
2041
|
// folder comes first
|
|
2042
2042
|
if (leftPartIsLast && !rightPartIsLast) {
|
|
2043
|
-
return
|
|
2043
|
+
return 1;
|
|
2044
2044
|
}
|
|
2045
2045
|
if (!leftPartIsLast && rightPartIsLast) {
|
|
2046
2046
|
return -1;
|
|
@@ -2057,7 +2057,7 @@ const comparePathnames = (leftPathame, rightPathname) => {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
|
|
2059
2059
|
if (leftLength < rightLength) {
|
|
2060
|
-
return
|
|
2060
|
+
return 1;
|
|
2061
2061
|
}
|
|
2062
2062
|
if (leftLength > rightLength) {
|
|
2063
2063
|
return -1;
|
|
@@ -2832,6 +2832,7 @@ const writeDirectorySync = (
|
|
|
2832
2832
|
.slice(0, -1),
|
|
2833
2833
|
),
|
|
2834
2834
|
);
|
|
2835
|
+
destinationStats = null;
|
|
2835
2836
|
} else {
|
|
2836
2837
|
throw new Error(
|
|
2837
2838
|
`cannot write directory at ${destinationPath} because there is a file at ${urlToFileSystemPath(
|
|
@@ -2851,10 +2852,14 @@ const writeDirectorySync = (
|
|
|
2851
2852
|
}
|
|
2852
2853
|
throw new Error(`directory already exists at ${destinationPath}`);
|
|
2853
2854
|
}
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2855
|
+
if (force) {
|
|
2856
|
+
unlinkSync(destinationPath);
|
|
2857
|
+
} else {
|
|
2858
|
+
const destinationType = statsToType(destinationStats);
|
|
2859
|
+
throw new Error(
|
|
2860
|
+
`cannot write directory at ${destinationPath} because there is a ${destinationType}`,
|
|
2861
|
+
);
|
|
2862
|
+
}
|
|
2858
2863
|
}
|
|
2859
2864
|
|
|
2860
2865
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/test",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.36",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@c88/v8-coverage": "0.1.1",
|
|
39
39
|
"@jsenv/abort": "4.3.0",
|
|
40
|
-
"@jsenv/ast": "6.4.
|
|
40
|
+
"@jsenv/ast": "6.4.4",
|
|
41
41
|
"@jsenv/exception": "1.1.3",
|
|
42
|
-
"@jsenv/filesystem": "4.13.
|
|
43
|
-
"@jsenv/github-check-run": "0.2.
|
|
42
|
+
"@jsenv/filesystem": "4.13.2",
|
|
43
|
+
"@jsenv/github-check-run": "0.2.6",
|
|
44
44
|
"@jsenv/node-esm-resolution": "1.0.6",
|
|
45
45
|
"@jsenv/humanize": "1.2.8",
|
|
46
|
-
"@jsenv/plugin-supervisor": "1.6.
|
|
47
|
-
"@jsenv/sourcemap": "1.2.
|
|
46
|
+
"@jsenv/plugin-supervisor": "1.6.3",
|
|
47
|
+
"@jsenv/sourcemap": "1.2.30",
|
|
48
48
|
"@jsenv/url-meta": "8.5.2",
|
|
49
|
-
"@jsenv/urls": "2.
|
|
49
|
+
"@jsenv/urls": "2.6.0",
|
|
50
50
|
"@jsenv/utils": "2.1.2",
|
|
51
51
|
"he": "1.2.0",
|
|
52
52
|
"istanbul-lib-coverage": "3.2.2",
|