winapi
Advanced tools
Comparing version 2.8.1 to 2.9.1
12
index.js
@@ -7,13 +7,11 @@ 'use strict'; | ||
var winapi; | ||
var winapiCS = path.join(__dirname, 'WinAPI.exe'); | ||
var winapi; | ||
var engine = process.versions.nw ? "nwjs" : "node"; | ||
var module_path = sprintf('./winapi_%s_%s_%s_%s.node', process.platform, process.versions.modules, process.arch, engine) ; | ||
try { | ||
winapi = require(module_path); | ||
winapi = require('node-gyp-build')(__dirname); | ||
} catch(e) { | ||
throw Error(sprintf("Compilation of winapi has failed and there is no pre-compiled binary available for your system. Please install a supported C++11 compiler and reinstall the module 'winapi' (missing %s)", module_path) ); | ||
console.log(e); | ||
throw Error(sprintf("Compilation of winapi has failed and there is no pre-compiled binary available for your system. Please install a supported C++11 compiler and reinstall the module 'winapi' (missing %s)") ); | ||
} | ||
@@ -20,0 +18,0 @@ |
{ | ||
"name": "winapi", | ||
"version": "2.8.1", | ||
"version": "2.9.1", | ||
"description": "Misc windows API wrappers", | ||
"main": "index.js", | ||
"dependencies": { | ||
"nan": "^2.2.0" | ||
"nan": "^2.2.0", | ||
"node-gyp-build": "^4.4.0" | ||
}, | ||
@@ -12,6 +13,3 @@ "scripts": { | ||
"test": "node node_modules/mocha/bin/mocha test", | ||
"install": "node-gyp rebuild > build_log.txt 2>&1 || exit 0", | ||
"buildnw26": "set npm_config_arch=ia32&& set npm_config_runtime=nwjs&& set npm_config_modules=57&& nw-gyp rebuild --target=0.26.0 --arch=ia32 --verbose", | ||
"buildnw266": "set npm_config_arch=ia32&& set npm_config_runtime=nwjs&& set npm_config_modules=59&& nw-gyp rebuild --target=0.26.6 --arch=ia32 --verbose", | ||
"buildnw14": "set npm_config_arch=ia32&& set npm_config_runtime=nwjs&& set npm_config_modules=47&& nw-gyp rebuild --target=0.14.6 --arch=ia32 --verbose" | ||
"install": "node-gyp-build" | ||
}, | ||
@@ -18,0 +16,0 @@ "os": [ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ "use strict"; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
0
540490
2
17
52
4
+ Addednode-gyp-build@^4.4.0
+ Addednode-gyp-build@4.8.1(transitive)