File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed
Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 11{
22 "parserOptions" : {
3- "ecmaVersion" : 6 ,
3+ "ecmaVersion" : 8 ,
44 "ecmaFeatures" : {}
55 },
66 "rules" : {
182182 "no-whitespace-before-property" : 2 ,
183183 "no-with" : 2 ,
184184 "nonblock-statement-body-position" : 2 ,
185- "object-curly-spacing" : 2 ,
186185 "object-shorthand" : [2 , " consistent" ],
187186 "one-var" : 2 ,
188187 "operator-assignment" : 2 ,
Original file line number Diff line number Diff line change @@ -152,7 +152,8 @@ 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' , resolveBodyOnly : true } ) ) ;
155+ return resolve ( await got ( opts . path , { responseType : 'buffer' ,
156+ resolveBodyOnly : true } ) ) ;
156157 } catch ( err ) {
157158 return reject ( new common . errors . GhostError ( {
158159 err : err ,
Original file line number Diff line number Diff line change 11{
22 "plugins" : [" mocha" ],
33 "parserOptions" : {
4- "ecmaVersion" : 6 ,
4+ "ecmaVersion" : 8 ,
55 "ecmaFeatures" : {}
66 },
77 "rules" : {
182182 "no-whitespace-before-property" : 2 ,
183183 "no-with" : 2 ,
184184 "nonblock-statement-body-position" : 2 ,
185- "object-curly-spacing" : 2 ,
186185 "object-shorthand" : 2 ,
187186 "one-var" : 2 ,
188187 "operator-assignment" : 2 ,
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ describe('read', function () {
1515
1616 cloudinaryAdapter = new CloudinaryAdapter ( fixtures . sampleConfig ) ;
1717 const scope = nock ( 'https://blog.mornati.net' )
18- . get ( '/myimage.png' )
19- . reply ( 200 , { "body" : "imagecontent" } ) ,
18+ . get ( '/myimage.png' )
19+ . reply ( 200 , { "body" : "imagecontent" } ) ,
2020 options = { "path" : "https://blog.mornati.net/myimage.png" } ;
2121
2222 cloudinaryAdapter . read ( options ) . then ( function ( ) {
@@ -39,8 +39,8 @@ describe('read', function () {
3939
4040 it ( 'should return an error on inexistent resource' , function ( done ) {
4141 const scope = nock ( 'https://blog.mornati.net' )
42- . get ( '/myimage.png' )
43- . replyWithError ( 'some error occurred' ) ,
42+ . get ( '/myimage.png' )
43+ . replyWithError ( 'some error occurred' ) ,
4444 options = { "path" : "https://blog.mornati.net/myimage.png" } ;
4545
4646 cloudinaryAdapter = new CloudinaryAdapter ( fixtures . sampleConfig ) ;
You can’t perform that action at this time.
0 commit comments