@streamflow/common 6.0.0-alpha.3 → 6.0.0-alpha.5

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.
package/dist/types.d.ts CHANGED
@@ -23,10 +23,11 @@ export declare enum IChain {
23
23
  */
24
24
  export declare class ContractError extends Error {
25
25
  contractErrorCode: string | null;
26
+ description: string | null;
26
27
  /**
27
28
  * Constructs the Error Wrapper
28
29
  * @param error Original error raised probably by the chain SDK
29
30
  * @param code extracted code from the error if managed to parse it
30
31
  */
31
- constructor(error: Error, code?: string | null);
32
+ constructor(error: Error, code?: string | null, description?: string | null);
32
33
  }
package/dist/types.js CHANGED
@@ -43,9 +43,10 @@ var ContractError = /** @class */ (function (_super) {
43
43
  * @param error Original error raised probably by the chain SDK
44
44
  * @param code extracted code from the error if managed to parse it
45
45
  */
46
- function ContractError(error, code) {
46
+ function ContractError(error, code, description) {
47
47
  var _this = _super.call(this, error.message) || this;
48
48
  _this.contractErrorCode = code !== null && code !== void 0 ? code : null;
49
+ _this.description = description !== null && description !== void 0 ? description : null;
49
50
  // Copy properties from the original error
50
51
  Object.setPrototypeOf(_this, ContractError.prototype);
51
52
  _this.name = "ContractError"; // Set the name property
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamflow/common",
3
- "version": "6.0.0-alpha.3",
3
+ "version": "6.0.0-alpha.5",
4
4
  "description": "Common utilities and types used by streamflow packages.",
5
5
  "homepage": "https://github.com/streamflow-finance/js-sdk/",
6
6
  "main": "dist/index.js",
@@ -23,9 +23,9 @@
23
23
  "lint-config": "eslint --print-config",
24
24
  "prepublishOnly": "npm run lint && npm run build"
25
25
  },
26
- "gitHead": "4f5eed327dda8e1c9d5c3ad74046aff4b99a80ed",
26
+ "gitHead": "bfb144b9151a2df03cbf3fa5b7755dc375a8ecf9",
27
27
  "devDependencies": {
28
- "@streamflow/eslint-config": "6.0.0-alpha.3",
28
+ "@streamflow/eslint-config": "6.0.0-alpha.5",
29
29
  "@types/bn.js": "5.1.1",
30
30
  "@types/jest": "29.2.4",
31
31
  "date-fns": "2.28.0",