@xyo-network/node-system-info-payload-plugin 2.97.0 → 2.97.1
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/index.cjs +63 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +40 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/neutral/index.cjs +63 -1
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.js +40 -1
- package/dist/neutral/index.js.map +1 -1
- package/dist/node/index.cjs +70 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +40 -1
- package/dist/node/index.js.map +1 -1
- package/package.json +5 -5
package/dist/browser/index.cjs
CHANGED
|
@@ -1,2 +1,64 @@
|
|
|
1
|
-
"use strict";
|
|
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
|
+
NodeSystemInfoPayloadPlugin: () => NodeSystemInfoPayloadPlugin,
|
|
24
|
+
NodeSystemInfoSchema: () => NodeSystemInfoSchema,
|
|
25
|
+
default: () => NodeSystemInfoPayloadPlugin,
|
|
26
|
+
defaultSystemInfoConfig: () => defaultSystemInfoConfig,
|
|
27
|
+
systemInfoNodeWitnessTemplate: () => systemInfoNodeWitnessTemplate
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(src_exports);
|
|
30
|
+
|
|
31
|
+
// src/Plugin.ts
|
|
32
|
+
var import_payload_plugin = require("@xyo-network/payload-plugin");
|
|
33
|
+
|
|
34
|
+
// src/Schema.ts
|
|
35
|
+
var NodeSystemInfoSchema = "network.xyo.system.info.node";
|
|
36
|
+
|
|
37
|
+
// src/Template.ts
|
|
38
|
+
var defaultSystemInfoConfig = () => {
|
|
39
|
+
return {
|
|
40
|
+
audio: "*",
|
|
41
|
+
battery: "*",
|
|
42
|
+
bluetooth: "*",
|
|
43
|
+
cpu: "*",
|
|
44
|
+
diskLayout: "*",
|
|
45
|
+
graphics: "*",
|
|
46
|
+
mem: "*",
|
|
47
|
+
networkInterfaces: "*",
|
|
48
|
+
osInfo: "*",
|
|
49
|
+
printer: "*",
|
|
50
|
+
system: "*",
|
|
51
|
+
usb: "*",
|
|
52
|
+
wifiInterfaces: "*"
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
var systemInfoNodeWitnessTemplate = () => ({
|
|
56
|
+
schema: NodeSystemInfoSchema
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
// src/Plugin.ts
|
|
60
|
+
var NodeSystemInfoPayloadPlugin = () => (0, import_payload_plugin.createPayloadPlugin)({
|
|
61
|
+
schema: NodeSystemInfoSchema,
|
|
62
|
+
template: systemInfoNodeWitnessTemplate
|
|
63
|
+
});
|
|
2
64
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\nexport { NodeSystemInfoPayloadPlugin as default, NodeSystemInfoPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { NodeSystemInfoPayload } from './Payload'\nimport { NodeSystemInfoSchema } from './Schema'\nimport { systemInfoNodeWitnessTemplate } from './Template'\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'\nimport { NodeSystemInfoSchema } from './Schema'\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 => ({\n schema: NodeSystemInfoSchema,\n})\n\nexport { defaultSystemInfoConfig, systemInfoNodeWitnessTemplate }\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\nexport { NodeSystemInfoPayloadPlugin as default, NodeSystemInfoPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { NodeSystemInfoPayload } from './Payload'\nimport { NodeSystemInfoSchema } from './Schema'\nimport { systemInfoNodeWitnessTemplate } from './Template'\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'\nimport { NodeSystemInfoSchema } from './Schema'\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 => ({\n schema: NodeSystemInfoSchema,\n})\n\nexport { defaultSystemInfoConfig, systemInfoNodeWitnessTemplate }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,4BAAoC;;;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;AAAA,EAClE,QAAQ;AACV;;;AFjBO,IAAM,8BAA8B,UACzC,2CAA2C;AAAA,EACzC,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
|
package/dist/browser/index.js
CHANGED
|
@@ -1,2 +1,41 @@
|
|
|
1
|
-
|
|
1
|
+
// src/Plugin.ts
|
|
2
|
+
import { createPayloadPlugin } from "@xyo-network/payload-plugin";
|
|
3
|
+
|
|
4
|
+
// src/Schema.ts
|
|
5
|
+
var NodeSystemInfoSchema = "network.xyo.system.info.node";
|
|
6
|
+
|
|
7
|
+
// src/Template.ts
|
|
8
|
+
var defaultSystemInfoConfig = () => {
|
|
9
|
+
return {
|
|
10
|
+
audio: "*",
|
|
11
|
+
battery: "*",
|
|
12
|
+
bluetooth: "*",
|
|
13
|
+
cpu: "*",
|
|
14
|
+
diskLayout: "*",
|
|
15
|
+
graphics: "*",
|
|
16
|
+
mem: "*",
|
|
17
|
+
networkInterfaces: "*",
|
|
18
|
+
osInfo: "*",
|
|
19
|
+
printer: "*",
|
|
20
|
+
system: "*",
|
|
21
|
+
usb: "*",
|
|
22
|
+
wifiInterfaces: "*"
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
var systemInfoNodeWitnessTemplate = () => ({
|
|
26
|
+
schema: NodeSystemInfoSchema
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// src/Plugin.ts
|
|
30
|
+
var NodeSystemInfoPayloadPlugin = () => createPayloadPlugin({
|
|
31
|
+
schema: NodeSystemInfoSchema,
|
|
32
|
+
template: systemInfoNodeWitnessTemplate
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
NodeSystemInfoPayloadPlugin,
|
|
36
|
+
NodeSystemInfoSchema,
|
|
37
|
+
NodeSystemInfoPayloadPlugin as default,
|
|
38
|
+
defaultSystemInfoConfig,
|
|
39
|
+
systemInfoNodeWitnessTemplate
|
|
40
|
+
};
|
|
2
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -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'\nimport { NodeSystemInfoSchema } from './Schema'\nimport { systemInfoNodeWitnessTemplate } from './Template'\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'\nimport { NodeSystemInfoSchema } from './Schema'\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 => ({\n schema: NodeSystemInfoSchema,\n})\n\nexport { defaultSystemInfoConfig, systemInfoNodeWitnessTemplate }\n"],"mappings":"AAAA,
|
|
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'\nimport { NodeSystemInfoSchema } from './Schema'\nimport { systemInfoNodeWitnessTemplate } from './Template'\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'\nimport { NodeSystemInfoSchema } from './Schema'\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 => ({\n schema: NodeSystemInfoSchema,\n})\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;AAAA,EAClE,QAAQ;AACV;;;AFjBO,IAAM,8BAA8B,MACzC,oBAA2C;AAAA,EACzC,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
|
package/dist/neutral/index.cjs
CHANGED
|
@@ -1,2 +1,64 @@
|
|
|
1
|
-
"use strict";
|
|
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
|
+
NodeSystemInfoPayloadPlugin: () => NodeSystemInfoPayloadPlugin,
|
|
24
|
+
NodeSystemInfoSchema: () => NodeSystemInfoSchema,
|
|
25
|
+
default: () => NodeSystemInfoPayloadPlugin,
|
|
26
|
+
defaultSystemInfoConfig: () => defaultSystemInfoConfig,
|
|
27
|
+
systemInfoNodeWitnessTemplate: () => systemInfoNodeWitnessTemplate
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(src_exports);
|
|
30
|
+
|
|
31
|
+
// src/Plugin.ts
|
|
32
|
+
var import_payload_plugin = require("@xyo-network/payload-plugin");
|
|
33
|
+
|
|
34
|
+
// src/Schema.ts
|
|
35
|
+
var NodeSystemInfoSchema = "network.xyo.system.info.node";
|
|
36
|
+
|
|
37
|
+
// src/Template.ts
|
|
38
|
+
var defaultSystemInfoConfig = () => {
|
|
39
|
+
return {
|
|
40
|
+
audio: "*",
|
|
41
|
+
battery: "*",
|
|
42
|
+
bluetooth: "*",
|
|
43
|
+
cpu: "*",
|
|
44
|
+
diskLayout: "*",
|
|
45
|
+
graphics: "*",
|
|
46
|
+
mem: "*",
|
|
47
|
+
networkInterfaces: "*",
|
|
48
|
+
osInfo: "*",
|
|
49
|
+
printer: "*",
|
|
50
|
+
system: "*",
|
|
51
|
+
usb: "*",
|
|
52
|
+
wifiInterfaces: "*"
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
var systemInfoNodeWitnessTemplate = () => ({
|
|
56
|
+
schema: NodeSystemInfoSchema
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
// src/Plugin.ts
|
|
60
|
+
var NodeSystemInfoPayloadPlugin = () => (0, import_payload_plugin.createPayloadPlugin)({
|
|
61
|
+
schema: NodeSystemInfoSchema,
|
|
62
|
+
template: systemInfoNodeWitnessTemplate
|
|
63
|
+
});
|
|
2
64
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\nexport { NodeSystemInfoPayloadPlugin as default, NodeSystemInfoPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { NodeSystemInfoPayload } from './Payload'\nimport { NodeSystemInfoSchema } from './Schema'\nimport { systemInfoNodeWitnessTemplate } from './Template'\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'\nimport { NodeSystemInfoSchema } from './Schema'\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 => ({\n schema: NodeSystemInfoSchema,\n})\n\nexport { defaultSystemInfoConfig, systemInfoNodeWitnessTemplate }\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\nexport { NodeSystemInfoPayloadPlugin as default, NodeSystemInfoPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { NodeSystemInfoPayload } from './Payload'\nimport { NodeSystemInfoSchema } from './Schema'\nimport { systemInfoNodeWitnessTemplate } from './Template'\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'\nimport { NodeSystemInfoSchema } from './Schema'\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 => ({\n schema: NodeSystemInfoSchema,\n})\n\nexport { defaultSystemInfoConfig, systemInfoNodeWitnessTemplate }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,4BAAoC;;;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;AAAA,EAClE,QAAQ;AACV;;;AFjBO,IAAM,8BAA8B,UACzC,2CAA2C;AAAA,EACzC,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
|
package/dist/neutral/index.js
CHANGED
|
@@ -1,2 +1,41 @@
|
|
|
1
|
-
|
|
1
|
+
// src/Plugin.ts
|
|
2
|
+
import { createPayloadPlugin } from "@xyo-network/payload-plugin";
|
|
3
|
+
|
|
4
|
+
// src/Schema.ts
|
|
5
|
+
var NodeSystemInfoSchema = "network.xyo.system.info.node";
|
|
6
|
+
|
|
7
|
+
// src/Template.ts
|
|
8
|
+
var defaultSystemInfoConfig = () => {
|
|
9
|
+
return {
|
|
10
|
+
audio: "*",
|
|
11
|
+
battery: "*",
|
|
12
|
+
bluetooth: "*",
|
|
13
|
+
cpu: "*",
|
|
14
|
+
diskLayout: "*",
|
|
15
|
+
graphics: "*",
|
|
16
|
+
mem: "*",
|
|
17
|
+
networkInterfaces: "*",
|
|
18
|
+
osInfo: "*",
|
|
19
|
+
printer: "*",
|
|
20
|
+
system: "*",
|
|
21
|
+
usb: "*",
|
|
22
|
+
wifiInterfaces: "*"
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
var systemInfoNodeWitnessTemplate = () => ({
|
|
26
|
+
schema: NodeSystemInfoSchema
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// src/Plugin.ts
|
|
30
|
+
var NodeSystemInfoPayloadPlugin = () => createPayloadPlugin({
|
|
31
|
+
schema: NodeSystemInfoSchema,
|
|
32
|
+
template: systemInfoNodeWitnessTemplate
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
NodeSystemInfoPayloadPlugin,
|
|
36
|
+
NodeSystemInfoSchema,
|
|
37
|
+
NodeSystemInfoPayloadPlugin as default,
|
|
38
|
+
defaultSystemInfoConfig,
|
|
39
|
+
systemInfoNodeWitnessTemplate
|
|
40
|
+
};
|
|
2
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -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'\nimport { NodeSystemInfoSchema } from './Schema'\nimport { systemInfoNodeWitnessTemplate } from './Template'\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'\nimport { NodeSystemInfoSchema } from './Schema'\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 => ({\n schema: NodeSystemInfoSchema,\n})\n\nexport { defaultSystemInfoConfig, systemInfoNodeWitnessTemplate }\n"],"mappings":"AAAA,
|
|
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'\nimport { NodeSystemInfoSchema } from './Schema'\nimport { systemInfoNodeWitnessTemplate } from './Template'\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'\nimport { NodeSystemInfoSchema } from './Schema'\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 => ({\n schema: NodeSystemInfoSchema,\n})\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;AAAA,EAClE,QAAQ;AACV;;;AFjBO,IAAM,8BAA8B,MACzC,oBAA2C;AAAA,EACzC,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
|
package/dist/node/index.cjs
CHANGED
|
@@ -1,2 +1,71 @@
|
|
|
1
|
-
"use strict";
|
|
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
|
+
NodeSystemInfoPayloadPlugin: () => NodeSystemInfoPayloadPlugin,
|
|
24
|
+
NodeSystemInfoSchema: () => NodeSystemInfoSchema,
|
|
25
|
+
default: () => NodeSystemInfoPayloadPlugin,
|
|
26
|
+
defaultSystemInfoConfig: () => defaultSystemInfoConfig,
|
|
27
|
+
systemInfoNodeWitnessTemplate: () => systemInfoNodeWitnessTemplate
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(src_exports);
|
|
30
|
+
|
|
31
|
+
// src/Plugin.ts
|
|
32
|
+
var import_payload_plugin = require("@xyo-network/payload-plugin");
|
|
33
|
+
|
|
34
|
+
// src/Schema.ts
|
|
35
|
+
var NodeSystemInfoSchema = "network.xyo.system.info.node";
|
|
36
|
+
|
|
37
|
+
// src/Template.ts
|
|
38
|
+
var defaultSystemInfoConfig = () => {
|
|
39
|
+
return {
|
|
40
|
+
audio: "*",
|
|
41
|
+
battery: "*",
|
|
42
|
+
bluetooth: "*",
|
|
43
|
+
cpu: "*",
|
|
44
|
+
diskLayout: "*",
|
|
45
|
+
graphics: "*",
|
|
46
|
+
mem: "*",
|
|
47
|
+
networkInterfaces: "*",
|
|
48
|
+
osInfo: "*",
|
|
49
|
+
printer: "*",
|
|
50
|
+
system: "*",
|
|
51
|
+
usb: "*",
|
|
52
|
+
wifiInterfaces: "*"
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
var systemInfoNodeWitnessTemplate = () => ({
|
|
56
|
+
schema: NodeSystemInfoSchema
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
// src/Plugin.ts
|
|
60
|
+
var NodeSystemInfoPayloadPlugin = () => (0, import_payload_plugin.createPayloadPlugin)({
|
|
61
|
+
schema: NodeSystemInfoSchema,
|
|
62
|
+
template: systemInfoNodeWitnessTemplate
|
|
63
|
+
});
|
|
64
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
65
|
+
0 && (module.exports = {
|
|
66
|
+
NodeSystemInfoPayloadPlugin,
|
|
67
|
+
NodeSystemInfoSchema,
|
|
68
|
+
defaultSystemInfoConfig,
|
|
69
|
+
systemInfoNodeWitnessTemplate
|
|
70
|
+
});
|
|
2
71
|
//# sourceMappingURL=index.cjs.map
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\nexport { NodeSystemInfoPayloadPlugin as default, NodeSystemInfoPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { NodeSystemInfoPayload } from './Payload'\nimport { NodeSystemInfoSchema } from './Schema'\nimport { systemInfoNodeWitnessTemplate } from './Template'\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'\nimport { NodeSystemInfoSchema } from './Schema'\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 => ({\n schema: NodeSystemInfoSchema,\n})\n\nexport { defaultSystemInfoConfig, systemInfoNodeWitnessTemplate }\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\nexport { NodeSystemInfoPayloadPlugin as default, NodeSystemInfoPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { NodeSystemInfoPayload } from './Payload'\nimport { NodeSystemInfoSchema } from './Schema'\nimport { systemInfoNodeWitnessTemplate } from './Template'\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'\nimport { NodeSystemInfoSchema } from './Schema'\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 => ({\n schema: NodeSystemInfoSchema,\n})\n\nexport { defaultSystemInfoConfig, systemInfoNodeWitnessTemplate }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,4BAAoC;;;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;AAAA,EAClE,QAAQ;AACV;;;AFjBO,IAAM,8BAA8B,UACzC,2CAA2C;AAAA,EACzC,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,2 +1,41 @@
|
|
|
1
|
-
|
|
1
|
+
// src/Plugin.ts
|
|
2
|
+
import { createPayloadPlugin } from "@xyo-network/payload-plugin";
|
|
3
|
+
|
|
4
|
+
// src/Schema.ts
|
|
5
|
+
var NodeSystemInfoSchema = "network.xyo.system.info.node";
|
|
6
|
+
|
|
7
|
+
// src/Template.ts
|
|
8
|
+
var defaultSystemInfoConfig = () => {
|
|
9
|
+
return {
|
|
10
|
+
audio: "*",
|
|
11
|
+
battery: "*",
|
|
12
|
+
bluetooth: "*",
|
|
13
|
+
cpu: "*",
|
|
14
|
+
diskLayout: "*",
|
|
15
|
+
graphics: "*",
|
|
16
|
+
mem: "*",
|
|
17
|
+
networkInterfaces: "*",
|
|
18
|
+
osInfo: "*",
|
|
19
|
+
printer: "*",
|
|
20
|
+
system: "*",
|
|
21
|
+
usb: "*",
|
|
22
|
+
wifiInterfaces: "*"
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
var systemInfoNodeWitnessTemplate = () => ({
|
|
26
|
+
schema: NodeSystemInfoSchema
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// src/Plugin.ts
|
|
30
|
+
var NodeSystemInfoPayloadPlugin = () => createPayloadPlugin({
|
|
31
|
+
schema: NodeSystemInfoSchema,
|
|
32
|
+
template: systemInfoNodeWitnessTemplate
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
NodeSystemInfoPayloadPlugin,
|
|
36
|
+
NodeSystemInfoSchema,
|
|
37
|
+
NodeSystemInfoPayloadPlugin as default,
|
|
38
|
+
defaultSystemInfoConfig,
|
|
39
|
+
systemInfoNodeWitnessTemplate
|
|
40
|
+
};
|
|
2
41
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -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'\nimport { NodeSystemInfoSchema } from './Schema'\nimport { systemInfoNodeWitnessTemplate } from './Template'\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'\nimport { NodeSystemInfoSchema } from './Schema'\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 => ({\n schema: NodeSystemInfoSchema,\n})\n\nexport { defaultSystemInfoConfig, systemInfoNodeWitnessTemplate }\n"],"mappings":"AAAA,
|
|
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'\nimport { NodeSystemInfoSchema } from './Schema'\nimport { systemInfoNodeWitnessTemplate } from './Template'\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'\nimport { NodeSystemInfoSchema } from './Schema'\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 => ({\n schema: NodeSystemInfoSchema,\n})\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;AAAA,EAClE,QAAQ;AACV;;;AFjBO,IAAM,8BAA8B,MACzC,oBAA2C;AAAA,EACzC,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/plugins/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/payload-model": "^2.107.
|
|
14
|
-
"@xyo-network/payload-plugin": "^2.107.
|
|
13
|
+
"@xyo-network/payload-model": "^2.107.4",
|
|
14
|
+
"@xyo-network/payload-plugin": "^2.107.4"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@xylabs/ts-scripts-yarn3": "^3.11.
|
|
18
|
-
"@xylabs/tsconfig": "^3.11.
|
|
17
|
+
"@xylabs/ts-scripts-yarn3": "^3.11.10",
|
|
18
|
+
"@xylabs/tsconfig": "^3.11.10",
|
|
19
19
|
"typescript": "^5.5.2"
|
|
20
20
|
},
|
|
21
21
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
"url": "https://github.com/XYOracleNetwork/plugins.git"
|
|
58
58
|
},
|
|
59
59
|
"sideEffects": false,
|
|
60
|
-
"version": "2.97.
|
|
60
|
+
"version": "2.97.1",
|
|
61
61
|
"type": "module"
|
|
62
62
|
}
|