@things-factory/integration-sellercraft 4.3.111 → 4.3.112
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.
@@ -5,8 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.api = void 0;
|
7
7
|
const debug_1 = __importDefault(require("debug"));
|
8
|
-
const debug = (0, debug_1.default)('things-factory:integration-marketplace:store-api-decorator');
|
9
8
|
const integration_base_1 = require("@things-factory/integration-base");
|
9
|
+
const debug = (0, debug_1.default)('things-factory:integration-marketplace:store-api-decorator');
|
10
10
|
const NOOP = v => v;
|
11
11
|
const api = (target, property, descriptor) => {
|
12
12
|
const method = descriptor.value;
|
@@ -30,7 +30,7 @@ const api = (target, property, descriptor) => {
|
|
30
30
|
return await normalize(response, { store });
|
31
31
|
}
|
32
32
|
catch (error) {
|
33
|
-
(0, integration_base_1.createPayloadLog)(store.accountId, path, denormalized, error, request === null || request === void 0 ? void 0 : request.context);
|
33
|
+
(0, integration_base_1.createPayloadLog)(store.accountId, path, denormalized, error === null || error === void 0 ? void 0 : error.message, request === null || request === void 0 ? void 0 : request.context);
|
34
34
|
throw error;
|
35
35
|
}
|
36
36
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../server/controllers/sellercraft-api/decorators.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;
|
1
|
+
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../server/controllers/sellercraft-api/decorators.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,uEAAmE;AAInE,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,4DAA4D,CAAC,CAAA;AAEjF,MAAM,IAAI,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AAEZ,MAAM,GAAG,GAAG,CAAC,MAAc,EAAE,QAAgB,EAAE,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,CAAA;YAE3B,OAAO,MAAM,SAAS,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,CAAA;SAC5C;QAAC,OAAO,KAAK,EAAE;YACd,IAAA,mCAAgB,EAAC,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,CAAA;YACvF,MAAM,KAAK,CAAA;SACZ;IACH,CAAC,CAAA;IAED,OAAO,UAAU,CAAA;AACnB,CAAC,CAAA;AA3CY,QAAA,GAAG,OA2Cf"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/integration-sellercraft",
|
3
|
-
"version": "4.3.
|
3
|
+
"version": "4.3.112",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -51,5 +51,5 @@
|
|
51
51
|
"nock": "^13.0.2",
|
52
52
|
"should": "^13.2.3"
|
53
53
|
},
|
54
|
-
"gitHead": "
|
54
|
+
"gitHead": "f4c818e06686edfec9a3ca80e1f818254fcc1593"
|
55
55
|
}
|
@@ -1,9 +1,11 @@
|
|
1
1
|
import Debug from 'debug'
|
2
|
-
const debug = Debug('things-factory:integration-marketplace:store-api-decorator')
|
3
2
|
|
4
|
-
import { Sellercraft } from '../../service'
|
5
3
|
import { createPayloadLog } from '@things-factory/integration-base'
|
6
4
|
|
5
|
+
import { Sellercraft } from '../../service'
|
6
|
+
|
7
|
+
const debug = Debug('things-factory:integration-marketplace:store-api-decorator')
|
8
|
+
|
7
9
|
const NOOP = v => v
|
8
10
|
|
9
11
|
export const api = (target: Object, property: string, descriptor: TypedPropertyDescriptor<any>): any => {
|
@@ -43,7 +45,7 @@ export const api = (target: Object, property: string, descriptor: TypedPropertyD
|
|
43
45
|
|
44
46
|
return await normalize(response, { store })
|
45
47
|
} catch (error) {
|
46
|
-
createPayloadLog(store.accountId, path, denormalized, error, request?.context)
|
48
|
+
createPayloadLog(store.accountId, path, denormalized, error?.message, request?.context)
|
47
49
|
throw error
|
48
50
|
}
|
49
51
|
}
|