@xyo-network/node-system-info-payload-plugin 2.28.0-rc.4 → 2.28.0-rc.7
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/Plugin.d.ts +6 -2
- package/dist/cjs/Plugin.d.ts.map +1 -1
- package/dist/cjs/Plugin.js +4 -4
- package/dist/cjs/Plugin.js.map +1 -1
- package/dist/docs.json +320 -224
- package/dist/esm/Plugin.d.ts +6 -2
- package/dist/esm/Plugin.d.ts.map +1 -1
- package/dist/esm/Plugin.js +8 -4
- package/dist/esm/Plugin.js.map +1 -1
- package/package.json +6 -7
- package/src/Plugin.spec.ts +2 -1
- package/src/Plugin.ts +10 -7
package/dist/esm/Plugin.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { XyoPayloadPluginFunc } from '@xyo-network/payload-plugin';
|
|
2
1
|
import { XyoNodeSystemInfoWitnessConfig } from './Config';
|
|
3
2
|
import { XyoNodeSystemInfoPayload } from './Payload';
|
|
4
|
-
export declare const XyoNodeSystemInfoPayloadPlugin:
|
|
3
|
+
export declare const XyoNodeSystemInfoPayloadPlugin: () => import("@xyo-network/payload-plugin").XyoPayloadPlugin<XyoNodeSystemInfoPayload, XyoNodeSystemInfoWitnessConfig, import("@xyo-network/diviner").XyoDivinerConfig<XyoNodeSystemInfoPayload, {
|
|
4
|
+
schema: string;
|
|
5
|
+
previousHash?: string | undefined;
|
|
6
|
+
sources?: string[] | undefined;
|
|
7
|
+
timestamp?: number | undefined;
|
|
8
|
+
}>>;
|
|
5
9
|
//# sourceMappingURL=Plugin.d.ts.map
|
package/dist/esm/Plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,8BAA8B,EAAwC,MAAM,UAAU,CAAA;AAC/F,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AAIpD,eAAO,MAAM,8BAA8B;;;;;GAWvC,CAAA"}
|
package/dist/esm/Plugin.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { assertEx } from '@xylabs/assert';
|
|
2
1
|
import { createXyoPayloadPlugin } from '@xyo-network/payload-plugin';
|
|
2
|
+
import { XyoNodeSystemInfoWitnessConfigSchema } from './Config';
|
|
3
3
|
import { XyoNodeSystemInfoPayloadSchema } from './Schema';
|
|
4
4
|
import { XyoNodeSystemInfoWitness } from './Witness';
|
|
5
|
-
export const XyoNodeSystemInfoPayloadPlugin = (
|
|
5
|
+
export const XyoNodeSystemInfoPayloadPlugin = () => createXyoPayloadPlugin({
|
|
6
6
|
auto: true,
|
|
7
7
|
schema: XyoNodeSystemInfoPayloadSchema,
|
|
8
|
-
witness: () => {
|
|
9
|
-
return new XyoNodeSystemInfoWitness(
|
|
8
|
+
witness: (config) => {
|
|
9
|
+
return new XyoNodeSystemInfoWitness({
|
|
10
|
+
...config,
|
|
11
|
+
schema: XyoNodeSystemInfoWitnessConfigSchema,
|
|
12
|
+
targetSchema: XyoNodeSystemInfoPayloadSchema,
|
|
13
|
+
});
|
|
10
14
|
},
|
|
11
15
|
});
|
|
12
16
|
//# sourceMappingURL=Plugin.js.map
|
package/dist/esm/Plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Plugin.js","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AAEpE,OAAO,EAAkC,oCAAoC,EAAE,MAAM,UAAU,CAAA;AAE/F,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAA;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AAEpD,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,EAAE,CACjD,sBAAsB,CAA2D;IAC/E,IAAI,EAAE,IAAI;IACV,MAAM,EAAE,8BAA8B;IACtC,OAAO,EAAE,CAAC,MAAM,EAA4B,EAAE;QAC5C,OAAO,IAAI,wBAAwB,CAAC;YAClC,GAAG,MAAM;YACT,MAAM,EAAE,oCAAoC;YAC5C,YAAY,EAAE,8BAA8B;SAC7C,CAAC,CAAA;IACJ,CAAC;CACF,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,16 +10,15 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@
|
|
14
|
-
"@xyo-network/
|
|
15
|
-
"@xyo-network/payload": "^2.28.0-rc.
|
|
16
|
-
"@xyo-network/
|
|
17
|
-
"@xyo-network/witness": "^2.28.0-rc.4",
|
|
13
|
+
"@xyo-network/account": "^2.28.0-rc.7",
|
|
14
|
+
"@xyo-network/payload": "^2.28.0-rc.7",
|
|
15
|
+
"@xyo-network/payload-plugin": "^2.28.0-rc.7",
|
|
16
|
+
"@xyo-network/witness": "^2.28.0-rc.7",
|
|
18
17
|
"systeminformation": "^5.12.6",
|
|
19
18
|
"tslib": "^2.4.0"
|
|
20
19
|
},
|
|
21
20
|
"devDependencies": {
|
|
22
|
-
"@xylabs/tsconfig": "^2.5.
|
|
21
|
+
"@xylabs/tsconfig": "^2.5.127"
|
|
23
22
|
},
|
|
24
23
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
25
24
|
"browser": "dist/esm/index.js",
|
|
@@ -54,6 +53,6 @@
|
|
|
54
53
|
},
|
|
55
54
|
"sideEffects": false,
|
|
56
55
|
"types": "dist/esm/index.d.ts",
|
|
57
|
-
"version": "2.28.0-rc.
|
|
56
|
+
"version": "2.28.0-rc.7",
|
|
58
57
|
"stableVersion": "2.28.0-rc.2"
|
|
59
58
|
}
|
package/src/Plugin.spec.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { XyoNodeSystemInfoPayloadSchema } from './Schema'
|
|
|
6
6
|
describe('XyoBowserSystemInfoPayloadPlugin', () => {
|
|
7
7
|
test('Add to Resolver', () => {
|
|
8
8
|
const resolver = new XyoPayloadPluginResolver().register(XyoNodeSystemInfoPayloadPlugin())
|
|
9
|
-
expect(resolver.resolve({ schema: XyoNodeSystemInfoPayloadSchema })).
|
|
9
|
+
expect(resolver.resolve({ schema: XyoNodeSystemInfoPayloadSchema })).toBeObject()
|
|
10
|
+
expect(resolver.witness(XyoNodeSystemInfoPayloadSchema)).toBeObject()
|
|
10
11
|
})
|
|
11
12
|
})
|
package/src/Plugin.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createXyoPayloadPlugin, XyoPayloadPluginFunc } from '@xyo-network/payload-plugin'
|
|
1
|
+
import { createXyoPayloadPlugin } from '@xyo-network/payload-plugin'
|
|
3
2
|
|
|
4
|
-
import { XyoNodeSystemInfoWitnessConfig } from './Config'
|
|
3
|
+
import { XyoNodeSystemInfoWitnessConfig, XyoNodeSystemInfoWitnessConfigSchema } from './Config'
|
|
5
4
|
import { XyoNodeSystemInfoPayload } from './Payload'
|
|
6
5
|
import { XyoNodeSystemInfoPayloadSchema } from './Schema'
|
|
7
6
|
import { XyoNodeSystemInfoWitness } from './Witness'
|
|
8
7
|
|
|
9
|
-
export const XyoNodeSystemInfoPayloadPlugin
|
|
10
|
-
createXyoPayloadPlugin({
|
|
8
|
+
export const XyoNodeSystemInfoPayloadPlugin = () =>
|
|
9
|
+
createXyoPayloadPlugin<XyoNodeSystemInfoPayload, XyoNodeSystemInfoWitnessConfig>({
|
|
11
10
|
auto: true,
|
|
12
11
|
schema: XyoNodeSystemInfoPayloadSchema,
|
|
13
|
-
witness: (): XyoNodeSystemInfoWitness => {
|
|
14
|
-
return new XyoNodeSystemInfoWitness(
|
|
12
|
+
witness: (config): XyoNodeSystemInfoWitness => {
|
|
13
|
+
return new XyoNodeSystemInfoWitness({
|
|
14
|
+
...config,
|
|
15
|
+
schema: XyoNodeSystemInfoWitnessConfigSchema,
|
|
16
|
+
targetSchema: XyoNodeSystemInfoPayloadSchema,
|
|
17
|
+
})
|
|
15
18
|
},
|
|
16
19
|
})
|