Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

btparse

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

btparse - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

5

lib/parser.js

@@ -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 @@ }

2

package.json
{
"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()

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc