z-schema 3.25.1 → 4.1.0

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.
@@ -691,6 +691,7 @@ function fromByteArray (uint8) {
691
691
 
692
692
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
693
693
  },{}],4:[function(require,module,exports){
694
+ (function (Buffer){
694
695
  /*!
695
696
  * The buffer module from node.js, for the browser.
696
697
  *
@@ -2469,7 +2470,8 @@ function numberIsNaN (obj) {
2469
2470
  return obj !== obj // eslint-disable-line no-self-compare
2470
2471
  }
2471
2472
 
2472
- },{"base64-js":1,"ieee754":60}],5:[function(require,module,exports){
2473
+ }).call(this,require("buffer").Buffer)
2474
+ },{"base64-js":1,"buffer":4,"ieee754":62}],5:[function(require,module,exports){
2473
2475
  module.exports = {
2474
2476
  "100": "Continue",
2475
2477
  "101": "Switching Protocols",
@@ -2540,7 +2542,7 @@ require('../modules/es6.symbol');
2540
2542
  require('../modules/es6.object.to-string');
2541
2543
  module.exports = require('../modules/_core').Symbol;
2542
2544
 
2543
- },{"../modules/_core":12,"../modules/es6.object.to-string":55,"../modules/es6.symbol":56}],7:[function(require,module,exports){
2545
+ },{"../modules/_core":12,"../modules/es6.object.to-string":57,"../modules/es6.symbol":58}],7:[function(require,module,exports){
2544
2546
  module.exports = function (it) {
2545
2547
  if (typeof it != 'function') throw TypeError(it + ' is not a function!');
2546
2548
  return it;
@@ -2553,7 +2555,7 @@ module.exports = function (it) {
2553
2555
  return it;
2554
2556
  };
2555
2557
 
2556
- },{"./_is-object":28}],9:[function(require,module,exports){
2558
+ },{"./_is-object":29}],9:[function(require,module,exports){
2557
2559
  // false -> Array#indexOf
2558
2560
  // true -> Array#includes
2559
2561
  var toIObject = require('./_to-iobject');
@@ -2578,7 +2580,7 @@ module.exports = function (IS_INCLUDES) {
2578
2580
  };
2579
2581
  };
2580
2582
 
2581
- },{"./_to-absolute-index":46,"./_to-iobject":48,"./_to-length":49}],10:[function(require,module,exports){
2583
+ },{"./_to-absolute-index":47,"./_to-iobject":49,"./_to-length":50}],10:[function(require,module,exports){
2582
2584
  // getting tag from 19.1.3.6 Object.prototype.toString()
2583
2585
  var cof = require('./_cof');
2584
2586
  var TAG = require('./_wks')('toStringTag');
@@ -2603,7 +2605,7 @@ module.exports = function (it) {
2603
2605
  : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
2604
2606
  };
2605
2607
 
2606
- },{"./_cof":11,"./_wks":54}],11:[function(require,module,exports){
2608
+ },{"./_cof":11,"./_wks":56}],11:[function(require,module,exports){
2607
2609
  var toString = {}.toString;
2608
2610
 
2609
2611
  module.exports = function (it) {
@@ -2611,7 +2613,7 @@ module.exports = function (it) {
2611
2613
  };
2612
2614
 
2613
2615
  },{}],12:[function(require,module,exports){
2614
- var core = module.exports = { version: '2.5.7' };
2616
+ var core = module.exports = { version: '2.6.9' };
2615
2617
  if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
2616
2618
 
2617
2619
  },{}],13:[function(require,module,exports){
@@ -2658,7 +2660,7 @@ module.exports = function (it) {
2658
2660
  return is ? document.createElement(it) : {};
2659
2661
  };
2660
2662
 
2661
- },{"./_global":21,"./_is-object":28}],17:[function(require,module,exports){
2663
+ },{"./_global":22,"./_is-object":29}],17:[function(require,module,exports){
2662
2664
  // IE 8- don't enum bug keys
2663
2665
  module.exports = (
2664
2666
  'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
@@ -2681,7 +2683,7 @@ module.exports = function (it) {
2681
2683
  } return result;
2682
2684
  };
2683
2685
 
2684
- },{"./_object-gops":37,"./_object-keys":39,"./_object-pie":40}],19:[function(require,module,exports){
2686
+ },{"./_object-gops":38,"./_object-keys":40,"./_object-pie":41}],19:[function(require,module,exports){
2685
2687
  var global = require('./_global');
2686
2688
  var core = require('./_core');
2687
2689
  var hide = require('./_hide');
@@ -2726,7 +2728,7 @@ $export.U = 64; // safe
2726
2728
  $export.R = 128; // real proto method for `library`
2727
2729
  module.exports = $export;
2728
2730
 
2729
- },{"./_core":12,"./_ctx":13,"./_global":21,"./_hide":23,"./_redefine":42}],20:[function(require,module,exports){
2731
+ },{"./_core":12,"./_ctx":13,"./_global":22,"./_hide":24,"./_redefine":43}],20:[function(require,module,exports){
2730
2732
  module.exports = function (exec) {
2731
2733
  try {
2732
2734
  return !!exec();
@@ -2736,6 +2738,9 @@ module.exports = function (exec) {
2736
2738
  };
2737
2739
 
2738
2740
  },{}],21:[function(require,module,exports){
2741
+ module.exports = require('./_shared')('native-function-to-string', Function.toString);
2742
+
2743
+ },{"./_shared":46}],22:[function(require,module,exports){
2739
2744
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
2740
2745
  var global = module.exports = typeof window != 'undefined' && window.Math == Math
2741
2746
  ? window : typeof self != 'undefined' && self.Math == Math ? self
@@ -2743,13 +2748,13 @@ var global = module.exports = typeof window != 'undefined' && window.Math == Mat
2743
2748
  : Function('return this')();
2744
2749
  if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
2745
2750
 
2746
- },{}],22:[function(require,module,exports){
2751
+ },{}],23:[function(require,module,exports){
2747
2752
  var hasOwnProperty = {}.hasOwnProperty;
2748
2753
  module.exports = function (it, key) {
2749
2754
  return hasOwnProperty.call(it, key);
2750
2755
  };
2751
2756
 
2752
- },{}],23:[function(require,module,exports){
2757
+ },{}],24:[function(require,module,exports){
2753
2758
  var dP = require('./_object-dp');
2754
2759
  var createDesc = require('./_property-desc');
2755
2760
  module.exports = require('./_descriptors') ? function (object, key, value) {
@@ -2759,16 +2764,16 @@ module.exports = require('./_descriptors') ? function (object, key, value) {
2759
2764
  return object;
2760
2765
  };
2761
2766
 
2762
- },{"./_descriptors":15,"./_object-dp":32,"./_property-desc":41}],24:[function(require,module,exports){
2767
+ },{"./_descriptors":15,"./_object-dp":33,"./_property-desc":42}],25:[function(require,module,exports){
2763
2768
  var document = require('./_global').document;
2764
2769
  module.exports = document && document.documentElement;
2765
2770
 
2766
- },{"./_global":21}],25:[function(require,module,exports){
2771
+ },{"./_global":22}],26:[function(require,module,exports){
2767
2772
  module.exports = !require('./_descriptors') && !require('./_fails')(function () {
2768
2773
  return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;
2769
2774
  });
2770
2775
 
2771
- },{"./_descriptors":15,"./_dom-create":16,"./_fails":20}],26:[function(require,module,exports){
2776
+ },{"./_descriptors":15,"./_dom-create":16,"./_fails":20}],27:[function(require,module,exports){
2772
2777
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
2773
2778
  var cof = require('./_cof');
2774
2779
  // eslint-disable-next-line no-prototype-builtins
@@ -2776,22 +2781,22 @@ module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
2776
2781
  return cof(it) == 'String' ? it.split('') : Object(it);
2777
2782
  };
2778
2783
 
2779
- },{"./_cof":11}],27:[function(require,module,exports){
2784
+ },{"./_cof":11}],28:[function(require,module,exports){
2780
2785
  // 7.2.2 IsArray(argument)
2781
2786
  var cof = require('./_cof');
2782
2787
  module.exports = Array.isArray || function isArray(arg) {
2783
2788
  return cof(arg) == 'Array';
2784
2789
  };
2785
2790
 
2786
- },{"./_cof":11}],28:[function(require,module,exports){
2791
+ },{"./_cof":11}],29:[function(require,module,exports){
2787
2792
  module.exports = function (it) {
2788
2793
  return typeof it === 'object' ? it !== null : typeof it === 'function';
2789
2794
  };
2790
2795
 
2791
- },{}],29:[function(require,module,exports){
2796
+ },{}],30:[function(require,module,exports){
2792
2797
  module.exports = false;
2793
2798
 
2794
- },{}],30:[function(require,module,exports){
2799
+ },{}],31:[function(require,module,exports){
2795
2800
  var META = require('./_uid')('meta');
2796
2801
  var isObject = require('./_is-object');
2797
2802
  var has = require('./_has');
@@ -2846,7 +2851,7 @@ var meta = module.exports = {
2846
2851
  onFreeze: onFreeze
2847
2852
  };
2848
2853
 
2849
- },{"./_fails":20,"./_has":22,"./_is-object":28,"./_object-dp":32,"./_uid":51}],31:[function(require,module,exports){
2854
+ },{"./_fails":20,"./_has":23,"./_is-object":29,"./_object-dp":33,"./_uid":53}],32:[function(require,module,exports){
2850
2855
  // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
2851
2856
  var anObject = require('./_an-object');
2852
2857
  var dPs = require('./_object-dps');
@@ -2889,7 +2894,7 @@ module.exports = Object.create || function create(O, Properties) {
2889
2894
  return Properties === undefined ? result : dPs(result, Properties);
2890
2895
  };
2891
2896
 
2892
- },{"./_an-object":8,"./_dom-create":16,"./_enum-bug-keys":17,"./_html":24,"./_object-dps":33,"./_shared-key":44}],32:[function(require,module,exports){
2897
+ },{"./_an-object":8,"./_dom-create":16,"./_enum-bug-keys":17,"./_html":25,"./_object-dps":34,"./_shared-key":45}],33:[function(require,module,exports){
2893
2898
  var anObject = require('./_an-object');
2894
2899
  var IE8_DOM_DEFINE = require('./_ie8-dom-define');
2895
2900
  var toPrimitive = require('./_to-primitive');
@@ -2907,7 +2912,7 @@ exports.f = require('./_descriptors') ? Object.defineProperty : function defineP
2907
2912
  return O;
2908
2913
  };
2909
2914
 
2910
- },{"./_an-object":8,"./_descriptors":15,"./_ie8-dom-define":25,"./_to-primitive":50}],33:[function(require,module,exports){
2915
+ },{"./_an-object":8,"./_descriptors":15,"./_ie8-dom-define":26,"./_to-primitive":52}],34:[function(require,module,exports){
2911
2916
  var dP = require('./_object-dp');
2912
2917
  var anObject = require('./_an-object');
2913
2918
  var getKeys = require('./_object-keys');
@@ -2922,7 +2927,7 @@ module.exports = require('./_descriptors') ? Object.defineProperties : function
2922
2927
  return O;
2923
2928
  };
2924
2929
 
2925
- },{"./_an-object":8,"./_descriptors":15,"./_object-dp":32,"./_object-keys":39}],34:[function(require,module,exports){
2930
+ },{"./_an-object":8,"./_descriptors":15,"./_object-dp":33,"./_object-keys":40}],35:[function(require,module,exports){
2926
2931
  var pIE = require('./_object-pie');
2927
2932
  var createDesc = require('./_property-desc');
2928
2933
  var toIObject = require('./_to-iobject');
@@ -2940,7 +2945,7 @@ exports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor
2940
2945
  if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
2941
2946
  };
2942
2947
 
2943
- },{"./_descriptors":15,"./_has":22,"./_ie8-dom-define":25,"./_object-pie":40,"./_property-desc":41,"./_to-iobject":48,"./_to-primitive":50}],35:[function(require,module,exports){
2948
+ },{"./_descriptors":15,"./_has":23,"./_ie8-dom-define":26,"./_object-pie":41,"./_property-desc":42,"./_to-iobject":49,"./_to-primitive":52}],36:[function(require,module,exports){
2944
2949
  // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
2945
2950
  var toIObject = require('./_to-iobject');
2946
2951
  var gOPN = require('./_object-gopn').f;
@@ -2961,7 +2966,7 @@ module.exports.f = function getOwnPropertyNames(it) {
2961
2966
  return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
2962
2967
  };
2963
2968
 
2964
- },{"./_object-gopn":36,"./_to-iobject":48}],36:[function(require,module,exports){
2969
+ },{"./_object-gopn":37,"./_to-iobject":49}],37:[function(require,module,exports){
2965
2970
  // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
2966
2971
  var $keys = require('./_object-keys-internal');
2967
2972
  var hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');
@@ -2970,10 +2975,10 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
2970
2975
  return $keys(O, hiddenKeys);
2971
2976
  };
2972
2977
 
2973
- },{"./_enum-bug-keys":17,"./_object-keys-internal":38}],37:[function(require,module,exports){
2978
+ },{"./_enum-bug-keys":17,"./_object-keys-internal":39}],38:[function(require,module,exports){
2974
2979
  exports.f = Object.getOwnPropertySymbols;
2975
2980
 
2976
- },{}],38:[function(require,module,exports){
2981
+ },{}],39:[function(require,module,exports){
2977
2982
  var has = require('./_has');
2978
2983
  var toIObject = require('./_to-iobject');
2979
2984
  var arrayIndexOf = require('./_array-includes')(false);
@@ -2992,7 +2997,7 @@ module.exports = function (object, names) {
2992
2997
  return result;
2993
2998
  };
2994
2999
 
2995
- },{"./_array-includes":9,"./_has":22,"./_shared-key":44,"./_to-iobject":48}],39:[function(require,module,exports){
3000
+ },{"./_array-includes":9,"./_has":23,"./_shared-key":45,"./_to-iobject":49}],40:[function(require,module,exports){
2996
3001
  // 19.1.2.14 / 15.2.3.14 Object.keys(O)
2997
3002
  var $keys = require('./_object-keys-internal');
2998
3003
  var enumBugKeys = require('./_enum-bug-keys');
@@ -3001,10 +3006,10 @@ module.exports = Object.keys || function keys(O) {
3001
3006
  return $keys(O, enumBugKeys);
3002
3007
  };
3003
3008
 
3004
- },{"./_enum-bug-keys":17,"./_object-keys-internal":38}],40:[function(require,module,exports){
3009
+ },{"./_enum-bug-keys":17,"./_object-keys-internal":39}],41:[function(require,module,exports){
3005
3010
  exports.f = {}.propertyIsEnumerable;
3006
3011
 
3007
- },{}],41:[function(require,module,exports){
3012
+ },{}],42:[function(require,module,exports){
3008
3013
  module.exports = function (bitmap, value) {
3009
3014
  return {
3010
3015
  enumerable: !(bitmap & 1),
@@ -3014,13 +3019,13 @@ module.exports = function (bitmap, value) {
3014
3019
  };
3015
3020
  };
3016
3021
 
3017
- },{}],42:[function(require,module,exports){
3022
+ },{}],43:[function(require,module,exports){
3018
3023
  var global = require('./_global');
3019
3024
  var hide = require('./_hide');
3020
3025
  var has = require('./_has');
3021
3026
  var SRC = require('./_uid')('src');
3027
+ var $toString = require('./_function-to-string');
3022
3028
  var TO_STRING = 'toString';
3023
- var $toString = Function[TO_STRING];
3024
3029
  var TPL = ('' + $toString).split(TO_STRING);
3025
3030
 
3026
3031
  require('./_core').inspectSource = function (it) {
@@ -3047,7 +3052,7 @@ require('./_core').inspectSource = function (it) {
3047
3052
  return typeof this == 'function' && this[SRC] || $toString.call(this);
3048
3053
  });
3049
3054
 
3050
- },{"./_core":12,"./_global":21,"./_has":22,"./_hide":23,"./_uid":51}],43:[function(require,module,exports){
3055
+ },{"./_core":12,"./_function-to-string":21,"./_global":22,"./_has":23,"./_hide":24,"./_uid":53}],44:[function(require,module,exports){
3051
3056
  var def = require('./_object-dp').f;
3052
3057
  var has = require('./_has');
3053
3058
  var TAG = require('./_wks')('toStringTag');
@@ -3056,14 +3061,14 @@ module.exports = function (it, tag, stat) {
3056
3061
  if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
3057
3062
  };
3058
3063
 
3059
- },{"./_has":22,"./_object-dp":32,"./_wks":54}],44:[function(require,module,exports){
3064
+ },{"./_has":23,"./_object-dp":33,"./_wks":56}],45:[function(require,module,exports){
3060
3065
  var shared = require('./_shared')('keys');
3061
3066
  var uid = require('./_uid');
3062
3067
  module.exports = function (key) {
3063
3068
  return shared[key] || (shared[key] = uid(key));
3064
3069
  };
3065
3070
 
3066
- },{"./_shared":45,"./_uid":51}],45:[function(require,module,exports){
3071
+ },{"./_shared":46,"./_uid":53}],46:[function(require,module,exports){
3067
3072
  var core = require('./_core');
3068
3073
  var global = require('./_global');
3069
3074
  var SHARED = '__core-js_shared__';
@@ -3074,10 +3079,10 @@ var store = global[SHARED] || (global[SHARED] = {});
3074
3079
  })('versions', []).push({
3075
3080
  version: core.version,
3076
3081
  mode: require('./_library') ? 'pure' : 'global',
3077
- copyright: '© 2018 Denis Pushkarev (zloirock.ru)'
3082
+ copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
3078
3083
  });
3079
3084
 
3080
- },{"./_core":12,"./_global":21,"./_library":29}],46:[function(require,module,exports){
3085
+ },{"./_core":12,"./_global":22,"./_library":30}],47:[function(require,module,exports){
3081
3086
  var toInteger = require('./_to-integer');
3082
3087
  var max = Math.max;
3083
3088
  var min = Math.min;
@@ -3086,7 +3091,7 @@ module.exports = function (index, length) {
3086
3091
  return index < 0 ? max(index + length, 0) : min(index, length);
3087
3092
  };
3088
3093
 
3089
- },{"./_to-integer":47}],47:[function(require,module,exports){
3094
+ },{"./_to-integer":48}],48:[function(require,module,exports){
3090
3095
  // 7.1.4 ToInteger
3091
3096
  var ceil = Math.ceil;
3092
3097
  var floor = Math.floor;
@@ -3094,7 +3099,7 @@ module.exports = function (it) {
3094
3099
  return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
3095
3100
  };
3096
3101
 
3097
- },{}],48:[function(require,module,exports){
3102
+ },{}],49:[function(require,module,exports){
3098
3103
  // to indexed object, toObject with fallback for non-array-like ES3 strings
3099
3104
  var IObject = require('./_iobject');
3100
3105
  var defined = require('./_defined');
@@ -3102,7 +3107,7 @@ module.exports = function (it) {
3102
3107
  return IObject(defined(it));
3103
3108
  };
3104
3109
 
3105
- },{"./_defined":14,"./_iobject":26}],49:[function(require,module,exports){
3110
+ },{"./_defined":14,"./_iobject":27}],50:[function(require,module,exports){
3106
3111
  // 7.1.15 ToLength
3107
3112
  var toInteger = require('./_to-integer');
3108
3113
  var min = Math.min;
@@ -3110,7 +3115,14 @@ module.exports = function (it) {
3110
3115
  return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
3111
3116
  };
3112
3117
 
3113
- },{"./_to-integer":47}],50:[function(require,module,exports){
3118
+ },{"./_to-integer":48}],51:[function(require,module,exports){
3119
+ // 7.1.13 ToObject(argument)
3120
+ var defined = require('./_defined');
3121
+ module.exports = function (it) {
3122
+ return Object(defined(it));
3123
+ };
3124
+
3125
+ },{"./_defined":14}],52:[function(require,module,exports){
3114
3126
  // 7.1.1 ToPrimitive(input [, PreferredType])
3115
3127
  var isObject = require('./_is-object');
3116
3128
  // instead of the ES6 spec version, we didn't implement @@toPrimitive case
@@ -3124,14 +3136,14 @@ module.exports = function (it, S) {
3124
3136
  throw TypeError("Can't convert object to primitive value");
3125
3137
  };
3126
3138
 
3127
- },{"./_is-object":28}],51:[function(require,module,exports){
3139
+ },{"./_is-object":29}],53:[function(require,module,exports){
3128
3140
  var id = 0;
3129
3141
  var px = Math.random();
3130
3142
  module.exports = function (key) {
3131
3143
  return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
3132
3144
  };
3133
3145
 
3134
- },{}],52:[function(require,module,exports){
3146
+ },{}],54:[function(require,module,exports){
3135
3147
  var global = require('./_global');
3136
3148
  var core = require('./_core');
3137
3149
  var LIBRARY = require('./_library');
@@ -3142,10 +3154,10 @@ module.exports = function (name) {
3142
3154
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
3143
3155
  };
3144
3156
 
3145
- },{"./_core":12,"./_global":21,"./_library":29,"./_object-dp":32,"./_wks-ext":53}],53:[function(require,module,exports){
3157
+ },{"./_core":12,"./_global":22,"./_library":30,"./_object-dp":33,"./_wks-ext":55}],55:[function(require,module,exports){
3146
3158
  exports.f = require('./_wks');
3147
3159
 
3148
- },{"./_wks":54}],54:[function(require,module,exports){
3160
+ },{"./_wks":56}],56:[function(require,module,exports){
3149
3161
  var store = require('./_shared')('wks');
3150
3162
  var uid = require('./_uid');
3151
3163
  var Symbol = require('./_global').Symbol;
@@ -3158,7 +3170,7 @@ var $exports = module.exports = function (name) {
3158
3170
 
3159
3171
  $exports.store = store;
3160
3172
 
3161
- },{"./_global":21,"./_shared":45,"./_uid":51}],55:[function(require,module,exports){
3173
+ },{"./_global":22,"./_shared":46,"./_uid":53}],57:[function(require,module,exports){
3162
3174
  'use strict';
3163
3175
  // 19.1.3.6 Object.prototype.toString()
3164
3176
  var classof = require('./_classof');
@@ -3170,7 +3182,7 @@ if (test + '' != '[object z]') {
3170
3182
  }, true);
3171
3183
  }
3172
3184
 
3173
- },{"./_classof":10,"./_redefine":42,"./_wks":54}],56:[function(require,module,exports){
3185
+ },{"./_classof":10,"./_redefine":43,"./_wks":56}],58:[function(require,module,exports){
3174
3186
  'use strict';
3175
3187
  // ECMAScript 6 symbols shim
3176
3188
  var global = require('./_global');
@@ -3190,12 +3202,14 @@ var enumKeys = require('./_enum-keys');
3190
3202
  var isArray = require('./_is-array');
3191
3203
  var anObject = require('./_an-object');
3192
3204
  var isObject = require('./_is-object');
3205
+ var toObject = require('./_to-object');
3193
3206
  var toIObject = require('./_to-iobject');
3194
3207
  var toPrimitive = require('./_to-primitive');
3195
3208
  var createDesc = require('./_property-desc');
3196
3209
  var _create = require('./_object-create');
3197
3210
  var gOPNExt = require('./_object-gopn-ext');
3198
3211
  var $GOPD = require('./_object-gopd');
3212
+ var $GOPS = require('./_object-gops');
3199
3213
  var $DP = require('./_object-dp');
3200
3214
  var $keys = require('./_object-keys');
3201
3215
  var gOPD = $GOPD.f;
@@ -3212,7 +3226,7 @@ var SymbolRegistry = shared('symbol-registry');
3212
3226
  var AllSymbols = shared('symbols');
3213
3227
  var OPSymbols = shared('op-symbols');
3214
3228
  var ObjectProto = Object[PROTOTYPE];
3215
- var USE_NATIVE = typeof $Symbol == 'function';
3229
+ var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;
3216
3230
  var QObject = global.QObject;
3217
3231
  // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
3218
3232
  var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
@@ -3322,7 +3336,7 @@ if (!USE_NATIVE) {
3322
3336
  $DP.f = $defineProperty;
3323
3337
  require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;
3324
3338
  require('./_object-pie').f = $propertyIsEnumerable;
3325
- require('./_object-gops').f = $getOwnPropertySymbols;
3339
+ $GOPS.f = $getOwnPropertySymbols;
3326
3340
 
3327
3341
  if (DESCRIPTORS && !require('./_library')) {
3328
3342
  redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
@@ -3373,6 +3387,16 @@ $export($export.S + $export.F * !USE_NATIVE, 'Object', {
3373
3387
  getOwnPropertySymbols: $getOwnPropertySymbols
3374
3388
  });
3375
3389
 
3390
+ // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
3391
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3443
3392
+ var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });
3393
+
3394
+ $export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {
3395
+ getOwnPropertySymbols: function getOwnPropertySymbols(it) {
3396
+ return $GOPS.f(toObject(it));
3397
+ }
3398
+ });
3399
+
3376
3400
  // 24.3.2 JSON.stringify(value [, replacer [, space]])
3377
3401
  $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
3378
3402
  var S = $Symbol();
@@ -3406,7 +3430,7 @@ setToStringTag(Math, 'Math', true);
3406
3430
  // 24.3.3 JSON[@@toStringTag]
3407
3431
  setToStringTag(global.JSON, 'JSON', true);
3408
3432
 
3409
- },{"./_an-object":8,"./_descriptors":15,"./_enum-keys":18,"./_export":19,"./_fails":20,"./_global":21,"./_has":22,"./_hide":23,"./_is-array":27,"./_is-object":28,"./_library":29,"./_meta":30,"./_object-create":31,"./_object-dp":32,"./_object-gopd":34,"./_object-gopn":36,"./_object-gopn-ext":35,"./_object-gops":37,"./_object-keys":39,"./_object-pie":40,"./_property-desc":41,"./_redefine":42,"./_set-to-string-tag":43,"./_shared":45,"./_to-iobject":48,"./_to-primitive":50,"./_uid":51,"./_wks":54,"./_wks-define":52,"./_wks-ext":53}],57:[function(require,module,exports){
3433
+ },{"./_an-object":8,"./_descriptors":15,"./_enum-keys":18,"./_export":19,"./_fails":20,"./_global":22,"./_has":23,"./_hide":24,"./_is-array":28,"./_is-object":29,"./_library":30,"./_meta":31,"./_object-create":32,"./_object-dp":33,"./_object-gopd":35,"./_object-gopn":37,"./_object-gopn-ext":36,"./_object-gops":38,"./_object-keys":40,"./_object-pie":41,"./_property-desc":42,"./_redefine":43,"./_set-to-string-tag":44,"./_shared":46,"./_to-iobject":49,"./_to-object":51,"./_to-primitive":52,"./_uid":53,"./_wks":56,"./_wks-define":54,"./_wks-ext":55}],59:[function(require,module,exports){
3410
3434
  (function (Buffer){
3411
3435
  // Copyright Joyent, Inc. and other Node contributors.
3412
3436
  //
@@ -3517,7 +3541,7 @@ function objectToString(o) {
3517
3541
  }
3518
3542
 
3519
3543
  }).call(this,{"isBuffer":require("../../is-buffer/index.js")})
3520
- },{"../../is-buffer/index.js":62}],58:[function(require,module,exports){
3544
+ },{"../../is-buffer/index.js":64}],60:[function(require,module,exports){
3521
3545
  // Copyright Joyent, Inc. and other Node contributors.
3522
3546
  //
3523
3547
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -4042,7 +4066,7 @@ function functionBindPolyfill(context) {
4042
4066
  };
4043
4067
  }
4044
4068
 
4045
- },{}],59:[function(require,module,exports){
4069
+ },{}],61:[function(require,module,exports){
4046
4070
  var http = require('http')
4047
4071
  var url = require('url')
4048
4072
 
@@ -4075,7 +4099,7 @@ function validateParams (params) {
4075
4099
  return params
4076
4100
  }
4077
4101
 
4078
- },{"http":81,"url":88}],60:[function(require,module,exports){
4102
+ },{"http":84,"url":90}],62:[function(require,module,exports){
4079
4103
  exports.read = function (buffer, offset, isLE, mLen, nBytes) {
4080
4104
  var e, m
4081
4105
  var eLen = (nBytes * 8) - mLen - 1
@@ -4161,7 +4185,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
4161
4185
  buffer[offset + i - d] |= s * 128
4162
4186
  }
4163
4187
 
4164
- },{}],61:[function(require,module,exports){
4188
+ },{}],63:[function(require,module,exports){
4165
4189
  if (typeof Object.create === 'function') {
4166
4190
  // implementation from standard node.js 'util' module
4167
4191
  module.exports = function inherits(ctor, superCtor) {
@@ -4186,7 +4210,7 @@ if (typeof Object.create === 'function') {
4186
4210
  }
4187
4211
  }
4188
4212
 
4189
- },{}],62:[function(require,module,exports){
4213
+ },{}],64:[function(require,module,exports){
4190
4214
  /*!
4191
4215
  * Determine if an object is a Buffer
4192
4216
  *
@@ -4209,14 +4233,14 @@ function isSlowBuffer (obj) {
4209
4233
  return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))
4210
4234
  }
4211
4235
 
4212
- },{}],63:[function(require,module,exports){
4236
+ },{}],65:[function(require,module,exports){
4213
4237
  var toString = {}.toString;
4214
4238
 
4215
4239
  module.exports = Array.isArray || function (arr) {
4216
4240
  return toString.call(arr) == '[object Array]';
4217
4241
  };
4218
4242
 
4219
- },{}],64:[function(require,module,exports){
4243
+ },{}],66:[function(require,module,exports){
4220
4244
  (function (global){
4221
4245
  /**
4222
4246
  * lodash (Custom Build) <https://lodash.com/>
@@ -5151,7 +5175,7 @@ function get(object, path, defaultValue) {
5151
5175
  module.exports = get;
5152
5176
 
5153
5177
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
5154
- },{}],65:[function(require,module,exports){
5178
+ },{}],67:[function(require,module,exports){
5155
5179
  (function (global){
5156
5180
  /**
5157
5181
  * Lodash (Custom Build) <https://lodash.com/>
@@ -7003,7 +7027,7 @@ function stubFalse() {
7003
7027
  module.exports = isEqual;
7004
7028
 
7005
7029
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
7006
- },{}],66:[function(require,module,exports){
7030
+ },{}],68:[function(require,module,exports){
7007
7031
  (function (process){
7008
7032
  'use strict';
7009
7033
 
@@ -7051,7 +7075,7 @@ function nextTick(fn, arg1, arg2, arg3) {
7051
7075
 
7052
7076
 
7053
7077
  }).call(this,require('_process'))
7054
- },{"_process":67}],67:[function(require,module,exports){
7078
+ },{"_process":69}],69:[function(require,module,exports){
7055
7079
  // shim for using process in browser
7056
7080
  var process = module.exports = {};
7057
7081
 
@@ -7237,7 +7261,7 @@ process.chdir = function (dir) {
7237
7261
  };
7238
7262
  process.umask = function() { return 0; };
7239
7263
 
7240
- },{}],68:[function(require,module,exports){
7264
+ },{}],70:[function(require,module,exports){
7241
7265
  // Copyright Joyent, Inc. and other Node contributors.
7242
7266
  //
7243
7267
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -7323,7 +7347,7 @@ var isArray = Array.isArray || function (xs) {
7323
7347
  return Object.prototype.toString.call(xs) === '[object Array]';
7324
7348
  };
7325
7349
 
7326
- },{}],69:[function(require,module,exports){
7350
+ },{}],71:[function(require,module,exports){
7327
7351
  // Copyright Joyent, Inc. and other Node contributors.
7328
7352
  //
7329
7353
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -7410,13 +7434,13 @@ var objectKeys = Object.keys || function (obj) {
7410
7434
  return res;
7411
7435
  };
7412
7436
 
7413
- },{}],70:[function(require,module,exports){
7437
+ },{}],72:[function(require,module,exports){
7414
7438
  'use strict';
7415
7439
 
7416
7440
  exports.decode = exports.parse = require('./decode');
7417
7441
  exports.encode = exports.stringify = require('./encode');
7418
7442
 
7419
- },{"./decode":68,"./encode":69}],71:[function(require,module,exports){
7443
+ },{"./decode":70,"./encode":71}],73:[function(require,module,exports){
7420
7444
  // Copyright Joyent, Inc. and other Node contributors.
7421
7445
  //
7422
7446
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -7548,7 +7572,7 @@ Duplex.prototype._destroy = function (err, cb) {
7548
7572
 
7549
7573
  pna.nextTick(cb, err);
7550
7574
  };
7551
- },{"./_stream_readable":73,"./_stream_writable":75,"core-util-is":57,"inherits":61,"process-nextick-args":66}],72:[function(require,module,exports){
7575
+ },{"./_stream_readable":75,"./_stream_writable":77,"core-util-is":59,"inherits":63,"process-nextick-args":68}],74:[function(require,module,exports){
7552
7576
  // Copyright Joyent, Inc. and other Node contributors.
7553
7577
  //
7554
7578
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -7596,7 +7620,7 @@ function PassThrough(options) {
7596
7620
  PassThrough.prototype._transform = function (chunk, encoding, cb) {
7597
7621
  cb(null, chunk);
7598
7622
  };
7599
- },{"./_stream_transform":74,"core-util-is":57,"inherits":61}],73:[function(require,module,exports){
7623
+ },{"./_stream_transform":76,"core-util-is":59,"inherits":63}],75:[function(require,module,exports){
7600
7624
  (function (process,global){
7601
7625
  // Copyright Joyent, Inc. and other Node contributors.
7602
7626
  //
@@ -8618,7 +8642,7 @@ function indexOf(xs, x) {
8618
8642
  return -1;
8619
8643
  }
8620
8644
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
8621
- },{"./_stream_duplex":71,"./internal/streams/BufferList":76,"./internal/streams/destroy":77,"./internal/streams/stream":78,"_process":67,"core-util-is":57,"events":58,"inherits":61,"isarray":63,"process-nextick-args":66,"safe-buffer":80,"string_decoder/":85,"util":2}],74:[function(require,module,exports){
8645
+ },{"./_stream_duplex":73,"./internal/streams/BufferList":78,"./internal/streams/destroy":79,"./internal/streams/stream":80,"_process":69,"core-util-is":59,"events":60,"inherits":63,"isarray":65,"process-nextick-args":68,"safe-buffer":83,"string_decoder/":81,"util":2}],76:[function(require,module,exports){
8622
8646
  // Copyright Joyent, Inc. and other Node contributors.
8623
8647
  //
8624
8648
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -8833,7 +8857,7 @@ function done(stream, er, data) {
8833
8857
 
8834
8858
  return stream.push(null);
8835
8859
  }
8836
- },{"./_stream_duplex":71,"core-util-is":57,"inherits":61}],75:[function(require,module,exports){
8860
+ },{"./_stream_duplex":73,"core-util-is":59,"inherits":63}],77:[function(require,module,exports){
8837
8861
  (function (process,global,setImmediate){
8838
8862
  // Copyright Joyent, Inc. and other Node contributors.
8839
8863
  //
@@ -9523,7 +9547,7 @@ Writable.prototype._destroy = function (err, cb) {
9523
9547
  cb(err);
9524
9548
  };
9525
9549
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("timers").setImmediate)
9526
- },{"./_stream_duplex":71,"./internal/streams/destroy":77,"./internal/streams/stream":78,"_process":67,"core-util-is":57,"inherits":61,"process-nextick-args":66,"safe-buffer":80,"timers":86,"util-deprecate":90}],76:[function(require,module,exports){
9550
+ },{"./_stream_duplex":73,"./internal/streams/destroy":79,"./internal/streams/stream":80,"_process":69,"core-util-is":59,"inherits":63,"process-nextick-args":68,"safe-buffer":83,"timers":88,"util-deprecate":92}],78:[function(require,module,exports){
9527
9551
  'use strict';
9528
9552
 
9529
9553
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -9603,7 +9627,7 @@ if (util && util.inspect && util.inspect.custom) {
9603
9627
  return this.constructor.name + ' ' + obj;
9604
9628
  };
9605
9629
  }
9606
- },{"safe-buffer":80,"util":2}],77:[function(require,module,exports){
9630
+ },{"safe-buffer":83,"util":2}],79:[function(require,module,exports){
9607
9631
  'use strict';
9608
9632
 
9609
9633
  /*<replacement>*/
@@ -9678,237 +9702,534 @@ module.exports = {
9678
9702
  destroy: destroy,
9679
9703
  undestroy: undestroy
9680
9704
  };
9681
- },{"process-nextick-args":66}],78:[function(require,module,exports){
9705
+ },{"process-nextick-args":68}],80:[function(require,module,exports){
9682
9706
  module.exports = require('events').EventEmitter;
9683
9707
 
9684
- },{"events":58}],79:[function(require,module,exports){
9685
- exports = module.exports = require('./lib/_stream_readable.js');
9686
- exports.Stream = exports;
9687
- exports.Readable = exports;
9688
- exports.Writable = require('./lib/_stream_writable.js');
9689
- exports.Duplex = require('./lib/_stream_duplex.js');
9690
- exports.Transform = require('./lib/_stream_transform.js');
9691
- exports.PassThrough = require('./lib/_stream_passthrough.js');
9692
-
9693
- },{"./lib/_stream_duplex.js":71,"./lib/_stream_passthrough.js":72,"./lib/_stream_readable.js":73,"./lib/_stream_transform.js":74,"./lib/_stream_writable.js":75}],80:[function(require,module,exports){
9694
- /* eslint-disable node/no-deprecated-api */
9695
- var buffer = require('buffer')
9696
- var Buffer = buffer.Buffer
9708
+ },{"events":60}],81:[function(require,module,exports){
9709
+ // Copyright Joyent, Inc. and other Node contributors.
9710
+ //
9711
+ // Permission is hereby granted, free of charge, to any person obtaining a
9712
+ // copy of this software and associated documentation files (the
9713
+ // "Software"), to deal in the Software without restriction, including
9714
+ // without limitation the rights to use, copy, modify, merge, publish,
9715
+ // distribute, sublicense, and/or sell copies of the Software, and to permit
9716
+ // persons to whom the Software is furnished to do so, subject to the
9717
+ // following conditions:
9718
+ //
9719
+ // The above copyright notice and this permission notice shall be included
9720
+ // in all copies or substantial portions of the Software.
9721
+ //
9722
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
9723
+ // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
9724
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
9725
+ // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
9726
+ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
9727
+ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
9728
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
9697
9729
 
9698
- // alternative to using Object.keys for old browsers
9699
- function copyProps (src, dst) {
9700
- for (var key in src) {
9701
- dst[key] = src[key]
9702
- }
9703
- }
9704
- if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
9705
- module.exports = buffer
9706
- } else {
9707
- // Copy properties from require('buffer')
9708
- copyProps(buffer, exports)
9709
- exports.Buffer = SafeBuffer
9710
- }
9730
+ 'use strict';
9711
9731
 
9712
- function SafeBuffer (arg, encodingOrOffset, length) {
9713
- return Buffer(arg, encodingOrOffset, length)
9714
- }
9732
+ /*<replacement>*/
9715
9733
 
9716
- // Copy static methods from Buffer
9717
- copyProps(Buffer, SafeBuffer)
9734
+ var Buffer = require('safe-buffer').Buffer;
9735
+ /*</replacement>*/
9718
9736
 
9719
- SafeBuffer.from = function (arg, encodingOrOffset, length) {
9720
- if (typeof arg === 'number') {
9721
- throw new TypeError('Argument must not be a number')
9737
+ var isEncoding = Buffer.isEncoding || function (encoding) {
9738
+ encoding = '' + encoding;
9739
+ switch (encoding && encoding.toLowerCase()) {
9740
+ case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':
9741
+ return true;
9742
+ default:
9743
+ return false;
9722
9744
  }
9723
- return Buffer(arg, encodingOrOffset, length)
9724
- }
9745
+ };
9725
9746
 
9726
- SafeBuffer.alloc = function (size, fill, encoding) {
9727
- if (typeof size !== 'number') {
9728
- throw new TypeError('Argument must be a number')
9729
- }
9730
- var buf = Buffer(size)
9731
- if (fill !== undefined) {
9732
- if (typeof encoding === 'string') {
9733
- buf.fill(fill, encoding)
9734
- } else {
9735
- buf.fill(fill)
9747
+ function _normalizeEncoding(enc) {
9748
+ if (!enc) return 'utf8';
9749
+ var retried;
9750
+ while (true) {
9751
+ switch (enc) {
9752
+ case 'utf8':
9753
+ case 'utf-8':
9754
+ return 'utf8';
9755
+ case 'ucs2':
9756
+ case 'ucs-2':
9757
+ case 'utf16le':
9758
+ case 'utf-16le':
9759
+ return 'utf16le';
9760
+ case 'latin1':
9761
+ case 'binary':
9762
+ return 'latin1';
9763
+ case 'base64':
9764
+ case 'ascii':
9765
+ case 'hex':
9766
+ return enc;
9767
+ default:
9768
+ if (retried) return; // undefined
9769
+ enc = ('' + enc).toLowerCase();
9770
+ retried = true;
9736
9771
  }
9737
- } else {
9738
- buf.fill(0)
9739
9772
  }
9740
- return buf
9741
- }
9773
+ };
9742
9774
 
9743
- SafeBuffer.allocUnsafe = function (size) {
9744
- if (typeof size !== 'number') {
9745
- throw new TypeError('Argument must be a number')
9746
- }
9747
- return Buffer(size)
9775
+ // Do not cache `Buffer.isEncoding` when checking encoding names as some
9776
+ // modules monkey-patch it to support additional encodings
9777
+ function normalizeEncoding(enc) {
9778
+ var nenc = _normalizeEncoding(enc);
9779
+ if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);
9780
+ return nenc || enc;
9748
9781
  }
9749
9782
 
9750
- SafeBuffer.allocUnsafeSlow = function (size) {
9751
- if (typeof size !== 'number') {
9752
- throw new TypeError('Argument must be a number')
9783
+ // StringDecoder provides an interface for efficiently splitting a series of
9784
+ // buffers into a series of JS strings without breaking apart multi-byte
9785
+ // characters.
9786
+ exports.StringDecoder = StringDecoder;
9787
+ function StringDecoder(encoding) {
9788
+ this.encoding = normalizeEncoding(encoding);
9789
+ var nb;
9790
+ switch (this.encoding) {
9791
+ case 'utf16le':
9792
+ this.text = utf16Text;
9793
+ this.end = utf16End;
9794
+ nb = 4;
9795
+ break;
9796
+ case 'utf8':
9797
+ this.fillLast = utf8FillLast;
9798
+ nb = 4;
9799
+ break;
9800
+ case 'base64':
9801
+ this.text = base64Text;
9802
+ this.end = base64End;
9803
+ nb = 3;
9804
+ break;
9805
+ default:
9806
+ this.write = simpleWrite;
9807
+ this.end = simpleEnd;
9808
+ return;
9753
9809
  }
9754
- return buffer.SlowBuffer(size)
9810
+ this.lastNeed = 0;
9811
+ this.lastTotal = 0;
9812
+ this.lastChar = Buffer.allocUnsafe(nb);
9755
9813
  }
9756
9814
 
9757
- },{"buffer":4}],81:[function(require,module,exports){
9758
- (function (global){
9759
- var ClientRequest = require('./lib/request')
9760
- var response = require('./lib/response')
9761
- var extend = require('xtend')
9762
- var statusCodes = require('builtin-status-codes')
9763
- var url = require('url')
9764
-
9765
- var http = exports
9766
-
9767
- http.request = function (opts, cb) {
9768
- if (typeof opts === 'string')
9769
- opts = url.parse(opts)
9770
- else
9771
- opts = extend(opts)
9772
-
9773
- // Normally, the page is loaded from http or https, so not specifying a protocol
9774
- // will result in a (valid) protocol-relative url. However, this won't work if
9775
- // the protocol is something else, like 'file:'
9776
- var defaultProtocol = global.location.protocol.search(/^https?:$/) === -1 ? 'http:' : ''
9777
-
9778
- var protocol = opts.protocol || defaultProtocol
9779
- var host = opts.hostname || opts.host
9780
- var port = opts.port
9781
- var path = opts.path || '/'
9782
-
9783
- // Necessary for IPv6 addresses
9784
- if (host && host.indexOf(':') !== -1)
9785
- host = '[' + host + ']'
9815
+ StringDecoder.prototype.write = function (buf) {
9816
+ if (buf.length === 0) return '';
9817
+ var r;
9818
+ var i;
9819
+ if (this.lastNeed) {
9820
+ r = this.fillLast(buf);
9821
+ if (r === undefined) return '';
9822
+ i = this.lastNeed;
9823
+ this.lastNeed = 0;
9824
+ } else {
9825
+ i = 0;
9826
+ }
9827
+ if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);
9828
+ return r || '';
9829
+ };
9786
9830
 
9787
- // This may be a relative url. The browser should always be able to interpret it correctly.
9788
- opts.url = (host ? (protocol + '//' + host) : '') + (port ? ':' + port : '') + path
9789
- opts.method = (opts.method || 'GET').toUpperCase()
9790
- opts.headers = opts.headers || {}
9831
+ StringDecoder.prototype.end = utf8End;
9791
9832
 
9792
- // Also valid opts.auth, opts.mode
9833
+ // Returns only complete characters in a Buffer
9834
+ StringDecoder.prototype.text = utf8Text;
9793
9835
 
9794
- var req = new ClientRequest(opts)
9795
- if (cb)
9796
- req.on('response', cb)
9797
- return req
9798
- }
9836
+ // Attempts to complete a partial non-UTF-8 character using bytes from a Buffer
9837
+ StringDecoder.prototype.fillLast = function (buf) {
9838
+ if (this.lastNeed <= buf.length) {
9839
+ buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
9840
+ return this.lastChar.toString(this.encoding, 0, this.lastTotal);
9841
+ }
9842
+ buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
9843
+ this.lastNeed -= buf.length;
9844
+ };
9799
9845
 
9800
- http.get = function get (opts, cb) {
9801
- var req = http.request(opts, cb)
9802
- req.end()
9803
- return req
9846
+ // Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a
9847
+ // continuation byte. If an invalid byte is detected, -2 is returned.
9848
+ function utf8CheckByte(byte) {
9849
+ if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;
9850
+ return byte >> 6 === 0x02 ? -1 : -2;
9804
9851
  }
9805
9852
 
9806
- http.ClientRequest = ClientRequest
9807
- http.IncomingMessage = response.IncomingMessage
9853
+ // Checks at most 3 bytes at the end of a Buffer in order to detect an
9854
+ // incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)
9855
+ // needed to complete the UTF-8 character (if applicable) are returned.
9856
+ function utf8CheckIncomplete(self, buf, i) {
9857
+ var j = buf.length - 1;
9858
+ if (j < i) return 0;
9859
+ var nb = utf8CheckByte(buf[j]);
9860
+ if (nb >= 0) {
9861
+ if (nb > 0) self.lastNeed = nb - 1;
9862
+ return nb;
9863
+ }
9864
+ if (--j < i || nb === -2) return 0;
9865
+ nb = utf8CheckByte(buf[j]);
9866
+ if (nb >= 0) {
9867
+ if (nb > 0) self.lastNeed = nb - 2;
9868
+ return nb;
9869
+ }
9870
+ if (--j < i || nb === -2) return 0;
9871
+ nb = utf8CheckByte(buf[j]);
9872
+ if (nb >= 0) {
9873
+ if (nb > 0) {
9874
+ if (nb === 2) nb = 0;else self.lastNeed = nb - 3;
9875
+ }
9876
+ return nb;
9877
+ }
9878
+ return 0;
9879
+ }
9808
9880
 
9809
- http.Agent = function () {}
9810
- http.Agent.defaultMaxSockets = 4
9881
+ // Validates as many continuation bytes for a multi-byte UTF-8 character as
9882
+ // needed or are available. If we see a non-continuation byte where we expect
9883
+ // one, we "replace" the validated continuation bytes we've seen so far with
9884
+ // a single UTF-8 replacement character ('\ufffd'), to match v8's UTF-8 decoding
9885
+ // behavior. The continuation byte check is included three times in the case
9886
+ // where all of the continuation bytes for a character exist in the same buffer.
9887
+ // It is also done this way as a slight performance increase instead of using a
9888
+ // loop.
9889
+ function utf8CheckExtraBytes(self, buf, p) {
9890
+ if ((buf[0] & 0xC0) !== 0x80) {
9891
+ self.lastNeed = 0;
9892
+ return '\ufffd';
9893
+ }
9894
+ if (self.lastNeed > 1 && buf.length > 1) {
9895
+ if ((buf[1] & 0xC0) !== 0x80) {
9896
+ self.lastNeed = 1;
9897
+ return '\ufffd';
9898
+ }
9899
+ if (self.lastNeed > 2 && buf.length > 2) {
9900
+ if ((buf[2] & 0xC0) !== 0x80) {
9901
+ self.lastNeed = 2;
9902
+ return '\ufffd';
9903
+ }
9904
+ }
9905
+ }
9906
+ }
9811
9907
 
9812
- http.globalAgent = new http.Agent()
9908
+ // Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.
9909
+ function utf8FillLast(buf) {
9910
+ var p = this.lastTotal - this.lastNeed;
9911
+ var r = utf8CheckExtraBytes(this, buf, p);
9912
+ if (r !== undefined) return r;
9913
+ if (this.lastNeed <= buf.length) {
9914
+ buf.copy(this.lastChar, p, 0, this.lastNeed);
9915
+ return this.lastChar.toString(this.encoding, 0, this.lastTotal);
9916
+ }
9917
+ buf.copy(this.lastChar, p, 0, buf.length);
9918
+ this.lastNeed -= buf.length;
9919
+ }
9813
9920
 
9814
- http.STATUS_CODES = statusCodes
9921
+ // Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a
9922
+ // partial character, the character's bytes are buffered until the required
9923
+ // number of bytes are available.
9924
+ function utf8Text(buf, i) {
9925
+ var total = utf8CheckIncomplete(this, buf, i);
9926
+ if (!this.lastNeed) return buf.toString('utf8', i);
9927
+ this.lastTotal = total;
9928
+ var end = buf.length - (total - this.lastNeed);
9929
+ buf.copy(this.lastChar, 0, end);
9930
+ return buf.toString('utf8', i, end);
9931
+ }
9815
9932
 
9816
- http.METHODS = [
9817
- 'CHECKOUT',
9818
- 'CONNECT',
9819
- 'COPY',
9820
- 'DELETE',
9821
- 'GET',
9822
- 'HEAD',
9823
- 'LOCK',
9824
- 'M-SEARCH',
9825
- 'MERGE',
9826
- 'MKACTIVITY',
9827
- 'MKCOL',
9828
- 'MOVE',
9829
- 'NOTIFY',
9830
- 'OPTIONS',
9831
- 'PATCH',
9832
- 'POST',
9833
- 'PROPFIND',
9834
- 'PROPPATCH',
9835
- 'PURGE',
9836
- 'PUT',
9837
- 'REPORT',
9838
- 'SEARCH',
9839
- 'SUBSCRIBE',
9840
- 'TRACE',
9841
- 'UNLOCK',
9842
- 'UNSUBSCRIBE'
9843
- ]
9844
- }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
9845
- },{"./lib/request":83,"./lib/response":84,"builtin-status-codes":5,"url":88,"xtend":169}],82:[function(require,module,exports){
9846
- (function (global){
9847
- exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableStream)
9933
+ // For UTF-8, a replacement character is added when ending on a partial
9934
+ // character.
9935
+ function utf8End(buf) {
9936
+ var r = buf && buf.length ? this.write(buf) : '';
9937
+ if (this.lastNeed) return r + '\ufffd';
9938
+ return r;
9939
+ }
9848
9940
 
9849
- exports.writableStream = isFunction(global.WritableStream)
9941
+ // UTF-16LE typically needs two bytes per character, but even if we have an even
9942
+ // number of bytes available, we need to check if we end on a leading/high
9943
+ // surrogate. In that case, we need to wait for the next two bytes in order to
9944
+ // decode the last character properly.
9945
+ function utf16Text(buf, i) {
9946
+ if ((buf.length - i) % 2 === 0) {
9947
+ var r = buf.toString('utf16le', i);
9948
+ if (r) {
9949
+ var c = r.charCodeAt(r.length - 1);
9950
+ if (c >= 0xD800 && c <= 0xDBFF) {
9951
+ this.lastNeed = 2;
9952
+ this.lastTotal = 4;
9953
+ this.lastChar[0] = buf[buf.length - 2];
9954
+ this.lastChar[1] = buf[buf.length - 1];
9955
+ return r.slice(0, -1);
9956
+ }
9957
+ }
9958
+ return r;
9959
+ }
9960
+ this.lastNeed = 1;
9961
+ this.lastTotal = 2;
9962
+ this.lastChar[0] = buf[buf.length - 1];
9963
+ return buf.toString('utf16le', i, buf.length - 1);
9964
+ }
9850
9965
 
9851
- exports.abortController = isFunction(global.AbortController)
9966
+ // For UTF-16LE we do not explicitly append special replacement characters if we
9967
+ // end on a partial character, we simply let v8 handle that.
9968
+ function utf16End(buf) {
9969
+ var r = buf && buf.length ? this.write(buf) : '';
9970
+ if (this.lastNeed) {
9971
+ var end = this.lastTotal - this.lastNeed;
9972
+ return r + this.lastChar.toString('utf16le', 0, end);
9973
+ }
9974
+ return r;
9975
+ }
9852
9976
 
9853
- exports.blobConstructor = false
9854
- try {
9855
- new Blob([new ArrayBuffer(1)])
9856
- exports.blobConstructor = true
9857
- } catch (e) {}
9977
+ function base64Text(buf, i) {
9978
+ var n = (buf.length - i) % 3;
9979
+ if (n === 0) return buf.toString('base64', i);
9980
+ this.lastNeed = 3 - n;
9981
+ this.lastTotal = 3;
9982
+ if (n === 1) {
9983
+ this.lastChar[0] = buf[buf.length - 1];
9984
+ } else {
9985
+ this.lastChar[0] = buf[buf.length - 2];
9986
+ this.lastChar[1] = buf[buf.length - 1];
9987
+ }
9988
+ return buf.toString('base64', i, buf.length - n);
9989
+ }
9858
9990
 
9859
- // The xhr request to example.com may violate some restrictive CSP configurations,
9860
- // so if we're running in a browser that supports `fetch`, avoid calling getXHR()
9861
- // and assume support for certain features below.
9862
- var xhr
9863
- function getXHR () {
9864
- // Cache the xhr value
9865
- if (xhr !== undefined) return xhr
9991
+ function base64End(buf) {
9992
+ var r = buf && buf.length ? this.write(buf) : '';
9993
+ if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);
9994
+ return r;
9995
+ }
9866
9996
 
9867
- if (global.XMLHttpRequest) {
9868
- xhr = new global.XMLHttpRequest()
9869
- // If XDomainRequest is available (ie only, where xhr might not work
9870
- // cross domain), use the page location. Otherwise use example.com
9871
- // Note: this doesn't actually make an http request.
9872
- try {
9873
- xhr.open('GET', global.XDomainRequest ? '/' : 'https://example.com')
9874
- } catch(e) {
9875
- xhr = null
9876
- }
9877
- } else {
9878
- // Service workers don't have XHR
9879
- xhr = null
9880
- }
9881
- return xhr
9997
+ // Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)
9998
+ function simpleWrite(buf) {
9999
+ return buf.toString(this.encoding);
9882
10000
  }
9883
10001
 
9884
- function checkTypeSupport (type) {
9885
- var xhr = getXHR()
9886
- if (!xhr) return false
9887
- try {
9888
- xhr.responseType = type
9889
- return xhr.responseType === type
9890
- } catch (e) {}
9891
- return false
10002
+ function simpleEnd(buf) {
10003
+ return buf && buf.length ? this.write(buf) : '';
9892
10004
  }
10005
+ },{"safe-buffer":83}],82:[function(require,module,exports){
10006
+ exports = module.exports = require('./lib/_stream_readable.js');
10007
+ exports.Stream = exports;
10008
+ exports.Readable = exports;
10009
+ exports.Writable = require('./lib/_stream_writable.js');
10010
+ exports.Duplex = require('./lib/_stream_duplex.js');
10011
+ exports.Transform = require('./lib/_stream_transform.js');
10012
+ exports.PassThrough = require('./lib/_stream_passthrough.js');
9893
10013
 
9894
- // For some strange reason, Safari 7.0 reports typeof global.ArrayBuffer === 'object'.
9895
- // Safari 7.1 appears to have fixed this bug.
9896
- var haveArrayBuffer = typeof global.ArrayBuffer !== 'undefined'
9897
- var haveSlice = haveArrayBuffer && isFunction(global.ArrayBuffer.prototype.slice)
10014
+ },{"./lib/_stream_duplex.js":73,"./lib/_stream_passthrough.js":74,"./lib/_stream_readable.js":75,"./lib/_stream_transform.js":76,"./lib/_stream_writable.js":77}],83:[function(require,module,exports){
10015
+ /* eslint-disable node/no-deprecated-api */
10016
+ var buffer = require('buffer')
10017
+ var Buffer = buffer.Buffer
9898
10018
 
9899
- // If fetch is supported, then arraybuffer will be supported too. Skip calling
9900
- // checkTypeSupport(), since that calls getXHR().
9901
- exports.arraybuffer = exports.fetch || (haveArrayBuffer && checkTypeSupport('arraybuffer'))
10019
+ // alternative to using Object.keys for old browsers
10020
+ function copyProps (src, dst) {
10021
+ for (var key in src) {
10022
+ dst[key] = src[key]
10023
+ }
10024
+ }
10025
+ if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
10026
+ module.exports = buffer
10027
+ } else {
10028
+ // Copy properties from require('buffer')
10029
+ copyProps(buffer, exports)
10030
+ exports.Buffer = SafeBuffer
10031
+ }
9902
10032
 
9903
- // These next two tests unavoidably show warnings in Chrome. Since fetch will always
9904
- // be used if it's available, just return false for these to avoid the warnings.
9905
- exports.msstream = !exports.fetch && haveSlice && checkTypeSupport('ms-stream')
9906
- exports.mozchunkedarraybuffer = !exports.fetch && haveArrayBuffer &&
9907
- checkTypeSupport('moz-chunked-arraybuffer')
10033
+ function SafeBuffer (arg, encodingOrOffset, length) {
10034
+ return Buffer(arg, encodingOrOffset, length)
10035
+ }
9908
10036
 
9909
- // If fetch is supported, then overrideMimeType will be supported too. Skip calling
9910
- // getXHR().
9911
- exports.overrideMimeType = exports.fetch || (getXHR() ? isFunction(getXHR().overrideMimeType) : false)
10037
+ // Copy static methods from Buffer
10038
+ copyProps(Buffer, SafeBuffer)
10039
+
10040
+ SafeBuffer.from = function (arg, encodingOrOffset, length) {
10041
+ if (typeof arg === 'number') {
10042
+ throw new TypeError('Argument must not be a number')
10043
+ }
10044
+ return Buffer(arg, encodingOrOffset, length)
10045
+ }
10046
+
10047
+ SafeBuffer.alloc = function (size, fill, encoding) {
10048
+ if (typeof size !== 'number') {
10049
+ throw new TypeError('Argument must be a number')
10050
+ }
10051
+ var buf = Buffer(size)
10052
+ if (fill !== undefined) {
10053
+ if (typeof encoding === 'string') {
10054
+ buf.fill(fill, encoding)
10055
+ } else {
10056
+ buf.fill(fill)
10057
+ }
10058
+ } else {
10059
+ buf.fill(0)
10060
+ }
10061
+ return buf
10062
+ }
10063
+
10064
+ SafeBuffer.allocUnsafe = function (size) {
10065
+ if (typeof size !== 'number') {
10066
+ throw new TypeError('Argument must be a number')
10067
+ }
10068
+ return Buffer(size)
10069
+ }
10070
+
10071
+ SafeBuffer.allocUnsafeSlow = function (size) {
10072
+ if (typeof size !== 'number') {
10073
+ throw new TypeError('Argument must be a number')
10074
+ }
10075
+ return buffer.SlowBuffer(size)
10076
+ }
10077
+
10078
+ },{"buffer":4}],84:[function(require,module,exports){
10079
+ (function (global){
10080
+ var ClientRequest = require('./lib/request')
10081
+ var response = require('./lib/response')
10082
+ var extend = require('xtend')
10083
+ var statusCodes = require('builtin-status-codes')
10084
+ var url = require('url')
10085
+
10086
+ var http = exports
10087
+
10088
+ http.request = function (opts, cb) {
10089
+ if (typeof opts === 'string')
10090
+ opts = url.parse(opts)
10091
+ else
10092
+ opts = extend(opts)
10093
+
10094
+ // Normally, the page is loaded from http or https, so not specifying a protocol
10095
+ // will result in a (valid) protocol-relative url. However, this won't work if
10096
+ // the protocol is something else, like 'file:'
10097
+ var defaultProtocol = global.location.protocol.search(/^https?:$/) === -1 ? 'http:' : ''
10098
+
10099
+ var protocol = opts.protocol || defaultProtocol
10100
+ var host = opts.hostname || opts.host
10101
+ var port = opts.port
10102
+ var path = opts.path || '/'
10103
+
10104
+ // Necessary for IPv6 addresses
10105
+ if (host && host.indexOf(':') !== -1)
10106
+ host = '[' + host + ']'
10107
+
10108
+ // This may be a relative url. The browser should always be able to interpret it correctly.
10109
+ opts.url = (host ? (protocol + '//' + host) : '') + (port ? ':' + port : '') + path
10110
+ opts.method = (opts.method || 'GET').toUpperCase()
10111
+ opts.headers = opts.headers || {}
10112
+
10113
+ // Also valid opts.auth, opts.mode
10114
+
10115
+ var req = new ClientRequest(opts)
10116
+ if (cb)
10117
+ req.on('response', cb)
10118
+ return req
10119
+ }
10120
+
10121
+ http.get = function get (opts, cb) {
10122
+ var req = http.request(opts, cb)
10123
+ req.end()
10124
+ return req
10125
+ }
10126
+
10127
+ http.ClientRequest = ClientRequest
10128
+ http.IncomingMessage = response.IncomingMessage
10129
+
10130
+ http.Agent = function () {}
10131
+ http.Agent.defaultMaxSockets = 4
10132
+
10133
+ http.globalAgent = new http.Agent()
10134
+
10135
+ http.STATUS_CODES = statusCodes
10136
+
10137
+ http.METHODS = [
10138
+ 'CHECKOUT',
10139
+ 'CONNECT',
10140
+ 'COPY',
10141
+ 'DELETE',
10142
+ 'GET',
10143
+ 'HEAD',
10144
+ 'LOCK',
10145
+ 'M-SEARCH',
10146
+ 'MERGE',
10147
+ 'MKACTIVITY',
10148
+ 'MKCOL',
10149
+ 'MOVE',
10150
+ 'NOTIFY',
10151
+ 'OPTIONS',
10152
+ 'PATCH',
10153
+ 'POST',
10154
+ 'PROPFIND',
10155
+ 'PROPPATCH',
10156
+ 'PURGE',
10157
+ 'PUT',
10158
+ 'REPORT',
10159
+ 'SEARCH',
10160
+ 'SUBSCRIBE',
10161
+ 'TRACE',
10162
+ 'UNLOCK',
10163
+ 'UNSUBSCRIBE'
10164
+ ]
10165
+ }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
10166
+ },{"./lib/request":86,"./lib/response":87,"builtin-status-codes":5,"url":90,"xtend":171}],85:[function(require,module,exports){
10167
+ (function (global){
10168
+ exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableStream)
10169
+
10170
+ exports.writableStream = isFunction(global.WritableStream)
10171
+
10172
+ exports.abortController = isFunction(global.AbortController)
10173
+
10174
+ exports.blobConstructor = false
10175
+ try {
10176
+ new Blob([new ArrayBuffer(1)])
10177
+ exports.blobConstructor = true
10178
+ } catch (e) {}
10179
+
10180
+ // The xhr request to example.com may violate some restrictive CSP configurations,
10181
+ // so if we're running in a browser that supports `fetch`, avoid calling getXHR()
10182
+ // and assume support for certain features below.
10183
+ var xhr
10184
+ function getXHR () {
10185
+ // Cache the xhr value
10186
+ if (xhr !== undefined) return xhr
10187
+
10188
+ if (global.XMLHttpRequest) {
10189
+ xhr = new global.XMLHttpRequest()
10190
+ // If XDomainRequest is available (ie only, where xhr might not work
10191
+ // cross domain), use the page location. Otherwise use example.com
10192
+ // Note: this doesn't actually make an http request.
10193
+ try {
10194
+ xhr.open('GET', global.XDomainRequest ? '/' : 'https://example.com')
10195
+ } catch(e) {
10196
+ xhr = null
10197
+ }
10198
+ } else {
10199
+ // Service workers don't have XHR
10200
+ xhr = null
10201
+ }
10202
+ return xhr
10203
+ }
10204
+
10205
+ function checkTypeSupport (type) {
10206
+ var xhr = getXHR()
10207
+ if (!xhr) return false
10208
+ try {
10209
+ xhr.responseType = type
10210
+ return xhr.responseType === type
10211
+ } catch (e) {}
10212
+ return false
10213
+ }
10214
+
10215
+ // For some strange reason, Safari 7.0 reports typeof global.ArrayBuffer === 'object'.
10216
+ // Safari 7.1 appears to have fixed this bug.
10217
+ var haveArrayBuffer = typeof global.ArrayBuffer !== 'undefined'
10218
+ var haveSlice = haveArrayBuffer && isFunction(global.ArrayBuffer.prototype.slice)
10219
+
10220
+ // If fetch is supported, then arraybuffer will be supported too. Skip calling
10221
+ // checkTypeSupport(), since that calls getXHR().
10222
+ exports.arraybuffer = exports.fetch || (haveArrayBuffer && checkTypeSupport('arraybuffer'))
10223
+
10224
+ // These next two tests unavoidably show warnings in Chrome. Since fetch will always
10225
+ // be used if it's available, just return false for these to avoid the warnings.
10226
+ exports.msstream = !exports.fetch && haveSlice && checkTypeSupport('ms-stream')
10227
+ exports.mozchunkedarraybuffer = !exports.fetch && haveArrayBuffer &&
10228
+ checkTypeSupport('moz-chunked-arraybuffer')
10229
+
10230
+ // If fetch is supported, then overrideMimeType will be supported too. Skip calling
10231
+ // getXHR().
10232
+ exports.overrideMimeType = exports.fetch || (getXHR() ? isFunction(getXHR().overrideMimeType) : false)
9912
10233
 
9913
10234
  exports.vbArray = isFunction(global.VBArray)
9914
10235
 
@@ -9919,7 +10240,7 @@ function isFunction (value) {
9919
10240
  xhr = null // Help gc
9920
10241
 
9921
10242
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
9922
- },{}],83:[function(require,module,exports){
10243
+ },{}],86:[function(require,module,exports){
9923
10244
  (function (process,global,Buffer){
9924
10245
  var capability = require('./capability')
9925
10246
  var inherits = require('inherits')
@@ -10250,7 +10571,7 @@ var unsafeHeaders = [
10250
10571
  ]
10251
10572
 
10252
10573
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer)
10253
- },{"./capability":82,"./response":84,"_process":67,"buffer":4,"inherits":61,"readable-stream":79,"to-arraybuffer":87}],84:[function(require,module,exports){
10574
+ },{"./capability":85,"./response":87,"_process":69,"buffer":4,"inherits":63,"readable-stream":82,"to-arraybuffer":89}],87:[function(require,module,exports){
10254
10575
  (function (process,global,Buffer){
10255
10576
  var capability = require('./capability')
10256
10577
  var inherits = require('inherits')
@@ -10413,369 +10734,72 @@ IncomingMessage.prototype._onXHRProgress = function () {
10413
10734
  try {
10414
10735
  // This fails in IE8
10415
10736
  response = new global.VBArray(xhr.responseBody).toArray()
10416
- } catch (e) {}
10417
- if (response !== null) {
10418
- self.push(new Buffer(response))
10419
- break
10420
- }
10421
- // Falls through in IE8
10422
- case 'text':
10423
- try { // This will fail when readyState = 3 in IE9. Switch mode and wait for readyState = 4
10424
- response = xhr.responseText
10425
- } catch (e) {
10426
- self._mode = 'text:vbarray'
10427
- break
10428
- }
10429
- if (response.length > self._pos) {
10430
- var newData = response.substr(self._pos)
10431
- if (self._charset === 'x-user-defined') {
10432
- var buffer = new Buffer(newData.length)
10433
- for (var i = 0; i < newData.length; i++)
10434
- buffer[i] = newData.charCodeAt(i) & 0xff
10435
-
10436
- self.push(buffer)
10437
- } else {
10438
- self.push(newData, self._charset)
10439
- }
10440
- self._pos = response.length
10441
- }
10442
- break
10443
- case 'arraybuffer':
10444
- if (xhr.readyState !== rStates.DONE || !xhr.response)
10445
- break
10446
- response = xhr.response
10447
- self.push(new Buffer(new Uint8Array(response)))
10448
- break
10449
- case 'moz-chunked-arraybuffer': // take whole
10450
- response = xhr.response
10451
- if (xhr.readyState !== rStates.LOADING || !response)
10452
- break
10453
- self.push(new Buffer(new Uint8Array(response)))
10454
- break
10455
- case 'ms-stream':
10456
- response = xhr.response
10457
- if (xhr.readyState !== rStates.LOADING)
10458
- break
10459
- var reader = new global.MSStreamReader()
10460
- reader.onprogress = function () {
10461
- if (reader.result.byteLength > self._pos) {
10462
- self.push(new Buffer(new Uint8Array(reader.result.slice(self._pos))))
10463
- self._pos = reader.result.byteLength
10464
- }
10465
- }
10466
- reader.onload = function () {
10467
- self.push(null)
10468
- }
10469
- // reader.onerror = ??? // TODO: this
10470
- reader.readAsArrayBuffer(response)
10471
- break
10472
- }
10473
-
10474
- // The ms-stream case handles end separately in reader.onload()
10475
- if (self._xhr.readyState === rStates.DONE && self._mode !== 'ms-stream') {
10476
- self.push(null)
10477
- }
10478
- }
10479
-
10480
- }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer)
10481
- },{"./capability":82,"_process":67,"buffer":4,"inherits":61,"readable-stream":79}],85:[function(require,module,exports){
10482
- // Copyright Joyent, Inc. and other Node contributors.
10483
- //
10484
- // Permission is hereby granted, free of charge, to any person obtaining a
10485
- // copy of this software and associated documentation files (the
10486
- // "Software"), to deal in the Software without restriction, including
10487
- // without limitation the rights to use, copy, modify, merge, publish,
10488
- // distribute, sublicense, and/or sell copies of the Software, and to permit
10489
- // persons to whom the Software is furnished to do so, subject to the
10490
- // following conditions:
10491
- //
10492
- // The above copyright notice and this permission notice shall be included
10493
- // in all copies or substantial portions of the Software.
10494
- //
10495
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
10496
- // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
10497
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
10498
- // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
10499
- // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
10500
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
10501
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
10502
-
10503
- 'use strict';
10504
-
10505
- /*<replacement>*/
10506
-
10507
- var Buffer = require('safe-buffer').Buffer;
10508
- /*</replacement>*/
10509
-
10510
- var isEncoding = Buffer.isEncoding || function (encoding) {
10511
- encoding = '' + encoding;
10512
- switch (encoding && encoding.toLowerCase()) {
10513
- case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':
10514
- return true;
10515
- default:
10516
- return false;
10517
- }
10518
- };
10519
-
10520
- function _normalizeEncoding(enc) {
10521
- if (!enc) return 'utf8';
10522
- var retried;
10523
- while (true) {
10524
- switch (enc) {
10525
- case 'utf8':
10526
- case 'utf-8':
10527
- return 'utf8';
10528
- case 'ucs2':
10529
- case 'ucs-2':
10530
- case 'utf16le':
10531
- case 'utf-16le':
10532
- return 'utf16le';
10533
- case 'latin1':
10534
- case 'binary':
10535
- return 'latin1';
10536
- case 'base64':
10537
- case 'ascii':
10538
- case 'hex':
10539
- return enc;
10540
- default:
10541
- if (retried) return; // undefined
10542
- enc = ('' + enc).toLowerCase();
10543
- retried = true;
10544
- }
10545
- }
10546
- };
10547
-
10548
- // Do not cache `Buffer.isEncoding` when checking encoding names as some
10549
- // modules monkey-patch it to support additional encodings
10550
- function normalizeEncoding(enc) {
10551
- var nenc = _normalizeEncoding(enc);
10552
- if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);
10553
- return nenc || enc;
10554
- }
10555
-
10556
- // StringDecoder provides an interface for efficiently splitting a series of
10557
- // buffers into a series of JS strings without breaking apart multi-byte
10558
- // characters.
10559
- exports.StringDecoder = StringDecoder;
10560
- function StringDecoder(encoding) {
10561
- this.encoding = normalizeEncoding(encoding);
10562
- var nb;
10563
- switch (this.encoding) {
10564
- case 'utf16le':
10565
- this.text = utf16Text;
10566
- this.end = utf16End;
10567
- nb = 4;
10568
- break;
10569
- case 'utf8':
10570
- this.fillLast = utf8FillLast;
10571
- nb = 4;
10572
- break;
10573
- case 'base64':
10574
- this.text = base64Text;
10575
- this.end = base64End;
10576
- nb = 3;
10577
- break;
10578
- default:
10579
- this.write = simpleWrite;
10580
- this.end = simpleEnd;
10581
- return;
10582
- }
10583
- this.lastNeed = 0;
10584
- this.lastTotal = 0;
10585
- this.lastChar = Buffer.allocUnsafe(nb);
10586
- }
10587
-
10588
- StringDecoder.prototype.write = function (buf) {
10589
- if (buf.length === 0) return '';
10590
- var r;
10591
- var i;
10592
- if (this.lastNeed) {
10593
- r = this.fillLast(buf);
10594
- if (r === undefined) return '';
10595
- i = this.lastNeed;
10596
- this.lastNeed = 0;
10597
- } else {
10598
- i = 0;
10599
- }
10600
- if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);
10601
- return r || '';
10602
- };
10603
-
10604
- StringDecoder.prototype.end = utf8End;
10605
-
10606
- // Returns only complete characters in a Buffer
10607
- StringDecoder.prototype.text = utf8Text;
10608
-
10609
- // Attempts to complete a partial non-UTF-8 character using bytes from a Buffer
10610
- StringDecoder.prototype.fillLast = function (buf) {
10611
- if (this.lastNeed <= buf.length) {
10612
- buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
10613
- return this.lastChar.toString(this.encoding, 0, this.lastTotal);
10614
- }
10615
- buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
10616
- this.lastNeed -= buf.length;
10617
- };
10618
-
10619
- // Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a
10620
- // continuation byte. If an invalid byte is detected, -2 is returned.
10621
- function utf8CheckByte(byte) {
10622
- if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;
10623
- return byte >> 6 === 0x02 ? -1 : -2;
10624
- }
10625
-
10626
- // Checks at most 3 bytes at the end of a Buffer in order to detect an
10627
- // incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)
10628
- // needed to complete the UTF-8 character (if applicable) are returned.
10629
- function utf8CheckIncomplete(self, buf, i) {
10630
- var j = buf.length - 1;
10631
- if (j < i) return 0;
10632
- var nb = utf8CheckByte(buf[j]);
10633
- if (nb >= 0) {
10634
- if (nb > 0) self.lastNeed = nb - 1;
10635
- return nb;
10636
- }
10637
- if (--j < i || nb === -2) return 0;
10638
- nb = utf8CheckByte(buf[j]);
10639
- if (nb >= 0) {
10640
- if (nb > 0) self.lastNeed = nb - 2;
10641
- return nb;
10642
- }
10643
- if (--j < i || nb === -2) return 0;
10644
- nb = utf8CheckByte(buf[j]);
10645
- if (nb >= 0) {
10646
- if (nb > 0) {
10647
- if (nb === 2) nb = 0;else self.lastNeed = nb - 3;
10648
- }
10649
- return nb;
10650
- }
10651
- return 0;
10652
- }
10653
-
10654
- // Validates as many continuation bytes for a multi-byte UTF-8 character as
10655
- // needed or are available. If we see a non-continuation byte where we expect
10656
- // one, we "replace" the validated continuation bytes we've seen so far with
10657
- // a single UTF-8 replacement character ('\ufffd'), to match v8's UTF-8 decoding
10658
- // behavior. The continuation byte check is included three times in the case
10659
- // where all of the continuation bytes for a character exist in the same buffer.
10660
- // It is also done this way as a slight performance increase instead of using a
10661
- // loop.
10662
- function utf8CheckExtraBytes(self, buf, p) {
10663
- if ((buf[0] & 0xC0) !== 0x80) {
10664
- self.lastNeed = 0;
10665
- return '\ufffd';
10666
- }
10667
- if (self.lastNeed > 1 && buf.length > 1) {
10668
- if ((buf[1] & 0xC0) !== 0x80) {
10669
- self.lastNeed = 1;
10670
- return '\ufffd';
10671
- }
10672
- if (self.lastNeed > 2 && buf.length > 2) {
10673
- if ((buf[2] & 0xC0) !== 0x80) {
10674
- self.lastNeed = 2;
10675
- return '\ufffd';
10676
- }
10677
- }
10678
- }
10679
- }
10680
-
10681
- // Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.
10682
- function utf8FillLast(buf) {
10683
- var p = this.lastTotal - this.lastNeed;
10684
- var r = utf8CheckExtraBytes(this, buf, p);
10685
- if (r !== undefined) return r;
10686
- if (this.lastNeed <= buf.length) {
10687
- buf.copy(this.lastChar, p, 0, this.lastNeed);
10688
- return this.lastChar.toString(this.encoding, 0, this.lastTotal);
10689
- }
10690
- buf.copy(this.lastChar, p, 0, buf.length);
10691
- this.lastNeed -= buf.length;
10692
- }
10693
-
10694
- // Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a
10695
- // partial character, the character's bytes are buffered until the required
10696
- // number of bytes are available.
10697
- function utf8Text(buf, i) {
10698
- var total = utf8CheckIncomplete(this, buf, i);
10699
- if (!this.lastNeed) return buf.toString('utf8', i);
10700
- this.lastTotal = total;
10701
- var end = buf.length - (total - this.lastNeed);
10702
- buf.copy(this.lastChar, 0, end);
10703
- return buf.toString('utf8', i, end);
10704
- }
10705
-
10706
- // For UTF-8, a replacement character is added when ending on a partial
10707
- // character.
10708
- function utf8End(buf) {
10709
- var r = buf && buf.length ? this.write(buf) : '';
10710
- if (this.lastNeed) return r + '\ufffd';
10711
- return r;
10712
- }
10713
-
10714
- // UTF-16LE typically needs two bytes per character, but even if we have an even
10715
- // number of bytes available, we need to check if we end on a leading/high
10716
- // surrogate. In that case, we need to wait for the next two bytes in order to
10717
- // decode the last character properly.
10718
- function utf16Text(buf, i) {
10719
- if ((buf.length - i) % 2 === 0) {
10720
- var r = buf.toString('utf16le', i);
10721
- if (r) {
10722
- var c = r.charCodeAt(r.length - 1);
10723
- if (c >= 0xD800 && c <= 0xDBFF) {
10724
- this.lastNeed = 2;
10725
- this.lastTotal = 4;
10726
- this.lastChar[0] = buf[buf.length - 2];
10727
- this.lastChar[1] = buf[buf.length - 1];
10728
- return r.slice(0, -1);
10729
- }
10730
- }
10731
- return r;
10732
- }
10733
- this.lastNeed = 1;
10734
- this.lastTotal = 2;
10735
- this.lastChar[0] = buf[buf.length - 1];
10736
- return buf.toString('utf16le', i, buf.length - 1);
10737
- }
10738
-
10739
- // For UTF-16LE we do not explicitly append special replacement characters if we
10740
- // end on a partial character, we simply let v8 handle that.
10741
- function utf16End(buf) {
10742
- var r = buf && buf.length ? this.write(buf) : '';
10743
- if (this.lastNeed) {
10744
- var end = this.lastTotal - this.lastNeed;
10745
- return r + this.lastChar.toString('utf16le', 0, end);
10746
- }
10747
- return r;
10748
- }
10749
-
10750
- function base64Text(buf, i) {
10751
- var n = (buf.length - i) % 3;
10752
- if (n === 0) return buf.toString('base64', i);
10753
- this.lastNeed = 3 - n;
10754
- this.lastTotal = 3;
10755
- if (n === 1) {
10756
- this.lastChar[0] = buf[buf.length - 1];
10757
- } else {
10758
- this.lastChar[0] = buf[buf.length - 2];
10759
- this.lastChar[1] = buf[buf.length - 1];
10760
- }
10761
- return buf.toString('base64', i, buf.length - n);
10762
- }
10737
+ } catch (e) {}
10738
+ if (response !== null) {
10739
+ self.push(new Buffer(response))
10740
+ break
10741
+ }
10742
+ // Falls through in IE8
10743
+ case 'text':
10744
+ try { // This will fail when readyState = 3 in IE9. Switch mode and wait for readyState = 4
10745
+ response = xhr.responseText
10746
+ } catch (e) {
10747
+ self._mode = 'text:vbarray'
10748
+ break
10749
+ }
10750
+ if (response.length > self._pos) {
10751
+ var newData = response.substr(self._pos)
10752
+ if (self._charset === 'x-user-defined') {
10753
+ var buffer = new Buffer(newData.length)
10754
+ for (var i = 0; i < newData.length; i++)
10755
+ buffer[i] = newData.charCodeAt(i) & 0xff
10763
10756
 
10764
- function base64End(buf) {
10765
- var r = buf && buf.length ? this.write(buf) : '';
10766
- if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);
10767
- return r;
10768
- }
10757
+ self.push(buffer)
10758
+ } else {
10759
+ self.push(newData, self._charset)
10760
+ }
10761
+ self._pos = response.length
10762
+ }
10763
+ break
10764
+ case 'arraybuffer':
10765
+ if (xhr.readyState !== rStates.DONE || !xhr.response)
10766
+ break
10767
+ response = xhr.response
10768
+ self.push(new Buffer(new Uint8Array(response)))
10769
+ break
10770
+ case 'moz-chunked-arraybuffer': // take whole
10771
+ response = xhr.response
10772
+ if (xhr.readyState !== rStates.LOADING || !response)
10773
+ break
10774
+ self.push(new Buffer(new Uint8Array(response)))
10775
+ break
10776
+ case 'ms-stream':
10777
+ response = xhr.response
10778
+ if (xhr.readyState !== rStates.LOADING)
10779
+ break
10780
+ var reader = new global.MSStreamReader()
10781
+ reader.onprogress = function () {
10782
+ if (reader.result.byteLength > self._pos) {
10783
+ self.push(new Buffer(new Uint8Array(reader.result.slice(self._pos))))
10784
+ self._pos = reader.result.byteLength
10785
+ }
10786
+ }
10787
+ reader.onload = function () {
10788
+ self.push(null)
10789
+ }
10790
+ // reader.onerror = ??? // TODO: this
10791
+ reader.readAsArrayBuffer(response)
10792
+ break
10793
+ }
10769
10794
 
10770
- // Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)
10771
- function simpleWrite(buf) {
10772
- return buf.toString(this.encoding);
10795
+ // The ms-stream case handles end separately in reader.onload()
10796
+ if (self._xhr.readyState === rStates.DONE && self._mode !== 'ms-stream') {
10797
+ self.push(null)
10798
+ }
10773
10799
  }
10774
10800
 
10775
- function simpleEnd(buf) {
10776
- return buf && buf.length ? this.write(buf) : '';
10777
- }
10778
- },{"safe-buffer":80}],86:[function(require,module,exports){
10801
+ }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer)
10802
+ },{"./capability":85,"_process":69,"buffer":4,"inherits":63,"readable-stream":82}],88:[function(require,module,exports){
10779
10803
  (function (setImmediate,clearImmediate){
10780
10804
  var nextTick = require('process/browser.js').nextTick;
10781
10805
  var apply = Function.prototype.apply;
@@ -10854,7 +10878,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate :
10854
10878
  delete immediateIds[id];
10855
10879
  };
10856
10880
  }).call(this,require("timers").setImmediate,require("timers").clearImmediate)
10857
- },{"process/browser.js":67,"timers":86}],87:[function(require,module,exports){
10881
+ },{"process/browser.js":69,"timers":88}],89:[function(require,module,exports){
10858
10882
  var Buffer = require('buffer').Buffer
10859
10883
 
10860
10884
  module.exports = function (buf) {
@@ -10883,7 +10907,7 @@ module.exports = function (buf) {
10883
10907
  }
10884
10908
  }
10885
10909
 
10886
- },{"buffer":4}],88:[function(require,module,exports){
10910
+ },{"buffer":4}],90:[function(require,module,exports){
10887
10911
  // Copyright Joyent, Inc. and other Node contributors.
10888
10912
  //
10889
10913
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -11617,7 +11641,7 @@ Url.prototype.parseHost = function() {
11617
11641
  if (host) this.hostname = host;
11618
11642
  };
11619
11643
 
11620
- },{"./util":89,"punycode":3,"querystring":70}],89:[function(require,module,exports){
11644
+ },{"./util":91,"punycode":3,"querystring":72}],91:[function(require,module,exports){
11621
11645
  'use strict';
11622
11646
 
11623
11647
  module.exports = {
@@ -11635,7 +11659,7 @@ module.exports = {
11635
11659
  }
11636
11660
  };
11637
11661
 
11638
- },{}],90:[function(require,module,exports){
11662
+ },{}],92:[function(require,module,exports){
11639
11663
  (function (global){
11640
11664
 
11641
11665
  /**
@@ -11706,7 +11730,7 @@ function config (name) {
11706
11730
  }
11707
11731
 
11708
11732
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
11709
- },{}],91:[function(require,module,exports){
11733
+ },{}],93:[function(require,module,exports){
11710
11734
  "use strict";
11711
11735
 
11712
11736
  Object.defineProperty(exports, "__esModule", {
@@ -11864,7 +11888,7 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
11864
11888
 
11865
11889
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11866
11890
 
11867
- var version = '10.9.0';
11891
+ var version = '10.11.0';
11868
11892
  var validator = {
11869
11893
  version: version,
11870
11894
  toDate: _toDate.default,
@@ -11949,7 +11973,8 @@ var validator = {
11949
11973
  var _default = validator;
11950
11974
  exports.default = _default;
11951
11975
  module.exports = exports.default;
11952
- },{"./lib/blacklist":93,"./lib/contains":94,"./lib/equals":95,"./lib/escape":96,"./lib/isAfter":97,"./lib/isAlpha":98,"./lib/isAlphanumeric":99,"./lib/isAscii":100,"./lib/isBase64":101,"./lib/isBefore":102,"./lib/isBoolean":103,"./lib/isByteLength":104,"./lib/isCreditCard":105,"./lib/isCurrency":106,"./lib/isDataURI":107,"./lib/isDecimal":108,"./lib/isDivisibleBy":109,"./lib/isEmail":110,"./lib/isEmpty":111,"./lib/isFQDN":112,"./lib/isFloat":113,"./lib/isFullWidth":114,"./lib/isHalfWidth":115,"./lib/isHash":116,"./lib/isHexColor":117,"./lib/isHexadecimal":118,"./lib/isIP":119,"./lib/isIPRange":120,"./lib/isISBN":121,"./lib/isISIN":122,"./lib/isISO31661Alpha2":123,"./lib/isISO31661Alpha3":124,"./lib/isISO8601":125,"./lib/isISRC":126,"./lib/isISSN":127,"./lib/isIdentityCard":128,"./lib/isIn":129,"./lib/isInt":130,"./lib/isJSON":131,"./lib/isJWT":132,"./lib/isLatLong":133,"./lib/isLength":134,"./lib/isLowercase":135,"./lib/isMACAddress":136,"./lib/isMD5":137,"./lib/isMagnetURI":138,"./lib/isMimeType":139,"./lib/isMobilePhone":140,"./lib/isMongoId":141,"./lib/isMultibyte":142,"./lib/isNumeric":143,"./lib/isPort":144,"./lib/isPostalCode":145,"./lib/isRFC3339":146,"./lib/isSurrogatePair":147,"./lib/isURL":148,"./lib/isUUID":149,"./lib/isUppercase":150,"./lib/isVariableWidth":151,"./lib/isWhitelisted":152,"./lib/ltrim":153,"./lib/matches":154,"./lib/normalizeEmail":155,"./lib/rtrim":156,"./lib/stripLow":157,"./lib/toBoolean":158,"./lib/toDate":159,"./lib/toFloat":160,"./lib/toInt":161,"./lib/trim":162,"./lib/unescape":163,"./lib/util/toString":167,"./lib/whitelist":168}],92:[function(require,module,exports){
11976
+ module.exports.default = exports.default;
11977
+ },{"./lib/blacklist":95,"./lib/contains":96,"./lib/equals":97,"./lib/escape":98,"./lib/isAfter":99,"./lib/isAlpha":100,"./lib/isAlphanumeric":101,"./lib/isAscii":102,"./lib/isBase64":103,"./lib/isBefore":104,"./lib/isBoolean":105,"./lib/isByteLength":106,"./lib/isCreditCard":107,"./lib/isCurrency":108,"./lib/isDataURI":109,"./lib/isDecimal":110,"./lib/isDivisibleBy":111,"./lib/isEmail":112,"./lib/isEmpty":113,"./lib/isFQDN":114,"./lib/isFloat":115,"./lib/isFullWidth":116,"./lib/isHalfWidth":117,"./lib/isHash":118,"./lib/isHexColor":119,"./lib/isHexadecimal":120,"./lib/isIP":121,"./lib/isIPRange":122,"./lib/isISBN":123,"./lib/isISIN":124,"./lib/isISO31661Alpha2":125,"./lib/isISO31661Alpha3":126,"./lib/isISO8601":127,"./lib/isISRC":128,"./lib/isISSN":129,"./lib/isIdentityCard":130,"./lib/isIn":131,"./lib/isInt":132,"./lib/isJSON":133,"./lib/isJWT":134,"./lib/isLatLong":135,"./lib/isLength":136,"./lib/isLowercase":137,"./lib/isMACAddress":138,"./lib/isMD5":139,"./lib/isMagnetURI":140,"./lib/isMimeType":141,"./lib/isMobilePhone":142,"./lib/isMongoId":143,"./lib/isMultibyte":144,"./lib/isNumeric":145,"./lib/isPort":146,"./lib/isPostalCode":147,"./lib/isRFC3339":148,"./lib/isSurrogatePair":149,"./lib/isURL":150,"./lib/isUUID":151,"./lib/isUppercase":152,"./lib/isVariableWidth":153,"./lib/isWhitelisted":154,"./lib/ltrim":155,"./lib/matches":156,"./lib/normalizeEmail":157,"./lib/rtrim":158,"./lib/stripLow":159,"./lib/toBoolean":160,"./lib/toDate":161,"./lib/toFloat":162,"./lib/toInt":163,"./lib/trim":164,"./lib/unescape":165,"./lib/util/toString":169,"./lib/whitelist":170}],94:[function(require,module,exports){
11953
11978
  "use strict";
11954
11979
 
11955
11980
  Object.defineProperty(exports, "__esModule", {
@@ -12059,7 +12084,7 @@ decimal['pt-BR'] = decimal['pt-PT']; // see #862
12059
12084
  alpha['pl-Pl'] = alpha['pl-PL'];
12060
12085
  alphanumeric['pl-Pl'] = alphanumeric['pl-PL'];
12061
12086
  decimal['pl-Pl'] = decimal['pl-PL'];
12062
- },{}],93:[function(require,module,exports){
12087
+ },{}],95:[function(require,module,exports){
12063
12088
  "use strict";
12064
12089
 
12065
12090
  Object.defineProperty(exports, "__esModule", {
@@ -12077,7 +12102,8 @@ function blacklist(str, chars) {
12077
12102
  }
12078
12103
 
12079
12104
  module.exports = exports.default;
12080
- },{"./util/assertString":164}],94:[function(require,module,exports){
12105
+ module.exports.default = exports.default;
12106
+ },{"./util/assertString":166}],96:[function(require,module,exports){
12081
12107
  "use strict";
12082
12108
 
12083
12109
  Object.defineProperty(exports, "__esModule", {
@@ -12097,7 +12123,8 @@ function contains(str, elem) {
12097
12123
  }
12098
12124
 
12099
12125
  module.exports = exports.default;
12100
- },{"./util/assertString":164,"./util/toString":167}],95:[function(require,module,exports){
12126
+ module.exports.default = exports.default;
12127
+ },{"./util/assertString":166,"./util/toString":169}],97:[function(require,module,exports){
12101
12128
  "use strict";
12102
12129
 
12103
12130
  Object.defineProperty(exports, "__esModule", {
@@ -12115,7 +12142,8 @@ function equals(str, comparison) {
12115
12142
  }
12116
12143
 
12117
12144
  module.exports = exports.default;
12118
- },{"./util/assertString":164}],96:[function(require,module,exports){
12145
+ module.exports.default = exports.default;
12146
+ },{"./util/assertString":166}],98:[function(require,module,exports){
12119
12147
  "use strict";
12120
12148
 
12121
12149
  Object.defineProperty(exports, "__esModule", {
@@ -12133,7 +12161,8 @@ function escape(str) {
12133
12161
  }
12134
12162
 
12135
12163
  module.exports = exports.default;
12136
- },{"./util/assertString":164}],97:[function(require,module,exports){
12164
+ module.exports.default = exports.default;
12165
+ },{"./util/assertString":166}],99:[function(require,module,exports){
12137
12166
  "use strict";
12138
12167
 
12139
12168
  Object.defineProperty(exports, "__esModule", {
@@ -12156,7 +12185,8 @@ function isAfter(str) {
12156
12185
  }
12157
12186
 
12158
12187
  module.exports = exports.default;
12159
- },{"./toDate":159,"./util/assertString":164}],98:[function(require,module,exports){
12188
+ module.exports.default = exports.default;
12189
+ },{"./toDate":161,"./util/assertString":166}],100:[function(require,module,exports){
12160
12190
  "use strict";
12161
12191
 
12162
12192
  Object.defineProperty(exports, "__esModule", {
@@ -12184,7 +12214,7 @@ function isAlpha(str) {
12184
12214
 
12185
12215
  var locales = Object.keys(_alpha.alpha);
12186
12216
  exports.locales = locales;
12187
- },{"./alpha":92,"./util/assertString":164}],99:[function(require,module,exports){
12217
+ },{"./alpha":94,"./util/assertString":166}],101:[function(require,module,exports){
12188
12218
  "use strict";
12189
12219
 
12190
12220
  Object.defineProperty(exports, "__esModule", {
@@ -12212,7 +12242,7 @@ function isAlphanumeric(str) {
12212
12242
 
12213
12243
  var locales = Object.keys(_alpha.alphanumeric);
12214
12244
  exports.locales = locales;
12215
- },{"./alpha":92,"./util/assertString":164}],100:[function(require,module,exports){
12245
+ },{"./alpha":94,"./util/assertString":166}],102:[function(require,module,exports){
12216
12246
  "use strict";
12217
12247
 
12218
12248
  Object.defineProperty(exports, "__esModule", {
@@ -12234,7 +12264,8 @@ function isAscii(str) {
12234
12264
  }
12235
12265
 
12236
12266
  module.exports = exports.default;
12237
- },{"./util/assertString":164}],101:[function(require,module,exports){
12267
+ module.exports.default = exports.default;
12268
+ },{"./util/assertString":166}],103:[function(require,module,exports){
12238
12269
  "use strict";
12239
12270
 
12240
12271
  Object.defineProperty(exports, "__esModule", {
@@ -12261,7 +12292,8 @@ function isBase64(str) {
12261
12292
  }
12262
12293
 
12263
12294
  module.exports = exports.default;
12264
- },{"./util/assertString":164}],102:[function(require,module,exports){
12295
+ module.exports.default = exports.default;
12296
+ },{"./util/assertString":166}],104:[function(require,module,exports){
12265
12297
  "use strict";
12266
12298
 
12267
12299
  Object.defineProperty(exports, "__esModule", {
@@ -12284,7 +12316,8 @@ function isBefore(str) {
12284
12316
  }
12285
12317
 
12286
12318
  module.exports = exports.default;
12287
- },{"./toDate":159,"./util/assertString":164}],103:[function(require,module,exports){
12319
+ module.exports.default = exports.default;
12320
+ },{"./toDate":161,"./util/assertString":166}],105:[function(require,module,exports){
12288
12321
  "use strict";
12289
12322
 
12290
12323
  Object.defineProperty(exports, "__esModule", {
@@ -12302,7 +12335,8 @@ function isBoolean(str) {
12302
12335
  }
12303
12336
 
12304
12337
  module.exports = exports.default;
12305
- },{"./util/assertString":164}],104:[function(require,module,exports){
12338
+ module.exports.default = exports.default;
12339
+ },{"./util/assertString":166}],106:[function(require,module,exports){
12306
12340
  "use strict";
12307
12341
 
12308
12342
  Object.defineProperty(exports, "__esModule", {
@@ -12336,7 +12370,8 @@ function isByteLength(str, options) {
12336
12370
  }
12337
12371
 
12338
12372
  module.exports = exports.default;
12339
- },{"./util/assertString":164}],105:[function(require,module,exports){
12373
+ module.exports.default = exports.default;
12374
+ },{"./util/assertString":166}],107:[function(require,module,exports){
12340
12375
  "use strict";
12341
12376
 
12342
12377
  Object.defineProperty(exports, "__esModule", {
@@ -12388,7 +12423,8 @@ function isCreditCard(str) {
12388
12423
  }
12389
12424
 
12390
12425
  module.exports = exports.default;
12391
- },{"./util/assertString":164}],106:[function(require,module,exports){
12426
+ module.exports.default = exports.default;
12427
+ },{"./util/assertString":166}],108:[function(require,module,exports){
12392
12428
  "use strict";
12393
12429
 
12394
12430
  Object.defineProperty(exports, "__esModule", {
@@ -12477,7 +12513,8 @@ function isCurrency(str, options) {
12477
12513
  }
12478
12514
 
12479
12515
  module.exports = exports.default;
12480
- },{"./util/assertString":164,"./util/merge":166}],107:[function(require,module,exports){
12516
+ module.exports.default = exports.default;
12517
+ },{"./util/assertString":166,"./util/merge":168}],109:[function(require,module,exports){
12481
12518
  "use strict";
12482
12519
 
12483
12520
  Object.defineProperty(exports, "__esModule", {
@@ -12531,7 +12568,8 @@ function isDataURI(str) {
12531
12568
  }
12532
12569
 
12533
12570
  module.exports = exports.default;
12534
- },{"./util/assertString":164}],108:[function(require,module,exports){
12571
+ module.exports.default = exports.default;
12572
+ },{"./util/assertString":166}],110:[function(require,module,exports){
12535
12573
  "use strict";
12536
12574
 
12537
12575
  Object.defineProperty(exports, "__esModule", {
@@ -12573,7 +12611,8 @@ function isDecimal(str, options) {
12573
12611
  }
12574
12612
 
12575
12613
  module.exports = exports.default;
12576
- },{"./alpha":92,"./util/assertString":164,"./util/includes":165,"./util/merge":166}],109:[function(require,module,exports){
12614
+ module.exports.default = exports.default;
12615
+ },{"./alpha":94,"./util/assertString":166,"./util/includes":167,"./util/merge":168}],111:[function(require,module,exports){
12577
12616
  "use strict";
12578
12617
 
12579
12618
  Object.defineProperty(exports, "__esModule", {
@@ -12593,7 +12632,8 @@ function isDivisibleBy(str, num) {
12593
12632
  }
12594
12633
 
12595
12634
  module.exports = exports.default;
12596
- },{"./toFloat":160,"./util/assertString":164}],110:[function(require,module,exports){
12635
+ module.exports.default = exports.default;
12636
+ },{"./toFloat":162,"./util/assertString":166}],112:[function(require,module,exports){
12597
12637
  "use strict";
12598
12638
 
12599
12639
  Object.defineProperty(exports, "__esModule", {
@@ -12726,7 +12766,8 @@ function isEmail(str, options) {
12726
12766
  }
12727
12767
 
12728
12768
  module.exports = exports.default;
12729
- },{"./isByteLength":104,"./isFQDN":112,"./isIP":119,"./util/assertString":164,"./util/merge":166}],111:[function(require,module,exports){
12769
+ module.exports.default = exports.default;
12770
+ },{"./isByteLength":106,"./isFQDN":114,"./isIP":121,"./util/assertString":166,"./util/merge":168}],113:[function(require,module,exports){
12730
12771
  "use strict";
12731
12772
 
12732
12773
  Object.defineProperty(exports, "__esModule", {
@@ -12751,7 +12792,8 @@ function isEmpty(str, options) {
12751
12792
  }
12752
12793
 
12753
12794
  module.exports = exports.default;
12754
- },{"./util/assertString":164,"./util/merge":166}],112:[function(require,module,exports){
12795
+ module.exports.default = exports.default;
12796
+ },{"./util/assertString":166,"./util/merge":168}],114:[function(require,module,exports){
12755
12797
  "use strict";
12756
12798
 
12757
12799
  Object.defineProperty(exports, "__esModule", {
@@ -12826,7 +12868,8 @@ function isFQDN(str, options) {
12826
12868
  }
12827
12869
 
12828
12870
  module.exports = exports.default;
12829
- },{"./util/assertString":164,"./util/merge":166}],113:[function(require,module,exports){
12871
+ module.exports.default = exports.default;
12872
+ },{"./util/assertString":166,"./util/merge":168}],115:[function(require,module,exports){
12830
12873
  "use strict";
12831
12874
 
12832
12875
  Object.defineProperty(exports, "__esModule", {
@@ -12856,7 +12899,7 @@ function isFloat(str, options) {
12856
12899
 
12857
12900
  var locales = Object.keys(_alpha.decimal);
12858
12901
  exports.locales = locales;
12859
- },{"./alpha":92,"./util/assertString":164}],114:[function(require,module,exports){
12902
+ },{"./alpha":94,"./util/assertString":166}],116:[function(require,module,exports){
12860
12903
  "use strict";
12861
12904
 
12862
12905
  Object.defineProperty(exports, "__esModule", {
@@ -12876,7 +12919,7 @@ function isFullWidth(str) {
12876
12919
  (0, _assertString.default)(str);
12877
12920
  return fullWidth.test(str);
12878
12921
  }
12879
- },{"./util/assertString":164}],115:[function(require,module,exports){
12922
+ },{"./util/assertString":166}],117:[function(require,module,exports){
12880
12923
  "use strict";
12881
12924
 
12882
12925
  Object.defineProperty(exports, "__esModule", {
@@ -12896,7 +12939,7 @@ function isHalfWidth(str) {
12896
12939
  (0, _assertString.default)(str);
12897
12940
  return halfWidth.test(str);
12898
12941
  }
12899
- },{"./util/assertString":164}],116:[function(require,module,exports){
12942
+ },{"./util/assertString":166}],118:[function(require,module,exports){
12900
12943
  "use strict";
12901
12944
 
12902
12945
  Object.defineProperty(exports, "__esModule", {
@@ -12931,7 +12974,8 @@ function isHash(str, algorithm) {
12931
12974
  }
12932
12975
 
12933
12976
  module.exports = exports.default;
12934
- },{"./util/assertString":164}],117:[function(require,module,exports){
12977
+ module.exports.default = exports.default;
12978
+ },{"./util/assertString":166}],119:[function(require,module,exports){
12935
12979
  "use strict";
12936
12980
 
12937
12981
  Object.defineProperty(exports, "__esModule", {
@@ -12951,7 +12995,8 @@ function isHexColor(str) {
12951
12995
  }
12952
12996
 
12953
12997
  module.exports = exports.default;
12954
- },{"./util/assertString":164}],118:[function(require,module,exports){
12998
+ module.exports.default = exports.default;
12999
+ },{"./util/assertString":166}],120:[function(require,module,exports){
12955
13000
  "use strict";
12956
13001
 
12957
13002
  Object.defineProperty(exports, "__esModule", {
@@ -12971,7 +13016,8 @@ function isHexadecimal(str) {
12971
13016
  }
12972
13017
 
12973
13018
  module.exports = exports.default;
12974
- },{"./util/assertString":164}],119:[function(require,module,exports){
13019
+ module.exports.default = exports.default;
13020
+ },{"./util/assertString":166}],121:[function(require,module,exports){
12975
13021
  "use strict";
12976
13022
 
12977
13023
  Object.defineProperty(exports, "__esModule", {
@@ -13057,7 +13103,8 @@ function isIP(str) {
13057
13103
  }
13058
13104
 
13059
13105
  module.exports = exports.default;
13060
- },{"./util/assertString":164}],120:[function(require,module,exports){
13106
+ module.exports.default = exports.default;
13107
+ },{"./util/assertString":166}],122:[function(require,module,exports){
13061
13108
  "use strict";
13062
13109
 
13063
13110
  Object.defineProperty(exports, "__esModule", {
@@ -13094,7 +13141,8 @@ function isIPRange(str) {
13094
13141
  }
13095
13142
 
13096
13143
  module.exports = exports.default;
13097
- },{"./isIP":119,"./util/assertString":164}],121:[function(require,module,exports){
13144
+ module.exports.default = exports.default;
13145
+ },{"./isIP":121,"./util/assertString":166}],123:[function(require,module,exports){
13098
13146
  "use strict";
13099
13147
 
13100
13148
  Object.defineProperty(exports, "__esModule", {
@@ -13159,7 +13207,8 @@ function isISBN(str) {
13159
13207
  }
13160
13208
 
13161
13209
  module.exports = exports.default;
13162
- },{"./util/assertString":164}],122:[function(require,module,exports){
13210
+ module.exports.default = exports.default;
13211
+ },{"./util/assertString":166}],124:[function(require,module,exports){
13163
13212
  "use strict";
13164
13213
 
13165
13214
  Object.defineProperty(exports, "__esModule", {
@@ -13211,7 +13260,8 @@ function isISIN(str) {
13211
13260
  }
13212
13261
 
13213
13262
  module.exports = exports.default;
13214
- },{"./util/assertString":164}],123:[function(require,module,exports){
13263
+ module.exports.default = exports.default;
13264
+ },{"./util/assertString":166}],125:[function(require,module,exports){
13215
13265
  "use strict";
13216
13266
 
13217
13267
  Object.defineProperty(exports, "__esModule", {
@@ -13234,7 +13284,8 @@ function isISO31661Alpha2(str) {
13234
13284
  }
13235
13285
 
13236
13286
  module.exports = exports.default;
13237
- },{"./util/assertString":164,"./util/includes":165}],124:[function(require,module,exports){
13287
+ module.exports.default = exports.default;
13288
+ },{"./util/assertString":166,"./util/includes":167}],126:[function(require,module,exports){
13238
13289
  "use strict";
13239
13290
 
13240
13291
  Object.defineProperty(exports, "__esModule", {
@@ -13257,7 +13308,8 @@ function isISO31661Alpha3(str) {
13257
13308
  }
13258
13309
 
13259
13310
  module.exports = exports.default;
13260
- },{"./util/assertString":164,"./util/includes":165}],125:[function(require,module,exports){
13311
+ module.exports.default = exports.default;
13312
+ },{"./util/assertString":166,"./util/includes":167}],127:[function(require,module,exports){
13261
13313
  "use strict";
13262
13314
 
13263
13315
  Object.defineProperty(exports, "__esModule", {
@@ -13292,13 +13344,15 @@ var isValidDate = function isValidDate(str) {
13292
13344
  var match = str.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number);
13293
13345
  var year = match[1];
13294
13346
  var month = match[2];
13295
- var day = match[3]; // create a date object and compare
13347
+ var day = match[3];
13348
+ var monthString = month ? "0".concat(month).slice(-2) : month;
13349
+ var dayString = day ? "0".concat(day).slice(-2) : day; // create a date object and compare
13296
13350
 
13297
- var d = new Date("".concat(year, "-").concat(month || 1, "-").concat(day || 1));
13298
- if (isNaN(d.getFullYear())) return false;
13351
+ var d = new Date("".concat(year, "-").concat(monthString || '01', "-").concat(dayString || '01'));
13352
+ if (isNaN(d.getUTCFullYear())) return false;
13299
13353
 
13300
13354
  if (month && day) {
13301
- return d.getFullYear() === year && d.getMonth() + 1 === month && d.getDate() === day;
13355
+ return d.getUTCFullYear() === year && d.getUTCMonth() + 1 === month && d.getUTCDate() === day;
13302
13356
  }
13303
13357
 
13304
13358
  return true;
@@ -13313,7 +13367,8 @@ function isISO8601(str, options) {
13313
13367
  }
13314
13368
 
13315
13369
  module.exports = exports.default;
13316
- },{"./util/assertString":164}],126:[function(require,module,exports){
13370
+ module.exports.default = exports.default;
13371
+ },{"./util/assertString":166}],128:[function(require,module,exports){
13317
13372
  "use strict";
13318
13373
 
13319
13374
  Object.defineProperty(exports, "__esModule", {
@@ -13334,7 +13389,8 @@ function isISRC(str) {
13334
13389
  }
13335
13390
 
13336
13391
  module.exports = exports.default;
13337
- },{"./util/assertString":164}],127:[function(require,module,exports){
13392
+ module.exports.default = exports.default;
13393
+ },{"./util/assertString":166}],129:[function(require,module,exports){
13338
13394
  "use strict";
13339
13395
 
13340
13396
  Object.defineProperty(exports, "__esModule", {
@@ -13371,7 +13427,8 @@ function isISSN(str) {
13371
13427
  }
13372
13428
 
13373
13429
  module.exports = exports.default;
13374
- },{"./util/assertString":164}],128:[function(require,module,exports){
13430
+ module.exports.default = exports.default;
13431
+ },{"./util/assertString":166}],130:[function(require,module,exports){
13375
13432
  "use strict";
13376
13433
 
13377
13434
  Object.defineProperty(exports, "__esModule", {
@@ -13432,7 +13489,8 @@ function isIdentityCard(str) {
13432
13489
  }
13433
13490
 
13434
13491
  module.exports = exports.default;
13435
- },{"./util/assertString":164}],129:[function(require,module,exports){
13492
+ module.exports.default = exports.default;
13493
+ },{"./util/assertString":166}],131:[function(require,module,exports){
13436
13494
  "use strict";
13437
13495
 
13438
13496
  Object.defineProperty(exports, "__esModule", {
@@ -13472,7 +13530,8 @@ function isIn(str, options) {
13472
13530
  }
13473
13531
 
13474
13532
  module.exports = exports.default;
13475
- },{"./util/assertString":164,"./util/toString":167}],130:[function(require,module,exports){
13533
+ module.exports.default = exports.default;
13534
+ },{"./util/assertString":166,"./util/toString":169}],132:[function(require,module,exports){
13476
13535
  "use strict";
13477
13536
 
13478
13537
  Object.defineProperty(exports, "__esModule", {
@@ -13502,7 +13561,8 @@ function isInt(str, options) {
13502
13561
  }
13503
13562
 
13504
13563
  module.exports = exports.default;
13505
- },{"./util/assertString":164}],131:[function(require,module,exports){
13564
+ module.exports.default = exports.default;
13565
+ },{"./util/assertString":166}],133:[function(require,module,exports){
13506
13566
  "use strict";
13507
13567
 
13508
13568
  Object.defineProperty(exports, "__esModule", {
@@ -13530,7 +13590,8 @@ function isJSON(str) {
13530
13590
  }
13531
13591
 
13532
13592
  module.exports = exports.default;
13533
- },{"./util/assertString":164}],132:[function(require,module,exports){
13593
+ module.exports.default = exports.default;
13594
+ },{"./util/assertString":166}],134:[function(require,module,exports){
13534
13595
  "use strict";
13535
13596
 
13536
13597
  Object.defineProperty(exports, "__esModule", {
@@ -13550,7 +13611,8 @@ function isJWT(str) {
13550
13611
  }
13551
13612
 
13552
13613
  module.exports = exports.default;
13553
- },{"./util/assertString":164}],133:[function(require,module,exports){
13614
+ module.exports.default = exports.default;
13615
+ },{"./util/assertString":166}],135:[function(require,module,exports){
13554
13616
  "use strict";
13555
13617
 
13556
13618
  Object.defineProperty(exports, "__esModule", {
@@ -13573,7 +13635,8 @@ function _default(str) {
13573
13635
  }
13574
13636
 
13575
13637
  module.exports = exports.default;
13576
- },{"./util/assertString":164}],134:[function(require,module,exports){
13638
+ module.exports.default = exports.default;
13639
+ },{"./util/assertString":166}],136:[function(require,module,exports){
13577
13640
  "use strict";
13578
13641
 
13579
13642
  Object.defineProperty(exports, "__esModule", {
@@ -13608,7 +13671,8 @@ function isLength(str, options) {
13608
13671
  }
13609
13672
 
13610
13673
  module.exports = exports.default;
13611
- },{"./util/assertString":164}],135:[function(require,module,exports){
13674
+ module.exports.default = exports.default;
13675
+ },{"./util/assertString":166}],137:[function(require,module,exports){
13612
13676
  "use strict";
13613
13677
 
13614
13678
  Object.defineProperty(exports, "__esModule", {
@@ -13626,7 +13690,8 @@ function isLowercase(str) {
13626
13690
  }
13627
13691
 
13628
13692
  module.exports = exports.default;
13629
- },{"./util/assertString":164}],136:[function(require,module,exports){
13693
+ module.exports.default = exports.default;
13694
+ },{"./util/assertString":166}],138:[function(require,module,exports){
13630
13695
  "use strict";
13631
13696
 
13632
13697
  Object.defineProperty(exports, "__esModule", {
@@ -13652,7 +13717,8 @@ function isMACAddress(str, options) {
13652
13717
  }
13653
13718
 
13654
13719
  module.exports = exports.default;
13655
- },{"./util/assertString":164}],137:[function(require,module,exports){
13720
+ module.exports.default = exports.default;
13721
+ },{"./util/assertString":166}],139:[function(require,module,exports){
13656
13722
  "use strict";
13657
13723
 
13658
13724
  Object.defineProperty(exports, "__esModule", {
@@ -13672,7 +13738,8 @@ function isMD5(str) {
13672
13738
  }
13673
13739
 
13674
13740
  module.exports = exports.default;
13675
- },{"./util/assertString":164}],138:[function(require,module,exports){
13741
+ module.exports.default = exports.default;
13742
+ },{"./util/assertString":166}],140:[function(require,module,exports){
13676
13743
  "use strict";
13677
13744
 
13678
13745
  Object.defineProperty(exports, "__esModule", {
@@ -13692,7 +13759,8 @@ function isMagnetURI(url) {
13692
13759
  }
13693
13760
 
13694
13761
  module.exports = exports.default;
13695
- },{"./util/assertString":164}],139:[function(require,module,exports){
13762
+ module.exports.default = exports.default;
13763
+ },{"./util/assertString":166}],141:[function(require,module,exports){
13696
13764
  "use strict";
13697
13765
 
13698
13766
  Object.defineProperty(exports, "__esModule", {
@@ -13743,7 +13811,8 @@ function isMimeType(str) {
13743
13811
  }
13744
13812
 
13745
13813
  module.exports = exports.default;
13746
- },{"./util/assertString":164}],140:[function(require,module,exports){
13814
+ module.exports.default = exports.default;
13815
+ },{"./util/assertString":166}],142:[function(require,module,exports){
13747
13816
  "use strict";
13748
13817
 
13749
13818
  Object.defineProperty(exports, "__esModule", {
@@ -13772,12 +13841,13 @@ var phones = {
13772
13841
  'bn-BD': /\+?(88)?0?1[356789][0-9]{8}\b/,
13773
13842
  'cs-CZ': /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,
13774
13843
  'da-DK': /^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,
13775
- 'de-DE': /^(\+?49[ \.\-]?)?([\(]{1}[0-9]{1,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,
13844
+ 'de-DE': /^(\+49)?0?1(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7}$/,
13776
13845
  'el-GR': /^(\+?30|0)?(69\d{8})$/,
13777
13846
  'en-AU': /^(\+?61|0)4\d{8}$/,
13778
13847
  'en-GB': /^(\+?44|0)7\d{9}$/,
13779
13848
  'en-GH': /^(\+233|0)(20|50|24|54|27|57|26|56|23|28)\d{7}$/,
13780
13849
  'en-HK': /^(\+?852\-?)?[456789]\d{3}\-?\d{4}$/,
13850
+ 'en-IE': /^(\+?353|0)8[356789]\d{7}$/,
13781
13851
  'en-IN': /^(\+?91|0)?[6789]\d{9}$/,
13782
13852
  'en-KE': /^(\+?254|0)?[7]\d{8}$/,
13783
13853
  'en-MU': /^(\+?230|0)?\d{8}$/,
@@ -13788,7 +13858,7 @@ var phones = {
13788
13858
  'en-SG': /^(\+65)?[89]\d{7}$/,
13789
13859
  'en-TZ': /^(\+?255|0)?[67]\d{8}$/,
13790
13860
  'en-UG': /^(\+?256|0)?[7]\d{8}$/,
13791
- 'en-US': /^(\+?1?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,
13861
+ 'en-US': /^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,
13792
13862
  'en-ZA': /^(\+?27|0)\d{9}$/,
13793
13863
  'en-ZM': /^(\+?26)?09[567]\d{7}$/,
13794
13864
  'es-ES': /^(\+?34)?(6\d{1}|7[1234])\d{7}$/,
@@ -13808,7 +13878,7 @@ var phones = {
13808
13878
  'kl-GL': /^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,
13809
13879
  'ko-KR': /^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,
13810
13880
  'lt-LT': /^(\+370|8)\d{8}$/,
13811
- 'ms-MY': /^(\+?6?01){1}(([145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,
13881
+ 'ms-MY': /^(\+?6?01){1}(([0145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,
13812
13882
  'nb-NO': /^(\+?47)?[49]\d{7}$/,
13813
13883
  'nl-BE': /^(\+?32|0)4?\d{8}$/,
13814
13884
  'nn-NO': /^(\+?47)?[49]\d{7}$/,
@@ -13875,7 +13945,7 @@ function isMobilePhone(str, locale, options) {
13875
13945
 
13876
13946
  var locales = Object.keys(phones);
13877
13947
  exports.locales = locales;
13878
- },{"./util/assertString":164}],141:[function(require,module,exports){
13948
+ },{"./util/assertString":166}],143:[function(require,module,exports){
13879
13949
  "use strict";
13880
13950
 
13881
13951
  Object.defineProperty(exports, "__esModule", {
@@ -13895,7 +13965,8 @@ function isMongoId(str) {
13895
13965
  }
13896
13966
 
13897
13967
  module.exports = exports.default;
13898
- },{"./isHexadecimal":118,"./util/assertString":164}],142:[function(require,module,exports){
13968
+ module.exports.default = exports.default;
13969
+ },{"./isHexadecimal":120,"./util/assertString":166}],144:[function(require,module,exports){
13899
13970
  "use strict";
13900
13971
 
13901
13972
  Object.defineProperty(exports, "__esModule", {
@@ -13917,7 +13988,8 @@ function isMultibyte(str) {
13917
13988
  }
13918
13989
 
13919
13990
  module.exports = exports.default;
13920
- },{"./util/assertString":164}],143:[function(require,module,exports){
13991
+ module.exports.default = exports.default;
13992
+ },{"./util/assertString":166}],145:[function(require,module,exports){
13921
13993
  "use strict";
13922
13994
 
13923
13995
  Object.defineProperty(exports, "__esModule", {
@@ -13943,7 +14015,8 @@ function isNumeric(str, options) {
13943
14015
  }
13944
14016
 
13945
14017
  module.exports = exports.default;
13946
- },{"./util/assertString":164}],144:[function(require,module,exports){
14018
+ module.exports.default = exports.default;
14019
+ },{"./util/assertString":166}],146:[function(require,module,exports){
13947
14020
  "use strict";
13948
14021
 
13949
14022
  Object.defineProperty(exports, "__esModule", {
@@ -13963,7 +14036,8 @@ function isPort(str) {
13963
14036
  }
13964
14037
 
13965
14038
  module.exports = exports.default;
13966
- },{"./isInt":130}],145:[function(require,module,exports){
14039
+ module.exports.default = exports.default;
14040
+ },{"./isInt":132}],147:[function(require,module,exports){
13967
14041
  "use strict";
13968
14042
 
13969
14043
  Object.defineProperty(exports, "__esModule", {
@@ -14024,6 +14098,7 @@ var patterns = {
14024
14098
  SK: /^\d{3}\s?\d{2}$/,
14025
14099
  TN: fourDigit,
14026
14100
  TW: /^\d{3}(\d{2})?$/,
14101
+ UA: fiveDigit,
14027
14102
  US: /^\d{5}(-\d{4})?$/,
14028
14103
  ZA: fourDigit,
14029
14104
  ZM: fiveDigit
@@ -14052,7 +14127,7 @@ function _default(str, locale) {
14052
14127
 
14053
14128
  throw new Error("Invalid locale '".concat(locale, "'"));
14054
14129
  }
14055
- },{"./util/assertString":164}],146:[function(require,module,exports){
14130
+ },{"./util/assertString":166}],148:[function(require,module,exports){
14056
14131
  "use strict";
14057
14132
 
14058
14133
  Object.defineProperty(exports, "__esModule", {
@@ -14085,7 +14160,8 @@ function isRFC3339(str) {
14085
14160
  }
14086
14161
 
14087
14162
  module.exports = exports.default;
14088
- },{"./util/assertString":164}],147:[function(require,module,exports){
14163
+ module.exports.default = exports.default;
14164
+ },{"./util/assertString":166}],149:[function(require,module,exports){
14089
14165
  "use strict";
14090
14166
 
14091
14167
  Object.defineProperty(exports, "__esModule", {
@@ -14105,7 +14181,8 @@ function isSurrogatePair(str) {
14105
14181
  }
14106
14182
 
14107
14183
  module.exports = exports.default;
14108
- },{"./util/assertString":164}],148:[function(require,module,exports){
14184
+ module.exports.default = exports.default;
14185
+ },{"./util/assertString":166}],150:[function(require,module,exports){
14109
14186
  "use strict";
14110
14187
 
14111
14188
  Object.defineProperty(exports, "__esModule", {
@@ -14257,7 +14334,8 @@ function isURL(url, options) {
14257
14334
  }
14258
14335
 
14259
14336
  module.exports = exports.default;
14260
- },{"./isFQDN":112,"./isIP":119,"./util/assertString":164,"./util/merge":166}],149:[function(require,module,exports){
14337
+ module.exports.default = exports.default;
14338
+ },{"./isFQDN":114,"./isIP":121,"./util/assertString":166,"./util/merge":168}],151:[function(require,module,exports){
14261
14339
  "use strict";
14262
14340
 
14263
14341
  Object.defineProperty(exports, "__esModule", {
@@ -14284,7 +14362,8 @@ function isUUID(str) {
14284
14362
  }
14285
14363
 
14286
14364
  module.exports = exports.default;
14287
- },{"./util/assertString":164}],150:[function(require,module,exports){
14365
+ module.exports.default = exports.default;
14366
+ },{"./util/assertString":166}],152:[function(require,module,exports){
14288
14367
  "use strict";
14289
14368
 
14290
14369
  Object.defineProperty(exports, "__esModule", {
@@ -14302,7 +14381,8 @@ function isUppercase(str) {
14302
14381
  }
14303
14382
 
14304
14383
  module.exports = exports.default;
14305
- },{"./util/assertString":164}],151:[function(require,module,exports){
14384
+ module.exports.default = exports.default;
14385
+ },{"./util/assertString":166}],153:[function(require,module,exports){
14306
14386
  "use strict";
14307
14387
 
14308
14388
  Object.defineProperty(exports, "__esModule", {
@@ -14324,7 +14404,8 @@ function isVariableWidth(str) {
14324
14404
  }
14325
14405
 
14326
14406
  module.exports = exports.default;
14327
- },{"./isFullWidth":114,"./isHalfWidth":115,"./util/assertString":164}],152:[function(require,module,exports){
14407
+ module.exports.default = exports.default;
14408
+ },{"./isFullWidth":116,"./isHalfWidth":117,"./util/assertString":166}],154:[function(require,module,exports){
14328
14409
  "use strict";
14329
14410
 
14330
14411
  Object.defineProperty(exports, "__esModule", {
@@ -14349,7 +14430,8 @@ function isWhitelisted(str, chars) {
14349
14430
  }
14350
14431
 
14351
14432
  module.exports = exports.default;
14352
- },{"./util/assertString":164}],153:[function(require,module,exports){
14433
+ module.exports.default = exports.default;
14434
+ },{"./util/assertString":166}],155:[function(require,module,exports){
14353
14435
  "use strict";
14354
14436
 
14355
14437
  Object.defineProperty(exports, "__esModule", {
@@ -14368,7 +14450,8 @@ function ltrim(str, chars) {
14368
14450
  }
14369
14451
 
14370
14452
  module.exports = exports.default;
14371
- },{"./util/assertString":164}],154:[function(require,module,exports){
14453
+ module.exports.default = exports.default;
14454
+ },{"./util/assertString":166}],156:[function(require,module,exports){
14372
14455
  "use strict";
14373
14456
 
14374
14457
  Object.defineProperty(exports, "__esModule", {
@@ -14391,7 +14474,8 @@ function matches(str, pattern, modifiers) {
14391
14474
  }
14392
14475
 
14393
14476
  module.exports = exports.default;
14394
- },{"./util/assertString":164}],155:[function(require,module,exports){
14477
+ module.exports.default = exports.default;
14478
+ },{"./util/assertString":166}],157:[function(require,module,exports){
14395
14479
  "use strict";
14396
14480
 
14397
14481
  Object.defineProperty(exports, "__esModule", {
@@ -14542,7 +14626,8 @@ function normalizeEmail(email, options) {
14542
14626
  }
14543
14627
 
14544
14628
  module.exports = exports.default;
14545
- },{"./util/merge":166}],156:[function(require,module,exports){
14629
+ module.exports.default = exports.default;
14630
+ },{"./util/merge":168}],158:[function(require,module,exports){
14546
14631
  "use strict";
14547
14632
 
14548
14633
  Object.defineProperty(exports, "__esModule", {
@@ -14567,7 +14652,8 @@ function rtrim(str, chars) {
14567
14652
  }
14568
14653
 
14569
14654
  module.exports = exports.default;
14570
- },{"./util/assertString":164}],157:[function(require,module,exports){
14655
+ module.exports.default = exports.default;
14656
+ },{"./util/assertString":166}],159:[function(require,module,exports){
14571
14657
  "use strict";
14572
14658
 
14573
14659
  Object.defineProperty(exports, "__esModule", {
@@ -14588,7 +14674,8 @@ function stripLow(str, keep_new_lines) {
14588
14674
  }
14589
14675
 
14590
14676
  module.exports = exports.default;
14591
- },{"./blacklist":93,"./util/assertString":164}],158:[function(require,module,exports){
14677
+ module.exports.default = exports.default;
14678
+ },{"./blacklist":95,"./util/assertString":166}],160:[function(require,module,exports){
14592
14679
  "use strict";
14593
14680
 
14594
14681
  Object.defineProperty(exports, "__esModule", {
@@ -14611,7 +14698,8 @@ function toBoolean(str, strict) {
14611
14698
  }
14612
14699
 
14613
14700
  module.exports = exports.default;
14614
- },{"./util/assertString":164}],159:[function(require,module,exports){
14701
+ module.exports.default = exports.default;
14702
+ },{"./util/assertString":166}],161:[function(require,module,exports){
14615
14703
  "use strict";
14616
14704
 
14617
14705
  Object.defineProperty(exports, "__esModule", {
@@ -14630,7 +14718,8 @@ function toDate(date) {
14630
14718
  }
14631
14719
 
14632
14720
  module.exports = exports.default;
14633
- },{"./util/assertString":164}],160:[function(require,module,exports){
14721
+ module.exports.default = exports.default;
14722
+ },{"./util/assertString":166}],162:[function(require,module,exports){
14634
14723
  "use strict";
14635
14724
 
14636
14725
  Object.defineProperty(exports, "__esModule", {
@@ -14648,7 +14737,8 @@ function toFloat(str) {
14648
14737
  }
14649
14738
 
14650
14739
  module.exports = exports.default;
14651
- },{"./util/assertString":164}],161:[function(require,module,exports){
14740
+ module.exports.default = exports.default;
14741
+ },{"./util/assertString":166}],163:[function(require,module,exports){
14652
14742
  "use strict";
14653
14743
 
14654
14744
  Object.defineProperty(exports, "__esModule", {
@@ -14666,7 +14756,8 @@ function toInt(str, radix) {
14666
14756
  }
14667
14757
 
14668
14758
  module.exports = exports.default;
14669
- },{"./util/assertString":164}],162:[function(require,module,exports){
14759
+ module.exports.default = exports.default;
14760
+ },{"./util/assertString":166}],164:[function(require,module,exports){
14670
14761
  "use strict";
14671
14762
 
14672
14763
  Object.defineProperty(exports, "__esModule", {
@@ -14685,7 +14776,8 @@ function trim(str, chars) {
14685
14776
  }
14686
14777
 
14687
14778
  module.exports = exports.default;
14688
- },{"./ltrim":153,"./rtrim":156}],163:[function(require,module,exports){
14779
+ module.exports.default = exports.default;
14780
+ },{"./ltrim":155,"./rtrim":158}],165:[function(require,module,exports){
14689
14781
  "use strict";
14690
14782
 
14691
14783
  Object.defineProperty(exports, "__esModule", {
@@ -14703,7 +14795,8 @@ function unescape(str) {
14703
14795
  }
14704
14796
 
14705
14797
  module.exports = exports.default;
14706
- },{"./util/assertString":164}],164:[function(require,module,exports){
14798
+ module.exports.default = exports.default;
14799
+ },{"./util/assertString":166}],166:[function(require,module,exports){
14707
14800
  "use strict";
14708
14801
 
14709
14802
  Object.defineProperty(exports, "__esModule", {
@@ -14736,7 +14829,8 @@ function assertString(input) {
14736
14829
  }
14737
14830
 
14738
14831
  module.exports = exports.default;
14739
- },{}],165:[function(require,module,exports){
14832
+ module.exports.default = exports.default;
14833
+ },{}],167:[function(require,module,exports){
14740
14834
  "use strict";
14741
14835
 
14742
14836
  Object.defineProperty(exports, "__esModule", {
@@ -14753,7 +14847,8 @@ var includes = function includes(arr, val) {
14753
14847
  var _default = includes;
14754
14848
  exports.default = _default;
14755
14849
  module.exports = exports.default;
14756
- },{}],166:[function(require,module,exports){
14850
+ module.exports.default = exports.default;
14851
+ },{}],168:[function(require,module,exports){
14757
14852
  "use strict";
14758
14853
 
14759
14854
  Object.defineProperty(exports, "__esModule", {
@@ -14775,7 +14870,8 @@ function merge() {
14775
14870
  }
14776
14871
 
14777
14872
  module.exports = exports.default;
14778
- },{}],167:[function(require,module,exports){
14873
+ module.exports.default = exports.default;
14874
+ },{}],169:[function(require,module,exports){
14779
14875
  "use strict";
14780
14876
 
14781
14877
  Object.defineProperty(exports, "__esModule", {
@@ -14800,7 +14896,8 @@ function toString(input) {
14800
14896
  }
14801
14897
 
14802
14898
  module.exports = exports.default;
14803
- },{}],168:[function(require,module,exports){
14899
+ module.exports.default = exports.default;
14900
+ },{}],170:[function(require,module,exports){
14804
14901
  "use strict";
14805
14902
 
14806
14903
  Object.defineProperty(exports, "__esModule", {
@@ -14818,7 +14915,8 @@ function whitelist(str, chars) {
14818
14915
  }
14819
14916
 
14820
14917
  module.exports = exports.default;
14821
- },{"./util/assertString":164}],169:[function(require,module,exports){
14918
+ module.exports.default = exports.default;
14919
+ },{"./util/assertString":166}],171:[function(require,module,exports){
14822
14920
  module.exports = extend
14823
14921
 
14824
14922
  var hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -14839,7 +14937,7 @@ function extend() {
14839
14937
  return target
14840
14938
  }
14841
14939
 
14842
- },{}],170:[function(require,module,exports){
14940
+ },{}],172:[function(require,module,exports){
14843
14941
  "use strict";
14844
14942
 
14845
14943
  module.exports = {
@@ -14901,7 +14999,7 @@ module.exports = {
14901
14999
 
14902
15000
  };
14903
15001
 
14904
- },{}],171:[function(require,module,exports){
15002
+ },{}],173:[function(require,module,exports){
14905
15003
  /*jshint maxlen: false*/
14906
15004
 
14907
15005
  var validator = require("validator");
@@ -15032,25 +15130,39 @@ var FormatValidators = {
15032
15130
 
15033
15131
  module.exports = FormatValidators;
15034
15132
 
15035
- },{"validator":91}],172:[function(require,module,exports){
15133
+ },{"validator":93}],174:[function(require,module,exports){
15036
15134
  "use strict";
15037
15135
 
15038
15136
  var FormatValidators = require("./FormatValidators"),
15039
15137
  Report = require("./Report"),
15040
15138
  Utils = require("./Utils");
15041
15139
 
15140
+ var shouldSkipValidate = function (options, errors) {
15141
+ return options &&
15142
+ Array.isArray(options.includeErrors) &&
15143
+ options.includeErrors.length > 0 &&
15144
+ !errors.some(function (err) { return options.includeErrors.includes(err);});
15145
+ };
15146
+
15042
15147
  var JsonValidators = {
15043
15148
  multipleOf: function (report, schema, json) {
15044
15149
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.1.1.2
15150
+ if (shouldSkipValidate(this.validateOptions, ["MULTIPLE_OF"])) {
15151
+ return;
15152
+ }
15045
15153
  if (typeof json !== "number") {
15046
15154
  return;
15047
15155
  }
15156
+
15048
15157
  if (Utils.whatIs(json / schema.multipleOf) !== "integer") {
15049
15158
  report.addError("MULTIPLE_OF", [json, schema.multipleOf], null, schema);
15050
15159
  }
15051
15160
  },
15052
15161
  maximum: function (report, schema, json) {
15053
15162
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.1.2.2
15163
+ if (shouldSkipValidate(this.validateOptions, ["MAXIMUM", "MAXIMUM_EXCLUSIVE"])) {
15164
+ return;
15165
+ }
15054
15166
  if (typeof json !== "number") {
15055
15167
  return;
15056
15168
  }
@@ -15069,6 +15181,9 @@ var JsonValidators = {
15069
15181
  },
15070
15182
  minimum: function (report, schema, json) {
15071
15183
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.1.3.2
15184
+ if (shouldSkipValidate(this.validateOptions, ["MINIMUM", "MINIMUM_EXCLUSIVE"])) {
15185
+ return;
15186
+ }
15072
15187
  if (typeof json !== "number") {
15073
15188
  return;
15074
15189
  }
@@ -15087,6 +15202,9 @@ var JsonValidators = {
15087
15202
  },
15088
15203
  maxLength: function (report, schema, json) {
15089
15204
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.2.1.2
15205
+ if (shouldSkipValidate(this.validateOptions, ["MAX_LENGTH"])) {
15206
+ return;
15207
+ }
15090
15208
  if (typeof json !== "string") {
15091
15209
  return;
15092
15210
  }
@@ -15096,6 +15214,9 @@ var JsonValidators = {
15096
15214
  },
15097
15215
  minLength: function (report, schema, json) {
15098
15216
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.2.2.2
15217
+ if (shouldSkipValidate(this.validateOptions, ["MIN_LENGTH"])) {
15218
+ return;
15219
+ }
15099
15220
  if (typeof json !== "string") {
15100
15221
  return;
15101
15222
  }
@@ -15105,6 +15226,9 @@ var JsonValidators = {
15105
15226
  },
15106
15227
  pattern: function (report, schema, json) {
15107
15228
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.2.3.2
15229
+ if (shouldSkipValidate(this.validateOptions, ["PATTERN"])) {
15230
+ return;
15231
+ }
15108
15232
  if (typeof json !== "string") {
15109
15233
  return;
15110
15234
  }
@@ -15114,6 +15238,9 @@ var JsonValidators = {
15114
15238
  },
15115
15239
  additionalItems: function (report, schema, json) {
15116
15240
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.3.1.2
15241
+ if (shouldSkipValidate(this.validateOptions, ["ARRAY_ADDITIONAL_ITEMS"])) {
15242
+ return;
15243
+ }
15117
15244
  if (!Array.isArray(json)) {
15118
15245
  return;
15119
15246
  }
@@ -15130,6 +15257,9 @@ var JsonValidators = {
15130
15257
  },
15131
15258
  maxItems: function (report, schema, json) {
15132
15259
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.3.2.2
15260
+ if (shouldSkipValidate(this.validateOptions, ["ARRAY_LENGTH_LONG"])) {
15261
+ return;
15262
+ }
15133
15263
  if (!Array.isArray(json)) {
15134
15264
  return;
15135
15265
  }
@@ -15139,6 +15269,9 @@ var JsonValidators = {
15139
15269
  },
15140
15270
  minItems: function (report, schema, json) {
15141
15271
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.3.3.2
15272
+ if (shouldSkipValidate(this.validateOptions, ["ARRAY_LENGTH_SHORT"])) {
15273
+ return;
15274
+ }
15142
15275
  if (!Array.isArray(json)) {
15143
15276
  return;
15144
15277
  }
@@ -15148,6 +15281,9 @@ var JsonValidators = {
15148
15281
  },
15149
15282
  uniqueItems: function (report, schema, json) {
15150
15283
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.3.4.2
15284
+ if (shouldSkipValidate(this.validateOptions, ["ARRAY_UNIQUE"])) {
15285
+ return;
15286
+ }
15151
15287
  if (!Array.isArray(json)) {
15152
15288
  return;
15153
15289
  }
@@ -15160,6 +15296,9 @@ var JsonValidators = {
15160
15296
  },
15161
15297
  maxProperties: function (report, schema, json) {
15162
15298
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.4.1.2
15299
+ if (shouldSkipValidate(this.validateOptions, ["OBJECT_PROPERTIES_MAXIMUM"])) {
15300
+ return;
15301
+ }
15163
15302
  if (Utils.whatIs(json) !== "object") {
15164
15303
  return;
15165
15304
  }
@@ -15170,6 +15309,9 @@ var JsonValidators = {
15170
15309
  },
15171
15310
  minProperties: function (report, schema, json) {
15172
15311
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.4.2.2
15312
+ if (shouldSkipValidate(this.validateOptions, ["OBJECT_PROPERTIES_MINIMUM"])) {
15313
+ return;
15314
+ }
15173
15315
  if (Utils.whatIs(json) !== "object") {
15174
15316
  return;
15175
15317
  }
@@ -15180,6 +15322,9 @@ var JsonValidators = {
15180
15322
  },
15181
15323
  required: function (report, schema, json) {
15182
15324
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.4.3.2
15325
+ if (shouldSkipValidate(this.validateOptions, ["OBJECT_MISSING_REQUIRED_PROPERTY"])) {
15326
+ return;
15327
+ }
15183
15328
  if (Utils.whatIs(json) !== "object") {
15184
15329
  return;
15185
15330
  }
@@ -15205,6 +15350,9 @@ var JsonValidators = {
15205
15350
  },
15206
15351
  properties: function (report, schema, json) {
15207
15352
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.4.4.2
15353
+ if (shouldSkipValidate(this.validateOptions, ["OBJECT_ADDITIONAL_PROPERTIES"])) {
15354
+ return;
15355
+ }
15208
15356
  if (Utils.whatIs(json) !== "object") {
15209
15357
  return;
15210
15358
  }
@@ -15253,6 +15401,9 @@ var JsonValidators = {
15253
15401
  },
15254
15402
  dependencies: function (report, schema, json) {
15255
15403
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.4.5.2
15404
+ if (shouldSkipValidate(this.validateOptions, ["OBJECT_DEPENDENCY_KEY"])) {
15405
+ return;
15406
+ }
15256
15407
  if (Utils.whatIs(json) !== "object") {
15257
15408
  return;
15258
15409
  }
@@ -15283,6 +15434,9 @@ var JsonValidators = {
15283
15434
  },
15284
15435
  enum: function (report, schema, json) {
15285
15436
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.5.1.2
15437
+ if (shouldSkipValidate(this.validateOptions, ["ENUM_CASE_MISMATCH", "ENUM_MISMATCH"])) {
15438
+ return;
15439
+ }
15286
15440
  var match = false,
15287
15441
  caseInsensitiveMatch = false,
15288
15442
  idx = schema.enum.length;
@@ -15302,6 +15456,9 @@ var JsonValidators = {
15302
15456
  },
15303
15457
  type: function (report, schema, json) {
15304
15458
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.5.2.2
15459
+ if (shouldSkipValidate(this.validateOptions, ["INVALID_TYPE"])) {
15460
+ return;
15461
+ }
15305
15462
  var jsonType = Utils.whatIs(json);
15306
15463
  if (typeof schema.type === "string") {
15307
15464
  if (jsonType !== schema.type && (jsonType !== "integer" || schema.type !== "number")) {
@@ -15374,6 +15531,9 @@ var JsonValidators = {
15374
15531
  // http://json-schema.org/latest/json-schema-validation.html#rfc.section.7.2
15375
15532
  var formatValidatorFn = FormatValidators[schema.format];
15376
15533
  if (typeof formatValidatorFn === "function") {
15534
+ if (shouldSkipValidate(this.validateOptions, ["INVALID_FORMAT"])) {
15535
+ return;
15536
+ }
15377
15537
  if (formatValidatorFn.length === 2) {
15378
15538
  // async - need to clone the path here, because it will change by the time async function reports back
15379
15539
  var pathBeforeAsync = Utils.clone(report.path);
@@ -15411,13 +15571,13 @@ var recurseArray = function (report, schema, json) {
15411
15571
  while (idx--) {
15412
15572
  // equal to doesn't make sense here
15413
15573
  if (idx < schema.items.length) {
15414
- report.path.push(idx.toString());
15574
+ report.path.push(idx);
15415
15575
  exports.validate.call(this, report, schema.items[idx], json[idx]);
15416
15576
  report.path.pop();
15417
15577
  } else {
15418
15578
  // might be boolean, so check that it's an object
15419
15579
  if (typeof schema.additionalItems === "object") {
15420
- report.path.push(idx.toString());
15580
+ report.path.push(idx);
15421
15581
  exports.validate.call(this, report, schema.additionalItems, json[idx]);
15422
15582
  report.path.pop();
15423
15583
  }
@@ -15429,7 +15589,7 @@ var recurseArray = function (report, schema, json) {
15429
15589
  // If items is a schema, then the child instance must be valid against this schema,
15430
15590
  // regardless of its index, and regardless of the value of "additionalItems".
15431
15591
  while (idx--) {
15432
- report.path.push(idx.toString());
15592
+ report.path.push(idx);
15433
15593
  exports.validate.call(this, report, schema.items, json[idx]);
15434
15594
  report.path.pop();
15435
15595
  }
@@ -15591,7 +15751,7 @@ exports.validate = function (report, schema, json) {
15591
15751
 
15592
15752
  };
15593
15753
 
15594
- },{"./FormatValidators":171,"./Report":174,"./Utils":178}],173:[function(require,module,exports){
15754
+ },{"./FormatValidators":173,"./Report":176,"./Utils":180}],175:[function(require,module,exports){
15595
15755
  // Number.isFinite polyfill
15596
15756
  // http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite
15597
15757
  if (typeof Number.isFinite !== "function") {
@@ -15609,7 +15769,7 @@ if (typeof Number.isFinite !== "function") {
15609
15769
  };
15610
15770
  }
15611
15771
 
15612
- },{}],174:[function(require,module,exports){
15772
+ },{}],176:[function(require,module,exports){
15613
15773
  (function (process){
15614
15774
  "use strict";
15615
15775
 
@@ -15666,6 +15826,16 @@ Report.prototype.addAsyncTask = function (fn, args, asyncTaskResultProcessFn) {
15666
15826
  this.asyncTasks.push([fn, args, asyncTaskResultProcessFn]);
15667
15827
  };
15668
15828
 
15829
+ Report.prototype.getAncestor = function (id) {
15830
+ if (!this.parentReport) {
15831
+ return undefined;
15832
+ }
15833
+ if (this.parentReport.getSchemaId() === id) {
15834
+ return this.parentReport;
15835
+ }
15836
+ return this.parentReport.getAncestor(id);
15837
+ };
15838
+
15669
15839
  /**
15670
15840
  *
15671
15841
  * @param {*} timeout
@@ -15739,6 +15909,7 @@ Report.prototype.getPath = function (returnPathAsString) {
15739
15909
  if (returnPathAsString !== true) {
15740
15910
  // Sanitize the path segments (http://tools.ietf.org/html/rfc6901#section-4)
15741
15911
  path = "#/" + path.map(function (segment) {
15912
+ segment = segment.toString();
15742
15913
 
15743
15914
  if (Utils.isAbsoluteUri(segment)) {
15744
15915
  return "uri(" + segment + ")";
@@ -15901,7 +16072,7 @@ Report.prototype.addCustomError = function (errorCode, errorMessage, params, sub
15901
16072
  module.exports = Report;
15902
16073
 
15903
16074
  }).call(this,require('_process'))
15904
- },{"./Errors":170,"./Utils":178,"_process":67,"lodash.get":64}],175:[function(require,module,exports){
16075
+ },{"./Errors":172,"./Utils":180,"_process":69,"lodash.get":66}],177:[function(require,module,exports){
15905
16076
  "use strict";
15906
16077
 
15907
16078
  var isequal = require("lodash.isequal");
@@ -16042,16 +16213,23 @@ exports.getSchemaByUri = function (report, uri, root) {
16042
16213
 
16043
16214
  report.path.push(remotePath);
16044
16215
 
16045
- var remoteReport = new Report(report);
16046
- if (SchemaCompilation.compileSchema.call(this, remoteReport, result)) {
16047
- var savedOptions = this.options;
16048
- try {
16049
- // If custom validationOptions were provided to setRemoteReference(),
16050
- // use them instead of the default options
16051
- this.options = result.__$validationOptions || this.options;
16052
- SchemaValidation.validateSchema.call(this, remoteReport, result);
16053
- } finally {
16054
- this.options = savedOptions;
16216
+ var remoteReport;
16217
+
16218
+ var anscestorReport = report.getAncestor(result.id);
16219
+ if (anscestorReport) {
16220
+ remoteReport = anscestorReport;
16221
+ } else {
16222
+ remoteReport = new Report(report);
16223
+ if (SchemaCompilation.compileSchema.call(this, remoteReport, result)) {
16224
+ var savedOptions = this.options;
16225
+ try {
16226
+ // If custom validationOptions were provided to setRemoteReference(),
16227
+ // use them instead of the default options
16228
+ this.options = result.__$validationOptions || this.options;
16229
+ SchemaValidation.validateSchema.call(this, remoteReport, result);
16230
+ } finally {
16231
+ this.options = savedOptions;
16232
+ }
16055
16233
  }
16056
16234
  }
16057
16235
  var remoteReportIsValid = remoteReport.isValid();
@@ -16084,7 +16262,7 @@ exports.getSchemaByUri = function (report, uri, root) {
16084
16262
 
16085
16263
  exports.getRemotePath = getRemotePath;
16086
16264
 
16087
- },{"./Report":174,"./SchemaCompilation":176,"./SchemaValidation":177,"./Utils":178,"lodash.isequal":65}],176:[function(require,module,exports){
16265
+ },{"./Report":176,"./SchemaCompilation":178,"./SchemaValidation":179,"./Utils":180,"lodash.isequal":67}],178:[function(require,module,exports){
16088
16266
  "use strict";
16089
16267
 
16090
16268
  var Report = require("./Report");
@@ -16385,7 +16563,7 @@ exports.compileSchema = function (report, schema) {
16385
16563
 
16386
16564
  };
16387
16565
 
16388
- },{"./Report":174,"./SchemaCache":175,"./Utils":178}],177:[function(require,module,exports){
16566
+ },{"./Report":176,"./SchemaCache":177,"./Utils":180}],179:[function(require,module,exports){
16389
16567
  "use strict";
16390
16568
 
16391
16569
  var FormatValidators = require("./FormatValidators"),
@@ -17006,7 +17184,7 @@ exports.validateSchema = function (report, schema) {
17006
17184
  return isValid;
17007
17185
  };
17008
17186
 
17009
- },{"./FormatValidators":171,"./JsonValidation":172,"./Report":174,"./Utils":178}],178:[function(require,module,exports){
17187
+ },{"./FormatValidators":173,"./JsonValidation":174,"./Report":176,"./Utils":180}],180:[function(require,module,exports){
17010
17188
  "use strict";
17011
17189
 
17012
17190
  require("core-js/es6/symbol");
@@ -17284,7 +17462,7 @@ exports.ucs2decode = function (string) {
17284
17462
  };
17285
17463
  /*jshint +W016*/
17286
17464
 
17287
- },{"core-js/es6/symbol":6}],179:[function(require,module,exports){
17465
+ },{"core-js/es6/symbol":6}],181:[function(require,module,exports){
17288
17466
  (function (process){
17289
17467
  "use strict";
17290
17468
 
@@ -17697,7 +17875,7 @@ ZSchema.jsonSymbol = Utils.jsonSymbol;
17697
17875
  module.exports = ZSchema;
17698
17876
 
17699
17877
  }).call(this,require('_process'))
17700
- },{"./FormatValidators":171,"./JsonValidation":172,"./Polyfills":173,"./Report":174,"./SchemaCache":175,"./SchemaCompilation":176,"./SchemaValidation":177,"./Utils":178,"./schemas/hyper-schema.json":180,"./schemas/schema.json":181,"_process":67,"lodash.get":64}],180:[function(require,module,exports){
17878
+ },{"./FormatValidators":173,"./JsonValidation":174,"./Polyfills":175,"./Report":176,"./SchemaCache":177,"./SchemaCompilation":178,"./SchemaValidation":179,"./Utils":180,"./schemas/hyper-schema.json":182,"./schemas/schema.json":183,"_process":69,"lodash.get":66}],182:[function(require,module,exports){
17701
17879
  module.exports={
17702
17880
  "$schema": "http://json-schema.org/draft-04/hyper-schema#",
17703
17881
  "id": "http://json-schema.org/draft-04/hyper-schema#",
@@ -17857,7 +18035,7 @@ module.exports={
17857
18035
  }
17858
18036
 
17859
18037
 
17860
- },{}],181:[function(require,module,exports){
18038
+ },{}],183:[function(require,module,exports){
17861
18039
  module.exports={
17862
18040
  "id": "http://json-schema.org/draft-04/schema#",
17863
18041
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -18010,7 +18188,7 @@ module.exports={
18010
18188
  "default": {}
18011
18189
  }
18012
18190
 
18013
- },{}],182:[function(require,module,exports){
18191
+ },{}],184:[function(require,module,exports){
18014
18192
  "use strict";
18015
18193
 
18016
18194
  module.exports = {
@@ -18110,7 +18288,7 @@ module.exports = {
18110
18288
  ]
18111
18289
  };
18112
18290
 
18113
- },{}],183:[function(require,module,exports){
18291
+ },{}],185:[function(require,module,exports){
18114
18292
  "use strict";
18115
18293
 
18116
18294
  module.exports = {
@@ -18175,7 +18353,7 @@ module.exports = {
18175
18353
  ]
18176
18354
  };
18177
18355
 
18178
- },{}],184:[function(require,module,exports){
18356
+ },{}],186:[function(require,module,exports){
18179
18357
  "use strict";
18180
18358
 
18181
18359
  module.exports = {
@@ -18248,7 +18426,7 @@ module.exports = {
18248
18426
  ]
18249
18427
  };
18250
18428
 
18251
- },{}],185:[function(require,module,exports){
18429
+ },{}],187:[function(require,module,exports){
18252
18430
  "use strict";
18253
18431
 
18254
18432
  //Implement new 'shouldFail' keyword
@@ -18311,7 +18489,7 @@ module.exports = {
18311
18489
  ]
18312
18490
  };
18313
18491
 
18314
- },{}],186:[function(require,module,exports){
18492
+ },{}],188:[function(require,module,exports){
18315
18493
  "use strict";
18316
18494
 
18317
18495
  module.exports = {
@@ -18339,7 +18517,7 @@ module.exports = {
18339
18517
  ]
18340
18518
  };
18341
18519
 
18342
- },{}],187:[function(require,module,exports){
18520
+ },{}],189:[function(require,module,exports){
18343
18521
  "use strict";
18344
18522
 
18345
18523
  module.exports = {
@@ -18364,7 +18542,43 @@ module.exports = {
18364
18542
  ]
18365
18543
  };
18366
18544
 
18367
- },{}],188:[function(require,module,exports){
18545
+ },{}],190:[function(require,module,exports){
18546
+ "use strict";
18547
+
18548
+ module.exports = {
18549
+ description: "Report error paths with integer array indices",
18550
+ options: {
18551
+ reportPathAsArray: true
18552
+ },
18553
+ tests: [
18554
+ {
18555
+ description: "should fail validation and error path should contain integer array index",
18556
+ schema: {
18557
+ "type": "object",
18558
+ "properties": {
18559
+ "list": {
18560
+ "type": "array",
18561
+ "items": {
18562
+ "type": "string"
18563
+ }
18564
+ }
18565
+ }
18566
+ },
18567
+ data: {
18568
+ "list": [
18569
+ 123
18570
+ ]
18571
+ },
18572
+ valid: false,
18573
+ validateSchemaOnly: false,
18574
+ after: function (err) {
18575
+ expect(err[0].path).toEqual(["list", 0]);
18576
+ }
18577
+ }
18578
+ ]
18579
+ };
18580
+
18581
+ },{}],191:[function(require,module,exports){
18368
18582
  "use strict";
18369
18583
 
18370
18584
  module.exports = {
@@ -18437,7 +18651,7 @@ module.exports = {
18437
18651
  ]
18438
18652
  };
18439
18653
 
18440
- },{}],189:[function(require,module,exports){
18654
+ },{}],192:[function(require,module,exports){
18441
18655
  "use strict";
18442
18656
 
18443
18657
  module.exports = {
@@ -18465,7 +18679,7 @@ module.exports = {
18465
18679
  ]
18466
18680
  };
18467
18681
 
18468
- },{}],190:[function(require,module,exports){
18682
+ },{}],193:[function(require,module,exports){
18469
18683
  "use strict";
18470
18684
 
18471
18685
  module.exports = {
@@ -18493,7 +18707,7 @@ module.exports = {
18493
18707
  ]
18494
18708
  };
18495
18709
 
18496
- },{}],191:[function(require,module,exports){
18710
+ },{}],194:[function(require,module,exports){
18497
18711
  "use strict";
18498
18712
 
18499
18713
  module.exports = {
@@ -18521,7 +18735,7 @@ module.exports = {
18521
18735
  ]
18522
18736
  };
18523
18737
 
18524
- },{}],192:[function(require,module,exports){
18738
+ },{}],195:[function(require,module,exports){
18525
18739
  "use strict";
18526
18740
 
18527
18741
  module.exports = {
@@ -18549,7 +18763,7 @@ module.exports = {
18549
18763
  ]
18550
18764
  };
18551
18765
 
18552
- },{}],193:[function(require,module,exports){
18766
+ },{}],196:[function(require,module,exports){
18553
18767
  "use strict";
18554
18768
 
18555
18769
  module.exports = {
@@ -18577,7 +18791,7 @@ module.exports = {
18577
18791
  ]
18578
18792
  };
18579
18793
 
18580
- },{}],194:[function(require,module,exports){
18794
+ },{}],197:[function(require,module,exports){
18581
18795
  "use strict";
18582
18796
 
18583
18797
  module.exports = {
@@ -18633,7 +18847,7 @@ module.exports = {
18633
18847
  ]
18634
18848
  };
18635
18849
 
18636
- },{}],195:[function(require,module,exports){
18850
+ },{}],198:[function(require,module,exports){
18637
18851
  "use strict";
18638
18852
 
18639
18853
  module.exports = {
@@ -18645,39 +18859,152 @@ module.exports = {
18645
18859
  tests: [
18646
18860
  {
18647
18861
  schema: {
18648
- "$schema": "http://doesnt-exists.org/draft-04/schema",
18862
+ "$schema": "http://doesnt-exists.org/draft-04/schema",
18863
+ },
18864
+ description: "should pass schema validation because link is to http schema",
18865
+ valid: true
18866
+ },
18867
+ {
18868
+ schema: {
18869
+ "definitions": {
18870
+ "a": {"type": "integer"},
18871
+ "b": {"$ref": "#/definitions/a"},
18872
+ "c": {"$ref": "#/definitions/b"}
18873
+ },
18874
+ "$ref": "#/definitions/c"
18875
+ },
18876
+ description: "should pass schema validation because definitions are resolvable",
18877
+ valid: true
18878
+ },
18879
+ {
18880
+ schema: {
18881
+ "definitions": {
18882
+ "a": {"type": "integer"},
18883
+ "b": {"$ref": "#/definitions/aaa"},
18884
+ "c": {"$ref": "#/definitions/b"}
18885
+ },
18886
+ "$ref": "#/definitions/c"
18887
+ },
18888
+ description: "should fail schema validation because definitions are not resolvable",
18889
+ valid: false
18890
+ }
18891
+ ]
18892
+ };
18893
+
18894
+ },{}],199:[function(require,module,exports){
18895
+ "use strict";
18896
+
18897
+ module.exports = {
18898
+ description: "includeErrors - Validate only against specified errors",
18899
+ options: {
18900
+ breakOnFirstError: false,
18901
+ assumeAdditional: true
18902
+ },
18903
+ tests: [
18904
+ {
18905
+ schema: {
18906
+ "type": "object",
18907
+ "properties": {
18908
+ "hello": {
18909
+ "type": "number"
18910
+ }
18911
+ }
18912
+ },
18913
+ data: {
18914
+ hello: "world"
18915
+ },
18916
+ validateOptions: {
18917
+ includeErrors: ["INVALID_TYPE"]
18918
+ },
18919
+ description: "should fail validation when the specified error is present",
18920
+ valid: false
18921
+ },
18922
+ {
18923
+ schema: {
18924
+ "type": "object",
18925
+ "properties": {
18926
+ "hello": {
18927
+ "type": "number"
18928
+ }
18929
+ }
18930
+ },
18931
+ data: {
18932
+ hello: "world"
18933
+ },
18934
+ validateOptions: {
18935
+ includeErrors: ["OBJECT_ADDITIONAL_PROPERTIES"]
18936
+ },
18937
+ description: "should pass validation when the specified error is not present",
18938
+ valid: true
18939
+ },
18940
+ {
18941
+ schema: {
18942
+ "type": "object",
18943
+ "properties": {
18944
+ "hello": {
18945
+ "type": "number"
18946
+ }
18947
+ }
18649
18948
  },
18650
- description: "should pass schema validation because link is to http schema",
18651
- valid: true
18949
+ data: {
18950
+ hello: "world",
18951
+ extra: "extra"
18952
+ },
18953
+ validateOptions: {
18954
+ includeErrors: ["INVALID_TYPE"]
18955
+ },
18956
+ description: "should fail validation when the specified error is present only for that error",
18957
+ valid: false,
18958
+ after: function(errs) {
18959
+ expect(errs.length).toBe(1);
18960
+ expect(errs[0].code).toBe("INVALID_TYPE");
18961
+ }
18652
18962
  },
18653
18963
  {
18654
18964
  schema: {
18655
- "definitions": {
18656
- "a": {"type": "integer"},
18657
- "b": {"$ref": "#/definitions/a"},
18658
- "c": {"$ref": "#/definitions/b"}
18659
- },
18660
- "$ref": "#/definitions/c"
18965
+ "type": "object",
18966
+ "properties": {
18967
+ "hello": {
18968
+ "type": "number"
18969
+ }
18970
+ }
18661
18971
  },
18662
- description: "should pass schema validation because definitions are resolvable",
18663
- valid: true
18972
+ data: {
18973
+ hello: "world",
18974
+ extra: "extra"
18975
+ },
18976
+ description: "should fail validation for all errors when no `includeErrors` array is provided.",
18977
+ valid: false,
18978
+ after: function(errs) {
18979
+ expect(errs.length).toBe(2);
18980
+ }
18664
18981
  },
18665
18982
  {
18666
18983
  schema: {
18667
- "definitions": {
18668
- "a": {"type": "integer"},
18669
- "b": {"$ref": "#/definitions/aaa"},
18670
- "c": {"$ref": "#/definitions/b"}
18671
- },
18672
- "$ref": "#/definitions/c"
18984
+ "type": "object",
18985
+ "properties": {
18986
+ "hello": {
18987
+ "type": "number"
18988
+ }
18989
+ }
18673
18990
  },
18674
- description: "should fail schema validation because definitions are not resolvable",
18675
- valid: false
18991
+ data: {
18992
+ hello: "world",
18993
+ extra: "extra"
18994
+ },
18995
+ validateOptions: {
18996
+ includeErrors: []
18997
+ },
18998
+ description: "should fail validation for all errors when empty array is provided.",
18999
+ valid: false,
19000
+ after: function(errs) {
19001
+ expect(errs.length).toBe(2);
19002
+ }
18676
19003
  }
18677
19004
  ]
18678
19005
  };
18679
19006
 
18680
- },{}],196:[function(require,module,exports){
19007
+ },{}],200:[function(require,module,exports){
18681
19008
  "use strict";
18682
19009
 
18683
19010
  module.exports = {
@@ -18694,7 +19021,7 @@ module.exports = {
18694
19021
  ]
18695
19022
  };
18696
19023
 
18697
- },{}],197:[function(require,module,exports){
19024
+ },{}],201:[function(require,module,exports){
18698
19025
  "use strict";
18699
19026
 
18700
19027
  module.exports = {
@@ -18716,7 +19043,7 @@ module.exports = {
18716
19043
  ]
18717
19044
  };
18718
19045
 
18719
- },{}],198:[function(require,module,exports){
19046
+ },{}],202:[function(require,module,exports){
18720
19047
  "use strict";
18721
19048
 
18722
19049
  module.exports = {
@@ -18734,7 +19061,7 @@ module.exports = {
18734
19061
  ]
18735
19062
  };
18736
19063
 
18737
- },{}],199:[function(require,module,exports){
19064
+ },{}],203:[function(require,module,exports){
18738
19065
  "use strict";
18739
19066
 
18740
19067
  module.exports = {
@@ -18803,7 +19130,7 @@ module.exports = {
18803
19130
  ]
18804
19131
  };
18805
19132
 
18806
- },{}],200:[function(require,module,exports){
19133
+ },{}],204:[function(require,module,exports){
18807
19134
  "use strict";
18808
19135
 
18809
19136
  module.exports = {
@@ -18818,7 +19145,7 @@ module.exports = {
18818
19145
  ]
18819
19146
  };
18820
19147
 
18821
- },{}],201:[function(require,module,exports){
19148
+ },{}],205:[function(require,module,exports){
18822
19149
  "use strict";
18823
19150
 
18824
19151
  module.exports = {
@@ -18842,7 +19169,7 @@ module.exports = {
18842
19169
  ]
18843
19170
  };
18844
19171
 
18845
- },{}],202:[function(require,module,exports){
19172
+ },{}],206:[function(require,module,exports){
18846
19173
  "use strict";
18847
19174
 
18848
19175
  module.exports = {
@@ -18917,7 +19244,7 @@ module.exports = {
18917
19244
  ]
18918
19245
  };
18919
19246
 
18920
- },{}],203:[function(require,module,exports){
19247
+ },{}],207:[function(require,module,exports){
18921
19248
  "use strict";
18922
19249
 
18923
19250
  module.exports = {
@@ -18938,7 +19265,7 @@ module.exports = {
18938
19265
  ]
18939
19266
  };
18940
19267
 
18941
- },{}],204:[function(require,module,exports){
19268
+ },{}],208:[function(require,module,exports){
18942
19269
  "use strict";
18943
19270
 
18944
19271
  module.exports = {
@@ -18965,7 +19292,7 @@ module.exports = {
18965
19292
  ]
18966
19293
  };
18967
19294
 
18968
- },{}],205:[function(require,module,exports){
19295
+ },{}],209:[function(require,module,exports){
18969
19296
  "use strict";
18970
19297
 
18971
19298
  var REF_NAME = "int.json";
@@ -19012,7 +19339,7 @@ module.exports = {
19012
19339
  ]
19013
19340
  };
19014
19341
 
19015
- },{}],206:[function(require,module,exports){
19342
+ },{}],210:[function(require,module,exports){
19016
19343
  "use strict";
19017
19344
 
19018
19345
  module.exports = {
@@ -19185,7 +19512,7 @@ module.exports = {
19185
19512
  ]
19186
19513
  };
19187
19514
 
19188
- },{}],207:[function(require,module,exports){
19515
+ },{}],211:[function(require,module,exports){
19189
19516
  "use strict";
19190
19517
 
19191
19518
  module.exports = {
@@ -19230,7 +19557,7 @@ module.exports = {
19230
19557
  ]
19231
19558
  };
19232
19559
 
19233
- },{}],208:[function(require,module,exports){
19560
+ },{}],212:[function(require,module,exports){
19234
19561
  "use strict";
19235
19562
 
19236
19563
  module.exports = {
@@ -19273,7 +19600,7 @@ module.exports = {
19273
19600
  ]
19274
19601
  };
19275
19602
 
19276
- },{}],209:[function(require,module,exports){
19603
+ },{}],213:[function(require,module,exports){
19277
19604
  "use strict";
19278
19605
 
19279
19606
  var schema1 = {
@@ -19357,7 +19684,7 @@ module.exports = {
19357
19684
  ]
19358
19685
  };
19359
19686
 
19360
- },{}],210:[function(require,module,exports){
19687
+ },{}],214:[function(require,module,exports){
19361
19688
  module.exports = {
19362
19689
  description: "Issue #139 - add schema id if present to erro message via addError method",
19363
19690
  tests: [
@@ -19416,7 +19743,7 @@ module.exports = {
19416
19743
  ]
19417
19744
  };
19418
19745
 
19419
- },{}],211:[function(require,module,exports){
19746
+ },{}],215:[function(require,module,exports){
19420
19747
  "use strict";
19421
19748
 
19422
19749
  module.exports = {
@@ -19434,7 +19761,7 @@ module.exports = {
19434
19761
  ]
19435
19762
  };
19436
19763
 
19437
- },{}],212:[function(require,module,exports){
19764
+ },{}],216:[function(require,module,exports){
19438
19765
  "use strict";
19439
19766
 
19440
19767
  module.exports = {
@@ -19464,7 +19791,7 @@ module.exports = {
19464
19791
  ]
19465
19792
  };
19466
19793
 
19467
- },{}],213:[function(require,module,exports){
19794
+ },{}],217:[function(require,module,exports){
19468
19795
  "use strict";
19469
19796
 
19470
19797
  module.exports = {
@@ -19492,7 +19819,7 @@ module.exports = {
19492
19819
  ]
19493
19820
  };
19494
19821
 
19495
- },{}],214:[function(require,module,exports){
19822
+ },{}],218:[function(require,module,exports){
19496
19823
  "use strict";
19497
19824
 
19498
19825
  module.exports = {
@@ -19519,7 +19846,47 @@ module.exports = {
19519
19846
  ]
19520
19847
  };
19521
19848
 
19522
- },{}],215:[function(require,module,exports){
19849
+ },{}],219:[function(require,module,exports){
19850
+ "use strict";
19851
+ var ref1 = "http://www.example.org/schema1/#";
19852
+ var ref2 = "http://www.example.org/schema2/#";
19853
+
19854
+ var schema1 = {
19855
+ "$schema": "http://json-schema.org/draft-04/schema#",
19856
+ "id": ref1,
19857
+ "properties": {
19858
+ "prop1": {
19859
+ "$ref": ref2
19860
+ }
19861
+ }
19862
+ };
19863
+
19864
+ var schema2 = {
19865
+ "$schema": "http://json-schema.org/draft-04/schema#",
19866
+ "id": ref2,
19867
+ "properties": {
19868
+ "prop1": {
19869
+ "$ref": ref1
19870
+ }
19871
+ }
19872
+ };
19873
+
19874
+ module.exports = {
19875
+ description: "Issue #47 - references to draft4 subschema are not working",
19876
+ setup: function (validator) {
19877
+ validator.setRemoteReference(ref1, schema1);
19878
+ validator.setRemoteReference(ref2, schema2);
19879
+ },
19880
+ tests: [
19881
+ {
19882
+ description: "should pass validation #1",
19883
+ schema: schema1,
19884
+ data: {},
19885
+ valid: true
19886
+ }
19887
+ ]
19888
+ };
19889
+ },{}],220:[function(require,module,exports){
19523
19890
  "use strict";
19524
19891
 
19525
19892
  var testAsync = true;
@@ -19568,7 +19935,7 @@ module.exports = {
19568
19935
  ]
19569
19936
  };
19570
19937
 
19571
- },{}],216:[function(require,module,exports){
19938
+ },{}],221:[function(require,module,exports){
19572
19939
  "use strict";
19573
19940
 
19574
19941
  module.exports = {
@@ -19644,7 +20011,7 @@ module.exports = {
19644
20011
  ]
19645
20012
  };
19646
20013
 
19647
- },{}],217:[function(require,module,exports){
20014
+ },{}],222:[function(require,module,exports){
19648
20015
  "use strict";
19649
20016
 
19650
20017
  module.exports = {
@@ -19734,7 +20101,7 @@ module.exports = {
19734
20101
  ]
19735
20102
  };
19736
20103
 
19737
- },{}],218:[function(require,module,exports){
20104
+ },{}],223:[function(require,module,exports){
19738
20105
  "use strict";
19739
20106
 
19740
20107
  module.exports = {
@@ -19796,7 +20163,7 @@ module.exports = {
19796
20163
  ]
19797
20164
  };
19798
20165
 
19799
- },{}],219:[function(require,module,exports){
20166
+ },{}],224:[function(require,module,exports){
19800
20167
  "use strict";
19801
20168
 
19802
20169
  module.exports = {
@@ -19832,7 +20199,7 @@ module.exports = {
19832
20199
  ]
19833
20200
  };
19834
20201
 
19835
- },{}],220:[function(require,module,exports){
20202
+ },{}],225:[function(require,module,exports){
19836
20203
  "use strict";
19837
20204
 
19838
20205
  module.exports = {
@@ -19922,7 +20289,7 @@ module.exports = {
19922
20289
  ]
19923
20290
  };
19924
20291
 
19925
- },{}],221:[function(require,module,exports){
20292
+ },{}],226:[function(require,module,exports){
19926
20293
  "use strict";
19927
20294
 
19928
20295
  module.exports = {
@@ -19947,7 +20314,7 @@ module.exports = {
19947
20314
  ]
19948
20315
  };
19949
20316
 
19950
- },{}],222:[function(require,module,exports){
20317
+ },{}],227:[function(require,module,exports){
19951
20318
  "use strict";
19952
20319
 
19953
20320
  module.exports = {
@@ -20023,7 +20390,7 @@ module.exports = {
20023
20390
  ]
20024
20391
  };
20025
20392
 
20026
- },{}],223:[function(require,module,exports){
20393
+ },{}],228:[function(require,module,exports){
20027
20394
  "use strict";
20028
20395
 
20029
20396
  module.exports = {
@@ -20136,7 +20503,7 @@ module.exports = {
20136
20503
  ]
20137
20504
  };
20138
20505
 
20139
- },{}],224:[function(require,module,exports){
20506
+ },{}],229:[function(require,module,exports){
20140
20507
  "use strict";
20141
20508
 
20142
20509
  module.exports = {
@@ -20316,7 +20683,7 @@ module.exports = {
20316
20683
  ]
20317
20684
  };
20318
20685
 
20319
- },{}],225:[function(require,module,exports){
20686
+ },{}],230:[function(require,module,exports){
20320
20687
  "use strict";
20321
20688
 
20322
20689
  module.exports = {
@@ -20363,7 +20730,7 @@ module.exports = {
20363
20730
  ]
20364
20731
  };
20365
20732
 
20366
- },{}],226:[function(require,module,exports){
20733
+ },{}],231:[function(require,module,exports){
20367
20734
  "use strict";
20368
20735
 
20369
20736
  var resourceObject = {
@@ -20659,7 +21026,7 @@ module.exports = {
20659
21026
  ]
20660
21027
  };
20661
21028
 
20662
- },{}],227:[function(require,module,exports){
21029
+ },{}],232:[function(require,module,exports){
20663
21030
  "use strict";
20664
21031
 
20665
21032
  var draft4 = require("./files/Issue47/draft4.json");
@@ -20688,7 +21055,7 @@ module.exports = {
20688
21055
  ]
20689
21056
  };
20690
21057
 
20691
- },{"./files/Issue47/draft4.json":251,"./files/Issue47/sample.json":252,"./files/Issue47/swagger_draft.json":253,"./files/Issue47/swagger_draft_modified.json":254}],228:[function(require,module,exports){
21058
+ },{"./files/Issue47/draft4.json":256,"./files/Issue47/sample.json":257,"./files/Issue47/swagger_draft.json":258,"./files/Issue47/swagger_draft_modified.json":259}],233:[function(require,module,exports){
20692
21059
  "use strict";
20693
21060
 
20694
21061
  module.exports = {
@@ -20721,7 +21088,7 @@ module.exports = {
20721
21088
  ]
20722
21089
  };
20723
21090
 
20724
- },{}],229:[function(require,module,exports){
21091
+ },{}],234:[function(require,module,exports){
20725
21092
  "use strict";
20726
21093
 
20727
21094
  module.exports = {
@@ -20739,7 +21106,7 @@ module.exports = {
20739
21106
  ]
20740
21107
  };
20741
21108
 
20742
- },{}],230:[function(require,module,exports){
21109
+ },{}],235:[function(require,module,exports){
20743
21110
  "use strict";
20744
21111
 
20745
21112
  module.exports = {
@@ -20761,7 +21128,7 @@ module.exports = {
20761
21128
  ]
20762
21129
  };
20763
21130
 
20764
- },{}],231:[function(require,module,exports){
21131
+ },{}],236:[function(require,module,exports){
20765
21132
  "use strict";
20766
21133
 
20767
21134
  module.exports = {
@@ -20832,7 +21199,7 @@ module.exports = {
20832
21199
  ]
20833
21200
  };
20834
21201
 
20835
- },{}],232:[function(require,module,exports){
21202
+ },{}],237:[function(require,module,exports){
20836
21203
  "use strict";
20837
21204
 
20838
21205
  var dataTypeBaseJson = {
@@ -21517,7 +21884,7 @@ module.exports = {
21517
21884
  ]
21518
21885
  };
21519
21886
 
21520
- },{}],233:[function(require,module,exports){
21887
+ },{}],238:[function(require,module,exports){
21521
21888
  "use strict";
21522
21889
 
21523
21890
  module.exports = {
@@ -21580,7 +21947,7 @@ module.exports = {
21580
21947
  ]
21581
21948
  };
21582
21949
 
21583
- },{}],234:[function(require,module,exports){
21950
+ },{}],239:[function(require,module,exports){
21584
21951
  /*jshint -W101*/
21585
21952
 
21586
21953
  "use strict";
@@ -22157,7 +22524,7 @@ module.exports = {
22157
22524
  ]
22158
22525
  };
22159
22526
 
22160
- },{}],235:[function(require,module,exports){
22527
+ },{}],240:[function(require,module,exports){
22161
22528
  "use strict";
22162
22529
 
22163
22530
  module.exports = {
@@ -22188,7 +22555,7 @@ module.exports = {
22188
22555
  ]
22189
22556
  };
22190
22557
 
22191
- },{}],236:[function(require,module,exports){
22558
+ },{}],241:[function(require,module,exports){
22192
22559
  "use strict";
22193
22560
 
22194
22561
  module.exports = {
@@ -22239,7 +22606,7 @@ module.exports = {
22239
22606
  ]
22240
22607
  };
22241
22608
 
22242
- },{}],237:[function(require,module,exports){
22609
+ },{}],242:[function(require,module,exports){
22243
22610
  "use strict";
22244
22611
 
22245
22612
  module.exports = {
@@ -22359,7 +22726,7 @@ module.exports = {
22359
22726
  ]
22360
22727
  };
22361
22728
 
22362
- },{}],238:[function(require,module,exports){
22729
+ },{}],243:[function(require,module,exports){
22363
22730
  "use strict";
22364
22731
 
22365
22732
  module.exports = {
@@ -22417,7 +22784,7 @@ module.exports = {
22417
22784
  ]
22418
22785
  };
22419
22786
 
22420
- },{}],239:[function(require,module,exports){
22787
+ },{}],244:[function(require,module,exports){
22421
22788
  "use strict";
22422
22789
 
22423
22790
  module.exports = {
@@ -22490,7 +22857,7 @@ module.exports = {
22490
22857
  ]
22491
22858
  };
22492
22859
 
22493
- },{}],240:[function(require,module,exports){
22860
+ },{}],245:[function(require,module,exports){
22494
22861
  "use strict";
22495
22862
 
22496
22863
  var innerSchema = {
@@ -22535,7 +22902,7 @@ module.exports = {
22535
22902
  ]
22536
22903
  };
22537
22904
 
22538
- },{}],241:[function(require,module,exports){
22905
+ },{}],246:[function(require,module,exports){
22539
22906
  "use strict";
22540
22907
 
22541
22908
  var schema1 = {
@@ -22579,7 +22946,7 @@ module.exports = {
22579
22946
  ]
22580
22947
  };
22581
22948
 
22582
- },{}],242:[function(require,module,exports){
22949
+ },{}],247:[function(require,module,exports){
22583
22950
  "use strict";
22584
22951
 
22585
22952
  module.exports = {
@@ -22597,7 +22964,7 @@ module.exports = {
22597
22964
  ]
22598
22965
  };
22599
22966
 
22600
- },{}],243:[function(require,module,exports){
22967
+ },{}],248:[function(require,module,exports){
22601
22968
  "use strict";
22602
22969
 
22603
22970
  module.exports = {
@@ -22629,7 +22996,7 @@ module.exports = {
22629
22996
  ]
22630
22997
  };
22631
22998
 
22632
- },{}],244:[function(require,module,exports){
22999
+ },{}],249:[function(require,module,exports){
22633
23000
  "use strict";
22634
23001
 
22635
23002
  module.exports = {
@@ -22688,7 +23055,7 @@ module.exports = {
22688
23055
  ]
22689
23056
  };
22690
23057
 
22691
- },{}],245:[function(require,module,exports){
23058
+ },{}],250:[function(require,module,exports){
22692
23059
  "use strict";
22693
23060
 
22694
23061
  module.exports = {
@@ -22713,7 +23080,7 @@ module.exports = {
22713
23080
  ]
22714
23081
  };
22715
23082
 
22716
- },{}],246:[function(require,module,exports){
23083
+ },{}],251:[function(require,module,exports){
22717
23084
  "use strict";
22718
23085
 
22719
23086
  module.exports = {
@@ -22738,7 +23105,7 @@ module.exports = {
22738
23105
  ]
22739
23106
  };
22740
23107
 
22741
- },{}],247:[function(require,module,exports){
23108
+ },{}],252:[function(require,module,exports){
22742
23109
  "use strict";
22743
23110
 
22744
23111
  module.exports = {
@@ -22783,7 +23150,7 @@ module.exports = {
22783
23150
  ]
22784
23151
  };
22785
23152
 
22786
- },{}],248:[function(require,module,exports){
23153
+ },{}],253:[function(require,module,exports){
22787
23154
  "use strict";
22788
23155
 
22789
23156
  module.exports = {
@@ -22808,7 +23175,7 @@ module.exports = {
22808
23175
  ]
22809
23176
  };
22810
23177
 
22811
- },{}],249:[function(require,module,exports){
23178
+ },{}],254:[function(require,module,exports){
22812
23179
  "use strict";
22813
23180
 
22814
23181
  module.exports = {
@@ -22847,7 +23214,7 @@ module.exports = {
22847
23214
  ]
22848
23215
  };
22849
23216
 
22850
- },{}],250:[function(require,module,exports){
23217
+ },{}],255:[function(require,module,exports){
22851
23218
  "use strict";
22852
23219
 
22853
23220
  module.exports = {
@@ -22877,7 +23244,7 @@ module.exports = {
22877
23244
  ]
22878
23245
  };
22879
23246
 
22880
- },{}],251:[function(require,module,exports){
23247
+ },{}],256:[function(require,module,exports){
22881
23248
  module.exports={
22882
23249
  "id": "http://json-schema.org/draft-04/schema#",
22883
23250
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -23029,7 +23396,7 @@ module.exports={
23029
23396
  "default": {}
23030
23397
  }
23031
23398
 
23032
- },{}],252:[function(require,module,exports){
23399
+ },{}],257:[function(require,module,exports){
23033
23400
  module.exports={
23034
23401
  "swagger": 2,
23035
23402
  "info": {
@@ -23120,7 +23487,7 @@ module.exports={
23120
23487
  }
23121
23488
  }
23122
23489
 
23123
- },{}],253:[function(require,module,exports){
23490
+ },{}],258:[function(require,module,exports){
23124
23491
  module.exports={
23125
23492
  "title": "A JSON Schema for Swagger 2.0 API.",
23126
23493
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -23518,7 +23885,7 @@ module.exports={
23518
23885
  }
23519
23886
  }
23520
23887
 
23521
- },{}],254:[function(require,module,exports){
23888
+ },{}],259:[function(require,module,exports){
23522
23889
  module.exports={
23523
23890
  "title": "A JSON Schema for Swagger 2.0 API.",
23524
23891
  "$schema": "http://json-schema.org/draft-04/schema#",
@@ -23916,7 +24283,7 @@ module.exports={
23916
24283
  }
23917
24284
  }
23918
24285
 
23919
- },{}],255:[function(require,module,exports){
24286
+ },{}],260:[function(require,module,exports){
23920
24287
  'use strict';
23921
24288
 
23922
24289
  module.exports = {
@@ -23941,15 +24308,15 @@ module.exports = {
23941
24308
  ]
23942
24309
  };
23943
24310
 
23944
- },{}],256:[function(require,module,exports){
23945
- arguments[4][251][0].apply(exports,arguments)
23946
- },{"dup":251}],257:[function(require,module,exports){
24311
+ },{}],261:[function(require,module,exports){
24312
+ arguments[4][256][0].apply(exports,arguments)
24313
+ },{"dup":256}],262:[function(require,module,exports){
23947
24314
  module.exports={
23948
24315
  "type": "integer"
23949
24316
  }
23950
- },{}],258:[function(require,module,exports){
23951
- arguments[4][257][0].apply(exports,arguments)
23952
- },{"dup":257}],259:[function(require,module,exports){
24317
+ },{}],263:[function(require,module,exports){
24318
+ arguments[4][262][0].apply(exports,arguments)
24319
+ },{"dup":262}],264:[function(require,module,exports){
23953
24320
  module.exports={
23954
24321
  "integer": {
23955
24322
  "type": "integer"
@@ -23958,7 +24325,7 @@ module.exports={
23958
24325
  "$ref": "#/integer"
23959
24326
  }
23960
24327
  }
23961
- },{}],260:[function(require,module,exports){
24328
+ },{}],265:[function(require,module,exports){
23962
24329
  module.exports=[
23963
24330
  {
23964
24331
  "description": "additionalItems as schema",
@@ -24042,7 +24409,7 @@ module.exports=[
24042
24409
  }
24043
24410
  ]
24044
24411
 
24045
- },{}],261:[function(require,module,exports){
24412
+ },{}],266:[function(require,module,exports){
24046
24413
  module.exports=[
24047
24414
  {
24048
24415
  "description":
@@ -24132,7 +24499,7 @@ module.exports=[
24132
24499
  }
24133
24500
  ]
24134
24501
 
24135
- },{}],262:[function(require,module,exports){
24502
+ },{}],267:[function(require,module,exports){
24136
24503
  module.exports=[
24137
24504
  {
24138
24505
  "description": "allOf",
@@ -24246,7 +24613,7 @@ module.exports=[
24246
24613
  }
24247
24614
  ]
24248
24615
 
24249
- },{}],263:[function(require,module,exports){
24616
+ },{}],268:[function(require,module,exports){
24250
24617
  module.exports=[
24251
24618
  {
24252
24619
  "description": "anyOf",
@@ -24316,7 +24683,7 @@ module.exports=[
24316
24683
  }
24317
24684
  ]
24318
24685
 
24319
- },{}],264:[function(require,module,exports){
24686
+ },{}],269:[function(require,module,exports){
24320
24687
  module.exports=[
24321
24688
  {
24322
24689
  "description": "invalid type for default",
@@ -24367,7 +24734,7 @@ module.exports=[
24367
24734
  }
24368
24735
  ]
24369
24736
 
24370
- },{}],265:[function(require,module,exports){
24737
+ },{}],270:[function(require,module,exports){
24371
24738
  module.exports=[
24372
24739
  {
24373
24740
  "description": "valid definition",
@@ -24401,7 +24768,7 @@ module.exports=[
24401
24768
  }
24402
24769
  ]
24403
24770
 
24404
- },{}],266:[function(require,module,exports){
24771
+ },{}],271:[function(require,module,exports){
24405
24772
  module.exports=[
24406
24773
  {
24407
24774
  "description": "dependencies",
@@ -24516,7 +24883,7 @@ module.exports=[
24516
24883
  }
24517
24884
  ]
24518
24885
 
24519
- },{}],267:[function(require,module,exports){
24886
+ },{}],272:[function(require,module,exports){
24520
24887
  module.exports=[
24521
24888
  {
24522
24889
  "description": "simple enum validation",
@@ -24590,7 +24957,7 @@ module.exports=[
24590
24957
  }
24591
24958
  ]
24592
24959
 
24593
- },{}],268:[function(require,module,exports){
24960
+ },{}],273:[function(require,module,exports){
24594
24961
  module.exports=[
24595
24962
  {
24596
24963
  "description": "a schema given for items",
@@ -24638,7 +25005,7 @@ module.exports=[
24638
25005
  }
24639
25006
  ]
24640
25007
 
24641
- },{}],269:[function(require,module,exports){
25008
+ },{}],274:[function(require,module,exports){
24642
25009
  module.exports=[
24643
25010
  {
24644
25011
  "description": "maxItems validation",
@@ -24668,7 +25035,7 @@ module.exports=[
24668
25035
  }
24669
25036
  ]
24670
25037
 
24671
- },{}],270:[function(require,module,exports){
25038
+ },{}],275:[function(require,module,exports){
24672
25039
  module.exports=[
24673
25040
  {
24674
25041
  "description": "maxLength validation",
@@ -24703,7 +25070,7 @@ module.exports=[
24703
25070
  }
24704
25071
  ]
24705
25072
 
24706
- },{}],271:[function(require,module,exports){
25073
+ },{}],276:[function(require,module,exports){
24707
25074
  module.exports=[
24708
25075
  {
24709
25076
  "description": "maxProperties validation",
@@ -24733,7 +25100,7 @@ module.exports=[
24733
25100
  }
24734
25101
  ]
24735
25102
 
24736
- },{}],272:[function(require,module,exports){
25103
+ },{}],277:[function(require,module,exports){
24737
25104
  module.exports=[
24738
25105
  {
24739
25106
  "description": "maximum validation",
@@ -24777,7 +25144,7 @@ module.exports=[
24777
25144
  }
24778
25145
  ]
24779
25146
 
24780
- },{}],273:[function(require,module,exports){
25147
+ },{}],278:[function(require,module,exports){
24781
25148
  module.exports=[
24782
25149
  {
24783
25150
  "description": "minItems validation",
@@ -24807,7 +25174,7 @@ module.exports=[
24807
25174
  }
24808
25175
  ]
24809
25176
 
24810
- },{}],274:[function(require,module,exports){
25177
+ },{}],279:[function(require,module,exports){
24811
25178
  module.exports=[
24812
25179
  {
24813
25180
  "description": "minLength validation",
@@ -24842,7 +25209,7 @@ module.exports=[
24842
25209
  }
24843
25210
  ]
24844
25211
 
24845
- },{}],275:[function(require,module,exports){
25212
+ },{}],280:[function(require,module,exports){
24846
25213
  module.exports=[
24847
25214
  {
24848
25215
  "description": "minProperties validation",
@@ -24872,7 +25239,7 @@ module.exports=[
24872
25239
  }
24873
25240
  ]
24874
25241
 
24875
- },{}],276:[function(require,module,exports){
25242
+ },{}],281:[function(require,module,exports){
24876
25243
  module.exports=[
24877
25244
  {
24878
25245
  "description": "minimum validation",
@@ -24916,7 +25283,7 @@ module.exports=[
24916
25283
  }
24917
25284
  ]
24918
25285
 
24919
- },{}],277:[function(require,module,exports){
25286
+ },{}],282:[function(require,module,exports){
24920
25287
  module.exports=[
24921
25288
  {
24922
25289
  "description": "by int",
@@ -24978,7 +25345,7 @@ module.exports=[
24978
25345
  }
24979
25346
  ]
24980
25347
 
24981
- },{}],278:[function(require,module,exports){
25348
+ },{}],283:[function(require,module,exports){
24982
25349
  module.exports=[
24983
25350
  {
24984
25351
  "description": "not",
@@ -25076,7 +25443,7 @@ module.exports=[
25076
25443
 
25077
25444
  ]
25078
25445
 
25079
- },{}],279:[function(require,module,exports){
25446
+ },{}],284:[function(require,module,exports){
25080
25447
  module.exports=[
25081
25448
  {
25082
25449
  "description": "oneOf",
@@ -25146,7 +25513,7 @@ module.exports=[
25146
25513
  }
25147
25514
  ]
25148
25515
 
25149
- },{}],280:[function(require,module,exports){
25516
+ },{}],285:[function(require,module,exports){
25150
25517
  module.exports=[
25151
25518
  {
25152
25519
  "description": "integer",
@@ -25255,7 +25622,7 @@ module.exports=[
25255
25622
  }
25256
25623
  ]
25257
25624
 
25258
- },{}],281:[function(require,module,exports){
25625
+ },{}],286:[function(require,module,exports){
25259
25626
  module.exports=[
25260
25627
  {
25261
25628
  "description": "validation of date-time strings",
@@ -25400,7 +25767,7 @@ module.exports=[
25400
25767
  }
25401
25768
  ]
25402
25769
 
25403
- },{}],282:[function(require,module,exports){
25770
+ },{}],287:[function(require,module,exports){
25404
25771
  module.exports=[
25405
25772
  {
25406
25773
  "description": "pattern validation",
@@ -25425,7 +25792,7 @@ module.exports=[
25425
25792
  }
25426
25793
  ]
25427
25794
 
25428
- },{}],283:[function(require,module,exports){
25795
+ },{}],288:[function(require,module,exports){
25429
25796
  module.exports=[
25430
25797
  {
25431
25798
  "description":
@@ -25537,7 +25904,7 @@ module.exports=[
25537
25904
  }
25538
25905
  ]
25539
25906
 
25540
- },{}],284:[function(require,module,exports){
25907
+ },{}],289:[function(require,module,exports){
25541
25908
  module.exports=[
25542
25909
  {
25543
25910
  "description": "object properties validation",
@@ -25631,7 +25998,7 @@ module.exports=[
25631
25998
  }
25632
25999
  ]
25633
26000
 
25634
- },{}],285:[function(require,module,exports){
26001
+ },{}],290:[function(require,module,exports){
25635
26002
  module.exports=[
25636
26003
  {
25637
26004
  "description": "root pointer ref",
@@ -25777,7 +26144,7 @@ module.exports=[
25777
26144
  }
25778
26145
  ]
25779
26146
 
25780
- },{}],286:[function(require,module,exports){
26147
+ },{}],291:[function(require,module,exports){
25781
26148
  module.exports=[
25782
26149
  {
25783
26150
  "description": "remote ref",
@@ -25853,7 +26220,7 @@ module.exports=[
25853
26220
  }
25854
26221
  ]
25855
26222
 
25856
- },{}],287:[function(require,module,exports){
26223
+ },{}],292:[function(require,module,exports){
25857
26224
  module.exports=[
25858
26225
  {
25859
26226
  "description": "required validation",
@@ -25894,7 +26261,7 @@ module.exports=[
25894
26261
  }
25895
26262
  ]
25896
26263
 
25897
- },{}],288:[function(require,module,exports){
26264
+ },{}],293:[function(require,module,exports){
25898
26265
  module.exports=[
25899
26266
  {
25900
26267
  "description": "integer type matches integers",
@@ -26226,7 +26593,7 @@ module.exports=[
26226
26593
  }
26227
26594
  ]
26228
26595
 
26229
- },{}],289:[function(require,module,exports){
26596
+ },{}],294:[function(require,module,exports){
26230
26597
  module.exports=[
26231
26598
  {
26232
26599
  "description": "uniqueItems validation",
@@ -26307,7 +26674,7 @@ module.exports=[
26307
26674
  }
26308
26675
  ]
26309
26676
 
26310
- },{}],290:[function(require,module,exports){
26677
+ },{}],295:[function(require,module,exports){
26311
26678
  "use strict";
26312
26679
 
26313
26680
  var isBrowser = typeof window !== "undefined";
@@ -26400,7 +26767,7 @@ describe("Automatic schema loading", function () {
26400
26767
 
26401
26768
  });
26402
26769
 
26403
- },{"../../src/ZSchema":179,"https":59}],291:[function(require,module,exports){
26770
+ },{"../../src/ZSchema":181,"https":61}],296:[function(require,module,exports){
26404
26771
  "use strict";
26405
26772
 
26406
26773
  var ZSchema = require("../../src/ZSchema");
@@ -26472,7 +26839,7 @@ describe("Basic", function () {
26472
26839
 
26473
26840
  });
26474
26841
 
26475
- },{"../../src/ZSchema":179,"../files/draft-04-schema.json":256,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":257,"../jsonSchemaTestSuite/remotes/integer.json":258,"../jsonSchemaTestSuite/remotes/subSchemas.json":259}],292:[function(require,module,exports){
26842
+ },{"../../src/ZSchema":181,"../files/draft-04-schema.json":261,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":262,"../jsonSchemaTestSuite/remotes/integer.json":263,"../jsonSchemaTestSuite/remotes/subSchemas.json":264}],297:[function(require,module,exports){
26476
26843
  "use strict";
26477
26844
 
26478
26845
  var ZSchema = require("../../src/ZSchema");
@@ -26568,7 +26935,7 @@ describe("JsonSchemaTestSuite", function () {
26568
26935
 
26569
26936
  });
26570
26937
 
26571
- },{"../../src/ZSchema":179,"../files/draft-04-schema.json":256,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":257,"../jsonSchemaTestSuite/remotes/integer.json":258,"../jsonSchemaTestSuite/remotes/subSchemas.json":259,"../jsonSchemaTestSuite/tests/draft4/additionalItems.json":260,"../jsonSchemaTestSuite/tests/draft4/additionalProperties.json":261,"../jsonSchemaTestSuite/tests/draft4/allOf.json":262,"../jsonSchemaTestSuite/tests/draft4/anyOf.json":263,"../jsonSchemaTestSuite/tests/draft4/default.json":264,"../jsonSchemaTestSuite/tests/draft4/definitions.json":265,"../jsonSchemaTestSuite/tests/draft4/dependencies.json":266,"../jsonSchemaTestSuite/tests/draft4/enum.json":267,"../jsonSchemaTestSuite/tests/draft4/items.json":268,"../jsonSchemaTestSuite/tests/draft4/maxItems.json":269,"../jsonSchemaTestSuite/tests/draft4/maxLength.json":270,"../jsonSchemaTestSuite/tests/draft4/maxProperties.json":271,"../jsonSchemaTestSuite/tests/draft4/maximum.json":272,"../jsonSchemaTestSuite/tests/draft4/minItems.json":273,"../jsonSchemaTestSuite/tests/draft4/minLength.json":274,"../jsonSchemaTestSuite/tests/draft4/minProperties.json":275,"../jsonSchemaTestSuite/tests/draft4/minimum.json":276,"../jsonSchemaTestSuite/tests/draft4/multipleOf.json":277,"../jsonSchemaTestSuite/tests/draft4/not.json":278,"../jsonSchemaTestSuite/tests/draft4/oneOf.json":279,"../jsonSchemaTestSuite/tests/draft4/optional/bignum.json":280,"../jsonSchemaTestSuite/tests/draft4/optional/format.json":281,"../jsonSchemaTestSuite/tests/draft4/pattern.json":282,"../jsonSchemaTestSuite/tests/draft4/patternProperties.json":283,"../jsonSchemaTestSuite/tests/draft4/properties.json":284,"../jsonSchemaTestSuite/tests/draft4/ref.json":285,"../jsonSchemaTestSuite/tests/draft4/refRemote.json":286,"../jsonSchemaTestSuite/tests/draft4/required.json":287,"../jsonSchemaTestSuite/tests/draft4/type.json":288,"../jsonSchemaTestSuite/tests/draft4/uniqueItems.json":289}],293:[function(require,module,exports){
26938
+ },{"../../src/ZSchema":181,"../files/draft-04-schema.json":261,"../jsonSchemaTestSuite/remotes/folder/folderInteger.json":262,"../jsonSchemaTestSuite/remotes/integer.json":263,"../jsonSchemaTestSuite/remotes/subSchemas.json":264,"../jsonSchemaTestSuite/tests/draft4/additionalItems.json":265,"../jsonSchemaTestSuite/tests/draft4/additionalProperties.json":266,"../jsonSchemaTestSuite/tests/draft4/allOf.json":267,"../jsonSchemaTestSuite/tests/draft4/anyOf.json":268,"../jsonSchemaTestSuite/tests/draft4/default.json":269,"../jsonSchemaTestSuite/tests/draft4/definitions.json":270,"../jsonSchemaTestSuite/tests/draft4/dependencies.json":271,"../jsonSchemaTestSuite/tests/draft4/enum.json":272,"../jsonSchemaTestSuite/tests/draft4/items.json":273,"../jsonSchemaTestSuite/tests/draft4/maxItems.json":274,"../jsonSchemaTestSuite/tests/draft4/maxLength.json":275,"../jsonSchemaTestSuite/tests/draft4/maxProperties.json":276,"../jsonSchemaTestSuite/tests/draft4/maximum.json":277,"../jsonSchemaTestSuite/tests/draft4/minItems.json":278,"../jsonSchemaTestSuite/tests/draft4/minLength.json":279,"../jsonSchemaTestSuite/tests/draft4/minProperties.json":280,"../jsonSchemaTestSuite/tests/draft4/minimum.json":281,"../jsonSchemaTestSuite/tests/draft4/multipleOf.json":282,"../jsonSchemaTestSuite/tests/draft4/not.json":283,"../jsonSchemaTestSuite/tests/draft4/oneOf.json":284,"../jsonSchemaTestSuite/tests/draft4/optional/bignum.json":285,"../jsonSchemaTestSuite/tests/draft4/optional/format.json":286,"../jsonSchemaTestSuite/tests/draft4/pattern.json":287,"../jsonSchemaTestSuite/tests/draft4/patternProperties.json":288,"../jsonSchemaTestSuite/tests/draft4/properties.json":289,"../jsonSchemaTestSuite/tests/draft4/ref.json":290,"../jsonSchemaTestSuite/tests/draft4/refRemote.json":291,"../jsonSchemaTestSuite/tests/draft4/required.json":292,"../jsonSchemaTestSuite/tests/draft4/type.json":293,"../jsonSchemaTestSuite/tests/draft4/uniqueItems.json":294}],298:[function(require,module,exports){
26572
26939
  "use strict";
26573
26940
 
26574
26941
  var ZSchema = require("../../src/ZSchema");
@@ -26602,7 +26969,7 @@ describe("Using multiple instances of Z-Schema", function () {
26602
26969
 
26603
26970
  });
26604
26971
 
26605
- },{"../../src/ZSchema":179}],294:[function(require,module,exports){
26972
+ },{"../../src/ZSchema":181}],299:[function(require,module,exports){
26606
26973
  /*jshint -W030 */
26607
26974
 
26608
26975
  "use strict";
@@ -26629,9 +26996,11 @@ var testSuiteFiles = [
26629
26996
  require("../ZSchemaTestSuite/MultipleSchemas.js"),
26630
26997
  require("../ZSchemaTestSuite/ErrorPathAsArray.js"),
26631
26998
  require("../ZSchemaTestSuite/ErrorPathAsJSONPointer.js"),
26999
+ require("../ZSchemaTestSuite/ErrorPathContainsIntegerIndex.js"),
26632
27000
  require("../ZSchemaTestSuite/PedanticCheck.js"),
26633
27001
  require("../ZSchemaTestSuite/getRegisteredFormats.js"),
26634
27002
  require("../ZSchemaTestSuite/InvalidId.js"),
27003
+ require("../ZSchemaTestSuite/IncludeErrors.js"),
26635
27004
  require("../ZSchemaTestSuite/CustomValidator.js"),
26636
27005
  // issues
26637
27006
  require("../ZSchemaTestSuite/Issue12.js"),
@@ -26678,6 +27047,7 @@ var testSuiteFiles = [
26678
27047
  require("../ZSchemaTestSuite/Issue142.js"),
26679
27048
  require("../ZSchemaTestSuite/Issue146.js"),
26680
27049
  require("../ZSchemaTestSuite/Issue151.js"),
27050
+ require("../ZSchemaTestSuite/Issue199.js"),
26681
27051
  require("../ZSchemaTestSuite/Issue209.js"),
26682
27052
  require("../ZSchemaTestSuite/Issue222.js"),
26683
27053
  require("../ZSchemaTestSuite/Issue229.js"),
@@ -26694,8 +27064,8 @@ describe("ZSchemaTestSuite", function () {
26694
27064
  }
26695
27065
  }
26696
27066
 
26697
- it("should contain 70 files", function () {
26698
- expect(testSuiteFiles.length).toBe(70);
27067
+ it("should contain 73 files", function () {
27068
+ expect(testSuiteFiles.length).toBe(73);
26699
27069
  });
26700
27070
 
26701
27071
  testSuiteFiles.forEach(function (testSuite) {
@@ -26707,6 +27077,11 @@ describe("ZSchemaTestSuite", function () {
26707
27077
  data = testSuite.data;
26708
27078
  }
26709
27079
 
27080
+ var validateOptions = test.validateOptions;
27081
+ if (typeof validateOptions === "undefined") {
27082
+ validateOptions = testSuite.validateOptions;
27083
+ }
27084
+
26710
27085
  var async = test.async || testSuite.async || false,
26711
27086
  options = test.options || testSuite.options || undefined,
26712
27087
  setup = test.setup || testSuite.setup,
@@ -26740,7 +27115,7 @@ describe("ZSchemaTestSuite", function () {
26740
27115
  schema = schema[schemaIndex];
26741
27116
  }
26742
27117
  try {
26743
- valid = validator.validate(data, schema);
27118
+ valid = validator.validate(data, schema, validateOptions);
26744
27119
  } catch (err) {
26745
27120
  if (!failWithException) {
26746
27121
  throw err;
@@ -26803,7 +27178,7 @@ describe("ZSchemaTestSuite", function () {
26803
27178
 
26804
27179
  });
26805
27180
 
26806
- },{"../../src/ZSchema":179,"../ZSchemaTestSuite/AssumeAdditional.js":182,"../ZSchemaTestSuite/CustomFormats.js":183,"../ZSchemaTestSuite/CustomFormatsAsync.js":184,"../ZSchemaTestSuite/CustomValidator.js":185,"../ZSchemaTestSuite/ErrorPathAsArray.js":186,"../ZSchemaTestSuite/ErrorPathAsJSONPointer.js":187,"../ZSchemaTestSuite/ForceAdditional.js":188,"../ZSchemaTestSuite/ForceItems.js":189,"../ZSchemaTestSuite/ForceMaxItems.js":190,"../ZSchemaTestSuite/ForceMaxLength.js":191,"../ZSchemaTestSuite/ForceMinItems.js":192,"../ZSchemaTestSuite/ForceMinLength.js":193,"../ZSchemaTestSuite/ForceProperties.js":194,"../ZSchemaTestSuite/IgnoreUnresolvableReferences.js":195,"../ZSchemaTestSuite/InvalidId.js":196,"../ZSchemaTestSuite/Issue101.js":197,"../ZSchemaTestSuite/Issue102.js":198,"../ZSchemaTestSuite/Issue103.js":199,"../ZSchemaTestSuite/Issue106.js":200,"../ZSchemaTestSuite/Issue107.js":201,"../ZSchemaTestSuite/Issue12.js":202,"../ZSchemaTestSuite/Issue121.js":203,"../ZSchemaTestSuite/Issue125.js":204,"../ZSchemaTestSuite/Issue126.js":205,"../ZSchemaTestSuite/Issue13.js":206,"../ZSchemaTestSuite/Issue130.js":207,"../ZSchemaTestSuite/Issue131.js":208,"../ZSchemaTestSuite/Issue137.js":209,"../ZSchemaTestSuite/Issue139.js":210,"../ZSchemaTestSuite/Issue142.js":211,"../ZSchemaTestSuite/Issue146.js":212,"../ZSchemaTestSuite/Issue151.js":213,"../ZSchemaTestSuite/Issue16.js":214,"../ZSchemaTestSuite/Issue209.js":215,"../ZSchemaTestSuite/Issue22.js":216,"../ZSchemaTestSuite/Issue222.js":217,"../ZSchemaTestSuite/Issue229.js":218,"../ZSchemaTestSuite/Issue25.js":219,"../ZSchemaTestSuite/Issue26.js":220,"../ZSchemaTestSuite/Issue37.js":221,"../ZSchemaTestSuite/Issue40.js":222,"../ZSchemaTestSuite/Issue41.js":223,"../ZSchemaTestSuite/Issue43.js":224,"../ZSchemaTestSuite/Issue44.js":225,"../ZSchemaTestSuite/Issue45.js":226,"../ZSchemaTestSuite/Issue47.js":227,"../ZSchemaTestSuite/Issue48.js":228,"../ZSchemaTestSuite/Issue49.js":229,"../ZSchemaTestSuite/Issue53.js":230,"../ZSchemaTestSuite/Issue56.js":231,"../ZSchemaTestSuite/Issue57.js":232,"../ZSchemaTestSuite/Issue58.js":233,"../ZSchemaTestSuite/Issue63.js":234,"../ZSchemaTestSuite/Issue64.js":235,"../ZSchemaTestSuite/Issue67.js":236,"../ZSchemaTestSuite/Issue71.js":237,"../ZSchemaTestSuite/Issue73.js":238,"../ZSchemaTestSuite/Issue76.js":239,"../ZSchemaTestSuite/Issue85.js":240,"../ZSchemaTestSuite/Issue94.js":241,"../ZSchemaTestSuite/Issue96.js":242,"../ZSchemaTestSuite/Issue98.js":243,"../ZSchemaTestSuite/MultipleSchemas.js":244,"../ZSchemaTestSuite/NoEmptyArrays.js":245,"../ZSchemaTestSuite/NoEmptyStrings.js":246,"../ZSchemaTestSuite/NoExtraKeywords.js":247,"../ZSchemaTestSuite/NoTypeless.js":248,"../ZSchemaTestSuite/PedanticCheck.js":249,"../ZSchemaTestSuite/StrictUris.js":250,"../ZSchemaTestSuite/getRegisteredFormats.js":255}],295:[function(require,module,exports){
27181
+ },{"../../src/ZSchema":181,"../ZSchemaTestSuite/AssumeAdditional.js":184,"../ZSchemaTestSuite/CustomFormats.js":185,"../ZSchemaTestSuite/CustomFormatsAsync.js":186,"../ZSchemaTestSuite/CustomValidator.js":187,"../ZSchemaTestSuite/ErrorPathAsArray.js":188,"../ZSchemaTestSuite/ErrorPathAsJSONPointer.js":189,"../ZSchemaTestSuite/ErrorPathContainsIntegerIndex.js":190,"../ZSchemaTestSuite/ForceAdditional.js":191,"../ZSchemaTestSuite/ForceItems.js":192,"../ZSchemaTestSuite/ForceMaxItems.js":193,"../ZSchemaTestSuite/ForceMaxLength.js":194,"../ZSchemaTestSuite/ForceMinItems.js":195,"../ZSchemaTestSuite/ForceMinLength.js":196,"../ZSchemaTestSuite/ForceProperties.js":197,"../ZSchemaTestSuite/IgnoreUnresolvableReferences.js":198,"../ZSchemaTestSuite/IncludeErrors.js":199,"../ZSchemaTestSuite/InvalidId.js":200,"../ZSchemaTestSuite/Issue101.js":201,"../ZSchemaTestSuite/Issue102.js":202,"../ZSchemaTestSuite/Issue103.js":203,"../ZSchemaTestSuite/Issue106.js":204,"../ZSchemaTestSuite/Issue107.js":205,"../ZSchemaTestSuite/Issue12.js":206,"../ZSchemaTestSuite/Issue121.js":207,"../ZSchemaTestSuite/Issue125.js":208,"../ZSchemaTestSuite/Issue126.js":209,"../ZSchemaTestSuite/Issue13.js":210,"../ZSchemaTestSuite/Issue130.js":211,"../ZSchemaTestSuite/Issue131.js":212,"../ZSchemaTestSuite/Issue137.js":213,"../ZSchemaTestSuite/Issue139.js":214,"../ZSchemaTestSuite/Issue142.js":215,"../ZSchemaTestSuite/Issue146.js":216,"../ZSchemaTestSuite/Issue151.js":217,"../ZSchemaTestSuite/Issue16.js":218,"../ZSchemaTestSuite/Issue199.js":219,"../ZSchemaTestSuite/Issue209.js":220,"../ZSchemaTestSuite/Issue22.js":221,"../ZSchemaTestSuite/Issue222.js":222,"../ZSchemaTestSuite/Issue229.js":223,"../ZSchemaTestSuite/Issue25.js":224,"../ZSchemaTestSuite/Issue26.js":225,"../ZSchemaTestSuite/Issue37.js":226,"../ZSchemaTestSuite/Issue40.js":227,"../ZSchemaTestSuite/Issue41.js":228,"../ZSchemaTestSuite/Issue43.js":229,"../ZSchemaTestSuite/Issue44.js":230,"../ZSchemaTestSuite/Issue45.js":231,"../ZSchemaTestSuite/Issue47.js":232,"../ZSchemaTestSuite/Issue48.js":233,"../ZSchemaTestSuite/Issue49.js":234,"../ZSchemaTestSuite/Issue53.js":235,"../ZSchemaTestSuite/Issue56.js":236,"../ZSchemaTestSuite/Issue57.js":237,"../ZSchemaTestSuite/Issue58.js":238,"../ZSchemaTestSuite/Issue63.js":239,"../ZSchemaTestSuite/Issue64.js":240,"../ZSchemaTestSuite/Issue67.js":241,"../ZSchemaTestSuite/Issue71.js":242,"../ZSchemaTestSuite/Issue73.js":243,"../ZSchemaTestSuite/Issue76.js":244,"../ZSchemaTestSuite/Issue85.js":245,"../ZSchemaTestSuite/Issue94.js":246,"../ZSchemaTestSuite/Issue96.js":247,"../ZSchemaTestSuite/Issue98.js":248,"../ZSchemaTestSuite/MultipleSchemas.js":249,"../ZSchemaTestSuite/NoEmptyArrays.js":250,"../ZSchemaTestSuite/NoEmptyStrings.js":251,"../ZSchemaTestSuite/NoExtraKeywords.js":252,"../ZSchemaTestSuite/NoTypeless.js":253,"../ZSchemaTestSuite/PedanticCheck.js":254,"../ZSchemaTestSuite/StrictUris.js":255,"../ZSchemaTestSuite/getRegisteredFormats.js":260}],300:[function(require,module,exports){
26807
27182
  "use strict";
26808
27183
 
26809
27184
  var ZSchema = require("../../src/ZSchema");
@@ -26902,4 +27277,4 @@ describe("Using path to schema as a third argument", function () {
26902
27277
 
26903
27278
  });
26904
27279
 
26905
- },{"../../src/ZSchema":179}]},{},[290,291,292,293,295,294]);
27280
+ },{"../../src/ZSchema":181}]},{},[295,296,297,298,300,299]);