msgpackr-extract 2.2.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/src/extract.cpp +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "msgpackr-extract",
|
|
3
3
|
"author": "Kris Zyp",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"description": "Node addon for string extraction for msgpackr",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"main": "./index.js",
|
|
23
23
|
"gypfile": true,
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"node-gyp-build-optional-packages": "5.0.
|
|
25
|
+
"node-gyp-build-optional-packages": "5.0.7"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"index.js",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"download-msgpackr-prebuilds": "./bin/download-prebuilds.js"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@msgpackr-extract/msgpackr-extract-darwin-arm64": "
|
|
38
|
-
"@msgpackr-extract/msgpackr-extract-darwin-x64": "
|
|
39
|
-
"@msgpackr-extract/msgpackr-extract-linux-arm": "
|
|
40
|
-
"@msgpackr-extract/msgpackr-extract-linux-arm64": "
|
|
41
|
-
"@msgpackr-extract/msgpackr-extract-linux-x64": "
|
|
42
|
-
"@msgpackr-extract/msgpackr-extract-win32-x64": "
|
|
37
|
+
"@msgpackr-extract/msgpackr-extract-darwin-arm64": "3.0.0",
|
|
38
|
+
"@msgpackr-extract/msgpackr-extract-darwin-x64": "3.0.0",
|
|
39
|
+
"@msgpackr-extract/msgpackr-extract-linux-arm": "3.0.0",
|
|
40
|
+
"@msgpackr-extract/msgpackr-extract-linux-arm64": "3.0.0",
|
|
41
|
+
"@msgpackr-extract/msgpackr-extract-linux-x64": "3.0.0",
|
|
42
|
+
"@msgpackr-extract/msgpackr-extract-win32-x64": "3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"prebuildify-platform-packages": "5.0.2",
|
package/src/extract.cpp
CHANGED
|
@@ -261,7 +261,7 @@ napi_value extractStrings(napi_env env, napi_callback_info info) {
|
|
|
261
261
|
napi_get_value_uint32(env, args[1], &size);
|
|
262
262
|
uint8_t* source;
|
|
263
263
|
size_t buffer_size;
|
|
264
|
-
|
|
264
|
+
napi_get_arraybuffer_info(env, args[2], (void**) &source, &buffer_size);
|
|
265
265
|
return extractor->extractStrings(env, position, size, source);
|
|
266
266
|
}
|
|
267
267
|
#define EXPORT_NAPI_FUNCTION(name, func) { napi_property_descriptor desc = { name, 0, func, 0, 0, 0, (napi_property_attributes) (napi_writable | napi_configurable), 0 }; napi_define_properties(env, exports, 1, &desc); }
|