@xyo-network/manifest-model 2.84.6 → 2.84.8
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 +43 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.js +4 -34
- package/dist/node/index.js.map +1 -1
- package/package.json +10 -10
- package/dist/node/index.mjs +0 -13
- package/dist/node/index.mjs.map +0 -1
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
ModuleManifestPayloadSchema: () => ModuleManifestPayloadSchema,
|
|
24
|
+
NodeManifestPayloadSchema: () => NodeManifestPayloadSchema,
|
|
25
|
+
PackageManifestPayloadSchema: () => PackageManifestPayloadSchema,
|
|
26
|
+
isPackageManifestPayload: () => isPackageManifestPayload
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(src_exports);
|
|
29
|
+
|
|
30
|
+
// src/Payload.ts
|
|
31
|
+
var import_payload_model = require("@xyo-network/payload-model");
|
|
32
|
+
var PackageManifestPayloadSchema = "network.xyo.manifest.package";
|
|
33
|
+
var ModuleManifestPayloadSchema = "network.xyo.module.manifest";
|
|
34
|
+
var NodeManifestPayloadSchema = "network.xyo.node.manifest";
|
|
35
|
+
var isPackageManifestPayload = (0, import_payload_model.isPayloadOfSchemaType)(PackageManifestPayloadSchema);
|
|
36
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
+
0 && (module.exports = {
|
|
38
|
+
ModuleManifestPayloadSchema,
|
|
39
|
+
NodeManifestPayloadSchema,
|
|
40
|
+
PackageManifestPayloadSchema,
|
|
41
|
+
isPackageManifestPayload
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Payload.ts"],"sourcesContent":["export * from './Payload'\n","export type PackageManifestPayloadSchema = 'network.xyo.manifest.package'\nexport const PackageManifestPayloadSchema: PackageManifestPayloadSchema = 'network.xyo.manifest.package'\n\nexport type ModuleManifestPayloadSchema = 'network.xyo.module.manifest'\nexport const ModuleManifestPayloadSchema: ModuleManifestPayloadSchema = 'network.xyo.module.manifest'\n\nexport type NodeManifestPayloadSchema = 'network.xyo.node.manifest'\nexport const NodeManifestPayloadSchema: NodeManifestPayloadSchema = 'network.xyo.node.manifest'\n\nimport { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'\n\nexport interface Manifest {\n description?: string\n}\n\nexport interface ConfigManifest {\n accountPath?: string\n features?: string[]\n labels?: Record<string, string | undefined>\n language?: string\n name: string\n os?: string\n schema: string\n}\n\nexport interface NodeManifest extends ModuleManifest {\n modules?: {\n private?: ModuleManifest[]\n public?: ModuleManifest[]\n }\n}\n\nexport interface NodeManifestPayload extends NodeManifest {\n schema: NodeManifestPayloadSchema\n}\n\nexport interface ModuleManifest extends Manifest {\n config: ConfigManifest\n lazyStart?: boolean\n status?: {\n address: string\n }\n}\n\nexport type ModuleManifestPayload = Payload<ModuleManifest, ModuleManifestPayloadSchema | NodeManifestPayloadSchema>\n\nexport interface PackageManifest extends Manifest {\n nodes: NodeManifest[]\n schema: PackageManifestPayloadSchema\n}\n\nexport type PackageManifestPayload = Payload<PackageManifest, PackageManifestPayloadSchema>\n\nexport const isPackageManifestPayload = isPayloadOfSchemaType<PackageManifestPayload>(PackageManifestPayloadSchema)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACSA,2BAA+C;AARxC,IAAM,+BAA6D;AAGnE,IAAM,8BAA2D;AAGjE,IAAM,4BAAuD;AA8C7D,IAAM,+BAA2B,4CAA8C,4BAA4B;","names":[]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,43 +1,13 @@
|
|
|
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
|
-
ModuleManifestPayloadSchema: () => ModuleManifestPayloadSchema,
|
|
24
|
-
NodeManifestPayloadSchema: () => NodeManifestPayloadSchema,
|
|
25
|
-
PackageManifestPayloadSchema: () => PackageManifestPayloadSchema,
|
|
26
|
-
isPackageManifestPayload: () => isPackageManifestPayload
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(src_exports);
|
|
29
|
-
|
|
30
1
|
// src/Payload.ts
|
|
31
|
-
|
|
2
|
+
import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
32
3
|
var PackageManifestPayloadSchema = "network.xyo.manifest.package";
|
|
33
4
|
var ModuleManifestPayloadSchema = "network.xyo.module.manifest";
|
|
34
5
|
var NodeManifestPayloadSchema = "network.xyo.node.manifest";
|
|
35
|
-
var isPackageManifestPayload =
|
|
36
|
-
|
|
37
|
-
0 && (module.exports = {
|
|
6
|
+
var isPackageManifestPayload = isPayloadOfSchemaType(PackageManifestPayloadSchema);
|
|
7
|
+
export {
|
|
38
8
|
ModuleManifestPayloadSchema,
|
|
39
9
|
NodeManifestPayloadSchema,
|
|
40
10
|
PackageManifestPayloadSchema,
|
|
41
11
|
isPackageManifestPayload
|
|
42
|
-
}
|
|
12
|
+
};
|
|
43
13
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
1
|
+
{"version":3,"sources":["../../src/Payload.ts"],"sourcesContent":["export type PackageManifestPayloadSchema = 'network.xyo.manifest.package'\nexport const PackageManifestPayloadSchema: PackageManifestPayloadSchema = 'network.xyo.manifest.package'\n\nexport type ModuleManifestPayloadSchema = 'network.xyo.module.manifest'\nexport const ModuleManifestPayloadSchema: ModuleManifestPayloadSchema = 'network.xyo.module.manifest'\n\nexport type NodeManifestPayloadSchema = 'network.xyo.node.manifest'\nexport const NodeManifestPayloadSchema: NodeManifestPayloadSchema = 'network.xyo.node.manifest'\n\nimport { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'\n\nexport interface Manifest {\n description?: string\n}\n\nexport interface ConfigManifest {\n accountPath?: string\n features?: string[]\n labels?: Record<string, string | undefined>\n language?: string\n name: string\n os?: string\n schema: string\n}\n\nexport interface NodeManifest extends ModuleManifest {\n modules?: {\n private?: ModuleManifest[]\n public?: ModuleManifest[]\n }\n}\n\nexport interface NodeManifestPayload extends NodeManifest {\n schema: NodeManifestPayloadSchema\n}\n\nexport interface ModuleManifest extends Manifest {\n config: ConfigManifest\n lazyStart?: boolean\n status?: {\n address: string\n }\n}\n\nexport type ModuleManifestPayload = Payload<ModuleManifest, ModuleManifestPayloadSchema | NodeManifestPayloadSchema>\n\nexport interface PackageManifest extends Manifest {\n nodes: NodeManifest[]\n schema: PackageManifestPayloadSchema\n}\n\nexport type PackageManifestPayload = Payload<PackageManifest, PackageManifestPayloadSchema>\n\nexport const isPackageManifestPayload = isPayloadOfSchemaType<PackageManifestPayload>(PackageManifestPayloadSchema)\n"],"mappings":";AASA,SAAS,6BAAsC;AARxC,IAAM,+BAA6D;AAGnE,IAAM,8BAA2D;AAGjE,IAAM,4BAAuD;AA8C7D,IAAM,2BAA2B,sBAA8C,4BAA4B;","names":[]}
|
package/package.json
CHANGED
|
@@ -10,15 +10,14 @@
|
|
|
10
10
|
},
|
|
11
11
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/payload-model": "~2.84.
|
|
13
|
+
"@xyo-network/payload-model": "~2.84.8"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@xylabs/ts-scripts-yarn3": "^3.2.
|
|
17
|
-
"@xylabs/tsconfig": "^3.2.
|
|
16
|
+
"@xylabs/ts-scripts-yarn3": "^3.2.24",
|
|
17
|
+
"@xylabs/tsconfig": "^3.2.24",
|
|
18
18
|
"typescript": "^5.3.3",
|
|
19
19
|
"typescript-json-schema": "^0.62.0"
|
|
20
20
|
},
|
|
21
|
-
"docs": "dist/docs.json",
|
|
22
21
|
"types": "dist/node/index.d.ts",
|
|
23
22
|
"exports": {
|
|
24
23
|
".": {
|
|
@@ -34,12 +33,12 @@
|
|
|
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
|
},
|
|
@@ -48,8 +47,8 @@
|
|
|
48
47
|
},
|
|
49
48
|
"./package.json": "./package.json"
|
|
50
49
|
},
|
|
51
|
-
"main": "dist/node/index.
|
|
52
|
-
"module": "dist/node/index.
|
|
50
|
+
"main": "dist/node/index.cjs",
|
|
51
|
+
"module": "dist/node/index.js",
|
|
53
52
|
"homepage": "https://xyo.network",
|
|
54
53
|
"license": "LGPL-3.0-only",
|
|
55
54
|
"name": "@xyo-network/manifest-model",
|
|
@@ -64,5 +63,6 @@
|
|
|
64
63
|
"gen-schema": "yarn typescript-json-schema src/Payload.ts PackageManifest --required --out dist/PackageManifest.schema.json"
|
|
65
64
|
},
|
|
66
65
|
"sideEffects": false,
|
|
67
|
-
"version": "2.84.
|
|
66
|
+
"version": "2.84.8",
|
|
67
|
+
"type": "module"
|
|
68
68
|
}
|
package/dist/node/index.mjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// src/Payload.ts
|
|
2
|
-
import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
3
|
-
var PackageManifestPayloadSchema = "network.xyo.manifest.package";
|
|
4
|
-
var ModuleManifestPayloadSchema = "network.xyo.module.manifest";
|
|
5
|
-
var NodeManifestPayloadSchema = "network.xyo.node.manifest";
|
|
6
|
-
var isPackageManifestPayload = isPayloadOfSchemaType(PackageManifestPayloadSchema);
|
|
7
|
-
export {
|
|
8
|
-
ModuleManifestPayloadSchema,
|
|
9
|
-
NodeManifestPayloadSchema,
|
|
10
|
-
PackageManifestPayloadSchema,
|
|
11
|
-
isPackageManifestPayload
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/node/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Payload.ts"],"sourcesContent":["export type PackageManifestPayloadSchema = 'network.xyo.manifest.package'\nexport const PackageManifestPayloadSchema: PackageManifestPayloadSchema = 'network.xyo.manifest.package'\n\nexport type ModuleManifestPayloadSchema = 'network.xyo.module.manifest'\nexport const ModuleManifestPayloadSchema: ModuleManifestPayloadSchema = 'network.xyo.module.manifest'\n\nexport type NodeManifestPayloadSchema = 'network.xyo.node.manifest'\nexport const NodeManifestPayloadSchema: NodeManifestPayloadSchema = 'network.xyo.node.manifest'\n\nimport { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'\n\nexport interface Manifest {\n description?: string\n}\n\nexport interface ConfigManifest {\n accountPath?: string\n features?: string[]\n labels?: Record<string, string | undefined>\n language?: string\n name: string\n os?: string\n schema: string\n}\n\nexport interface NodeManifest extends ModuleManifest {\n modules?: {\n private?: ModuleManifest[]\n public?: ModuleManifest[]\n }\n}\n\nexport interface NodeManifestPayload extends NodeManifest {\n schema: NodeManifestPayloadSchema\n}\n\nexport interface ModuleManifest extends Manifest {\n config: ConfigManifest\n lazyStart?: boolean\n status?: {\n address: string\n }\n}\n\nexport type ModuleManifestPayload = Payload<ModuleManifest, ModuleManifestPayloadSchema | NodeManifestPayloadSchema>\n\nexport interface PackageManifest extends Manifest {\n nodes: NodeManifest[]\n schema: PackageManifestPayloadSchema\n}\n\nexport type PackageManifestPayload = Payload<PackageManifest, PackageManifestPayloadSchema>\n\nexport const isPackageManifestPayload = isPayloadOfSchemaType<PackageManifestPayload>(PackageManifestPayloadSchema)\n"],"mappings":";AASA,SAAS,6BAAsC;AARxC,IAAM,+BAA6D;AAGnE,IAAM,8BAA2D;AAGjE,IAAM,4BAAuD;AA8C7D,IAAM,2BAA2B,sBAA8C,4BAA4B;","names":[]}
|