ref-napi
Advanced tools
Comparing version 1.5.2 to 2.0.0
@@ -522,3 +522,3 @@ 'use strict'; | ||
} | ||
const buffer = new Buffer(size); | ||
const buffer = Buffer.alloc(size); | ||
buffer.type = type; | ||
@@ -554,3 +554,3 @@ if (arguments.length >= 2) { | ||
const size = Buffer.byteLength(string, encoding) + 1; | ||
const buffer = new Buffer(size); | ||
const buffer = Buffer.allocUnsafe(size); | ||
exports.writeCString(buffer, 0, string, encoding); | ||
@@ -557,0 +557,0 @@ buffer.type = charPtrType; |
@@ -24,3 +24,3 @@ { | ||
], | ||
"version": "1.5.2", | ||
"version": "2.0.0", | ||
"license": "MIT", | ||
@@ -35,3 +35,3 @@ "author": "Anna Henningsen <anna@addaleax.net>", | ||
"docs": "node docs/compile", | ||
"test": "nyc mocha -gc", | ||
"test": "nyc mocha --expose-gc", | ||
"install": "node-gyp-build", | ||
@@ -42,3 +42,4 @@ "prebuild": "prebuildify --napi", | ||
"dependencies": { | ||
"debug": "^3.1.0", | ||
"debug": "^4.1.1", | ||
"get-symbol-from-current-process-h": "^1.0.2", | ||
"node-addon-api": "^2.0.0", | ||
@@ -49,11 +50,11 @@ "node-gyp-build": "^4.2.1" | ||
"dox": "0.9.0", | ||
"highlight.js": "^9.12.0", | ||
"highlight.js": "^10.0.0", | ||
"jade": "^1.11.0", | ||
"marked": "^0.7.0", | ||
"mocha": "^5.0.0", | ||
"marked": "^1.0.0", | ||
"mocha": "^7.1.1", | ||
"nyc": "^15.0.0", | ||
"prebuildify": "^3.0.4", | ||
"prebuildify-ci": "^1.0.5", | ||
"weak-napi": "1" | ||
"weak-napi": "^2.0.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
2220392
50
3287
4
+ Addeddebug@4.3.5(transitive)
+ Addedget-symbol-from-current-process-h@1.0.2(transitive)
+ Addedms@2.1.2(transitive)
- Removeddebug@3.2.7(transitive)
- Removedms@2.1.3(transitive)
Updateddebug@^4.1.1