vee-validate 2.2.12 → 2.2.13

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vee-validate v2.2.12
2
+ * vee-validate v2.2.13
3
3
  * (c) 2019 Abdelrahman Awad
4
4
  * @license MIT
5
5
  */
@@ -416,7 +416,7 @@
416
416
  if (token) {
417
417
  hours = parseInt(token[2], 10);
418
418
 
419
- if (!validateTimezone(hours)) {
419
+ if (!validateTimezone()) {
420
420
  return NaN
421
421
  }
422
422
 
@@ -2092,7 +2092,7 @@
2092
2092
  var timePattern = matchResult[2];
2093
2093
 
2094
2094
  if (!timePattern) {
2095
- return dateLongFormatter(pattern, formatLong, options)
2095
+ return dateLongFormatter(pattern, formatLong)
2096
2096
  }
2097
2097
 
2098
2098
  var dateTimeFormat;
@@ -2114,8 +2114,8 @@
2114
2114
  }
2115
2115
 
2116
2116
  return dateTimeFormat
2117
- .replace('{{date}}', dateLongFormatter(datePattern, formatLong, options))
2118
- .replace('{{time}}', timeLongFormatter(timePattern, formatLong, options))
2117
+ .replace('{{date}}', dateLongFormatter(datePattern, formatLong))
2118
+ .replace('{{time}}', timeLongFormatter(timePattern, formatLong))
2119
2119
  }
2120
2120
 
2121
2121
  var longFormatters = {
@@ -2651,40 +2651,6 @@
2651
2651
  return date.getTime() < dateToCompare.getTime()
2652
2652
  }
2653
2653
 
2654
- /**
2655
- * @name isDate
2656
- * @category Common Helpers
2657
- * @summary Is the given value a date?
2658
- *
2659
- * @description
2660
- * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
2661
- *
2662
- * @param {*} value - the value to check
2663
- * @param {Options} [options] - the object with options. Unused; present for FP submodule compatibility sake. See [Options]{@link https://date-fns.org/docs/Options}
2664
- * @returns {boolean} true if the given value is a date
2665
- * @throws {TypeError} 1 arguments required
2666
- *
2667
- * @example
2668
- * // For a valid date:
2669
- * var result = isDate(new Date())
2670
- * //=> true
2671
- *
2672
- * @example
2673
- * // For an invalid date:
2674
- * var result = isDate(new Date(NaN))
2675
- * //=> true
2676
- *
2677
- * @example
2678
- * // For some value:
2679
- * var result = isDate('2014-02-31')
2680
- * //=> false
2681
- *
2682
- * @example
2683
- * // For an object:
2684
- * var result = isDate({})
2685
- * //=> false
2686
- */
2687
-
2688
2654
  /**
2689
2655
  * @name isEqual
2690
2656
  * @category Common Helpers
@@ -4407,8 +4373,6 @@
4407
4373
  return input.match(escapedStringRegExp$1)[1].replace(doubleQuoteRegExp$1, "'")
4408
4374
  }
4409
4375
 
4410
- // This file is generated automatically by `scripts/build/indices.js`. Please, don't change it.
4411
-
4412
4376
  //
4413
4377
 
4414
4378
  /**
@@ -4739,29 +4703,34 @@
4739
4703
  Object.defineProperty(exports, "__esModule", {
4740
4704
  value: true
4741
4705
  });
4706
+ exports.default = assertString;
4742
4707
 
4743
- 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; };
4708
+ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4744
4709
 
4745
- exports.default = assertString;
4746
4710
  function assertString(input) {
4747
4711
  var isString = typeof input === 'string' || input instanceof String;
4748
4712
 
4749
4713
  if (!isString) {
4750
- var invalidType = void 0;
4714
+ var invalidType;
4715
+
4751
4716
  if (input === null) {
4752
4717
  invalidType = 'null';
4753
4718
  } else {
4754
- invalidType = typeof input === 'undefined' ? 'undefined' : _typeof(input);
4719
+ invalidType = _typeof(input);
4720
+
4755
4721
  if (invalidType === 'object' && input.constructor && input.constructor.hasOwnProperty('name')) {
4756
4722
  invalidType = input.constructor.name;
4757
4723
  } else {
4758
- invalidType = 'a ' + invalidType;
4724
+ invalidType = "a ".concat(invalidType);
4759
4725
  }
4760
4726
  }
4761
- throw new TypeError('Expected string but received ' + invalidType + '.');
4727
+
4728
+ throw new TypeError("Expected string but received ".concat(invalidType, "."));
4762
4729
  }
4763
4730
  }
4764
- module.exports = exports['default'];
4731
+
4732
+ module.exports = exports.default;
4733
+ module.exports.default = exports.default;
4765
4734
  });
4766
4735
 
4767
4736
  unwrapExports(assertString_1);
@@ -4773,9 +4742,7 @@
4773
4742
  });
4774
4743
  exports.default = isCreditCard;
4775
4744
 
4776
-
4777
-
4778
- var _assertString2 = _interopRequireDefault(assertString_1);
4745
+ var _assertString = _interopRequireDefault(assertString_1);
4779
4746
 
4780
4747
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4781
4748
 
@@ -4784,20 +4751,25 @@
4784
4751
  /* eslint-enable max-len */
4785
4752
 
4786
4753
  function isCreditCard(str) {
4787
- (0, _assertString2.default)(str);
4754
+ (0, _assertString.default)(str);
4788
4755
  var sanitized = str.replace(/[- ]+/g, '');
4756
+
4789
4757
  if (!creditCard.test(sanitized)) {
4790
4758
  return false;
4791
4759
  }
4760
+
4792
4761
  var sum = 0;
4793
- var digit = void 0;
4794
- var tmpNum = void 0;
4795
- var shouldDouble = void 0;
4762
+ var digit;
4763
+ var tmpNum;
4764
+ var shouldDouble;
4765
+
4796
4766
  for (var i = sanitized.length - 1; i >= 0; i--) {
4797
4767
  digit = sanitized.substring(i, i + 1);
4798
4768
  tmpNum = parseInt(digit, 10);
4769
+
4799
4770
  if (shouldDouble) {
4800
4771
  tmpNum *= 2;
4772
+
4801
4773
  if (tmpNum >= 10) {
4802
4774
  sum += tmpNum % 10 + 1;
4803
4775
  } else {
@@ -4806,11 +4778,15 @@
4806
4778
  } else {
4807
4779
  sum += tmpNum;
4808
4780
  }
4781
+
4809
4782
  shouldDouble = !shouldDouble;
4810
4783
  }
4784
+
4811
4785
  return !!(sum % 10 === 0 ? sanitized : false);
4812
4786
  }
4813
- module.exports = exports['default'];
4787
+
4788
+ module.exports = exports.default;
4789
+ module.exports.default = exports.default;
4814
4790
  });
4815
4791
 
4816
4792
  var isCreditCard = unwrapExports(isCreditCard_1);
@@ -5641,18 +5617,22 @@
5641
5617
  value: true
5642
5618
  });
5643
5619
  exports.default = merge;
5620
+
5644
5621
  function merge() {
5645
5622
  var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
5646
- var defaults = arguments[1];
5623
+ var defaults = arguments.length > 1 ? arguments[1] : undefined;
5647
5624
 
5648
5625
  for (var key in defaults) {
5649
5626
  if (typeof obj[key] === 'undefined') {
5650
5627
  obj[key] = defaults[key];
5651
5628
  }
5652
5629
  }
5630
+
5653
5631
  return obj;
5654
5632
  }
5655
- module.exports = exports['default'];
5633
+
5634
+ module.exports = exports.default;
5635
+ module.exports.default = exports.default;
5656
5636
  });
5657
5637
 
5658
5638
  unwrapExports(merge_1);
@@ -5662,23 +5642,21 @@
5662
5642
  Object.defineProperty(exports, "__esModule", {
5663
5643
  value: true
5664
5644
  });
5665
-
5666
- 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; };
5667
-
5668
5645
  exports.default = isByteLength;
5669
5646
 
5670
-
5671
-
5672
- var _assertString2 = _interopRequireDefault(assertString_1);
5647
+ var _assertString = _interopRequireDefault(assertString_1);
5673
5648
 
5674
5649
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
5675
5650
 
5651
+ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
5652
+
5676
5653
  /* eslint-disable prefer-rest-params */
5677
5654
  function isByteLength(str, options) {
5678
- (0, _assertString2.default)(str);
5679
- var min = void 0;
5680
- var max = void 0;
5681
- if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) === 'object') {
5655
+ (0, _assertString.default)(str);
5656
+ var min;
5657
+ var max;
5658
+
5659
+ if (_typeof(options) === 'object') {
5682
5660
  min = options.min || 0;
5683
5661
  max = options.max;
5684
5662
  } else {
@@ -5686,10 +5664,13 @@
5686
5664
  min = arguments[1];
5687
5665
  max = arguments[2];
5688
5666
  }
5667
+
5689
5668
  var len = encodeURI(str).split(/%..|./).length - 1;
5690
5669
  return len >= min && (typeof max === 'undefined' || len <= max);
5691
5670
  }
5692
- module.exports = exports['default'];
5671
+
5672
+ module.exports = exports.default;
5673
+ module.exports.default = exports.default;
5693
5674
  });
5694
5675
 
5695
5676
  unwrapExports(isByteLength_1);
@@ -5701,13 +5682,9 @@
5701
5682
  });
5702
5683
  exports.default = isFQDN;
5703
5684
 
5685
+ var _assertString = _interopRequireDefault(assertString_1);
5704
5686
 
5705
-
5706
- var _assertString2 = _interopRequireDefault(assertString_1);
5707
-
5708
-
5709
-
5710
- var _merge2 = _interopRequireDefault(merge_1);
5687
+ var _merge = _interopRequireDefault(merge_1);
5711
5688
 
5712
5689
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
5713
5690
 
@@ -5718,48 +5695,61 @@
5718
5695
  };
5719
5696
 
5720
5697
  function isFQDN(str, options) {
5721
- (0, _assertString2.default)(str);
5722
- options = (0, _merge2.default)(options, default_fqdn_options);
5723
-
5698
+ (0, _assertString.default)(str);
5699
+ options = (0, _merge.default)(options, default_fqdn_options);
5724
5700
  /* Remove the optional trailing dot before checking validity */
5701
+
5725
5702
  if (options.allow_trailing_dot && str[str.length - 1] === '.') {
5726
5703
  str = str.substring(0, str.length - 1);
5727
5704
  }
5705
+
5728
5706
  var parts = str.split('.');
5707
+
5729
5708
  for (var i = 0; i < parts.length; i++) {
5730
5709
  if (parts[i].length > 63) {
5731
5710
  return false;
5732
5711
  }
5733
5712
  }
5713
+
5734
5714
  if (options.require_tld) {
5735
5715
  var tld = parts.pop();
5716
+
5736
5717
  if (!parts.length || !/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {
5737
5718
  return false;
5738
- }
5739
- // disallow spaces
5719
+ } // disallow spaces
5720
+
5721
+
5740
5722
  if (/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(tld)) {
5741
5723
  return false;
5742
5724
  }
5743
5725
  }
5726
+
5744
5727
  for (var part, _i = 0; _i < parts.length; _i++) {
5745
5728
  part = parts[_i];
5729
+
5746
5730
  if (options.allow_underscores) {
5747
5731
  part = part.replace(/_/g, '');
5748
5732
  }
5733
+
5749
5734
  if (!/^[a-z\u00a1-\uffff0-9-]+$/i.test(part)) {
5750
5735
  return false;
5751
- }
5752
- // disallow full-width chars
5736
+ } // disallow full-width chars
5737
+
5738
+
5753
5739
  if (/[\uff01-\uff5e]/.test(part)) {
5754
5740
  return false;
5755
5741
  }
5742
+
5756
5743
  if (part[0] === '-' || part[part.length - 1] === '-') {
5757
5744
  return false;
5758
5745
  }
5759
5746
  }
5747
+
5760
5748
  return true;
5761
5749
  }
5762
- module.exports = exports['default'];
5750
+
5751
+ module.exports = exports.default;
5752
+ module.exports.default = exports.default;
5763
5753
  });
5764
5754
 
5765
5755
  var isFQDN = unwrapExports(isFQDN_1);
@@ -5771,9 +5761,7 @@
5771
5761
  });
5772
5762
  exports.default = isIP;
5773
5763
 
5774
-
5775
-
5776
- var _assertString2 = _interopRequireDefault(assertString_1);
5764
+ var _assertString = _interopRequireDefault(assertString_1);
5777
5765
 
5778
5766
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
5779
5767
 
@@ -5782,15 +5770,16 @@
5782
5770
 
5783
5771
  function isIP(str) {
5784
5772
  var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
5785
-
5786
- (0, _assertString2.default)(str);
5773
+ (0, _assertString.default)(str);
5787
5774
  version = String(version);
5775
+
5788
5776
  if (!version) {
5789
5777
  return isIP(str, 4) || isIP(str, 6);
5790
5778
  } else if (version === '4') {
5791
5779
  if (!ipv4Maybe.test(str)) {
5792
5780
  return false;
5793
5781
  }
5782
+
5794
5783
  var parts = str.split('.').sort(function (a, b) {
5795
5784
  return a - b;
5796
5785
  });
@@ -5798,18 +5787,19 @@
5798
5787
  } else if (version === '6') {
5799
5788
  var blocks = str.split(':');
5800
5789
  var foundOmissionBlock = false; // marker to indicate ::
5801
-
5802
5790
  // At least some OS accept the last 32 bits of an IPv6 address
5803
5791
  // (i.e. 2 of the blocks) in IPv4 notation, and RFC 3493 says
5804
5792
  // that '::ffff:a.b.c.d' is valid for IPv4-mapped IPv6 addresses,
5805
5793
  // and '::a.b.c.d' is deprecated, but also valid.
5794
+
5806
5795
  var foundIPv4TransitionBlock = isIP(blocks[blocks.length - 1], 4);
5807
5796
  var expectedNumberOfBlocks = foundIPv4TransitionBlock ? 7 : 8;
5808
5797
 
5809
5798
  if (blocks.length > expectedNumberOfBlocks) {
5810
5799
  return false;
5811
- }
5812
- // initial or final ::
5800
+ } // initial or final ::
5801
+
5802
+
5813
5803
  if (str === '::') {
5814
5804
  return true;
5815
5805
  } else if (str.substr(0, 2) === '::') {
@@ -5829,19 +5819,25 @@
5829
5819
  if (foundOmissionBlock) {
5830
5820
  return false; // multiple :: in address
5831
5821
  }
5822
+
5832
5823
  foundOmissionBlock = true;
5833
5824
  } else if (foundIPv4TransitionBlock && i === blocks.length - 1) ; else if (!ipv6Block.test(blocks[i])) {
5834
5825
  return false;
5835
5826
  }
5836
5827
  }
5828
+
5837
5829
  if (foundOmissionBlock) {
5838
5830
  return blocks.length >= 1;
5839
5831
  }
5832
+
5840
5833
  return blocks.length === expectedNumberOfBlocks;
5841
5834
  }
5835
+
5842
5836
  return false;
5843
5837
  }
5844
- module.exports = exports['default'];
5838
+
5839
+ module.exports = exports.default;
5840
+ module.exports.default = exports.default;
5845
5841
  });
5846
5842
 
5847
5843
  var isIP = unwrapExports(isIP_1);
@@ -5853,25 +5849,15 @@
5853
5849
  });
5854
5850
  exports.default = isEmail;
5855
5851
 
5852
+ var _assertString = _interopRequireDefault(assertString_1);
5856
5853
 
5854
+ var _merge = _interopRequireDefault(merge_1);
5857
5855
 
5858
- var _assertString2 = _interopRequireDefault(assertString_1);
5859
-
5856
+ var _isByteLength = _interopRequireDefault(isByteLength_1);
5860
5857
 
5858
+ var _isFQDN = _interopRequireDefault(isFQDN_1);
5861
5859
 
5862
- var _merge2 = _interopRequireDefault(merge_1);
5863
-
5864
-
5865
-
5866
- var _isByteLength2 = _interopRequireDefault(isByteLength_1);
5867
-
5868
-
5869
-
5870
- var _isFQDN2 = _interopRequireDefault(isFQDN_1);
5871
-
5872
-
5873
-
5874
- var _isIP2 = _interopRequireDefault(isIP_1);
5860
+ var _isIP = _interopRequireDefault(isIP_1);
5875
5861
 
5876
5862
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
5877
5863
 
@@ -5881,9 +5867,10 @@
5881
5867
  allow_utf8_local_part: true,
5882
5868
  require_tld: true
5883
5869
  };
5884
-
5885
5870
  /* eslint-disable max-len */
5871
+
5886
5872
  /* eslint-disable no-control-regex */
5873
+
5887
5874
  var displayName = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\,\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s]*<(.+)>$/i;
5888
5875
  var emailUserPart = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i;
5889
5876
  var gmailUserPart = /^[a-z\d]+$/;
@@ -5891,14 +5878,16 @@
5891
5878
  var emailUserUtf8Part = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i;
5892
5879
  var quotedEmailUserUtf8 = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;
5893
5880
  /* eslint-enable max-len */
5881
+
5894
5882
  /* eslint-enable no-control-regex */
5895
5883
 
5896
5884
  function isEmail(str, options) {
5897
- (0, _assertString2.default)(str);
5898
- options = (0, _merge2.default)(options, default_email_options);
5885
+ (0, _assertString.default)(str);
5886
+ options = (0, _merge.default)(options, default_email_options);
5899
5887
 
5900
5888
  if (options.require_display_name || options.allow_display_name) {
5901
5889
  var display_email = str.match(displayName);
5890
+
5902
5891
  if (display_email) {
5903
5892
  str = display_email[1];
5904
5893
  } else if (options.require_display_name) {
@@ -5909,7 +5898,6 @@
5909
5898
  var parts = str.split('@');
5910
5899
  var domain = parts.pop();
5911
5900
  var user = parts.join('@');
5912
-
5913
5901
  var lower_domain = domain.toLowerCase();
5914
5902
 
5915
5903
  if (options.domain_specific_validation && (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com')) {
@@ -5920,17 +5908,19 @@
5920
5908
  Gmail only normalizes single dots, removing them from here is pointless,
5921
5909
  should be done in normalizeEmail
5922
5910
  */
5923
- user = user.toLowerCase();
5911
+ user = user.toLowerCase(); // Removing sub-address from username before gmail validation
5924
5912
 
5925
- // Removing sub-address from username before gmail validation
5926
- var username = user.split('+')[0];
5913
+ var username = user.split('+')[0]; // Dots are not included in gmail length restriction
5927
5914
 
5928
- // Dots are not included in gmail length restriction
5929
- if (!(0, _isByteLength2.default)(username.replace('.', ''), { min: 6, max: 30 })) {
5915
+ if (!(0, _isByteLength.default)(username.replace('.', ''), {
5916
+ min: 6,
5917
+ max: 30
5918
+ })) {
5930
5919
  return false;
5931
5920
  }
5932
5921
 
5933
5922
  var _user_parts = username.split('.');
5923
+
5934
5924
  for (var i = 0; i < _user_parts.length; i++) {
5935
5925
  if (!gmailUserPart.test(_user_parts[i])) {
5936
5926
  return false;
@@ -5938,23 +5928,29 @@
5938
5928
  }
5939
5929
  }
5940
5930
 
5941
- if (!(0, _isByteLength2.default)(user, { max: 64 }) || !(0, _isByteLength2.default)(domain, { max: 254 })) {
5931
+ if (!(0, _isByteLength.default)(user, {
5932
+ max: 64
5933
+ }) || !(0, _isByteLength.default)(domain, {
5934
+ max: 254
5935
+ })) {
5942
5936
  return false;
5943
5937
  }
5944
5938
 
5945
- if (!(0, _isFQDN2.default)(domain, { require_tld: options.require_tld })) {
5939
+ if (!(0, _isFQDN.default)(domain, {
5940
+ require_tld: options.require_tld
5941
+ })) {
5946
5942
  if (!options.allow_ip_domain) {
5947
5943
  return false;
5948
5944
  }
5949
5945
 
5950
- if (!(0, _isIP2.default)(domain)) {
5946
+ if (!(0, _isIP.default)(domain)) {
5951
5947
  if (!domain.startsWith('[') || !domain.endsWith(']')) {
5952
5948
  return false;
5953
5949
  }
5954
5950
 
5955
5951
  var noBracketdomain = domain.substr(1, domain.length - 2);
5956
5952
 
5957
- if (noBracketdomain.length === 0 || !(0, _isIP2.default)(noBracketdomain)) {
5953
+ if (noBracketdomain.length === 0 || !(0, _isIP.default)(noBracketdomain)) {
5958
5954
  return false;
5959
5955
  }
5960
5956
  }
@@ -5966,8 +5962,8 @@
5966
5962
  }
5967
5963
 
5968
5964
  var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;
5969
-
5970
5965
  var user_parts = user.split('.');
5966
+
5971
5967
  for (var _i = 0; _i < user_parts.length; _i++) {
5972
5968
  if (!pattern.test(user_parts[_i])) {
5973
5969
  return false;
@@ -5976,7 +5972,9 @@
5976
5972
 
5977
5973
  return true;
5978
5974
  }
5979
- module.exports = exports['default'];
5975
+
5976
+ module.exports = exports.default;
5977
+ module.exports.default = exports.default;
5980
5978
  });
5981
5979
 
5982
5980
  var isEmail = unwrapExports(isEmail_1);
@@ -6361,21 +6359,13 @@
6361
6359
  });
6362
6360
  exports.default = isURL;
6363
6361
 
6362
+ var _assertString = _interopRequireDefault(assertString_1);
6364
6363
 
6364
+ var _isFQDN = _interopRequireDefault(isFQDN_1);
6365
6365
 
6366
- var _assertString2 = _interopRequireDefault(assertString_1);
6367
-
6368
-
6369
-
6370
- var _isFQDN2 = _interopRequireDefault(isFQDN_1);
6371
-
6372
-
6373
-
6374
- var _isIP2 = _interopRequireDefault(isIP_1);
6375
-
6366
+ var _isIP = _interopRequireDefault(isIP_1);
6376
6367
 
6377
-
6378
- var _merge2 = _interopRequireDefault(merge_1);
6368
+ var _merge = _interopRequireDefault(merge_1);
6379
6369
 
6380
6370
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6381
6371
 
@@ -6389,7 +6379,6 @@
6389
6379
  allow_trailing_dot: false,
6390
6380
  allow_protocol_relative_urls: false
6391
6381
  };
6392
-
6393
6382
  var wrapped_ipv6 = /^\[([^\]]+)\](?::([0-9]+))?$/;
6394
6383
 
6395
6384
  function isRegExp(obj) {
@@ -6399,40 +6388,37 @@
6399
6388
  function checkHost(host, matches) {
6400
6389
  for (var i = 0; i < matches.length; i++) {
6401
6390
  var match = matches[i];
6391
+
6402
6392
  if (host === match || isRegExp(match) && match.test(host)) {
6403
6393
  return true;
6404
6394
  }
6405
6395
  }
6396
+
6406
6397
  return false;
6407
6398
  }
6408
6399
 
6409
6400
  function isURL(url, options) {
6410
- (0, _assertString2.default)(url);
6401
+ (0, _assertString.default)(url);
6402
+
6411
6403
  if (!url || url.length >= 2083 || /[\s<>]/.test(url)) {
6412
6404
  return false;
6413
6405
  }
6406
+
6414
6407
  if (url.indexOf('mailto:') === 0) {
6415
6408
  return false;
6416
6409
  }
6417
- options = (0, _merge2.default)(options, default_url_options);
6418
- var protocol = void 0,
6419
- auth = void 0,
6420
- host = void 0,
6421
- hostname = void 0,
6422
- port = void 0,
6423
- port_str = void 0,
6424
- split = void 0,
6425
- ipv6 = void 0;
6426
6410
 
6411
+ options = (0, _merge.default)(options, default_url_options);
6412
+ var protocol, auth, host, hostname, port, port_str, split, ipv6;
6427
6413
  split = url.split('#');
6428
6414
  url = split.shift();
6429
-
6430
6415
  split = url.split('?');
6431
6416
  url = split.shift();
6432
-
6433
6417
  split = url.split('://');
6418
+
6434
6419
  if (split.length > 1) {
6435
6420
  protocol = split.shift().toLowerCase();
6421
+
6436
6422
  if (options.require_valid_protocol && options.protocols.indexOf(protocol) === -1) {
6437
6423
  return false;
6438
6424
  }
@@ -6442,8 +6428,10 @@
6442
6428
  if (!options.allow_protocol_relative_urls) {
6443
6429
  return false;
6444
6430
  }
6431
+
6445
6432
  split[0] = url.substr(2);
6446
6433
  }
6434
+
6447
6435
  url = split.join('://');
6448
6436
 
6449
6437
  if (url === '') {
@@ -6458,17 +6446,24 @@
6458
6446
  }
6459
6447
 
6460
6448
  split = url.split('@');
6449
+
6461
6450
  if (split.length > 1) {
6451
+ if (options.disallow_auth) {
6452
+ return false;
6453
+ }
6454
+
6462
6455
  auth = split.shift();
6456
+
6463
6457
  if (auth.indexOf(':') >= 0 && auth.split(':').length > 2) {
6464
6458
  return false;
6465
6459
  }
6466
6460
  }
6467
- hostname = split.join('@');
6468
6461
 
6462
+ hostname = split.join('@');
6469
6463
  port_str = null;
6470
6464
  ipv6 = null;
6471
6465
  var ipv6_match = hostname.match(wrapped_ipv6);
6466
+
6472
6467
  if (ipv6_match) {
6473
6468
  host = '';
6474
6469
  ipv6 = ipv6_match[1];
@@ -6476,6 +6471,7 @@
6476
6471
  } else {
6477
6472
  split = hostname.split(':');
6478
6473
  host = split.shift();
6474
+
6479
6475
  if (split.length) {
6480
6476
  port_str = split.join(':');
6481
6477
  }
@@ -6483,12 +6479,13 @@
6483
6479
 
6484
6480
  if (port_str !== null) {
6485
6481
  port = parseInt(port_str, 10);
6482
+
6486
6483
  if (!/^[0-9]+$/.test(port_str) || port <= 0 || port > 65535) {
6487
6484
  return false;
6488
6485
  }
6489
6486
  }
6490
6487
 
6491
- if (!(0, _isIP2.default)(host) && !(0, _isFQDN2.default)(host, options) && (!ipv6 || !(0, _isIP2.default)(ipv6, 6))) {
6488
+ if (!(0, _isIP.default)(host) && !(0, _isFQDN.default)(host, options) && (!ipv6 || !(0, _isIP.default)(ipv6, 6))) {
6492
6489
  return false;
6493
6490
  }
6494
6491
 
@@ -6497,13 +6494,16 @@
6497
6494
  if (options.host_whitelist && !checkHost(host, options.host_whitelist)) {
6498
6495
  return false;
6499
6496
  }
6497
+
6500
6498
  if (options.host_blacklist && checkHost(host, options.host_blacklist)) {
6501
6499
  return false;
6502
6500
  }
6503
6501
 
6504
6502
  return true;
6505
6503
  }
6506
- module.exports = exports['default'];
6504
+
6505
+ module.exports = exports.default;
6506
+ module.exports.default = exports.default;
6507
6507
  });
6508
6508
 
6509
6509
  var isURL = unwrapExports(isURL_1);
@@ -6874,12 +6874,15 @@
6874
6874
  var this$1 = this;
6875
6875
 
6876
6876
  var matchesVM = isNullOrUndefined(this.vmId) ? function () { return true; } : function (i) { return i.vmId === this$1.vmId; };
6877
- if (isNullOrUndefined(scope)) {
6877
+ var matchesScope = function (i) { return i.scope === scope; };
6878
+ if (arguments.length === 0) {
6879
+ matchesScope = function () { return true; };
6880
+ } else if (isNullOrUndefined(scope)) {
6878
6881
  scope = null;
6879
6882
  }
6880
6883
 
6881
6884
  for (var i = 0; i < this.items.length; ++i) {
6882
- if (matchesVM(this.items[i]) && this.items[i].scope === scope) {
6885
+ if (matchesVM(this.items[i]) && matchesScope(this.items[i])) {
6883
6886
  this.items.splice(i, 1);
6884
6887
  --i;
6885
6888
  }
@@ -7916,7 +7919,7 @@
7916
7919
  this.updateDependencies();
7917
7920
  this.addActionListeners();
7918
7921
 
7919
- if (!this.name && !this.targetOf) {
7922
+ if ( !this.name && !this.targetOf) {
7920
7923
  warn('A field is missing a "name" or "data-vv-name" attribute');
7921
7924
  }
7922
7925
 
@@ -10620,7 +10623,7 @@
10620
10623
 
10621
10624
  // vid was changed.
10622
10625
  if (id !== vid && ctx.$_veeObserver.refs[id] === ctx) {
10623
- ctx.$_veeObserver.unsubscribe(ctx);
10626
+ ctx.$_veeObserver.unsubscribe({ vid: id });
10624
10627
  }
10625
10628
 
10626
10629
  ctx.$_veeObserver.subscribe(ctx);
@@ -11083,7 +11086,7 @@
11083
11086
  en: locale$1
11084
11087
  });
11085
11088
 
11086
- VeeValidate$1.version = '2.2.12';
11089
+ VeeValidate$1.version = '2.2.13';
11087
11090
  VeeValidate$1.Rules = Rules;
11088
11091
  VeeValidate$1.mapFields = mapFields;
11089
11092
  VeeValidate$1.ValidationProvider = ValidationProvider;