@peacom/core 0.0.212 → 0.0.214
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/README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
# core
|
2
|
-
|
3
|
-
This library was generated with [Nx](https://nx.dev).
|
4
|
-
|
5
|
-
## Building
|
6
|
-
|
7
|
-
Run `nx build core` to build the library.
|
8
|
-
|
9
|
-
## Running unit tests
|
10
|
-
|
11
|
-
Run `nx test core` to execute the unit tests via [Jest](https://jestjs.io).
|
1
|
+
# core
|
2
|
+
|
3
|
+
This library was generated with [Nx](https://nx.dev).
|
4
|
+
|
5
|
+
## Building
|
6
|
+
|
7
|
+
Run `nx build core` to build the library.
|
8
|
+
|
9
|
+
## Running unit tests
|
10
|
+
|
11
|
+
Run `nx test core` to execute the unit tests via [Jest](https://jestjs.io).
|
package/package.json
CHANGED
@@ -14,8 +14,8 @@ var HTTP_ERROR;
|
|
14
14
|
})(HTTP_ERROR = exports.HTTP_ERROR || (exports.HTTP_ERROR = {}));
|
15
15
|
class FormError extends HttpError_1.HttpError {
|
16
16
|
constructor(_errors) {
|
17
|
-
super(HTTP_ERROR.BAD_REQUEST, 'Bad request');
|
18
|
-
this.errors = Array.isArray(_errors) ?
|
17
|
+
super(HTTP_ERROR.BAD_REQUEST, (Array.isArray(_errors) ? _errors[0].message : _errors === null || _errors === void 0 ? void 0 : _errors['message']) || 'Bad request');
|
18
|
+
this.errors = Array.isArray(_errors) ? _errors : [_errors];
|
19
19
|
}
|
20
20
|
}
|
21
21
|
exports.FormError = FormError;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FormError.js","sourceRoot":"","sources":["../../../../../../packages/core/src/lib/error/FormError.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AACtC,6CAAwC;AAExC,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,+DAAmB,CAAA;IACnB,uDAAe,CAAA;IACf,qDAAc,CAAA;IAC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;AAChE,CAAC;AAFD,sCAEC;AAED,SAAgB,UAAU,CAAC,IAAY,EAAE,IAAY,EAAE,OAAe;IACpE,OAAO,IAAI,SAAS,CAAC,IAAI,uBAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;AAC5D,CAAC;AAFD,gCAEC"}
|
@@ -12,6 +12,7 @@ var BACKGROUND_TASK;
|
|
12
12
|
BACKGROUND_TASK[BACKGROUND_TASK["VNA_REPORT"] = 7] = "VNA_REPORT";
|
13
13
|
BACKGROUND_TASK[BACKGROUND_TASK["IMPORT_PRODUCT"] = 8] = "IMPORT_PRODUCT";
|
14
14
|
BACKGROUND_TASK[BACKGROUND_TASK["IMPORT_CUSTOMER"] = 9] = "IMPORT_CUSTOMER";
|
15
|
+
BACKGROUND_TASK[BACKGROUND_TASK["CHANNEL_SYNC"] = 10] = "CHANNEL_SYNC";
|
15
16
|
})(BACKGROUND_TASK = exports.BACKGROUND_TASK || (exports.BACKGROUND_TASK = {}));
|
16
17
|
var BACKGROUND_TASK_STATUS;
|
17
18
|
(function (BACKGROUND_TASK_STATUS) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BackgroundTask.js","sourceRoot":"","sources":["../../../../../../packages/core/src/lib/model/BackgroundTask.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
1
|
+
{"version":3,"file":"BackgroundTask.js","sourceRoot":"","sources":["../../../../../../packages/core/src/lib/model/BackgroundTask.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAWX;AAXD,WAAY,eAAe;IACzB,uGAAiC,CAAA;IACjC,6FAA4B,CAAA;IAC5B,qFAAwB,CAAA;IACxB,yFAA0B,CAAA;IAC1B,+EAAqB,CAAA;IACrB,qFAAwB,CAAA;IACxB,iEAAc,CAAA;IACd,yEAAkB,CAAA;IAClB,2EAAmB,CAAA;IACnB,sEAAiB,CAAA;AACnB,CAAC,EAXW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAW1B;AAED,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAChC,yEAAW,CAAA;IACX,+EAAc,CAAA;IACd,mEAAI,CAAA;IACJ,mEAAI,CAAA;AACN,CAAC,EALW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAKjC;AAED,IAAY,yBAMX;AAND,WAAY,yBAAyB;IACnC,uFAAe,CAAA;IACf,2FAAa,CAAA;IACb,qGAAkB,CAAA;IAClB,yFAAY,CAAA;IACZ,2FAAa,CAAA;AACf,CAAC,EANW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAMpC"}
|