z-schema 5.0.1 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6517,7 +6517,7 @@ http.METHODS = [
6517
6517
  'UNSUBSCRIBE'
6518
6518
  ]
6519
6519
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
6520
- },{"./lib/request":19,"./lib/response":20,"builtin-status-codes":5,"url":37,"xtend":140}],18:[function(require,module,exports){
6520
+ },{"./lib/request":19,"./lib/response":20,"builtin-status-codes":5,"url":37,"xtend":141}],18:[function(require,module,exports){
6521
6521
  (function (global){(function (){
6522
6522
  exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableStream)
6523
6523
 
@@ -11482,7 +11482,7 @@ var _isHSL = _interopRequireDefault(require("./lib/isHSL"));
11482
11482
 
11483
11483
  var _isISRC = _interopRequireDefault(require("./lib/isISRC"));
11484
11484
 
11485
- var _isIBAN = _interopRequireDefault(require("./lib/isIBAN"));
11485
+ var _isIBAN = _interopRequireWildcard(require("./lib/isIBAN"));
11486
11486
 
11487
11487
  var _isBIC = _interopRequireDefault(require("./lib/isBIC"));
11488
11488
 
@@ -11540,6 +11540,8 @@ var _isISO31661Alpha = _interopRequireDefault(require("./lib/isISO31661Alpha2"))
11540
11540
 
11541
11541
  var _isISO31661Alpha2 = _interopRequireDefault(require("./lib/isISO31661Alpha3"));
11542
11542
 
11543
+ var _isISO2 = _interopRequireDefault(require("./lib/isISO4217"));
11544
+
11543
11545
  var _isBase = _interopRequireDefault(require("./lib/isBase32"));
11544
11546
 
11545
11547
  var _isBase2 = _interopRequireDefault(require("./lib/isBase58"));
@@ -11590,7 +11592,7 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
11590
11592
 
11591
11593
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11592
11594
 
11593
- var version = '13.6.0';
11595
+ var version = '13.7.0';
11594
11596
  var validator = {
11595
11597
  version: version,
11596
11598
  toDate: _toDate.default,
@@ -11667,6 +11669,7 @@ var validator = {
11667
11669
  isRFC3339: _isRFC.default,
11668
11670
  isISO31661Alpha2: _isISO31661Alpha.default,
11669
11671
  isISO31661Alpha3: _isISO31661Alpha2.default,
11672
+ isISO4217: _isISO2.default,
11670
11673
  isBase32: _isBase.default,
11671
11674
  isBase58: _isBase2.default,
11672
11675
  isBase64: _isBase3.default,
@@ -11690,13 +11693,14 @@ var validator = {
11690
11693
  isTaxID: _isTaxID.default,
11691
11694
  isDate: _isDate.default,
11692
11695
  isLicensePlate: _isLicensePlate.default,
11693
- isVAT: _isVAT.default
11696
+ isVAT: _isVAT.default,
11697
+ ibanLocales: _isIBAN.locales
11694
11698
  };
11695
11699
  var _default = validator;
11696
11700
  exports.default = _default;
11697
11701
  module.exports = exports.default;
11698
11702
  module.exports.default = exports.default;
11699
- },{"./lib/blacklist":42,"./lib/contains":43,"./lib/equals":44,"./lib/escape":45,"./lib/isAfter":46,"./lib/isAlpha":47,"./lib/isAlphanumeric":48,"./lib/isAscii":49,"./lib/isBIC":50,"./lib/isBase32":51,"./lib/isBase58":52,"./lib/isBase64":53,"./lib/isBefore":54,"./lib/isBoolean":55,"./lib/isBtcAddress":56,"./lib/isByteLength":57,"./lib/isCreditCard":58,"./lib/isCurrency":59,"./lib/isDataURI":60,"./lib/isDate":61,"./lib/isDecimal":62,"./lib/isDivisibleBy":63,"./lib/isEAN":64,"./lib/isEmail":65,"./lib/isEmpty":66,"./lib/isEthereumAddress":67,"./lib/isFQDN":68,"./lib/isFloat":69,"./lib/isFullWidth":70,"./lib/isHSL":71,"./lib/isHalfWidth":72,"./lib/isHash":73,"./lib/isHexColor":74,"./lib/isHexadecimal":75,"./lib/isIBAN":76,"./lib/isIMEI":77,"./lib/isIP":78,"./lib/isIPRange":79,"./lib/isISBN":80,"./lib/isISIN":81,"./lib/isISO31661Alpha2":82,"./lib/isISO31661Alpha3":83,"./lib/isISO8601":84,"./lib/isISRC":85,"./lib/isISSN":86,"./lib/isIdentityCard":87,"./lib/isIn":88,"./lib/isInt":89,"./lib/isJSON":90,"./lib/isJWT":91,"./lib/isLatLong":92,"./lib/isLength":93,"./lib/isLicensePlate":94,"./lib/isLocale":95,"./lib/isLowercase":96,"./lib/isMACAddress":97,"./lib/isMD5":98,"./lib/isMagnetURI":99,"./lib/isMimeType":100,"./lib/isMobilePhone":101,"./lib/isMongoId":102,"./lib/isMultibyte":103,"./lib/isNumeric":104,"./lib/isOctal":105,"./lib/isPassportNumber":106,"./lib/isPort":107,"./lib/isPostalCode":108,"./lib/isRFC3339":109,"./lib/isRgbColor":110,"./lib/isSemVer":111,"./lib/isSlug":112,"./lib/isStrongPassword":113,"./lib/isSurrogatePair":114,"./lib/isTaxID":115,"./lib/isURL":116,"./lib/isUUID":117,"./lib/isUppercase":118,"./lib/isVAT":119,"./lib/isVariableWidth":120,"./lib/isWhitelisted":121,"./lib/ltrim":122,"./lib/matches":123,"./lib/normalizeEmail":124,"./lib/rtrim":125,"./lib/stripLow":126,"./lib/toBoolean":127,"./lib/toDate":128,"./lib/toFloat":129,"./lib/toInt":130,"./lib/trim":131,"./lib/unescape":132,"./lib/whitelist":139}],41:[function(require,module,exports){
11703
+ },{"./lib/blacklist":42,"./lib/contains":43,"./lib/equals":44,"./lib/escape":45,"./lib/isAfter":46,"./lib/isAlpha":47,"./lib/isAlphanumeric":48,"./lib/isAscii":49,"./lib/isBIC":50,"./lib/isBase32":51,"./lib/isBase58":52,"./lib/isBase64":53,"./lib/isBefore":54,"./lib/isBoolean":55,"./lib/isBtcAddress":56,"./lib/isByteLength":57,"./lib/isCreditCard":58,"./lib/isCurrency":59,"./lib/isDataURI":60,"./lib/isDate":61,"./lib/isDecimal":62,"./lib/isDivisibleBy":63,"./lib/isEAN":64,"./lib/isEmail":65,"./lib/isEmpty":66,"./lib/isEthereumAddress":67,"./lib/isFQDN":68,"./lib/isFloat":69,"./lib/isFullWidth":70,"./lib/isHSL":71,"./lib/isHalfWidth":72,"./lib/isHash":73,"./lib/isHexColor":74,"./lib/isHexadecimal":75,"./lib/isIBAN":76,"./lib/isIMEI":77,"./lib/isIP":78,"./lib/isIPRange":79,"./lib/isISBN":80,"./lib/isISIN":81,"./lib/isISO31661Alpha2":82,"./lib/isISO31661Alpha3":83,"./lib/isISO4217":84,"./lib/isISO8601":85,"./lib/isISRC":86,"./lib/isISSN":87,"./lib/isIdentityCard":88,"./lib/isIn":89,"./lib/isInt":90,"./lib/isJSON":91,"./lib/isJWT":92,"./lib/isLatLong":93,"./lib/isLength":94,"./lib/isLicensePlate":95,"./lib/isLocale":96,"./lib/isLowercase":97,"./lib/isMACAddress":98,"./lib/isMD5":99,"./lib/isMagnetURI":100,"./lib/isMimeType":101,"./lib/isMobilePhone":102,"./lib/isMongoId":103,"./lib/isMultibyte":104,"./lib/isNumeric":105,"./lib/isOctal":106,"./lib/isPassportNumber":107,"./lib/isPort":108,"./lib/isPostalCode":109,"./lib/isRFC3339":110,"./lib/isRgbColor":111,"./lib/isSemVer":112,"./lib/isSlug":113,"./lib/isStrongPassword":114,"./lib/isSurrogatePair":115,"./lib/isTaxID":116,"./lib/isURL":117,"./lib/isUUID":118,"./lib/isUppercase":119,"./lib/isVAT":120,"./lib/isVariableWidth":121,"./lib/isWhitelisted":122,"./lib/ltrim":123,"./lib/matches":124,"./lib/normalizeEmail":125,"./lib/rtrim":126,"./lib/stripLow":127,"./lib/toBoolean":128,"./lib/toDate":129,"./lib/toFloat":130,"./lib/toInt":131,"./lib/trim":132,"./lib/unescape":133,"./lib/whitelist":140}],41:[function(require,module,exports){
11700
11704
  "use strict";
11701
11705
 
11702
11706
  Object.defineProperty(exports, "__esModule", {
@@ -11713,6 +11717,7 @@ var alpha = {
11713
11717
  'el-GR': /^[Α-ώ]+$/i,
11714
11718
  'es-ES': /^[A-ZÁÉÍÑÓÚÜ]+$/i,
11715
11719
  'fa-IR': /^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,
11720
+ 'fi-FI': /^[A-ZÅÄÖ]+$/i,
11716
11721
  'fr-FR': /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,
11717
11722
  'it-IT': /^[A-ZÀÉÈÌÎÓÒÙ]+$/i,
11718
11723
  'nb-NO': /^[A-ZÆØÅ]+$/i,
@@ -11734,7 +11739,8 @@ var alpha = {
11734
11739
  'ku-IQ': /^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,
11735
11740
  ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,
11736
11741
  he: /^[א-ת]+$/,
11737
- fa: /^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i
11742
+ fa: /^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,
11743
+ 'hi-IN': /^[\u0900-\u0961]+[\u0972-\u097F]*$/i
11738
11744
  };
11739
11745
  exports.alpha = alpha;
11740
11746
  var alphanumeric = {
@@ -11746,6 +11752,7 @@ var alphanumeric = {
11746
11752
  'de-DE': /^[0-9A-ZÄÖÜß]+$/i,
11747
11753
  'el-GR': /^[0-9Α-ω]+$/i,
11748
11754
  'es-ES': /^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,
11755
+ 'fi-FI': /^[0-9A-ZÅÄÖ]+$/i,
11749
11756
  'fr-FR': /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,
11750
11757
  'it-IT': /^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,
11751
11758
  'hu-HU': /^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,
@@ -11767,7 +11774,8 @@ var alphanumeric = {
11767
11774
  'vi-VN': /^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,
11768
11775
  ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,
11769
11776
  he: /^[0-9א-ת]+$/,
11770
- fa: /^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i
11777
+ fa: /^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,
11778
+ 'hi-IN': /^[\u0900-\u0963]+[\u0966-\u097F]*$/i
11771
11779
  };
11772
11780
  exports.alphanumeric = alphanumeric;
11773
11781
  var decimal = {
@@ -11808,7 +11816,7 @@ for (var _locale2, _i2 = 0; _i2 < farsiLocales.length; _i2++) {
11808
11816
 
11809
11817
  var dotDecimal = ['ar-EG', 'ar-LB', 'ar-LY'];
11810
11818
  exports.dotDecimal = dotDecimal;
11811
- var commaDecimal = ['bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'en-ZM', 'es-ES', 'fr-CA', 'fr-FR', 'id-ID', 'it-IT', 'ku-IQ', 'hu-HU', 'nb-NO', 'nn-NO', 'nl-NL', 'pl-PL', 'pt-PT', 'ru-RU', 'sl-SI', 'sr-RS@latin', 'sr-RS', 'sv-SE', 'tr-TR', 'uk-UA', 'vi-VN'];
11819
+ var commaDecimal = ['bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'en-ZM', 'es-ES', 'fr-CA', 'fr-FR', 'id-ID', 'it-IT', 'ku-IQ', 'hi-IN', 'hu-HU', 'nb-NO', 'nn-NO', 'nl-NL', 'pl-PL', 'pt-PT', 'ru-RU', 'sl-SI', 'sr-RS@latin', 'sr-RS', 'sv-SE', 'tr-TR', 'uk-UA', 'vi-VN'];
11812
11820
  exports.commaDecimal = commaDecimal;
11813
11821
 
11814
11822
  for (var _i3 = 0; _i3 < dotDecimal.length; _i3++) {
@@ -11849,7 +11857,7 @@ function blacklist(str, chars) {
11849
11857
 
11850
11858
  module.exports = exports.default;
11851
11859
  module.exports.default = exports.default;
11852
- },{"./util/assertString":134}],43:[function(require,module,exports){
11860
+ },{"./util/assertString":135}],43:[function(require,module,exports){
11853
11861
  "use strict";
11854
11862
 
11855
11863
  Object.defineProperty(exports, "__esModule", {
@@ -11866,18 +11874,24 @@ var _merge = _interopRequireDefault(require("./util/merge"));
11866
11874
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11867
11875
 
11868
11876
  var defaulContainsOptions = {
11869
- ignoreCase: false
11877
+ ignoreCase: false,
11878
+ minOccurrences: 1
11870
11879
  };
11871
11880
 
11872
11881
  function contains(str, elem, options) {
11873
11882
  (0, _assertString.default)(str);
11874
11883
  options = (0, _merge.default)(options, defaulContainsOptions);
11875
- return options.ignoreCase ? str.toLowerCase().indexOf((0, _toString.default)(elem).toLowerCase()) >= 0 : str.indexOf((0, _toString.default)(elem)) >= 0;
11884
+
11885
+ if (options.ignoreCase) {
11886
+ return str.toLowerCase().split((0, _toString.default)(elem).toLowerCase()).length > options.minOccurrences;
11887
+ }
11888
+
11889
+ return str.split((0, _toString.default)(elem)).length > options.minOccurrences;
11876
11890
  }
11877
11891
 
11878
11892
  module.exports = exports.default;
11879
11893
  module.exports.default = exports.default;
11880
- },{"./util/assertString":134,"./util/merge":136,"./util/toString":138}],44:[function(require,module,exports){
11894
+ },{"./util/assertString":135,"./util/merge":137,"./util/toString":139}],44:[function(require,module,exports){
11881
11895
  "use strict";
11882
11896
 
11883
11897
  Object.defineProperty(exports, "__esModule", {
@@ -11896,7 +11910,7 @@ function equals(str, comparison) {
11896
11910
 
11897
11911
  module.exports = exports.default;
11898
11912
  module.exports.default = exports.default;
11899
- },{"./util/assertString":134}],45:[function(require,module,exports){
11913
+ },{"./util/assertString":135}],45:[function(require,module,exports){
11900
11914
  "use strict";
11901
11915
 
11902
11916
  Object.defineProperty(exports, "__esModule", {
@@ -11915,7 +11929,7 @@ function escape(str) {
11915
11929
 
11916
11930
  module.exports = exports.default;
11917
11931
  module.exports.default = exports.default;
11918
- },{"./util/assertString":134}],46:[function(require,module,exports){
11932
+ },{"./util/assertString":135}],46:[function(require,module,exports){
11919
11933
  "use strict";
11920
11934
 
11921
11935
  Object.defineProperty(exports, "__esModule", {
@@ -11939,7 +11953,7 @@ function isAfter(str) {
11939
11953
 
11940
11954
  module.exports = exports.default;
11941
11955
  module.exports.default = exports.default;
11942
- },{"./toDate":128,"./util/assertString":134}],47:[function(require,module,exports){
11956
+ },{"./toDate":129,"./util/assertString":135}],47:[function(require,module,exports){
11943
11957
  "use strict";
11944
11958
 
11945
11959
  Object.defineProperty(exports, "__esModule", {
@@ -11980,7 +11994,7 @@ function isAlpha(_str) {
11980
11994
 
11981
11995
  var locales = Object.keys(_alpha.alpha);
11982
11996
  exports.locales = locales;
11983
- },{"./alpha":41,"./util/assertString":134}],48:[function(require,module,exports){
11997
+ },{"./alpha":41,"./util/assertString":135}],48:[function(require,module,exports){
11984
11998
  "use strict";
11985
11999
 
11986
12000
  Object.defineProperty(exports, "__esModule", {
@@ -12021,7 +12035,7 @@ function isAlphanumeric(_str) {
12021
12035
 
12022
12036
  var locales = Object.keys(_alpha.alphanumeric);
12023
12037
  exports.locales = locales;
12024
- },{"./alpha":41,"./util/assertString":134}],49:[function(require,module,exports){
12038
+ },{"./alpha":41,"./util/assertString":135}],49:[function(require,module,exports){
12025
12039
  "use strict";
12026
12040
 
12027
12041
  Object.defineProperty(exports, "__esModule", {
@@ -12044,7 +12058,7 @@ function isAscii(str) {
12044
12058
 
12045
12059
  module.exports = exports.default;
12046
12060
  module.exports.default = exports.default;
12047
- },{"./util/assertString":134}],50:[function(require,module,exports){
12061
+ },{"./util/assertString":135}],50:[function(require,module,exports){
12048
12062
  "use strict";
12049
12063
 
12050
12064
  Object.defineProperty(exports, "__esModule", {
@@ -12065,7 +12079,7 @@ function isBIC(str) {
12065
12079
  (0, _assertString.default)(str); // toUpperCase() should be removed when a new major version goes out that changes
12066
12080
  // the regex to [A-Z] (per the spec).
12067
12081
 
12068
- if (_isISO31661Alpha.CountryCodes.indexOf(str.slice(4, 6).toUpperCase()) < 0) {
12082
+ if (!_isISO31661Alpha.CountryCodes.has(str.slice(4, 6).toUpperCase())) {
12069
12083
  return false;
12070
12084
  }
12071
12085
 
@@ -12074,7 +12088,7 @@ function isBIC(str) {
12074
12088
 
12075
12089
  module.exports = exports.default;
12076
12090
  module.exports.default = exports.default;
12077
- },{"./isISO31661Alpha2":82,"./util/assertString":134}],51:[function(require,module,exports){
12091
+ },{"./isISO31661Alpha2":82,"./util/assertString":135}],51:[function(require,module,exports){
12078
12092
  "use strict";
12079
12093
 
12080
12094
  Object.defineProperty(exports, "__esModule", {
@@ -12101,7 +12115,7 @@ function isBase32(str) {
12101
12115
 
12102
12116
  module.exports = exports.default;
12103
12117
  module.exports.default = exports.default;
12104
- },{"./util/assertString":134}],52:[function(require,module,exports){
12118
+ },{"./util/assertString":135}],52:[function(require,module,exports){
12105
12119
  "use strict";
12106
12120
 
12107
12121
  Object.defineProperty(exports, "__esModule", {
@@ -12128,7 +12142,7 @@ function isBase58(str) {
12128
12142
 
12129
12143
  module.exports = exports.default;
12130
12144
  module.exports.default = exports.default;
12131
- },{"./util/assertString":134}],53:[function(require,module,exports){
12145
+ },{"./util/assertString":135}],53:[function(require,module,exports){
12132
12146
  "use strict";
12133
12147
 
12134
12148
  Object.defineProperty(exports, "__esModule", {
@@ -12167,7 +12181,7 @@ function isBase64(str, options) {
12167
12181
 
12168
12182
  module.exports = exports.default;
12169
12183
  module.exports.default = exports.default;
12170
- },{"./util/assertString":134,"./util/merge":136}],54:[function(require,module,exports){
12184
+ },{"./util/assertString":135,"./util/merge":137}],54:[function(require,module,exports){
12171
12185
  "use strict";
12172
12186
 
12173
12187
  Object.defineProperty(exports, "__esModule", {
@@ -12191,7 +12205,7 @@ function isBefore(str) {
12191
12205
 
12192
12206
  module.exports = exports.default;
12193
12207
  module.exports.default = exports.default;
12194
- },{"./toDate":128,"./util/assertString":134}],55:[function(require,module,exports){
12208
+ },{"./toDate":129,"./util/assertString":135}],55:[function(require,module,exports){
12195
12209
  "use strict";
12196
12210
 
12197
12211
  Object.defineProperty(exports, "__esModule", {
@@ -12203,14 +12217,26 @@ var _assertString = _interopRequireDefault(require("./util/assertString"));
12203
12217
 
12204
12218
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12205
12219
 
12220
+ var defaultOptions = {
12221
+ loose: false
12222
+ };
12223
+ var strictBooleans = ['true', 'false', '1', '0'];
12224
+ var looseBooleans = [].concat(strictBooleans, ['yes', 'no']);
12225
+
12206
12226
  function isBoolean(str) {
12227
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOptions;
12207
12228
  (0, _assertString.default)(str);
12208
- return ['true', 'false', '1', '0'].indexOf(str) >= 0;
12229
+
12230
+ if (options.loose) {
12231
+ return looseBooleans.includes(str.toLowerCase());
12232
+ }
12233
+
12234
+ return strictBooleans.includes(str);
12209
12235
  }
12210
12236
 
12211
12237
  module.exports = exports.default;
12212
12238
  module.exports.default = exports.default;
12213
- },{"./util/assertString":134}],56:[function(require,module,exports){
12239
+ },{"./util/assertString":135}],56:[function(require,module,exports){
12214
12240
  "use strict";
12215
12241
 
12216
12242
  Object.defineProperty(exports, "__esModule", {
@@ -12238,7 +12264,7 @@ function isBtcAddress(str) {
12238
12264
 
12239
12265
  module.exports = exports.default;
12240
12266
  module.exports.default = exports.default;
12241
- },{"./util/assertString":134}],57:[function(require,module,exports){
12267
+ },{"./util/assertString":135}],57:[function(require,module,exports){
12242
12268
  "use strict";
12243
12269
 
12244
12270
  Object.defineProperty(exports, "__esModule", {
@@ -12273,7 +12299,7 @@ function isByteLength(str, options) {
12273
12299
 
12274
12300
  module.exports = exports.default;
12275
12301
  module.exports.default = exports.default;
12276
- },{"./util/assertString":134}],58:[function(require,module,exports){
12302
+ },{"./util/assertString":135}],58:[function(require,module,exports){
12277
12303
  "use strict";
12278
12304
 
12279
12305
  Object.defineProperty(exports, "__esModule", {
@@ -12286,7 +12312,7 @@ var _assertString = _interopRequireDefault(require("./util/assertString"));
12286
12312
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12287
12313
 
12288
12314
  /* eslint-disable max-len */
12289
- var creditCard = /^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14})$/;
12315
+ var creditCard = /^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;
12290
12316
  /* eslint-enable max-len */
12291
12317
 
12292
12318
  function isCreditCard(str) {
@@ -12326,7 +12352,7 @@ function isCreditCard(str) {
12326
12352
 
12327
12353
  module.exports = exports.default;
12328
12354
  module.exports.default = exports.default;
12329
- },{"./util/assertString":134}],59:[function(require,module,exports){
12355
+ },{"./util/assertString":135}],59:[function(require,module,exports){
12330
12356
  "use strict";
12331
12357
 
12332
12358
  Object.defineProperty(exports, "__esModule", {
@@ -12418,7 +12444,7 @@ function isCurrency(str, options) {
12418
12444
 
12419
12445
  module.exports = exports.default;
12420
12446
  module.exports.default = exports.default;
12421
- },{"./util/assertString":134,"./util/merge":136}],60:[function(require,module,exports){
12447
+ },{"./util/assertString":135,"./util/merge":137}],60:[function(require,module,exports){
12422
12448
  "use strict";
12423
12449
 
12424
12450
  Object.defineProperty(exports, "__esModule", {
@@ -12472,7 +12498,7 @@ function isDataURI(str) {
12472
12498
 
12473
12499
  module.exports = exports.default;
12474
12500
  module.exports.default = exports.default;
12475
- },{"./util/assertString":134}],61:[function(require,module,exports){
12501
+ },{"./util/assertString":135}],61:[function(require,module,exports){
12476
12502
  "use strict";
12477
12503
 
12478
12504
  Object.defineProperty(exports, "__esModule", {
@@ -12505,7 +12531,7 @@ var default_date_options = {
12505
12531
  };
12506
12532
 
12507
12533
  function isValidFormat(format) {
12508
- return /(^(y{4}|y{2})[\/-](m{1,2})[\/-](d{1,2})$)|(^(m{1,2})[\/-](d{1,2})[\/-]((y{4}|y{2})$))|(^(d{1,2})[\/-](m{1,2})[\/-]((y{4}|y{2})$))/gi.test(format);
12534
+ return /(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(format);
12509
12535
  }
12510
12536
 
12511
12537
  function zip(date, format) {
@@ -12572,7 +12598,7 @@ function isDate(input, options) {
12572
12598
 
12573
12599
  module.exports = exports.default;
12574
12600
  module.exports.default = exports.default;
12575
- },{"./util/merge":136}],62:[function(require,module,exports){
12601
+ },{"./util/merge":137}],62:[function(require,module,exports){
12576
12602
  "use strict";
12577
12603
 
12578
12604
  Object.defineProperty(exports, "__esModule", {
@@ -12615,7 +12641,7 @@ function isDecimal(str, options) {
12615
12641
 
12616
12642
  module.exports = exports.default;
12617
12643
  module.exports.default = exports.default;
12618
- },{"./alpha":41,"./util/assertString":134,"./util/includes":135,"./util/merge":136}],63:[function(require,module,exports){
12644
+ },{"./alpha":41,"./util/assertString":135,"./util/includes":136,"./util/merge":137}],63:[function(require,module,exports){
12619
12645
  "use strict";
12620
12646
 
12621
12647
  Object.defineProperty(exports, "__esModule", {
@@ -12636,7 +12662,7 @@ function isDivisibleBy(str, num) {
12636
12662
 
12637
12663
  module.exports = exports.default;
12638
12664
  module.exports.default = exports.default;
12639
- },{"./toFloat":129,"./util/assertString":134}],64:[function(require,module,exports){
12665
+ },{"./toFloat":130,"./util/assertString":135}],64:[function(require,module,exports){
12640
12666
  "use strict";
12641
12667
 
12642
12668
  Object.defineProperty(exports, "__esModule", {
@@ -12722,7 +12748,7 @@ function isEAN(str) {
12722
12748
 
12723
12749
  module.exports = exports.default;
12724
12750
  module.exports.default = exports.default;
12725
- },{"./util/assertString":134}],65:[function(require,module,exports){
12751
+ },{"./util/assertString":135}],65:[function(require,module,exports){
12726
12752
  "use strict";
12727
12753
 
12728
12754
  Object.defineProperty(exports, "__esModule", {
@@ -12748,7 +12774,8 @@ var default_email_options = {
12748
12774
  allow_utf8_local_part: true,
12749
12775
  require_tld: true,
12750
12776
  blacklisted_chars: '',
12751
- ignore_max_length: false
12777
+ ignore_max_length: false,
12778
+ host_blacklist: []
12752
12779
  };
12753
12780
  /* eslint-disable max-len */
12754
12781
 
@@ -12832,9 +12859,14 @@ function isEmail(str, options) {
12832
12859
 
12833
12860
  var parts = str.split('@');
12834
12861
  var domain = parts.pop();
12835
- var user = parts.join('@');
12836
12862
  var lower_domain = domain.toLowerCase();
12837
12863
 
12864
+ if (options.host_blacklist.includes(lower_domain)) {
12865
+ return false;
12866
+ }
12867
+
12868
+ var user = parts.join('@');
12869
+
12838
12870
  if (options.domain_specific_validation && (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com')) {
12839
12871
  /*
12840
12872
  Previously we removed dots for gmail addresses before validating.
@@ -12847,7 +12879,7 @@ function isEmail(str, options) {
12847
12879
 
12848
12880
  var username = user.split('+')[0]; // Dots are not included in gmail length restriction
12849
12881
 
12850
- if (!(0, _isByteLength.default)(username.replace('.', ''), {
12882
+ if (!(0, _isByteLength.default)(username.replace(/\./g, ''), {
12851
12883
  min: 6,
12852
12884
  max: 30
12853
12885
  })) {
@@ -12914,7 +12946,7 @@ function isEmail(str, options) {
12914
12946
 
12915
12947
  module.exports = exports.default;
12916
12948
  module.exports.default = exports.default;
12917
- },{"./isByteLength":57,"./isFQDN":68,"./isIP":78,"./util/assertString":134,"./util/merge":136}],66:[function(require,module,exports){
12949
+ },{"./isByteLength":57,"./isFQDN":68,"./isIP":78,"./util/assertString":135,"./util/merge":137}],66:[function(require,module,exports){
12918
12950
  "use strict";
12919
12951
 
12920
12952
  Object.defineProperty(exports, "__esModule", {
@@ -12940,7 +12972,7 @@ function isEmpty(str, options) {
12940
12972
 
12941
12973
  module.exports = exports.default;
12942
12974
  module.exports.default = exports.default;
12943
- },{"./util/assertString":134,"./util/merge":136}],67:[function(require,module,exports){
12975
+ },{"./util/assertString":135,"./util/merge":137}],67:[function(require,module,exports){
12944
12976
  "use strict";
12945
12977
 
12946
12978
  Object.defineProperty(exports, "__esModule", {
@@ -12961,7 +12993,7 @@ function isEthereumAddress(str) {
12961
12993
 
12962
12994
  module.exports = exports.default;
12963
12995
  module.exports.default = exports.default;
12964
- },{"./util/assertString":134}],68:[function(require,module,exports){
12996
+ },{"./util/assertString":135}],68:[function(require,module,exports){
12965
12997
  "use strict";
12966
12998
 
12967
12999
  Object.defineProperty(exports, "__esModule", {
@@ -12979,7 +13011,8 @@ var default_fqdn_options = {
12979
13011
  require_tld: true,
12980
13012
  allow_underscores: false,
12981
13013
  allow_trailing_dot: false,
12982
- allow_numeric_tld: false
13014
+ allow_numeric_tld: false,
13015
+ allow_wildcard: false
12983
13016
  };
12984
13017
 
12985
13018
  function isFQDN(str, options) {
@@ -12990,6 +13023,12 @@ function isFQDN(str, options) {
12990
13023
  if (options.allow_trailing_dot && str[str.length - 1] === '.') {
12991
13024
  str = str.substring(0, str.length - 1);
12992
13025
  }
13026
+ /* Remove the optional wildcard before checking validity */
13027
+
13028
+
13029
+ if (options.allow_wildcard === true && str.indexOf('*.') === 0) {
13030
+ str = str.substring(2);
13031
+ }
12993
13032
 
12994
13033
  var parts = str.split('.');
12995
13034
  var tld = parts[parts.length - 1];
@@ -13000,12 +13039,12 @@ function isFQDN(str, options) {
13000
13039
  return false;
13001
13040
  }
13002
13041
 
13003
- if (!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {
13042
+ if (!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {
13004
13043
  return false;
13005
- } // disallow spaces && special characers
13044
+ } // disallow spaces
13006
13045
 
13007
13046
 
13008
- if (/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20\u00A9\uFFFD]/.test(tld)) {
13047
+ if (/\s/.test(tld)) {
13009
13048
  return false;
13010
13049
  }
13011
13050
  } // reject numeric TLDs
@@ -13044,7 +13083,7 @@ function isFQDN(str, options) {
13044
13083
 
13045
13084
  module.exports = exports.default;
13046
13085
  module.exports.default = exports.default;
13047
- },{"./util/assertString":134,"./util/merge":136}],69:[function(require,module,exports){
13086
+ },{"./util/assertString":135,"./util/merge":137}],69:[function(require,module,exports){
13048
13087
  "use strict";
13049
13088
 
13050
13089
  Object.defineProperty(exports, "__esModule", {
@@ -13074,7 +13113,7 @@ function isFloat(str, options) {
13074
13113
 
13075
13114
  var locales = Object.keys(_alpha.decimal);
13076
13115
  exports.locales = locales;
13077
- },{"./alpha":41,"./util/assertString":134}],70:[function(require,module,exports){
13116
+ },{"./alpha":41,"./util/assertString":135}],70:[function(require,module,exports){
13078
13117
  "use strict";
13079
13118
 
13080
13119
  Object.defineProperty(exports, "__esModule", {
@@ -13094,7 +13133,7 @@ function isFullWidth(str) {
13094
13133
  (0, _assertString.default)(str);
13095
13134
  return fullWidth.test(str);
13096
13135
  }
13097
- },{"./util/assertString":134}],71:[function(require,module,exports){
13136
+ },{"./util/assertString":135}],71:[function(require,module,exports){
13098
13137
  "use strict";
13099
13138
 
13100
13139
  Object.defineProperty(exports, "__esModule", {
@@ -13123,7 +13162,7 @@ function isHSL(str) {
13123
13162
 
13124
13163
  module.exports = exports.default;
13125
13164
  module.exports.default = exports.default;
13126
- },{"./util/assertString":134}],72:[function(require,module,exports){
13165
+ },{"./util/assertString":135}],72:[function(require,module,exports){
13127
13166
  "use strict";
13128
13167
 
13129
13168
  Object.defineProperty(exports, "__esModule", {
@@ -13143,7 +13182,7 @@ function isHalfWidth(str) {
13143
13182
  (0, _assertString.default)(str);
13144
13183
  return halfWidth.test(str);
13145
13184
  }
13146
- },{"./util/assertString":134}],73:[function(require,module,exports){
13185
+ },{"./util/assertString":135}],73:[function(require,module,exports){
13147
13186
  "use strict";
13148
13187
 
13149
13188
  Object.defineProperty(exports, "__esModule", {
@@ -13179,7 +13218,7 @@ function isHash(str, algorithm) {
13179
13218
 
13180
13219
  module.exports = exports.default;
13181
13220
  module.exports.default = exports.default;
13182
- },{"./util/assertString":134}],74:[function(require,module,exports){
13221
+ },{"./util/assertString":135}],74:[function(require,module,exports){
13183
13222
  "use strict";
13184
13223
 
13185
13224
  Object.defineProperty(exports, "__esModule", {
@@ -13200,7 +13239,7 @@ function isHexColor(str) {
13200
13239
 
13201
13240
  module.exports = exports.default;
13202
13241
  module.exports.default = exports.default;
13203
- },{"./util/assertString":134}],75:[function(require,module,exports){
13242
+ },{"./util/assertString":135}],75:[function(require,module,exports){
13204
13243
  "use strict";
13205
13244
 
13206
13245
  Object.defineProperty(exports, "__esModule", {
@@ -13221,13 +13260,14 @@ function isHexadecimal(str) {
13221
13260
 
13222
13261
  module.exports = exports.default;
13223
13262
  module.exports.default = exports.default;
13224
- },{"./util/assertString":134}],76:[function(require,module,exports){
13263
+ },{"./util/assertString":135}],76:[function(require,module,exports){
13225
13264
  "use strict";
13226
13265
 
13227
13266
  Object.defineProperty(exports, "__esModule", {
13228
13267
  value: true
13229
13268
  });
13230
13269
  exports.default = isIBAN;
13270
+ exports.locales = void 0;
13231
13271
 
13232
13272
  var _assertString = _interopRequireDefault(require("./util/assertString"));
13233
13273
 
@@ -13369,9 +13409,9 @@ function isIBAN(str) {
13369
13409
  return hasValidIbanFormat(str) && hasValidIbanChecksum(str);
13370
13410
  }
13371
13411
 
13372
- module.exports = exports.default;
13373
- module.exports.default = exports.default;
13374
- },{"./util/assertString":134}],77:[function(require,module,exports){
13412
+ var locales = Object.keys(ibanRegexThroughCountryCode);
13413
+ exports.locales = locales;
13414
+ },{"./util/assertString":135}],77:[function(require,module,exports){
13375
13415
  "use strict";
13376
13416
 
13377
13417
  Object.defineProperty(exports, "__esModule", {
@@ -13433,7 +13473,7 @@ function isIMEI(str, options) {
13433
13473
 
13434
13474
  module.exports = exports.default;
13435
13475
  module.exports.default = exports.default;
13436
- },{"./util/assertString":134}],78:[function(require,module,exports){
13476
+ },{"./util/assertString":135}],78:[function(require,module,exports){
13437
13477
  "use strict";
13438
13478
 
13439
13479
  Object.defineProperty(exports, "__esModule", {
@@ -13509,7 +13549,7 @@ function isIP(str) {
13509
13549
 
13510
13550
  module.exports = exports.default;
13511
13551
  module.exports.default = exports.default;
13512
- },{"./util/assertString":134}],79:[function(require,module,exports){
13552
+ },{"./util/assertString":135}],79:[function(require,module,exports){
13513
13553
  "use strict";
13514
13554
 
13515
13555
  Object.defineProperty(exports, "__esModule", {
@@ -13572,7 +13612,7 @@ function isIPRange(str) {
13572
13612
 
13573
13613
  module.exports = exports.default;
13574
13614
  module.exports.default = exports.default;
13575
- },{"./isIP":78,"./util/assertString":134}],80:[function(require,module,exports){
13615
+ },{"./isIP":78,"./util/assertString":135}],80:[function(require,module,exports){
13576
13616
  "use strict";
13577
13617
 
13578
13618
  Object.defineProperty(exports, "__esModule", {
@@ -13638,7 +13678,7 @@ function isISBN(str) {
13638
13678
 
13639
13679
  module.exports = exports.default;
13640
13680
  module.exports.default = exports.default;
13641
- },{"./util/assertString":134}],81:[function(require,module,exports){
13681
+ },{"./util/assertString":135}],81:[function(require,module,exports){
13642
13682
  "use strict";
13643
13683
 
13644
13684
  Object.defineProperty(exports, "__esModule", {
@@ -13712,7 +13752,7 @@ function isISIN(str) {
13712
13752
 
13713
13753
  module.exports = exports.default;
13714
13754
  module.exports.default = exports.default;
13715
- },{"./util/assertString":134}],82:[function(require,module,exports){
13755
+ },{"./util/assertString":135}],82:[function(require,module,exports){
13716
13756
  "use strict";
13717
13757
 
13718
13758
  Object.defineProperty(exports, "__esModule", {
@@ -13726,16 +13766,16 @@ var _assertString = _interopRequireDefault(require("./util/assertString"));
13726
13766
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13727
13767
 
13728
13768
  // from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
13729
- var validISO31661Alpha2CountriesCodes = ['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW'];
13769
+ var validISO31661Alpha2CountriesCodes = new Set(['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']);
13730
13770
 
13731
13771
  function isISO31661Alpha2(str) {
13732
13772
  (0, _assertString.default)(str);
13733
- return validISO31661Alpha2CountriesCodes.indexOf(str.toUpperCase()) >= 0;
13773
+ return validISO31661Alpha2CountriesCodes.has(str.toUpperCase());
13734
13774
  }
13735
13775
 
13736
13776
  var CountryCodes = validISO31661Alpha2CountriesCodes;
13737
13777
  exports.CountryCodes = CountryCodes;
13738
- },{"./util/assertString":134}],83:[function(require,module,exports){
13778
+ },{"./util/assertString":135}],83:[function(require,module,exports){
13739
13779
  "use strict";
13740
13780
 
13741
13781
  Object.defineProperty(exports, "__esModule", {
@@ -13745,21 +13785,42 @@ exports.default = isISO31661Alpha3;
13745
13785
 
13746
13786
  var _assertString = _interopRequireDefault(require("./util/assertString"));
13747
13787
 
13748
- var _includes = _interopRequireDefault(require("./util/includes"));
13749
-
13750
13788
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13751
13789
 
13752
13790
  // from https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
13753
- var validISO31661Alpha3CountriesCodes = ['AFG', 'ALA', 'ALB', 'DZA', 'ASM', 'AND', 'AGO', 'AIA', 'ATA', 'ATG', 'ARG', 'ARM', 'ABW', 'AUS', 'AUT', 'AZE', 'BHS', 'BHR', 'BGD', 'BRB', 'BLR', 'BEL', 'BLZ', 'BEN', 'BMU', 'BTN', 'BOL', 'BES', 'BIH', 'BWA', 'BVT', 'BRA', 'IOT', 'BRN', 'BGR', 'BFA', 'BDI', 'KHM', 'CMR', 'CAN', 'CPV', 'CYM', 'CAF', 'TCD', 'CHL', 'CHN', 'CXR', 'CCK', 'COL', 'COM', 'COG', 'COD', 'COK', 'CRI', 'CIV', 'HRV', 'CUB', 'CUW', 'CYP', 'CZE', 'DNK', 'DJI', 'DMA', 'DOM', 'ECU', 'EGY', 'SLV', 'GNQ', 'ERI', 'EST', 'ETH', 'FLK', 'FRO', 'FJI', 'FIN', 'FRA', 'GUF', 'PYF', 'ATF', 'GAB', 'GMB', 'GEO', 'DEU', 'GHA', 'GIB', 'GRC', 'GRL', 'GRD', 'GLP', 'GUM', 'GTM', 'GGY', 'GIN', 'GNB', 'GUY', 'HTI', 'HMD', 'VAT', 'HND', 'HKG', 'HUN', 'ISL', 'IND', 'IDN', 'IRN', 'IRQ', 'IRL', 'IMN', 'ISR', 'ITA', 'JAM', 'JPN', 'JEY', 'JOR', 'KAZ', 'KEN', 'KIR', 'PRK', 'KOR', 'KWT', 'KGZ', 'LAO', 'LVA', 'LBN', 'LSO', 'LBR', 'LBY', 'LIE', 'LTU', 'LUX', 'MAC', 'MKD', 'MDG', 'MWI', 'MYS', 'MDV', 'MLI', 'MLT', 'MHL', 'MTQ', 'MRT', 'MUS', 'MYT', 'MEX', 'FSM', 'MDA', 'MCO', 'MNG', 'MNE', 'MSR', 'MAR', 'MOZ', 'MMR', 'NAM', 'NRU', 'NPL', 'NLD', 'NCL', 'NZL', 'NIC', 'NER', 'NGA', 'NIU', 'NFK', 'MNP', 'NOR', 'OMN', 'PAK', 'PLW', 'PSE', 'PAN', 'PNG', 'PRY', 'PER', 'PHL', 'PCN', 'POL', 'PRT', 'PRI', 'QAT', 'REU', 'ROU', 'RUS', 'RWA', 'BLM', 'SHN', 'KNA', 'LCA', 'MAF', 'SPM', 'VCT', 'WSM', 'SMR', 'STP', 'SAU', 'SEN', 'SRB', 'SYC', 'SLE', 'SGP', 'SXM', 'SVK', 'SVN', 'SLB', 'SOM', 'ZAF', 'SGS', 'SSD', 'ESP', 'LKA', 'SDN', 'SUR', 'SJM', 'SWZ', 'SWE', 'CHE', 'SYR', 'TWN', 'TJK', 'TZA', 'THA', 'TLS', 'TGO', 'TKL', 'TON', 'TTO', 'TUN', 'TUR', 'TKM', 'TCA', 'TUV', 'UGA', 'UKR', 'ARE', 'GBR', 'USA', 'UMI', 'URY', 'UZB', 'VUT', 'VEN', 'VNM', 'VGB', 'VIR', 'WLF', 'ESH', 'YEM', 'ZMB', 'ZWE'];
13791
+ var validISO31661Alpha3CountriesCodes = new Set(['AFG', 'ALA', 'ALB', 'DZA', 'ASM', 'AND', 'AGO', 'AIA', 'ATA', 'ATG', 'ARG', 'ARM', 'ABW', 'AUS', 'AUT', 'AZE', 'BHS', 'BHR', 'BGD', 'BRB', 'BLR', 'BEL', 'BLZ', 'BEN', 'BMU', 'BTN', 'BOL', 'BES', 'BIH', 'BWA', 'BVT', 'BRA', 'IOT', 'BRN', 'BGR', 'BFA', 'BDI', 'KHM', 'CMR', 'CAN', 'CPV', 'CYM', 'CAF', 'TCD', 'CHL', 'CHN', 'CXR', 'CCK', 'COL', 'COM', 'COG', 'COD', 'COK', 'CRI', 'CIV', 'HRV', 'CUB', 'CUW', 'CYP', 'CZE', 'DNK', 'DJI', 'DMA', 'DOM', 'ECU', 'EGY', 'SLV', 'GNQ', 'ERI', 'EST', 'ETH', 'FLK', 'FRO', 'FJI', 'FIN', 'FRA', 'GUF', 'PYF', 'ATF', 'GAB', 'GMB', 'GEO', 'DEU', 'GHA', 'GIB', 'GRC', 'GRL', 'GRD', 'GLP', 'GUM', 'GTM', 'GGY', 'GIN', 'GNB', 'GUY', 'HTI', 'HMD', 'VAT', 'HND', 'HKG', 'HUN', 'ISL', 'IND', 'IDN', 'IRN', 'IRQ', 'IRL', 'IMN', 'ISR', 'ITA', 'JAM', 'JPN', 'JEY', 'JOR', 'KAZ', 'KEN', 'KIR', 'PRK', 'KOR', 'KWT', 'KGZ', 'LAO', 'LVA', 'LBN', 'LSO', 'LBR', 'LBY', 'LIE', 'LTU', 'LUX', 'MAC', 'MKD', 'MDG', 'MWI', 'MYS', 'MDV', 'MLI', 'MLT', 'MHL', 'MTQ', 'MRT', 'MUS', 'MYT', 'MEX', 'FSM', 'MDA', 'MCO', 'MNG', 'MNE', 'MSR', 'MAR', 'MOZ', 'MMR', 'NAM', 'NRU', 'NPL', 'NLD', 'NCL', 'NZL', 'NIC', 'NER', 'NGA', 'NIU', 'NFK', 'MNP', 'NOR', 'OMN', 'PAK', 'PLW', 'PSE', 'PAN', 'PNG', 'PRY', 'PER', 'PHL', 'PCN', 'POL', 'PRT', 'PRI', 'QAT', 'REU', 'ROU', 'RUS', 'RWA', 'BLM', 'SHN', 'KNA', 'LCA', 'MAF', 'SPM', 'VCT', 'WSM', 'SMR', 'STP', 'SAU', 'SEN', 'SRB', 'SYC', 'SLE', 'SGP', 'SXM', 'SVK', 'SVN', 'SLB', 'SOM', 'ZAF', 'SGS', 'SSD', 'ESP', 'LKA', 'SDN', 'SUR', 'SJM', 'SWZ', 'SWE', 'CHE', 'SYR', 'TWN', 'TJK', 'TZA', 'THA', 'TLS', 'TGO', 'TKL', 'TON', 'TTO', 'TUN', 'TUR', 'TKM', 'TCA', 'TUV', 'UGA', 'UKR', 'ARE', 'GBR', 'USA', 'UMI', 'URY', 'UZB', 'VUT', 'VEN', 'VNM', 'VGB', 'VIR', 'WLF', 'ESH', 'YEM', 'ZMB', 'ZWE']);
13754
13792
 
13755
13793
  function isISO31661Alpha3(str) {
13756
13794
  (0, _assertString.default)(str);
13757
- return (0, _includes.default)(validISO31661Alpha3CountriesCodes, str.toUpperCase());
13795
+ return validISO31661Alpha3CountriesCodes.has(str.toUpperCase());
13758
13796
  }
13759
13797
 
13760
13798
  module.exports = exports.default;
13761
13799
  module.exports.default = exports.default;
13762
- },{"./util/assertString":134,"./util/includes":135}],84:[function(require,module,exports){
13800
+ },{"./util/assertString":135}],84:[function(require,module,exports){
13801
+ "use strict";
13802
+
13803
+ Object.defineProperty(exports, "__esModule", {
13804
+ value: true
13805
+ });
13806
+ exports.default = isISO4217;
13807
+ exports.CurrencyCodes = void 0;
13808
+
13809
+ var _assertString = _interopRequireDefault(require("./util/assertString"));
13810
+
13811
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13812
+
13813
+ // from https://en.wikipedia.org/wiki/ISO_4217
13814
+ var validISO4217CurrencyCodes = new Set(['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BOV', 'BRL', 'BSD', 'BTN', 'BWP', 'BYN', 'BZD', 'CAD', 'CDF', 'CHE', 'CHF', 'CHW', 'CLF', 'CLP', 'CNY', 'COP', 'COU', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', 'GBP', 'GEL', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'INR', 'IQD', 'IRR', 'ISK', 'JMD', 'JOD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRU', 'MUR', 'MVR', 'MWK', 'MXN', 'MXV', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SRD', 'SSP', 'STN', 'SVC', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TWD', 'TZS', 'UAH', 'UGX', 'USD', 'USN', 'UYI', 'UYU', 'UYW', 'UZS', 'VES', 'VND', 'VUV', 'WST', 'XAF', 'XAG', 'XAU', 'XBA', 'XBB', 'XBC', 'XBD', 'XCD', 'XDR', 'XOF', 'XPD', 'XPF', 'XPT', 'XSU', 'XTS', 'XUA', 'XXX', 'YER', 'ZAR', 'ZMW', 'ZWL']);
13815
+
13816
+ function isISO4217(str) {
13817
+ (0, _assertString.default)(str);
13818
+ return validISO4217CurrencyCodes.has(str.toUpperCase());
13819
+ }
13820
+
13821
+ var CurrencyCodes = validISO4217CurrencyCodes;
13822
+ exports.CurrencyCodes = CurrencyCodes;
13823
+ },{"./util/assertString":135}],85:[function(require,module,exports){
13763
13824
  "use strict";
13764
13825
 
13765
13826
  Object.defineProperty(exports, "__esModule", {
@@ -13819,7 +13880,7 @@ function isISO8601(str) {
13819
13880
 
13820
13881
  module.exports = exports.default;
13821
13882
  module.exports.default = exports.default;
13822
- },{"./util/assertString":134}],85:[function(require,module,exports){
13883
+ },{"./util/assertString":135}],86:[function(require,module,exports){
13823
13884
  "use strict";
13824
13885
 
13825
13886
  Object.defineProperty(exports, "__esModule", {
@@ -13841,7 +13902,7 @@ function isISRC(str) {
13841
13902
 
13842
13903
  module.exports = exports.default;
13843
13904
  module.exports.default = exports.default;
13844
- },{"./util/assertString":134}],86:[function(require,module,exports){
13905
+ },{"./util/assertString":135}],87:[function(require,module,exports){
13845
13906
  "use strict";
13846
13907
 
13847
13908
  Object.defineProperty(exports, "__esModule", {
@@ -13879,7 +13940,7 @@ function isISSN(str) {
13879
13940
 
13880
13941
  module.exports = exports.default;
13881
13942
  module.exports.default = exports.default;
13882
- },{"./util/assertString":134}],87:[function(require,module,exports){
13943
+ },{"./util/assertString":135}],88:[function(require,module,exports){
13883
13944
  "use strict";
13884
13945
 
13885
13946
  Object.defineProperty(exports, "__esModule", {
@@ -13889,9 +13950,44 @@ exports.default = isIdentityCard;
13889
13950
 
13890
13951
  var _assertString = _interopRequireDefault(require("./util/assertString"));
13891
13952
 
13953
+ var _isInt = _interopRequireDefault(require("./isInt"));
13954
+
13892
13955
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13893
13956
 
13894
13957
  var validators = {
13958
+ PL: function PL(str) {
13959
+ (0, _assertString.default)(str);
13960
+ var weightOfDigits = {
13961
+ 1: 1,
13962
+ 2: 3,
13963
+ 3: 7,
13964
+ 4: 9,
13965
+ 5: 1,
13966
+ 6: 3,
13967
+ 7: 7,
13968
+ 8: 9,
13969
+ 9: 1,
13970
+ 10: 3,
13971
+ 11: 0
13972
+ };
13973
+
13974
+ if (str != null && str.length === 11 && (0, _isInt.default)(str, {
13975
+ allow_leading_zeroes: true
13976
+ })) {
13977
+ var digits = str.split('').slice(0, -1);
13978
+ var sum = digits.reduce(function (acc, digit, index) {
13979
+ return acc + Number(digit) * weightOfDigits[index + 1];
13980
+ }, 0);
13981
+ var modulo = sum % 10;
13982
+ var lastDigit = Number(str.charAt(str.length - 1));
13983
+
13984
+ if (modulo === 0 && lastDigit === 0 || lastDigit === 10 - modulo) {
13985
+ return true;
13986
+ }
13987
+ }
13988
+
13989
+ return false;
13990
+ },
13895
13991
  ES: function ES(str) {
13896
13992
  (0, _assertString.default)(str);
13897
13993
  var DNI = /^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/;
@@ -13914,6 +14010,24 @@ var validators = {
13914
14010
  });
13915
14011
  return sanitized.endsWith(controlDigits[number % 23]);
13916
14012
  },
14013
+ FI: function FI(str) {
14014
+ // https://dvv.fi/en/personal-identity-code#:~:text=control%20character%20for%20a-,personal,-identity%20code%20calculated
14015
+ (0, _assertString.default)(str);
14016
+
14017
+ if (str.length !== 11) {
14018
+ return false;
14019
+ }
14020
+
14021
+ if (!str.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/)) {
14022
+ return false;
14023
+ }
14024
+
14025
+ var checkDigits = '0123456789ABCDEFHJKLMNPRSTUVWXY';
14026
+ var idAsNumber = parseInt(str.slice(0, 6), 10) * 1000 + parseInt(str.slice(7, 10), 10);
14027
+ var remainder = idAsNumber % 31;
14028
+ var checkDigit = checkDigits[remainder];
14029
+ return checkDigit === str.slice(10, 11);
14030
+ },
13917
14031
  IN: function IN(str) {
13918
14032
  var DNI = /^[1-9]\d{3}\s?\d{4}\s?\d{4}$/; // multiplication table
13919
14033
 
@@ -13966,6 +14080,23 @@ var validators = {
13966
14080
  if (k1 !== f[9] || k2 !== f[10]) return false;
13967
14081
  return true;
13968
14082
  },
14083
+ TH: function TH(str) {
14084
+ if (!str.match(/^[1-8]\d{12}$/)) return false; // validate check digit
14085
+
14086
+ var sum = 0;
14087
+
14088
+ for (var i = 0; i < 12; i++) {
14089
+ sum += parseInt(str[i], 10) * (13 - i);
14090
+ }
14091
+
14092
+ return str[12] === ((11 - sum % 11) % 10).toString();
14093
+ },
14094
+ LK: function LK(str) {
14095
+ var old_nic = /^[1-9]\d{8}[vx]$/i;
14096
+ var new_nic = /^[1-9]\d{11}$/i;
14097
+ if (str.length === 10 && old_nic.test(str)) return true;else if (str.length === 12 && new_nic.test(str)) return true;
14098
+ return false;
14099
+ },
13969
14100
  'he-IL': function heIL(str) {
13970
14101
  var DNI = /^\d{9}$/; // sanitize user input
13971
14102
 
@@ -14194,7 +14325,7 @@ function isIdentityCard(str, locale) {
14194
14325
 
14195
14326
  module.exports = exports.default;
14196
14327
  module.exports.default = exports.default;
14197
- },{"./util/assertString":134}],88:[function(require,module,exports){
14328
+ },{"./isInt":90,"./util/assertString":135}],89:[function(require,module,exports){
14198
14329
  "use strict";
14199
14330
 
14200
14331
  Object.defineProperty(exports, "__esModule", {
@@ -14237,7 +14368,7 @@ function isIn(str, options) {
14237
14368
 
14238
14369
  module.exports = exports.default;
14239
14370
  module.exports.default = exports.default;
14240
- },{"./util/assertString":134,"./util/toString":138}],89:[function(require,module,exports){
14371
+ },{"./util/assertString":135,"./util/toString":139}],90:[function(require,module,exports){
14241
14372
  "use strict";
14242
14373
 
14243
14374
  Object.defineProperty(exports, "__esModule", {
@@ -14268,7 +14399,7 @@ function isInt(str, options) {
14268
14399
 
14269
14400
  module.exports = exports.default;
14270
14401
  module.exports.default = exports.default;
14271
- },{"./util/assertString":134}],90:[function(require,module,exports){
14402
+ },{"./util/assertString":135}],91:[function(require,module,exports){
14272
14403
  "use strict";
14273
14404
 
14274
14405
  Object.defineProperty(exports, "__esModule", {
@@ -14310,7 +14441,7 @@ function isJSON(str, options) {
14310
14441
 
14311
14442
  module.exports = exports.default;
14312
14443
  module.exports.default = exports.default;
14313
- },{"./util/assertString":134,"./util/merge":136}],91:[function(require,module,exports){
14444
+ },{"./util/assertString":135,"./util/merge":137}],92:[function(require,module,exports){
14314
14445
  "use strict";
14315
14446
 
14316
14447
  Object.defineProperty(exports, "__esModule", {
@@ -14342,7 +14473,7 @@ function isJWT(str) {
14342
14473
 
14343
14474
  module.exports = exports.default;
14344
14475
  module.exports.default = exports.default;
14345
- },{"./isBase64":53,"./util/assertString":134}],92:[function(require,module,exports){
14476
+ },{"./isBase64":53,"./util/assertString":135}],93:[function(require,module,exports){
14346
14477
  "use strict";
14347
14478
 
14348
14479
  Object.defineProperty(exports, "__esModule", {
@@ -14380,7 +14511,7 @@ function isLatLong(str, options) {
14380
14511
 
14381
14512
  module.exports = exports.default;
14382
14513
  module.exports.default = exports.default;
14383
- },{"./util/assertString":134,"./util/merge":136}],93:[function(require,module,exports){
14514
+ },{"./util/assertString":135,"./util/merge":137}],94:[function(require,module,exports){
14384
14515
  "use strict";
14385
14516
 
14386
14517
  Object.defineProperty(exports, "__esModule", {
@@ -14416,7 +14547,7 @@ function isLength(str, options) {
14416
14547
 
14417
14548
  module.exports = exports.default;
14418
14549
  module.exports.default = exports.default;
14419
- },{"./util/assertString":134}],94:[function(require,module,exports){
14550
+ },{"./util/assertString":135}],95:[function(require,module,exports){
14420
14551
  "use strict";
14421
14552
 
14422
14553
  Object.defineProperty(exports, "__esModule", {
@@ -14429,12 +14560,18 @@ var _assertString = _interopRequireDefault(require("./util/assertString"));
14429
14560
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14430
14561
 
14431
14562
  var validators = {
14563
+ 'cs-CZ': function csCZ(str) {
14564
+ return /^(([ABCDEFHKIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(str);
14565
+ },
14432
14566
  'de-DE': function deDE(str) {
14433
14567
  return /^((AW|UL|AK|GA|AÖ|LF|AZ|AM|AS|ZE|AN|AB|A|KG|KH|BA|EW|BZ|HY|KM|BT|HP|B|BC|BI|BO|FN|TT|ÜB|BN|AH|BS|FR|HB|ZZ|BB|BK|BÖ|OC|OK|CW|CE|C|CO|LH|CB|KW|LC|LN|DA|DI|DE|DH|SY|NÖ|DO|DD|DU|DN|D|EI|EA|EE|FI|EM|EL|EN|PF|ED|EF|ER|AU|ZP|E|ES|NT|EU|FL|FO|FT|FF|F|FS|FD|FÜ|GE|G|GI|GF|GS|ZR|GG|GP|GR|NY|ZI|GÖ|GZ|GT|HA|HH|HM|HU|WL|HZ|WR|RN|HK|HD|HN|HS|GK|HE|HF|RZ|HI|HG|HO|HX|IK|IL|IN|J|JL|KL|KA|KS|KF|KE|KI|KT|KO|KN|KR|KC|KU|K|LD|LL|LA|L|OP|LM|LI|LB|LU|LÖ|HL|LG|MD|GN|MZ|MA|ML|MR|MY|AT|DM|MC|NZ|RM|RG|MM|ME|MB|MI|FG|DL|HC|MW|RL|MK|MG|MÜ|WS|MH|M|MS|NU|NB|ND|NM|NK|NW|NR|NI|NF|DZ|EB|OZ|TG|TO|N|OA|GM|OB|CA|EH|FW|OF|OL|OE|OG|BH|LR|OS|AA|GD|OH|KY|NP|WK|PB|PA|PE|PI|PS|P|PM|PR|RA|RV|RE|R|H|SB|WN|RS|RD|RT|BM|NE|GV|RP|SU|GL|RO|GÜ|RH|EG|RW|PN|SK|MQ|RU|SZ|RI|SL|SM|SC|HR|FZ|VS|SW|SN|CR|SE|SI|SO|LP|SG|NH|SP|IZ|ST|BF|TE|HV|OD|SR|S|AC|DW|ZW|TF|TS|TR|TÜ|UM|PZ|TP|UE|UN|UH|MN|KK|VB|V|AE|PL|RC|VG|GW|PW|VR|VK|KB|WA|WT|BE|WM|WE|AP|MO|WW|FB|WZ|WI|WB|JE|WF|WO|W|WÜ|BL|Z|GC)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(AIC|FDB|ABG|SLN|SAW|KLZ|BUL|ESB|NAB|SUL|WST|ABI|AZE|BTF|KÖT|DKB|FEU|ROT|ALZ|SMÜ|WER|AUR|NOR|DÜW|BRK|HAB|TÖL|WOR|BAD|BAR|BER|BIW|EBS|KEM|MÜB|PEG|BGL|BGD|REI|WIL|BKS|BIR|WAT|BOR|BOH|BOT|BRB|BLK|HHM|NEB|NMB|WSF|LEO|HDL|WMS|WZL|BÜS|CHA|KÖZ|ROD|WÜM|CLP|NEC|COC|ZEL|COE|CUX|DAH|LDS|DEG|DEL|RSL|DLG|DGF|LAN|HEI|MED|DON|KIB|ROK|JÜL|MON|SLE|EBE|EIC|HIG|WBS|BIT|PRÜ|LIB|EMD|WIT|ERH|HÖS|ERZ|ANA|ASZ|MAB|MEK|STL|SZB|FDS|HCH|HOR|WOL|FRG|GRA|WOS|FRI|FFB|GAP|GER|BRL|CLZ|GTH|NOH|HGW|GRZ|LÖB|NOL|WSW|DUD|HMÜ|OHA|KRU|HAL|HAM|HBS|QLB|HVL|NAU|HAS|EBN|GEO|HOH|HDH|ERK|HER|WAN|HEF|ROF|HBN|ALF|HSK|USI|NAI|REH|SAN|KÜN|ÖHR|HOL|WAR|ARN|BRG|GNT|HOG|WOH|KEH|MAI|PAR|RID|ROL|KLE|GEL|KUS|KYF|ART|SDH|LDK|DIL|MAL|VIB|LER|BNA|GHA|GRM|MTL|WUR|LEV|LIF|STE|WEL|LIP|VAI|LUP|HGN|LBZ|LWL|PCH|STB|DAN|MKK|SLÜ|MSP|TBB|MGH|MTK|BIN|MSH|EIL|HET|SGH|BID|MYK|MSE|MST|MÜR|WRN|MEI|GRH|RIE|MZG|MIL|OBB|BED|FLÖ|MOL|FRW|SEE|SRB|AIB|MOS|BCH|ILL|SOB|NMS|NEA|SEF|UFF|NEW|VOH|NDH|TDO|NWM|GDB|GVM|WIS|NOM|EIN|GAN|LAU|HEB|OHV|OSL|SFB|ERB|LOS|BSK|KEL|BSB|MEL|WTL|OAL|FÜS|MOD|OHZ|OPR|BÜR|PAF|PLÖ|CAS|GLA|REG|VIT|ECK|SIM|GOA|EMS|DIZ|GOH|RÜD|SWA|NES|KÖN|MET|LRO|BÜZ|DBR|ROS|TET|HRO|ROW|BRV|HIP|PAN|GRI|SHK|EIS|SRO|SOK|LBS|SCZ|MER|QFT|SLF|SLS|HOM|SLK|ASL|BBG|SBK|SFT|SHG|MGN|MEG|ZIG|SAD|NEN|OVI|SHA|BLB|SIG|SON|SPN|FOR|GUB|SPB|IGB|WND|STD|STA|SDL|OBG|HST|BOG|SHL|PIR|FTL|SEB|SÖM|SÜW|TIR|SAB|TUT|ANG|SDT|LÜN|LSZ|MHL|VEC|VER|VIE|OVL|ANK|OVP|SBG|UEM|UER|WLG|GMN|NVP|RDG|RÜG|DAU|FKB|WAF|WAK|SLZ|WEN|SOG|APD|WUG|GUN|ESW|WIZ|WES|DIN|BRA|BÜD|WHV|HWI|GHC|WTM|WOB|WUN|MAK|SEL|OCH|HOT|WDA)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(str);
14434
14568
  },
14435
14569
  'de-LI': function deLI(str) {
14436
14570
  return /^FL[- ]?\d{1,5}[UZ]?$/.test(str);
14437
14571
  },
14572
+ 'fi-FI': function fiFI(str) {
14573
+ return /^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(str);
14574
+ },
14438
14575
  'pt-PT': function ptPT(str) {
14439
14576
  return /^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(str);
14440
14577
  },
@@ -14469,7 +14606,7 @@ function isLicensePlate(str, locale) {
14469
14606
 
14470
14607
  module.exports = exports.default;
14471
14608
  module.exports.default = exports.default;
14472
- },{"./util/assertString":134}],95:[function(require,module,exports){
14609
+ },{"./util/assertString":135}],96:[function(require,module,exports){
14473
14610
  "use strict";
14474
14611
 
14475
14612
  Object.defineProperty(exports, "__esModule", {
@@ -14495,7 +14632,7 @@ function isLocale(str) {
14495
14632
 
14496
14633
  module.exports = exports.default;
14497
14634
  module.exports.default = exports.default;
14498
- },{"./util/assertString":134}],96:[function(require,module,exports){
14635
+ },{"./util/assertString":135}],97:[function(require,module,exports){
14499
14636
  "use strict";
14500
14637
 
14501
14638
  Object.defineProperty(exports, "__esModule", {
@@ -14514,7 +14651,7 @@ function isLowercase(str) {
14514
14651
 
14515
14652
  module.exports = exports.default;
14516
14653
  module.exports.default = exports.default;
14517
- },{"./util/assertString":134}],97:[function(require,module,exports){
14654
+ },{"./util/assertString":135}],98:[function(require,module,exports){
14518
14655
  "use strict";
14519
14656
 
14520
14657
  Object.defineProperty(exports, "__esModule", {
@@ -14545,7 +14682,7 @@ function isMACAddress(str, options) {
14545
14682
 
14546
14683
  module.exports = exports.default;
14547
14684
  module.exports.default = exports.default;
14548
- },{"./util/assertString":134}],98:[function(require,module,exports){
14685
+ },{"./util/assertString":135}],99:[function(require,module,exports){
14549
14686
  "use strict";
14550
14687
 
14551
14688
  Object.defineProperty(exports, "__esModule", {
@@ -14566,7 +14703,7 @@ function isMD5(str) {
14566
14703
 
14567
14704
  module.exports = exports.default;
14568
14705
  module.exports.default = exports.default;
14569
- },{"./util/assertString":134}],99:[function(require,module,exports){
14706
+ },{"./util/assertString":135}],100:[function(require,module,exports){
14570
14707
  "use strict";
14571
14708
 
14572
14709
  Object.defineProperty(exports, "__esModule", {
@@ -14578,7 +14715,7 @@ var _assertString = _interopRequireDefault(require("./util/assertString"));
14578
14715
 
14579
14716
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14580
14717
 
14581
- var magnetURI = /^magnet:\?xt=urn:[a-z0-9]+:[a-z0-9]{32,40}&dn=.+&tr=.+$/i;
14718
+ var magnetURI = /^magnet:\?xt(?:\.1)?=urn:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?($|&)/i;
14582
14719
 
14583
14720
  function isMagnetURI(url) {
14584
14721
  (0, _assertString.default)(url);
@@ -14587,7 +14724,7 @@ function isMagnetURI(url) {
14587
14724
 
14588
14725
  module.exports = exports.default;
14589
14726
  module.exports.default = exports.default;
14590
- },{"./util/assertString":134}],100:[function(require,module,exports){
14727
+ },{"./util/assertString":135}],101:[function(require,module,exports){
14591
14728
  "use strict";
14592
14729
 
14593
14730
  Object.defineProperty(exports, "__esModule", {
@@ -14639,7 +14776,7 @@ function isMimeType(str) {
14639
14776
 
14640
14777
  module.exports = exports.default;
14641
14778
  module.exports.default = exports.default;
14642
- },{"./util/assertString":134}],101:[function(require,module,exports){
14779
+ },{"./util/assertString":135}],102:[function(require,module,exports){
14643
14780
  "use strict";
14644
14781
 
14645
14782
  Object.defineProperty(exports, "__esModule", {
@@ -14666,6 +14803,7 @@ var phones = {
14666
14803
  'ar-LY': /^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,
14667
14804
  'ar-MA': /^(?:(?:\+|00)212|0)[5-7]\d{8}$/,
14668
14805
  'ar-OM': /^((\+|00)968)?(9[1-9])\d{6}$/,
14806
+ 'ar-PS': /^(\+?970|0)5[6|9](\d{7})$/,
14669
14807
  'ar-SA': /^(!?(\+?966)|0)?5\d{8}$/,
14670
14808
  'ar-SY': /^(!?(\+?963)|0)?9\d{8}$/,
14671
14809
  'ar-TN': /^(\+?216)?[2459]\d{7}$/,
@@ -14677,25 +14815,30 @@ var phones = {
14677
14815
  'ca-AD': /^(\+376)?[346]\d{5}$/,
14678
14816
  'cs-CZ': /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
14679
14817
  'da-DK': /^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,
14680
- 'de-DE': /^(\+49)?0?[1|3]([0|5][0-45-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7}$/,
14818
+ 'de-DE': /^((\+49|0)[1|3])([0|5][0-45-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,
14681
14819
  'de-AT': /^(\+43|0)\d{1,4}\d{3,12}$/,
14682
14820
  'de-CH': /^(\+41|0)([1-9])\d{1,9}$/,
14683
14821
  'de-LU': /^(\+352)?((6\d1)\d{6})$/,
14822
+ 'dv-MV': /^(\+?960)?(7[2-9]|91|9[3-9])\d{7}$/,
14684
14823
  'el-GR': /^(\+?30|0)?(69\d{8})$/,
14685
14824
  'en-AU': /^(\+?61|0)4\d{8}$/,
14825
+ 'en-BM': /^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}))/,
14686
14826
  'en-GB': /^(\+?44|0)7\d{9}$/,
14687
14827
  'en-GG': /^(\+?44|0)1481\d{6}$/,
14688
14828
  'en-GH': /^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,
14829
+ 'en-GY': /^(\+592|0)6\d{6}$/,
14689
14830
  'en-HK': /^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,
14690
14831
  'en-MO': /^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,
14691
14832
  'en-IE': /^(\+?353|0)8[356789]\d{7}$/,
14692
14833
  'en-IN': /^(\+?91|0)?[6789]\d{9}$/,
14693
14834
  'en-KE': /^(\+?254|0)(7|1)\d{8}$/,
14835
+ 'en-KI': /^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,
14694
14836
  'en-MT': /^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,
14695
14837
  'en-MU': /^(\+?230|0)?\d{8}$/,
14838
+ 'en-NA': /^(\+?264|0)(6|8)\d{7}$/,
14696
14839
  'en-NG': /^(\+?234|0)?[789]\d{9}$/,
14697
14840
  'en-NZ': /^(\+?64|0)[28]\d{7,9}$/,
14698
- 'en-PK': /^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$/,
14841
+ 'en-PK': /^((00|\+)?92|0)3[0-6]\d{8}$/,
14699
14842
  'en-PH': /^(09|\+639)\d{9}$/,
14700
14843
  'en-RW': /^(\+?250|0)?[7]\d{8}$/,
14701
14844
  'en-SG': /^(\+65)?[3689]\d{7}$/,
@@ -14706,11 +14849,13 @@ var phones = {
14706
14849
  'en-ZA': /^(\+?27|0)\d{9}$/,
14707
14850
  'en-ZM': /^(\+?26)?09[567]\d{7}$/,
14708
14851
  'en-ZW': /^(\+263)[0-9]{9}$/,
14852
+ 'en-BW': /^(\+?267)?(7[1-8]{1})\d{6}$/,
14709
14853
  'es-AR': /^\+?549(11|[2368]\d)\d{8}$/,
14710
14854
  'es-BO': /^(\+?591)?(6|7)\d{7}$/,
14711
14855
  'es-CO': /^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,
14712
14856
  'es-CL': /^(\+?56|0)[2-9]\d{1}\d{7}$/,
14713
14857
  'es-CR': /^(\+506)?[2-8]\d{7}$/,
14858
+ 'es-CU': /^(\+53|0053)?5\d{7}/,
14714
14859
  'es-DO': /^(\+?1)?8[024]9\d{7}$/,
14715
14860
  'es-HN': /^(\+?504)?[9|8]\d{7}$/,
14716
14861
  'es-EC': /^(\+?593|0)([2-7]|9[2-9])\d{7}$/,
@@ -14719,19 +14864,24 @@ var phones = {
14719
14864
  'es-MX': /^(\+?52)?(1|01)?\d{10,11}$/,
14720
14865
  'es-PA': /^(\+?507)\d{7,8}$/,
14721
14866
  'es-PY': /^(\+?595|0)9[9876]\d{7}$/,
14867
+ 'es-SV': /^(\+?503)?[67]\d{7}$/,
14722
14868
  'es-UY': /^(\+598|0)9[1-9][\d]{6}$/,
14869
+ 'es-VE': /^(\+?58)?(2|4)\d{9}$/,
14723
14870
  'et-EE': /^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,
14724
14871
  'fa-IR': /^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,
14725
14872
  'fi-FI': /^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/,
14726
14873
  'fj-FJ': /^(\+?679)?\s?\d{3}\s?\d{4}$/,
14727
14874
  'fo-FO': /^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,
14875
+ 'fr-BF': /^(\+226|0)[67]\d{7}$/,
14876
+ 'fr-CM': /^(\+?237)6[0-9]{8}$/,
14728
14877
  'fr-FR': /^(\+?33|0)[67]\d{8}$/,
14729
14878
  'fr-GF': /^(\+?594|0|00594)[67]\d{8}$/,
14730
14879
  'fr-GP': /^(\+?590|0|00590)[67]\d{8}$/,
14731
14880
  'fr-MQ': /^(\+?596|0|00596)[67]\d{8}$/,
14881
+ 'fr-PF': /^(\+?689)?8[789]\d{6}$/,
14732
14882
  'fr-RE': /^(\+?262|0|00262)[67]\d{8}$/,
14733
14883
  'he-IL': /^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,
14734
- 'hu-HU': /^(\+?36)(20|30|70)\d{7}$/,
14884
+ 'hu-HU': /^(\+?36|06)(20|30|31|50|70)\d{7}$/,
14735
14885
  'id-ID': /^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,
14736
14886
  'it-IT': /^(\+?39)?\s?3\d{2} ?\d{6,7}$/,
14737
14887
  'it-SM': /^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,
@@ -14746,7 +14896,7 @@ var phones = {
14746
14896
  'mz-MZ': /^(\+?258)?8[234567]\d{7}$/,
14747
14897
  'nb-NO': /^(\+?47)?[49]\d{7}$/,
14748
14898
  'ne-NP': /^(\+?977)?9[78]\d{8}$/,
14749
- 'nl-BE': /^(\+?32|0)4?\d{8}$/,
14899
+ 'nl-BE': /^(\+?32|0)4\d{8}$/,
14750
14900
  'nl-NL': /^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,
14751
14901
  'nn-NO': /^(\+?47)?[49]\d{7}$/,
14752
14902
  'pl-PL': /^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,
@@ -14755,19 +14905,22 @@ var phones = {
14755
14905
  'pt-AO': /^(\+244)\d{9}$/,
14756
14906
  'ro-RO': /^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,
14757
14907
  'ru-RU': /^(\+?7|8)?9\d{9}$/,
14758
- 'si-LK': /^(?:0|94|\+94)?(7(0|1|2|5|6|7|8)( |-)?\d)\d{6}$/,
14908
+ 'si-LK': /^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,
14759
14909
  'sl-SI': /^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,
14760
14910
  'sk-SK': /^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
14761
14911
  'sq-AL': /^(\+355|0)6[789]\d{6}$/,
14762
14912
  'sr-RS': /^(\+3816|06)[- \d]{5,9}$/,
14763
14913
  'sv-SE': /^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,
14914
+ 'tg-TJ': /^(\+?992)?[5][5]\d{7}$/,
14764
14915
  'th-TH': /^(\+66|66|0)\d{9}$/,
14765
14916
  'tr-TR': /^(\+?90|0)?5\d{9}$/,
14917
+ 'tk-TM': /^(\+993|993|8)\d{8}$/,
14766
14918
  'uk-UA': /^(\+?38|8)?0\d{9}$/,
14767
14919
  'uz-UZ': /^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,
14768
- 'vi-VN': /^(\+?84|0)((3([2-9]))|(5([2689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,
14769
- 'zh-CN': /^((\+|00)86)?1([3456789][0-9]|4[579]|6[67]|7[01235678]|9[012356789])[0-9]{8}$/,
14770
- 'zh-TW': /^(\+?886\-?|0)?9\d{8}$/
14920
+ 'vi-VN': /^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,
14921
+ 'zh-CN': /^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,
14922
+ 'zh-TW': /^(\+?886\-?|0)?9\d{8}$/,
14923
+ 'dz-BT': /^(\+?975|0)?(17|16|77|02)\d{6}$/
14771
14924
  };
14772
14925
  /* eslint-enable max-len */
14773
14926
  // aliases
@@ -14824,7 +14977,7 @@ function isMobilePhone(str, locale, options) {
14824
14977
 
14825
14978
  var locales = Object.keys(phones);
14826
14979
  exports.locales = locales;
14827
- },{"./util/assertString":134}],102:[function(require,module,exports){
14980
+ },{"./util/assertString":135}],103:[function(require,module,exports){
14828
14981
  "use strict";
14829
14982
 
14830
14983
  Object.defineProperty(exports, "__esModule", {
@@ -14845,7 +14998,7 @@ function isMongoId(str) {
14845
14998
 
14846
14999
  module.exports = exports.default;
14847
15000
  module.exports.default = exports.default;
14848
- },{"./isHexadecimal":75,"./util/assertString":134}],103:[function(require,module,exports){
15001
+ },{"./isHexadecimal":75,"./util/assertString":135}],104:[function(require,module,exports){
14849
15002
  "use strict";
14850
15003
 
14851
15004
  Object.defineProperty(exports, "__esModule", {
@@ -14868,7 +15021,7 @@ function isMultibyte(str) {
14868
15021
 
14869
15022
  module.exports = exports.default;
14870
15023
  module.exports.default = exports.default;
14871
- },{"./util/assertString":134}],104:[function(require,module,exports){
15024
+ },{"./util/assertString":135}],105:[function(require,module,exports){
14872
15025
  "use strict";
14873
15026
 
14874
15027
  Object.defineProperty(exports, "__esModule", {
@@ -14896,7 +15049,7 @@ function isNumeric(str, options) {
14896
15049
 
14897
15050
  module.exports = exports.default;
14898
15051
  module.exports.default = exports.default;
14899
- },{"./alpha":41,"./util/assertString":134}],105:[function(require,module,exports){
15052
+ },{"./alpha":41,"./util/assertString":135}],106:[function(require,module,exports){
14900
15053
  "use strict";
14901
15054
 
14902
15055
  Object.defineProperty(exports, "__esModule", {
@@ -14917,7 +15070,7 @@ function isOctal(str) {
14917
15070
 
14918
15071
  module.exports = exports.default;
14919
15072
  module.exports.default = exports.default;
14920
- },{"./util/assertString":134}],106:[function(require,module,exports){
15073
+ },{"./util/assertString":135}],107:[function(require,module,exports){
14921
15074
  "use strict";
14922
15075
 
14923
15076
  Object.defineProperty(exports, "__esModule", {
@@ -14956,8 +15109,8 @@ var passportRegexByCountryCode = {
14956
15109
  // CANADA
14957
15110
  CH: /^[A-Z]\d{7}$/,
14958
15111
  // SWITZERLAND
14959
- CN: /^[GE]\d{8}$/,
14960
- // CHINA [G=Ordinary, E=Electronic] followed by 8-digits
15112
+ CN: /^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,
15113
+ // CHINA [G=Ordinary, E=Electronic] followed by 8-digits, or E followed by any UPPERCASE letter (except I and O) followed by 7 digits
14961
15114
  CY: /^[A-Z](\d{6}|\d{8})$/,
14962
15115
  // CYPRUS
14963
15116
  CZ: /^\d{8}$/,
@@ -14988,6 +15141,8 @@ var passportRegexByCountryCode = {
14988
15141
  // IRELAND
14989
15142
  IN: /^[A-Z]{1}-?\d{7}$/,
14990
15143
  // INDIA
15144
+ ID: /^[A-C]\d{7}$/,
15145
+ // INDONESIA
14991
15146
  IR: /^[A-Z]\d{8}$/,
14992
15147
  // IRAN
14993
15148
  IS: /^(A)\d{7}$/,
@@ -15014,13 +15169,13 @@ var passportRegexByCountryCode = {
15014
15169
  // MALAYSIA
15015
15170
  NL: /^[A-Z]{2}[A-Z0-9]{6}\d$/,
15016
15171
  // NETHERLANDS
15017
- PO: /^[A-Z]{2}\d{7}$/,
15172
+ PL: /^[A-Z]{2}\d{7}$/,
15018
15173
  // POLAND
15019
15174
  PT: /^[A-Z]\d{6}$/,
15020
15175
  // PORTUGAL
15021
15176
  RO: /^\d{8,9}$/,
15022
15177
  // ROMANIA
15023
- RU: /^\d{2}\d{2}\d{6}$/,
15178
+ RU: /^\d{9}$/,
15024
15179
  // RUSSIAN FEDERATION
15025
15180
  SE: /^\d{8}$/,
15026
15181
  // SWEDEN
@@ -15054,7 +15209,7 @@ function isPassportNumber(str, countryCode) {
15054
15209
 
15055
15210
  module.exports = exports.default;
15056
15211
  module.exports.default = exports.default;
15057
- },{"./util/assertString":134}],107:[function(require,module,exports){
15212
+ },{"./util/assertString":135}],108:[function(require,module,exports){
15058
15213
  "use strict";
15059
15214
 
15060
15215
  Object.defineProperty(exports, "__esModule", {
@@ -15075,7 +15230,7 @@ function isPort(str) {
15075
15230
 
15076
15231
  module.exports = exports.default;
15077
15232
  module.exports.default = exports.default;
15078
- },{"./isInt":89}],108:[function(require,module,exports){
15233
+ },{"./isInt":90}],109:[function(require,module,exports){
15079
15234
  "use strict";
15080
15235
 
15081
15236
  Object.defineProperty(exports, "__esModule", {
@@ -15133,6 +15288,7 @@ var patterns = {
15133
15288
  LT: /^LT\-\d{5}$/,
15134
15289
  LU: fourDigit,
15135
15290
  LV: /^LV\-\d{4}$/,
15291
+ LK: fiveDigit,
15136
15292
  MX: fiveDigit,
15137
15293
  MT: /^[A-Za-z]{3}\s{0,1}\d{4}$/,
15138
15294
  MY: fiveDigit,
@@ -15184,7 +15340,7 @@ function isPostalCode(str, locale) {
15184
15340
 
15185
15341
  throw new Error("Invalid locale '".concat(locale, "'"));
15186
15342
  }
15187
- },{"./util/assertString":134}],109:[function(require,module,exports){
15343
+ },{"./util/assertString":135}],110:[function(require,module,exports){
15188
15344
  "use strict";
15189
15345
 
15190
15346
  Object.defineProperty(exports, "__esModule", {
@@ -15209,7 +15365,7 @@ var timeOffset = new RegExp("([zZ]|".concat(timeNumOffset.source, ")"));
15209
15365
  var partialTime = new RegExp("".concat(timeHour.source, ":").concat(timeMinute.source, ":").concat(timeSecond.source).concat(timeSecFrac.source));
15210
15366
  var fullDate = new RegExp("".concat(dateFullYear.source, "-").concat(dateMonth.source, "-").concat(dateMDay.source));
15211
15367
  var fullTime = new RegExp("".concat(partialTime.source).concat(timeOffset.source));
15212
- var rfc3339 = new RegExp("".concat(fullDate.source, "[ tT]").concat(fullTime.source));
15368
+ var rfc3339 = new RegExp("^".concat(fullDate.source, "[ tT]").concat(fullTime.source, "$"));
15213
15369
 
15214
15370
  function isRFC3339(str) {
15215
15371
  (0, _assertString.default)(str);
@@ -15218,7 +15374,7 @@ function isRFC3339(str) {
15218
15374
 
15219
15375
  module.exports = exports.default;
15220
15376
  module.exports.default = exports.default;
15221
- },{"./util/assertString":134}],110:[function(require,module,exports){
15377
+ },{"./util/assertString":135}],111:[function(require,module,exports){
15222
15378
  "use strict";
15223
15379
 
15224
15380
  Object.defineProperty(exports, "__esModule", {
@@ -15248,7 +15404,7 @@ function isRgbColor(str) {
15248
15404
 
15249
15405
  module.exports = exports.default;
15250
15406
  module.exports.default = exports.default;
15251
- },{"./util/assertString":134}],111:[function(require,module,exports){
15407
+ },{"./util/assertString":135}],112:[function(require,module,exports){
15252
15408
  "use strict";
15253
15409
 
15254
15410
  Object.defineProperty(exports, "__esModule", {
@@ -15277,7 +15433,7 @@ function isSemVer(str) {
15277
15433
 
15278
15434
  module.exports = exports.default;
15279
15435
  module.exports.default = exports.default;
15280
- },{"./util/assertString":134,"./util/multilineRegex":137}],112:[function(require,module,exports){
15436
+ },{"./util/assertString":135,"./util/multilineRegex":138}],113:[function(require,module,exports){
15281
15437
  "use strict";
15282
15438
 
15283
15439
  Object.defineProperty(exports, "__esModule", {
@@ -15298,7 +15454,7 @@ function isSlug(str) {
15298
15454
 
15299
15455
  module.exports = exports.default;
15300
15456
  module.exports.default = exports.default;
15301
- },{"./util/assertString":134}],113:[function(require,module,exports){
15457
+ },{"./util/assertString":135}],114:[function(require,module,exports){
15302
15458
  "use strict";
15303
15459
 
15304
15460
  Object.defineProperty(exports, "__esModule", {
@@ -15414,7 +15570,7 @@ function isStrongPassword(str) {
15414
15570
 
15415
15571
  module.exports = exports.default;
15416
15572
  module.exports.default = exports.default;
15417
- },{"./util/assertString":134,"./util/merge":136}],114:[function(require,module,exports){
15573
+ },{"./util/assertString":135,"./util/merge":137}],115:[function(require,module,exports){
15418
15574
  "use strict";
15419
15575
 
15420
15576
  Object.defineProperty(exports, "__esModule", {
@@ -15435,7 +15591,7 @@ function isSurrogatePair(str) {
15435
15591
 
15436
15592
  module.exports = exports.default;
15437
15593
  module.exports.default = exports.default;
15438
- },{"./util/assertString":134}],115:[function(require,module,exports){
15594
+ },{"./util/assertString":135}],116:[function(require,module,exports){
15439
15595
  "use strict";
15440
15596
 
15441
15597
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
@@ -16541,15 +16697,11 @@ function plPlCheck(tin) {
16541
16697
 
16542
16698
 
16543
16699
  function ptBrCheck(tin) {
16544
- tin = tin.replace(/[^\d]+/g, '');
16545
- if (tin === '') return false;
16546
-
16547
16700
  if (tin.length === 11) {
16548
16701
  var _sum;
16549
16702
 
16550
- var ramainder;
16703
+ var remainder;
16551
16704
  _sum = 0;
16552
- tin = tin.replace(/[^\d]+/g, '');
16553
16705
  if ( // Reject known invalid CPFs
16554
16706
  tin === '11111111111' || tin === '22222222222' || tin === '33333333333' || tin === '44444444444' || tin === '55555555555' || tin === '66666666666' || tin === '77777777777' || tin === '88888888888' || tin === '99999999999' || tin === '00000000000') return false;
16555
16707
 
@@ -16557,25 +16709,21 @@ function ptBrCheck(tin) {
16557
16709
  _sum += parseInt(tin.substring(i - 1, i), 10) * (11 - i);
16558
16710
  }
16559
16711
 
16560
- ramainder = _sum * 10 % 11;
16561
- if (ramainder === 10 || ramainder === 11) ramainder = 0;
16562
- if (ramainder !== parseInt(tin.substring(9, 10), 10)) return false;
16712
+ remainder = _sum * 10 % 11;
16713
+ if (remainder === 10) remainder = 0;
16714
+ if (remainder !== parseInt(tin.substring(9, 10), 10)) return false;
16563
16715
  _sum = 0;
16564
16716
 
16565
16717
  for (var _i8 = 1; _i8 <= 10; _i8++) {
16566
16718
  _sum += parseInt(tin.substring(_i8 - 1, _i8), 10) * (12 - _i8);
16567
16719
  }
16568
16720
 
16569
- ramainder = _sum * 10 % 11;
16570
- if (ramainder === 10 || ramainder === 11) ramainder = 0;
16571
- if (ramainder !== parseInt(tin.substring(10, 11), 10)) return false;
16721
+ remainder = _sum * 10 % 11;
16722
+ if (remainder === 10) remainder = 0;
16723
+ if (remainder !== parseInt(tin.substring(10, 11), 10)) return false;
16572
16724
  return true;
16573
16725
  }
16574
16726
 
16575
- if (tin.length !== 14) {
16576
- return false;
16577
- }
16578
-
16579
16727
  if ( // Reject know invalid CNPJs
16580
16728
  tin === '00000000000000' || tin === '11111111111111' || tin === '22222222222222' || tin === '33333333333333' || tin === '44444444444444' || tin === '55555555555555' || tin === '66666666666666' || tin === '77777777777777' || tin === '88888888888888' || tin === '99999999999999') {
16581
16729
  return false;
@@ -16882,7 +17030,7 @@ var taxIdFormat = {
16882
17030
  'mt-MT': /^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,
16883
17031
  'nl-NL': /^\d{9}$/,
16884
17032
  'pl-PL': /^\d{10,11}$/,
16885
- 'pt-BR': /^\d{11,14}$/,
17033
+ 'pt-BR': /(?:^\d{11}$)|(?:^\d{14}$)/,
16886
17034
  'pt-PT': /^\d{9}$/,
16887
17035
  'ro-RO': /^\d{13}$/,
16888
17036
  'sk-SK': /^\d{6}\/{0,1}\d{3,4}$/,
@@ -16972,7 +17120,7 @@ function isTaxID(str) {
16972
17120
 
16973
17121
  module.exports = exports.default;
16974
17122
  module.exports.default = exports.default;
16975
- },{"./isDate":61,"./util/algorithms":133,"./util/assertString":134}],116:[function(require,module,exports){
17123
+ },{"./isDate":61,"./util/algorithms":134,"./util/assertString":135}],117:[function(require,module,exports){
16976
17124
  "use strict";
16977
17125
 
16978
17126
  Object.defineProperty(exports, "__esModule", {
@@ -16990,6 +17138,18 @@ var _merge = _interopRequireDefault(require("./util/merge"));
16990
17138
 
16991
17139
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16992
17140
 
17141
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17142
+
17143
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
17144
+
17145
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
17146
+
17147
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
17148
+
17149
+ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; 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"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
17150
+
17151
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17152
+
16993
17153
  /*
16994
17154
  options for isURL method
16995
17155
 
@@ -17012,6 +17172,8 @@ var default_url_options = {
17012
17172
  allow_underscores: false,
17013
17173
  allow_trailing_dot: false,
17014
17174
  allow_protocol_relative_urls: false,
17175
+ allow_fragments: true,
17176
+ allow_query_components: true,
17015
17177
  validate_length: true
17016
17178
  };
17017
17179
  var wrapped_ipv6 = /^\[([^\]]+)\](?::([0-9]+))?$/;
@@ -17049,6 +17211,14 @@ function isURL(url, options) {
17049
17211
  return false;
17050
17212
  }
17051
17213
 
17214
+ if (!options.allow_fragments && url.includes('#')) {
17215
+ return false;
17216
+ }
17217
+
17218
+ if (!options.allow_query_components && (url.includes('?') || url.includes('&'))) {
17219
+ return false;
17220
+ }
17221
+
17052
17222
  var protocol, auth, host, hostname, port, port_str, split, ipv6;
17053
17223
  split = url.split('#');
17054
17224
  url = split.shift();
@@ -17092,7 +17262,7 @@ function isURL(url, options) {
17092
17262
  return false;
17093
17263
  }
17094
17264
 
17095
- if (split[0] === '' || split[0].substr(0, 1) === ':') {
17265
+ if (split[0] === '') {
17096
17266
  return false;
17097
17267
  }
17098
17268
 
@@ -17101,6 +17271,15 @@ function isURL(url, options) {
17101
17271
  if (auth.indexOf(':') >= 0 && auth.split(':').length > 2) {
17102
17272
  return false;
17103
17273
  }
17274
+
17275
+ var _auth$split = auth.split(':'),
17276
+ _auth$split2 = _slicedToArray(_auth$split, 2),
17277
+ user = _auth$split2[0],
17278
+ password = _auth$split2[1];
17279
+
17280
+ if (user === '' && password === '') {
17281
+ return false;
17282
+ }
17104
17283
  }
17105
17284
 
17106
17285
  hostname = split.join('@');
@@ -17121,7 +17300,7 @@ function isURL(url, options) {
17121
17300
  }
17122
17301
  }
17123
17302
 
17124
- if (port_str !== null) {
17303
+ if (port_str !== null && port_str.length > 0) {
17125
17304
  port = parseInt(port_str, 10);
17126
17305
 
17127
17306
  if (!/^[0-9]+$/.test(port_str) || port <= 0 || port > 65535) {
@@ -17131,16 +17310,16 @@ function isURL(url, options) {
17131
17310
  return false;
17132
17311
  }
17133
17312
 
17313
+ if (options.host_whitelist) {
17314
+ return checkHost(host, options.host_whitelist);
17315
+ }
17316
+
17134
17317
  if (!(0, _isIP.default)(host) && !(0, _isFQDN.default)(host, options) && (!ipv6 || !(0, _isIP.default)(ipv6, 6))) {
17135
17318
  return false;
17136
17319
  }
17137
17320
 
17138
17321
  host = host || ipv6;
17139
17322
 
17140
- if (options.host_whitelist && !checkHost(host, options.host_whitelist)) {
17141
- return false;
17142
- }
17143
-
17144
17323
  if (options.host_blacklist && checkHost(host, options.host_blacklist)) {
17145
17324
  return false;
17146
17325
  }
@@ -17150,7 +17329,7 @@ function isURL(url, options) {
17150
17329
 
17151
17330
  module.exports = exports.default;
17152
17331
  module.exports.default = exports.default;
17153
- },{"./isFQDN":68,"./isIP":78,"./util/assertString":134,"./util/merge":136}],117:[function(require,module,exports){
17332
+ },{"./isFQDN":68,"./isIP":78,"./util/assertString":135,"./util/merge":137}],118:[function(require,module,exports){
17154
17333
  "use strict";
17155
17334
 
17156
17335
  Object.defineProperty(exports, "__esModule", {
@@ -17163,22 +17342,23 @@ var _assertString = _interopRequireDefault(require("./util/assertString"));
17163
17342
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17164
17343
 
17165
17344
  var uuid = {
17345
+ 1: /^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,
17346
+ 2: /^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,
17166
17347
  3: /^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,
17167
17348
  4: /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
17168
17349
  5: /^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,
17169
17350
  all: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i
17170
17351
  };
17171
17352
 
17172
- function isUUID(str) {
17173
- var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'all';
17353
+ function isUUID(str, version) {
17174
17354
  (0, _assertString.default)(str);
17175
- var pattern = uuid[version];
17176
- return pattern && pattern.test(str);
17355
+ var pattern = uuid[![undefined, null].includes(version) ? version : 'all'];
17356
+ return !!pattern && pattern.test(str);
17177
17357
  }
17178
17358
 
17179
17359
  module.exports = exports.default;
17180
17360
  module.exports.default = exports.default;
17181
- },{"./util/assertString":134}],118:[function(require,module,exports){
17361
+ },{"./util/assertString":135}],119:[function(require,module,exports){
17182
17362
  "use strict";
17183
17363
 
17184
17364
  Object.defineProperty(exports, "__esModule", {
@@ -17197,7 +17377,7 @@ function isUppercase(str) {
17197
17377
 
17198
17378
  module.exports = exports.default;
17199
17379
  module.exports.default = exports.default;
17200
- },{"./util/assertString":134}],119:[function(require,module,exports){
17380
+ },{"./util/assertString":135}],120:[function(require,module,exports){
17201
17381
  "use strict";
17202
17382
 
17203
17383
  Object.defineProperty(exports, "__esModule", {
@@ -17212,7 +17392,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17212
17392
 
17213
17393
  var vatMatchers = {
17214
17394
  GB: /^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/,
17215
- IT: /^(IT)?[0-9]{11}$/
17395
+ IT: /^(IT)?[0-9]{11}$/,
17396
+ NL: /^(NL)?[0-9]{9}B[0-9]{2}$/
17216
17397
  };
17217
17398
  exports.vatMatchers = vatMatchers;
17218
17399
 
@@ -17226,7 +17407,7 @@ function isVAT(str, countryCode) {
17226
17407
 
17227
17408
  throw new Error("Invalid country code: '".concat(countryCode, "'"));
17228
17409
  }
17229
- },{"./util/assertString":134}],120:[function(require,module,exports){
17410
+ },{"./util/assertString":135}],121:[function(require,module,exports){
17230
17411
  "use strict";
17231
17412
 
17232
17413
  Object.defineProperty(exports, "__esModule", {
@@ -17249,7 +17430,7 @@ function isVariableWidth(str) {
17249
17430
 
17250
17431
  module.exports = exports.default;
17251
17432
  module.exports.default = exports.default;
17252
- },{"./isFullWidth":70,"./isHalfWidth":72,"./util/assertString":134}],121:[function(require,module,exports){
17433
+ },{"./isFullWidth":70,"./isHalfWidth":72,"./util/assertString":135}],122:[function(require,module,exports){
17253
17434
  "use strict";
17254
17435
 
17255
17436
  Object.defineProperty(exports, "__esModule", {
@@ -17275,7 +17456,7 @@ function isWhitelisted(str, chars) {
17275
17456
 
17276
17457
  module.exports = exports.default;
17277
17458
  module.exports.default = exports.default;
17278
- },{"./util/assertString":134}],122:[function(require,module,exports){
17459
+ },{"./util/assertString":135}],123:[function(require,module,exports){
17279
17460
  "use strict";
17280
17461
 
17281
17462
  Object.defineProperty(exports, "__esModule", {
@@ -17296,7 +17477,7 @@ function ltrim(str, chars) {
17296
17477
 
17297
17478
  module.exports = exports.default;
17298
17479
  module.exports.default = exports.default;
17299
- },{"./util/assertString":134}],123:[function(require,module,exports){
17480
+ },{"./util/assertString":135}],124:[function(require,module,exports){
17300
17481
  "use strict";
17301
17482
 
17302
17483
  Object.defineProperty(exports, "__esModule", {
@@ -17320,7 +17501,7 @@ function matches(str, pattern, modifiers) {
17320
17501
 
17321
17502
  module.exports = exports.default;
17322
17503
  module.exports.default = exports.default;
17323
- },{"./util/assertString":134}],124:[function(require,module,exports){
17504
+ },{"./util/assertString":135}],125:[function(require,module,exports){
17324
17505
  "use strict";
17325
17506
 
17326
17507
  Object.defineProperty(exports, "__esModule", {
@@ -17472,7 +17653,7 @@ function normalizeEmail(email, options) {
17472
17653
 
17473
17654
  module.exports = exports.default;
17474
17655
  module.exports.default = exports.default;
17475
- },{"./util/merge":136}],125:[function(require,module,exports){
17656
+ },{"./util/merge":137}],126:[function(require,module,exports){
17476
17657
  "use strict";
17477
17658
 
17478
17659
  Object.defineProperty(exports, "__esModule", {
@@ -17485,15 +17666,27 @@ var _assertString = _interopRequireDefault(require("./util/assertString"));
17485
17666
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17486
17667
 
17487
17668
  function rtrim(str, chars) {
17488
- (0, _assertString.default)(str); // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping
17669
+ (0, _assertString.default)(str);
17489
17670
 
17490
- var pattern = chars ? new RegExp("[".concat(chars.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), "]+$"), 'g') : /(\s)+$/g;
17491
- return str.replace(pattern, '');
17671
+ if (chars) {
17672
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Escaping
17673
+ var pattern = new RegExp("[".concat(chars.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), "]+$"), 'g');
17674
+ return str.replace(pattern, '');
17675
+ } // Use a faster and more safe than regex trim method https://blog.stevenlevithan.com/archives/faster-trim-javascript
17676
+
17677
+
17678
+ var strIndex = str.length - 1;
17679
+
17680
+ while (/\s/.test(str.charAt(strIndex))) {
17681
+ strIndex -= 1;
17682
+ }
17683
+
17684
+ return str.slice(0, strIndex + 1);
17492
17685
  }
17493
17686
 
17494
17687
  module.exports = exports.default;
17495
17688
  module.exports.default = exports.default;
17496
- },{"./util/assertString":134}],126:[function(require,module,exports){
17689
+ },{"./util/assertString":135}],127:[function(require,module,exports){
17497
17690
  "use strict";
17498
17691
 
17499
17692
  Object.defineProperty(exports, "__esModule", {
@@ -17515,7 +17708,7 @@ function stripLow(str, keep_new_lines) {
17515
17708
 
17516
17709
  module.exports = exports.default;
17517
17710
  module.exports.default = exports.default;
17518
- },{"./blacklist":42,"./util/assertString":134}],127:[function(require,module,exports){
17711
+ },{"./blacklist":42,"./util/assertString":135}],128:[function(require,module,exports){
17519
17712
  "use strict";
17520
17713
 
17521
17714
  Object.defineProperty(exports, "__esModule", {
@@ -17539,7 +17732,7 @@ function toBoolean(str, strict) {
17539
17732
 
17540
17733
  module.exports = exports.default;
17541
17734
  module.exports.default = exports.default;
17542
- },{"./util/assertString":134}],128:[function(require,module,exports){
17735
+ },{"./util/assertString":135}],129:[function(require,module,exports){
17543
17736
  "use strict";
17544
17737
 
17545
17738
  Object.defineProperty(exports, "__esModule", {
@@ -17559,7 +17752,7 @@ function toDate(date) {
17559
17752
 
17560
17753
  module.exports = exports.default;
17561
17754
  module.exports.default = exports.default;
17562
- },{"./util/assertString":134}],129:[function(require,module,exports){
17755
+ },{"./util/assertString":135}],130:[function(require,module,exports){
17563
17756
  "use strict";
17564
17757
 
17565
17758
  Object.defineProperty(exports, "__esModule", {
@@ -17578,7 +17771,7 @@ function toFloat(str) {
17578
17771
 
17579
17772
  module.exports = exports.default;
17580
17773
  module.exports.default = exports.default;
17581
- },{"./isFloat":69}],130:[function(require,module,exports){
17774
+ },{"./isFloat":69}],131:[function(require,module,exports){
17582
17775
  "use strict";
17583
17776
 
17584
17777
  Object.defineProperty(exports, "__esModule", {
@@ -17597,7 +17790,7 @@ function toInt(str, radix) {
17597
17790
 
17598
17791
  module.exports = exports.default;
17599
17792
  module.exports.default = exports.default;
17600
- },{"./util/assertString":134}],131:[function(require,module,exports){
17793
+ },{"./util/assertString":135}],132:[function(require,module,exports){
17601
17794
  "use strict";
17602
17795
 
17603
17796
  Object.defineProperty(exports, "__esModule", {
@@ -17617,7 +17810,7 @@ function trim(str, chars) {
17617
17810
 
17618
17811
  module.exports = exports.default;
17619
17812
  module.exports.default = exports.default;
17620
- },{"./ltrim":122,"./rtrim":125}],132:[function(require,module,exports){
17813
+ },{"./ltrim":123,"./rtrim":126}],133:[function(require,module,exports){
17621
17814
  "use strict";
17622
17815
 
17623
17816
  Object.defineProperty(exports, "__esModule", {
@@ -17631,12 +17824,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17631
17824
 
17632
17825
  function unescape(str) {
17633
17826
  (0, _assertString.default)(str);
17634
- return str.replace(/&amp;/g, '&').replace(/&quot;/g, '"').replace(/&#x27;/g, "'").replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&#x2F;/g, '/').replace(/&#x5C;/g, '\\').replace(/&#96;/g, '`');
17827
+ return str.replace(/&quot;/g, '"').replace(/&#x27;/g, "'").replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&#x2F;/g, '/').replace(/&#x5C;/g, '\\').replace(/&#96;/g, '`').replace(/&amp;/g, '&'); // &amp; replacement has to be the last one to prevent
17828
+ // bugs with intermediate strings containing escape sequences
17829
+ // See: https://github.com/validatorjs/validator.js/issues/1827
17635
17830
  }
17636
17831
 
17637
17832
  module.exports = exports.default;
17638
17833
  module.exports.default = exports.default;
17639
- },{"./util/assertString":134}],133:[function(require,module,exports){
17834
+ },{"./util/assertString":135}],134:[function(require,module,exports){
17640
17835
  "use strict";
17641
17836
 
17642
17837
  Object.defineProperty(exports, "__esModule", {
@@ -17738,7 +17933,7 @@ function verhoeffCheck(str) {
17738
17933
 
17739
17934
  return checksum === 0;
17740
17935
  }
17741
- },{}],134:[function(require,module,exports){
17936
+ },{}],135:[function(require,module,exports){
17742
17937
  "use strict";
17743
17938
 
17744
17939
  Object.defineProperty(exports, "__esModule", {
@@ -17761,7 +17956,7 @@ function assertString(input) {
17761
17956
 
17762
17957
  module.exports = exports.default;
17763
17958
  module.exports.default = exports.default;
17764
- },{}],135:[function(require,module,exports){
17959
+ },{}],136:[function(require,module,exports){
17765
17960
  "use strict";
17766
17961
 
17767
17962
  Object.defineProperty(exports, "__esModule", {
@@ -17779,7 +17974,7 @@ var _default = includes;
17779
17974
  exports.default = _default;
17780
17975
  module.exports = exports.default;
17781
17976
  module.exports.default = exports.default;
17782
- },{}],136:[function(require,module,exports){
17977
+ },{}],137:[function(require,module,exports){
17783
17978
  "use strict";
17784
17979
 
17785
17980
  Object.defineProperty(exports, "__esModule", {
@@ -17802,7 +17997,7 @@ function merge() {
17802
17997
 
17803
17998
  module.exports = exports.default;
17804
17999
  module.exports.default = exports.default;
17805
- },{}],137:[function(require,module,exports){
18000
+ },{}],138:[function(require,module,exports){
17806
18001
  "use strict";
17807
18002
 
17808
18003
  Object.defineProperty(exports, "__esModule", {
@@ -17825,7 +18020,7 @@ function multilineRegexp(parts, flags) {
17825
18020
 
17826
18021
  module.exports = exports.default;
17827
18022
  module.exports.default = exports.default;
17828
- },{}],138:[function(require,module,exports){
18023
+ },{}],139:[function(require,module,exports){
17829
18024
  "use strict";
17830
18025
 
17831
18026
  Object.defineProperty(exports, "__esModule", {
@@ -17851,7 +18046,7 @@ function toString(input) {
17851
18046
 
17852
18047
  module.exports = exports.default;
17853
18048
  module.exports.default = exports.default;
17854
- },{}],139:[function(require,module,exports){
18049
+ },{}],140:[function(require,module,exports){
17855
18050
  "use strict";
17856
18051
 
17857
18052
  Object.defineProperty(exports, "__esModule", {
@@ -17870,7 +18065,7 @@ function whitelist(str, chars) {
17870
18065
 
17871
18066
  module.exports = exports.default;
17872
18067
  module.exports.default = exports.default;
17873
- },{"./util/assertString":134}],140:[function(require,module,exports){
18068
+ },{"./util/assertString":135}],141:[function(require,module,exports){
17874
18069
  module.exports = extend
17875
18070
 
17876
18071
  var hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -17891,7 +18086,7 @@ function extend() {
17891
18086
  return target
17892
18087
  }
17893
18088
 
17894
- },{}],141:[function(require,module,exports){
18089
+ },{}],142:[function(require,module,exports){
17895
18090
  "use strict";
17896
18091
 
17897
18092
  module.exports = {
@@ -17953,7 +18148,7 @@ module.exports = {
17953
18148
 
17954
18149
  };
17955
18150
 
17956
- },{}],142:[function(require,module,exports){
18151
+ },{}],143:[function(require,module,exports){
17957
18152
  /*jshint maxlen: false*/
17958
18153
 
17959
18154
  var validator = require("validator");
@@ -18084,7 +18279,7 @@ var FormatValidators = {
18084
18279
 
18085
18280
  module.exports = FormatValidators;
18086
18281
 
18087
- },{"validator":40}],143:[function(require,module,exports){
18282
+ },{"validator":40}],144:[function(require,module,exports){
18088
18283
  "use strict";
18089
18284
 
18090
18285
  var FormatValidators = require("./FormatValidators"),
@@ -18707,7 +18902,7 @@ exports.validate = function (report, schema, json) {
18707
18902
 
18708
18903
  };
18709
18904
 
18710
- },{"./FormatValidators":142,"./Report":145,"./Utils":149}],144:[function(require,module,exports){
18905
+ },{"./FormatValidators":143,"./Report":146,"./Utils":150}],145:[function(require,module,exports){
18711
18906
  // Number.isFinite polyfill
18712
18907
  // http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite
18713
18908
  if (typeof Number.isFinite !== "function") {
@@ -18725,7 +18920,7 @@ if (typeof Number.isFinite !== "function") {
18725
18920
  };
18726
18921
  }
18727
18922
 
18728
- },{}],145:[function(require,module,exports){
18923
+ },{}],146:[function(require,module,exports){
18729
18924
  (function (process){(function (){
18730
18925
  "use strict";
18731
18926
 
@@ -19028,7 +19223,7 @@ Report.prototype.addCustomError = function (errorCode, errorMessage, params, sub
19028
19223
  module.exports = Report;
19029
19224
 
19030
19225
  }).call(this)}).call(this,require('_process'))
19031
- },{"./Errors":141,"./Utils":149,"_process":12,"lodash.get":10}],146:[function(require,module,exports){
19226
+ },{"./Errors":142,"./Utils":150,"_process":12,"lodash.get":10}],147:[function(require,module,exports){
19032
19227
  "use strict";
19033
19228
 
19034
19229
  var isequal = require("lodash.isequal");
@@ -19218,7 +19413,7 @@ exports.getSchemaByUri = function (report, uri, root) {
19218
19413
 
19219
19414
  exports.getRemotePath = getRemotePath;
19220
19415
 
19221
- },{"./Report":145,"./SchemaCompilation":147,"./SchemaValidation":148,"./Utils":149,"lodash.isequal":11}],147:[function(require,module,exports){
19416
+ },{"./Report":146,"./SchemaCompilation":148,"./SchemaValidation":149,"./Utils":150,"lodash.isequal":11}],148:[function(require,module,exports){
19222
19417
  "use strict";
19223
19418
 
19224
19419
  var Report = require("./Report");
@@ -19519,7 +19714,7 @@ exports.compileSchema = function (report, schema) {
19519
19714
 
19520
19715
  };
19521
19716
 
19522
- },{"./Report":145,"./SchemaCache":146,"./Utils":149}],148:[function(require,module,exports){
19717
+ },{"./Report":146,"./SchemaCache":147,"./Utils":150}],149:[function(require,module,exports){
19523
19718
  "use strict";
19524
19719
 
19525
19720
  var FormatValidators = require("./FormatValidators"),
@@ -20140,7 +20335,7 @@ exports.validateSchema = function (report, schema) {
20140
20335
  return isValid;
20141
20336
  };
20142
20337
 
20143
- },{"./FormatValidators":142,"./JsonValidation":143,"./Report":145,"./Utils":149}],149:[function(require,module,exports){
20338
+ },{"./FormatValidators":143,"./JsonValidation":144,"./Report":146,"./Utils":150}],150:[function(require,module,exports){
20144
20339
  "use strict";
20145
20340
 
20146
20341
  exports.jsonSymbol = Symbol.for("z-schema/json");
@@ -20416,7 +20611,7 @@ exports.ucs2decode = function (string) {
20416
20611
  };
20417
20612
  /*jshint +W016*/
20418
20613
 
20419
- },{}],150:[function(require,module,exports){
20614
+ },{}],151:[function(require,module,exports){
20420
20615
  (function (process){(function (){
20421
20616
  "use strict";
20422
20617
 
@@ -20829,7 +21024,7 @@ ZSchema.jsonSymbol = Utils.jsonSymbol;
20829
21024
  module.exports = ZSchema;
20830
21025
 
20831
21026
  }).call(this)}).call(this,require('_process'))
20832
- },{"./FormatValidators":142,"./JsonValidation":143,"./Polyfills":144,"./Report":145,"./SchemaCache":146,"./SchemaCompilation":147,"./SchemaValidation":148,"./Utils":149,"./schemas/hyper-schema.json":151,"./schemas/schema.json":152,"_process":12,"lodash.get":10}],151:[function(require,module,exports){
21027
+ },{"./FormatValidators":143,"./JsonValidation":144,"./Polyfills":145,"./Report":146,"./SchemaCache":147,"./SchemaCompilation":148,"./SchemaValidation":149,"./Utils":150,"./schemas/hyper-schema.json":152,"./schemas/schema.json":153,"_process":12,"lodash.get":10}],152:[function(require,module,exports){
20833
21028
  module.exports={
20834
21029
  "$schema": "http://json-schema.org/draft-04/hyper-schema#",
20835
21030
  "id": "http://json-schema.org/draft-04/hyper-schema#",
@@ -20989,7 +21184,7 @@ module.exports={
20989
21184
  }
20990
21185
 
20991
21186
 
20992
- },{}],152:[function(require,module,exports){
21187
+ },{}],153:[function(require,module,exports){
20993
21188
  module.exports={
20994
21189
  "id": "http://json-schema.org/draft-04/schema#",
20995
21190
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -21142,7 +21337,7 @@ module.exports={
21142
21337
  "default": {}
21143
21338
  }
21144
21339
 
21145
- },{}],153:[function(require,module,exports){
21340
+ },{}],154:[function(require,module,exports){
21146
21341
  "use strict";
21147
21342
 
21148
21343
  module.exports = {
@@ -21242,7 +21437,7 @@ module.exports = {
21242
21437
  ]
21243
21438
  };
21244
21439
 
21245
- },{}],154:[function(require,module,exports){
21440
+ },{}],155:[function(require,module,exports){
21246
21441
  "use strict";
21247
21442
 
21248
21443
  module.exports = {
@@ -21307,7 +21502,7 @@ module.exports = {
21307
21502
  ]
21308
21503
  };
21309
21504
 
21310
- },{}],155:[function(require,module,exports){
21505
+ },{}],156:[function(require,module,exports){
21311
21506
  "use strict";
21312
21507
 
21313
21508
  module.exports = {
@@ -21366,7 +21561,7 @@ module.exports = {
21366
21561
  ]
21367
21562
  };
21368
21563
 
21369
- },{}],156:[function(require,module,exports){
21564
+ },{}],157:[function(require,module,exports){
21370
21565
  "use strict";
21371
21566
 
21372
21567
  //Implement new 'shouldFail' keyword
@@ -21429,7 +21624,7 @@ module.exports = {
21429
21624
  ]
21430
21625
  };
21431
21626
 
21432
- },{}],157:[function(require,module,exports){
21627
+ },{}],158:[function(require,module,exports){
21433
21628
  "use strict";
21434
21629
 
21435
21630
  module.exports = {
@@ -21457,7 +21652,7 @@ module.exports = {
21457
21652
  ]
21458
21653
  };
21459
21654
 
21460
- },{}],158:[function(require,module,exports){
21655
+ },{}],159:[function(require,module,exports){
21461
21656
  "use strict";
21462
21657
 
21463
21658
  module.exports = {
@@ -21482,7 +21677,7 @@ module.exports = {
21482
21677
  ]
21483
21678
  };
21484
21679
 
21485
- },{}],159:[function(require,module,exports){
21680
+ },{}],160:[function(require,module,exports){
21486
21681
  "use strict";
21487
21682
 
21488
21683
  module.exports = {
@@ -21518,7 +21713,7 @@ module.exports = {
21518
21713
  ]
21519
21714
  };
21520
21715
 
21521
- },{}],160:[function(require,module,exports){
21716
+ },{}],161:[function(require,module,exports){
21522
21717
  "use strict";
21523
21718
 
21524
21719
  module.exports = {
@@ -21591,7 +21786,7 @@ module.exports = {
21591
21786
  ]
21592
21787
  };
21593
21788
 
21594
- },{}],161:[function(require,module,exports){
21789
+ },{}],162:[function(require,module,exports){
21595
21790
  "use strict";
21596
21791
 
21597
21792
  module.exports = {
@@ -21619,7 +21814,7 @@ module.exports = {
21619
21814
  ]
21620
21815
  };
21621
21816
 
21622
- },{}],162:[function(require,module,exports){
21817
+ },{}],163:[function(require,module,exports){
21623
21818
  "use strict";
21624
21819
 
21625
21820
  module.exports = {
@@ -21647,7 +21842,7 @@ module.exports = {
21647
21842
  ]
21648
21843
  };
21649
21844
 
21650
- },{}],163:[function(require,module,exports){
21845
+ },{}],164:[function(require,module,exports){
21651
21846
  "use strict";
21652
21847
 
21653
21848
  module.exports = {
@@ -21675,7 +21870,7 @@ module.exports = {
21675
21870
  ]
21676
21871
  };
21677
21872
 
21678
- },{}],164:[function(require,module,exports){
21873
+ },{}],165:[function(require,module,exports){
21679
21874
  "use strict";
21680
21875
 
21681
21876
  module.exports = {
@@ -21703,7 +21898,7 @@ module.exports = {
21703
21898
  ]
21704
21899
  };
21705
21900
 
21706
- },{}],165:[function(require,module,exports){
21901
+ },{}],166:[function(require,module,exports){
21707
21902
  "use strict";
21708
21903
 
21709
21904
  module.exports = {
@@ -21731,7 +21926,7 @@ module.exports = {
21731
21926
  ]
21732
21927
  };
21733
21928
 
21734
- },{}],166:[function(require,module,exports){
21929
+ },{}],167:[function(require,module,exports){
21735
21930
  "use strict";
21736
21931
 
21737
21932
  module.exports = {
@@ -21787,7 +21982,7 @@ module.exports = {
21787
21982
  ]
21788
21983
  };
21789
21984
 
21790
- },{}],167:[function(require,module,exports){
21985
+ },{}],168:[function(require,module,exports){
21791
21986
  "use strict";
21792
21987
 
21793
21988
  module.exports = {
@@ -21831,7 +22026,7 @@ module.exports = {
21831
22026
  ]
21832
22027
  };
21833
22028
 
21834
- },{}],168:[function(require,module,exports){
22029
+ },{}],169:[function(require,module,exports){
21835
22030
  "use strict";
21836
22031
 
21837
22032
  module.exports = {
@@ -21944,7 +22139,7 @@ module.exports = {
21944
22139
  ]
21945
22140
  };
21946
22141
 
21947
- },{}],169:[function(require,module,exports){
22142
+ },{}],170:[function(require,module,exports){
21948
22143
  "use strict";
21949
22144
 
21950
22145
  module.exports = {
@@ -21961,7 +22156,7 @@ module.exports = {
21961
22156
  ]
21962
22157
  };
21963
22158
 
21964
- },{}],170:[function(require,module,exports){
22159
+ },{}],171:[function(require,module,exports){
21965
22160
  "use strict";
21966
22161
 
21967
22162
  module.exports = {
@@ -21983,7 +22178,7 @@ module.exports = {
21983
22178
  ]
21984
22179
  };
21985
22180
 
21986
- },{}],171:[function(require,module,exports){
22181
+ },{}],172:[function(require,module,exports){
21987
22182
  "use strict";
21988
22183
 
21989
22184
  module.exports = {
@@ -22001,7 +22196,7 @@ module.exports = {
22001
22196
  ]
22002
22197
  };
22003
22198
 
22004
- },{}],172:[function(require,module,exports){
22199
+ },{}],173:[function(require,module,exports){
22005
22200
  "use strict";
22006
22201
 
22007
22202
  module.exports = {
@@ -22070,7 +22265,7 @@ module.exports = {
22070
22265
  ]
22071
22266
  };
22072
22267
 
22073
- },{}],173:[function(require,module,exports){
22268
+ },{}],174:[function(require,module,exports){
22074
22269
  "use strict";
22075
22270
 
22076
22271
  module.exports = {
@@ -22085,7 +22280,7 @@ module.exports = {
22085
22280
  ]
22086
22281
  };
22087
22282
 
22088
- },{}],174:[function(require,module,exports){
22283
+ },{}],175:[function(require,module,exports){
22089
22284
  "use strict";
22090
22285
 
22091
22286
  module.exports = {
@@ -22109,7 +22304,7 @@ module.exports = {
22109
22304
  ]
22110
22305
  };
22111
22306
 
22112
- },{}],175:[function(require,module,exports){
22307
+ },{}],176:[function(require,module,exports){
22113
22308
  "use strict";
22114
22309
 
22115
22310
  module.exports = {
@@ -22184,7 +22379,7 @@ module.exports = {
22184
22379
  ]
22185
22380
  };
22186
22381
 
22187
- },{}],176:[function(require,module,exports){
22382
+ },{}],177:[function(require,module,exports){
22188
22383
  "use strict";
22189
22384
 
22190
22385
  module.exports = {
@@ -22205,7 +22400,7 @@ module.exports = {
22205
22400
  ]
22206
22401
  };
22207
22402
 
22208
- },{}],177:[function(require,module,exports){
22403
+ },{}],178:[function(require,module,exports){
22209
22404
  "use strict";
22210
22405
 
22211
22406
  var REF_NAME = "int.json";
@@ -22252,7 +22447,7 @@ module.exports = {
22252
22447
  ]
22253
22448
  };
22254
22449
 
22255
- },{}],178:[function(require,module,exports){
22450
+ },{}],179:[function(require,module,exports){
22256
22451
  "use strict";
22257
22452
 
22258
22453
  module.exports = {
@@ -22425,7 +22620,7 @@ module.exports = {
22425
22620
  ]
22426
22621
  };
22427
22622
 
22428
- },{}],179:[function(require,module,exports){
22623
+ },{}],180:[function(require,module,exports){
22429
22624
  "use strict";
22430
22625
 
22431
22626
  module.exports = {
@@ -22470,7 +22665,7 @@ module.exports = {
22470
22665
  ]
22471
22666
  };
22472
22667
 
22473
- },{}],180:[function(require,module,exports){
22668
+ },{}],181:[function(require,module,exports){
22474
22669
  "use strict";
22475
22670
 
22476
22671
  module.exports = {
@@ -22513,7 +22708,7 @@ module.exports = {
22513
22708
  ]
22514
22709
  };
22515
22710
 
22516
- },{}],181:[function(require,module,exports){
22711
+ },{}],182:[function(require,module,exports){
22517
22712
  "use strict";
22518
22713
 
22519
22714
  var schema1 = {
@@ -22597,7 +22792,7 @@ module.exports = {
22597
22792
  ]
22598
22793
  };
22599
22794
 
22600
- },{}],182:[function(require,module,exports){
22795
+ },{}],183:[function(require,module,exports){
22601
22796
  module.exports = {
22602
22797
  description: "Issue #139 - add schema id if present to erro message via addError method",
22603
22798
  tests: [
@@ -22656,7 +22851,7 @@ module.exports = {
22656
22851
  ]
22657
22852
  };
22658
22853
 
22659
- },{}],183:[function(require,module,exports){
22854
+ },{}],184:[function(require,module,exports){
22660
22855
  "use strict";
22661
22856
 
22662
22857
  module.exports = {
@@ -22674,7 +22869,7 @@ module.exports = {
22674
22869
  ]
22675
22870
  };
22676
22871
 
22677
- },{}],184:[function(require,module,exports){
22872
+ },{}],185:[function(require,module,exports){
22678
22873
  "use strict";
22679
22874
 
22680
22875
  module.exports = {
@@ -22704,7 +22899,7 @@ module.exports = {
22704
22899
  ]
22705
22900
  };
22706
22901
 
22707
- },{}],185:[function(require,module,exports){
22902
+ },{}],186:[function(require,module,exports){
22708
22903
  "use strict";
22709
22904
 
22710
22905
  module.exports = {
@@ -22732,7 +22927,7 @@ module.exports = {
22732
22927
  ]
22733
22928
  };
22734
22929
 
22735
- },{}],186:[function(require,module,exports){
22930
+ },{}],187:[function(require,module,exports){
22736
22931
  "use strict";
22737
22932
 
22738
22933
  module.exports = {
@@ -22759,7 +22954,7 @@ module.exports = {
22759
22954
  ]
22760
22955
  };
22761
22956
 
22762
- },{}],187:[function(require,module,exports){
22957
+ },{}],188:[function(require,module,exports){
22763
22958
  "use strict";
22764
22959
  var ref1 = "http://www.example.org/schema1/#";
22765
22960
  var ref2 = "http://www.example.org/schema2/#";
@@ -22799,7 +22994,7 @@ module.exports = {
22799
22994
  }
22800
22995
  ]
22801
22996
  };
22802
- },{}],188:[function(require,module,exports){
22997
+ },{}],189:[function(require,module,exports){
22803
22998
  "use strict";
22804
22999
 
22805
23000
  var testAsync = true;
@@ -22848,7 +23043,7 @@ module.exports = {
22848
23043
  ]
22849
23044
  };
22850
23045
 
22851
- },{}],189:[function(require,module,exports){
23046
+ },{}],190:[function(require,module,exports){
22852
23047
  "use strict";
22853
23048
 
22854
23049
  module.exports = {
@@ -22924,7 +23119,7 @@ module.exports = {
22924
23119
  ]
22925
23120
  };
22926
23121
 
22927
- },{}],190:[function(require,module,exports){
23122
+ },{}],191:[function(require,module,exports){
22928
23123
  "use strict";
22929
23124
 
22930
23125
  module.exports = {
@@ -23014,7 +23209,7 @@ module.exports = {
23014
23209
  ]
23015
23210
  };
23016
23211
 
23017
- },{}],191:[function(require,module,exports){
23212
+ },{}],192:[function(require,module,exports){
23018
23213
  "use strict";
23019
23214
 
23020
23215
  module.exports = {
@@ -23076,7 +23271,7 @@ module.exports = {
23076
23271
  ]
23077
23272
  };
23078
23273
 
23079
- },{}],192:[function(require,module,exports){
23274
+ },{}],193:[function(require,module,exports){
23080
23275
  "use strict";
23081
23276
 
23082
23277
  module.exports = {
@@ -23112,7 +23307,7 @@ module.exports = {
23112
23307
  ]
23113
23308
  };
23114
23309
 
23115
- },{}],193:[function(require,module,exports){
23310
+ },{}],194:[function(require,module,exports){
23116
23311
  "use strict";
23117
23312
 
23118
23313
  module.exports = {
@@ -23135,7 +23330,7 @@ module.exports = {
23135
23330
  ]
23136
23331
  };
23137
23332
 
23138
- },{}],194:[function(require,module,exports){
23333
+ },{}],195:[function(require,module,exports){
23139
23334
  "use strict";
23140
23335
 
23141
23336
  module.exports = {
@@ -23225,7 +23420,7 @@ module.exports = {
23225
23420
  ]
23226
23421
  };
23227
23422
 
23228
- },{}],195:[function(require,module,exports){
23423
+ },{}],196:[function(require,module,exports){
23229
23424
  "use strict";
23230
23425
 
23231
23426
  module.exports = {
@@ -23250,7 +23445,7 @@ module.exports = {
23250
23445
  ]
23251
23446
  };
23252
23447
 
23253
- },{}],196:[function(require,module,exports){
23448
+ },{}],197:[function(require,module,exports){
23254
23449
  "use strict";
23255
23450
 
23256
23451
  module.exports = {
@@ -23326,7 +23521,7 @@ module.exports = {
23326
23521
  ]
23327
23522
  };
23328
23523
 
23329
- },{}],197:[function(require,module,exports){
23524
+ },{}],198:[function(require,module,exports){
23330
23525
  "use strict";
23331
23526
 
23332
23527
  module.exports = {
@@ -23439,7 +23634,7 @@ module.exports = {
23439
23634
  ]
23440
23635
  };
23441
23636
 
23442
- },{}],198:[function(require,module,exports){
23637
+ },{}],199:[function(require,module,exports){
23443
23638
  "use strict";
23444
23639
 
23445
23640
  module.exports = {
@@ -23619,7 +23814,7 @@ module.exports = {
23619
23814
  ]
23620
23815
  };
23621
23816
 
23622
- },{}],199:[function(require,module,exports){
23817
+ },{}],200:[function(require,module,exports){
23623
23818
  "use strict";
23624
23819
 
23625
23820
  module.exports = {
@@ -23666,7 +23861,7 @@ module.exports = {
23666
23861
  ]
23667
23862
  };
23668
23863
 
23669
- },{}],200:[function(require,module,exports){
23864
+ },{}],201:[function(require,module,exports){
23670
23865
  "use strict";
23671
23866
 
23672
23867
  var resourceObject = {
@@ -23962,7 +24157,7 @@ module.exports = {
23962
24157
  ]
23963
24158
  };
23964
24159
 
23965
- },{}],201:[function(require,module,exports){
24160
+ },{}],202:[function(require,module,exports){
23966
24161
  "use strict";
23967
24162
 
23968
24163
  var draft4 = require("./files/Issue47/draft4.json");
@@ -23991,7 +24186,7 @@ module.exports = {
23991
24186
  ]
23992
24187
  };
23993
24188
 
23994
- },{"./files/Issue47/draft4.json":225,"./files/Issue47/sample.json":226,"./files/Issue47/swagger_draft.json":227,"./files/Issue47/swagger_draft_modified.json":228}],202:[function(require,module,exports){
24189
+ },{"./files/Issue47/draft4.json":226,"./files/Issue47/sample.json":227,"./files/Issue47/swagger_draft.json":228,"./files/Issue47/swagger_draft_modified.json":229}],203:[function(require,module,exports){
23995
24190
  "use strict";
23996
24191
 
23997
24192
  module.exports = {
@@ -24024,7 +24219,7 @@ module.exports = {
24024
24219
  ]
24025
24220
  };
24026
24221
 
24027
- },{}],203:[function(require,module,exports){
24222
+ },{}],204:[function(require,module,exports){
24028
24223
  "use strict";
24029
24224
 
24030
24225
  module.exports = {
@@ -24042,7 +24237,7 @@ module.exports = {
24042
24237
  ]
24043
24238
  };
24044
24239
 
24045
- },{}],204:[function(require,module,exports){
24240
+ },{}],205:[function(require,module,exports){
24046
24241
  "use strict";
24047
24242
 
24048
24243
  module.exports = {
@@ -24064,7 +24259,7 @@ module.exports = {
24064
24259
  ]
24065
24260
  };
24066
24261
 
24067
- },{}],205:[function(require,module,exports){
24262
+ },{}],206:[function(require,module,exports){
24068
24263
  "use strict";
24069
24264
 
24070
24265
  module.exports = {
@@ -24135,7 +24330,7 @@ module.exports = {
24135
24330
  ]
24136
24331
  };
24137
24332
 
24138
- },{}],206:[function(require,module,exports){
24333
+ },{}],207:[function(require,module,exports){
24139
24334
  "use strict";
24140
24335
 
24141
24336
  var dataTypeBaseJson = {
@@ -24820,7 +25015,7 @@ module.exports = {
24820
25015
  ]
24821
25016
  };
24822
25017
 
24823
- },{}],207:[function(require,module,exports){
25018
+ },{}],208:[function(require,module,exports){
24824
25019
  "use strict";
24825
25020
 
24826
25021
  module.exports = {
@@ -24883,7 +25078,7 @@ module.exports = {
24883
25078
  ]
24884
25079
  };
24885
25080
 
24886
- },{}],208:[function(require,module,exports){
25081
+ },{}],209:[function(require,module,exports){
24887
25082
  /*jshint -W101*/
24888
25083
 
24889
25084
  "use strict";
@@ -25460,7 +25655,7 @@ module.exports = {
25460
25655
  ]
25461
25656
  };
25462
25657
 
25463
- },{}],209:[function(require,module,exports){
25658
+ },{}],210:[function(require,module,exports){
25464
25659
  "use strict";
25465
25660
 
25466
25661
  module.exports = {
@@ -25491,7 +25686,7 @@ module.exports = {
25491
25686
  ]
25492
25687
  };
25493
25688
 
25494
- },{}],210:[function(require,module,exports){
25689
+ },{}],211:[function(require,module,exports){
25495
25690
  "use strict";
25496
25691
 
25497
25692
  module.exports = {
@@ -25542,7 +25737,7 @@ module.exports = {
25542
25737
  ]
25543
25738
  };
25544
25739
 
25545
- },{}],211:[function(require,module,exports){
25740
+ },{}],212:[function(require,module,exports){
25546
25741
  "use strict";
25547
25742
 
25548
25743
  module.exports = {
@@ -25662,7 +25857,7 @@ module.exports = {
25662
25857
  ]
25663
25858
  };
25664
25859
 
25665
- },{}],212:[function(require,module,exports){
25860
+ },{}],213:[function(require,module,exports){
25666
25861
  "use strict";
25667
25862
 
25668
25863
  module.exports = {
@@ -25720,7 +25915,7 @@ module.exports = {
25720
25915
  ]
25721
25916
  };
25722
25917
 
25723
- },{}],213:[function(require,module,exports){
25918
+ },{}],214:[function(require,module,exports){
25724
25919
  "use strict";
25725
25920
 
25726
25921
  module.exports = {
@@ -25793,7 +25988,7 @@ module.exports = {
25793
25988
  ]
25794
25989
  };
25795
25990
 
25796
- },{}],214:[function(require,module,exports){
25991
+ },{}],215:[function(require,module,exports){
25797
25992
  "use strict";
25798
25993
 
25799
25994
  var innerSchema = {
@@ -25838,7 +26033,7 @@ module.exports = {
25838
26033
  ]
25839
26034
  };
25840
26035
 
25841
- },{}],215:[function(require,module,exports){
26036
+ },{}],216:[function(require,module,exports){
25842
26037
  "use strict";
25843
26038
 
25844
26039
  var schema1 = {
@@ -25882,7 +26077,7 @@ module.exports = {
25882
26077
  ]
25883
26078
  };
25884
26079
 
25885
- },{}],216:[function(require,module,exports){
26080
+ },{}],217:[function(require,module,exports){
25886
26081
  "use strict";
25887
26082
 
25888
26083
  module.exports = {
@@ -25900,7 +26095,7 @@ module.exports = {
25900
26095
  ]
25901
26096
  };
25902
26097
 
25903
- },{}],217:[function(require,module,exports){
26098
+ },{}],218:[function(require,module,exports){
25904
26099
  "use strict";
25905
26100
 
25906
26101
  module.exports = {
@@ -25932,7 +26127,7 @@ module.exports = {
25932
26127
  ]
25933
26128
  };
25934
26129
 
25935
- },{}],218:[function(require,module,exports){
26130
+ },{}],219:[function(require,module,exports){
25936
26131
  "use strict";
25937
26132
 
25938
26133
  module.exports = {
@@ -25991,7 +26186,7 @@ module.exports = {
25991
26186
  ]
25992
26187
  };
25993
26188
 
25994
- },{}],219:[function(require,module,exports){
26189
+ },{}],220:[function(require,module,exports){
25995
26190
  "use strict";
25996
26191
 
25997
26192
  module.exports = {
@@ -26016,7 +26211,7 @@ module.exports = {
26016
26211
  ]
26017
26212
  };
26018
26213
 
26019
- },{}],220:[function(require,module,exports){
26214
+ },{}],221:[function(require,module,exports){
26020
26215
  "use strict";
26021
26216
 
26022
26217
  module.exports = {
@@ -26041,7 +26236,7 @@ module.exports = {
26041
26236
  ]
26042
26237
  };
26043
26238
 
26044
- },{}],221:[function(require,module,exports){
26239
+ },{}],222:[function(require,module,exports){
26045
26240
  "use strict";
26046
26241
 
26047
26242
  module.exports = {
@@ -26086,7 +26281,7 @@ module.exports = {
26086
26281
  ]
26087
26282
  };
26088
26283
 
26089
- },{}],222:[function(require,module,exports){
26284
+ },{}],223:[function(require,module,exports){
26090
26285
  "use strict";
26091
26286
 
26092
26287
  module.exports = {
@@ -26111,7 +26306,7 @@ module.exports = {
26111
26306
  ]
26112
26307
  };
26113
26308
 
26114
- },{}],223:[function(require,module,exports){
26309
+ },{}],224:[function(require,module,exports){
26115
26310
  "use strict";
26116
26311
 
26117
26312
  module.exports = {
@@ -26150,7 +26345,7 @@ module.exports = {
26150
26345
  ]
26151
26346
  };
26152
26347
 
26153
- },{}],224:[function(require,module,exports){
26348
+ },{}],225:[function(require,module,exports){
26154
26349
  "use strict";
26155
26350
 
26156
26351
  module.exports = {
@@ -26180,7 +26375,7 @@ module.exports = {
26180
26375
  ]
26181
26376
  };
26182
26377
 
26183
- },{}],225:[function(require,module,exports){
26378
+ },{}],226:[function(require,module,exports){
26184
26379
  module.exports={
26185
26380
  "id": "http://json-schema.org/draft-04/schema#",
26186
26381
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -26332,7 +26527,7 @@ module.exports={
26332
26527
  "default": {}
26333
26528
  }
26334
26529
 
26335
- },{}],226:[function(require,module,exports){
26530
+ },{}],227:[function(require,module,exports){
26336
26531
  module.exports={
26337
26532
  "swagger": 2,
26338
26533
  "info": {
@@ -26423,7 +26618,7 @@ module.exports={
26423
26618
  }
26424
26619
  }
26425
26620
 
26426
- },{}],227:[function(require,module,exports){
26621
+ },{}],228:[function(require,module,exports){
26427
26622
  module.exports={
26428
26623
  "title": "A JSON Schema for Swagger 2.0 API.",
26429
26624
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -26821,7 +27016,7 @@ module.exports={
26821
27016
  }
26822
27017
  }
26823
27018
 
26824
- },{}],228:[function(require,module,exports){
27019
+ },{}],229:[function(require,module,exports){
26825
27020
  module.exports={
26826
27021
  "title": "A JSON Schema for Swagger 2.0 API.",
26827
27022
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -27219,7 +27414,7 @@ module.exports={
27219
27414
  }
27220
27415
  }
27221
27416
 
27222
- },{}],229:[function(require,module,exports){
27417
+ },{}],230:[function(require,module,exports){
27223
27418
  'use strict';
27224
27419
 
27225
27420
  module.exports = {
@@ -27244,15 +27439,15 @@ module.exports = {
27244
27439
  ]
27245
27440
  };
27246
27441
 
27247
- },{}],230:[function(require,module,exports){
27248
- arguments[4][225][0].apply(exports,arguments)
27249
- },{"dup":225}],231:[function(require,module,exports){
27442
+ },{}],231:[function(require,module,exports){
27443
+ arguments[4][226][0].apply(exports,arguments)
27444
+ },{"dup":226}],232:[function(require,module,exports){
27250
27445
  module.exports={
27251
27446
  "type": "integer"
27252
27447
  }
27253
- },{}],232:[function(require,module,exports){
27254
- arguments[4][231][0].apply(exports,arguments)
27255
- },{"dup":231}],233:[function(require,module,exports){
27448
+ },{}],233:[function(require,module,exports){
27449
+ arguments[4][232][0].apply(exports,arguments)
27450
+ },{"dup":232}],234:[function(require,module,exports){
27256
27451
  module.exports={
27257
27452
  "integer": {
27258
27453
  "type": "integer"
@@ -27261,7 +27456,7 @@ module.exports={
27261
27456
  "$ref": "#/integer"
27262
27457
  }
27263
27458
  }
27264
- },{}],234:[function(require,module,exports){
27459
+ },{}],235:[function(require,module,exports){
27265
27460
  module.exports=[
27266
27461
  {
27267
27462
  "description": "additionalItems as schema",
@@ -27345,7 +27540,7 @@ module.exports=[
27345
27540
  }
27346
27541
  ]
27347
27542
 
27348
- },{}],235:[function(require,module,exports){
27543
+ },{}],236:[function(require,module,exports){
27349
27544
  module.exports=[
27350
27545
  {
27351
27546
  "description":
@@ -27435,7 +27630,7 @@ module.exports=[
27435
27630
  }
27436
27631
  ]
27437
27632
 
27438
- },{}],236:[function(require,module,exports){
27633
+ },{}],237:[function(require,module,exports){
27439
27634
  module.exports=[
27440
27635
  {
27441
27636
  "description": "allOf",
@@ -27549,7 +27744,7 @@ module.exports=[
27549
27744
  }
27550
27745
  ]
27551
27746
 
27552
- },{}],237:[function(require,module,exports){
27747
+ },{}],238:[function(require,module,exports){
27553
27748
  module.exports=[
27554
27749
  {
27555
27750
  "description": "anyOf",
@@ -27619,7 +27814,7 @@ module.exports=[
27619
27814
  }
27620
27815
  ]
27621
27816
 
27622
- },{}],238:[function(require,module,exports){
27817
+ },{}],239:[function(require,module,exports){
27623
27818
  module.exports=[
27624
27819
  {
27625
27820
  "description": "invalid type for default",
@@ -27670,7 +27865,7 @@ module.exports=[
27670
27865
  }
27671
27866
  ]
27672
27867
 
27673
- },{}],239:[function(require,module,exports){
27868
+ },{}],240:[function(require,module,exports){
27674
27869
  module.exports=[
27675
27870
  {
27676
27871
  "description": "valid definition",
@@ -27704,7 +27899,7 @@ module.exports=[
27704
27899
  }
27705
27900
  ]
27706
27901
 
27707
- },{}],240:[function(require,module,exports){
27902
+ },{}],241:[function(require,module,exports){
27708
27903
  module.exports=[
27709
27904
  {
27710
27905
  "description": "dependencies",
@@ -27819,7 +28014,7 @@ module.exports=[
27819
28014
  }
27820
28015
  ]
27821
28016
 
27822
- },{}],241:[function(require,module,exports){
28017
+ },{}],242:[function(require,module,exports){
27823
28018
  module.exports=[
27824
28019
  {
27825
28020
  "description": "simple enum validation",
@@ -27893,7 +28088,7 @@ module.exports=[
27893
28088
  }
27894
28089
  ]
27895
28090
 
27896
- },{}],242:[function(require,module,exports){
28091
+ },{}],243:[function(require,module,exports){
27897
28092
  module.exports=[
27898
28093
  {
27899
28094
  "description": "a schema given for items",
@@ -27941,7 +28136,7 @@ module.exports=[
27941
28136
  }
27942
28137
  ]
27943
28138
 
27944
- },{}],243:[function(require,module,exports){
28139
+ },{}],244:[function(require,module,exports){
27945
28140
  module.exports=[
27946
28141
  {
27947
28142
  "description": "maxItems validation",
@@ -27971,7 +28166,7 @@ module.exports=[
27971
28166
  }
27972
28167
  ]
27973
28168
 
27974
- },{}],244:[function(require,module,exports){
28169
+ },{}],245:[function(require,module,exports){
27975
28170
  module.exports=[
27976
28171
  {
27977
28172
  "description": "maxLength validation",
@@ -28006,7 +28201,7 @@ module.exports=[
28006
28201
  }
28007
28202
  ]
28008
28203
 
28009
- },{}],245:[function(require,module,exports){
28204
+ },{}],246:[function(require,module,exports){
28010
28205
  module.exports=[
28011
28206
  {
28012
28207
  "description": "maxProperties validation",
@@ -28036,7 +28231,7 @@ module.exports=[
28036
28231
  }
28037
28232
  ]
28038
28233
 
28039
- },{}],246:[function(require,module,exports){
28234
+ },{}],247:[function(require,module,exports){
28040
28235
  module.exports=[
28041
28236
  {
28042
28237
  "description": "maximum validation",
@@ -28080,7 +28275,7 @@ module.exports=[
28080
28275
  }
28081
28276
  ]
28082
28277
 
28083
- },{}],247:[function(require,module,exports){
28278
+ },{}],248:[function(require,module,exports){
28084
28279
  module.exports=[
28085
28280
  {
28086
28281
  "description": "minItems validation",
@@ -28110,7 +28305,7 @@ module.exports=[
28110
28305
  }
28111
28306
  ]
28112
28307
 
28113
- },{}],248:[function(require,module,exports){
28308
+ },{}],249:[function(require,module,exports){
28114
28309
  module.exports=[
28115
28310
  {
28116
28311
  "description": "minLength validation",
@@ -28145,7 +28340,7 @@ module.exports=[
28145
28340
  }
28146
28341
  ]
28147
28342
 
28148
- },{}],249:[function(require,module,exports){
28343
+ },{}],250:[function(require,module,exports){
28149
28344
  module.exports=[
28150
28345
  {
28151
28346
  "description": "minProperties validation",
@@ -28175,7 +28370,7 @@ module.exports=[
28175
28370
  }
28176
28371
  ]
28177
28372
 
28178
- },{}],250:[function(require,module,exports){
28373
+ },{}],251:[function(require,module,exports){
28179
28374
  module.exports=[
28180
28375
  {
28181
28376
  "description": "minimum validation",
@@ -28219,7 +28414,7 @@ module.exports=[
28219
28414
  }
28220
28415
  ]
28221
28416
 
28222
- },{}],251:[function(require,module,exports){
28417
+ },{}],252:[function(require,module,exports){
28223
28418
  module.exports=[
28224
28419
  {
28225
28420
  "description": "by int",
@@ -28281,7 +28476,7 @@ module.exports=[
28281
28476
  }
28282
28477
  ]
28283
28478
 
28284
- },{}],252:[function(require,module,exports){
28479
+ },{}],253:[function(require,module,exports){
28285
28480
  module.exports=[
28286
28481
  {
28287
28482
  "description": "not",
@@ -28379,7 +28574,7 @@ module.exports=[
28379
28574
 
28380
28575
  ]
28381
28576
 
28382
- },{}],253:[function(require,module,exports){
28577
+ },{}],254:[function(require,module,exports){
28383
28578
  module.exports=[
28384
28579
  {
28385
28580
  "description": "oneOf",
@@ -28449,7 +28644,7 @@ module.exports=[
28449
28644
  }
28450
28645
  ]
28451
28646
 
28452
- },{}],254:[function(require,module,exports){
28647
+ },{}],255:[function(require,module,exports){
28453
28648
  module.exports=[
28454
28649
  {
28455
28650
  "description": "integer",
@@ -28558,7 +28753,7 @@ module.exports=[
28558
28753
  }
28559
28754
  ]
28560
28755
 
28561
- },{}],255:[function(require,module,exports){
28756
+ },{}],256:[function(require,module,exports){
28562
28757
  module.exports=[
28563
28758
  {
28564
28759
  "description": "validation of date-time strings",
@@ -28703,7 +28898,7 @@ module.exports=[
28703
28898
  }
28704
28899
  ]
28705
28900
 
28706
- },{}],256:[function(require,module,exports){
28901
+ },{}],257:[function(require,module,exports){
28707
28902
  module.exports=[
28708
28903
  {
28709
28904
  "description": "pattern validation",
@@ -28728,7 +28923,7 @@ module.exports=[
28728
28923
  }
28729
28924
  ]
28730
28925
 
28731
- },{}],257:[function(require,module,exports){
28926
+ },{}],258:[function(require,module,exports){
28732
28927
  module.exports=[
28733
28928
  {
28734
28929
  "description":
@@ -28840,7 +29035,7 @@ module.exports=[
28840
29035
  }
28841
29036
  ]
28842
29037
 
28843
- },{}],258:[function(require,module,exports){
29038
+ },{}],259:[function(require,module,exports){
28844
29039
  module.exports=[
28845
29040
  {
28846
29041
  "description": "object properties validation",
@@ -28934,7 +29129,7 @@ module.exports=[
28934
29129
  }
28935
29130
  ]
28936
29131
 
28937
- },{}],259:[function(require,module,exports){
29132
+ },{}],260:[function(require,module,exports){
28938
29133
  module.exports=[
28939
29134
  {
28940
29135
  "description": "root pointer ref",
@@ -29080,7 +29275,7 @@ module.exports=[
29080
29275
  }
29081
29276
  ]
29082
29277
 
29083
- },{}],260:[function(require,module,exports){
29278
+ },{}],261:[function(require,module,exports){
29084
29279
  module.exports=[
29085
29280
  {
29086
29281
  "description": "remote ref",
@@ -29156,7 +29351,7 @@ module.exports=[
29156
29351
  }
29157
29352
  ]
29158
29353
 
29159
- },{}],261:[function(require,module,exports){
29354
+ },{}],262:[function(require,module,exports){
29160
29355
  module.exports=[
29161
29356
  {
29162
29357
  "description": "required validation",
@@ -29197,7 +29392,7 @@ module.exports=[
29197
29392
  }
29198
29393
  ]
29199
29394
 
29200
- },{}],262:[function(require,module,exports){
29395
+ },{}],263:[function(require,module,exports){
29201
29396
  module.exports=[
29202
29397
  {
29203
29398
  "description": "integer type matches integers",
@@ -29529,7 +29724,7 @@ module.exports=[
29529
29724
  }
29530
29725
  ]
29531
29726
 
29532
- },{}],263:[function(require,module,exports){
29727
+ },{}],264:[function(require,module,exports){
29533
29728
  module.exports=[
29534
29729
  {
29535
29730
  "description": "uniqueItems validation",
@@ -29610,7 +29805,7 @@ module.exports=[
29610
29805
  }
29611
29806
  ]
29612
29807
 
29613
- },{}],264:[function(require,module,exports){
29808
+ },{}],265:[function(require,module,exports){
29614
29809
  "use strict";
29615
29810
 
29616
29811
  var isBrowser = typeof window !== "undefined";
@@ -29703,7 +29898,7 @@ describe("Automatic schema loading", function () {
29703
29898
 
29704
29899
  });
29705
29900
 
29706
- },{"../../src/ZSchema":150,"https":7}],265:[function(require,module,exports){
29901
+ },{"../../src/ZSchema":151,"https":7}],266:[function(require,module,exports){
29707
29902
  "use strict";
29708
29903
 
29709
29904
  var ZSchema = require("../../src/ZSchema");
@@ -29775,7 +29970,7 @@ describe("Basic", function () {
29775
29970
 
29776
29971
  });
29777
29972
 
29778
- },{"../../src/ZSchema":150,"../files/draft-04-schema.json":230,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":231,"../jsonSchemaTestSuite/remotes/integer.json":232,"../jsonSchemaTestSuite/remotes/subSchemas.json":233}],266:[function(require,module,exports){
29973
+ },{"../../src/ZSchema":151,"../files/draft-04-schema.json":231,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":232,"../jsonSchemaTestSuite/remotes/integer.json":233,"../jsonSchemaTestSuite/remotes/subSchemas.json":234}],267:[function(require,module,exports){
29779
29974
  "use strict";
29780
29975
 
29781
29976
  var ZSchema = require("../../src/ZSchema");
@@ -29871,7 +30066,7 @@ describe("JsonSchemaTestSuite", function () {
29871
30066
 
29872
30067
  });
29873
30068
 
29874
- },{"../../src/ZSchema":150,"../files/draft-04-schema.json":230,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":231,"../jsonSchemaTestSuite/remotes/integer.json":232,"../jsonSchemaTestSuite/remotes/subSchemas.json":233,"../jsonSchemaTestSuite/tests/draft4/additionalItems.json":234,"../jsonSchemaTestSuite/tests/draft4/additionalProperties.json":235,"../jsonSchemaTestSuite/tests/draft4/allOf.json":236,"../jsonSchemaTestSuite/tests/draft4/anyOf.json":237,"../jsonSchemaTestSuite/tests/draft4/default.json":238,"../jsonSchemaTestSuite/tests/draft4/definitions.json":239,"../jsonSchemaTestSuite/tests/draft4/dependencies.json":240,"../jsonSchemaTestSuite/tests/draft4/enum.json":241,"../jsonSchemaTestSuite/tests/draft4/items.json":242,"../jsonSchemaTestSuite/tests/draft4/maxItems.json":243,"../jsonSchemaTestSuite/tests/draft4/maxLength.json":244,"../jsonSchemaTestSuite/tests/draft4/maxProperties.json":245,"../jsonSchemaTestSuite/tests/draft4/maximum.json":246,"../jsonSchemaTestSuite/tests/draft4/minItems.json":247,"../jsonSchemaTestSuite/tests/draft4/minLength.json":248,"../jsonSchemaTestSuite/tests/draft4/minProperties.json":249,"../jsonSchemaTestSuite/tests/draft4/minimum.json":250,"../jsonSchemaTestSuite/tests/draft4/multipleOf.json":251,"../jsonSchemaTestSuite/tests/draft4/not.json":252,"../jsonSchemaTestSuite/tests/draft4/oneOf.json":253,"../jsonSchemaTestSuite/tests/draft4/optional/bignum.json":254,"../jsonSchemaTestSuite/tests/draft4/optional/format.json":255,"../jsonSchemaTestSuite/tests/draft4/pattern.json":256,"../jsonSchemaTestSuite/tests/draft4/patternProperties.json":257,"../jsonSchemaTestSuite/tests/draft4/properties.json":258,"../jsonSchemaTestSuite/tests/draft4/ref.json":259,"../jsonSchemaTestSuite/tests/draft4/refRemote.json":260,"../jsonSchemaTestSuite/tests/draft4/required.json":261,"../jsonSchemaTestSuite/tests/draft4/type.json":262,"../jsonSchemaTestSuite/tests/draft4/uniqueItems.json":263}],267:[function(require,module,exports){
30069
+ },{"../../src/ZSchema":151,"../files/draft-04-schema.json":231,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":232,"../jsonSchemaTestSuite/remotes/integer.json":233,"../jsonSchemaTestSuite/remotes/subSchemas.json":234,"../jsonSchemaTestSuite/tests/draft4/additionalItems.json":235,"../jsonSchemaTestSuite/tests/draft4/additionalProperties.json":236,"../jsonSchemaTestSuite/tests/draft4/allOf.json":237,"../jsonSchemaTestSuite/tests/draft4/anyOf.json":238,"../jsonSchemaTestSuite/tests/draft4/default.json":239,"../jsonSchemaTestSuite/tests/draft4/definitions.json":240,"../jsonSchemaTestSuite/tests/draft4/dependencies.json":241,"../jsonSchemaTestSuite/tests/draft4/enum.json":242,"../jsonSchemaTestSuite/tests/draft4/items.json":243,"../jsonSchemaTestSuite/tests/draft4/maxItems.json":244,"../jsonSchemaTestSuite/tests/draft4/maxLength.json":245,"../jsonSchemaTestSuite/tests/draft4/maxProperties.json":246,"../jsonSchemaTestSuite/tests/draft4/maximum.json":247,"../jsonSchemaTestSuite/tests/draft4/minItems.json":248,"../jsonSchemaTestSuite/tests/draft4/minLength.json":249,"../jsonSchemaTestSuite/tests/draft4/minProperties.json":250,"../jsonSchemaTestSuite/tests/draft4/minimum.json":251,"../jsonSchemaTestSuite/tests/draft4/multipleOf.json":252,"../jsonSchemaTestSuite/tests/draft4/not.json":253,"../jsonSchemaTestSuite/tests/draft4/oneOf.json":254,"../jsonSchemaTestSuite/tests/draft4/optional/bignum.json":255,"../jsonSchemaTestSuite/tests/draft4/optional/format.json":256,"../jsonSchemaTestSuite/tests/draft4/pattern.json":257,"../jsonSchemaTestSuite/tests/draft4/patternProperties.json":258,"../jsonSchemaTestSuite/tests/draft4/properties.json":259,"../jsonSchemaTestSuite/tests/draft4/ref.json":260,"../jsonSchemaTestSuite/tests/draft4/refRemote.json":261,"../jsonSchemaTestSuite/tests/draft4/required.json":262,"../jsonSchemaTestSuite/tests/draft4/type.json":263,"../jsonSchemaTestSuite/tests/draft4/uniqueItems.json":264}],268:[function(require,module,exports){
29875
30070
  "use strict";
29876
30071
 
29877
30072
  var ZSchema = require("../../src/ZSchema");
@@ -29905,7 +30100,7 @@ describe("Using multiple instances of Z-Schema", function () {
29905
30100
 
29906
30101
  });
29907
30102
 
29908
- },{"../../src/ZSchema":150}],268:[function(require,module,exports){
30103
+ },{"../../src/ZSchema":151}],269:[function(require,module,exports){
29909
30104
  /*jshint -W030 */
29910
30105
 
29911
30106
  "use strict";
@@ -30110,7 +30305,7 @@ describe("ZSchemaTestSuite", function () {
30110
30305
 
30111
30306
  });
30112
30307
 
30113
- },{"../../src/ZSchema":150,"../ZSchemaTestSuite/AssumeAdditional.js":153,"../ZSchemaTestSuite/CustomFormats.js":154,"../ZSchemaTestSuite/CustomFormatsAsync.js":155,"../ZSchemaTestSuite/CustomValidator.js":156,"../ZSchemaTestSuite/ErrorPathAsArray.js":157,"../ZSchemaTestSuite/ErrorPathAsJSONPointer.js":158,"../ZSchemaTestSuite/ErrorPathContainsIntegerIndex.js":159,"../ZSchemaTestSuite/ForceAdditional.js":160,"../ZSchemaTestSuite/ForceItems.js":161,"../ZSchemaTestSuite/ForceMaxItems.js":162,"../ZSchemaTestSuite/ForceMaxLength.js":163,"../ZSchemaTestSuite/ForceMinItems.js":164,"../ZSchemaTestSuite/ForceMinLength.js":165,"../ZSchemaTestSuite/ForceProperties.js":166,"../ZSchemaTestSuite/IgnoreUnresolvableReferences.js":167,"../ZSchemaTestSuite/IncludeErrors.js":168,"../ZSchemaTestSuite/InvalidId.js":169,"../ZSchemaTestSuite/Issue101.js":170,"../ZSchemaTestSuite/Issue102.js":171,"../ZSchemaTestSuite/Issue103.js":172,"../ZSchemaTestSuite/Issue106.js":173,"../ZSchemaTestSuite/Issue107.js":174,"../ZSchemaTestSuite/Issue12.js":175,"../ZSchemaTestSuite/Issue121.js":176,"../ZSchemaTestSuite/Issue126.js":177,"../ZSchemaTestSuite/Issue13.js":178,"../ZSchemaTestSuite/Issue130.js":179,"../ZSchemaTestSuite/Issue131.js":180,"../ZSchemaTestSuite/Issue137.js":181,"../ZSchemaTestSuite/Issue139.js":182,"../ZSchemaTestSuite/Issue142.js":183,"../ZSchemaTestSuite/Issue146.js":184,"../ZSchemaTestSuite/Issue151.js":185,"../ZSchemaTestSuite/Issue16.js":186,"../ZSchemaTestSuite/Issue199.js":187,"../ZSchemaTestSuite/Issue209.js":188,"../ZSchemaTestSuite/Issue22.js":189,"../ZSchemaTestSuite/Issue222.js":190,"../ZSchemaTestSuite/Issue229.js":191,"../ZSchemaTestSuite/Issue25.js":192,"../ZSchemaTestSuite/Issue250.js":193,"../ZSchemaTestSuite/Issue26.js":194,"../ZSchemaTestSuite/Issue37.js":195,"../ZSchemaTestSuite/Issue40.js":196,"../ZSchemaTestSuite/Issue41.js":197,"../ZSchemaTestSuite/Issue43.js":198,"../ZSchemaTestSuite/Issue44.js":199,"../ZSchemaTestSuite/Issue45.js":200,"../ZSchemaTestSuite/Issue47.js":201,"../ZSchemaTestSuite/Issue48.js":202,"../ZSchemaTestSuite/Issue49.js":203,"../ZSchemaTestSuite/Issue53.js":204,"../ZSchemaTestSuite/Issue56.js":205,"../ZSchemaTestSuite/Issue57.js":206,"../ZSchemaTestSuite/Issue58.js":207,"../ZSchemaTestSuite/Issue63.js":208,"../ZSchemaTestSuite/Issue64.js":209,"../ZSchemaTestSuite/Issue67.js":210,"../ZSchemaTestSuite/Issue71.js":211,"../ZSchemaTestSuite/Issue73.js":212,"../ZSchemaTestSuite/Issue76.js":213,"../ZSchemaTestSuite/Issue85.js":214,"../ZSchemaTestSuite/Issue94.js":215,"../ZSchemaTestSuite/Issue96.js":216,"../ZSchemaTestSuite/Issue98.js":217,"../ZSchemaTestSuite/MultipleSchemas.js":218,"../ZSchemaTestSuite/NoEmptyArrays.js":219,"../ZSchemaTestSuite/NoEmptyStrings.js":220,"../ZSchemaTestSuite/NoExtraKeywords.js":221,"../ZSchemaTestSuite/NoTypeless.js":222,"../ZSchemaTestSuite/PedanticCheck.js":223,"../ZSchemaTestSuite/StrictUris.js":224,"../ZSchemaTestSuite/getRegisteredFormats.js":229}],269:[function(require,module,exports){
30308
+ },{"../../src/ZSchema":151,"../ZSchemaTestSuite/AssumeAdditional.js":154,"../ZSchemaTestSuite/CustomFormats.js":155,"../ZSchemaTestSuite/CustomFormatsAsync.js":156,"../ZSchemaTestSuite/CustomValidator.js":157,"../ZSchemaTestSuite/ErrorPathAsArray.js":158,"../ZSchemaTestSuite/ErrorPathAsJSONPointer.js":159,"../ZSchemaTestSuite/ErrorPathContainsIntegerIndex.js":160,"../ZSchemaTestSuite/ForceAdditional.js":161,"../ZSchemaTestSuite/ForceItems.js":162,"../ZSchemaTestSuite/ForceMaxItems.js":163,"../ZSchemaTestSuite/ForceMaxLength.js":164,"../ZSchemaTestSuite/ForceMinItems.js":165,"../ZSchemaTestSuite/ForceMinLength.js":166,"../ZSchemaTestSuite/ForceProperties.js":167,"../ZSchemaTestSuite/IgnoreUnresolvableReferences.js":168,"../ZSchemaTestSuite/IncludeErrors.js":169,"../ZSchemaTestSuite/InvalidId.js":170,"../ZSchemaTestSuite/Issue101.js":171,"../ZSchemaTestSuite/Issue102.js":172,"../ZSchemaTestSuite/Issue103.js":173,"../ZSchemaTestSuite/Issue106.js":174,"../ZSchemaTestSuite/Issue107.js":175,"../ZSchemaTestSuite/Issue12.js":176,"../ZSchemaTestSuite/Issue121.js":177,"../ZSchemaTestSuite/Issue126.js":178,"../ZSchemaTestSuite/Issue13.js":179,"../ZSchemaTestSuite/Issue130.js":180,"../ZSchemaTestSuite/Issue131.js":181,"../ZSchemaTestSuite/Issue137.js":182,"../ZSchemaTestSuite/Issue139.js":183,"../ZSchemaTestSuite/Issue142.js":184,"../ZSchemaTestSuite/Issue146.js":185,"../ZSchemaTestSuite/Issue151.js":186,"../ZSchemaTestSuite/Issue16.js":187,"../ZSchemaTestSuite/Issue199.js":188,"../ZSchemaTestSuite/Issue209.js":189,"../ZSchemaTestSuite/Issue22.js":190,"../ZSchemaTestSuite/Issue222.js":191,"../ZSchemaTestSuite/Issue229.js":192,"../ZSchemaTestSuite/Issue25.js":193,"../ZSchemaTestSuite/Issue250.js":194,"../ZSchemaTestSuite/Issue26.js":195,"../ZSchemaTestSuite/Issue37.js":196,"../ZSchemaTestSuite/Issue40.js":197,"../ZSchemaTestSuite/Issue41.js":198,"../ZSchemaTestSuite/Issue43.js":199,"../ZSchemaTestSuite/Issue44.js":200,"../ZSchemaTestSuite/Issue45.js":201,"../ZSchemaTestSuite/Issue47.js":202,"../ZSchemaTestSuite/Issue48.js":203,"../ZSchemaTestSuite/Issue49.js":204,"../ZSchemaTestSuite/Issue53.js":205,"../ZSchemaTestSuite/Issue56.js":206,"../ZSchemaTestSuite/Issue57.js":207,"../ZSchemaTestSuite/Issue58.js":208,"../ZSchemaTestSuite/Issue63.js":209,"../ZSchemaTestSuite/Issue64.js":210,"../ZSchemaTestSuite/Issue67.js":211,"../ZSchemaTestSuite/Issue71.js":212,"../ZSchemaTestSuite/Issue73.js":213,"../ZSchemaTestSuite/Issue76.js":214,"../ZSchemaTestSuite/Issue85.js":215,"../ZSchemaTestSuite/Issue94.js":216,"../ZSchemaTestSuite/Issue96.js":217,"../ZSchemaTestSuite/Issue98.js":218,"../ZSchemaTestSuite/MultipleSchemas.js":219,"../ZSchemaTestSuite/NoEmptyArrays.js":220,"../ZSchemaTestSuite/NoEmptyStrings.js":221,"../ZSchemaTestSuite/NoExtraKeywords.js":222,"../ZSchemaTestSuite/NoTypeless.js":223,"../ZSchemaTestSuite/PedanticCheck.js":224,"../ZSchemaTestSuite/StrictUris.js":225,"../ZSchemaTestSuite/getRegisteredFormats.js":230}],270:[function(require,module,exports){
30114
30309
  "use strict";
30115
30310
 
30116
30311
  var ZSchema = require("../../src/ZSchema");
@@ -30209,4 +30404,4 @@ describe("Using path to schema as a third argument", function () {
30209
30404
 
30210
30405
  });
30211
30406
 
30212
- },{"../../src/ZSchema":150}]},{},[264,265,266,267,269,268]);
30407
+ },{"../../src/ZSchema":151}]},{},[265,266,267,268,270,269]);