@wix/bex-utils 2.95.0 → 2.96.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.
@@ -18,9 +18,9 @@ var require_lodash = __commonJS({
18
18
  init_define_process_env();
19
19
  (function() {
20
20
  var undefined2;
21
- var VERSION = "4.17.23";
21
+ var VERSION = "4.18.1";
22
22
  var LARGE_ARRAY_SIZE = 200;
23
- 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`";
23
+ 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`";
24
24
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
25
25
  var MAX_MEMOIZE_SIZE = 500;
26
26
  var PLACEHOLDER = "__lodash_placeholder__";
@@ -1950,19 +1950,12 @@ var require_lodash = __commonJS({
1950
1950
  if (!length) {
1951
1951
  return true;
1952
1952
  }
1953
- var isRootPrimitive = object == null || typeof object !== "object" && typeof object !== "function";
1954
1953
  while (++index < length) {
1955
- var key = path[index];
1956
- if (typeof key !== "string") {
1957
- continue;
1958
- }
1954
+ var key = toKey(path[index]);
1959
1955
  if (key === "__proto__" && !hasOwnProperty.call(object, "__proto__")) {
1960
1956
  return false;
1961
1957
  }
1962
- if (key === "constructor" && index + 1 < length && typeof path[index + 1] === "string" && path[index + 1] === "prototype") {
1963
- if (isRootPrimitive && index === 0) {
1964
- continue;
1965
- }
1958
+ if ((key === "constructor" || key === "prototype") && index < length - 1) {
1966
1959
  return false;
1967
1960
  }
1968
1961
  }
@@ -3294,7 +3287,7 @@ var require_lodash = __commonJS({
3294
3287
  var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
3295
3288
  while (++index < length) {
3296
3289
  var pair = pairs[index];
3297
- result2[pair[0]] = pair[1];
3290
+ baseAssignValue(result2, pair[0], pair[1]);
3298
3291
  }
3299
3292
  return result2;
3300
3293
  }
@@ -4678,8 +4671,13 @@ var require_lodash = __commonJS({
4678
4671
  options = undefined2;
4679
4672
  }
4680
4673
  string = toString(string);
4681
- options = assignInWith({}, options, settings, customDefaultsAssignIn);
4682
- var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
4674
+ options = assignWith({}, options, settings, customDefaultsAssignIn);
4675
+ var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
4676
+ arrayEach(importsKeys, function(key) {
4677
+ if (reForbiddenIdentifierChars.test(key)) {
4678
+ throw new Error2(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
4679
+ }
4680
+ });
4683
4681
  var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
4684
4682
  var reDelimiters = RegExp2(
4685
4683
  (options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",