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

@testing-library/dom

Package Overview
Dependencies
Maintainers
0
Versions
228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testing-library/dom - npm Package Compare versions

Comparing version 10.3.0 to 10.3.1

24

dist/pretty-dom.js

@@ -19,16 +19,16 @@ "use strict";

const shouldHighlight = () => {
// Try to safely parse env COLORS: We will default behavior if any step fails.
let colors;
try {
const colors = process?.env?.COLORS;
if (colors) {
const b = JSON.parse(colors);
if (typeof b === 'boolean') return b;
}
} catch {
// Ignore (non-critical) - Make a defaulting choice below.
colors = JSON.parse(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.
}
// In all other cases, whether COLORS was a weird type, or the attempt threw:
// Fall back to colorizing if we are running in node.
return !!process?.versions?.node;
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;
}
};

@@ -35,0 +35,0 @@ const {

{
"name": "@testing-library/dom",
"version": "10.3.0",
"version": "10.3.1",
"description": "Simple and complete DOM testing utilities that encourage good testing practices.",

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

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

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