@xyo-network/module-instance-plugin 2.47.8 → 2.47.10
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/docs.json +648 -940
- package/dist/types/Plugin.d.ts +1 -1
- package/dist/types/Plugin.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/spec/Plugin.spec.ts +0 -22
- package/src/spec/Witness.spec.ts +0 -21
package/dist/types/Plugin.d.ts
CHANGED
|
@@ -24,5 +24,5 @@ export declare const AbstractModuleInstancePlugin: () => PayloadSetWitnessPlugin
|
|
|
24
24
|
targetSet?: (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/payload-model").PayloadSet & {
|
|
25
25
|
schema: "network.xyo.payload.set";
|
|
26
26
|
}) | undefined;
|
|
27
|
-
}, import("@xyo-network/core").
|
|
27
|
+
}, import("@xyo-network/core").AnyObject>>;
|
|
28
28
|
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,EAA0B,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AAEhG,OAAO,EAAE,6BAA6B,EAAuC,MAAM,WAAW,CAAA;AAE9F,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,EAA0B,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AAEhG,OAAO,EAAE,6BAA6B,EAAuC,MAAM,WAAW,CAAA;AAE9F,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;0CAStC,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/module": "^2.47.
|
|
14
|
-
"@xyo-network/module-instance-payload-plugin": "^2.47.
|
|
15
|
-
"@xyo-network/payload-model": "^2.47.
|
|
16
|
-
"@xyo-network/payloadset-plugin": "^2.47.
|
|
17
|
-
"@xyo-network/witness": "^2.47.
|
|
13
|
+
"@xyo-network/module": "^2.47.10",
|
|
14
|
+
"@xyo-network/module-instance-payload-plugin": "^2.47.10",
|
|
15
|
+
"@xyo-network/payload-model": "^2.47.10",
|
|
16
|
+
"@xyo-network/payloadset-plugin": "^2.47.10",
|
|
17
|
+
"@xyo-network/witness": "^2.47.10",
|
|
18
18
|
"lodash": "^4.17.21"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/lodash": "^4.14.191",
|
|
22
|
-
"@xylabs/ts-scripts-yarn3": "^2.
|
|
23
|
-
"@xylabs/tsconfig": "^2.
|
|
22
|
+
"@xylabs/ts-scripts-yarn3": "^2.15.0",
|
|
23
|
+
"@xylabs/tsconfig": "^2.15.0",
|
|
24
24
|
"typescript": "^4.9.5"
|
|
25
25
|
},
|
|
26
26
|
"description": "Contains the information about a module instance",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
},
|
|
57
57
|
"sideEffects": false,
|
|
58
58
|
"types": "dist/types/index.d.ts",
|
|
59
|
-
"version": "2.47.
|
|
59
|
+
"version": "2.47.10"
|
|
60
60
|
}
|
package/src/spec/Plugin.spec.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jest-environment jsdom
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { AbstractModuleInstanceSchema } from '@xyo-network/module-instance-payload-plugin'
|
|
6
|
-
import { PayloadSetPluginResolver } from '@xyo-network/payloadset-plugin'
|
|
7
|
-
|
|
8
|
-
import { AbstractModuleInstancePlugin } from '../Plugin'
|
|
9
|
-
import { AbstractModuleInstanceWitnessConfigSchema } from '../Witness'
|
|
10
|
-
|
|
11
|
-
describe('AbstractModuleInstancePlugin', () => {
|
|
12
|
-
test('Add to Resolver', () => {
|
|
13
|
-
const plugin = AbstractModuleInstancePlugin()
|
|
14
|
-
const resolver = new PayloadSetPluginResolver().register(plugin, {
|
|
15
|
-
witness: {
|
|
16
|
-
config: { schema: AbstractModuleInstanceWitnessConfigSchema, targetSchema: AbstractModuleInstanceSchema },
|
|
17
|
-
},
|
|
18
|
-
})
|
|
19
|
-
expect(resolver.resolve(plugin.set)).toBeObject()
|
|
20
|
-
expect(resolver.witness(AbstractModuleInstanceSchema)).toBeObject()
|
|
21
|
-
})
|
|
22
|
-
})
|
package/src/spec/Witness.spec.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { MemoryArchivist } from '@xyo-network/archivist'
|
|
2
|
-
import { PayloadWrapper } from '@xyo-network/payload-wrapper'
|
|
3
|
-
|
|
4
|
-
import { AbstractModuleInstanceWitness, AbstractModuleInstanceWitnessConfigSchema } from '../Witness'
|
|
5
|
-
|
|
6
|
-
describe('AbstractModuleInstanceWitness', () => {
|
|
7
|
-
test('Witnessing', async () => {
|
|
8
|
-
const module = await MemoryArchivist.create()
|
|
9
|
-
const witness = await AbstractModuleInstanceWitness.create({
|
|
10
|
-
config: { module, schema: AbstractModuleInstanceWitnessConfigSchema },
|
|
11
|
-
})
|
|
12
|
-
const [result] = await witness.observe()
|
|
13
|
-
expect(new PayloadWrapper(result).valid).toBe(true)
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
test('Witnessing [no config]', async () => {
|
|
17
|
-
const witness = await AbstractModuleInstanceWitness.create()
|
|
18
|
-
const [result] = await witness.observe()
|
|
19
|
-
expect(new PayloadWrapper(result).valid).toBe(true)
|
|
20
|
-
})
|
|
21
|
-
})
|