@esri/hub-common 9.17.0 → 9.17.1

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.
@@ -1,4 +1,5 @@
1
- import { getWithDefault, OperationError } from ".";
1
+ import { getWithDefault } from "./objects/get-with-default";
2
+ import OperationError from "./OperationError";
2
3
  /**
3
4
  * Generic Hub Error with an Error stack as well
4
5
  * as an optional serialized OperationStack.
@@ -1 +1 @@
1
- {"version":3,"file":"HubError.js","sourceRoot":"","sources":["../../src/HubError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,GAAG,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,cAAc;IAClD;;;;;;OAMG;IACH,YAAY,SAAiB,EAAE,OAAgB,EAAE,SAAiB;QAChE,OAAO,GAAG,OAAO,IAAI,eAAe,CAAC;QACrC,sEAAsE;QACtE,SAAS,GAAG,cAAc,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;QAC9D;;;UAGE;QACF,0BAA0B;QAC1B,KAAK,CAAC,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QACvB,mEAAmE;QACnE,wEAAwE;QACxE,kEAAkE;QAClE,+BAA+B;QAC/B,IAAI,CAAC,KAAK,GAAG,cAAc,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;IACrE,CAAC;CACF"}
1
+ {"version":3,"file":"HubError.js","sourceRoot":"","sources":["../../src/HubError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,cAAc;IAClD;;;;;;OAMG;IACH,YAAY,SAAiB,EAAE,OAAgB,EAAE,SAAiB;QAChE,OAAO,GAAG,OAAO,IAAI,eAAe,CAAC;QACrC,sEAAsE;QACtE,SAAS,GAAG,cAAc,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;QAC9D;;;UAGE;QACF,0BAA0B;QAC1B,KAAK,CAAC,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QACvB,mEAAmE;QACnE,wEAAwE;QACxE,kEAAkE;QAClE,+BAA+B;QAC/B,IAAI,CAAC,KAAK,GAAG,cAAc,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;IACrE,CAAC;CACF"}
@@ -1,5 +1,6 @@
1
1
  import { __extends } from "tslib";
2
- import { getWithDefault, OperationError } from ".";
2
+ import { getWithDefault } from "./objects/get-with-default";
3
+ import OperationError from "./OperationError";
3
4
  /**
4
5
  * Generic Hub Error with an Error stack as well
5
6
  * as an optional serialized OperationStack.
@@ -1 +1 @@
1
- {"version":3,"file":"HubError.js","sourceRoot":"","sources":["../../src/HubError.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,GAAG,CAAC;AAEnD;;;;;GAKG;AACH;IAAsC,4BAAc;IAClD;;;;;;OAMG;IACH,kBAAY,SAAiB,EAAE,OAAgB,EAAE,SAAiB;QAAlE,iBAgBC;QAfC,OAAO,GAAG,OAAO,IAAI,eAAe,CAAC;QACrC,sEAAsE;QACtE,SAAS,GAAG,cAAc,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;QAC9D;;;UAGE;QACF,0BAA0B;QAC1B,QAAA,kBAAM,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,SAAC;QACrC,KAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QACvB,mEAAmE;QACnE,wEAAwE;QACxE,kEAAkE;QAClE,+BAA+B;QAC/B,KAAI,CAAC,KAAK,GAAG,cAAc,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;;IACrE,CAAC;IACH,eAAC;AAAD,CAAC,AAzBD,CAAsC,cAAc,GAyBnD"}
1
+ {"version":3,"file":"HubError.js","sourceRoot":"","sources":["../../src/HubError.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C;;;;;GAKG;AACH;IAAsC,4BAAc;IAClD;;;;;;OAMG;IACH,kBAAY,SAAiB,EAAE,OAAgB,EAAE,SAAiB;QAAlE,iBAgBC;QAfC,OAAO,GAAG,OAAO,IAAI,eAAe,CAAC;QACrC,sEAAsE;QACtE,SAAS,GAAG,cAAc,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;QAC9D;;;UAGE;QACF,0BAA0B;QAC1B,QAAA,kBAAM,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,SAAC;QACrC,KAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QACvB,mEAAmE;QACnE,wEAAwE;QACxE,kEAAkE;QAClE,+BAA+B;QAC/B,KAAI,CAAC,KAAK,GAAG,cAAc,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;;IACrE,CAAC;IACH,eAAC;AAAD,CAAC,AAzBD,CAAsC,cAAc,GAyBnD"}
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const _1 = require(".");
3
+ const get_with_default_1 = require("./objects/get-with-default");
4
+ const OperationError_1 = require("./OperationError");
4
5
  /**
5
6
  * Generic Hub Error with an Error stack as well
6
7
  * as an optional serialized OperationStack.
7
8
  *
8
9
  * Also accepts a `rootCause` Error object
9
10
  */
10
- class HubError extends _1.OperationError {
11
+ class HubError extends OperationError_1.default {
11
12
  /**
12
13
  * Creates an instance of HubError.
13
14
  * @param {string} operation
@@ -18,7 +19,7 @@ class HubError extends _1.OperationError {
18
19
  constructor(operation, message, rootCause) {
19
20
  message = message || "UNKNOWN_ERROR";
20
21
  // if the rootCause has a .rootCause, use that so we don't deeply nest
21
- rootCause = _1.getWithDefault(rootCause, "rootCause", rootCause);
22
+ rootCause = get_with_default_1.getWithDefault(rootCause, "rootCause", rootCause);
22
23
  /* Skip coverage on super(...) as per:
23
24
  https://github.com/Microsoft/TypeScript/issues/13029
24
25
  https://github.com/SitePen/remap-istanbul/issues/106
@@ -30,7 +31,7 @@ class HubError extends _1.OperationError {
30
31
  // stack. Note: a new Stack will make it look like the error origninated
31
32
  // in the HubError constructor. This is only an issue in tests but
32
33
  // it can be confusing to debug
33
- this.stack = _1.getWithDefault(rootCause, "stack", new Error().stack);
34
+ this.stack = get_with_default_1.getWithDefault(rootCause, "stack", new Error().stack);
34
35
  }
35
36
  }
36
37
  exports.default = HubError;
@@ -1 +1 @@
1
- {"version":3,"file":"HubError.js","sourceRoot":"","sources":["../../src/HubError.ts"],"names":[],"mappings":";;AAAA,wBAAmD;AAEnD;;;;;GAKG;AACH,MAAqB,QAAS,SAAQ,iBAAc;IAClD;;;;;;OAMG;IACH,YAAY,SAAiB,EAAE,OAAgB,EAAE,SAAiB;QAChE,OAAO,GAAG,OAAO,IAAI,eAAe,CAAC;QACrC,sEAAsE;QACtE,SAAS,GAAG,iBAAc,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;QAC9D;;;UAGE;QACF,0BAA0B;QAC1B,KAAK,CAAC,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QACvB,mEAAmE;QACnE,wEAAwE;QACxE,kEAAkE;QAClE,+BAA+B;QAC/B,IAAI,CAAC,KAAK,GAAG,iBAAc,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;IACrE,CAAC;CACF;AAzBD,2BAyBC"}
1
+ {"version":3,"file":"HubError.js","sourceRoot":"","sources":["../../src/HubError.ts"],"names":[],"mappings":";;AAAA,iEAA4D;AAC5D,qDAA8C;AAE9C;;;;;GAKG;AACH,MAAqB,QAAS,SAAQ,wBAAc;IAClD;;;;;;OAMG;IACH,YAAY,SAAiB,EAAE,OAAgB,EAAE,SAAiB;QAChE,OAAO,GAAG,OAAO,IAAI,eAAe,CAAC;QACrC,sEAAsE;QACtE,SAAS,GAAG,iCAAc,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;QAC9D;;;UAGE;QACF,0BAA0B;QAC1B,KAAK,CAAC,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QACvB,mEAAmE;QACnE,wEAAwE;QACxE,kEAAkE;QAClE,+BAA+B;QAC/B,IAAI,CAAC,KAAK,GAAG,iCAAc,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;IACrE,CAAC;CACF;AAzBD,2BAyBC"}
@@ -1,4 +1,4 @@
1
- import { OperationError } from ".";
1
+ import OperationError from "./OperationError";
2
2
  /**
3
3
  * Generic Hub Error with an Error stack as well
4
4
  * as an optional serialized OperationStack.
@@ -1,5 +1,5 @@
1
1
  /* @preserve
2
- * @esri/hub-common - v9.16.0 - Wed Feb 16 2022 23:41:40 GMT+0000 (Coordinated Universal Time)
2
+ * @esri/hub-common - v9.17.0 - Thu Feb 17 2022 19:38:03 GMT+0000 (Coordinated Universal Time)
3
3
  * Copyright (c) 2022 Environmental Systems Research Institute, Inc.
4
4
  * Apache-2.0
5
5
  */