@sd-jwt/present 0.17.2-next.1 → 0.17.2-next.3

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/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
- import { Hasher, PresentationFrame } from '@sd-jwt/types';
2
- import { HasherSync, Extensible } from '@sd-jwt/types/src/type';
1
+ import { Hasher, HasherSync, PresentationFrame, Extensible } from '@sd-jwt/types';
3
2
  import { Disclosure } from '@sd-jwt/utils';
4
3
 
5
4
  declare const presentableKeys: (rawPayload: Record<string, unknown>, disclosures: Array<Disclosure>, hasher: Hasher) => Promise<string[]>;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { Hasher, PresentationFrame } from '@sd-jwt/types';
2
- import { HasherSync, Extensible } from '@sd-jwt/types/src/type';
1
+ import { Hasher, HasherSync, PresentationFrame, Extensible } from '@sd-jwt/types';
3
2
  import { Disclosure } from '@sd-jwt/utils';
4
3
 
5
4
  declare const presentableKeys: (rawPayload: Record<string, unknown>, disclosures: Array<Disclosure>, hasher: Hasher) => Promise<string[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-jwt/present",
3
- "version": "0.17.2-next.1+9e8110d",
3
+ "version": "0.17.2-next.3+8d5a743",
4
4
  "description": "sd-jwt draft 7 implementation in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -37,12 +37,12 @@
37
37
  },
38
38
  "license": "Apache-2.0",
39
39
  "devDependencies": {
40
- "@sd-jwt/crypto-nodejs": "0.17.2-next.1+9e8110d"
40
+ "@sd-jwt/crypto-nodejs": "0.17.2-next.3+8d5a743"
41
41
  },
42
42
  "dependencies": {
43
- "@sd-jwt/decode": "0.17.2-next.1+9e8110d",
44
- "@sd-jwt/types": "0.17.2-next.1+9e8110d",
45
- "@sd-jwt/utils": "0.17.2-next.1+9e8110d"
43
+ "@sd-jwt/decode": "0.17.2-next.3+8d5a743",
44
+ "@sd-jwt/types": "0.17.2-next.3+8d5a743",
45
+ "@sd-jwt/utils": "0.17.2-next.3+8d5a743"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public"
@@ -60,5 +60,5 @@
60
60
  "esm"
61
61
  ]
62
62
  },
63
- "gitHead": "9e8110d18a7af714d9eb4aa2c3bd66ce56bf18d9"
63
+ "gitHead": "8d5a743f1ff5ae51adea37509b5c24a6c09ede8a"
64
64
  }
package/src/present.ts CHANGED
@@ -9,12 +9,12 @@ import {
9
9
  unpackObj,
10
10
  unpackSync,
11
11
  } from '@sd-jwt/decode';
12
+ import type { Extensible, HasherSync } from '@sd-jwt/types';
12
13
  import {
13
14
  type Hasher,
14
15
  type PresentationFrame,
15
16
  SD_SEPARATOR,
16
17
  } from '@sd-jwt/types';
17
- import type { Extensible, HasherSync } from '@sd-jwt/types/src/type';
18
18
  import { Disclosure, SDJWTException } from '@sd-jwt/utils';
19
19
 
20
20
  // Presentable keys
@@ -116,7 +116,7 @@ describe('Present tests', () => {
116
116
  data2: true,
117
117
  };
118
118
 
119
- const list = transformPresentationFrame<typeof claims>(presentFrame);
119
+ const list = transformPresentationFrame(presentFrame);
120
120
  expect(list).toStrictEqual([
121
121
  'firstname',
122
122
  'data',
@@ -148,7 +148,7 @@ describe('Present tests', () => {
148
148
  street: true,
149
149
  },
150
150
  };
151
- const list = transformPresentationFrame<typeof claims>(obj);
151
+ const list = transformPresentationFrame(obj);
152
152
  expect(list).toStrictEqual(['address', 'address.city', 'address.street']);
153
153
  });
154
154