Socket
Socket
Sign inDemoInstall

json-buffer

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-buffer - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

6

index.js

@@ -1,2 +0,2 @@

var Buffer = require('buffer').Buffer
var bops = require('bops')

@@ -8,3 +8,3 @@ //TODO: handle reviver/dehydrate function like normal

exports.stringify = function stringify (o) {
if(o && Buffer.isBuffer(o))
if(o && bops.is(o))
return JSON.stringify(':base64:' + o.toString('base64'))

@@ -43,3 +43,3 @@

if(/^:base64:/.test(value))
return new Buffer(value.substring(8), 'base64')
return bops.from(value.substring(8), 'base64')
else

@@ -46,0 +46,0 @@ return /^:/.test(value) ? value.substring(1) : value

{
"name": "json-buffer",
"description": "",
"version": "2.0.2",
"version": "2.0.3",
"homepage": "https://github.com/dominictarr/json-buffer",

@@ -10,3 +10,5 @@ "repository": {

},
"dependencies": {},
"dependencies": {
"bops": "0.0.6"
},
"devDependencies": {

@@ -13,0 +15,0 @@ "tape": "~1.0.2"

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