@mapbox/node-pre-gyp
Advanced tools
Comparing version 1.0.0-alpha5 to 1.0.0-alpha6
@@ -227,13 +227,11 @@ 'use strict'; | ||
mkdirp(to, (err) => { | ||
if (err) { | ||
after_place(err); | ||
mkdirp(to).then(() => { | ||
const fileName = from.startsWith('file://') && from.slice('file://'.length); | ||
if (fileName) { | ||
extract_from_local(fileName, to, after_place); | ||
} else { | ||
const fileName = from.startsWith('file://') && from.slice('file://'.length); | ||
if (fileName) { | ||
extract_from_local(fileName, to, after_place); | ||
} else { | ||
place_binary(from, to, opts, after_place); | ||
} | ||
place_binary(from, to, opts, after_place); | ||
} | ||
}).catch((err) => { | ||
after_place(err); | ||
}); | ||
@@ -240,0 +238,0 @@ |
@@ -52,4 +52,3 @@ 'use strict'; | ||
}; | ||
mkdirp(path.dirname(tarball), (err) => { | ||
if (err) return callback(err); | ||
mkdirp(path.dirname(tarball)).then(() => { | ||
let files = readdirSync(from); | ||
@@ -71,4 +70,6 @@ const base = path.basename(from); | ||
}); | ||
}).catch((err) => { | ||
return callback(err); | ||
}); | ||
}); | ||
} |
@@ -31,13 +31,11 @@ 'use strict'; | ||
mkdirp(to, (err) => { | ||
if (err) { | ||
return callback(err); | ||
} else { | ||
tar.extract({ | ||
file: tarball, | ||
cwd: to, | ||
strip: 1, | ||
onentry: filter_func | ||
}).then(after_extract, callback); | ||
} | ||
mkdirp(to).then(() => { | ||
tar.extract({ | ||
file: tarball, | ||
cwd: to, | ||
strip: 1, | ||
onentry: filter_func | ||
}).then(after_extract, callback); | ||
}).catch((err) => { | ||
return callback(err); | ||
}); | ||
@@ -44,0 +42,0 @@ |
{ | ||
"name": "@mapbox/node-pre-gyp", | ||
"description": "Node.js native addon binary install tool", | ||
"version": "1.0.0-alpha5", | ||
"version": "1.0.0-alpha6", | ||
"keywords": [ | ||
@@ -25,3 +25,3 @@ "native", | ||
"http-proxy-agent": "^4.0.1", | ||
"mkdirp": "^0.5.5", | ||
"mkdirp": "^1.0.4", | ||
"node-fetch": "^2.6.1", | ||
@@ -38,3 +38,3 @@ "nopt": "^5.0.0", | ||
"action-walk": "^2.2.0", | ||
"aws-sdk": "^2.829.0", | ||
"aws-sdk": "^2.840.0", | ||
"codecov": "^3.8.1", | ||
@@ -41,0 +41,0 @@ "eslint": "^7.18.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
159360
4279
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
Updatedmkdirp@^1.0.4