@wix/patterns-fields-utils 1.13.0 → 1.14.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.
@@ -47,9 +47,9 @@ var require_lodash = __commonJS({
47
47
  init_define_process_env();
48
48
  (function() {
49
49
  var undefined2;
50
- var VERSION = "4.17.23";
50
+ var VERSION = "4.18.1";
51
51
  var LARGE_ARRAY_SIZE = 200;
52
- var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
52
+ var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`", INVALID_TEMPL_IMPORTS_ERROR_TEXT = "Invalid `imports` option passed into `_.template`";
53
53
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
54
54
  var MAX_MEMOIZE_SIZE = 500;
55
55
  var PLACEHOLDER = "__lodash_placeholder__";
@@ -1979,19 +1979,12 @@ var require_lodash = __commonJS({
1979
1979
  if (!length) {
1980
1980
  return true;
1981
1981
  }
1982
- var isRootPrimitive = object == null || typeof object !== "object" && typeof object !== "function";
1983
1982
  while (++index < length) {
1984
- var key = path[index];
1985
- if (typeof key !== "string") {
1986
- continue;
1987
- }
1983
+ var key = toKey(path[index]);
1988
1984
  if (key === "__proto__" && !hasOwnProperty.call(object, "__proto__")) {
1989
1985
  return false;
1990
1986
  }
1991
- if (key === "constructor" && index + 1 < length && typeof path[index + 1] === "string" && path[index + 1] === "prototype") {
1992
- if (isRootPrimitive && index === 0) {
1993
- continue;
1994
- }
1987
+ if ((key === "constructor" || key === "prototype") && index < length - 1) {
1995
1988
  return false;
1996
1989
  }
1997
1990
  }
@@ -3323,7 +3316,7 @@ var require_lodash = __commonJS({
3323
3316
  var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
3324
3317
  while (++index < length) {
3325
3318
  var pair = pairs[index];
3326
- result2[pair[0]] = pair[1];
3319
+ baseAssignValue(result2, pair[0], pair[1]);
3327
3320
  }
3328
3321
  return result2;
3329
3322
  }
@@ -4707,8 +4700,13 @@ var require_lodash = __commonJS({
4707
4700
  options = undefined2;
4708
4701
  }
4709
4702
  string = toString(string);
4710
- options = assignInWith({}, options, settings, customDefaultsAssignIn);
4711
- var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
4703
+ options = assignWith({}, options, settings, customDefaultsAssignIn);
4704
+ var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
4705
+ arrayEach(importsKeys, function(key) {
4706
+ if (reForbiddenIdentifierChars.test(key)) {
4707
+ throw new Error2(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
4708
+ }
4709
+ });
4712
4710
  var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
4713
4711
  var reDelimiters = RegExp2(
4714
4712
  (options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",