addon-tools-raub
Advanced tools
Comparing version 3.0.0 to 4.0.0
12
index.js
@@ -21,4 +21,12 @@ 'use strict'; | ||
case 'win32' : return process.arch === 'x64' ? 'win64' : 'win32'; | ||
case 'linux' : return process.arch === 'x64' ? 'linux64' : 'linux32'; | ||
case 'darwin' : return 'mac64'; | ||
case 'linux' : | ||
if (process.arch === 'x32') { | ||
throw new Error('Linux x32 not supported since 4.0.0.'); | ||
} | ||
return 'linux64'; | ||
case 'darwin' : | ||
if (process.arch === 'x32') { | ||
throw new Error('Mac x32 not supported.'); | ||
} | ||
return 'mac64'; | ||
default : throw new Error(`Platform "${platform}" is not supported.`); | ||
@@ -25,0 +33,0 @@ } |
{ | ||
"author": "Luis Blanco <luisblanco1337@gmail.com>", | ||
"name": "addon-tools-raub", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"description": "Helpers for Node.js addons and dependency packages", | ||
@@ -22,3 +22,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=8.11.2", | ||
"node": ">=8.11.4", | ||
"npm": ">=5.6.0" | ||
@@ -38,4 +38,4 @@ }, | ||
"dependencies": { | ||
"nan": "~2.10.0" | ||
"nan": "2.11.0" | ||
} | ||
} |
@@ -9,3 +9,5 @@ # Addon Tools | ||
> npm i -s addon-tools-raub | ||
## Synopsis | ||
@@ -19,3 +21,3 @@ | ||
* Crossplatform commands for GYP: `cp`, `rm`, `mkdir`. | ||
* Regarded platforms: win x32/x64, linux x32/x64, mac x64. | ||
* Regarded platforms: win x32/x64, linux x64, mac x64. | ||
@@ -141,3 +143,2 @@ Useful links: [V8 Ref](https://v8.paulfryzel.com/docs/master/), | ||
* bin-win64 | ||
* bin-linux32 | ||
* bin-linux64 | ||
@@ -521,3 +522,3 @@ * bin-mac64 | ||
NOTE: The conversion from `Nan::Utf8String` to `std::string` (via `char *`) | ||
> Note: The conversion from `Nan::Utf8String` to `std::string` (via `char *`) | ||
is possible with unary `*` operator. | ||
@@ -524,0 +525,0 @@ |
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
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
57631
63
802
+ Addednan@2.11.0(transitive)
- Removednan@2.10.0(transitive)
Updatednan@2.11.0