@takeshape/errors 8.190.0 → 8.193.0
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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -0
- package/dist/payment-method.d.ts +7 -0
- package/dist/payment-method.d.ts.map +1 -0
- package/dist/payment-method.js +25 -0
- package/es/index.js +1 -0
- package/es/payment-method.js +13 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAC,yBAAyB,EAAC,MAAM,qBAAqB,CAAC;AACnE,YAAY,EAAC,yBAAyB,EAAC,MAAM,mBAAmB,CAAC;AAGjE,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAC,yBAAyB,EAAC,MAAM,qBAAqB,CAAC;AACnE,YAAY,EAAC,yBAAyB,EAAC,MAAM,mBAAmB,CAAC;AAGjE,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -340,4 +340,17 @@ Object.keys(_apiIndexing).forEach(function (key) {
|
|
|
340
340
|
return _apiIndexing[key];
|
|
341
341
|
}
|
|
342
342
|
});
|
|
343
|
+
});
|
|
344
|
+
|
|
345
|
+
var _paymentMethod = require("./payment-method");
|
|
346
|
+
|
|
347
|
+
Object.keys(_paymentMethod).forEach(function (key) {
|
|
348
|
+
if (key === "default" || key === "__esModule") return;
|
|
349
|
+
if (key in exports && exports[key] === _paymentMethod[key]) return;
|
|
350
|
+
Object.defineProperty(exports, key, {
|
|
351
|
+
enumerable: true,
|
|
352
|
+
get: function () {
|
|
353
|
+
return _paymentMethod[key];
|
|
354
|
+
}
|
|
355
|
+
});
|
|
343
356
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method.d.ts","sourceRoot":"","sources":["../../src/payment-method.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,OAAc,IAAI,SAAwB;IAC1C,OAAc,UAAU,SAAO;gBAEZ,OAAO,SAAyB;CAGpD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PaymentMethodError = void 0;
|
|
7
|
+
|
|
8
|
+
var _baseError = _interopRequireDefault(require("./base-error"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
|
|
14
|
+
class PaymentMethodError extends _baseError.default {
|
|
15
|
+
constructor(message = 'Payment Method Error') {
|
|
16
|
+
super(message);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
exports.PaymentMethodError = PaymentMethodError;
|
|
22
|
+
|
|
23
|
+
_defineProperty(PaymentMethodError, "code", 'PaymentMethodError');
|
|
24
|
+
|
|
25
|
+
_defineProperty(PaymentMethodError, "statusCode", 500);
|
package/es/index.js
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
|
|
3
|
+
import BaseError from './base-error';
|
|
4
|
+
export class PaymentMethodError extends BaseError {
|
|
5
|
+
constructor(message = 'Payment Method Error') {
|
|
6
|
+
super(message);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
_defineProperty(PaymentMethodError, "code", 'PaymentMethodError');
|
|
12
|
+
|
|
13
|
+
_defineProperty(PaymentMethodError, "statusCode", 500);
|