Comparing version 0.10.0 to 0.10.1
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "Edge.js: run .NET and Node.js in-process on Windows, Mac OS, and Linux", | ||
@@ -11,0 +11,0 @@ "tags": [ |
@@ -6,11 +6,8 @@ var fs = require('fs') | ||
var libroot = path.resolve(__dirname, '../lib/native/win32') | ||
, dllname = 'msvcr120.dll' | ||
, lib32bit = path.resolve(libroot, 'ia32') | ||
, dll32bit = path.resolve(lib32bit, dllname) | ||
, lib64bit = path.resolve(libroot, 'x64') | ||
, dll64bit = path.resolve(lib64bit, dllname) | ||
, lib64bit = path.resolve(libroot, 'x64'); | ||
function copyDll(dllPath) { | ||
function copyDll(dllPath, dllname) { | ||
return function(copyToDir) { | ||
fs.writeFileSync(path.resolve(copyToDir, dllname), fs.readFileSync(dllPath)) | ||
fs.writeFileSync(path.resolve(copyToDir, dllname), fs.readFileSync(dllPath)); | ||
} | ||
@@ -20,3 +17,3 @@ } | ||
function isDirectory(info) { | ||
return info.isDirectory | ||
return info.isDirectory; | ||
} | ||
@@ -28,4 +25,4 @@ | ||
return { | ||
path: filepath | ||
, isDirectory: fs.statSync(filepath).isDirectory() | ||
path: filepath, | ||
isDirectory: fs.statSync(filepath).isDirectory() | ||
} | ||
@@ -36,19 +33,26 @@ } | ||
function getPath(info) { | ||
return info.path | ||
return info.path; | ||
} | ||
fs.readdirSync(lib32bit) | ||
var dest32dirs = fs.readdirSync(lib32bit) | ||
.map(getInfo(lib32bit)) | ||
.filter(isDirectory) | ||
.map(getPath) | ||
.forEach(copyDll(dll32bit)) | ||
.map(getPath); | ||
fs.readdirSync(lib64bit) | ||
['msvcr120.dll', 'msvcp120.dll'].forEach(function (dllname) { | ||
var dll32bit = path.resolve(lib32bit, dllname); | ||
dest32dirs.forEach(copyDll(dll32bit, dllname)); | ||
}); | ||
var dest64dirs = fs.readdirSync(lib64bit) | ||
.map(getInfo(lib64bit)) | ||
.filter(isDirectory) | ||
.map(getPath) | ||
.forEach(copyDll(dll64bit)) | ||
.map(getPath); | ||
['msvcr120.dll', 'msvcp120.dll'].forEach(function (dllname) { | ||
var dll64bit = path.resolve(lib64bit, dllname); | ||
dest64dirs.forEach(copyDll(dll64bit, dllname)); | ||
}); | ||
require('./checkplatform') | ||
require('./checkplatform'); | ||
} else { | ||
@@ -55,0 +59,0 @@ require('child_process') |
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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances 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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances in 1 package
165
2882
43497764