New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@c8/simple-promised-file

Package Overview
Dependencies
Maintainers
5
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@c8/simple-promised-file - npm Package Compare versions

Comparing version 0.0.20 to 0.0.21

examples/3.jpg

16

lib/abstract-file.js

@@ -5,3 +5,2 @@ 'use strict'

const mime = require('mime')
const createError = require('create-error')
const path = require('path')

@@ -52,19 +51,4 @@

}
/**
* @returns {ReadError} Cannot read a file in this.path
*/
static get ReadError () {
return createError('ReadError')
}
/**
* @returns {TypeError} Invalid file type
*/
static get TypeError () {
return createError('TypeError')
}
}
module.exports = AbstractFile

2

lib/file.js

@@ -9,3 +9,3 @@ 'use strict'

const path = require('path')
const Errors = require('./errors')
const Errors = require('@c8/errors')

@@ -12,0 +12,0 @@ /**

@@ -11,2 +11,3 @@ 'use strict'

const fsUnlink = fs.unlink
const fsEnsureDir = fs.ensureDir

@@ -51,2 +52,11 @@ // @todo: factory for there methods

fs.ensureDir = (path) => {
return new Bluebird((resolve, reject) => {
fsEnsureDir(path, (err) => {
if (err) return reject(err)
resolve()
})
})
}
module.exports = fs

@@ -6,3 +6,3 @@ 'use strict'

const _ = require('lodash')
const Errors = require('./errors')
const Errors = require('@c8/errors')

@@ -9,0 +9,0 @@ // A list of async gm getters

{
"name": "@c8/simple-promised-file",
"version": "0.0.20",
"version": "0.0.21",
"description": "A small promise library with basic file functionality and promise-wrapped gm image module.",

@@ -28,2 +28,3 @@ "main": "index.js",

"dependencies": {
"@c8/errors": "0.0.1",
"bluebird": "^3.4.0",

@@ -30,0 +31,0 @@ "create-error": "^0.3.1",

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