Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

loupe

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loupe - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

7

index.js

@@ -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",

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