@xyo-network/node-system-info-plugin 2.96.1 → 2.96.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/browser/Plugin.d.cts +8 -8
- package/dist/browser/Plugin.d.mts +8 -8
- package/dist/browser/Plugin.d.ts +8 -8
- package/dist/browser/index.cjs +1 -60
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +1 -37
- package/dist/browser/index.js.map +1 -1
- package/dist/neutral/Plugin.d.cts +8 -8
- package/dist/neutral/Plugin.d.mts +8 -8
- package/dist/neutral/Plugin.d.ts +8 -8
- package/dist/neutral/index.cjs +1 -60
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.js +1 -37
- package/dist/neutral/index.js.map +1 -1
- package/dist/node/Plugin.d.cts +8 -8
- package/dist/node/Plugin.d.mts +8 -8
- package/dist/node/Plugin.d.ts +8 -8
- package/dist/node/index.cjs +1 -67
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +1 -38
- package/dist/node/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { NodeSystemInfoWitness } from './Witness';
|
|
2
2
|
export declare const NodeSystemInfoPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<NodeSystemInfoWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
4
|
-
addToResolvers?: boolean
|
|
5
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
6
|
-
allowNameResolution?: boolean
|
|
3
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
|
+
addToResolvers?: boolean;
|
|
5
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
6
|
+
allowNameResolution?: boolean;
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.system.info.witness.node.config";
|
|
9
9
|
} & {
|
|
10
|
-
nodeValues?: Record<string, string
|
|
11
|
-
schema: "
|
|
10
|
+
nodeValues?: Record<string, string>;
|
|
11
|
+
schema: import("./Config").NodeSystemInfoWitnessConfigSchema;
|
|
12
12
|
}, "schema"> & {
|
|
13
13
|
schema: "network.xyo.system.info.witness.node.config";
|
|
14
14
|
}, "schema"> & {
|
|
15
15
|
schema: string;
|
|
16
16
|
};
|
|
17
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
18
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
17
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
18
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
19
19
|
}>>;
|
|
20
20
|
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { NodeSystemInfoWitness } from './Witness';
|
|
2
2
|
export declare const NodeSystemInfoPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<NodeSystemInfoWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
4
|
-
addToResolvers?: boolean
|
|
5
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
6
|
-
allowNameResolution?: boolean
|
|
3
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
|
+
addToResolvers?: boolean;
|
|
5
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
6
|
+
allowNameResolution?: boolean;
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.system.info.witness.node.config";
|
|
9
9
|
} & {
|
|
10
|
-
nodeValues?: Record<string, string
|
|
11
|
-
schema: "
|
|
10
|
+
nodeValues?: Record<string, string>;
|
|
11
|
+
schema: import("./Config").NodeSystemInfoWitnessConfigSchema;
|
|
12
12
|
}, "schema"> & {
|
|
13
13
|
schema: "network.xyo.system.info.witness.node.config";
|
|
14
14
|
}, "schema"> & {
|
|
15
15
|
schema: string;
|
|
16
16
|
};
|
|
17
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
18
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
17
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
18
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
19
19
|
}>>;
|
|
20
20
|
//# sourceMappingURL=Plugin.d.ts.map
|
package/dist/browser/Plugin.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { NodeSystemInfoWitness } from './Witness';
|
|
2
2
|
export declare const NodeSystemInfoPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<NodeSystemInfoWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
4
|
-
addToResolvers?: boolean
|
|
5
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
6
|
-
allowNameResolution?: boolean
|
|
3
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
|
+
addToResolvers?: boolean;
|
|
5
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
6
|
+
allowNameResolution?: boolean;
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.system.info.witness.node.config";
|
|
9
9
|
} & {
|
|
10
|
-
nodeValues?: Record<string, string
|
|
11
|
-
schema: "
|
|
10
|
+
nodeValues?: Record<string, string>;
|
|
11
|
+
schema: import("./Config").NodeSystemInfoWitnessConfigSchema;
|
|
12
12
|
}, "schema"> & {
|
|
13
13
|
schema: "network.xyo.system.info.witness.node.config";
|
|
14
14
|
}, "schema"> & {
|
|
15
15
|
schema: string;
|
|
16
16
|
};
|
|
17
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
18
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
17
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
18
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
19
19
|
}>>;
|
|
20
20
|
//# sourceMappingURL=Plugin.d.ts.map
|
package/dist/browser/index.cjs
CHANGED
|
@@ -1,61 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
NodeSystemInfoPlugin: () => NodeSystemInfoPlugin,
|
|
24
|
-
NodeSystemInfoWitness: () => NodeSystemInfoWitness,
|
|
25
|
-
NodeSystemInfoWitnessConfigSchema: () => NodeSystemInfoWitnessConfigSchema,
|
|
26
|
-
default: () => NodeSystemInfoPlugin
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(src_exports);
|
|
29
|
-
|
|
30
|
-
// src/Config.ts
|
|
31
|
-
var NodeSystemInfoWitnessConfigSchema = "network.xyo.system.info.witness.node.config";
|
|
32
|
-
|
|
33
|
-
// src/Plugin.ts
|
|
34
|
-
var import_node_system_info_payload_plugin2 = require("@xyo-network/node-system-info-payload-plugin");
|
|
35
|
-
var import_payload_model = require("@xyo-network/payload-model");
|
|
36
|
-
var import_payloadset_plugin = require("@xyo-network/payloadset-plugin");
|
|
37
|
-
|
|
38
|
-
// src/Witness.ts
|
|
39
|
-
var import_abstract_witness = require("@xyo-network/abstract-witness");
|
|
40
|
-
var import_node_system_info_payload_plugin = require("@xyo-network/node-system-info-payload-plugin");
|
|
41
|
-
var import_systeminformation = require("systeminformation");
|
|
42
|
-
var NodeSystemInfoWitness = class extends import_abstract_witness.AbstractWitness {
|
|
43
|
-
static configSchemas = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema];
|
|
44
|
-
static defaultConfigSchema = NodeSystemInfoWitnessConfigSchema;
|
|
45
|
-
async observeHandler(payloads) {
|
|
46
|
-
const node = await (0, import_systeminformation.get)(this.config?.nodeValues ?? (0, import_node_system_info_payload_plugin.defaultSystemInfoConfig)());
|
|
47
|
-
return [{ ...node, ...payloads?.[0], schema: import_node_system_info_payload_plugin.NodeSystemInfoSchema }];
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
// src/Plugin.ts
|
|
52
|
-
var NodeSystemInfoPlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
|
|
53
|
-
{ required: { [import_node_system_info_payload_plugin2.NodeSystemInfoSchema]: 1 }, schema: import_payload_model.PayloadSetSchema },
|
|
54
|
-
{
|
|
55
|
-
witness: async (params) => {
|
|
56
|
-
const result = await NodeSystemInfoWitness.create(params);
|
|
57
|
-
return result;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
);
|
|
1
|
+
"use strict";var r=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var W=(o,e)=>{for(var s in e)r(o,s,{get:e[s],enumerable:!0})},I=(o,e,s,f)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of l(e))!h.call(o,t)&&t!==s&&r(o,t,{get:()=>e[t],enumerable:!(f=g(e,t))||f.enumerable});return o};var u=o=>I(r({},"__esModule",{value:!0}),o);var N={};W(N,{NodeSystemInfoPlugin:()=>a,NodeSystemInfoWitness:()=>n,NodeSystemInfoWitnessConfigSchema:()=>m,default:()=>a});module.exports=u(N);var m="network.xyo.system.info.witness.node.config";var S=require("@xyo-network/node-system-info-payload-plugin"),y=require("@xyo-network/payload-model"),p=require("@xyo-network/payloadset-plugin");var d=require("@xyo-network/abstract-witness"),i=require("@xyo-network/node-system-info-payload-plugin"),c=require("systeminformation");var n=class extends d.AbstractWitness{static configSchemas=[...super.configSchemas,m];static defaultConfigSchema=m;async observeHandler(e){return[{...await(0,c.get)(this.config?.nodeValues??(0,i.defaultSystemInfoConfig)()),...e?.[0],schema:i.NodeSystemInfoSchema}]}};var a=()=>(0,p.createPayloadSetWitnessPlugin)({required:{[S.NodeSystemInfoSchema]:1},schema:y.PayloadSetSchema},{witness:async o=>await n.create(o)});
|
|
61
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["export * from './Config'\nexport { NodeSystemInfoPlugin as default, NodeSystemInfoPlugin } from './Plugin'\nexport * from './Witness'\n","import { WitnessConfig } from '@xyo-network/witness-model'\n\nexport type NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\nexport const NodeSystemInfoWitnessConfigSchema: NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\n\nexport type NodeSystemInfoWitnessConfig = WitnessConfig<{\n nodeValues?: Record<string, string>\n schema: NodeSystemInfoWitnessConfigSchema\n}>\n","import { NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { NodeSystemInfoWitness } from './Witness'\n\nexport const NodeSystemInfoPlugin = () =>\n createPayloadSetWitnessPlugin<NodeSystemInfoWitness>(\n { required: { [NodeSystemInfoSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await NodeSystemInfoWitness.create(params)\n return result\n },\n },\n )\n","import { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { defaultSystemInfoConfig, NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessModule, WitnessParams } from '@xyo-network/witness-model'\nimport { get } from 'systeminformation'\n\nimport { NodeSystemInfoWitnessConfig, NodeSystemInfoWitnessConfigSchema } from './Config'\n\nexport type NodeSystemInfoWitnessParams = WitnessParams<AnyConfigSchema<NodeSystemInfoWitnessConfig>>\n\nexport class NodeSystemInfoWitness<TParams extends NodeSystemInfoWitnessParams = NodeSystemInfoWitnessParams>\n extends AbstractWitness<TParams>\n implements WitnessModule\n{\n static override readonly configSchemas: Schema[] = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = NodeSystemInfoWitnessConfigSchema\n\n protected override async observeHandler(payloads?: Payload[]) {\n const node = await get(this.config?.nodeValues ?? defaultSystemInfoConfig())\n return [{ ...node, ...payloads?.[0], schema: NodeSystemInfoSchema }]\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["export * from './Config'\nexport { NodeSystemInfoPlugin as default, NodeSystemInfoPlugin } from './Plugin'\nexport * from './Witness'\n","import { WitnessConfig } from '@xyo-network/witness-model'\n\nexport type NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\nexport const NodeSystemInfoWitnessConfigSchema: NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\n\nexport type NodeSystemInfoWitnessConfig = WitnessConfig<{\n nodeValues?: Record<string, string>\n schema: NodeSystemInfoWitnessConfigSchema\n}>\n","import { NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { NodeSystemInfoWitness } from './Witness'\n\nexport const NodeSystemInfoPlugin = () =>\n createPayloadSetWitnessPlugin<NodeSystemInfoWitness>(\n { required: { [NodeSystemInfoSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await NodeSystemInfoWitness.create(params)\n return result\n },\n },\n )\n","import { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { defaultSystemInfoConfig, NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessModule, WitnessParams } from '@xyo-network/witness-model'\nimport { get } from 'systeminformation'\n\nimport { NodeSystemInfoWitnessConfig, NodeSystemInfoWitnessConfigSchema } from './Config'\n\nexport type NodeSystemInfoWitnessParams = WitnessParams<AnyConfigSchema<NodeSystemInfoWitnessConfig>>\n\nexport class NodeSystemInfoWitness<TParams extends NodeSystemInfoWitnessParams = NodeSystemInfoWitnessParams>\n extends AbstractWitness<TParams>\n implements WitnessModule\n{\n static override readonly configSchemas: Schema[] = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = NodeSystemInfoWitnessConfigSchema\n\n protected override async observeHandler(payloads?: Payload[]) {\n const node = await get(this.config?.nodeValues ?? defaultSystemInfoConfig())\n return [{ ...node, ...payloads?.[0], schema: NodeSystemInfoSchema }]\n }\n}\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,0BAAAE,EAAA,0BAAAC,EAAA,sCAAAC,EAAA,YAAAF,IAAA,eAAAG,EAAAL,GCGO,IAAMM,EAAuE,8CCHpF,IAAAC,EAAqC,wDACrCC,EAAiC,sCACjCC,EAA8C,0CCF9C,IAAAC,EAAgC,yCAEhCC,EAA8D,wDAG9DC,EAAoB,6BAMb,IAAMC,EAAN,cACG,iBAEV,CACE,OAAyB,cAA0B,CAAC,GAAG,MAAM,cAAeC,CAAiC,EAC7G,OAAyB,oBAA8BA,EAEvD,MAAyB,eAAeC,EAAsB,CAE5D,MAAO,CAAC,CAAE,GADG,QAAM,OAAI,KAAK,QAAQ,eAAc,2BAAwB,CAAC,EACxD,GAAGA,IAAW,CAAC,EAAG,OAAQ,sBAAqB,CAAC,CACrE,CACF,EDhBO,IAAMC,EAAuB,OAClC,iCACE,CAAE,SAAU,CAAE,CAAC,sBAAoB,EAAG,CAAE,EAAG,OAAQ,kBAAiB,EACpE,CACE,QAAS,MAAOC,GACC,MAAMC,EAAsB,OAAOD,CAAM,CAG5D,CACF","names":["src_exports","__export","NodeSystemInfoPlugin","NodeSystemInfoWitness","NodeSystemInfoWitnessConfigSchema","__toCommonJS","NodeSystemInfoWitnessConfigSchema","import_node_system_info_payload_plugin","import_payload_model","import_payloadset_plugin","import_abstract_witness","import_node_system_info_payload_plugin","import_systeminformation","NodeSystemInfoWitness","NodeSystemInfoWitnessConfigSchema","payloads","NodeSystemInfoPlugin","params","NodeSystemInfoWitness"]}
|
package/dist/browser/index.js
CHANGED
|
@@ -1,38 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var NodeSystemInfoWitnessConfigSchema = "network.xyo.system.info.witness.node.config";
|
|
3
|
-
|
|
4
|
-
// src/Plugin.ts
|
|
5
|
-
import { NodeSystemInfoSchema as NodeSystemInfoSchema2 } from "@xyo-network/node-system-info-payload-plugin";
|
|
6
|
-
import { PayloadSetSchema } from "@xyo-network/payload-model";
|
|
7
|
-
import { createPayloadSetWitnessPlugin } from "@xyo-network/payloadset-plugin";
|
|
8
|
-
|
|
9
|
-
// src/Witness.ts
|
|
10
|
-
import { AbstractWitness } from "@xyo-network/abstract-witness";
|
|
11
|
-
import { defaultSystemInfoConfig, NodeSystemInfoSchema } from "@xyo-network/node-system-info-payload-plugin";
|
|
12
|
-
import { get } from "systeminformation";
|
|
13
|
-
var NodeSystemInfoWitness = class extends AbstractWitness {
|
|
14
|
-
static configSchemas = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema];
|
|
15
|
-
static defaultConfigSchema = NodeSystemInfoWitnessConfigSchema;
|
|
16
|
-
async observeHandler(payloads) {
|
|
17
|
-
const node = await get(this.config?.nodeValues ?? defaultSystemInfoConfig());
|
|
18
|
-
return [{ ...node, ...payloads?.[0], schema: NodeSystemInfoSchema }];
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
// src/Plugin.ts
|
|
23
|
-
var NodeSystemInfoPlugin = () => createPayloadSetWitnessPlugin(
|
|
24
|
-
{ required: { [NodeSystemInfoSchema2]: 1 }, schema: PayloadSetSchema },
|
|
25
|
-
{
|
|
26
|
-
witness: async (params) => {
|
|
27
|
-
const result = await NodeSystemInfoWitness.create(params);
|
|
28
|
-
return result;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
export {
|
|
33
|
-
NodeSystemInfoPlugin,
|
|
34
|
-
NodeSystemInfoWitness,
|
|
35
|
-
NodeSystemInfoWitnessConfigSchema,
|
|
36
|
-
NodeSystemInfoPlugin as default
|
|
37
|
-
};
|
|
1
|
+
var o="network.xyo.system.info.witness.node.config";import{NodeSystemInfoSchema as f}from"@xyo-network/node-system-info-payload-plugin";import{PayloadSetSchema as d}from"@xyo-network/payload-model";import{createPayloadSetWitnessPlugin as c}from"@xyo-network/payloadset-plugin";import{AbstractWitness as m}from"@xyo-network/abstract-witness";import{defaultSystemInfoConfig as i,NodeSystemInfoSchema as r}from"@xyo-network/node-system-info-payload-plugin";import{get as a}from"systeminformation";var e=class extends m{static configSchemas=[...super.configSchemas,o];static defaultConfigSchema=o;async observeHandler(t){return[{...await a(this.config?.nodeValues??i()),...t?.[0],schema:r}]}};var n=()=>c({required:{[f]:1},schema:d},{witness:async s=>await e.create(s)});export{n as NodeSystemInfoPlugin,e as NodeSystemInfoWitness,o as NodeSystemInfoWitnessConfigSchema,n as default};
|
|
38
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Config.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["import { WitnessConfig } from '@xyo-network/witness-model'\n\nexport type NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\nexport const NodeSystemInfoWitnessConfigSchema: NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\n\nexport type NodeSystemInfoWitnessConfig = WitnessConfig<{\n nodeValues?: Record<string, string>\n schema: NodeSystemInfoWitnessConfigSchema\n}>\n","import { NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { NodeSystemInfoWitness } from './Witness'\n\nexport const NodeSystemInfoPlugin = () =>\n createPayloadSetWitnessPlugin<NodeSystemInfoWitness>(\n { required: { [NodeSystemInfoSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await NodeSystemInfoWitness.create(params)\n return result\n },\n },\n )\n","import { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { defaultSystemInfoConfig, NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessModule, WitnessParams } from '@xyo-network/witness-model'\nimport { get } from 'systeminformation'\n\nimport { NodeSystemInfoWitnessConfig, NodeSystemInfoWitnessConfigSchema } from './Config'\n\nexport type NodeSystemInfoWitnessParams = WitnessParams<AnyConfigSchema<NodeSystemInfoWitnessConfig>>\n\nexport class NodeSystemInfoWitness<TParams extends NodeSystemInfoWitnessParams = NodeSystemInfoWitnessParams>\n extends AbstractWitness<TParams>\n implements WitnessModule\n{\n static override readonly configSchemas: Schema[] = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = NodeSystemInfoWitnessConfigSchema\n\n protected override async observeHandler(payloads?: Payload[]) {\n const node = await get(this.config?.nodeValues ?? defaultSystemInfoConfig())\n return [{ ...node, ...payloads?.[0], schema: NodeSystemInfoSchema }]\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Config.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["import { WitnessConfig } from '@xyo-network/witness-model'\n\nexport type NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\nexport const NodeSystemInfoWitnessConfigSchema: NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\n\nexport type NodeSystemInfoWitnessConfig = WitnessConfig<{\n nodeValues?: Record<string, string>\n schema: NodeSystemInfoWitnessConfigSchema\n}>\n","import { NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { NodeSystemInfoWitness } from './Witness'\n\nexport const NodeSystemInfoPlugin = () =>\n createPayloadSetWitnessPlugin<NodeSystemInfoWitness>(\n { required: { [NodeSystemInfoSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await NodeSystemInfoWitness.create(params)\n return result\n },\n },\n )\n","import { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { defaultSystemInfoConfig, NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessModule, WitnessParams } from '@xyo-network/witness-model'\nimport { get } from 'systeminformation'\n\nimport { NodeSystemInfoWitnessConfig, NodeSystemInfoWitnessConfigSchema } from './Config'\n\nexport type NodeSystemInfoWitnessParams = WitnessParams<AnyConfigSchema<NodeSystemInfoWitnessConfig>>\n\nexport class NodeSystemInfoWitness<TParams extends NodeSystemInfoWitnessParams = NodeSystemInfoWitnessParams>\n extends AbstractWitness<TParams>\n implements WitnessModule\n{\n static override readonly configSchemas: Schema[] = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = NodeSystemInfoWitnessConfigSchema\n\n protected override async observeHandler(payloads?: Payload[]) {\n const node = await get(this.config?.nodeValues ?? defaultSystemInfoConfig())\n return [{ ...node, ...payloads?.[0], schema: NodeSystemInfoSchema }]\n }\n}\n"],"mappings":"AAGO,IAAMA,EAAuE,8CCHpF,OAAS,wBAAAC,MAA4B,+CACrC,OAAS,oBAAAC,MAAwB,6BACjC,OAAS,iCAAAC,MAAqC,iCCF9C,OAAS,mBAAAC,MAAuB,gCAEhC,OAAS,2BAAAC,EAAyB,wBAAAC,MAA4B,+CAG9D,OAAS,OAAAC,MAAW,oBAMb,IAAMC,EAAN,cACGC,CAEV,CACE,OAAyB,cAA0B,CAAC,GAAG,MAAM,cAAeC,CAAiC,EAC7G,OAAyB,oBAA8BA,EAEvD,MAAyB,eAAeC,EAAsB,CAE5D,MAAO,CAAC,CAAE,GADG,MAAMC,EAAI,KAAK,QAAQ,YAAcC,EAAwB,CAAC,EACxD,GAAGF,IAAW,CAAC,EAAG,OAAQG,CAAqB,CAAC,CACrE,CACF,EDhBO,IAAMC,EAAuB,IAClCC,EACE,CAAE,SAAU,CAAE,CAACC,CAAoB,EAAG,CAAE,EAAG,OAAQC,CAAiB,EACpE,CACE,QAAS,MAAOC,GACC,MAAMC,EAAsB,OAAOD,CAAM,CAG5D,CACF","names":["NodeSystemInfoWitnessConfigSchema","NodeSystemInfoSchema","PayloadSetSchema","createPayloadSetWitnessPlugin","AbstractWitness","defaultSystemInfoConfig","NodeSystemInfoSchema","get","NodeSystemInfoWitness","AbstractWitness","NodeSystemInfoWitnessConfigSchema","payloads","get","defaultSystemInfoConfig","NodeSystemInfoSchema","NodeSystemInfoPlugin","createPayloadSetWitnessPlugin","NodeSystemInfoSchema","PayloadSetSchema","params","NodeSystemInfoWitness"]}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { NodeSystemInfoWitness } from './Witness';
|
|
2
2
|
export declare const NodeSystemInfoPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<NodeSystemInfoWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
4
|
-
addToResolvers?: boolean
|
|
5
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
6
|
-
allowNameResolution?: boolean
|
|
3
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
|
+
addToResolvers?: boolean;
|
|
5
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
6
|
+
allowNameResolution?: boolean;
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.system.info.witness.node.config";
|
|
9
9
|
} & {
|
|
10
|
-
nodeValues?: Record<string, string
|
|
11
|
-
schema: "
|
|
10
|
+
nodeValues?: Record<string, string>;
|
|
11
|
+
schema: import("./Config").NodeSystemInfoWitnessConfigSchema;
|
|
12
12
|
}, "schema"> & {
|
|
13
13
|
schema: "network.xyo.system.info.witness.node.config";
|
|
14
14
|
}, "schema"> & {
|
|
15
15
|
schema: string;
|
|
16
16
|
};
|
|
17
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
18
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
17
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
18
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
19
19
|
}>>;
|
|
20
20
|
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { NodeSystemInfoWitness } from './Witness';
|
|
2
2
|
export declare const NodeSystemInfoPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<NodeSystemInfoWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
4
|
-
addToResolvers?: boolean
|
|
5
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
6
|
-
allowNameResolution?: boolean
|
|
3
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
|
+
addToResolvers?: boolean;
|
|
5
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
6
|
+
allowNameResolution?: boolean;
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.system.info.witness.node.config";
|
|
9
9
|
} & {
|
|
10
|
-
nodeValues?: Record<string, string
|
|
11
|
-
schema: "
|
|
10
|
+
nodeValues?: Record<string, string>;
|
|
11
|
+
schema: import("./Config").NodeSystemInfoWitnessConfigSchema;
|
|
12
12
|
}, "schema"> & {
|
|
13
13
|
schema: "network.xyo.system.info.witness.node.config";
|
|
14
14
|
}, "schema"> & {
|
|
15
15
|
schema: string;
|
|
16
16
|
};
|
|
17
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
18
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
17
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
18
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
19
19
|
}>>;
|
|
20
20
|
//# sourceMappingURL=Plugin.d.ts.map
|
package/dist/neutral/Plugin.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { NodeSystemInfoWitness } from './Witness';
|
|
2
2
|
export declare const NodeSystemInfoPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<NodeSystemInfoWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
4
|
-
addToResolvers?: boolean
|
|
5
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
6
|
-
allowNameResolution?: boolean
|
|
3
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
|
+
addToResolvers?: boolean;
|
|
5
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
6
|
+
allowNameResolution?: boolean;
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.system.info.witness.node.config";
|
|
9
9
|
} & {
|
|
10
|
-
nodeValues?: Record<string, string
|
|
11
|
-
schema: "
|
|
10
|
+
nodeValues?: Record<string, string>;
|
|
11
|
+
schema: import("./Config").NodeSystemInfoWitnessConfigSchema;
|
|
12
12
|
}, "schema"> & {
|
|
13
13
|
schema: "network.xyo.system.info.witness.node.config";
|
|
14
14
|
}, "schema"> & {
|
|
15
15
|
schema: string;
|
|
16
16
|
};
|
|
17
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
18
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
17
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
18
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
19
19
|
}>>;
|
|
20
20
|
//# sourceMappingURL=Plugin.d.ts.map
|
package/dist/neutral/index.cjs
CHANGED
|
@@ -1,61 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
NodeSystemInfoPlugin: () => NodeSystemInfoPlugin,
|
|
24
|
-
NodeSystemInfoWitness: () => NodeSystemInfoWitness,
|
|
25
|
-
NodeSystemInfoWitnessConfigSchema: () => NodeSystemInfoWitnessConfigSchema,
|
|
26
|
-
default: () => NodeSystemInfoPlugin
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(src_exports);
|
|
29
|
-
|
|
30
|
-
// src/Config.ts
|
|
31
|
-
var NodeSystemInfoWitnessConfigSchema = "network.xyo.system.info.witness.node.config";
|
|
32
|
-
|
|
33
|
-
// src/Plugin.ts
|
|
34
|
-
var import_node_system_info_payload_plugin2 = require("@xyo-network/node-system-info-payload-plugin");
|
|
35
|
-
var import_payload_model = require("@xyo-network/payload-model");
|
|
36
|
-
var import_payloadset_plugin = require("@xyo-network/payloadset-plugin");
|
|
37
|
-
|
|
38
|
-
// src/Witness.ts
|
|
39
|
-
var import_abstract_witness = require("@xyo-network/abstract-witness");
|
|
40
|
-
var import_node_system_info_payload_plugin = require("@xyo-network/node-system-info-payload-plugin");
|
|
41
|
-
var import_systeminformation = require("systeminformation");
|
|
42
|
-
var NodeSystemInfoWitness = class extends import_abstract_witness.AbstractWitness {
|
|
43
|
-
static configSchemas = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema];
|
|
44
|
-
static defaultConfigSchema = NodeSystemInfoWitnessConfigSchema;
|
|
45
|
-
async observeHandler(payloads) {
|
|
46
|
-
const node = await (0, import_systeminformation.get)(this.config?.nodeValues ?? (0, import_node_system_info_payload_plugin.defaultSystemInfoConfig)());
|
|
47
|
-
return [{ ...node, ...payloads?.[0], schema: import_node_system_info_payload_plugin.NodeSystemInfoSchema }];
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
// src/Plugin.ts
|
|
52
|
-
var NodeSystemInfoPlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
|
|
53
|
-
{ required: { [import_node_system_info_payload_plugin2.NodeSystemInfoSchema]: 1 }, schema: import_payload_model.PayloadSetSchema },
|
|
54
|
-
{
|
|
55
|
-
witness: async (params) => {
|
|
56
|
-
const result = await NodeSystemInfoWitness.create(params);
|
|
57
|
-
return result;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
);
|
|
1
|
+
"use strict";var r=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var W=(o,e)=>{for(var s in e)r(o,s,{get:e[s],enumerable:!0})},I=(o,e,s,f)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of l(e))!h.call(o,t)&&t!==s&&r(o,t,{get:()=>e[t],enumerable:!(f=g(e,t))||f.enumerable});return o};var u=o=>I(r({},"__esModule",{value:!0}),o);var N={};W(N,{NodeSystemInfoPlugin:()=>a,NodeSystemInfoWitness:()=>n,NodeSystemInfoWitnessConfigSchema:()=>m,default:()=>a});module.exports=u(N);var m="network.xyo.system.info.witness.node.config";var S=require("@xyo-network/node-system-info-payload-plugin"),y=require("@xyo-network/payload-model"),p=require("@xyo-network/payloadset-plugin");var d=require("@xyo-network/abstract-witness"),i=require("@xyo-network/node-system-info-payload-plugin"),c=require("systeminformation");var n=class extends d.AbstractWitness{static configSchemas=[...super.configSchemas,m];static defaultConfigSchema=m;async observeHandler(e){return[{...await(0,c.get)(this.config?.nodeValues??(0,i.defaultSystemInfoConfig)()),...e?.[0],schema:i.NodeSystemInfoSchema}]}};var a=()=>(0,p.createPayloadSetWitnessPlugin)({required:{[S.NodeSystemInfoSchema]:1},schema:y.PayloadSetSchema},{witness:async o=>await n.create(o)});
|
|
61
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["export * from './Config'\nexport { NodeSystemInfoPlugin as default, NodeSystemInfoPlugin } from './Plugin'\nexport * from './Witness'\n","import { WitnessConfig } from '@xyo-network/witness-model'\n\nexport type NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\nexport const NodeSystemInfoWitnessConfigSchema: NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\n\nexport type NodeSystemInfoWitnessConfig = WitnessConfig<{\n nodeValues?: Record<string, string>\n schema: NodeSystemInfoWitnessConfigSchema\n}>\n","import { NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { NodeSystemInfoWitness } from './Witness'\n\nexport const NodeSystemInfoPlugin = () =>\n createPayloadSetWitnessPlugin<NodeSystemInfoWitness>(\n { required: { [NodeSystemInfoSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await NodeSystemInfoWitness.create(params)\n return result\n },\n },\n )\n","import { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { defaultSystemInfoConfig, NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessModule, WitnessParams } from '@xyo-network/witness-model'\nimport { get } from 'systeminformation'\n\nimport { NodeSystemInfoWitnessConfig, NodeSystemInfoWitnessConfigSchema } from './Config'\n\nexport type NodeSystemInfoWitnessParams = WitnessParams<AnyConfigSchema<NodeSystemInfoWitnessConfig>>\n\nexport class NodeSystemInfoWitness<TParams extends NodeSystemInfoWitnessParams = NodeSystemInfoWitnessParams>\n extends AbstractWitness<TParams>\n implements WitnessModule\n{\n static override readonly configSchemas: Schema[] = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = NodeSystemInfoWitnessConfigSchema\n\n protected override async observeHandler(payloads?: Payload[]) {\n const node = await get(this.config?.nodeValues ?? defaultSystemInfoConfig())\n return [{ ...node, ...payloads?.[0], schema: NodeSystemInfoSchema }]\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["export * from './Config'\nexport { NodeSystemInfoPlugin as default, NodeSystemInfoPlugin } from './Plugin'\nexport * from './Witness'\n","import { WitnessConfig } from '@xyo-network/witness-model'\n\nexport type NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\nexport const NodeSystemInfoWitnessConfigSchema: NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\n\nexport type NodeSystemInfoWitnessConfig = WitnessConfig<{\n nodeValues?: Record<string, string>\n schema: NodeSystemInfoWitnessConfigSchema\n}>\n","import { NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { NodeSystemInfoWitness } from './Witness'\n\nexport const NodeSystemInfoPlugin = () =>\n createPayloadSetWitnessPlugin<NodeSystemInfoWitness>(\n { required: { [NodeSystemInfoSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await NodeSystemInfoWitness.create(params)\n return result\n },\n },\n )\n","import { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { defaultSystemInfoConfig, NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessModule, WitnessParams } from '@xyo-network/witness-model'\nimport { get } from 'systeminformation'\n\nimport { NodeSystemInfoWitnessConfig, NodeSystemInfoWitnessConfigSchema } from './Config'\n\nexport type NodeSystemInfoWitnessParams = WitnessParams<AnyConfigSchema<NodeSystemInfoWitnessConfig>>\n\nexport class NodeSystemInfoWitness<TParams extends NodeSystemInfoWitnessParams = NodeSystemInfoWitnessParams>\n extends AbstractWitness<TParams>\n implements WitnessModule\n{\n static override readonly configSchemas: Schema[] = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = NodeSystemInfoWitnessConfigSchema\n\n protected override async observeHandler(payloads?: Payload[]) {\n const node = await get(this.config?.nodeValues ?? defaultSystemInfoConfig())\n return [{ ...node, ...payloads?.[0], schema: NodeSystemInfoSchema }]\n }\n}\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,0BAAAE,EAAA,0BAAAC,EAAA,sCAAAC,EAAA,YAAAF,IAAA,eAAAG,EAAAL,GCGO,IAAMM,EAAuE,8CCHpF,IAAAC,EAAqC,wDACrCC,EAAiC,sCACjCC,EAA8C,0CCF9C,IAAAC,EAAgC,yCAEhCC,EAA8D,wDAG9DC,EAAoB,6BAMb,IAAMC,EAAN,cACG,iBAEV,CACE,OAAyB,cAA0B,CAAC,GAAG,MAAM,cAAeC,CAAiC,EAC7G,OAAyB,oBAA8BA,EAEvD,MAAyB,eAAeC,EAAsB,CAE5D,MAAO,CAAC,CAAE,GADG,QAAM,OAAI,KAAK,QAAQ,eAAc,2BAAwB,CAAC,EACxD,GAAGA,IAAW,CAAC,EAAG,OAAQ,sBAAqB,CAAC,CACrE,CACF,EDhBO,IAAMC,EAAuB,OAClC,iCACE,CAAE,SAAU,CAAE,CAAC,sBAAoB,EAAG,CAAE,EAAG,OAAQ,kBAAiB,EACpE,CACE,QAAS,MAAOC,GACC,MAAMC,EAAsB,OAAOD,CAAM,CAG5D,CACF","names":["src_exports","__export","NodeSystemInfoPlugin","NodeSystemInfoWitness","NodeSystemInfoWitnessConfigSchema","__toCommonJS","NodeSystemInfoWitnessConfigSchema","import_node_system_info_payload_plugin","import_payload_model","import_payloadset_plugin","import_abstract_witness","import_node_system_info_payload_plugin","import_systeminformation","NodeSystemInfoWitness","NodeSystemInfoWitnessConfigSchema","payloads","NodeSystemInfoPlugin","params","NodeSystemInfoWitness"]}
|
package/dist/neutral/index.js
CHANGED
|
@@ -1,38 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var NodeSystemInfoWitnessConfigSchema = "network.xyo.system.info.witness.node.config";
|
|
3
|
-
|
|
4
|
-
// src/Plugin.ts
|
|
5
|
-
import { NodeSystemInfoSchema as NodeSystemInfoSchema2 } from "@xyo-network/node-system-info-payload-plugin";
|
|
6
|
-
import { PayloadSetSchema } from "@xyo-network/payload-model";
|
|
7
|
-
import { createPayloadSetWitnessPlugin } from "@xyo-network/payloadset-plugin";
|
|
8
|
-
|
|
9
|
-
// src/Witness.ts
|
|
10
|
-
import { AbstractWitness } from "@xyo-network/abstract-witness";
|
|
11
|
-
import { defaultSystemInfoConfig, NodeSystemInfoSchema } from "@xyo-network/node-system-info-payload-plugin";
|
|
12
|
-
import { get } from "systeminformation";
|
|
13
|
-
var NodeSystemInfoWitness = class extends AbstractWitness {
|
|
14
|
-
static configSchemas = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema];
|
|
15
|
-
static defaultConfigSchema = NodeSystemInfoWitnessConfigSchema;
|
|
16
|
-
async observeHandler(payloads) {
|
|
17
|
-
const node = await get(this.config?.nodeValues ?? defaultSystemInfoConfig());
|
|
18
|
-
return [{ ...node, ...payloads?.[0], schema: NodeSystemInfoSchema }];
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
// src/Plugin.ts
|
|
23
|
-
var NodeSystemInfoPlugin = () => createPayloadSetWitnessPlugin(
|
|
24
|
-
{ required: { [NodeSystemInfoSchema2]: 1 }, schema: PayloadSetSchema },
|
|
25
|
-
{
|
|
26
|
-
witness: async (params) => {
|
|
27
|
-
const result = await NodeSystemInfoWitness.create(params);
|
|
28
|
-
return result;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
export {
|
|
33
|
-
NodeSystemInfoPlugin,
|
|
34
|
-
NodeSystemInfoWitness,
|
|
35
|
-
NodeSystemInfoWitnessConfigSchema,
|
|
36
|
-
NodeSystemInfoPlugin as default
|
|
37
|
-
};
|
|
1
|
+
var o="network.xyo.system.info.witness.node.config";import{NodeSystemInfoSchema as f}from"@xyo-network/node-system-info-payload-plugin";import{PayloadSetSchema as d}from"@xyo-network/payload-model";import{createPayloadSetWitnessPlugin as c}from"@xyo-network/payloadset-plugin";import{AbstractWitness as m}from"@xyo-network/abstract-witness";import{defaultSystemInfoConfig as i,NodeSystemInfoSchema as r}from"@xyo-network/node-system-info-payload-plugin";import{get as a}from"systeminformation";var e=class extends m{static configSchemas=[...super.configSchemas,o];static defaultConfigSchema=o;async observeHandler(t){return[{...await a(this.config?.nodeValues??i()),...t?.[0],schema:r}]}};var n=()=>c({required:{[f]:1},schema:d},{witness:async s=>await e.create(s)});export{n as NodeSystemInfoPlugin,e as NodeSystemInfoWitness,o as NodeSystemInfoWitnessConfigSchema,n as default};
|
|
38
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Config.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["import { WitnessConfig } from '@xyo-network/witness-model'\n\nexport type NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\nexport const NodeSystemInfoWitnessConfigSchema: NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\n\nexport type NodeSystemInfoWitnessConfig = WitnessConfig<{\n nodeValues?: Record<string, string>\n schema: NodeSystemInfoWitnessConfigSchema\n}>\n","import { NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { NodeSystemInfoWitness } from './Witness'\n\nexport const NodeSystemInfoPlugin = () =>\n createPayloadSetWitnessPlugin<NodeSystemInfoWitness>(\n { required: { [NodeSystemInfoSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await NodeSystemInfoWitness.create(params)\n return result\n },\n },\n )\n","import { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { defaultSystemInfoConfig, NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessModule, WitnessParams } from '@xyo-network/witness-model'\nimport { get } from 'systeminformation'\n\nimport { NodeSystemInfoWitnessConfig, NodeSystemInfoWitnessConfigSchema } from './Config'\n\nexport type NodeSystemInfoWitnessParams = WitnessParams<AnyConfigSchema<NodeSystemInfoWitnessConfig>>\n\nexport class NodeSystemInfoWitness<TParams extends NodeSystemInfoWitnessParams = NodeSystemInfoWitnessParams>\n extends AbstractWitness<TParams>\n implements WitnessModule\n{\n static override readonly configSchemas: Schema[] = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = NodeSystemInfoWitnessConfigSchema\n\n protected override async observeHandler(payloads?: Payload[]) {\n const node = await get(this.config?.nodeValues ?? defaultSystemInfoConfig())\n return [{ ...node, ...payloads?.[0], schema: NodeSystemInfoSchema }]\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Config.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["import { WitnessConfig } from '@xyo-network/witness-model'\n\nexport type NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\nexport const NodeSystemInfoWitnessConfigSchema: NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\n\nexport type NodeSystemInfoWitnessConfig = WitnessConfig<{\n nodeValues?: Record<string, string>\n schema: NodeSystemInfoWitnessConfigSchema\n}>\n","import { NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { NodeSystemInfoWitness } from './Witness'\n\nexport const NodeSystemInfoPlugin = () =>\n createPayloadSetWitnessPlugin<NodeSystemInfoWitness>(\n { required: { [NodeSystemInfoSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await NodeSystemInfoWitness.create(params)\n return result\n },\n },\n )\n","import { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { defaultSystemInfoConfig, NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessModule, WitnessParams } from '@xyo-network/witness-model'\nimport { get } from 'systeminformation'\n\nimport { NodeSystemInfoWitnessConfig, NodeSystemInfoWitnessConfigSchema } from './Config'\n\nexport type NodeSystemInfoWitnessParams = WitnessParams<AnyConfigSchema<NodeSystemInfoWitnessConfig>>\n\nexport class NodeSystemInfoWitness<TParams extends NodeSystemInfoWitnessParams = NodeSystemInfoWitnessParams>\n extends AbstractWitness<TParams>\n implements WitnessModule\n{\n static override readonly configSchemas: Schema[] = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = NodeSystemInfoWitnessConfigSchema\n\n protected override async observeHandler(payloads?: Payload[]) {\n const node = await get(this.config?.nodeValues ?? defaultSystemInfoConfig())\n return [{ ...node, ...payloads?.[0], schema: NodeSystemInfoSchema }]\n }\n}\n"],"mappings":"AAGO,IAAMA,EAAuE,8CCHpF,OAAS,wBAAAC,MAA4B,+CACrC,OAAS,oBAAAC,MAAwB,6BACjC,OAAS,iCAAAC,MAAqC,iCCF9C,OAAS,mBAAAC,MAAuB,gCAEhC,OAAS,2BAAAC,EAAyB,wBAAAC,MAA4B,+CAG9D,OAAS,OAAAC,MAAW,oBAMb,IAAMC,EAAN,cACGC,CAEV,CACE,OAAyB,cAA0B,CAAC,GAAG,MAAM,cAAeC,CAAiC,EAC7G,OAAyB,oBAA8BA,EAEvD,MAAyB,eAAeC,EAAsB,CAE5D,MAAO,CAAC,CAAE,GADG,MAAMC,EAAI,KAAK,QAAQ,YAAcC,EAAwB,CAAC,EACxD,GAAGF,IAAW,CAAC,EAAG,OAAQG,CAAqB,CAAC,CACrE,CACF,EDhBO,IAAMC,EAAuB,IAClCC,EACE,CAAE,SAAU,CAAE,CAACC,CAAoB,EAAG,CAAE,EAAG,OAAQC,CAAiB,EACpE,CACE,QAAS,MAAOC,GACC,MAAMC,EAAsB,OAAOD,CAAM,CAG5D,CACF","names":["NodeSystemInfoWitnessConfigSchema","NodeSystemInfoSchema","PayloadSetSchema","createPayloadSetWitnessPlugin","AbstractWitness","defaultSystemInfoConfig","NodeSystemInfoSchema","get","NodeSystemInfoWitness","AbstractWitness","NodeSystemInfoWitnessConfigSchema","payloads","get","defaultSystemInfoConfig","NodeSystemInfoSchema","NodeSystemInfoPlugin","createPayloadSetWitnessPlugin","NodeSystemInfoSchema","PayloadSetSchema","params","NodeSystemInfoWitness"]}
|
package/dist/node/Plugin.d.cts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { NodeSystemInfoWitness } from './Witness';
|
|
2
2
|
export declare const NodeSystemInfoPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<NodeSystemInfoWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
4
|
-
addToResolvers?: boolean
|
|
5
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
6
|
-
allowNameResolution?: boolean
|
|
3
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
|
+
addToResolvers?: boolean;
|
|
5
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
6
|
+
allowNameResolution?: boolean;
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.system.info.witness.node.config";
|
|
9
9
|
} & {
|
|
10
|
-
nodeValues?: Record<string, string
|
|
11
|
-
schema: "
|
|
10
|
+
nodeValues?: Record<string, string>;
|
|
11
|
+
schema: import("./Config").NodeSystemInfoWitnessConfigSchema;
|
|
12
12
|
}, "schema"> & {
|
|
13
13
|
schema: "network.xyo.system.info.witness.node.config";
|
|
14
14
|
}, "schema"> & {
|
|
15
15
|
schema: string;
|
|
16
16
|
};
|
|
17
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
18
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
17
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
18
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
19
19
|
}>>;
|
|
20
20
|
//# sourceMappingURL=Plugin.d.ts.map
|
package/dist/node/Plugin.d.mts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { NodeSystemInfoWitness } from './Witness';
|
|
2
2
|
export declare const NodeSystemInfoPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<NodeSystemInfoWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
4
|
-
addToResolvers?: boolean
|
|
5
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
6
|
-
allowNameResolution?: boolean
|
|
3
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
|
+
addToResolvers?: boolean;
|
|
5
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
6
|
+
allowNameResolution?: boolean;
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.system.info.witness.node.config";
|
|
9
9
|
} & {
|
|
10
|
-
nodeValues?: Record<string, string
|
|
11
|
-
schema: "
|
|
10
|
+
nodeValues?: Record<string, string>;
|
|
11
|
+
schema: import("./Config").NodeSystemInfoWitnessConfigSchema;
|
|
12
12
|
}, "schema"> & {
|
|
13
13
|
schema: "network.xyo.system.info.witness.node.config";
|
|
14
14
|
}, "schema"> & {
|
|
15
15
|
schema: string;
|
|
16
16
|
};
|
|
17
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
18
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
17
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
18
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
19
19
|
}>>;
|
|
20
20
|
//# sourceMappingURL=Plugin.d.ts.map
|
package/dist/node/Plugin.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { NodeSystemInfoWitness } from './Witness';
|
|
2
2
|
export declare const NodeSystemInfoPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<NodeSystemInfoWitness<import("@xylabs/object").BaseParamsFields & {
|
|
3
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
4
|
-
addToResolvers?: boolean
|
|
5
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
6
|
-
allowNameResolution?: boolean
|
|
3
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
|
+
addToResolvers?: boolean;
|
|
5
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
6
|
+
allowNameResolution?: boolean;
|
|
7
7
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
8
8
|
schema: "network.xyo.system.info.witness.node.config";
|
|
9
9
|
} & {
|
|
10
|
-
nodeValues?: Record<string, string
|
|
11
|
-
schema: "
|
|
10
|
+
nodeValues?: Record<string, string>;
|
|
11
|
+
schema: import("./Config").NodeSystemInfoWitnessConfigSchema;
|
|
12
12
|
}, "schema"> & {
|
|
13
13
|
schema: "network.xyo.system.info.witness.node.config";
|
|
14
14
|
}, "schema"> & {
|
|
15
15
|
schema: string;
|
|
16
16
|
};
|
|
17
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
18
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
17
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
18
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
19
19
|
}>>;
|
|
20
20
|
//# sourceMappingURL=Plugin.d.ts.map
|
package/dist/node/index.cjs
CHANGED
|
@@ -1,68 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
NodeSystemInfoPlugin: () => NodeSystemInfoPlugin,
|
|
24
|
-
NodeSystemInfoWitness: () => NodeSystemInfoWitness,
|
|
25
|
-
NodeSystemInfoWitnessConfigSchema: () => NodeSystemInfoWitnessConfigSchema,
|
|
26
|
-
default: () => NodeSystemInfoPlugin
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(src_exports);
|
|
29
|
-
|
|
30
|
-
// src/Config.ts
|
|
31
|
-
var NodeSystemInfoWitnessConfigSchema = "network.xyo.system.info.witness.node.config";
|
|
32
|
-
|
|
33
|
-
// src/Plugin.ts
|
|
34
|
-
var import_node_system_info_payload_plugin2 = require("@xyo-network/node-system-info-payload-plugin");
|
|
35
|
-
var import_payload_model = require("@xyo-network/payload-model");
|
|
36
|
-
var import_payloadset_plugin = require("@xyo-network/payloadset-plugin");
|
|
37
|
-
|
|
38
|
-
// src/Witness.ts
|
|
39
|
-
var import_abstract_witness = require("@xyo-network/abstract-witness");
|
|
40
|
-
var import_node_system_info_payload_plugin = require("@xyo-network/node-system-info-payload-plugin");
|
|
41
|
-
var import_systeminformation = require("systeminformation");
|
|
42
|
-
var NodeSystemInfoWitness = class extends import_abstract_witness.AbstractWitness {
|
|
43
|
-
static configSchemas = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema];
|
|
44
|
-
static defaultConfigSchema = NodeSystemInfoWitnessConfigSchema;
|
|
45
|
-
async observeHandler(payloads) {
|
|
46
|
-
var _a;
|
|
47
|
-
const node = await (0, import_systeminformation.get)(((_a = this.config) == null ? void 0 : _a.nodeValues) ?? (0, import_node_system_info_payload_plugin.defaultSystemInfoConfig)());
|
|
48
|
-
return [{ ...node, ...payloads == null ? void 0 : payloads[0], schema: import_node_system_info_payload_plugin.NodeSystemInfoSchema }];
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
// src/Plugin.ts
|
|
53
|
-
var NodeSystemInfoPlugin = () => (0, import_payloadset_plugin.createPayloadSetWitnessPlugin)(
|
|
54
|
-
{ required: { [import_node_system_info_payload_plugin2.NodeSystemInfoSchema]: 1 }, schema: import_payload_model.PayloadSetSchema },
|
|
55
|
-
{
|
|
56
|
-
witness: async (params) => {
|
|
57
|
-
const result = await NodeSystemInfoWitness.create(params);
|
|
58
|
-
return result;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
63
|
-
0 && (module.exports = {
|
|
64
|
-
NodeSystemInfoPlugin,
|
|
65
|
-
NodeSystemInfoWitness,
|
|
66
|
-
NodeSystemInfoWitnessConfigSchema
|
|
67
|
-
});
|
|
1
|
+
"use strict";var f=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var W=Object.prototype.hasOwnProperty;var l=(o,e)=>{for(var t in e)f(o,t,{get:e[t],enumerable:!0})},I=(o,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of h(e))!W.call(o,n)&&n!==t&&f(o,n,{get:()=>e[n],enumerable:!(s=p(e,n))||s.enumerable});return o};var u=o=>I(f({},"__esModule",{value:!0}),o);var N={};l(N,{NodeSystemInfoPlugin:()=>a,NodeSystemInfoWitness:()=>m,NodeSystemInfoWitnessConfigSchema:()=>i,default:()=>a});module.exports=u(N);var i="network.xyo.system.info.witness.node.config";var S=require("@xyo-network/node-system-info-payload-plugin"),y=require("@xyo-network/payload-model"),g=require("@xyo-network/payloadset-plugin");var d=require("@xyo-network/abstract-witness"),r=require("@xyo-network/node-system-info-payload-plugin"),c=require("systeminformation");var m=class extends d.AbstractWitness{static configSchemas=[...super.configSchemas,i];static defaultConfigSchema=i;async observeHandler(e){var s;return[{...await(0,c.get)(((s=this.config)==null?void 0:s.nodeValues)??(0,r.defaultSystemInfoConfig)()),...e==null?void 0:e[0],schema:r.NodeSystemInfoSchema}]}};var a=()=>(0,g.createPayloadSetWitnessPlugin)({required:{[S.NodeSystemInfoSchema]:1},schema:y.PayloadSetSchema},{witness:async o=>await m.create(o)});0&&(module.exports={NodeSystemInfoPlugin,NodeSystemInfoWitness,NodeSystemInfoWitnessConfigSchema});
|
|
68
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["export * from './Config'\nexport { NodeSystemInfoPlugin as default, NodeSystemInfoPlugin } from './Plugin'\nexport * from './Witness'\n","import { WitnessConfig } from '@xyo-network/witness-model'\n\nexport type NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\nexport const NodeSystemInfoWitnessConfigSchema: NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\n\nexport type NodeSystemInfoWitnessConfig = WitnessConfig<{\n nodeValues?: Record<string, string>\n schema: NodeSystemInfoWitnessConfigSchema\n}>\n","import { NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { NodeSystemInfoWitness } from './Witness'\n\nexport const NodeSystemInfoPlugin = () =>\n createPayloadSetWitnessPlugin<NodeSystemInfoWitness>(\n { required: { [NodeSystemInfoSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await NodeSystemInfoWitness.create(params)\n return result\n },\n },\n )\n","import { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { defaultSystemInfoConfig, NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessModule, WitnessParams } from '@xyo-network/witness-model'\nimport { get } from 'systeminformation'\n\nimport { NodeSystemInfoWitnessConfig, NodeSystemInfoWitnessConfigSchema } from './Config'\n\nexport type NodeSystemInfoWitnessParams = WitnessParams<AnyConfigSchema<NodeSystemInfoWitnessConfig>>\n\nexport class NodeSystemInfoWitness<TParams extends NodeSystemInfoWitnessParams = NodeSystemInfoWitnessParams>\n extends AbstractWitness<TParams>\n implements WitnessModule\n{\n static override readonly configSchemas: Schema[] = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = NodeSystemInfoWitnessConfigSchema\n\n protected override async observeHandler(payloads?: Payload[]) {\n const node = await get(this.config?.nodeValues ?? defaultSystemInfoConfig())\n return [{ ...node, ...payloads?.[0], schema: NodeSystemInfoSchema }]\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["export * from './Config'\nexport { NodeSystemInfoPlugin as default, NodeSystemInfoPlugin } from './Plugin'\nexport * from './Witness'\n","import { WitnessConfig } from '@xyo-network/witness-model'\n\nexport type NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\nexport const NodeSystemInfoWitnessConfigSchema: NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\n\nexport type NodeSystemInfoWitnessConfig = WitnessConfig<{\n nodeValues?: Record<string, string>\n schema: NodeSystemInfoWitnessConfigSchema\n}>\n","import { NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { NodeSystemInfoWitness } from './Witness'\n\nexport const NodeSystemInfoPlugin = () =>\n createPayloadSetWitnessPlugin<NodeSystemInfoWitness>(\n { required: { [NodeSystemInfoSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await NodeSystemInfoWitness.create(params)\n return result\n },\n },\n )\n","import { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { defaultSystemInfoConfig, NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessModule, WitnessParams } from '@xyo-network/witness-model'\nimport { get } from 'systeminformation'\n\nimport { NodeSystemInfoWitnessConfig, NodeSystemInfoWitnessConfigSchema } from './Config'\n\nexport type NodeSystemInfoWitnessParams = WitnessParams<AnyConfigSchema<NodeSystemInfoWitnessConfig>>\n\nexport class NodeSystemInfoWitness<TParams extends NodeSystemInfoWitnessParams = NodeSystemInfoWitnessParams>\n extends AbstractWitness<TParams>\n implements WitnessModule\n{\n static override readonly configSchemas: Schema[] = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = NodeSystemInfoWitnessConfigSchema\n\n protected override async observeHandler(payloads?: Payload[]) {\n const node = await get(this.config?.nodeValues ?? defaultSystemInfoConfig())\n return [{ ...node, ...payloads?.[0], schema: NodeSystemInfoSchema }]\n }\n}\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,0BAAAE,EAAA,0BAAAC,EAAA,sCAAAC,EAAA,YAAAF,IAAA,eAAAG,EAAAL,GCGO,IAAMM,EAAuE,8CCHpF,IAAAC,EAAqC,wDACrCC,EAAiC,sCACjCC,EAA8C,0CCF9C,IAAAC,EAAgC,yCAEhCC,EAA8D,wDAG9DC,EAAoB,6BAMb,IAAMC,EAAN,cACG,iBAEV,CACE,OAAyB,cAA0B,CAAC,GAAG,MAAM,cAAeC,CAAiC,EAC7G,OAAyB,oBAA8BA,EAEvD,MAAyB,eAAeC,EAAsB,CAlBhE,IAAAC,EAoBI,MAAO,CAAC,CAAE,GADG,QAAM,SAAIA,EAAA,KAAK,SAAL,YAAAA,EAAa,gBAAc,2BAAwB,CAAC,EACxD,GAAGD,GAAA,YAAAA,EAAW,GAAI,OAAQ,sBAAqB,CAAC,CACrE,CACF,EDhBO,IAAME,EAAuB,OAClC,iCACE,CAAE,SAAU,CAAE,CAAC,sBAAoB,EAAG,CAAE,EAAG,OAAQ,kBAAiB,EACpE,CACE,QAAS,MAAOC,GACC,MAAMC,EAAsB,OAAOD,CAAM,CAG5D,CACF","names":["src_exports","__export","NodeSystemInfoPlugin","NodeSystemInfoWitness","NodeSystemInfoWitnessConfigSchema","__toCommonJS","NodeSystemInfoWitnessConfigSchema","import_node_system_info_payload_plugin","import_payload_model","import_payloadset_plugin","import_abstract_witness","import_node_system_info_payload_plugin","import_systeminformation","NodeSystemInfoWitness","NodeSystemInfoWitnessConfigSchema","payloads","_a","NodeSystemInfoPlugin","params","NodeSystemInfoWitness"]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,39 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var NodeSystemInfoWitnessConfigSchema = "network.xyo.system.info.witness.node.config";
|
|
3
|
-
|
|
4
|
-
// src/Plugin.ts
|
|
5
|
-
import { NodeSystemInfoSchema as NodeSystemInfoSchema2 } from "@xyo-network/node-system-info-payload-plugin";
|
|
6
|
-
import { PayloadSetSchema } from "@xyo-network/payload-model";
|
|
7
|
-
import { createPayloadSetWitnessPlugin } from "@xyo-network/payloadset-plugin";
|
|
8
|
-
|
|
9
|
-
// src/Witness.ts
|
|
10
|
-
import { AbstractWitness } from "@xyo-network/abstract-witness";
|
|
11
|
-
import { defaultSystemInfoConfig, NodeSystemInfoSchema } from "@xyo-network/node-system-info-payload-plugin";
|
|
12
|
-
import { get } from "systeminformation";
|
|
13
|
-
var NodeSystemInfoWitness = class extends AbstractWitness {
|
|
14
|
-
static configSchemas = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema];
|
|
15
|
-
static defaultConfigSchema = NodeSystemInfoWitnessConfigSchema;
|
|
16
|
-
async observeHandler(payloads) {
|
|
17
|
-
var _a;
|
|
18
|
-
const node = await get(((_a = this.config) == null ? void 0 : _a.nodeValues) ?? defaultSystemInfoConfig());
|
|
19
|
-
return [{ ...node, ...payloads == null ? void 0 : payloads[0], schema: NodeSystemInfoSchema }];
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
// src/Plugin.ts
|
|
24
|
-
var NodeSystemInfoPlugin = () => createPayloadSetWitnessPlugin(
|
|
25
|
-
{ required: { [NodeSystemInfoSchema2]: 1 }, schema: PayloadSetSchema },
|
|
26
|
-
{
|
|
27
|
-
witness: async (params) => {
|
|
28
|
-
const result = await NodeSystemInfoWitness.create(params);
|
|
29
|
-
return result;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
export {
|
|
34
|
-
NodeSystemInfoPlugin,
|
|
35
|
-
NodeSystemInfoWitness,
|
|
36
|
-
NodeSystemInfoWitnessConfigSchema,
|
|
37
|
-
NodeSystemInfoPlugin as default
|
|
38
|
-
};
|
|
1
|
+
var t="network.xyo.system.info.witness.node.config";import{NodeSystemInfoSchema as d}from"@xyo-network/node-system-info-payload-plugin";import{PayloadSetSchema as c}from"@xyo-network/payload-model";import{createPayloadSetWitnessPlugin as S}from"@xyo-network/payloadset-plugin";import{AbstractWitness as i}from"@xyo-network/abstract-witness";import{defaultSystemInfoConfig as r,NodeSystemInfoSchema as f}from"@xyo-network/node-system-info-payload-plugin";import{get as a}from"systeminformation";var o=class extends i{static configSchemas=[...super.configSchemas,t];static defaultConfigSchema=t;async observeHandler(e){var n;return[{...await a(((n=this.config)==null?void 0:n.nodeValues)??r()),...e==null?void 0:e[0],schema:f}]}};var m=()=>S({required:{[d]:1},schema:c},{witness:async s=>await o.create(s)});export{m as NodeSystemInfoPlugin,o as NodeSystemInfoWitness,t as NodeSystemInfoWitnessConfigSchema,m as default};
|
|
39
2
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Config.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["import { WitnessConfig } from '@xyo-network/witness-model'\n\nexport type NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\nexport const NodeSystemInfoWitnessConfigSchema: NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\n\nexport type NodeSystemInfoWitnessConfig = WitnessConfig<{\n nodeValues?: Record<string, string>\n schema: NodeSystemInfoWitnessConfigSchema\n}>\n","import { NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { NodeSystemInfoWitness } from './Witness'\n\nexport const NodeSystemInfoPlugin = () =>\n createPayloadSetWitnessPlugin<NodeSystemInfoWitness>(\n { required: { [NodeSystemInfoSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await NodeSystemInfoWitness.create(params)\n return result\n },\n },\n )\n","import { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { defaultSystemInfoConfig, NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessModule, WitnessParams } from '@xyo-network/witness-model'\nimport { get } from 'systeminformation'\n\nimport { NodeSystemInfoWitnessConfig, NodeSystemInfoWitnessConfigSchema } from './Config'\n\nexport type NodeSystemInfoWitnessParams = WitnessParams<AnyConfigSchema<NodeSystemInfoWitnessConfig>>\n\nexport class NodeSystemInfoWitness<TParams extends NodeSystemInfoWitnessParams = NodeSystemInfoWitnessParams>\n extends AbstractWitness<TParams>\n implements WitnessModule\n{\n static override readonly configSchemas: Schema[] = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = NodeSystemInfoWitnessConfigSchema\n\n protected override async observeHandler(payloads?: Payload[]) {\n const node = await get(this.config?.nodeValues ?? defaultSystemInfoConfig())\n return [{ ...node, ...payloads?.[0], schema: NodeSystemInfoSchema }]\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Config.ts","../../src/Plugin.ts","../../src/Witness.ts"],"sourcesContent":["import { WitnessConfig } from '@xyo-network/witness-model'\n\nexport type NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\nexport const NodeSystemInfoWitnessConfigSchema: NodeSystemInfoWitnessConfigSchema = 'network.xyo.system.info.witness.node.config'\n\nexport type NodeSystemInfoWitnessConfig = WitnessConfig<{\n nodeValues?: Record<string, string>\n schema: NodeSystemInfoWitnessConfigSchema\n}>\n","import { NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { PayloadSetSchema } from '@xyo-network/payload-model'\nimport { createPayloadSetWitnessPlugin } from '@xyo-network/payloadset-plugin'\n\nimport { NodeSystemInfoWitness } from './Witness'\n\nexport const NodeSystemInfoPlugin = () =>\n createPayloadSetWitnessPlugin<NodeSystemInfoWitness>(\n { required: { [NodeSystemInfoSchema]: 1 }, schema: PayloadSetSchema },\n {\n witness: async (params) => {\n const result = await NodeSystemInfoWitness.create(params)\n return result\n },\n },\n )\n","import { AbstractWitness } from '@xyo-network/abstract-witness'\nimport { AnyConfigSchema } from '@xyo-network/module-model'\nimport { defaultSystemInfoConfig, NodeSystemInfoSchema } from '@xyo-network/node-system-info-payload-plugin'\nimport { Payload, Schema } from '@xyo-network/payload-model'\nimport { WitnessModule, WitnessParams } from '@xyo-network/witness-model'\nimport { get } from 'systeminformation'\n\nimport { NodeSystemInfoWitnessConfig, NodeSystemInfoWitnessConfigSchema } from './Config'\n\nexport type NodeSystemInfoWitnessParams = WitnessParams<AnyConfigSchema<NodeSystemInfoWitnessConfig>>\n\nexport class NodeSystemInfoWitness<TParams extends NodeSystemInfoWitnessParams = NodeSystemInfoWitnessParams>\n extends AbstractWitness<TParams>\n implements WitnessModule\n{\n static override readonly configSchemas: Schema[] = [...super.configSchemas, NodeSystemInfoWitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = NodeSystemInfoWitnessConfigSchema\n\n protected override async observeHandler(payloads?: Payload[]) {\n const node = await get(this.config?.nodeValues ?? defaultSystemInfoConfig())\n return [{ ...node, ...payloads?.[0], schema: NodeSystemInfoSchema }]\n }\n}\n"],"mappings":"AAGO,IAAMA,EAAuE,8CCHpF,OAAS,wBAAAC,MAA4B,+CACrC,OAAS,oBAAAC,MAAwB,6BACjC,OAAS,iCAAAC,MAAqC,iCCF9C,OAAS,mBAAAC,MAAuB,gCAEhC,OAAS,2BAAAC,EAAyB,wBAAAC,MAA4B,+CAG9D,OAAS,OAAAC,MAAW,oBAMb,IAAMC,EAAN,cACGC,CAEV,CACE,OAAyB,cAA0B,CAAC,GAAG,MAAM,cAAeC,CAAiC,EAC7G,OAAyB,oBAA8BA,EAEvD,MAAyB,eAAeC,EAAsB,CAlBhE,IAAAC,EAoBI,MAAO,CAAC,CAAE,GADG,MAAMC,IAAID,EAAA,KAAK,SAAL,YAAAA,EAAa,aAAcE,EAAwB,CAAC,EACxD,GAAGH,GAAA,YAAAA,EAAW,GAAI,OAAQI,CAAqB,CAAC,CACrE,CACF,EDhBO,IAAMC,EAAuB,IAClCC,EACE,CAAE,SAAU,CAAE,CAACC,CAAoB,EAAG,CAAE,EAAG,OAAQC,CAAiB,EACpE,CACE,QAAS,MAAOC,GACC,MAAMC,EAAsB,OAAOD,CAAM,CAG5D,CACF","names":["NodeSystemInfoWitnessConfigSchema","NodeSystemInfoSchema","PayloadSetSchema","createPayloadSetWitnessPlugin","AbstractWitness","defaultSystemInfoConfig","NodeSystemInfoSchema","get","NodeSystemInfoWitness","AbstractWitness","NodeSystemInfoWitnessConfigSchema","payloads","_a","get","defaultSystemInfoConfig","NodeSystemInfoSchema","NodeSystemInfoPlugin","createPayloadSetWitnessPlugin","NodeSystemInfoSchema","PayloadSetSchema","params","NodeSystemInfoWitness"]}
|
package/package.json
CHANGED
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@xyo-network/abstract-witness": "^2.106.0",
|
|
14
14
|
"@xyo-network/module-model": "^2.106.0",
|
|
15
|
-
"@xyo-network/node-system-info-payload-plugin": "~2.96.
|
|
15
|
+
"@xyo-network/node-system-info-payload-plugin": "~2.96.2",
|
|
16
16
|
"@xyo-network/payload-model": "^2.106.0",
|
|
17
17
|
"@xyo-network/payloadset-plugin": "^2.106.0",
|
|
18
18
|
"@xyo-network/witness-model": "^2.106.0",
|
|
19
19
|
"systeminformation": "^5.22.11"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@xylabs/ts-scripts-yarn3": "^3.11.
|
|
23
|
-
"@xylabs/tsconfig": "^3.11.
|
|
22
|
+
"@xylabs/ts-scripts-yarn3": "^3.11.7",
|
|
23
|
+
"@xylabs/tsconfig": "^3.11.7",
|
|
24
24
|
"@xyo-network/account": "^2.106.0",
|
|
25
25
|
"@xyo-network/payload-wrapper": "^2.106.0",
|
|
26
|
-
"typescript": "^5.
|
|
26
|
+
"typescript": "^5.5.2"
|
|
27
27
|
},
|
|
28
28
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
29
29
|
"exports": {
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"url": "https://github.com/XYOracleNetwork/plugins.git"
|
|
66
66
|
},
|
|
67
67
|
"sideEffects": false,
|
|
68
|
-
"version": "2.96.
|
|
68
|
+
"version": "2.96.2"
|
|
69
69
|
}
|