@tryghost/mg-fs-utils 0.14.1 → 0.14.2

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.
Files changed (2) hide show
  1. package/lib/FileCache.js +3 -1
  2. package/package.json +5 -5
package/lib/FileCache.js CHANGED
@@ -181,9 +181,11 @@ export default class FileCache {
181
181
  resolveFileName(filename, type = 'images') {
182
182
  const ext = extname(filename);
183
183
 
184
- // Replace any dots in the path with dashes
184
+ // Replace any dots and spaces in the path with dashes
185
185
  const parsedPath = parse(filename);
186
186
  parsedPath.dir = parsedPath.dir.replace(/\./g, '-');
187
+ parsedPath.dir = parsedPath.dir.replace(/ /g, '-');
188
+ parsedPath.dir = parsedPath.dir.replace(/%20/g, '-');
187
189
  filename = format(parsedPath);
188
190
 
189
191
  let typeDir = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-fs-utils",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-fs-utils",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -28,14 +28,14 @@
28
28
  "@tryghost/errors": "1.3.2",
29
29
  "@tryghost/image-transform": "1.3.0",
30
30
  "@tryghost/string": "0.2.12",
31
- "@tryghost/zip": "1.1.43",
32
- "adm-zip": "0.5.12",
31
+ "@tryghost/zip": "1.1.46",
32
+ "adm-zip": "0.5.14",
33
33
  "csv-parse": "5.5.6",
34
34
  "dotenv": "16.4.5",
35
35
  "fs-extra": "11.2.0",
36
36
  "lodash": "4.17.21",
37
- "sharp": "0.32.6",
37
+ "sharp": "0.33.4",
38
38
  "transliteration": "2.3.5"
39
39
  },
40
- "gitHead": "f824cede3d1123defe3e4575536dd579984f7fe2"
40
+ "gitHead": "4995b3fa8393ec37c7181e08b9cd76a49a056cb1"
41
41
  }