enzyme-matchers
Advanced tools
Comparing version 2.1.1 to 2.1.2-beta1
@@ -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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
126854
2
88
2590
2
- Removedcolors@^1.1.2
- Removedcolors@1.4.0(transitive)