@xyo-network/node 2.33.12 → 2.33.13

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
@@ -11,11 +11,11 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@xylabs/assert": "^2.6.7",
14
- "@xyo-network/account": "^2.33.12",
15
- "@xyo-network/archivist": "^2.33.12",
16
- "@xyo-network/module": "^2.33.12",
17
- "@xyo-network/payload": "^2.33.12",
18
- "@xyo-network/promise": "^2.33.12",
14
+ "@xyo-network/account": "^2.33.13",
15
+ "@xyo-network/archivist": "^2.33.13",
16
+ "@xyo-network/module": "^2.33.13",
17
+ "@xyo-network/payload": "^2.33.13",
18
+ "@xyo-network/promise": "^2.33.13",
19
19
  "lodash": "^4.17.21",
20
20
  "terminal-kit": "^2.11.6",
21
21
  "tslib": "^2.4.0",
@@ -66,5 +66,5 @@
66
66
  "xyo-ts": "ts-node src/cli/index.ts"
67
67
  },
68
68
  "types": "dist/esm/index.d.ts",
69
- "version": "2.33.12"
69
+ "version": "2.33.13"
70
70
  }
@@ -1,5 +1,14 @@
1
+ /* eslint-disable max-statements */
1
2
  import { XyoArchivistAllQuery, XyoArchivistAllQuerySchema, XyoArchivistInsertQuery, XyoArchivistInsertQuerySchema } from '@xyo-network/archivist'
2
- import { XyoArchivistPayloadDiviner, XyoDivinerDivineQuery, XyoDivinerDivineQuerySchema, XyoHuriPayload, XyoHuriSchema } from '@xyo-network/diviner'
3
+ import {
4
+ DivinerModule,
5
+ XyoArchivistPayloadDiviner,
6
+ XyoDivinerDivineQuery,
7
+ XyoDivinerDivineQuerySchema,
8
+ XyoDivinerWrapper,
9
+ XyoHuriPayload,
10
+ XyoHuriSchema,
11
+ } from '@xyo-network/diviner'
3
12
  import { XyoModule } from '@xyo-network/module'
4
13
  import { PayloadWrapper, XyoPayload, XyoPayloadBuilder, XyoPayloadSchema } from '@xyo-network/sdk'
5
14
 
@@ -38,7 +47,8 @@ test('Create Node', async () => {
38
47
  const huri = new PayloadWrapper(payloads[0]).hash
39
48
  const huriPayload: XyoHuriPayload = { huri, schema: XyoHuriSchema }
40
49
  const divineQuery: XyoDivinerDivineQuery = { payloads: [huriPayload], schema: XyoDivinerDivineQuerySchema }
41
- const foundDiviner = node.resolve(diviner.address)
50
+ const divinerModule = node.resolve(diviner.address) as DivinerModule
51
+ const foundDiviner = divinerModule ? new XyoDivinerWrapper(divinerModule) : null
42
52
  expect(foundDiviner).toBeDefined()
43
53
  if (foundDiviner) {
44
54
  const [, payloads] = await foundDiviner.query(divineQuery)