@xyo-network/diviner-jsonpath-aggregate-memory 5.1.3 → 5.1.5
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 +15 -15
- package/src/spec/Diviner.spec.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-jsonpath-aggregate-memory",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.5",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -35,23 +35,23 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@xylabs/assert": "~5.0.11",
|
|
37
37
|
"@xylabs/exists": "~5.0.11",
|
|
38
|
-
"@xyo-network/boundwitness-model": "~5.1.
|
|
39
|
-
"@xyo-network/diviner-abstract": "~5.1.
|
|
40
|
-
"@xyo-network/diviner-jsonpath-aggregate-model": "~5.1.
|
|
41
|
-
"@xyo-network/diviner-jsonpath-memory": "~5.1.
|
|
42
|
-
"@xyo-network/diviner-model": "~5.1.
|
|
43
|
-
"@xyo-network/payload-builder": "~5.1.
|
|
44
|
-
"@xyo-network/payload-model": "~5.1.
|
|
45
|
-
"@xyo-network/payload-utils": "~5.1.
|
|
38
|
+
"@xyo-network/boundwitness-model": "~5.1.5",
|
|
39
|
+
"@xyo-network/diviner-abstract": "~5.1.5",
|
|
40
|
+
"@xyo-network/diviner-jsonpath-aggregate-model": "~5.1.5",
|
|
41
|
+
"@xyo-network/diviner-jsonpath-memory": "~5.1.5",
|
|
42
|
+
"@xyo-network/diviner-model": "~5.1.5",
|
|
43
|
+
"@xyo-network/payload-builder": "~5.1.5",
|
|
44
|
+
"@xyo-network/payload-model": "~5.1.5",
|
|
45
|
+
"@xyo-network/payload-utils": "~5.1.5"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@xylabs/ts-scripts-yarn3": "~7.1.
|
|
49
|
-
"@xylabs/tsconfig": "~7.1.
|
|
48
|
+
"@xylabs/ts-scripts-yarn3": "~7.1.8",
|
|
49
|
+
"@xylabs/tsconfig": "~7.1.8",
|
|
50
50
|
"@xylabs/vitest-extended": "~5.0.11",
|
|
51
|
-
"@xyo-network/account": "~5.1.
|
|
52
|
-
"@xyo-network/account-model": "~5.1.
|
|
53
|
-
"@xyo-network/boundwitness-builder": "~5.1.
|
|
54
|
-
"@xyo-network/diviner-jsonpath-model": "~5.1.
|
|
51
|
+
"@xyo-network/account": "~5.1.5",
|
|
52
|
+
"@xyo-network/account-model": "~5.1.5",
|
|
53
|
+
"@xyo-network/boundwitness-builder": "~5.1.5",
|
|
54
|
+
"@xyo-network/diviner-jsonpath-model": "~5.1.5",
|
|
55
55
|
"typescript": "~5.9.2",
|
|
56
56
|
"vitest": "~3.2.4"
|
|
57
57
|
},
|
package/src/spec/Diviner.spec.ts
CHANGED
|
@@ -69,7 +69,7 @@ describe('JsonPathAggregateDiviner', () => {
|
|
|
69
69
|
expect(result.filter(isPayloadOfSchemaType<Payload>(destinationSchema))).toBeArrayOfSize(1)
|
|
70
70
|
const index = result.find(isPayloadOfSchemaType<ResultType>(destinationSchema))
|
|
71
71
|
// eslint-disable-next-line sonarjs/no-alphabetical-sort
|
|
72
|
-
expect(index?.sources.
|
|
72
|
+
expect(index?.sources.toSorted()).toEqual(Object.keys(payloadDictionary).toSorted())
|
|
73
73
|
expect(index?.timestamp).toBe(timestamp.timestamp)
|
|
74
74
|
expect(index?.url).toBe((payload as { sourceUrl?: string }).sourceUrl)
|
|
75
75
|
expect(index?.status).toBe(thumbnail.http?.status)
|
|
@@ -150,7 +150,7 @@ describe('JsonPathAggregateDiviner', () => {
|
|
|
150
150
|
expect(result.filter(isPayloadOfSchemaType<Payload>(destinationSchema))).toBeArrayOfSize(1)
|
|
151
151
|
const index = result.find(isPayloadOfSchemaType<ResultType>(destinationSchema))
|
|
152
152
|
// eslint-disable-next-line sonarjs/no-alphabetical-sort
|
|
153
|
-
expect(index?.sources.
|
|
153
|
+
expect(index?.sources.toSorted()).toEqual(Object.keys(payloadDictionary).toSorted())
|
|
154
154
|
expect(index?.timestamp).toBe(timestamp.timestamp)
|
|
155
155
|
expect(index?.url).toBe((payload as { sourceUrl?: string }).sourceUrl)
|
|
156
156
|
expect(index?.status).toBe(thumbnail.http?.status)
|