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

build-dir

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

build-dir - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

25

index.js

@@ -69,13 +69,18 @@ 'use strict';

finalize : () => {
return (new Promise((resolve) => {
const newPath = makeBuildPath(data);
fs.rename(tempPath, newPath, (err) => {
if (err) {
throw err;
}
resolve();
const newPath = makeBuildPath(data);
return fsAtomic.mkdir(path.dirname(newPath))
.then(() => {
return new Promise((resolve) => {
fs.rename(tempPath, newPath, (err) => {
if (err) {
throw err;
}
resolve();
});
});
})
.then(() => {
return link(data);
});
})).then(() => {
return link(data);
});
}

@@ -82,0 +87,0 @@ });

4

package.json
{
"name": "build-dir",
"version": "0.2.0",
"version": "0.3.0",
"description": "Get a place to put your build.",

@@ -28,3 +28,3 @@ "homepage": "https://github.com/sholladay/build-dir",

"branch-name": "0.1.3",
"fs-atomic": "0.1.0",
"fs-atomic": "0.2.0",
"read-pkg-up": "1.0.1"

@@ -31,0 +31,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