@firebase/util 1.7.3-canary.6efd96b78 → 1.7.3-canary.7e237cd47

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.
@@ -692,7 +692,7 @@ var getDefaults = function () {
692
692
  * info instead of swallowing so we can find these unknown cases
693
693
  * and add paths for them if needed.
694
694
  */
695
- console.info("Unable to get __FIREBASE_DEFAULTS__ due to: " + e);
695
+ console.info("Unable to get __FIREBASE_DEFAULTS__ due to: ".concat(e));
696
696
  return;
697
697
  }
698
698
  };
@@ -716,7 +716,7 @@ var getDefaultEmulatorHostnameAndPort = function (productName) {
716
716
  }
717
717
  var separatorIndex = host.lastIndexOf(':'); // Finding the last since IPv6 addr also has colons.
718
718
  if (separatorIndex <= 0 || separatorIndex + 1 === host.length) {
719
- throw new Error("Invalid host " + host + " with no separate hostname and port!");
719
+ throw new Error("Invalid host ".concat(host, " with no separate hostname and port!"));
720
720
  }
721
721
  // eslint-disable-next-line no-restricted-globals
722
722
  var port = parseInt(host.substring(separatorIndex + 1), 10);
@@ -738,7 +738,7 @@ var getDefaultAppConfig = function () { var _a; return (_a = getDefaults()) ===
738
738
  * prefixed by "_")
739
739
  * @public
740
740
  */
741
- var getExperimentalSetting = function (name) { var _a; return (_a = getDefaults()) === null || _a === void 0 ? void 0 : _a["_" + name]; };
741
+ var getExperimentalSetting = function (name) { var _a; return (_a = getDefaults()) === null || _a === void 0 ? void 0 : _a["_".concat(name)]; };
742
742
 
743
743
  /**
744
744
  * @license
@@ -831,7 +831,7 @@ function createMockUserToken(token, projectId) {
831
831
  }
832
832
  var payload = __assign({
833
833
  // Set all required fields to decent defaults
834
- iss: "https://securetoken.google.com/" + project, aud: project, iat: iat, exp: iat + 3600, auth_time: iat, sub: sub, user_id: sub, firebase: {
834
+ iss: "https://securetoken.google.com/".concat(project), aud: project, iat: iat, exp: iat + 3600, auth_time: iat, sub: sub, user_id: sub, firebase: {
835
835
  sign_in_provider: 'custom',
836
836
  identities: {}
837
837
  } }, token);
@@ -899,11 +899,11 @@ var ErrorFactory = /** @class */ (function () {
899
899
  data[_i - 1] = arguments[_i];
900
900
  }
901
901
  var customData = data[0] || {};
902
- var fullCode = this.service + "/" + code;
902
+ var fullCode = "".concat(this.service, "/").concat(code);
903
903
  var template = this.errors[code];
904
904
  var message = template ? replaceTemplate(template, customData) : 'Error';
905
905
  // Service Name: Error message (service/code).
906
- var fullMessage = this.serviceName + ": " + message + " (" + fullCode + ").";
906
+ var fullMessage = "".concat(this.serviceName, ": ").concat(message, " (").concat(fullCode, ").");
907
907
  var error = new FirebaseError(fullCode, fullMessage, customData);
908
908
  return error;
909
909
  };
@@ -912,7 +912,7 @@ var ErrorFactory = /** @class */ (function () {
912
912
  function replaceTemplate(template, data) {
913
913
  return template.replace(PATTERN, function (_, key) {
914
914
  var value = data[key];
915
- return value != null ? String(value) : "<" + key + "?>";
915
+ return value != null ? String(value) : "<".concat(key, "?>");
916
916
  });
917
917
  }
918
918
  var PATTERN = /\{\$([^}]+)}/g;
@@ -1769,7 +1769,7 @@ var validateArgCount = function (fnName, minCount, maxCount, argCount) {
1769
1769
  * @return The prefix to add to the error thrown for validation.
1770
1770
  */
1771
1771
  function errorPrefix(fnName, argName) {
1772
- return fnName + " failed: " + argName + " argument ";
1772
+ return "".concat(fnName, " failed: ").concat(argName, " argument ");
1773
1773
  }
1774
1774
  /**
1775
1775
  * @param fnName
@@ -2011,7 +2011,7 @@ function calculateBackoffMillis(backoffCount, intervalMillis, backoffFactor) {
2011
2011
  */
2012
2012
  function ordinal(i) {
2013
2013
  if (!Number.isFinite(i)) {
2014
- return "" + i;
2014
+ return "".concat(i);
2015
2015
  }
2016
2016
  return i + indicator(i);
2017
2017
  }