Skip to content

Commit 294e302

Browse files
authored
Merge pull request #144 from eexit/update-debug
Replace ghost-ignition.debug by @tryghost/debug
2 parents c45c1ca + 9dbf79d commit 294e302

File tree

3 files changed

+27
-579
lines changed

3 files changed

+27
-579
lines changed

index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const StorageBase = require('ghost-storage-base'),
77
path = require('path'),
88
got = require('got'),
99
plugin = require(path.join(__dirname, '/plugins')),
10-
debug = require('ghost-ignition').debug('adapter'),
10+
debug = require('@tryghost/debug')('adapters:storage:ghost-storage-cloudinary'),
1111
common = (() => {
1212
// Tries to include GhostError helper
1313
try {
@@ -152,8 +152,10 @@ class CloudinaryAdapter extends StorageBase {
152152
const opts = options || {};
153153
return new Promise(async (resolve, reject) => {
154154
try {
155-
return resolve(await got(opts.path, { responseType: 'buffer',
156-
resolveBodyOnly: true }));
155+
return resolve(await got(opts.path, {
156+
responseType: 'buffer',
157+
resolveBodyOnly: true
158+
}));
157159
} catch (err) {
158160
return reject(new common.errors.GhostError({
159161
err: err,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
"cli": "^1.17.0"
4242
},
4343
"dependencies": {
44+
"@tryghost/debug": "^0.1.17",
4445
"bluebird": "^3.7.0",
4546
"cloudinary": "~1.25.1",
46-
"ghost-ignition": "^4.6.3",
4747
"ghost-storage-base": "0.0.5",
4848
"got": "^11.8.2",
4949
"image-size": "^0.9.2",

0 commit comments

Comments
 (0)