@xyo-network/core 2.66.9 → 2.67.0-rc.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.
- package/dist/cjs/lib/Base.js.map +1 -1
- package/dist/esm/lib/Base.js.map +1 -1
- package/dist/types/lib/Base.d.ts +1 -12
- package/dist/types/lib/Base.d.ts.map +1 -1
- package/package.json +7 -5
- package/src/lib/Base.ts +2 -14
- package/dist/docs.json +0 -12132
package/dist/cjs/lib/Base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../src/lib/Base.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../src/lib/Base.ts"],"names":[],"mappings":";;;AAYA,MAAsB,IAAI;IAGxB,YAAqB,MAAe;;QAAf,WAAM,GAAN,MAAM,CAAS;QAClC,MAAA,MAAM,CAAC,MAAM,0CAAE,KAAK,CAAC,qBAAqB,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAA;IACjE,CAAC;IAED,IAAc,MAAM;;QAClB,OAAO,MAAA,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,MAAM,mCAAI,IAAI,CAAC,aAAa,mCAAI,OAAO,CAAA;IAC7D,CAAC;CACF;AAVD,oBAUC"}
|
package/dist/esm/lib/Base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../src/lib/Base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Base.js","sourceRoot":"","sources":["../../../src/lib/Base.ts"],"names":[],"mappings":"AAYA,MAAM,OAAgB,IAAI;IAGH;IAFrB,MAAM,CAAC,aAAa,CAAS;IAE7B,YAAqB,MAAe;QAAf,WAAM,GAAN,MAAM,CAAS;QAClC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,qBAAqB,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAA;IACjE,CAAC;IAED,IAAc,MAAM;QAClB,OAAO,IAAI,CAAC,MAAM,EAAE,MAAM,IAAI,IAAI,CAAC,aAAa,IAAI,OAAO,CAAA;IAC7D,CAAC;CACF"}
|
package/dist/types/lib/Base.d.ts
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
import { Logger } from '@xyo-network/logger';
|
|
2
3
|
import { AnyObject } from './AnyObject';
|
|
3
|
-
export type LogFunction = (message?: unknown) => void;
|
|
4
|
-
/**
|
|
5
|
-
* Interface to handle overlap between Winston &
|
|
6
|
-
* `console` with as much congruency as possible.
|
|
7
|
-
*/
|
|
8
|
-
export interface Logger {
|
|
9
|
-
debug: LogFunction;
|
|
10
|
-
error: LogFunction;
|
|
11
|
-
info: LogFunction;
|
|
12
|
-
log: LogFunction;
|
|
13
|
-
warn: LogFunction;
|
|
14
|
-
}
|
|
15
4
|
export type BaseParamsFields = {
|
|
16
5
|
logger?: Logger;
|
|
17
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../../src/lib/Base.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../../src/lib/Base.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,UAAU,CAAC,iBAAiB,SAAS,SAAS,GAAG,SAAS,GAAG,SAAS,IAAI,iBAAiB,SAAS,SAAS,GACrH,gBAAgB,GAAG,iBAAiB,GACpC,gBAAgB,CAAA;AAEpB,8BAAsB,IAAI,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU;IAGpD,QAAQ,CAAC,MAAM,EAAE,OAAO;IAFpC,MAAM,CAAC,aAAa,CAAC,EAAE,MAAM,CAAA;gBAER,MAAM,EAAE,OAAO;IAIpC,SAAS,KAAK,MAAM,qBAEnB;CACF"}
|
package/package.json
CHANGED
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
"@xylabs/assert": "^2.9.3",
|
|
15
15
|
"@xylabs/bignumber": "^2.9.3",
|
|
16
16
|
"@xylabs/buffer": "^2.9.3",
|
|
17
|
-
"@xyo-network/
|
|
18
|
-
"@xyo-network/
|
|
17
|
+
"@xyo-network/logger": "~2.67.0-rc.2",
|
|
18
|
+
"@xyo-network/promise": "~2.67.0-rc.2",
|
|
19
|
+
"@xyo-network/typeof": "~2.67.0-rc.2",
|
|
19
20
|
"hash-wasm": "^4.9.0",
|
|
20
21
|
"keccak256": "^1.0.6",
|
|
21
22
|
"lodash": "^4.17.21",
|
|
@@ -28,8 +29,8 @@
|
|
|
28
29
|
"@types/lodash": "^4.14.195",
|
|
29
30
|
"@types/sha.js": "^2.4.1",
|
|
30
31
|
"@types/uuid": "^9.0.2",
|
|
31
|
-
"@xylabs/ts-scripts-yarn3": "^2.
|
|
32
|
-
"@xylabs/tsconfig": "^2.
|
|
32
|
+
"@xylabs/ts-scripts-yarn3": "^2.19.0",
|
|
33
|
+
"@xylabs/tsconfig": "^2.19.0",
|
|
33
34
|
"typescript": "^5.1.6"
|
|
34
35
|
},
|
|
35
36
|
"browser": "dist/esm/index.js",
|
|
@@ -65,5 +66,6 @@
|
|
|
65
66
|
},
|
|
66
67
|
"sideEffects": false,
|
|
67
68
|
"types": "dist/types/index.d.ts",
|
|
68
|
-
"version": "2.
|
|
69
|
+
"version": "2.67.0-rc.2",
|
|
70
|
+
"stableVersion": "2.66.9"
|
|
69
71
|
}
|
package/src/lib/Base.ts
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export type LogFunction = (message?: unknown) => void
|
|
1
|
+
import { Logger } from '@xyo-network/logger'
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
* Interface to handle overlap between Winston &
|
|
7
|
-
* `console` with as much congruency as possible.
|
|
8
|
-
*/
|
|
9
|
-
export interface Logger {
|
|
10
|
-
debug: LogFunction
|
|
11
|
-
error: LogFunction
|
|
12
|
-
info: LogFunction
|
|
13
|
-
log: LogFunction
|
|
14
|
-
warn: LogFunction
|
|
15
|
-
}
|
|
3
|
+
import { AnyObject } from './AnyObject'
|
|
16
4
|
|
|
17
5
|
export type BaseParamsFields = {
|
|
18
6
|
logger?: Logger
|