@xyo-network/modules 2.47.5 → 2.47.6

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/package.json CHANGED
@@ -10,18 +10,18 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xyo-network/archivist": "^2.47.5",
14
- "@xyo-network/bridge": "^2.47.5",
15
- "@xyo-network/diviner": "^2.47.5",
16
- "@xyo-network/module": "^2.47.5",
17
- "@xyo-network/node": "^2.47.5",
18
- "@xyo-network/panel": "^2.47.5",
19
- "@xyo-network/sentinel": "^2.47.5",
20
- "@xyo-network/witness": "^2.47.5"
13
+ "@xyo-network/archivist": "^2.47.6",
14
+ "@xyo-network/bridge": "^2.47.6",
15
+ "@xyo-network/diviner": "^2.47.6",
16
+ "@xyo-network/module": "^2.47.6",
17
+ "@xyo-network/node": "^2.47.6",
18
+ "@xyo-network/panel": "^2.47.6",
19
+ "@xyo-network/sentinel": "^2.47.6",
20
+ "@xyo-network/witness": "^2.47.6"
21
21
  },
22
22
  "devDependencies": {
23
- "@xylabs/ts-scripts-yarn3": "^2.14.15",
24
- "@xylabs/tsconfig": "^2.14.15",
23
+ "@xylabs/ts-scripts-yarn3": "^2.14.16",
24
+ "@xylabs/tsconfig": "^2.14.16",
25
25
  "typescript": "^4.9.5"
26
26
  },
27
27
  "description": "Primary SDK for using XYO Protocol 2.0",
@@ -57,5 +57,5 @@
57
57
  },
58
58
  "sideEffects": false,
59
59
  "types": "dist/types/index.d.ts",
60
- "version": "2.47.5"
60
+ "version": "2.47.6"
61
61
  }
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import/no-internal-modules */
2
- import { ArchivistGetQuerySchema, MemoryArchivist } from '@xyo-network/archivist'
2
+ import { ArchivistGetQuerySchema, MemoryArchivist, MemoryArchivistConfigSchema } from '@xyo-network/archivist'
3
3
  import { IdWitness, IdWitnessConfigSchema } from '@xyo-network/id-plugin'
4
4
  import { AbstractModule, CompositeModuleResolver } from '@xyo-network/module'
5
5
  import { XyoWitnessObserveQuerySchema } from '@xyo-network/witness'
@@ -9,7 +9,7 @@ describe('XyoModuleResolver', () => {
9
9
  let witness: AbstractModule
10
10
  let resolver: CompositeModuleResolver
11
11
  beforeAll(async () => {
12
- archivist = await MemoryArchivist.create()
12
+ archivist = await MemoryArchivist.create({ config: { name: 'memory-archivist', schema: MemoryArchivistConfigSchema } })
13
13
  witness = await IdWitness.create({ config: { salt: 'test', schema: IdWitnessConfigSchema } })
14
14
  resolver = new CompositeModuleResolver()
15
15
  resolver.add(archivist)
@@ -19,9 +19,8 @@ describe('XyoModuleResolver', () => {
19
19
  expect((await resolver.resolve({ address: [archivist.address] })).length).toBe(1)
20
20
  expect((await resolver.resolve({ address: [witness.address] })).length).toBe(1)
21
21
  })
22
- test('simple by config', async () => {
23
- expect((await resolver.resolve({ config: [MemoryArchivist.configSchema] })).length).toBe(1)
24
- expect((await resolver.resolve({ config: [IdWitness.configSchema] })).length).toBe(1)
22
+ test('simple by name', async () => {
23
+ expect((await resolver.resolve({ name: ['memory-archivist'] })).length).toBe(1)
25
24
  })
26
25
  test('simple by query', async () => {
27
26
  expect((await resolver.resolve({ query: [[ArchivistGetQuerySchema, XyoWitnessObserveQuerySchema]] })).length).toBe(0)