@bringg/dashboard-sdk 0.5.5 → 0.5.6

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,7 +1,8 @@
1
1
  import { ExceptionReason } from './ExceptionReason';
2
+ import { ExtendableError } from '../extendable-error';
2
3
  export declare const logOnException: (target: any, propertyKey: string, descriptor: PropertyDescriptor) => any;
3
4
  export declare type StringProducer = () => string;
4
- export declare class BringgException<T = any> {
5
+ export declare class BringgException<T = any> extends ExtendableError {
5
6
  readonly reason: ExceptionReason;
6
7
  readonly error?: Error;
7
8
  private readonly messageProducer;
@@ -11,6 +12,10 @@ export declare class BringgException<T = any> {
11
12
  private data;
12
13
  constructor(reason: ExceptionReason, messageProducer?: string | StringProducer, error?: Error, data?: T);
13
14
  get message(): string;
15
+ /**
16
+ * pass message producer instead, this is a NoOp
17
+ */
18
+ set message(value: string);
14
19
  get details(): string | StringProducer;
15
20
  set details(details: string | StringProducer);
16
21
  static serviceException(message: string | StringProducer): () => BringgException;
@@ -1,4 +1,19 @@
1
1
  "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
2
17
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
18
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
19
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -40,6 +55,7 @@ exports.BringgException = exports.logOnException = void 0;
40
55
  var _ = require("lodash");
41
56
  var Logger_1 = require("./Logger");
42
57
  var ExceptionReason_1 = require("./ExceptionReason");
58
+ var extendable_error_1 = require("../extendable-error");
43
59
  var logOnException = function (target, propertyKey, descriptor) {
44
60
  var originalMethod = descriptor.value;
45
61
  descriptor.value = function () {
@@ -82,15 +98,16 @@ var toStringProducer = function (messageProducer) {
82
98
  }
83
99
  return function () { return messageProducer.toString(); };
84
100
  };
85
- // intentionally not extending Error !
86
- // see: https://github.com/Microsoft/TypeScript/issues/13965
87
- var BringgException = /** @class */ (function () {
101
+ var BringgException = /** @class */ (function (_super) {
102
+ __extends(BringgException, _super);
88
103
  function BringgException(reason, messageProducer, error, data) {
89
- this.data = data;
90
- this.reason = reason;
91
- this.error = error;
92
- this.messageProducer = toStringProducer(messageProducer) || (function () { return reason.name; });
93
- this._details = function () { return undefined; };
104
+ var _this = _super.call(this) || this;
105
+ _this.data = data;
106
+ _this.reason = reason;
107
+ _this.error = error;
108
+ _this.messageProducer = toStringProducer(messageProducer) || (function () { return reason.name; });
109
+ _this._details = function () { return undefined; };
110
+ return _this;
94
111
  }
95
112
  Object.defineProperty(BringgException.prototype, "message", {
96
113
  get: function () {
@@ -101,6 +118,10 @@ var BringgException = /** @class */ (function () {
101
118
  Logger_1.default.error('caught exception while trying to produce error message...');
102
119
  }
103
120
  },
121
+ /**
122
+ * pass message producer instead, this is a NoOp
123
+ */
124
+ set: function (value) { },
104
125
  enumerable: false,
105
126
  configurable: true
106
127
  });
@@ -124,6 +145,6 @@ var BringgException = /** @class */ (function () {
124
145
  return function () { return new BringgException(ExceptionReason_1.ExceptionReason.UNSUCCESSFUL_RESULT, message); };
125
146
  };
126
147
  return BringgException;
127
- }());
148
+ }(extendable_error_1.ExtendableError));
128
149
  exports.BringgException = BringgException;
129
150
  //# sourceMappingURL=BringgException.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BringgException.js","sourceRoot":"","sources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I,CAAC;QACjB,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,KAAI,CAAC,eAAe,GAAG,gBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,cAAM,OAAA,MAAM,CAAC,IAAI,EAAX,CAAW,CAAC,CAAC;QAChF,KAAI,CAAC,QAAQ,GAAG,cAAM,OAAA,SAAS,EAAT,CAAS,CAAC;;IACjC,CAAC;IAED,sBAAI,oCAAO;aAAX;YACC,IAAI;gBACH,OAAO,IAAI,CAAC,eAAe,EAAE,CAAC;aAC9B;YAAC,OAAO,CAAC,EAAE;gBACX,gBAAM,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAC;aAC1E;QACF,CAAC;QAED;;WAEG;aACH,UAAY,KAAa,IAAG,CAAC;;;OAL5B;IAOD,sBAAI,oCAAO;aAAX;YACC,IAAI;gBACH,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;aACvB;YAAC,OAAO,CAAC,EAAE;gBACX,gBAAM,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAC;aAC1E;QACF,CAAC;aAED,UAAY,OAAgC;YAA5C,iBAEC;YADA,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,cAAM,OAAA,KAAI,CAAC,OAAO,EAAZ,CAAY,CAAC,CAAC;QACnE,CAAC;;;OAJA;IAMa,gCAAgB,GAA9B,UAA+B,OAAgC;QAC9D,OAAO,cAAM,OAAA,IAAI,eAAe,CAAC,iCAAe,CAAC,mBAAmB,EAAE,OAAO,CAAC,EAAjE,CAAiE,CAAC;IAChF,CAAC;IACF,sBAAC;AAAD,CAAC,AA/CD,CAA8C,kCAAe,GA+C5D;AA/CY,0CAAe"}
@@ -32,7 +32,25 @@ var Request = /** @class */ (function () {
32
32
  return this;
33
33
  };
34
34
  Request.prototype.setException = function (exception) {
35
- this.exception = BringgException_1.BringgException.serviceException(exception);
35
+ // Generating the exception here as we want to get stack trace with the relevant data
36
+ // if generating the error inside the exception function all calls before setException won't exist
37
+ // because of V8 zero-cost async stack trace
38
+ var generatedException = BringgException_1.BringgException.serviceException(exception)();
39
+ if (Error.captureStackTrace) {
40
+ // keep only the frames that happened before calling setException
41
+ Error.captureStackTrace(generatedException, this.setException);
42
+ }
43
+ else {
44
+ // If no start stack function was provided we just use the original stack property
45
+ try {
46
+ // noinspection ExceptionCaughtLocallyJS
47
+ throw new Error();
48
+ }
49
+ catch (e) {
50
+ generatedException.stack = e.stack;
51
+ }
52
+ }
53
+ this.exception = function () { return generatedException; };
36
54
  return this;
37
55
  };
38
56
  Request.prototype.invoke = function () {
@@ -1 +1 @@
1
- {"version":3,"file":"RouteGenerator.js","sourceRoot":"","sources":["../../src/Core/RouteGenerator.ts"],"names":[],"mappings":";;;AACA,qDAAoD;AACpD,2CAA0C;AAGnC,IAAM,gBAAgB,GAAG,UAAC,QAAa,IAAK,OAAA,QAAQ,EAAR,CAAQ,CAAC;AAA/C,QAAA,gBAAgB,oBAA+B;AAE5D;IAQC,iBAAoB,OAA4B,EAAU,KAAY;QAAlD,YAAO,GAAP,OAAO,CAAqB;QAAU,UAAK,GAAL,KAAK,CAAO;QAP9D,cAAS,GAA2B,wBAAgB,CAAC;IAOY,CAAC;IAE1E,iCAAe,GAAf,UAAgB,WAAgB;QAC/B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,OAAO,IAAI,CAAC;IACb,CAAC;IAED,iCAAe,GAAf,UAAgB,WAAgB;QAC/B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,OAAO,IAAI,CAAC;IACb,CAAC;IAED,+BAAa,GAAb,UAAc,SAAiC;QAC9C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IACb,CAAC;IAED,6BAAW,GAAX,UAAY,OAAY;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAA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AAK,CAAC,SAAS,eAAkB,CAAC;QAEpD,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC;IAED,4BAAG,GAAH,UAAI,SAAkB;QACrB,IAAM,KAAK,GAAG,IAAI,aAAK,CAAC,SAAS,cAAiB,CAAC;QAEnD,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC;IAED,8BAAK,GAAL,UAAM,SAAkB;QACvB,IAAM,KAAK,GAAG,IAAI,aAAK,CAAC,SAAS,gBAAmB,CAAC;QACrD,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC;IAED,+BAAM,GAAN,UAAO,SAAkB;QACxB,IAAM,KAAK,GAAG,IAAI,aAAK,CAAC,SAAS,iBAAoB,CAAC;QAEtD,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACzC,CAAC;IACF,qBAAC;AAAD,CAAC,AA/BD,IA+BC"}
@@ -52,7 +52,7 @@ var axios_1 = require("axios");
52
52
  var Logger_1 = require("../Core/Logger");
53
53
  var lodash_1 = require("lodash");
54
54
  var BringgException_1 = require("../Core/BringgException");
55
- var version = '0.5.5';
55
+ var version = '0.5.6';
56
56
  function logErrorResponse(response) {
57
57
  var data = response.data, status = response.status;
58
58
  try {