vee-validate 2.1.0-beta.8 → 2.1.3

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.
Files changed (57) hide show
  1. package/README.md +6 -0
  2. package/dist/locale/ar.js +1 -1
  3. package/dist/locale/bg.js +1 -1
  4. package/dist/locale/ca.js +1 -1
  5. package/dist/locale/cs.js +1 -1
  6. package/dist/locale/da.js +1 -1
  7. package/dist/locale/de.js +1 -1
  8. package/dist/locale/el.js +1 -1
  9. package/dist/locale/en.js +1 -1
  10. package/dist/locale/es.js +1 -1
  11. package/dist/locale/et.js +1 -1
  12. package/dist/locale/eu.js +1 -1
  13. package/dist/locale/fa.js +1 -1
  14. package/dist/locale/fi.js +1 -1
  15. package/dist/locale/fr.js +1 -1
  16. package/dist/locale/he.js +1 -1
  17. package/dist/locale/hr.js +1 -1
  18. package/dist/locale/hu.js +1 -1
  19. package/dist/locale/id.js +1 -1
  20. package/dist/locale/it.js +1 -1
  21. package/dist/locale/ja.js +1 -1
  22. package/dist/locale/ka.js +1 -1
  23. package/dist/locale/ko.js +1 -1
  24. package/dist/locale/lt.js +1 -1
  25. package/dist/locale/lv.js +1 -1
  26. package/dist/locale/ms_MY.js +1 -1
  27. package/dist/locale/nb_NO.js +1 -1
  28. package/dist/locale/ne.js +1 -0
  29. package/dist/locale/nl.js +1 -1
  30. package/dist/locale/nn_NO.js +1 -1
  31. package/dist/locale/pl.js +1 -1
  32. package/dist/locale/pt_BR.js +1 -1
  33. package/dist/locale/pt_PT.js +1 -1
  34. package/dist/locale/ro.js +1 -1
  35. package/dist/locale/ru.js +1 -1
  36. package/dist/locale/sk.js +1 -1
  37. package/dist/locale/sl.js +1 -1
  38. package/dist/locale/sq.js +1 -1
  39. package/dist/locale/sr.js +1 -1
  40. package/dist/locale/sr_Latin.js +1 -1
  41. package/dist/locale/sv.js +1 -1
  42. package/dist/locale/th.js +1 -1
  43. package/dist/locale/tr.js +1 -1
  44. package/dist/locale/uk.js +1 -1
  45. package/dist/locale/vi.js +1 -1
  46. package/dist/locale/zh_CN.js +1 -1
  47. package/dist/locale/zh_TW.js +1 -1
  48. package/dist/rules.esm.js +162 -80
  49. package/dist/vee-validate.esm.js +3069 -2183
  50. package/dist/vee-validate.js +3166 -2279
  51. package/dist/vee-validate.min.js +1 -1
  52. package/dist/vee-validate.minimal.esm.js +2949 -2134
  53. package/dist/vee-validate.minimal.js +2854 -2041
  54. package/dist/vee-validate.minimal.min.js +1 -1
  55. package/dist/vue.js +10947 -0
  56. package/package.json +28 -28
  57. package/types/vee-validate.d.ts +18 -5
package/dist/rules.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vee-validate v2.1.0-beta.8
2
+ * vee-validate v2.1.3
3
3
  * (c) 2018 Abdelrahman Awad
4
4
  * @license MIT
5
5
  */
@@ -2642,23 +2642,25 @@ function parseDate$1 (date, format$$1) {
2642
2642
  }
2643
2643
 
2644
2644
  var afterValidator = function (value, ref) {
2645
- var otherValue = ref[0];
2646
- var inclusion = ref[1];
2647
- var format$$1 = ref[2];
2645
+ if ( ref === void 0 ) ref = {};
2646
+ var targetValue = ref.targetValue;
2647
+ var inclusion = ref.inclusion; if ( inclusion === void 0 ) inclusion = false;
2648
+ var format$$1 = ref.format;
2648
2649
 
2649
2650
  if (typeof format$$1 === 'undefined') {
2650
2651
  format$$1 = inclusion;
2651
2652
  inclusion = false;
2652
2653
  }
2654
+
2653
2655
  value = parseDate$1(value, format$$1);
2654
- otherValue = parseDate$1(otherValue, format$$1);
2656
+ targetValue = parseDate$1(targetValue, format$$1);
2655
2657
 
2656
2658
  // if either is not valid.
2657
- if (!value || !otherValue) {
2659
+ if (!value || !targetValue) {
2658
2660
  return false;
2659
2661
  }
2660
2662
 
2661
- return isAfter(value, otherValue) || (inclusion && isEqual(value, otherValue));
2663
+ return isAfter(value, targetValue) || (inclusion && isEqual(value, targetValue));
2662
2664
  };
2663
2665
 
2664
2666
  var options = {
@@ -2666,9 +2668,13 @@ var options = {
2666
2668
  isDate: true
2667
2669
  };
2668
2670
 
2671
+ // required to convert from a list of array values to an object.
2672
+ var paramNames = ['targetValue', 'inclusion', 'format'];
2673
+
2669
2674
  var after = {
2670
2675
  validate: afterValidator,
2671
- options: options
2676
+ options: options,
2677
+ paramNames: paramNames
2672
2678
  };
2673
2679
 
2674
2680
  /**
@@ -2757,8 +2763,8 @@ var alphaDash = {
2757
2763
  };
2758
2764
 
2759
2765
  var validate = function (value, ref) {
2760
- if ( ref === void 0 ) ref = [];
2761
- var locale = ref[0]; if ( locale === void 0 ) locale = null;
2766
+ if ( ref === void 0 ) ref = {};
2767
+ var locale = ref.locale;
2762
2768
 
2763
2769
  if (Array.isArray(value)) {
2764
2770
  return value.every(function (val) { return validate(val, [locale]); });
@@ -2772,13 +2778,16 @@ var validate = function (value, ref) {
2772
2778
  return (alpha[locale] || alpha.en).test(value);
2773
2779
  };
2774
2780
 
2781
+ var paramNames$1 = ['locale'];
2782
+
2775
2783
  var alpha$1 = {
2776
- validate: validate
2784
+ validate: validate,
2785
+ paramNames: paramNames$1
2777
2786
  };
2778
2787
 
2779
2788
  var validate$1 = function (value, ref) {
2780
- if ( ref === void 0 ) ref = [];
2781
- var locale = ref[0]; if ( locale === void 0 ) locale = null;
2789
+ if ( ref === void 0 ) ref = {};
2790
+ var locale = ref.locale;
2782
2791
 
2783
2792
  if (Array.isArray(value)) {
2784
2793
  return value.every(function (val) { return validate$1(val, [locale]); });
@@ -2792,13 +2801,16 @@ var validate$1 = function (value, ref) {
2792
2801
  return (alphaDash[locale] || alphaDash.en).test(value);
2793
2802
  };
2794
2803
 
2804
+ var paramNames$2 = ['locale'];
2805
+
2795
2806
  var alpha_dash = {
2796
- validate: validate$1
2807
+ validate: validate$1,
2808
+ paramNames: paramNames$2
2797
2809
  };
2798
2810
 
2799
2811
  var validate$2 = function (value, ref) {
2800
- if ( ref === void 0 ) ref = [];
2801
- var locale = ref[0]; if ( locale === void 0 ) locale = null;
2812
+ if ( ref === void 0 ) ref = {};
2813
+ var locale = ref.locale;
2802
2814
 
2803
2815
  if (Array.isArray(value)) {
2804
2816
  return value.every(function (val) { return validate$2(val, [locale]); });
@@ -2812,13 +2824,16 @@ var validate$2 = function (value, ref) {
2812
2824
  return (alphanumeric[locale] || alphanumeric.en).test(value);
2813
2825
  };
2814
2826
 
2827
+ var paramNames$3 = ['locale'];
2828
+
2815
2829
  var alpha_num = {
2816
- validate: validate$2
2830
+ validate: validate$2,
2831
+ paramNames: paramNames$3
2817
2832
  };
2818
2833
 
2819
2834
  var validate$3 = function (value, ref) {
2820
- if ( ref === void 0 ) ref = [];
2821
- var locale = ref[0]; if ( locale === void 0 ) locale = null;
2835
+ if ( ref === void 0 ) ref = {};
2836
+ var locale = ref.locale;
2822
2837
 
2823
2838
  if (Array.isArray(value)) {
2824
2839
  return value.every(function (val) { return validate$3(val, [locale]); });
@@ -2832,28 +2847,33 @@ var validate$3 = function (value, ref) {
2832
2847
  return (alphaSpaces[locale] || alphaSpaces.en).test(value);
2833
2848
  };
2834
2849
 
2850
+ var paramNames$4 = ['locale'];
2851
+
2835
2852
  var alpha_spaces = {
2836
- validate: validate$3
2853
+ validate: validate$3,
2854
+ paramNames: paramNames$4
2837
2855
  };
2838
2856
 
2839
2857
  var validate$4 = function (value, ref) {
2840
- var otherValue = ref[0];
2841
- var inclusion = ref[1];
2842
- var format$$1 = ref[2];
2858
+ if ( ref === void 0 ) ref = {};
2859
+ var targetValue = ref.targetValue;
2860
+ var inclusion = ref.inclusion; if ( inclusion === void 0 ) inclusion = false;
2861
+ var format$$1 = ref.format;
2843
2862
 
2844
2863
  if (typeof format$$1 === 'undefined') {
2845
2864
  format$$1 = inclusion;
2846
2865
  inclusion = false;
2847
2866
  }
2867
+
2848
2868
  value = parseDate$1(value, format$$1);
2849
- otherValue = parseDate$1(otherValue, format$$1);
2869
+ targetValue = parseDate$1(targetValue, format$$1);
2850
2870
 
2851
2871
  // if either is not valid.
2852
- if (!value || !otherValue) {
2872
+ if (!value || !targetValue) {
2853
2873
  return false;
2854
2874
  }
2855
2875
 
2856
- return isBefore(value, otherValue) || (inclusion && isEqual(value, otherValue));
2876
+ return isBefore(value, targetValue) || (inclusion && isEqual(value, targetValue));
2857
2877
  };
2858
2878
 
2859
2879
  var options$1 = {
@@ -2861,38 +2881,52 @@ var options$1 = {
2861
2881
  isDate: true
2862
2882
  };
2863
2883
 
2884
+ var paramNames$5 = ['targetValue', 'inclusion', 'format'];
2885
+
2864
2886
  var before = {
2865
2887
  validate: validate$4,
2866
- options: options$1
2888
+ options: options$1,
2889
+ paramNames: paramNames$5
2867
2890
  };
2868
2891
 
2869
2892
  var validate$5 = function (value, ref) {
2870
- var min = ref[0];
2871
- var max = ref[1];
2893
+ if ( ref === void 0 ) ref = {};
2894
+ var min = ref.min;
2895
+ var max = ref.max;
2872
2896
 
2873
2897
  if (Array.isArray(value)) {
2874
- return value.every(function (val) { return validate$5(val, [min, max]); });
2898
+ return value.every(function (val) { return validate$5(val, { min: min, max: max }); });
2875
2899
  }
2876
2900
 
2877
2901
  return Number(min) <= value && Number(max) >= value;
2878
2902
  };
2879
2903
 
2904
+ var paramNames$6 = ['min', 'max'];
2905
+
2880
2906
  var between = {
2881
- validate: validate$5
2907
+ validate: validate$5,
2908
+ paramNames: paramNames$6
2882
2909
  };
2883
2910
 
2884
- var validate$6 = function (value, other) { return String(value) === String(other); };
2911
+ var validate$6 = function (value, ref) {
2912
+ var targetValue = ref.targetValue;
2913
+
2914
+ return String(value) === String(targetValue);
2915
+ };
2885
2916
  var options$2 = {
2886
2917
  hasTarget: true
2887
2918
  };
2888
2919
 
2920
+ var paramNames$7 = ['targetValue'];
2921
+
2889
2922
  var confirmed = {
2890
2923
  validate: validate$6,
2891
- options: options$2
2924
+ options: options$2,
2925
+ paramNames: paramNames$7
2892
2926
  };
2893
2927
 
2894
2928
  function unwrapExports (x) {
2895
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
2929
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x.default : x;
2896
2930
  }
2897
2931
 
2898
2932
  function createCommonjsModule(fn, module) {
@@ -2904,12 +2938,26 @@ var assertString_1 = createCommonjsModule(function (module, exports) {
2904
2938
  Object.defineProperty(exports, "__esModule", {
2905
2939
  value: true
2906
2940
  });
2941
+
2942
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
2943
+
2907
2944
  exports.default = assertString;
2908
2945
  function assertString(input) {
2909
2946
  var isString = typeof input === 'string' || input instanceof String;
2910
2947
 
2911
2948
  if (!isString) {
2912
- throw new TypeError('This library (validator.js) validates strings only');
2949
+ var invalidType = void 0;
2950
+ if (input === null) {
2951
+ invalidType = 'null';
2952
+ } else {
2953
+ invalidType = typeof input === 'undefined' ? 'undefined' : _typeof(input);
2954
+ if (invalidType === 'object' && input.constructor && input.constructor.hasOwnProperty('name')) {
2955
+ invalidType = input.constructor.name;
2956
+ } else {
2957
+ invalidType = 'a ' + invalidType;
2958
+ }
2959
+ }
2960
+ throw new TypeError('Expected string but received ' + invalidType + '.');
2913
2961
  }
2914
2962
  }
2915
2963
  module.exports = exports['default'];
@@ -2972,18 +3020,16 @@ var credit_card = {
2972
3020
  validate: validate$7
2973
3021
  };
2974
3022
 
2975
- var validate$8 = function (value, params) {
2976
- var assign, assign$1;
3023
+ var validate$8 = function (value, ref) {
3024
+ if ( ref === void 0 ) ref = {};
3025
+ var min$$1 = ref.min;
3026
+ var max$$1 = ref.max;
3027
+ var inclusivity = ref.inclusivity; if ( inclusivity === void 0 ) inclusivity = '()';
3028
+ var format$$1 = ref.format;
2977
3029
 
2978
- var min$$1;
2979
- var max$$1;
2980
- var format$$1;
2981
- var inclusivity = '()';
2982
-
2983
- if (params.length > 3) {
2984
- (assign = params, min$$1 = assign[0], max$$1 = assign[1], inclusivity = assign[2], format$$1 = assign[3]);
2985
- } else {
2986
- (assign$1 = params, min$$1 = assign$1[0], max$$1 = assign$1[1], format$$1 = assign$1[2]);
3030
+ if (typeof format$$1 === 'undefined') {
3031
+ format$$1 = inclusivity;
3032
+ inclusivity = '()';
2987
3033
  }
2988
3034
 
2989
3035
  var minDate = parseDate$1(String(min$$1), format$$1);
@@ -3014,13 +3060,16 @@ var options$3 = {
3014
3060
  isDate: true
3015
3061
  };
3016
3062
 
3063
+ var paramNames$8 = ['min', 'max', 'inclusivity', 'format'];
3064
+
3017
3065
  var date_between = {
3018
3066
  validate: validate$8,
3019
- options: options$3
3067
+ options: options$3,
3068
+ paramNames: paramNames$8
3020
3069
  };
3021
3070
 
3022
3071
  var validate$9 = function (value, ref) {
3023
- var format = ref[0];
3072
+ var format = ref.format;
3024
3073
 
3025
3074
  return !!parseDate$1(value, format);
3026
3075
  };
@@ -3029,22 +3078,25 @@ var options$4 = {
3029
3078
  isDate: true
3030
3079
  };
3031
3080
 
3081
+ var paramNames$9 = ['format'];
3082
+
3032
3083
  var date_format = {
3033
3084
  validate: validate$9,
3034
- options: options$4
3085
+ options: options$4,
3086
+ paramNames: paramNames$9
3035
3087
  };
3036
3088
 
3037
3089
  var validate$a = function (value, ref) {
3038
- if ( ref === void 0 ) ref = [];
3039
- var decimals = ref[0]; if ( decimals === void 0 ) decimals = '*';
3040
- var separator = ref[1]; if ( separator === void 0 ) separator = '.';
3090
+ if ( ref === void 0 ) ref = {};
3091
+ var decimals = ref.decimals; if ( decimals === void 0 ) decimals = '*';
3092
+ var separator = ref.separator; if ( separator === void 0 ) separator = '.';
3041
3093
 
3042
3094
  if (Array.isArray(value)) {
3043
- return value.every(function (val) { return validate$a(val, [decimals, separator]); });
3095
+ return value.every(function (val) { return validate$a(val, { decimals: decimals, separator: separator }); });
3044
3096
  }
3045
3097
 
3046
3098
  if (value === null || value === undefined || value === '') {
3047
- return true;
3099
+ return false;
3048
3100
  }
3049
3101
 
3050
3102
  // if is 0.
@@ -3053,7 +3105,7 @@ var validate$a = function (value, ref) {
3053
3105
  }
3054
3106
 
3055
3107
  var regexPart = decimals === '*' ? '+' : ("{1," + decimals + "}");
3056
- var regex = new RegExp(("^-?\\d*(\\" + separator + "\\d" + regexPart + ")?$"));
3108
+ var regex = new RegExp(("^[-+]?\\d*(\\" + separator + "\\d" + regexPart + ")?$"));
3057
3109
 
3058
3110
  if (! regex.test(value)) {
3059
3111
  return false;
@@ -3065,8 +3117,11 @@ var validate$a = function (value, ref) {
3065
3117
  return parsedValue === parsedValue;
3066
3118
  };
3067
3119
 
3120
+ var paramNames$a = ['decimals', 'separator'];
3121
+
3068
3122
  var decimal = {
3069
- validate: validate$a
3123
+ validate: validate$a,
3124
+ paramNames: paramNames$a
3070
3125
  };
3071
3126
 
3072
3127
  var validate$b = function (value, ref) {
@@ -3464,19 +3519,18 @@ module.exports = exports['default'];
3464
3519
 
3465
3520
  var isEmail = unwrapExports(isEmail_1);
3466
3521
 
3467
- var validate$d = function (value, ref) {
3468
- if ( ref === void 0 ) ref = [];
3469
- var multiple = ref[0]; if ( multiple === void 0 ) multiple = false;
3522
+ var validate$d = function (value, options) {
3523
+ if ( options === void 0 ) options = {};
3470
3524
 
3471
- if (multiple) {
3525
+ if (options.multiple) {
3472
3526
  value = value.split(',').map(function (emailStr) { return emailStr.trim(); });
3473
3527
  }
3474
3528
 
3475
3529
  if (Array.isArray(value)) {
3476
- return value.every(function (val) { return isEmail(String(val)); });
3530
+ return value.every(function (val) { return isEmail(String(val), options); });
3477
3531
  }
3478
3532
 
3479
- return isEmail(String(value));
3533
+ return isEmail(String(value), options);
3480
3534
  };
3481
3535
 
3482
3536
  var email = {
@@ -3519,6 +3573,10 @@ var toArray = function (arrayLike) {
3519
3573
 
3520
3574
  /* istanbul ignore next */
3521
3575
  return array;
3576
+ };
3577
+
3578
+ var isEmptyArray = function (arr) {
3579
+ return Array.isArray(arr) && arr.length === 0;
3522
3580
  };
3523
3581
 
3524
3582
  var validate$e = function (value, options) {
@@ -3576,8 +3634,8 @@ var integer = {
3576
3634
  };
3577
3635
 
3578
3636
  var validate$j = function (value, ref) {
3579
- if ( ref === void 0 ) ref = [];
3580
- var version = ref[0]; if ( version === void 0 ) version = 4;
3637
+ if ( ref === void 0 ) ref = {};
3638
+ var version = ref.version; if ( version === void 0 ) version = 4;
3581
3639
 
3582
3640
  if (isNullOrUndefined(value)) {
3583
3641
  value = '';
@@ -3590,8 +3648,11 @@ var validate$j = function (value, ref) {
3590
3648
  return isIP(value, version);
3591
3649
  };
3592
3650
 
3651
+ var paramNames$b = ['version'];
3652
+
3593
3653
  var ip = {
3594
- validate: validate$j
3654
+ validate: validate$j,
3655
+ paramNames: paramNames$b
3595
3656
  };
3596
3657
 
3597
3658
  var validate$k = function (value, ref) {
@@ -3663,6 +3724,10 @@ var validate$n = function (value, ref) {
3663
3724
  return length >= 0;
3664
3725
  }
3665
3726
 
3727
+ if (Array.isArray(value)) {
3728
+ return value.every(function (val) { return validate$n(val, [length]); });
3729
+ }
3730
+
3666
3731
  return String(value).length <= length;
3667
3732
  };
3668
3733
 
@@ -3673,10 +3738,14 @@ var max$1 = {
3673
3738
  var validate$o = function (value, ref) {
3674
3739
  var max = ref[0];
3675
3740
 
3676
- if (Array.isArray(value) || value === null || value === undefined || value === '') {
3741
+ if (value === null || value === undefined || value === '') {
3677
3742
  return false;
3678
3743
  }
3679
3744
 
3745
+ if (Array.isArray(value)) {
3746
+ return value.length > 0 && value.every(function (val) { return validate$o(val, [max]); });
3747
+ }
3748
+
3680
3749
  return Number(value) <= max;
3681
3750
  };
3682
3751
 
@@ -3700,6 +3769,11 @@ var validate$q = function (value, ref) {
3700
3769
  if (value === undefined || value === null) {
3701
3770
  return false;
3702
3771
  }
3772
+
3773
+ if (Array.isArray(value)) {
3774
+ return value.every(function (val) { return validate$q(val, [length]); });
3775
+ }
3776
+
3703
3777
  return String(value).length >= length;
3704
3778
  };
3705
3779
 
@@ -3710,10 +3784,14 @@ var min$1 = {
3710
3784
  var validate$r = function (value, ref) {
3711
3785
  var min = ref[0];
3712
3786
 
3713
- if (Array.isArray(value) || value === null || value === undefined || value === '') {
3787
+ if (value === null || value === undefined || value === '') {
3714
3788
  return false;
3715
3789
  }
3716
3790
 
3791
+ if (Array.isArray(value)) {
3792
+ return value.length > 0 && value.every(function (val) { return validate$r(val, [min]); });
3793
+ }
3794
+
3717
3795
  return Number(value) >= min;
3718
3796
  };
3719
3797
 
@@ -3734,26 +3812,32 @@ var numeric = {
3734
3812
  };
3735
3813
 
3736
3814
  var validate$t = function (value, ref) {
3737
- var regex = ref[0];
3738
- var flags = ref.slice(1);
3815
+ var expression = ref.expression;
3739
3816
 
3740
- if (regex instanceof RegExp) {
3741
- return regex.test(value);
3817
+ if (typeof expression === 'string') {
3818
+ expression = new RegExp(expression);
3742
3819
  }
3743
3820
 
3744
- return new RegExp(regex, flags).test(String(value));
3821
+ if (Array.isArray(value)) {
3822
+ return value.every(function (val) { return validate$t(val, { expression: expression }); });
3823
+ }
3824
+
3825
+ return expression.test(String(value));
3745
3826
  };
3746
3827
 
3828
+ var paramNames$c = ['expression'];
3829
+
3747
3830
  var regex = {
3748
- validate: validate$t
3831
+ validate: validate$t,
3832
+ paramNames: paramNames$c
3749
3833
  };
3750
3834
 
3751
3835
  var validate$u = function (value, ref) {
3752
3836
  if ( ref === void 0 ) ref = [];
3753
3837
  var invalidateFalse = ref[0]; if ( invalidateFalse === void 0 ) invalidateFalse = false;
3754
3838
 
3755
- if (Array.isArray(value)) {
3756
- return !!value.length;
3839
+ if (isEmptyArray(value)) {
3840
+ return false;
3757
3841
  }
3758
3842
 
3759
3843
  // incase a field considers `false` as an empty value like checkboxes.
@@ -3871,7 +3955,7 @@ function isURL(url, options) {
3871
3955
 
3872
3956
  split = url.split('://');
3873
3957
  if (split.length > 1) {
3874
- protocol = split.shift();
3958
+ protocol = split.shift().toLowerCase();
3875
3959
  if (options.require_valid_protocol && options.protocols.indexOf(protocol) === -1) {
3876
3960
  return false;
3877
3961
  }
@@ -3947,11 +4031,9 @@ module.exports = exports['default'];
3947
4031
 
3948
4032
  var isURL = unwrapExports(isURL_1);
3949
4033
 
3950
- var validate$w = function (value, ref) {
3951
- if ( ref === void 0 ) ref = [];
3952
- var requireProtocol = ref[0]; if ( requireProtocol === void 0 ) requireProtocol = false;
4034
+ var validate$w = function (value, options) {
4035
+ if ( options === void 0 ) options = {};
3953
4036
 
3954
- var options = { require_protocol: !!requireProtocol, allow_underscores: true };
3955
4037
  if (isNullOrUndefined(value)) {
3956
4038
  value = '';
3957
4039
  }