@tryghost/mg-fs-utils 0.12.15 → 0.12.16
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/index.js +2 -2
- package/lib/FileCache.js +1 -4
- package/package.json +6 -6
- /package/lib/{ghostJSON.js → ghost-json.js} +0 -0
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import FileCache from './lib/FileCache.js';
|
|
2
2
|
import zip from './lib/zip.js';
|
|
3
3
|
import {readZipEntries} from './lib/read-zip.js';
|
|
4
|
-
import ghostJSON from './lib/
|
|
4
|
+
import ghostJSON from './lib/ghost-json.js';
|
|
5
5
|
import csv from './lib/csv.js';
|
|
6
6
|
import * as utils from './lib/utils.js';
|
|
7
7
|
|
package/lib/FileCache.js
CHANGED
|
@@ -14,7 +14,7 @@ import {cacheNameFromPath} from './utils.js';
|
|
|
14
14
|
const basePath = 'mg';
|
|
15
15
|
const knownImageExtensions = ['.jpg', '.jpeg', '.gif', '.png', '.svg', '.svgz', '.ico', 'webp'];
|
|
16
16
|
|
|
17
|
-
class FileCache {
|
|
17
|
+
export default class FileCache {
|
|
18
18
|
constructor(cacheName, options = {}) {
|
|
19
19
|
this.tmpPath = options.tmpPath || false;
|
|
20
20
|
|
|
@@ -475,6 +475,3 @@ class FileCache {
|
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
477
|
|
|
478
|
-
export {
|
|
479
|
-
FileCache
|
|
480
|
-
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/mg-fs-utils",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.16",
|
|
4
4
|
"repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-fs-utils",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"eslint": "8.
|
|
24
|
-
"jest": "29.6.
|
|
25
|
-
"jest-extended": "
|
|
23
|
+
"eslint": "8.48.0",
|
|
24
|
+
"jest": "29.6.4",
|
|
25
|
+
"jest-extended": "4.0.1"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@tryghost/errors": "1.2.26",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@tryghost/string": "0.2.8",
|
|
31
31
|
"@tryghost/zip": "1.1.37",
|
|
32
32
|
"adm-zip": "0.5.10",
|
|
33
|
-
"csv-parse": "5.
|
|
33
|
+
"csv-parse": "5.5.0",
|
|
34
34
|
"date-fns": "2.30.0",
|
|
35
35
|
"fs-extra": "11.1.1",
|
|
36
36
|
"lodash": "4.17.21",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"sharp": "0.32.5",
|
|
39
39
|
"transliteration": "2.3.5"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "05dbefe144850acde9a05b7e25fc84dbf766be88"
|
|
42
42
|
}
|
|
File without changes
|