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

edge

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edge - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1

lib/native/win32/ia32/0.12.0/.npmignore

2

package.json

@@ -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

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