pretty-format
Advanced tools
Comparing version 20.0.1 to 20.0.2
@@ -1,12 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
/* eslint-disable max-len */ | ||
'use strict';var _keys = require('babel-runtime/core-js/object/keys');var _keys2 = _interopRequireDefault(_keys);var _typeof2 = require('babel-runtime/helpers/typeof');var _typeof3 = _interopRequireDefault(_typeof2);var _getOwnPropertySymbols = require('babel-runtime/core-js/object/get-own-property-symbols');var _getOwnPropertySymbols2 = _interopRequireDefault(_getOwnPropertySymbols);var _symbol = require('babel-runtime/core-js/symbol');var _symbol2 = _interopRequireDefault(_symbol);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} | ||
@@ -22,3 +11,2 @@ | ||
var style = require('ansi-styles'); | ||
@@ -32,2 +20,11 @@ | ||
var style = require('ansi-styles'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
@@ -34,0 +31,0 @@ |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict';var _assign = require('babel-runtime/core-js/object/assign');var _assign2 = _interopRequireDefault(_assign);var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);var _inherits2 = require('babel-runtime/helpers/inherits');var _inherits3 = _interopRequireDefault(_inherits2);var _for = require('babel-runtime/core-js/symbol/for');var _for2 = _interopRequireDefault(_for);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} | ||
@@ -15,11 +5,19 @@ | ||
var asymmetricMatcher = (0, _for2.default)('jest.asymmetricMatcher'); | ||
var SPACE = ' ';var | ||
ArrayContaining = function (_Array) {(0, _inherits3.default)(ArrayContaining, _Array);function ArrayContaining() {(0, _classCallCheck3.default)(this, ArrayContaining);return (0, _possibleConstructorReturn3.default)(this, (ArrayContaining.__proto__ || (0, _getPrototypeOf2.default)(ArrayContaining)).apply(this, arguments));}return ArrayContaining;}(Array);var | ||
ObjectContaining = function (_Object) {(0, _inherits3.default)(ObjectContaining, _Object);function ObjectContaining() {(0, _classCallCheck3.default)(this, ObjectContaining);return (0, _possibleConstructorReturn3.default)(this, (ObjectContaining.__proto__ || (0, _getPrototypeOf2.default)(ObjectContaining)).apply(this, arguments));}return ObjectContaining;}(Object); | ||
var print = function print( | ||
val, | ||
_print, | ||
var asymmetricMatcher = (0, _for2.default)('jest.asymmetricMatcher'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/var SPACE = ' ';var ArrayContaining = function (_Array) {(0, _inherits3.default)(ArrayContaining, _Array);function ArrayContaining() {(0, _classCallCheck3.default)(this, ArrayContaining);return (0, _possibleConstructorReturn3.default)(this, (ArrayContaining.__proto__ || (0, _getPrototypeOf2.default)(ArrayContaining)).apply(this, arguments));}return ArrayContaining;}(Array);var ObjectContaining = function (_Object) {(0, _inherits3.default)(ObjectContaining, _Object);function ObjectContaining() {(0, _classCallCheck3.default)(this, ObjectContaining);return (0, _possibleConstructorReturn3.default)(this, (ObjectContaining.__proto__ || (0, _getPrototypeOf2.default)(ObjectContaining)).apply(this, arguments));}return ObjectContaining;}(Object);var print = function print(val, _print, | ||
indent, | ||
@@ -26,0 +24,0 @@ opts, |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -15,11 +5,19 @@ | ||
var ansiRegex = require('ansi-regex'); | ||
var toHumanReadableAnsi = function toHumanReadableAnsi(text) { | ||
var style = require('ansi-styles'); | ||
return text.replace(ansiRegex(), function (match, offset, string) { | ||
switch (match) { | ||
case style.red.close: | ||
case style.green.close: | ||
case style.reset.open: | ||
var ansiRegex = require('ansi-regex'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/var toHumanReadableAnsi = function toHumanReadableAnsi(text) {var style = require('ansi-styles');return text.replace(ansiRegex(), function (match, offset, string) {switch (match) {case style.red.close:case style.green.close:case style.reset.open: | ||
case style.reset.close: | ||
@@ -26,0 +24,0 @@ return '</>'; |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict';var _typeof2 = require('babel-runtime/helpers/typeof');var _typeof3 = _interopRequireDefault(_typeof2);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} | ||
@@ -15,3 +5,2 @@ | ||
var escapeHTML = require('./lib/escapeHTML'); | ||
@@ -25,2 +14,11 @@ | ||
var escapeHTML = require('./lib/escapeHTML'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
@@ -27,0 +25,0 @@ |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -15,11 +5,19 @@ | ||
var printImmutable = require('./lib/printImmutable'); | ||
var IS_LIST = '@@__IMMUTABLE_LIST__@@'; | ||
var test = function test(maybeList) {return !!(maybeList && maybeList[IS_LIST]);}; | ||
var print = function print( | ||
val, | ||
_print, | ||
indent, | ||
var printImmutable = require('./lib/printImmutable'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/var IS_LIST = '@@__IMMUTABLE_LIST__@@';var test = function test(maybeList) {return !!(maybeList && maybeList[IS_LIST]);};var print = function print(val, _print, indent, | ||
opts, | ||
@@ -26,0 +24,0 @@ colors) {return ( |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -15,11 +5,19 @@ | ||
var printImmutable = require('./lib/printImmutable'); | ||
var IS_MAP = '@@__IMMUTABLE_MAP__@@'; | ||
var IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@'; | ||
var test = function test(maybeMap) {return ( | ||
!!(maybeMap && maybeMap[IS_MAP] && !maybeMap[IS_ORDERED]));}; | ||
var print = function print( | ||
val, | ||
var printImmutable = require('./lib/printImmutable'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/var IS_MAP = '@@__IMMUTABLE_MAP__@@';var IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@';var test = function test(maybeMap) {return !!(maybeMap && maybeMap[IS_MAP] && !maybeMap[IS_ORDERED]);};var print = function print(val, | ||
_print, | ||
@@ -26,0 +24,0 @@ indent, |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -15,11 +5,19 @@ | ||
var printImmutable = require('./lib/printImmutable'); | ||
var IS_MAP = '@@__IMMUTABLE_MAP__@@'; | ||
var IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@'; | ||
var test = function test(maybeOrderedMap) {return ( | ||
maybeOrderedMap && maybeOrderedMap[IS_MAP] && maybeOrderedMap[IS_ORDERED]);}; | ||
var print = function print( | ||
val, | ||
var printImmutable = require('./lib/printImmutable'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/var IS_MAP = '@@__IMMUTABLE_MAP__@@';var IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@';var test = function test(maybeOrderedMap) {return maybeOrderedMap && maybeOrderedMap[IS_MAP] && maybeOrderedMap[IS_ORDERED];};var print = function print(val, | ||
_print, | ||
@@ -26,0 +24,0 @@ indent, |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -15,11 +5,19 @@ | ||
var printImmutable = require('./lib/printImmutable'); | ||
var IS_SET = '@@__IMMUTABLE_SET__@@'; | ||
var IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@'; | ||
var test = function test(maybeOrderedSet) {return ( | ||
maybeOrderedSet && maybeOrderedSet[IS_SET] && maybeOrderedSet[IS_ORDERED]);}; | ||
var print = function print( | ||
val, | ||
var printImmutable = require('./lib/printImmutable'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/var IS_SET = '@@__IMMUTABLE_SET__@@';var IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@';var test = function test(maybeOrderedSet) {return maybeOrderedSet && maybeOrderedSet[IS_SET] && maybeOrderedSet[IS_ORDERED];};var print = function print(val, | ||
_print, | ||
@@ -26,0 +24,0 @@ indent, |
@@ -1,13 +0,11 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
module.exports = [ | ||
@@ -14,0 +12,0 @@ require('./ImmutableList'), |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -15,11 +5,19 @@ | ||
var printImmutable = require('./lib/printImmutable'); | ||
var IS_SET = '@@__IMMUTABLE_SET__@@'; | ||
var IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@'; | ||
var test = function test(maybeSet) {return ( | ||
!!(maybeSet && maybeSet[IS_SET] && !maybeSet[IS_ORDERED]));}; | ||
var print = function print( | ||
val, | ||
var printImmutable = require('./lib/printImmutable'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/var IS_SET = '@@__IMMUTABLE_SET__@@';var IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@';var test = function test(maybeSet) {return !!(maybeSet && maybeSet[IS_SET] && !maybeSet[IS_ORDERED]);};var print = function print(val, | ||
_print, | ||
@@ -26,0 +24,0 @@ indent, |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -15,11 +5,19 @@ | ||
var printImmutable = require('./lib/printImmutable'); | ||
var IS_STACK = '@@__IMMUTABLE_STACK__@@'; | ||
var test = function test(maybeStack) {return !!(maybeStack && maybeStack[IS_STACK]);}; | ||
var print = function print( | ||
val, | ||
_print, | ||
indent, | ||
var printImmutable = require('./lib/printImmutable'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/var IS_STACK = '@@__IMMUTABLE_STACK__@@';var test = function test(maybeStack) {return !!(maybeStack && maybeStack[IS_STACK]);};var print = function print(val, _print, indent, | ||
opts, | ||
@@ -26,0 +24,0 @@ colors) {return ( |
@@ -1,11 +0,10 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
'use strict'; /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
@@ -12,0 +11,0 @@ function escapeHTML(str) { |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict';var _slicedToArray2 = require('babel-runtime/helpers/slicedToArray');var _slicedToArray3 = _interopRequireDefault(_slicedToArray2);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} | ||
@@ -15,11 +5,19 @@ | ||
var IMMUTABLE_NAMESPACE = 'Immutable.'; | ||
var SPACE = ' '; | ||
var addKey = function addKey(isMap, key) {return isMap ? key + ': ' : '';}; | ||
var addFinalEdgeSpacing = function addFinalEdgeSpacing(length, edgeSpacing) {return ( | ||
length > 0 ? edgeSpacing : '');}; | ||
var printImmutable = function printImmutable( | ||
var IMMUTABLE_NAMESPACE = 'Immutable.'; /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/var SPACE = ' ';var addKey = function addKey(isMap, key) {return isMap ? key + ': ' : '';};var addFinalEdgeSpacing = function addFinalEdgeSpacing(length, edgeSpacing) {return length > 0 ? edgeSpacing : '';};var printImmutable = function printImmutable( | ||
val, | ||
@@ -26,0 +24,0 @@ print, |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict';var _keys = require('babel-runtime/core-js/object/keys');var _keys2 = _interopRequireDefault(_keys);var _typeof2 = require('babel-runtime/helpers/typeof');var _typeof3 = _interopRequireDefault(_typeof2);var _for = require('babel-runtime/core-js/symbol/for');var _for2 = _interopRequireDefault(_for);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} | ||
@@ -15,11 +5,19 @@ | ||
var escapeHTML = require('./lib/escapeHTML'); | ||
var reactElement = (0, _for2.default)('react.element'); | ||
function traverseChildren(opaqueChildren, cb) { | ||
if (Array.isArray(opaqueChildren)) { | ||
opaqueChildren.forEach(function (child) {return traverseChildren(child, cb);}); | ||
} else if (opaqueChildren != null && opaqueChildren !== false) { | ||
cb(opaqueChildren); | ||
var escapeHTML = require('./lib/escapeHTML'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/var reactElement = (0, _for2.default)('react.element');function traverseChildren(opaqueChildren, cb) {if (Array.isArray(opaqueChildren)) {opaqueChildren.forEach(function (child) {return traverseChildren(child, cb);});} else if (opaqueChildren != null && opaqueChildren !== false) {cb(opaqueChildren); | ||
} | ||
@@ -26,0 +24,0 @@ } |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict';var _keys = require('babel-runtime/core-js/object/keys');var _keys2 = _interopRequireDefault(_keys);var _for = require('babel-runtime/core-js/symbol/for');var _for2 = _interopRequireDefault(_for);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} | ||
@@ -23,11 +13,19 @@ | ||
var escapeHTML = require('./lib/escapeHTML'); | ||
var reactTestInstance = (0, _for2.default)('react.test.json'); | ||
function printChildren( | ||
children, | ||
print, | ||
indent, | ||
colors, | ||
var escapeHTML = require('./lib/escapeHTML'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/var reactTestInstance = (0, _for2.default)('react.test.json');function printChildren(children, print, indent, colors, | ||
opts) | ||
@@ -34,0 +32,0 @@ { |
@@ -1,12 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
/* eslint-disable max-len */ | ||
'use strict'; | ||
@@ -22,3 +11,2 @@ | ||
const style = require('ansi-styles'); | ||
@@ -32,2 +20,11 @@ | ||
const style = require('ansi-styles'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
@@ -34,0 +31,0 @@ |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -15,11 +5,19 @@ | ||
const asymmetricMatcher = Symbol.for('jest.asymmetricMatcher'); | ||
const SPACE = ' '; | ||
class ArrayContaining extends Array {} | ||
class ObjectContaining extends Object {} | ||
const print = ( | ||
val, | ||
print, | ||
const asymmetricMatcher = Symbol.for('jest.asymmetricMatcher'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/const SPACE = ' ';class ArrayContaining extends Array {}class ObjectContaining extends Object {}const print = (val, print, | ||
indent, | ||
@@ -26,0 +24,0 @@ opts, |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -15,11 +5,19 @@ | ||
const ansiRegex = require('ansi-regex'); | ||
const toHumanReadableAnsi = text => { | ||
const style = require('ansi-styles'); | ||
return text.replace(ansiRegex(), (match, offset, string) => { | ||
switch (match) { | ||
case style.red.close: | ||
case style.green.close: | ||
case style.reset.open: | ||
const ansiRegex = require('ansi-regex'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/const toHumanReadableAnsi = text => {const style = require('ansi-styles');return text.replace(ansiRegex(), (match, offset, string) => {switch (match) {case style.red.close:case style.green.close:case style.reset.open: | ||
case style.reset.close: | ||
@@ -26,0 +24,0 @@ return '</>'; |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -15,3 +5,2 @@ | ||
const escapeHTML = require('./lib/escapeHTML'); | ||
@@ -25,2 +14,11 @@ | ||
const escapeHTML = require('./lib/escapeHTML'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
@@ -27,0 +25,0 @@ |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -15,11 +5,19 @@ | ||
const printImmutable = require('./lib/printImmutable'); | ||
const IS_LIST = '@@__IMMUTABLE_LIST__@@'; | ||
const test = maybeList => !!(maybeList && maybeList[IS_LIST]); | ||
const print = ( | ||
val, | ||
print, | ||
indent, | ||
const printImmutable = require('./lib/printImmutable'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/const IS_LIST = '@@__IMMUTABLE_LIST__@@';const test = maybeList => !!(maybeList && maybeList[IS_LIST]);const print = (val, print, indent, | ||
opts, | ||
@@ -26,0 +24,0 @@ colors) => |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -15,11 +5,19 @@ | ||
const printImmutable = require('./lib/printImmutable'); | ||
const IS_MAP = '@@__IMMUTABLE_MAP__@@'; | ||
const IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@'; | ||
const test = maybeMap => | ||
!!(maybeMap && maybeMap[IS_MAP] && !maybeMap[IS_ORDERED]); | ||
const print = ( | ||
val, | ||
const printImmutable = require('./lib/printImmutable'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/const IS_MAP = '@@__IMMUTABLE_MAP__@@';const IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@';const test = maybeMap => !!(maybeMap && maybeMap[IS_MAP] && !maybeMap[IS_ORDERED]);const print = (val, | ||
print, | ||
@@ -26,0 +24,0 @@ indent, |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -15,11 +5,19 @@ | ||
const printImmutable = require('./lib/printImmutable'); | ||
const IS_MAP = '@@__IMMUTABLE_MAP__@@'; | ||
const IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@'; | ||
const test = maybeOrderedMap => | ||
maybeOrderedMap && maybeOrderedMap[IS_MAP] && maybeOrderedMap[IS_ORDERED]; | ||
const print = ( | ||
val, | ||
const printImmutable = require('./lib/printImmutable'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/const IS_MAP = '@@__IMMUTABLE_MAP__@@';const IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@';const test = maybeOrderedMap => maybeOrderedMap && maybeOrderedMap[IS_MAP] && maybeOrderedMap[IS_ORDERED];const print = (val, | ||
print, | ||
@@ -26,0 +24,0 @@ indent, |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -15,11 +5,19 @@ | ||
const printImmutable = require('./lib/printImmutable'); | ||
const IS_SET = '@@__IMMUTABLE_SET__@@'; | ||
const IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@'; | ||
const test = maybeOrderedSet => | ||
maybeOrderedSet && maybeOrderedSet[IS_SET] && maybeOrderedSet[IS_ORDERED]; | ||
const print = ( | ||
val, | ||
const printImmutable = require('./lib/printImmutable'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/const IS_SET = '@@__IMMUTABLE_SET__@@';const IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@';const test = maybeOrderedSet => maybeOrderedSet && maybeOrderedSet[IS_SET] && maybeOrderedSet[IS_ORDERED];const print = (val, | ||
print, | ||
@@ -26,0 +24,0 @@ indent, |
@@ -1,13 +0,11 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
module.exports = [ | ||
@@ -14,0 +12,0 @@ require('./ImmutableList'), |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -15,11 +5,19 @@ | ||
const printImmutable = require('./lib/printImmutable'); | ||
const IS_SET = '@@__IMMUTABLE_SET__@@'; | ||
const IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@'; | ||
const test = maybeSet => | ||
!!(maybeSet && maybeSet[IS_SET] && !maybeSet[IS_ORDERED]); | ||
const print = ( | ||
val, | ||
const printImmutable = require('./lib/printImmutable'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/const IS_SET = '@@__IMMUTABLE_SET__@@';const IS_ORDERED = '@@__IMMUTABLE_ORDERED__@@';const test = maybeSet => !!(maybeSet && maybeSet[IS_SET] && !maybeSet[IS_ORDERED]);const print = (val, | ||
print, | ||
@@ -26,0 +24,0 @@ indent, |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -15,11 +5,19 @@ | ||
const printImmutable = require('./lib/printImmutable'); | ||
const IS_STACK = '@@__IMMUTABLE_STACK__@@'; | ||
const test = maybeStack => !!(maybeStack && maybeStack[IS_STACK]); | ||
const print = ( | ||
val, | ||
print, | ||
indent, | ||
const printImmutable = require('./lib/printImmutable'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/const IS_STACK = '@@__IMMUTABLE_STACK__@@';const test = maybeStack => !!(maybeStack && maybeStack[IS_STACK]);const print = (val, print, indent, | ||
opts, | ||
@@ -26,0 +24,0 @@ colors) => |
@@ -1,11 +0,10 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
'use strict'; /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
@@ -12,0 +11,0 @@ function escapeHTML(str) { |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict';var _slicedToArray = function () {function sliceIterator(arr, i) {var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"]) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}return function (arr, i) {if (Array.isArray(arr)) {return arr;} else if (Symbol.iterator in Object(arr)) {return sliceIterator(arr, i);} else {throw new TypeError("Invalid attempt to destructure non-iterable instance");}};}(); | ||
@@ -15,11 +5,19 @@ | ||
const IMMUTABLE_NAMESPACE = 'Immutable.'; | ||
const SPACE = ' '; | ||
const addKey = (isMap, key) => isMap ? key + ': ' : ''; | ||
const addFinalEdgeSpacing = (length, edgeSpacing) => | ||
length > 0 ? edgeSpacing : ''; | ||
const printImmutable = ( | ||
const IMMUTABLE_NAMESPACE = 'Immutable.'; /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/const SPACE = ' ';const addKey = (isMap, key) => isMap ? key + ': ' : '';const addFinalEdgeSpacing = (length, edgeSpacing) => length > 0 ? edgeSpacing : '';const printImmutable = ( | ||
val, | ||
@@ -26,0 +24,0 @@ print, |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -15,11 +5,19 @@ | ||
const escapeHTML = require('./lib/escapeHTML'); | ||
const reactElement = Symbol.for('react.element'); | ||
function traverseChildren(opaqueChildren, cb) { | ||
if (Array.isArray(opaqueChildren)) { | ||
opaqueChildren.forEach(child => traverseChildren(child, cb)); | ||
} else if (opaqueChildren != null && opaqueChildren !== false) { | ||
cb(opaqueChildren); | ||
const escapeHTML = require('./lib/escapeHTML'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/const reactElement = Symbol.for('react.element');function traverseChildren(opaqueChildren, cb) {if (Array.isArray(opaqueChildren)) {opaqueChildren.forEach(child => traverseChildren(child, cb));} else if (opaqueChildren != null && opaqueChildren !== false) {cb(opaqueChildren); | ||
} | ||
@@ -26,0 +24,0 @@ } |
@@ -1,11 +0,1 @@ | ||
/** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/ | ||
'use strict'; | ||
@@ -23,11 +13,19 @@ | ||
const escapeHTML = require('./lib/escapeHTML'); | ||
const reactTestInstance = Symbol.for('react.test.json'); | ||
function printChildren( | ||
children, | ||
print, | ||
indent, | ||
colors, | ||
const escapeHTML = require('./lib/escapeHTML'); /** | ||
* Copyright (c) 2014-present, Facebook, Inc. All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* | ||
*/const reactTestInstance = Symbol.for('react.test.json');function printChildren(children, print, indent, colors, | ||
opts) | ||
@@ -34,0 +32,0 @@ { |
{ | ||
"name": "pretty-format", | ||
"version": "20.0.1", | ||
"version": "20.0.2", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -9,12 +9,10 @@ /** | ||
'use strict'; | ||
const prettyFormat = require('../build'); | ||
const util = require('util'); | ||
const chalk = require('chalk'); | ||
const leftPad = require('left-pad'); | ||
const worldGeoJson = require('./world.geo.json'); | ||
const React = require('react'); | ||
const ReactTestRenderer = require('react-test-renderer'); | ||
const leftPad = require('left-pad'); | ||
const prettyFormat = require('../build'); | ||
const ReactTestComponent = require('../build/plugins/ReactTestComponent'); | ||
const worldGeoJson = require('./world.geo.json'); | ||
@@ -21,0 +19,0 @@ const NANOSECONDS = 1000000000; |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 14 instances 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
351996
15
60
3960