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 4.0.2 to 4.0.3

8

index.js

@@ -21,5 +21,7 @@ 'use strict'

}
var argLen = args ? args.length : 0
if (argLen === 0) return f === undefined ? '' : f
if (typeof f !== 'string') {
return f
}
var argLen = args.length
if (argLen === 0) return f
var str = ''

@@ -26,0 +28,0 @@ var a = 1 - offset

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

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

'use strict';
const assert = require('assert').strict;
const assert = require('assert');
const format = require('../');
const util = require('util');
// const symbol = Symbol('foo');
// assert.equal(format([]), '');

@@ -85,6 +82,2 @@ // assert.equal(format(['']), '');

assert.equal(format(null, [null, 'foo']), null);
assert.equal(format(null, [undefined, 'foo']), null);
assert.equal(format(), util.format());
assert.equal(format('foo %o', [{foo: 'foo'}]), 'foo {"foo":"foo"}')

@@ -106,3 +99,2 @@ assert.equal(format('foo %O', [{foo: 'foo'}]), 'foo {"foo":"foo"}')

// // assert.equal(format(['%%%s%%', 'hi']), '%hi%');

@@ -109,0 +101,0 @@ // // assert.equal(format(['%%%s%%%%', 'hi']), '%hi%%');

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