@sd-jwt/core 0.9.3-next.2 → 0.9.3-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.js CHANGED
@@ -55,8 +55,8 @@ var __async = (__this, __arguments, generator) => {
55
55
  };
56
56
 
57
57
  // src/index.ts
58
- var src_exports = {};
59
- __export(src_exports, {
58
+ var index_exports = {};
59
+ __export(index_exports, {
60
60
  FlattenJSON: () => FlattenJSON,
61
61
  GeneralJSON: () => GeneralJSON,
62
62
  Jwt: () => Jwt,
@@ -68,7 +68,7 @@ __export(src_exports, {
68
68
  listKeys: () => listKeys,
69
69
  pack: () => pack
70
70
  });
71
- module.exports = __toCommonJS(src_exports);
71
+ module.exports = __toCommonJS(index_exports);
72
72
  var import_utils7 = require("@sd-jwt/utils");
73
73
 
74
74
  // src/jwt.ts
@@ -340,8 +340,7 @@ var SDJwt = class _SDJwt {
340
340
  var listKeys = (obj, prefix = "") => {
341
341
  const keys = [];
342
342
  for (const key in obj) {
343
- if (obj[key] === void 0)
344
- continue;
343
+ if (obj[key] === void 0) continue;
345
344
  const newKey = prefix ? `${prefix}.${key}` : key;
346
345
  keys.push(newKey);
347
346
  if (obj[key] && typeof obj[key] === "object" && obj[key] !== null) {
@@ -703,8 +702,7 @@ var _SDJwtInstance = class _SDJwtInstance {
703
702
  }
704
703
  const hasher = this.userConfig.hasher;
705
704
  const sdjwt = yield SDJwt.fromEncode(encodedSDJwt, hasher);
706
- if (!((_a = sdjwt.jwt) == null ? void 0 : _a.payload))
707
- throw new import_utils7.SDJWTException("Payload not found");
705
+ if (!((_a = sdjwt.jwt) == null ? void 0 : _a.payload)) throw new import_utils7.SDJWTException("Payload not found");
708
706
  const presentSdJwtWithoutKb = yield sdjwt.present(
709
707
  presentationFrame,
710
708
  hasher
@@ -952,8 +950,7 @@ var SDJwtGeneralJSONInstance = class {
952
950
  const hasher = this.userConfig.hasher;
953
951
  const encodedSDJwt = generalJSON.toEncoded(0);
954
952
  const sdjwt = yield SDJwt.fromEncode(encodedSDJwt, hasher);
955
- if (!((_a = sdjwt.jwt) == null ? void 0 : _a.payload))
956
- throw new import_utils7.SDJWTException("Payload not found");
953
+ if (!((_a = sdjwt.jwt) == null ? void 0 : _a.payload)) throw new import_utils7.SDJWTException("Payload not found");
957
954
  const disclosures = yield sdjwt.getPresentDisclosures(
958
955
  presentationFrame,
959
956
  hasher
package/dist/index.mjs CHANGED
@@ -322,8 +322,7 @@ var SDJwt = class _SDJwt {
322
322
  var listKeys = (obj, prefix = "") => {
323
323
  const keys = [];
324
324
  for (const key in obj) {
325
- if (obj[key] === void 0)
326
- continue;
325
+ if (obj[key] === void 0) continue;
327
326
  const newKey = prefix ? `${prefix}.${key}` : key;
328
327
  keys.push(newKey);
329
328
  if (obj[key] && typeof obj[key] === "object" && obj[key] !== null) {
@@ -688,8 +687,7 @@ var _SDJwtInstance = class _SDJwtInstance {
688
687
  }
689
688
  const hasher = this.userConfig.hasher;
690
689
  const sdjwt = yield SDJwt.fromEncode(encodedSDJwt, hasher);
691
- if (!((_a = sdjwt.jwt) == null ? void 0 : _a.payload))
692
- throw new SDJWTException6("Payload not found");
690
+ if (!((_a = sdjwt.jwt) == null ? void 0 : _a.payload)) throw new SDJWTException6("Payload not found");
693
691
  const presentSdJwtWithoutKb = yield sdjwt.present(
694
692
  presentationFrame,
695
693
  hasher
@@ -937,8 +935,7 @@ var SDJwtGeneralJSONInstance = class {
937
935
  const hasher = this.userConfig.hasher;
938
936
  const encodedSDJwt = generalJSON.toEncoded(0);
939
937
  const sdjwt = yield SDJwt.fromEncode(encodedSDJwt, hasher);
940
- if (!((_a = sdjwt.jwt) == null ? void 0 : _a.payload))
941
- throw new SDJWTException6("Payload not found");
938
+ if (!((_a = sdjwt.jwt) == null ? void 0 : _a.payload)) throw new SDJWTException6("Payload not found");
942
939
  const disclosures = yield sdjwt.getPresentDisclosures(
943
940
  presentationFrame,
944
941
  hasher
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-jwt/core",
3
- "version": "0.9.3-next.2+68b4ec4",
3
+ "version": "0.9.3-next.3+b1a1a48",
4
4
  "description": "sd-jwt draft 7 implementation in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -38,13 +38,13 @@
38
38
  },
39
39
  "license": "Apache-2.0",
40
40
  "devDependencies": {
41
- "@sd-jwt/crypto-nodejs": "0.9.3-next.2+68b4ec4"
41
+ "@sd-jwt/crypto-nodejs": "0.9.3-next.3+b1a1a48"
42
42
  },
43
43
  "dependencies": {
44
- "@sd-jwt/decode": "0.9.3-next.2+68b4ec4",
45
- "@sd-jwt/present": "0.9.3-next.2+68b4ec4",
46
- "@sd-jwt/types": "0.9.3-next.2+68b4ec4",
47
- "@sd-jwt/utils": "0.9.3-next.2+68b4ec4"
44
+ "@sd-jwt/decode": "0.9.3-next.3+b1a1a48",
45
+ "@sd-jwt/present": "0.9.3-next.3+b1a1a48",
46
+ "@sd-jwt/types": "0.9.3-next.3+b1a1a48",
47
+ "@sd-jwt/utils": "0.9.3-next.3+b1a1a48"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"
@@ -62,5 +62,5 @@
62
62
  "esm"
63
63
  ]
64
64
  },
65
- "gitHead": "68b4ec49db47d8fdee533646a05495bb2be729d0"
65
+ "gitHead": "b1a1a481270e3ad720fc17bd24345a11575f00d6"
66
66
  }