@xyo-network/os-runtime 4.1.1 → 4.1.3
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/DappCallerBase.d.ts +2 -2
- package/dist/neutral/OsCallerBase.d.ts +2 -2
- package/dist/neutral/XyOs.d.ts +2 -2
- package/dist/neutral/XyOsDapp.d.ts +2 -2
- package/dist/neutral/access-interfaces/registered-names/helpers/AccessNodeQueries.d.ts +1 -1
- package/dist/neutral/access-interfaces/registered-names/helpers/resource/AbstractXnsCaller.d.ts +1 -1
- package/dist/neutral/adapter/Network.d.ts +1 -1
- package/dist/neutral/adapter/Settings.d.ts +1 -1
- package/dist/neutral/classes/cache/RunningAccessDappCache.d.ts +1 -1
- package/dist/neutral/classes/registration/ValidateDappAccessDiviner/Diviner.d.ts.map +1 -1
- package/dist/neutral/classes/settings/CallerBase.d.ts +1 -1
- package/dist/neutral/index.mjs +989 -640
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/stack/OsPubSubNetworkStack.d.ts +2 -2
- package/dist/node/DappCallerBase.d.ts +2 -2
- package/dist/node/OsCallerBase.d.ts +2 -2
- package/dist/node/XyOs.d.ts +2 -2
- package/dist/node/XyOsDapp.d.ts +2 -2
- package/dist/node/access-interfaces/registered-names/helpers/AccessNodeQueries.d.ts +1 -1
- package/dist/node/access-interfaces/registered-names/helpers/resource/AbstractXnsCaller.d.ts +1 -1
- package/dist/node/adapter/Network.d.ts +1 -1
- package/dist/node/adapter/Settings.d.ts +1 -1
- package/dist/node/classes/cache/RunningAccessDappCache.d.ts +1 -1
- package/dist/node/classes/registration/ValidateDappAccessDiviner/Diviner.d.ts.map +1 -1
- package/dist/node/classes/settings/CallerBase.d.ts +1 -1
- package/dist/node/index.mjs +989 -640
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/scripts/xyos/command/index.mjs +486 -345
- package/dist/node/scripts/xyos/command/index.mjs.map +1 -1
- package/dist/node/scripts/xyos/index.mjs +487 -360
- package/dist/node/scripts/xyos/index.mjs.map +1 -1
- package/dist/node/scripts/xyos/lib/index.mjs +453 -327
- package/dist/node/scripts/xyos/lib/index.mjs.map +1 -1
- package/dist/node/stack/OsPubSubNetworkStack.d.ts +2 -2
- package/package.json +36 -37
- package/src/classes/registration/ValidateDappAccessDiviner/Diviner.ts +6 -7
|
@@ -19,7 +19,7 @@ export declare class OsPubSubNetworkStack extends StackBase {
|
|
|
19
19
|
readonly queries?: string[] | undefined;
|
|
20
20
|
} | undefined;
|
|
21
21
|
readonly allowedQueries?: string[] | undefined;
|
|
22
|
-
readonly consoleLogger?: import("
|
|
22
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
23
23
|
readonly labels?: {
|
|
24
24
|
[x: string]: string | undefined;
|
|
25
25
|
} | undefined;
|
|
@@ -63,7 +63,7 @@ export declare class OsPubSubNetworkStack extends StackBase {
|
|
|
63
63
|
readonly queries?: string[] | undefined;
|
|
64
64
|
} | undefined;
|
|
65
65
|
readonly allowedQueries?: string[] | undefined;
|
|
66
|
-
readonly consoleLogger?: import("
|
|
66
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
67
67
|
readonly labels?: {
|
|
68
68
|
[x: string]: string | undefined;
|
|
69
69
|
} | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/os-runtime",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -36,39 +36,39 @@
|
|
|
36
36
|
"xyos": "./dist/node/scripts/xyos/index.mjs"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@xylabs/assert": "^4.4.
|
|
40
|
-
"@xylabs/forget": "^4.4.
|
|
41
|
-
"@xylabs/hex": "^4.4.
|
|
42
|
-
"@xylabs/lodash": "^4.4.
|
|
43
|
-
"@xylabs/object": "^4.4.
|
|
44
|
-
"@xylabs/promise": "^4.4.
|
|
45
|
-
"@xyo-network/account": "^3.6.
|
|
46
|
-
"@xyo-network/archivist": "^3.6.
|
|
47
|
-
"@xyo-network/archivist-indexeddb": "^3.6.
|
|
48
|
-
"@xyo-network/archivist-model": "^3.6.
|
|
49
|
-
"@xyo-network/bios": "^4.1.
|
|
50
|
-
"@xyo-network/bridge-model": "^3.6.
|
|
51
|
-
"@xyo-network/diviner-abstract": "^3.6.
|
|
52
|
-
"@xyo-network/diviner-model": "^3.6.
|
|
53
|
-
"@xyo-network/diviner-payload-generic": "^3.6.
|
|
54
|
-
"@xyo-network/diviner-payload-indexeddb": "^3.6.
|
|
55
|
-
"@xyo-network/diviner-payload-model": "^3.6.
|
|
56
|
-
"@xyo-network/diviner-temporal-indexing-model": "^3.6.
|
|
57
|
-
"@xyo-network/kernel": "^4.1.
|
|
58
|
-
"@xyo-network/kernel-model": "^4.1.
|
|
59
|
-
"@xyo-network/manifest": "^3.6.
|
|
60
|
-
"@xyo-network/manifest-wrapper": "^3.6.
|
|
61
|
-
"@xyo-network/module-event-emitter": "^3.6.
|
|
62
|
-
"@xyo-network/module-events": "^3.6.
|
|
63
|
-
"@xyo-network/module-factory-locator": "^3.6.
|
|
64
|
-
"@xyo-network/module-model": "^3.6.
|
|
65
|
-
"@xyo-network/module-resolver": "^3.6.
|
|
66
|
-
"@xyo-network/node-model": "^3.6.
|
|
67
|
-
"@xyo-network/os-model": "^4.1.
|
|
68
|
-
"@xyo-network/payload-builder": "^3.6.
|
|
69
|
-
"@xyo-network/payload-model": "^3.6.
|
|
70
|
-
"@xyo-network/storage-model": "^4.1.
|
|
71
|
-
"@xyo-network/wallet-model": "^3.6.
|
|
39
|
+
"@xylabs/assert": "^4.4.32",
|
|
40
|
+
"@xylabs/forget": "^4.4.32",
|
|
41
|
+
"@xylabs/hex": "^4.4.32",
|
|
42
|
+
"@xylabs/lodash": "^4.4.32",
|
|
43
|
+
"@xylabs/object": "^4.4.32",
|
|
44
|
+
"@xylabs/promise": "^4.4.32",
|
|
45
|
+
"@xyo-network/account": "^3.6.6",
|
|
46
|
+
"@xyo-network/archivist": "^3.6.6",
|
|
47
|
+
"@xyo-network/archivist-indexeddb": "^3.6.6",
|
|
48
|
+
"@xyo-network/archivist-model": "^3.6.6",
|
|
49
|
+
"@xyo-network/bios": "^4.1.3",
|
|
50
|
+
"@xyo-network/bridge-model": "^3.6.6",
|
|
51
|
+
"@xyo-network/diviner-abstract": "^3.6.6",
|
|
52
|
+
"@xyo-network/diviner-model": "^3.6.6",
|
|
53
|
+
"@xyo-network/diviner-payload-generic": "^3.6.6",
|
|
54
|
+
"@xyo-network/diviner-payload-indexeddb": "^3.6.6",
|
|
55
|
+
"@xyo-network/diviner-payload-model": "^3.6.6",
|
|
56
|
+
"@xyo-network/diviner-temporal-indexing-model": "^3.6.6",
|
|
57
|
+
"@xyo-network/kernel": "^4.1.3",
|
|
58
|
+
"@xyo-network/kernel-model": "^4.1.3",
|
|
59
|
+
"@xyo-network/manifest": "^3.6.6",
|
|
60
|
+
"@xyo-network/manifest-wrapper": "^3.6.6",
|
|
61
|
+
"@xyo-network/module-event-emitter": "^3.6.6",
|
|
62
|
+
"@xyo-network/module-events": "^3.6.6",
|
|
63
|
+
"@xyo-network/module-factory-locator": "^3.6.6",
|
|
64
|
+
"@xyo-network/module-model": "^3.6.6",
|
|
65
|
+
"@xyo-network/module-resolver": "^3.6.6",
|
|
66
|
+
"@xyo-network/node-model": "^3.6.6",
|
|
67
|
+
"@xyo-network/os-model": "^4.1.3",
|
|
68
|
+
"@xyo-network/payload-builder": "^3.6.6",
|
|
69
|
+
"@xyo-network/payload-model": "^3.6.6",
|
|
70
|
+
"@xyo-network/storage-model": "^4.1.3",
|
|
71
|
+
"@xyo-network/wallet-model": "^3.6.6",
|
|
72
72
|
"async-mutex": "^0.5.0",
|
|
73
73
|
"chalk": "^5.4.1",
|
|
74
74
|
"cosmiconfig": "^9.0.0",
|
|
@@ -86,11 +86,10 @@
|
|
|
86
86
|
"@types/terminal-kit": "^2.5.6",
|
|
87
87
|
"@types/uuid": "^10.0.0",
|
|
88
88
|
"@types/yargs": "^17.0.33",
|
|
89
|
-
"@xylabs/sdk-api-express-ecs": "^2.1.0",
|
|
90
89
|
"@xylabs/ts-scripts-yarn3": "^4.2.6",
|
|
91
90
|
"@xylabs/tsconfig": "^4.2.6",
|
|
92
|
-
"@xyo-network/bios-model": "^4.1.
|
|
93
|
-
"@xyo-network/bios-nodejs": "^4.1.
|
|
91
|
+
"@xyo-network/bios-model": "^4.1.3",
|
|
92
|
+
"@xyo-network/bios-nodejs": "^4.1.3",
|
|
94
93
|
"vitest": "^2.1.8"
|
|
95
94
|
},
|
|
96
95
|
"publishConfig": {
|
|
@@ -15,7 +15,6 @@ import {
|
|
|
15
15
|
isUnregisteredDappAccess,
|
|
16
16
|
RegisteredDappAccessSchema,
|
|
17
17
|
} from '@xyo-network/os-model'
|
|
18
|
-
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
19
18
|
|
|
20
19
|
import { ValidDappAccessInterfaces } from '../../../access-interfaces/index.ts'
|
|
21
20
|
import type {
|
|
@@ -67,26 +66,26 @@ export class ValidateDappAccessDiviner<TParams extends ValidateDappAccessDiviner
|
|
|
67
66
|
const interfaceChildren = await getNodeChildren(dappAccessInterface.manifest, dappParams)
|
|
68
67
|
const valid = compareChildren(interfaceChildren, dappChildren)
|
|
69
68
|
if (valid) {
|
|
70
|
-
const payload =
|
|
69
|
+
const payload: RegisteredDappAccess = {
|
|
71
70
|
...access,
|
|
72
71
|
schema: RegisteredDappAccessSchema,
|
|
73
72
|
timestamp: Date.now(),
|
|
74
|
-
}
|
|
73
|
+
}
|
|
75
74
|
registeredAccessors.push(payload)
|
|
76
75
|
} else {
|
|
77
|
-
const failedRegistration =
|
|
76
|
+
const failedRegistration: FailedAccessor = {
|
|
78
77
|
accessor: access,
|
|
79
78
|
errorMessage: 'Invalid dapp access interface',
|
|
80
79
|
schema: FailedAccessorSchema,
|
|
81
|
-
}
|
|
80
|
+
}
|
|
82
81
|
failedAccessors.push(failedRegistration)
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
84
|
} catch (e) {
|
|
86
85
|
failedAccessors.push(
|
|
87
|
-
|
|
86
|
+
{
|
|
88
87
|
accessor: access, errorMessage: (e as Error).message, schema: FailedAccessorSchema,
|
|
89
|
-
}
|
|
88
|
+
} as FailedAccessor,
|
|
90
89
|
)
|
|
91
90
|
}
|
|
92
91
|
}
|