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

quick-format-unescaped

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

quick-format-unescaped - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

6

index.js

@@ -56,4 +56,3 @@ var safeStringify = require('fast-safe-stringify')

}
x = JSON.stringify(ss(args[a]))
str += x.substr(1, x.length - 2)
str += ss(args[a])
lastPos = i = i + 2

@@ -66,4 +65,3 @@ break

str += f.slice(lastPos, i)
x = JSON.stringify(String(args[a]))
str += x.substr(1, x.length - 2)
str += String(args[a])
lastPos = i = i + 2

@@ -70,0 +68,0 @@ break

{
"name": "quick-format-unescaped",
"version": "1.1.1",
"version": "1.1.2",
"description": "Solves a problem with util.format",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -52,2 +52,4 @@ 'use strict';

// assert.equal(format(['%s', 'foo']), 'foo');
assert.equal(format(['%s', '\"quoted\"']), '\"quoted\"');
assert.equal(format(['%j', { s: '\"quoted\"' }]), '{\"s\":\"\\"quoted\\"\"}');
// assert.equal(format(['%s:%s']), '%s:%s');

@@ -54,0 +56,0 @@ // assert.equal(format(['%s:%s', undefined]), 'undefined:%s');

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