msgpackr-extract 3.0.1 → 3.0.2
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": "msgpackr-extract",
|
|
3
3
|
"author": "Kris Zyp",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.2",
|
|
5
5
|
"description": "Node addon for string extraction for msgpackr",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -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": "3.0.
|
|
38
|
-
"@msgpackr-extract/msgpackr-extract-darwin-x64": "3.0.
|
|
39
|
-
"@msgpackr-extract/msgpackr-extract-linux-arm": "3.0.
|
|
40
|
-
"@msgpackr-extract/msgpackr-extract-linux-arm64": "3.0.
|
|
41
|
-
"@msgpackr-extract/msgpackr-extract-linux-x64": "3.0.
|
|
42
|
-
"@msgpackr-extract/msgpackr-extract-win32-x64": "3.0.
|
|
37
|
+
"@msgpackr-extract/msgpackr-extract-darwin-arm64": "3.0.2",
|
|
38
|
+
"@msgpackr-extract/msgpackr-extract-darwin-x64": "3.0.2",
|
|
39
|
+
"@msgpackr-extract/msgpackr-extract-linux-arm": "3.0.2",
|
|
40
|
+
"@msgpackr-extract/msgpackr-extract-linux-arm64": "3.0.2",
|
|
41
|
+
"@msgpackr-extract/msgpackr-extract-linux-x64": "3.0.2",
|
|
42
|
+
"@msgpackr-extract/msgpackr-extract-win32-x64": "3.0.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"prebuildify-platform-packages": "5.0.2",
|
package/src/extract.cpp
CHANGED
|
@@ -23,7 +23,7 @@ find the string tokens and determine their position and length. All strings are
|
|
|
23
23
|
#endif
|
|
24
24
|
|
|
25
25
|
const int MAX_TARGET_SIZE = 255;
|
|
26
|
-
const
|
|
26
|
+
const uint32_t UNEXPECTED_END = 0xffffffff;
|
|
27
27
|
typedef uint32_t (*token_handler)(uint8_t* source, uint32_t position, uint32_t size);
|
|
28
28
|
token_handler tokenTable[256] = {};
|
|
29
29
|
napi_value unexpectedEnd(napi_env env) {
|