msgpack5 5.3.2 → 6.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/.github/workflows/ci.yml +1 -1
- package/dist/msgpack5.js +314 -386
- package/dist/msgpack5.min.js +1 -1
- package/lib/decoder.js +2 -3
- package/package.json +2 -2
package/lib/decoder.js
CHANGED
|
@@ -42,9 +42,8 @@ module.exports = function buildDecode (decodingTypes, options) {
|
|
|
42
42
|
return decode
|
|
43
43
|
|
|
44
44
|
function decode (buf) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
buf = bl().append(buf)
|
|
45
|
+
if (!bl.isBufferList(buf)) {
|
|
46
|
+
buf = bl(buf)
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
const result = tryDecode(buf, 0, context)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "msgpack5",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "A msgpack v5 implementation for node.js and the browser, with extension points",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
]
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"bl": "^
|
|
47
|
+
"bl": "^5.0.0",
|
|
48
48
|
"inherits": "^2.0.3",
|
|
49
49
|
"readable-stream": "^3.0.0",
|
|
50
50
|
"safe-buffer": "^5.1.2"
|