@sphereon/ssi-sdk.data-store 0.36.1-feature.vdx24.einvoice.inbox.142 → 0.36.1-feature.vdx24.einvoice.inbox.143

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk.data-store",
3
- "version": "0.36.1-feature.vdx24.einvoice.inbox.142+ff40ab64",
3
+ "version": "0.36.1-feature.vdx24.einvoice.inbox.143+9a2b1f09",
4
4
  "source": "src/index.ts",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -28,12 +28,12 @@
28
28
  "dependencies": {
29
29
  "@sphereon/kmp-mdoc-core": "0.2.0-SNAPSHOT.26",
30
30
  "@sphereon/pex": "5.0.0-unstable.28",
31
- "@sphereon/ssi-sdk-ext.did-utils": "0.36.1-feature.vdx24.einvoice.inbox.142+ff40ab64",
32
- "@sphereon/ssi-sdk-ext.identifier-resolution": "0.36.1-feature.vdx24.einvoice.inbox.142+ff40ab64",
33
- "@sphereon/ssi-sdk.agent-config": "0.36.1-feature.vdx24.einvoice.inbox.142+ff40ab64",
34
- "@sphereon/ssi-sdk.core": "0.36.1-feature.vdx24.einvoice.inbox.142+ff40ab64",
35
- "@sphereon/ssi-sdk.data-store-types": "0.36.1-feature.vdx24.einvoice.inbox.142+ff40ab64",
36
- "@sphereon/ssi-types": "0.36.1-feature.vdx24.einvoice.inbox.142+ff40ab64",
31
+ "@sphereon/ssi-sdk-ext.did-utils": "0.36.1-feature.vdx24.einvoice.inbox.143+9a2b1f09",
32
+ "@sphereon/ssi-sdk-ext.identifier-resolution": "0.36.1-feature.vdx24.einvoice.inbox.143+9a2b1f09",
33
+ "@sphereon/ssi-sdk.agent-config": "0.36.1-feature.vdx24.einvoice.inbox.143+9a2b1f09",
34
+ "@sphereon/ssi-sdk.core": "0.36.1-feature.vdx24.einvoice.inbox.143+9a2b1f09",
35
+ "@sphereon/ssi-sdk.data-store-types": "0.36.1-feature.vdx24.einvoice.inbox.143+9a2b1f09",
36
+ "@sphereon/ssi-types": "0.36.1-feature.vdx24.einvoice.inbox.143+9a2b1f09",
37
37
  "@veramo/core": "4.2.0",
38
38
  "@veramo/data-store": "4.2.0",
39
39
  "@veramo/utils": "4.2.0",
@@ -67,5 +67,5 @@
67
67
  "PostgreSQL",
68
68
  "Contact Store"
69
69
  ],
70
- "gitHead": "ff40ab64b07e77c8565ed97a027c74bb4d754f28"
70
+ "gitHead": "9a2b1f0998e426363aa123252298ce4af19aecb6"
71
71
  }
@@ -1,7 +1,10 @@
1
1
  import type { IPresentationDefinition } from '@sphereon/pex'
2
2
  import type { DcqlQueryItem, NonPersistedDcqlQueryItem, PartialDcqlQueryItem } from '@sphereon/ssi-sdk.data-store-types'
3
- import * as blakepkg from 'blakejs'
3
+ import blakejs from 'blakejs'
4
4
  import { DcqlQuery } from 'dcql'
5
+
6
+ // Handle CommonJS/ESM interop - blakejs may be wrapped in a default export
7
+ const blake = (blakejs as any).default ?? blakejs
5
8
  import { DcqlQueryItemEntity } from '../../entities/presentationDefinition/DcqlQueryItemEntity'
6
9
  import { replaceNullWithUndefined } from '../FormattingUtils'
7
10
 
@@ -41,7 +44,7 @@ export const dcqlQueryEntityItemFrom = (item: NonPersistedDcqlQueryItem): DcqlQu
41
44
  }
42
45
 
43
46
  function hashPayload(payload: IPresentationDefinition | DcqlQuery): string {
44
- return blakepkg.blake2bHex(JSON.stringify(payload))
47
+ return blake.blake2bHex(JSON.stringify(payload))
45
48
  }
46
49
 
47
50
  export function isPresentationDefinitionEqual(base: PartialDcqlQueryItem, compare: PartialDcqlQueryItem): boolean {