@sphereon/ssi-sdk-ext.key-utils 0.26.1-next.14 → 0.26.1-next.17
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/dist/conversion.js.map +1 -1
- package/dist/functions.d.ts +2 -2
- package/dist/functions.d.ts.map +1 -1
- package/dist/functions.js +27 -23
- package/dist/functions.js.map +1 -1
- package/dist/jwk-jcs.d.ts.map +1 -1
- package/dist/jwk-jcs.js +1 -1
- package/dist/jwk-jcs.js.map +1 -1
- package/package.json +3 -4
- package/src/conversion.ts +1 -1
- package/src/functions.ts +572 -563
- package/src/jwk-jcs.ts +3 -3
package/src/jwk-jcs.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {ByteView} from 'multiformats/codecs/interface'
|
|
2
|
-
import {TextDecoder, TextEncoder} from 'web-encoding'
|
|
1
|
+
import type { ByteView } from 'multiformats/codecs/interface'
|
|
2
|
+
import { TextDecoder, TextEncoder } from 'web-encoding'
|
|
3
3
|
|
|
4
4
|
const textEncoder = new TextEncoder()
|
|
5
5
|
const textDecoder = new TextDecoder()
|
|
@@ -22,7 +22,7 @@ function check(value: unknown, description: string) {
|
|
|
22
22
|
* @param value - The value to check.
|
|
23
23
|
*/
|
|
24
24
|
function assertObject(value: unknown) {
|
|
25
|
-
if (!value || typeof
|
|
25
|
+
if (!value || typeof value !== 'object') {
|
|
26
26
|
throw new Error('Value must be an object')
|
|
27
27
|
}
|
|
28
28
|
}
|