@xyo-network/node-system-info-payload-plugin 2.86.3 → 2.86.5
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/node/index.cjs +71 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.js +5 -35
- package/dist/node/index.js.map +1 -1
- package/package.json +12 -12
- package/dist/node/index.mjs +0 -41
- package/dist/node/index.mjs.map +0 -1
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
});
|
|
71
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +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":";;;;;;;;;;;;;;;;;;;;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,35 +1,5 @@
|
|
|
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
1
|
// src/Plugin.ts
|
|
32
|
-
|
|
2
|
+
import { createPayloadPlugin } from "@xyo-network/payload-plugin";
|
|
33
3
|
|
|
34
4
|
// src/Schema.ts
|
|
35
5
|
var NodeSystemInfoSchema = "network.xyo.system.info.node";
|
|
@@ -57,15 +27,15 @@ var systemInfoNodeWitnessTemplate = () => ({
|
|
|
57
27
|
});
|
|
58
28
|
|
|
59
29
|
// src/Plugin.ts
|
|
60
|
-
var NodeSystemInfoPayloadPlugin = () =>
|
|
30
|
+
var NodeSystemInfoPayloadPlugin = () => createPayloadPlugin({
|
|
61
31
|
schema: NodeSystemInfoSchema,
|
|
62
32
|
template: systemInfoNodeWitnessTemplate
|
|
63
33
|
});
|
|
64
|
-
|
|
65
|
-
0 && (module.exports = {
|
|
34
|
+
export {
|
|
66
35
|
NodeSystemInfoPayloadPlugin,
|
|
67
36
|
NodeSystemInfoSchema,
|
|
37
|
+
NodeSystemInfoPayloadPlugin as default,
|
|
68
38
|
defaultSystemInfoConfig,
|
|
69
39
|
systemInfoNodeWitnessTemplate
|
|
70
|
-
}
|
|
40
|
+
};
|
|
71
41
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
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,16 +10,15 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/plugins/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/payload-model": "^2.
|
|
14
|
-
"@xyo-network/payload-plugin": "^2.
|
|
13
|
+
"@xyo-network/payload-model": "^2.88.2",
|
|
14
|
+
"@xyo-network/payload-plugin": "^2.88.2"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@xylabs/ts-scripts-yarn3": "^3.2.
|
|
18
|
-
"@xylabs/tsconfig": "^3.2.
|
|
17
|
+
"@xylabs/ts-scripts-yarn3": "^3.2.42",
|
|
18
|
+
"@xylabs/tsconfig": "^3.2.42",
|
|
19
19
|
"typescript": "^5.3.3"
|
|
20
20
|
},
|
|
21
21
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
22
|
-
"docs": "dist/docs.json",
|
|
23
22
|
"exports": {
|
|
24
23
|
".": {
|
|
25
24
|
"browser": {
|
|
@@ -34,19 +33,20 @@
|
|
|
34
33
|
},
|
|
35
34
|
"node": {
|
|
36
35
|
"require": {
|
|
37
|
-
"types": "./dist/node/index.d.
|
|
38
|
-
"default": "./dist/node/index.
|
|
36
|
+
"types": "./dist/node/index.d.cts",
|
|
37
|
+
"default": "./dist/node/index.cjs"
|
|
39
38
|
},
|
|
40
39
|
"import": {
|
|
41
40
|
"types": "./dist/node/index.d.mts",
|
|
42
|
-
"default": "./dist/node/index.
|
|
41
|
+
"default": "./dist/node/index.js"
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
},
|
|
46
45
|
"./package.json": "./package.json"
|
|
47
46
|
},
|
|
48
|
-
"main": "dist/node/index.
|
|
49
|
-
"module": "dist/node/index.
|
|
47
|
+
"main": "dist/node/index.cjs",
|
|
48
|
+
"module": "dist/node/index.js",
|
|
49
|
+
"types": "dist/node/index.d.ts",
|
|
50
50
|
"homepage": "https://xyo.network",
|
|
51
51
|
"license": "LGPL-3.0-only",
|
|
52
52
|
"publishConfig": {
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
"url": "https://github.com/XYOracleNetwork/plugins.git"
|
|
58
58
|
},
|
|
59
59
|
"sideEffects": false,
|
|
60
|
-
"
|
|
61
|
-
"
|
|
60
|
+
"version": "2.86.5",
|
|
61
|
+
"type": "module"
|
|
62
62
|
}
|
package/dist/node/index.mjs
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
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
|
-
};
|
|
41
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/node/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|