cbor-extract 2.1.0 → 2.1.1
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 +7 -7
- package/src/extract.cpp +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cbor-extract",
|
|
3
3
|
"author": "Kris Zyp",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.1",
|
|
5
5
|
"description": "Node addon for string extraction for cbor-x",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"prebuildify-ci": "^1.0.5"
|
|
39
39
|
},
|
|
40
40
|
"optionalDependencies": {
|
|
41
|
-
"@cbor-extract/cbor-extract-darwin-arm64": "2.1.
|
|
42
|
-
"@cbor-extract/cbor-extract-darwin-x64": "2.1.
|
|
43
|
-
"@cbor-extract/cbor-extract-linux-arm": "2.1.
|
|
44
|
-
"@cbor-extract/cbor-extract-linux-arm64": "2.1.
|
|
45
|
-
"@cbor-extract/cbor-extract-linux-x64": "2.1.
|
|
46
|
-
"@cbor-extract/cbor-extract-win32-x64": "2.1.
|
|
41
|
+
"@cbor-extract/cbor-extract-darwin-arm64": "2.1.1",
|
|
42
|
+
"@cbor-extract/cbor-extract-darwin-x64": "2.1.1",
|
|
43
|
+
"@cbor-extract/cbor-extract-linux-arm": "2.1.1",
|
|
44
|
+
"@cbor-extract/cbor-extract-linux-arm64": "2.1.1",
|
|
45
|
+
"@cbor-extract/cbor-extract-linux-x64": "2.1.1",
|
|
46
|
+
"@cbor-extract/cbor-extract-win32-x64": "2.1.1"
|
|
47
47
|
}
|
|
48
48
|
}
|
package/src/extract.cpp
CHANGED
|
@@ -186,7 +186,7 @@ napi_value extractStrings(napi_env env, napi_callback_info info) {
|
|
|
186
186
|
napi_get_value_uint32(env, args[2], &firstStringSize);
|
|
187
187
|
uint8_t* source;
|
|
188
188
|
size_t buffer_size;
|
|
189
|
-
napi_get_buffer_info(env, args[
|
|
189
|
+
napi_get_buffer_info(env, args[3], (void**) &source, &buffer_size);
|
|
190
190
|
return extractor->extractStrings(env, position, size, firstStringSize, source);
|
|
191
191
|
}
|
|
192
192
|
#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); }
|