Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
delete rc.path
}
if (napi.isNapiRuntime(rc.runtime) && rc.target === process.versions.node) {
if (rc.all === true) {
rc.target = napi.getNapiBuildVersions()
} else {
rc.target = napi.getBestNapiBuildVersion()
}
}
if (rc.target) {
var arr = [].concat(rc.target)
rc.prebuild = []
for (var k = 0, len = arr.length; k < len; k++) {
if (!napi.isNapiRuntime(rc.runtime) || napi.isSupportedVersion(arr[k])) {
rc.prebuild.push({
runtime: rc.runtime,
target: arr[k]
})
}
}
}
if (rc.all === true && !napi.isNapiRuntime(rc.runtime)) {
delete rc.prebuild
rc.prebuild = targets
}
if (rc['upload-all']) {
rc.upload = rc['upload-all']
}