@vertexvis/utils 0.12.0-canary.52 → 0.12.0-canary.56

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.
@@ -73,7 +73,7 @@ function timeout() {
73
73
  if (!(typeof ms === 'number')) return [3 /*break*/, 4];
74
74
  promise = args[1];
75
75
  timeout_1 = new Promise(function (_, reject) {
76
- timer_1 = setTimeout(function () { return reject(new Error("Promise timed out after " + ms + "ms")); }, ms);
76
+ timer_1 = setTimeout(function () { return reject(new Error("Promise timed out after ".concat(ms, "ms"))); }, ms);
77
77
  });
78
78
  if (!(promise != null)) return [3 /*break*/, 2];
79
79
  return [4 /*yield*/, Promise.race([promise, timeout_1])];
@@ -319,7 +319,7 @@ var isOpaque = function (color) {
319
319
  * `#`.
320
320
  */
321
321
  var toHexString = function (color) {
322
- return "#" + componentToHex(color.r) + componentToHex(color.g) + componentToHex(color.b);
322
+ return "#".concat(componentToHex(color.r)).concat(componentToHex(color.g)).concat(componentToHex(color.b));
323
323
  };
324
324
  var componentToHex = function (num) {
325
325
  var hex = num.toString(16);
@@ -432,7 +432,7 @@ function required(name) {
432
432
  return input;
433
433
  }
434
434
  else {
435
- return { errors: [name + " is required."] };
435
+ return { errors: ["".concat(name, " is required.")] };
436
436
  }
437
437
  };
438
438
  }
@@ -450,7 +450,7 @@ function requiredProp(prop) {
450
450
  return value;
451
451
  }
452
452
  else {
453
- return { errors: [prop + " is required"] };
453
+ return { errors: ["".concat(prop, " is required")] };
454
454
  }
455
455
  };
456
456
  }
@@ -2981,7 +2981,7 @@ var isEqual = function (a, b) {
2981
2981
  queryA === queryB);
2982
2982
  };
2983
2983
  var replacePath = function (path, uri) {
2984
- var pathWithForwardSlash = path[0] === '/' ? path : "/" + path;
2984
+ var pathWithForwardSlash = path[0] === '/' ? path : "/".concat(path);
2985
2985
  return tslib.__assign(tslib.__assign({}, uri), { path: pathWithForwardSlash });
2986
2986
  };
2987
2987
  var pathAsArray = function (uri) {
@@ -3057,17 +3057,17 @@ var queryAsMap = function (uri) {
3057
3057
  var toString = function (uri) {
3058
3058
  var result = '';
3059
3059
  if (uri.scheme != null && uri.scheme.length > 0) {
3060
- result = uri.scheme + ":";
3060
+ result = "".concat(uri.scheme, ":");
3061
3061
  }
3062
3062
  if (uri.authority != null && uri.authority.length > 0) {
3063
- result += "//" + uri.authority;
3063
+ result += "//".concat(uri.authority);
3064
3064
  }
3065
3065
  result += uri.path;
3066
3066
  if (uri.query != null && uri.query.length > 0) {
3067
- result += "?" + uri.query;
3067
+ result += "?".concat(uri.query);
3068
3068
  }
3069
3069
  if (uri.fragment != null && uri.fragment.length > 0) {
3070
- result += "#" + uri.fragment;
3070
+ result += "#".concat(uri.fragment);
3071
3071
  }
3072
3072
  return result;
3073
3073
  };