@wenex/sdk 1.0.0 → 1.0.2
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,6 +1,5 @@
|
|
|
1
|
-
import { DeepPartial
|
|
1
|
+
import { DeepPartial } from './helper.interface';
|
|
2
2
|
import { Core } from './core.interface';
|
|
3
|
-
import { Dto } from './dto.interface';
|
|
4
3
|
export type Data<T = any> = {
|
|
5
4
|
data: T;
|
|
6
5
|
};
|
|
@@ -13,4 +12,4 @@ export type Total = {
|
|
|
13
12
|
export type Result = {
|
|
14
13
|
result: 'OK' | 'NOK';
|
|
15
14
|
};
|
|
16
|
-
export type Serializer<T extends
|
|
15
|
+
export type Serializer<T extends Partial<Core> = Partial<Core>, Path extends object = object> = DeepPartial<Omit<T, keyof Path> & Path>;
|
|
@@ -18,7 +18,7 @@ const debug_1 = require("debug");
|
|
|
18
18
|
* Proxy to intercept property access on the `baseLogger` object and modify the behavior for functions,
|
|
19
19
|
* specifically handling the 'extend' function differently.
|
|
20
20
|
*/
|
|
21
|
-
const logger = (namespace, prefix = '
|
|
21
|
+
const logger = (namespace, prefix = 'clt') => {
|
|
22
22
|
const baseLogger = (0, debug_1.default)([prefix, (0, naming_conventions_modeler_1.toKebabCase)(namespace)].join(':'));
|
|
23
23
|
function get(target, prop, receiver) {
|
|
24
24
|
const original = target[prop];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wenex/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Wenex SDK",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"globals": "^15.14.0",
|
|
66
66
|
"husky": "^9.1.7",
|
|
67
67
|
"jest": "^29.7.0",
|
|
68
|
+
"lint-staged": "^15.3.0",
|
|
68
69
|
"madge": "^8.0.0",
|
|
69
70
|
"make-coverage-badge": "^1.2.0",
|
|
70
71
|
"mongoose": "^8.9.3",
|