jest-validate
Advanced tools
Comparing version 20.0.1 to 20.0.2
@@ -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'; | ||
var toString = Object.prototype.toString; | ||
@@ -14,0 +12,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 _require = | ||
@@ -15,11 +5,19 @@ | ||
require('./deprecated'),deprecationWarning = _require.deprecationWarning;var _require2 = | ||
require('./warnings'),unknownOptionWarning = _require2.unknownOptionWarning;var _require3 = | ||
require('./errors'),errorMessage = _require3.errorMessage; | ||
var exampleConfig = require('./exampleConfig'); | ||
var validationCondition = require('./condition');var _require4 = | ||
require('./utils'),ERROR = _require4.ERROR,DEPRECATION = _require4.DEPRECATION,WARNING = _require4.WARNING; | ||
module.exports = { | ||
comment: '', | ||
require('./deprecated'),deprecationWarning = _require.deprecationWarning; /** | ||
* 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 _require2 = require('./warnings'),unknownOptionWarning = _require2.unknownOptionWarning;var _require3 = require('./errors'),errorMessage = _require3.errorMessage;var exampleConfig = require('./exampleConfig');var validationCondition = require('./condition');var _require4 = require('./utils'),ERROR = _require4.ERROR,DEPRECATION = _require4.DEPRECATION,WARNING = _require4.WARNING;module.exports = { comment: '', | ||
condition: validationCondition, | ||
@@ -26,0 +24,0 @@ deprecate: deprecationWarning, |
@@ -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 _require = | ||
@@ -15,11 +5,19 @@ | ||
require('./utils'),logValidationWarning = _require.logValidationWarning,DEPRECATION = _require.DEPRECATION; | ||
var deprecationMessage = function deprecationMessage(message, options) { | ||
var comment = options.comment; | ||
var name = options.title && options.title.deprecation || DEPRECATION; | ||
logValidationWarning(name, message, comment); | ||
}; | ||
require('./utils'),logValidationWarning = _require.logValidationWarning,DEPRECATION = _require.DEPRECATION; /** | ||
* 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 deprecationMessage = function deprecationMessage(message, options) {var comment = options.comment;var name = options.title && options.title.deprecation || DEPRECATION;logValidationWarning(name, message, comment);}; | ||
var deprecationWarning = function deprecationWarning( | ||
@@ -26,0 +24,0 @@ config, |
@@ -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 chalk = require('chalk');var _require = | ||
require('./utils'),format = _require.format,ValidationError = _require.ValidationError,ERROR = _require.ERROR;var _require2 = | ||
require('jest-matcher-utils'),getType = _require2.getType; | ||
var errorMessage = function errorMessage( | ||
option, | ||
received, | ||
defaultValue, | ||
options) | ||
var chalk = require('chalk'); /** | ||
* 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 _require = require('jest-matcher-utils'),getType = _require.getType;var _require2 = require('./utils'),format = _require2.format,ValidationError = _require2.ValidationError,ERROR = _require2.ERROR;var errorMessage = function errorMessage(option, received, defaultValue, options) | ||
{ | ||
@@ -26,0 +24,0 @@ var message = ' Option ' + chalk.bold('"' + option + '"') + ' must be of type:\n ' + |
@@ -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,2 +5,10 @@ | ||
var config = { | ||
@@ -30,5 +28,10 @@ comment: ' A comment', | ||
unknown: function unknown(config, option, options) {} }; | ||
module.exports = config; | ||
unknown: function unknown(config, option, options) {} }; /** | ||
* 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. | ||
* | ||
* | ||
*/module.exports = config; |
@@ -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 @@ ValidationError: require('./errors').ValidationError, |
@@ -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'; | ||
"use strict"; |
@@ -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';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);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} /** | ||
* 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 _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);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} | ||
var chalk = require('chalk'); | ||
@@ -32,2 +30,3 @@ var BULLET = chalk.bold('\u25CF'); | ||
_this.name = ''; | ||
_this.stack = ''; | ||
_this.message = chalk.red(chalk.bold(name) + ':\n\n' + message + comment); | ||
@@ -34,0 +33,0 @@ Error.captureStackTrace(_this, function () {});return _this; |
@@ -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);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} | ||
@@ -15,11 +5,19 @@ | ||
var defaultConfig = require('./defaultConfig'); | ||
var _validate = function _validate(config, options) { | ||
var hasDeprecationWarnings = false; | ||
for (var key in config) { | ||
if ( | ||
options.deprecatedConfig && | ||
key in options.deprecatedConfig && | ||
var defaultConfig = require('./defaultConfig'); /** | ||
* 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 _validate = function _validate(config, options) {var hasDeprecationWarnings = false;for (var key in config) {if (options.deprecatedConfig && key in options.deprecatedConfig && | ||
typeof options.deprecate === 'function') | ||
@@ -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);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} | ||
@@ -15,3 +5,2 @@ | ||
var chalk = require('chalk');var _require = | ||
@@ -22,5 +11,14 @@ | ||
require('./utils'),format = _require.format,logValidationWarning = _require.logValidationWarning,createDidYouMeanMessage = _require.createDidYouMeanMessage,WARNING = _require.WARNING; | ||
var unknownOptionWarning = function unknownOptionWarning( | ||
var chalk = require('chalk'); /** | ||
* 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 _require = require('./utils'),format = _require.format,logValidationWarning = _require.logValidationWarning,createDidYouMeanMessage = _require.createDidYouMeanMessage,WARNING = _require.WARNING;var unknownOptionWarning = function unknownOptionWarning( | ||
config, | ||
@@ -35,3 +33,2 @@ exampleConfig, | ||
/* eslint-disable max-len */ | ||
var message = | ||
@@ -41,3 +38,2 @@ ' Unknown option ' + chalk.bold('"' + option + '"') + ' with value ' + chalk.bold(format(config[option])) + ' was found.' + ( | ||
/* eslint-enable max-len */ | ||
@@ -44,0 +40,0 @@ var comment = options.comment; |
@@ -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'; | ||
const toString = Object.prototype.toString; | ||
@@ -14,0 +12,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 _require = | ||
@@ -15,11 +5,19 @@ | ||
require('./deprecated');const deprecationWarning = _require.deprecationWarning;var _require2 = | ||
require('./warnings');const unknownOptionWarning = _require2.unknownOptionWarning;var _require3 = | ||
require('./errors');const errorMessage = _require3.errorMessage; | ||
const exampleConfig = require('./exampleConfig'); | ||
const validationCondition = require('./condition');var _require4 = | ||
require('./utils');const ERROR = _require4.ERROR,DEPRECATION = _require4.DEPRECATION,WARNING = _require4.WARNING; | ||
module.exports = { | ||
comment: '', | ||
require('./deprecated');const deprecationWarning = _require.deprecationWarning; /** | ||
* 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 _require2 = require('./warnings');const unknownOptionWarning = _require2.unknownOptionWarning;var _require3 = require('./errors');const errorMessage = _require3.errorMessage;const exampleConfig = require('./exampleConfig');const validationCondition = require('./condition');var _require4 = require('./utils');const ERROR = _require4.ERROR,DEPRECATION = _require4.DEPRECATION,WARNING = _require4.WARNING;module.exports = { comment: '', | ||
condition: validationCondition, | ||
@@ -26,0 +24,0 @@ deprecate: deprecationWarning, |
@@ -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 _require = | ||
@@ -15,11 +5,19 @@ | ||
require('./utils');const logValidationWarning = _require.logValidationWarning,DEPRECATION = _require.DEPRECATION; | ||
const deprecationMessage = (message, options) => { | ||
const comment = options.comment; | ||
const name = options.title && options.title.deprecation || DEPRECATION; | ||
logValidationWarning(name, message, comment); | ||
}; | ||
require('./utils');const logValidationWarning = _require.logValidationWarning,DEPRECATION = _require.DEPRECATION; /** | ||
* 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 deprecationMessage = (message, options) => {const comment = options.comment;const name = options.title && options.title.deprecation || DEPRECATION;logValidationWarning(name, message, comment);}; | ||
const deprecationWarning = ( | ||
@@ -26,0 +24,0 @@ config, |
@@ -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 chalk = require('chalk');var _require = | ||
require('./utils');const format = _require.format,ValidationError = _require.ValidationError,ERROR = _require.ERROR;var _require2 = | ||
require('jest-matcher-utils');const getType = _require2.getType; | ||
const errorMessage = ( | ||
option, | ||
received, | ||
defaultValue, | ||
options) => | ||
const chalk = require('chalk'); /** | ||
* 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 _require = require('jest-matcher-utils');const getType = _require.getType;var _require2 = require('./utils');const format = _require2.format,ValidationError = _require2.ValidationError,ERROR = _require2.ERROR;const errorMessage = (option, received, defaultValue, options) => | ||
{ | ||
@@ -26,0 +24,0 @@ const message = ` Option ${chalk.bold(`"${option}"`)} must be of type: |
@@ -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,2 +5,10 @@ | ||
const config = { | ||
@@ -30,5 +28,10 @@ comment: ' A comment', | ||
unknown: (config, option, options) => {} }; | ||
module.exports = config; | ||
unknown: (config, option, options) => {} }; /** | ||
* 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. | ||
* | ||
* | ||
*/module.exports = config; |
@@ -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 @@ ValidationError: require('./errors').ValidationError, |
@@ -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'; | ||
"use strict"; |
@@ -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'; | ||
const chalk = require('chalk'); | ||
@@ -32,2 +30,3 @@ const BULLET = chalk.bold('\u25cf'); | ||
this.name = ''; | ||
this.stack = ''; | ||
this.message = chalk.red(chalk.bold(name) + ':\n\n' + message + comment); | ||
@@ -34,0 +33,0 @@ Error.captureStackTrace(this, () => {}); |
@@ -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 defaultConfig = require('./defaultConfig'); | ||
const _validate = (config, options) => { | ||
let hasDeprecationWarnings = false; | ||
for (const key in config) { | ||
if ( | ||
options.deprecatedConfig && | ||
key in options.deprecatedConfig && | ||
const defaultConfig = require('./defaultConfig'); /** | ||
* 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 _validate = (config, options) => {let hasDeprecationWarnings = false;for (const key in config) {if (options.deprecatedConfig && key in options.deprecatedConfig && | ||
typeof options.deprecate === 'function') | ||
@@ -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'; | ||
@@ -15,3 +5,2 @@ | ||
const chalk = require('chalk');var _require = | ||
@@ -22,5 +11,14 @@ | ||
require('./utils');const format = _require.format,logValidationWarning = _require.logValidationWarning,createDidYouMeanMessage = _require.createDidYouMeanMessage,WARNING = _require.WARNING; | ||
const unknownOptionWarning = ( | ||
const chalk = require('chalk'); /** | ||
* 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 _require = require('./utils');const format = _require.format,logValidationWarning = _require.logValidationWarning,createDidYouMeanMessage = _require.createDidYouMeanMessage,WARNING = _require.WARNING;const unknownOptionWarning = ( | ||
config, | ||
@@ -35,3 +33,2 @@ exampleConfig, | ||
/* eslint-disable max-len */ | ||
const message = | ||
@@ -41,3 +38,2 @@ ` Unknown option ${chalk.bold(`"${option}"`)} with value ${chalk.bold(format(config[option]))} was found.` + ( | ||
`\n This is probably a typing mistake. Fixing it will remove this message.`; | ||
/* eslint-enable max-len */ | ||
@@ -44,0 +40,0 @@ const comment = options.comment; |
{ | ||
"name": "jest-validate", | ||
"version": "20.0.1", | ||
"version": "20.0.2", | ||
"repository": { | ||
@@ -13,6 +13,6 @@ "type": "git", | ||
"chalk": "^1.1.3", | ||
"jest-matcher-utils": "^20.0.1", | ||
"jest-matcher-utils": "^20.0.2", | ||
"leven": "^2.1.0", | ||
"pretty-format": "^20.0.1" | ||
"pretty-format": "^20.0.2" | ||
} | ||
} |
36855
486
Updatedjest-matcher-utils@^20.0.2
Updatedpretty-format@^20.0.2