Skip to content

Commit c8078cc

Browse files
committed
fix: rename getSanitizedFileName to sanitizeFileName and update deps
- Rename method to match refactor of upstream ghost-storage-base - Upgrade ghost-storage-base from 1.0.0 to 1.1.1
1 parent b8c4efb commit c8078cc

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.getSanitizedFileName(image.name)).name }
70+
{ public_id: path.parse(this.sanitizeFileName(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.2.18",
4949
"bluebird": "^3.7.0",
5050
"cloudinary": "^1.30.0",
51-
"ghost-storage-base": "^1.0.0",
51+
"ghost-storage-base": "^1.1.1",
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
@@ -1878,10 +1878,10 @@ get-stream@^5.1.0:
18781878
dependencies:
18791879
pump "^3.0.0"
18801880

1881-
ghost-storage-base@^1.0.0:
1882-
version "1.0.0"
1883-
resolved "https://registry.yarnpkg.com/ghost-storage-base/-/ghost-storage-base-1.0.0.tgz#931289d310ad59fc80e2be01a81235cc3a76e75a"
1884-
integrity sha512-qIW6pny/wWKjrbRmXVNis9i7856AMR5/NZmnLTrKbA0KIEnA9K/fhkj7ISnSyTYfBv17sFsC23eJfvj6dDgZrQ==
1881+
ghost-storage-base@^1.1.1:
1882+
version "1.1.1"
1883+
resolved "https://registry.yarnpkg.com/ghost-storage-base/-/ghost-storage-base-1.1.1.tgz#63caec4af9cb2f5cd0271cc87bf85cbadd135de8"
1884+
integrity sha512-MRokcZctPKO/Oonn2W55dYNZRPn75lBoSdoOc1BtwL7wm/Sq/Qx7ovx1H5seZhCReFs8QOeUXvX9dXuguBSnnQ==
18851885
dependencies:
18861886
moment "2.27.0"
18871887

0 commit comments

Comments
 (0)