Socket
Socket
Sign inDemoInstall

serialize-to-js

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serialize-to-js - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

2

lib/serialize.js

@@ -84,3 +84,3 @@ /*

// looks like buffers are accidentially detected as typed arrays
out += "new Buffer('" + source.toString('base64') + "', 'base64')" // FIXME replace with Buffer.from
out += "Buffer.from('" + source.toString('base64') + "', 'base64')"
} else if ((type = util.isTypedArray(source))) {

@@ -87,0 +87,0 @@ tmp = []

{
"name": "serialize-to-js",
"version": "1.1.2",
"version": "1.2.0",
"description": "serialize objects to javascript",

@@ -45,3 +45,3 @@ "keywords": [

"dependencies": {
"js-beautify": "~1.7.5",
"js-beautify": "^1.7.5",
"safer-eval": "^1.2.3"

@@ -48,0 +48,0 @@ },

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