Comparing version 9.0.7 to 9.0.8
@@ -7,5 +7,3 @@ export const isPlainObject = obj => { | ||
if (typeof str !== 'string' || str.length === 0) { | ||
let errMessage = `invalid ${label}`; | ||
if (str != null) | ||
errMessage += ` ${str} (${typeof str})`; | ||
const errMessage = `invalid ${label}: ${str} (expected string, got (${typeof str}))`; | ||
throw new TypeError(errMessage); | ||
@@ -12,0 +10,0 @@ } |
@@ -11,4 +11,3 @@ import type { IdentifiedDocument } from 'types/nano.js' | ||
if (typeof str !== 'string' || str.length === 0) { | ||
let errMessage = `invalid ${label}` | ||
if (str != null) errMessage += ` ${str} (${typeof str})` | ||
const errMessage = `invalid ${label}: ${str} (expected string, got (${typeof str}))` | ||
throw new TypeError(errMessage) | ||
@@ -15,0 +14,0 @@ } |
@@ -30,3 +30,3 @@ { | ||
], | ||
"version": "9.0.7", | ||
"version": "9.0.8", | ||
"main": "dist/lib/cot.js", | ||
@@ -33,0 +33,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
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
262785
4073