@sphereon/ssi-types 0.36.1-next.47 → 0.36.1-next.70

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-types",
3
3
  "description": "SSI Common Types",
4
- "version": "0.36.1-next.47+31fe4eef",
4
+ "version": "0.36.1-next.70+6dc79789",
5
5
  "source": "./src/index.ts",
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
@@ -59,5 +59,5 @@
59
59
  "Verifiable Credentials",
60
60
  "DIDs"
61
61
  ],
62
- "gitHead": "31fe4eeffb4312dae114c805734a037118411ad3"
62
+ "gitHead": "6dc79789e21f41b193a6e604c132d24130748fa5"
63
63
  }
@@ -48,7 +48,7 @@ import { jwtDecode } from 'jwt-decode'
48
48
 
49
49
  type DeviceResponseCbor = mdocPkg.com.sphereon.mdoc.data.device.DeviceResponseCbor
50
50
 
51
- export const sha256 = (data: string | ArrayBuffer): Uint8Array => {
51
+ export const sha256 = (data: string | ArrayBuffer | SharedArrayBuffer): Uint8Array => {
52
52
  return defaultHasher(data, 'sha256')
53
53
  }
54
54
 
@@ -169,8 +169,8 @@ export interface WrappedSdJwtVerifiableCredential {
169
169
  credential: SdJwtDecodedVerifiableCredential
170
170
  }
171
171
 
172
- export type HasherSync = (data: string | ArrayBuffer, alg: string) => Uint8Array
173
- export type Hasher = (data: string | ArrayBuffer, alg: string) => OrPromise<Uint8Array>
172
+ export type HasherSync = (data: string | ArrayBuffer | SharedArrayBuffer, alg: string) => Uint8Array
173
+ export type Hasher = (data: string | ArrayBuffer | SharedArrayBuffer, alg: string) => OrPromise<Uint8Array>
174
174
 
175
175
  export interface WrappedSdJwtVerifiablePresentation {
176
176
  /**