@thi.ng/bencode 2.1.121 → 2.1.122
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/CHANGELOG.md +1 -1
- package/decode.js +1 -2
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
package/decode.js
CHANGED
|
@@ -99,8 +99,7 @@ const ensureNotKey = (stack, type) => {
|
|
|
99
99
|
};
|
|
100
100
|
const collect = (stack, x, utf8 = false) => {
|
|
101
101
|
const parent = peek(stack);
|
|
102
|
-
if (!parent)
|
|
103
|
-
return x;
|
|
102
|
+
if (!parent) return x;
|
|
104
103
|
if (parent.type === 5 /* LIST */) {
|
|
105
104
|
parent.val.push(utf8 && isArray(x) ? utf8Decode(x) : x);
|
|
106
105
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/bencode",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.122",
|
|
4
4
|
"description": "Bencode binary encoder / decoder with optional UTF8 encoding & floating point support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,18 +36,18 @@
|
|
|
36
36
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@thi.ng/arrays": "^2.9.
|
|
40
|
-
"@thi.ng/checks": "^3.6.
|
|
41
|
-
"@thi.ng/defmulti": "^3.0.
|
|
42
|
-
"@thi.ng/errors": "^2.5.
|
|
43
|
-
"@thi.ng/transducers": "^9.0.
|
|
44
|
-
"@thi.ng/transducers-binary": "^2.1.
|
|
39
|
+
"@thi.ng/arrays": "^2.9.6",
|
|
40
|
+
"@thi.ng/checks": "^3.6.4",
|
|
41
|
+
"@thi.ng/defmulti": "^3.0.39",
|
|
42
|
+
"@thi.ng/errors": "^2.5.7",
|
|
43
|
+
"@thi.ng/transducers": "^9.0.5",
|
|
44
|
+
"@thi.ng/transducers-binary": "^2.1.120"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@microsoft/api-extractor": "^7.43.
|
|
48
|
-
"esbuild": "^0.
|
|
49
|
-
"typedoc": "^0.25.
|
|
50
|
-
"typescript": "^5.4.
|
|
47
|
+
"@microsoft/api-extractor": "^7.43.2",
|
|
48
|
+
"esbuild": "^0.21.1",
|
|
49
|
+
"typedoc": "^0.25.13",
|
|
50
|
+
"typescript": "^5.4.5"
|
|
51
51
|
},
|
|
52
52
|
"keywords": [
|
|
53
53
|
"array",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"thi.ng": {
|
|
83
83
|
"alias": "bc"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "df34b4a9e650cc7323575356de207d78933bdcf3\n"
|
|
86
86
|
}
|