gscan 5.4.2 → 5.4.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/lib/checker.js +2 -2
- package/lib/read-theme.js +2 -2
- package/package.json +2 -3
package/lib/checker.js
CHANGED
|
@@ -121,8 +121,8 @@ const checkZip = async function checkZip(path, options) {
|
|
|
121
121
|
throw error;
|
|
122
122
|
} finally {
|
|
123
123
|
if (!options.keepExtractedDir && zip.origPath) {
|
|
124
|
-
const fs = require('fs
|
|
125
|
-
await fs.
|
|
124
|
+
const fs = require('fs/promises');
|
|
125
|
+
await fs.rm(zip.origPath, {recursive: true, force: true});
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
};
|
package/lib/read-theme.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const fs = require('fs
|
|
1
|
+
const fs = require('fs/promises');
|
|
2
2
|
const _ = require('lodash');
|
|
3
3
|
const os = require('os');
|
|
4
4
|
const path = require('path');
|
|
@@ -59,7 +59,7 @@ const readThemeStructure = function readThemeFiles(themePath, subPath, arr) {
|
|
|
59
59
|
*/
|
|
60
60
|
if (ignore.indexOf(file) > -1) {
|
|
61
61
|
return inTmp
|
|
62
|
-
? fs.
|
|
62
|
+
? fs.rm(newPath, {recursive: true, force: true})
|
|
63
63
|
.then(function () {
|
|
64
64
|
return result;
|
|
65
65
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gscan",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.3",
|
|
4
4
|
"description": "Scans Ghost themes looking for errors, deprecations, features and compatibility",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ghost",
|
|
@@ -55,7 +55,6 @@
|
|
|
55
55
|
"chalk": "5.6.2",
|
|
56
56
|
"express": "5.2.1",
|
|
57
57
|
"express-handlebars": "7.1.3",
|
|
58
|
-
"fs-extra": "11.3.4",
|
|
59
58
|
"glob": "13.0.6",
|
|
60
59
|
"lodash": "4.18.1",
|
|
61
60
|
"multer": "2.1.1",
|
|
@@ -75,7 +74,7 @@
|
|
|
75
74
|
},
|
|
76
75
|
"resolutions": {
|
|
77
76
|
"node-loggly-bulk": "4.0.2",
|
|
78
|
-
"node-loggly-bulk/axios": "1.
|
|
77
|
+
"node-loggly-bulk/axios": "1.14.0"
|
|
79
78
|
},
|
|
80
79
|
"files": [
|
|
81
80
|
"lib",
|