🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
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

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');