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

@verdaccio/local-storage

Package Overview
Dependencies
Maintainers
1
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@verdaccio/local-storage - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

CHANGELOG.md

10

lib/local-fs.js

@@ -215,2 +215,5 @@ 'use strict';

var file = _fs2.default.createWriteStream(temporalName);
var removeTempFile = function removeTempFile() {
return _fs2.default.unlink(temporalName, function () {});
};
var opened = false;

@@ -238,2 +241,3 @@ uploadStream.pipe(file);

};
uploadStream.abort = function () {

@@ -243,7 +247,11 @@ if (opened) {

file.on('close', function () {
_fs2.default.unlink(temporalName, function () {});
removeTempFile();
});
} else {
// if the file does not recieve any byte never is opened and has to be removed anyway.
removeTempFile();
}
file.end();
};
file.on('open', function () {

@@ -250,0 +258,0 @@ opened = true;

19

package.json
{
"name": "@verdaccio/local-storage",
"version": "0.1.3",
"version": "0.1.4",
"description": "local storage implementation",
"main": "lib/index.js",
"scripts": {
"release": "standard-version -a -s",
"test": "npm run flow && npm run lint && jest",

@@ -41,19 +42,5 @@ "lint": "eslint .",

"jest": "21.2.1",
"nyc": "11.1.0",
"standard-version": "4.3.0",
"rmdir-sync": "1.0.1"
},
"nyc": {
"include": [
"src/**/*.js"
],
"all": true,
"cache": true,
"sourceMap": false,
"instrument": false,
"report-dir": "./tests-report",
"reporter": [
"text",
"html"
]
},
"publishConfig": {

@@ -60,0 +47,0 @@ "registry": "https://registry.npmjs.org/"

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