Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ghost-storage-base

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghost-storage-base - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

yarn-error.log

13

BaseStorage.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc