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

@tramvai/safe-strings

Package Overview
Dependencies
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tramvai/safe-strings - npm Package Compare versions

Comparing version 0.5.5 to 0.5.6

4

lib/utils.es.js

@@ -55,2 +55,6 @@ import reduce from '@tinkoff/utils/array/reduce';

const safeParseJSON = (str, defaultValue = null) => {
// old version of node has memory leak if use json.parse with undefined value https://github.com/nodejs/node/issues/33266#issuecomment-638532113
if (str === undefined) {
return defaultValue;
}
try {

@@ -57,0 +61,0 @@ return JSON.parse(str);

@@ -63,2 +63,6 @@ 'use strict';

const safeParseJSON = (str, defaultValue = null) => {
// old version of node has memory leak if use json.parse with undefined value https://github.com/nodejs/node/issues/33266#issuecomment-638532113
if (str === undefined) {
return defaultValue;
}
try {

@@ -65,0 +69,0 @@ return JSON.parse(str);

2

package.json
{
"name": "@tramvai/safe-strings",
"version": "0.5.5",
"version": "0.5.6",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/utils.js",

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