Socket
Socket
Sign inDemoInstall

@testing-library/dom

Package Overview
Dependencies
22
Maintainers
13
Versions
223
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.17.1 to 8.18.0

1

dist/helpers.js

@@ -18,2 +18,3 @@ "use strict";

/* istanbul ignore else */
// eslint-disable-next-line
if (typeof jest !== 'undefined' && jest !== null) {

@@ -20,0 +21,0 @@ return (// legacy timers

@@ -28,4 +28,22 @@ "use strict";

const inNode = () => typeof process !== 'undefined' && process.versions !== undefined && process.versions.node !== undefined;
const shouldHighlight = () => {
let colors;
try {
var _process, _process$env;
colors = JSON.parse((_process = process) == null ? void 0 : (_process$env = _process.env) == null ? void 0 : _process$env.COLORS);
} catch (e) {// If this throws, process?.env?.COLORS wasn't parsable. Since we only
// care about `true` or `false`, we can safely ignore the error.
}
if (typeof colors === 'boolean') {
// If `colors` is set explicitly (both `true` and `false`), use that value.
return colors;
} else {
// If `colors` is not set, colorize if we're in node.
return typeof process !== 'undefined' && process.versions !== undefined && process.versions.node !== undefined;
}
};
const {

@@ -79,3 +97,3 @@ DOMCollection

printFunctionName: false,
highlight: inNode(),
highlight: shouldHighlight(),
...prettyFormatOptions

@@ -82,0 +100,0 @@ });

5

package.json
{
"name": "@testing-library/dom",
"version": "8.17.1",
"version": "8.18.0",
"description": "Simple and complete DOM testing utilities that encourage good testing practices.",

@@ -68,2 +68,5 @@ "main": "dist/index.js",

"rules": {
"@typescript-eslint/prefer-optional-chain": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/prefer-includes": "off",

@@ -70,0 +73,0 @@ "import/prefer-default-export": "off",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc