Skip to content

Commit 2d3e183

Browse files
committed
revert: fix: rename getSanitizedFileName to sanitizeFileName and update deps #180
The storage adapter update has been reverted in Ghost v5.109.2.: TryGhost/Ghost@v5.109.1...v5.109.2
1 parent 763a0e0 commit 2d3e183

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class CloudinaryAdapter extends StorageBase {
6767
if (uploaderOptions.upload.use_filename !== 'undefined' && uploaderOptions.upload.use_filename) {
6868
Object.assign(
6969
uploaderOptions.upload,
70-
{ public_id: path.parse(this.sanitizeFileName(image.name)).name }
70+
{ public_id: path.parse(this.getSanitizedFileName(image.name)).name }
7171
);
7272
}
7373

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@tryghost/errors": "^1.3.7",
4949
"bluebird": "^3.7.0",
5050
"cloudinary": "^2.6.0",
51-
"ghost-storage-base": "^1.1.1",
51+
"ghost-storage-base": "1.0.0",
5252
"got": "^11.0",
5353
"image-size": "^1.0.1",
5454
"lodash": "^4.17.20",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,10 +2076,10 @@ get-stream@^5.1.0:
20762076
dependencies:
20772077
pump "^3.0.0"
20782078

2079-
ghost-storage-base@^1.1.1:
2080-
version "1.1.1"
2081-
resolved "https://registry.yarnpkg.com/ghost-storage-base/-/ghost-storage-base-1.1.1.tgz#63caec4af9cb2f5cd0271cc87bf85cbadd135de8"
2082-
integrity sha512-MRokcZctPKO/Oonn2W55dYNZRPn75lBoSdoOc1BtwL7wm/Sq/Qx7ovx1H5seZhCReFs8QOeUXvX9dXuguBSnnQ==
2079+
ghost-storage-base@1.0.0:
2080+
version "1.0.0"
2081+
resolved "https://registry.yarnpkg.com/ghost-storage-base/-/ghost-storage-base-1.0.0.tgz#931289d310ad59fc80e2be01a81235cc3a76e75a"
2082+
integrity sha512-qIW6pny/wWKjrbRmXVNis9i7856AMR5/NZmnLTrKbA0KIEnA9K/fhkj7ISnSyTYfBv17sFsC23eJfvj6dDgZrQ==
20832083
dependencies:
20842084
moment "2.27.0"
20852085

0 commit comments

Comments
 (0)