Comparing version 1.0.1 to 1.0.2
@@ -24,4 +24,3 @@ /* ! | ||
import inspectError from './lib/error' | ||
import inspectHTMLElement from './lib/html' | ||
import inspectHTMLCollection from './lib/htmlcollection' | ||
import inspectHTMLElement, { inspectHTMLCollection } from './lib/html' | ||
@@ -120,3 +119,3 @@ import { normaliseOptions } from './lib/helpers' | ||
// eslint-disable-next-line complexity | ||
export default function inspect(value, options) { | ||
export function inspect(value, options) { | ||
options = normaliseOptions(options) | ||
@@ -176,1 +175,3 @@ options.inspect = inspect | ||
export const custom = chaiInspect | ||
export default inspect |
import { truncator, inspectList } from './helpers' | ||
import inspectHTMLCollection from './htmlcollection' | ||
@@ -12,2 +11,7 @@ export function inspectAttribute([key, value], options) { | ||
export function inspectHTMLCollection(collection, options) { | ||
// eslint-disable-next-line no-use-before-define | ||
return inspectList(collection, options, inspectHTML, '\n') | ||
} | ||
export default function inspectHTML(element, options) { | ||
@@ -14,0 +18,0 @@ const properties = element.getAttributeNames() |
@@ -985,6 +985,2 @@ (function (global, factory) { | ||
function inspectHTMLCollection(collection, options) { | ||
return inspectList(collection, options, inspectHTML, '\n'); | ||
} | ||
function inspectAttribute(_ref, options) { | ||
@@ -1003,2 +999,6 @@ var _ref2 = _slicedToArray(_ref, 2), | ||
} | ||
function inspectHTMLCollection(collection, options) { | ||
// eslint-disable-next-line no-use-before-define | ||
return inspectList(collection, options, inspectHTML, '\n'); | ||
} | ||
function inspectHTML(element, options) { | ||
@@ -1190,2 +1190,3 @@ var properties = element.getAttributeNames(); | ||
exports.default = inspect; | ||
exports.inspect = inspect; | ||
exports.registerConstructor = registerConstructor; | ||
@@ -1192,0 +1193,0 @@ exports.registerStringTag = registerStringTag; |
{ | ||
"name": "loupe", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Inspect utility for Node.js and browsers", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/chaijs/loupe", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
68762
23