Comparing version 22.7.0 to 22.9.0
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "22.7.0", | ||
"version": "22.9.0", | ||
"description": "Edge.js: run .NET and Node.js in-process on Windows, Mac OS, and Linux", | ||
@@ -44,6 +44,6 @@ "tags": [ | ||
"edge-cs": "npm:@agracio/edge-cs@^1.3.7", | ||
"nan": "^2.20.0" | ||
"nan": "^2.22.0" | ||
}, | ||
"devDependencies": { | ||
"follow-redirects": "^1.15.6", | ||
"follow-redirects": "^1.15.9", | ||
"junit-report-merger": "7.0.0", | ||
@@ -50,0 +50,0 @@ "mocha": "10.7.3", |
@@ -9,3 +9,4 @@ var fs = require('fs') | ||
, lib32bit = path.resolve(libroot, 'ia32') | ||
, lib64bit = path.resolve(libroot, 'x64'); | ||
, lib64bit = path.resolve(libroot, 'x64') | ||
, libarm64 = path.resolve(libroot, 'arm64'); | ||
@@ -15,3 +16,3 @@ function copyFile(filePath, filename) { | ||
//console.log( 'copy '+filename+' from '+filePath+' to '+ copyToDir ); | ||
var outFile = path.resolve(copyToDir, filename); | ||
outFile = path.resolve(copyToDir, filename); | ||
if ( fs.existsSync( outFile ) ) { | ||
@@ -44,6 +45,8 @@ // clear readonly: add write permission to ogw (222 octal -> 92 hex -> 146 decimal) | ||
var dest32dirs = fs.readdirSync(lib32bit) | ||
.map(getInfo(lib32bit)) | ||
function getDestDirs(basedir){ | ||
return fs.readdirSync(basedir) | ||
.map(getInfo(basedir)) | ||
.filter(isDirectory) | ||
.map(getPath); | ||
} | ||
@@ -57,17 +60,17 @@ var redist = [ | ||
redist.forEach(function (dllname) { | ||
var dll32bit = path.resolve(lib32bit, dllname); | ||
dest32dirs.forEach(copyFile(dll32bit, dllname)); | ||
}); | ||
var dest64dirs = fs.readdirSync(lib64bit) | ||
.map(getInfo(lib64bit)) | ||
.filter(isDirectory) | ||
.map(getPath); | ||
var dest32dirs = getDestDirs(lib32bit); | ||
var dest64dirs = getDestDirs(lib64bit); | ||
var destarmdirs = getDestDirs(libarm64); | ||
redist.forEach(function (dllname) { | ||
var dll64bit = path.resolve(lib64bit, dllname); | ||
dest64dirs.forEach(copyFile(dll64bit, dllname)); | ||
}); | ||
function copyRedist(lib, destDirs){ | ||
redist.forEach(function (dllname) { | ||
var dll = path.resolve(lib, dllname); | ||
destDirs.forEach(copyFile(dll, dllname)); | ||
}); | ||
} | ||
copyRedist(lib32bit, dest32dirs); | ||
copyRedist(lib64bit, dest64dirs); | ||
copyRedist(libarm64, destarmdirs); | ||
var dotnetPath = whereis('dotnet', 'dotnet.exe'); | ||
@@ -74,0 +77,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
8822288
389
2038
20
Updatednan@^2.22.0