ghost-storage-base
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -1,4 +0,2 @@ | ||
'use strict'; | ||
var moment = require('moment'), | ||
const moment = require('moment'), | ||
path = require('path'); | ||
@@ -15,3 +13,3 @@ | ||
getTargetDir(baseDir) { | ||
var date = moment(), | ||
const date = moment(), | ||
month = date.format('MM'), | ||
@@ -28,4 +26,3 @@ year = date.format('YYYY'); | ||
generateUnique(dir, name, ext, i) { | ||
var self = this, | ||
filename, | ||
let filename, | ||
append = ''; | ||
@@ -43,6 +40,6 @@ | ||
return this.exists(filename, dir).then(function (exists) { | ||
return this.exists(filename, dir).then((exists) => { | ||
if (exists) { | ||
i = i + 1; | ||
return self.generateUnique(dir, name, ext, i); | ||
return this.generateUnique(dir, name, ext, i); | ||
} else { | ||
@@ -49,0 +46,0 @@ return path.join(dir, filename); |
{ | ||
"name": "ghost-storage-base", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Base storage adapter.", | ||
@@ -25,2 +25,5 @@ "author": "Ghost Foundation", | ||
}, | ||
"engine": { | ||
"node": ">=6" | ||
}, | ||
"devDependencies": { | ||
@@ -27,0 +30,0 @@ "bluebird": "3.5.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5916
5
57