quick-format-unescaped
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -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%%'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
11361
218