Socket
Socket
Sign inDemoInstall

json-buffer

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.10 to 2.0.11

2

package.json
{
"name": "json-buffer",
"description": "JSON parse & stringify that supports binary via bops & base64",
"version": "2.0.10",
"version": "2.0.11",
"homepage": "https://github.com/dominictarr/json-buffer",

@@ -6,0 +6,0 @@ "repository": {

var test = require('tape')
var _JSON = require('../')
var bops = require('bops')

@@ -11,4 +10,4 @@ function clone (o) {

var examples = {
simple: { foo: [], bar: {}, baz: bops.from('some binary data') },
just_buffer: bops.from('JUST A BUFFER'),
simple: { foo: [], bar: {}, baz: new Buffer('some binary data') },
just_buffer: new Buffer('JUST A BUFFER'),
all_types: {

@@ -26,8 +25,8 @@ string:'hello',

escape: {
buffer: bops.from('x'),
string: _JSON.stringify(bops.from('x'))
buffer: new Buffer('x'),
string: _JSON.stringify(new Buffer('x'))
},
escape2: {
buffer: new Buffer('x'),
string: ':base64:'+ bops.to(bops.from('x'), 'base64')
string: ':base64:'+ new Buffer('x').toString('base64')
},

@@ -34,0 +33,0 @@ undefined: {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc