@wix/builder-services 1.16.2 → 1.16.4

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.
@@ -696,7 +696,7 @@ lodash.exports;
696
696
  }
697
697
  var runInContext = function runInContext2(context) {
698
698
  context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
699
- var Array2 = context.Array, Date = context.Date, Error = context.Error, Function2 = context.Function, Math = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String = context.String, TypeError = context.TypeError;
699
+ var Array2 = context.Array, Date = context.Date, Error2 = context.Error, Function2 = context.Function, Math = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String = context.String, TypeError = context.TypeError;
700
700
  var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
701
701
  var coreJsData = context["__core-js_shared__"];
702
702
  var funcToString = funcProto.toString;
@@ -4152,7 +4152,7 @@ lodash.exports;
4152
4152
  }
4153
4153
  function isNative(value) {
4154
4154
  if (isMaskable(value)) {
4155
- throw new Error(CORE_ERROR_TEXT);
4155
+ throw new Error2(CORE_ERROR_TEXT);
4156
4156
  }
4157
4157
  return baseIsNative(value);
4158
4158
  }
@@ -4667,7 +4667,7 @@ lodash.exports;
4667
4667
  var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
4668
4668
  arrayEach(importsKeys, function(key) {
4669
4669
  if (reForbiddenIdentifierChars.test(key)) {
4670
- throw new Error(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
4670
+ throw new Error2(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
4671
4671
  }
4672
4672
  });
4673
4673
  var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
@@ -4698,7 +4698,7 @@ lodash.exports;
4698
4698
  if (!variable) {
4699
4699
  source = "with (obj) {\n" + source + "\n}\n";
4700
4700
  } else if (reForbiddenIdentifierChars.test(variable)) {
4701
- throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT);
4701
+ throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT);
4702
4702
  }
4703
4703
  source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;");
4704
4704
  source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}";
@@ -4817,7 +4817,7 @@ lodash.exports;
4817
4817
  try {
4818
4818
  return apply(func, undefined$1, args);
4819
4819
  } catch (e) {
4820
- return isError(e) ? e : new Error(e);
4820
+ return isError(e) ? e : new Error2(e);
4821
4821
  }
4822
4822
  });
4823
4823
  var bindAll = flatRest(function(object, methodNames) {
@@ -5555,9 +5555,37 @@ const BusinessLoggerService = () => {
5555
5555
  reportBi: noopLog
5556
5556
  };
5557
5557
  };
5558
+ const HeadAppenderService = () => {
5559
+ const setHead = (content) => {
5560
+ if (typeof document === "undefined" || !content)
5561
+ return;
5562
+ document.head.insertAdjacentHTML("beforeend", content);
5563
+ };
5564
+ return {
5565
+ setHead
5566
+ };
5567
+ };
5568
+ const SiteMembersService = () => ({
5569
+ promptLogin: () => Promise.reject(new Error("promptLogin is not supported in this environment")),
5570
+ logout: () => Promise.resolve(),
5571
+ getMemberDetails: () => Promise.resolve(null),
5572
+ addMemberLoginListener: () => "",
5573
+ removeMemberLoginListener: () => {
5574
+ },
5575
+ addMemberDetailsRefreshListener: () => "",
5576
+ removeMemberDetailsRefreshListener: () => {
5577
+ }
5578
+ });
5579
+ const SeoService = () => ({
5580
+ setSeoEntity: () => Promise.resolve(),
5581
+ resetSeoEntity: () => Promise.resolve()
5582
+ });
5558
5583
  export {
5559
5584
  BusinessLoggerService,
5585
+ HeadAppenderService,
5560
5586
  LightboxService,
5587
+ SeoService,
5588
+ SiteMembersService,
5561
5589
  createServicesProvider,
5562
5590
  registerPopupReactRoot
5563
5591
  };