Comparing version 1.0.0 to 1.0.1
@@ -49,2 +49,3 @@ 'use strict' | ||
var token | ||
var node | ||
@@ -59,4 +60,6 @@ // eslint-disable-next-line | ||
node = select(ptr, token) | ||
if (ptr.curr_depth <= ptr.depth) { | ||
list.push(select(ptr, token)) | ||
list.push(node) | ||
} | ||
@@ -63,0 +66,0 @@ } |
{ | ||
"name": "btparse", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A modern bencode parser focused on speed and perfomance", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -80,3 +80,4 @@ 'use strict' | ||
t.deepEqual(decode('d2:abi2e2:bbd2:ccleee', {depth: 0}), {ab: 2, bb: {cc: []}}) | ||
t.deepEqual(decode('d2:abi2e2:bbd2:ccleee', {depth: 1}), {ab: 2, bb: from('d2:cclee')}) | ||
t.deepEqual(decode('d2:abi2e2:bbd2:ccleee', { depth: 1 }), { ab: 2, bb: from('d2:cclee') }) | ||
t.deepEqual(decode('d4:infod5:filesld6:lengthi1eeeee', { depth: 1 }), { info: from('d5:filesld6:lengthi1eeee')}) | ||
@@ -83,0 +84,0 @@ t.end() |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
50300
724
0