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

enzyme-matchers

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enzyme-matchers - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2-beta1

lib/utils/colors.js

24

lib/utils/stringify.js

@@ -13,5 +13,5 @@ 'use strict';

var _safe = require('colors/safe');
var _colors = require('./colors');
var _safe2 = _interopRequireDefault(_safe);
var _colors2 = _interopRequireDefault(_colors);

@@ -34,4 +34,4 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var joined = values.join(' ');
var initialBracket = _safe2.default.gray('[');
var endingBracket = _safe2.default.gray(']');
var initialBracket = _colors2.default.gray('[');
var endingBracket = _colors2.default.gray(']');

@@ -44,13 +44,13 @@ if (joined.length > 20) {

stringifyingValue = _safe2.default.gray('' + initialBracket + joined + endingBracket);
stringifyingValue = _colors2.default.gray('' + initialBracket + joined + endingBracket);
} else if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
stringifyingValue = _safe2.default.gray(value.toString());
stringifyingValue = _colors2.default.gray(value.toString());
} else if (typeof value === 'string') {
stringifyingValue = _safe2.default.gray('"' + value + '"');
stringifyingValue = _colors2.default.gray('"' + value + '"');
} else if (typeof value === 'number') {
stringifyingValue = _safe2.default.blue(value);
stringifyingValue = _colors2.default.blue(value);
} else if (value) {
stringifyingValue = _safe2.default.green(value);
stringifyingValue = _colors2.default.green(value);
} else if (!value) {
stringifyingValue = _safe2.default.red(value);
stringifyingValue = _colors2.default.red(value);
}

@@ -64,3 +64,3 @@

} catch (e) {
return [key, _safe2.default.gray('[Circular]')];
return [key, _colors2.default.gray('[Circular]')];
}

@@ -74,3 +74,3 @@ }

return '' + _safe2.default.yellow(key) + _safe2.default.gray(':') + ' ' + _safe2.default.yellow(value);
return '' + _colors2.default.yellow(key) + _colors2.default.gray(':') + ' ' + _colors2.default.yellow(value);
}

@@ -77,0 +77,0 @@

{
"name": "enzyme-matchers",
"version": "2.1.1",
"version": "2.1.2-beta1",
"description": "Testing Matchers for Enzyme",

@@ -28,3 +28,2 @@ "main": "lib/index.js",

"dependencies": {
"colors": "^1.1.2",
"deep-equal-ident": "^1.1.1"

@@ -31,0 +30,0 @@ },

@@ -1,2 +0,2 @@

import colors from 'colors/safe';
import colors from './colors';

@@ -3,0 +3,0 @@ function stringifySingle(key:string, value:any) : Array<string> {

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