@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.
@@ -40,9 +40,9 @@ var require_lodash = __commonJS({
40
40
  init_define_process_env();
41
41
  (function() {
42
42
  var undefined2;
43
- var VERSION = "4.17.23";
43
+ var VERSION = "4.18.1";
44
44
  var LARGE_ARRAY_SIZE = 200;
45
- 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`";
45
+ 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`";
46
46
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
47
47
  var MAX_MEMOIZE_SIZE = 500;
48
48
  var PLACEHOLDER = "__lodash_placeholder__";
@@ -1972,19 +1972,12 @@ var require_lodash = __commonJS({
1972
1972
  if (!length) {
1973
1973
  return true;
1974
1974
  }
1975
- var isRootPrimitive = object == null || typeof object !== "object" && typeof object !== "function";
1976
1975
  while (++index < length) {
1977
- var key = path[index];
1978
- if (typeof key !== "string") {
1979
- continue;
1980
- }
1976
+ var key = toKey(path[index]);
1981
1977
  if (key === "__proto__" && !hasOwnProperty.call(object, "__proto__")) {
1982
1978
  return false;
1983
1979
  }
1984
- if (key === "constructor" && index + 1 < length && typeof path[index + 1] === "string" && path[index + 1] === "prototype") {
1985
- if (isRootPrimitive && index === 0) {
1986
- continue;
1987
- }
1980
+ if ((key === "constructor" || key === "prototype") && index < length - 1) {
1988
1981
  return false;
1989
1982
  }
1990
1983
  }
@@ -3316,7 +3309,7 @@ var require_lodash = __commonJS({
3316
3309
  var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
3317
3310
  while (++index < length) {
3318
3311
  var pair = pairs[index];
3319
- result2[pair[0]] = pair[1];
3312
+ baseAssignValue(result2, pair[0], pair[1]);
3320
3313
  }
3321
3314
  return result2;
3322
3315
  }
@@ -4700,8 +4693,13 @@ var require_lodash = __commonJS({
4700
4693
  options = undefined2;
4701
4694
  }
4702
4695
  string = toString(string);
4703
- options = assignInWith({}, options, settings, customDefaultsAssignIn);
4704
- var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
4696
+ options = assignWith({}, options, settings, customDefaultsAssignIn);
4697
+ var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
4698
+ arrayEach(importsKeys, function(key) {
4699
+ if (reForbiddenIdentifierChars.test(key)) {
4700
+ throw new Error2(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
4701
+ }
4702
+ });
4705
4703
  var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
4706
4704
  var reDelimiters = RegExp2(
4707
4705
  (options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",