@xyo-network/node-system-info-payload-plugin 3.0.2 → 3.0.4
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/neutral/Payload.d.ts +7 -0
- package/dist/neutral/Payload.d.ts.map +1 -0
- package/dist/neutral/Plugin.d.ts +6 -0
- package/dist/neutral/Plugin.d.ts.map +1 -0
- package/dist/neutral/Schema.d.ts +3 -0
- package/dist/neutral/Schema.d.ts.map +1 -0
- package/dist/neutral/Template.d.ts +19 -0
- package/dist/neutral/Template.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +5 -35
- package/dist/neutral/index.d.ts.map +1 -0
- package/dist/neutral/index.mjs +1 -3
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +25 -25
- package/src/Payload.ts +2 -2
- package/src/Plugin.ts +1 -1
- package/src/Template.ts +2 -4
- package/xy.config.ts +2 -4
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import type { NodeSystemInfoSchema } from './Schema.ts';
|
|
3
|
+
export type NodeSystemInfoPayload = Payload<{
|
|
4
|
+
schema: NodeSystemInfoSchema;
|
|
5
|
+
systeminfo?: Record<string, unknown>;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAEvD,MAAM,MAAM,qBAAqB,GAAG,OAAO,CAAC;IAC1C,MAAM,EAAE,oBAAoB,CAAA;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACrC,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NodeSystemInfoSchema } from './Schema.ts';
|
|
2
|
+
export declare const NodeSystemInfoPayloadPlugin: () => import("@xyo-network/payload-plugin").PayloadPlugin<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
3
|
+
schema: NodeSystemInfoSchema;
|
|
4
|
+
systeminfo?: Record<string, unknown>;
|
|
5
|
+
}>;
|
|
6
|
+
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAGlD,eAAO,MAAM,2BAA2B;;;EAIpC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG,8BAA8B,CAAA;AACjE,eAAO,MAAM,oBAAoB,EAAE,oBAAqD,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { NodeSystemInfoPayload } from './Payload.ts';
|
|
2
|
+
declare const defaultSystemInfoConfig: () => {
|
|
3
|
+
audio: string;
|
|
4
|
+
battery: string;
|
|
5
|
+
bluetooth: string;
|
|
6
|
+
cpu: string;
|
|
7
|
+
diskLayout: string;
|
|
8
|
+
graphics: string;
|
|
9
|
+
mem: string;
|
|
10
|
+
networkInterfaces: string;
|
|
11
|
+
osInfo: string;
|
|
12
|
+
printer: string;
|
|
13
|
+
system: string;
|
|
14
|
+
usb: string;
|
|
15
|
+
wifiInterfaces: string;
|
|
16
|
+
};
|
|
17
|
+
declare const systemInfoNodeWitnessTemplate: () => NodeSystemInfoPayload;
|
|
18
|
+
export { defaultSystemInfoConfig, systemInfoNodeWitnessTemplate };
|
|
19
|
+
//# sourceMappingURL=Template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Template.d.ts","sourceRoot":"","sources":["../../src/Template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAGzD,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;CAgB5B,CAAA;AAED,QAAA,MAAM,6BAA6B,QAAO,qBAA2D,CAAA;AAErG,OAAO,EAAE,uBAAuB,EAAE,6BAA6B,EAAE,CAAA"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,35 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const NodeSystemInfoSchema: NodeSystemInfoSchema;
|
|
7
|
-
|
|
8
|
-
type NodeSystemInfoPayload = Payload<{
|
|
9
|
-
schema: NodeSystemInfoSchema;
|
|
10
|
-
systeminfo?: Record<string, unknown>;
|
|
11
|
-
}>;
|
|
12
|
-
|
|
13
|
-
declare const NodeSystemInfoPayloadPlugin: () => _xyo_network_payload_plugin.PayloadPlugin<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
14
|
-
schema: NodeSystemInfoSchema;
|
|
15
|
-
systeminfo?: Record<string, unknown>;
|
|
16
|
-
}>;
|
|
17
|
-
|
|
18
|
-
declare const defaultSystemInfoConfig: () => {
|
|
19
|
-
audio: string;
|
|
20
|
-
battery: string;
|
|
21
|
-
bluetooth: string;
|
|
22
|
-
cpu: string;
|
|
23
|
-
diskLayout: string;
|
|
24
|
-
graphics: string;
|
|
25
|
-
mem: string;
|
|
26
|
-
networkInterfaces: string;
|
|
27
|
-
osInfo: string;
|
|
28
|
-
printer: string;
|
|
29
|
-
system: string;
|
|
30
|
-
usb: string;
|
|
31
|
-
wifiInterfaces: string;
|
|
32
|
-
};
|
|
33
|
-
declare const systemInfoNodeWitnessTemplate: () => NodeSystemInfoPayload;
|
|
34
|
-
|
|
35
|
-
export { type NodeSystemInfoPayload, NodeSystemInfoPayloadPlugin, NodeSystemInfoSchema, NodeSystemInfoPayloadPlugin as default, defaultSystemInfoConfig, systemInfoNodeWitnessTemplate };
|
|
1
|
+
export * from './Payload.ts';
|
|
2
|
+
export { NodeSystemInfoPayloadPlugin as default, NodeSystemInfoPayloadPlugin } from './Plugin.ts';
|
|
3
|
+
export * from './Schema.ts';
|
|
4
|
+
export * from './Template.ts';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAE5B,OAAO,EAAE,2BAA2B,IAAI,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AACjG,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -22,9 +22,7 @@ var defaultSystemInfoConfig = () => {
|
|
|
22
22
|
wifiInterfaces: "*"
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
-
var systemInfoNodeWitnessTemplate = () => ({
|
|
26
|
-
schema: NodeSystemInfoSchema
|
|
27
|
-
});
|
|
25
|
+
var systemInfoNodeWitnessTemplate = () => ({ schema: NodeSystemInfoSchema });
|
|
28
26
|
|
|
29
27
|
// src/Plugin.ts
|
|
30
28
|
var NodeSystemInfoPayloadPlugin = () => createPayloadPlugin({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { NodeSystemInfoPayload } from './Payload.ts'\nimport { NodeSystemInfoSchema } from './Schema.ts'\nimport { systemInfoNodeWitnessTemplate } from './Template.ts'\n\nexport const NodeSystemInfoPayloadPlugin = () =>\n createPayloadPlugin<NodeSystemInfoPayload>({\n schema: NodeSystemInfoSchema,\n template: systemInfoNodeWitnessTemplate,\n })\n","export type NodeSystemInfoSchema = 'network.xyo.system.info.node'\nexport const NodeSystemInfoSchema: NodeSystemInfoSchema = 'network.xyo.system.info.node'\n","import { NodeSystemInfoPayload } from './Payload.ts'\nimport { NodeSystemInfoSchema } from './Schema.ts'\n\nconst defaultSystemInfoConfig = () => {\n return {\n audio: '*',\n battery: '*',\n bluetooth: '*',\n cpu: '*',\n diskLayout: '*',\n graphics: '*',\n mem: '*',\n networkInterfaces: '*',\n osInfo: '*',\n printer: '*',\n system: '*',\n usb: '*',\n wifiInterfaces: '*',\n }\n}\n\nconst systemInfoNodeWitnessTemplate = (): NodeSystemInfoPayload => ({
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport type { NodeSystemInfoPayload } from './Payload.ts'\nimport { NodeSystemInfoSchema } from './Schema.ts'\nimport { systemInfoNodeWitnessTemplate } from './Template.ts'\n\nexport const NodeSystemInfoPayloadPlugin = () =>\n createPayloadPlugin<NodeSystemInfoPayload>({\n schema: NodeSystemInfoSchema,\n template: systemInfoNodeWitnessTemplate,\n })\n","export type NodeSystemInfoSchema = 'network.xyo.system.info.node'\nexport const NodeSystemInfoSchema: NodeSystemInfoSchema = 'network.xyo.system.info.node'\n","import type { NodeSystemInfoPayload } from './Payload.ts'\nimport { NodeSystemInfoSchema } from './Schema.ts'\n\nconst defaultSystemInfoConfig = () => {\n return {\n audio: '*',\n battery: '*',\n bluetooth: '*',\n cpu: '*',\n diskLayout: '*',\n graphics: '*',\n mem: '*',\n networkInterfaces: '*',\n osInfo: '*',\n printer: '*',\n system: '*',\n usb: '*',\n wifiInterfaces: '*',\n }\n}\n\nconst systemInfoNodeWitnessTemplate = (): NodeSystemInfoPayload => ({ schema: NodeSystemInfoSchema })\n\nexport { defaultSystemInfoConfig, systemInfoNodeWitnessTemplate }\n"],"mappings":";AAAA,SAAS,2BAA2B;;;ACC7B,IAAM,uBAA6C;;;ACE1D,IAAM,0BAA0B,MAAM;AACpC,SAAO;AAAA,IACL,OAAO;AAAA,IACP,SAAS;AAAA,IACT,WAAW;AAAA,IACX,KAAK;AAAA,IACL,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,KAAK;AAAA,IACL,mBAAmB;AAAA,IACnB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,KAAK;AAAA,IACL,gBAAgB;AAAA,EAClB;AACF;AAEA,IAAM,gCAAgC,OAA8B,EAAE,QAAQ,qBAAqB;;;AFf5F,IAAM,8BAA8B,MACzC,oBAA2C;AAAA,EACzC,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/node-system-info-payload-plugin",
|
|
3
|
-
"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"url": "https://xyo.network"
|
|
7
|
-
},
|
|
3
|
+
"version": "3.0.4",
|
|
4
|
+
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
|
+
"homepage": "https://xyo.network",
|
|
8
6
|
"bugs": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
7
|
+
"url": "git+https://github.com/XYOracleNetwork/plugins/issues",
|
|
8
|
+
"email": "support@xyo.network"
|
|
11
9
|
},
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/XYOracleNetwork/plugins.git"
|
|
15
13
|
},
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
14
|
+
"license": "LGPL-3.0-only",
|
|
15
|
+
"author": {
|
|
16
|
+
"name": "XYO Development Team",
|
|
17
|
+
"email": "support@xyo.network",
|
|
18
|
+
"url": "https://xyo.network"
|
|
20
19
|
},
|
|
21
|
-
"
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
24
|
"types": "./dist/neutral/index.d.ts",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
},
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"access": "public"
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@xyo-network/payload-model": "^3.0.10",
|
|
33
|
+
"@xyo-network/payload-plugin": "^3.0.10"
|
|
35
34
|
},
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.7",
|
|
37
|
+
"@xylabs/tsconfig": "^4.0.7",
|
|
38
|
+
"typescript": "^5.5.4"
|
|
39
39
|
},
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
}
|
|
43
43
|
}
|
package/src/Payload.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
1
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
2
2
|
|
|
3
|
-
import { NodeSystemInfoSchema } from './Schema.ts'
|
|
3
|
+
import type { NodeSystemInfoSchema } from './Schema.ts'
|
|
4
4
|
|
|
5
5
|
export type NodeSystemInfoPayload = Payload<{
|
|
6
6
|
schema: NodeSystemInfoSchema
|
package/src/Plugin.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createPayloadPlugin } from '@xyo-network/payload-plugin'
|
|
2
2
|
|
|
3
|
-
import { NodeSystemInfoPayload } from './Payload.ts'
|
|
3
|
+
import type { NodeSystemInfoPayload } from './Payload.ts'
|
|
4
4
|
import { NodeSystemInfoSchema } from './Schema.ts'
|
|
5
5
|
import { systemInfoNodeWitnessTemplate } from './Template.ts'
|
|
6
6
|
|
package/src/Template.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NodeSystemInfoPayload } from './Payload.ts'
|
|
1
|
+
import type { NodeSystemInfoPayload } from './Payload.ts'
|
|
2
2
|
import { NodeSystemInfoSchema } from './Schema.ts'
|
|
3
3
|
|
|
4
4
|
const defaultSystemInfoConfig = () => {
|
|
@@ -19,8 +19,6 @@ const defaultSystemInfoConfig = () => {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
const systemInfoNodeWitnessTemplate = (): NodeSystemInfoPayload => ({
|
|
23
|
-
schema: NodeSystemInfoSchema,
|
|
24
|
-
})
|
|
22
|
+
const systemInfoNodeWitnessTemplate = (): NodeSystemInfoPayload => ({ schema: NodeSystemInfoSchema })
|
|
25
23
|
|
|
26
24
|
export { defaultSystemInfoConfig, systemInfoNodeWitnessTemplate }
|
package/xy.config.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
|
|
1
|
+
import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
|
|
2
2
|
const config: XyTsupConfig = {
|
|
3
3
|
compile: {
|
|
4
4
|
browser: {},
|
|
5
|
-
neutral: {
|
|
6
|
-
src: true,
|
|
7
|
-
},
|
|
5
|
+
neutral: { src: true },
|
|
8
6
|
node: {},
|
|
9
7
|
},
|
|
10
8
|
}
|