@sd-jwt/sd-jwt-vc 0.7.2-next.4 → 0.7.2-next.5

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
@@ -83,6 +83,7 @@ var SDJwtVcInstance = class _SDJwtVcInstance extends import_core.SDJwtInstance {
83
83
  */
84
84
  statusListFetcher(uri) {
85
85
  return __async(this, null, function* () {
86
+ var _a;
86
87
  const controller = new AbortController();
87
88
  const timeoutId = setTimeout(() => controller.abort(), 1e4);
88
89
  try {
@@ -95,7 +96,7 @@ var SDJwtVcInstance = class _SDJwtVcInstance extends import_core.SDJwtInstance {
95
96
  `Error fetching status list: ${response.status} ${yield response.text()}`
96
97
  );
97
98
  }
98
- if (response.headers.get("content-type") !== "application/statuslist+jwt") {
99
+ if (!((_a = response.headers.get("content-type")) == null ? void 0 : _a.includes("application/statuslist+jwt"))) {
99
100
  throw new Error("Invalid content type");
100
101
  }
101
102
  return response.text();
package/dist/index.mjs CHANGED
@@ -60,6 +60,7 @@ var SDJwtVcInstance = class _SDJwtVcInstance extends SDJwtInstance {
60
60
  */
61
61
  statusListFetcher(uri) {
62
62
  return __async(this, null, function* () {
63
+ var _a;
63
64
  const controller = new AbortController();
64
65
  const timeoutId = setTimeout(() => controller.abort(), 1e4);
65
66
  try {
@@ -72,7 +73,7 @@ var SDJwtVcInstance = class _SDJwtVcInstance extends SDJwtInstance {
72
73
  `Error fetching status list: ${response.status} ${yield response.text()}`
73
74
  );
74
75
  }
75
- if (response.headers.get("content-type") !== "application/statuslist+jwt") {
76
+ if (!((_a = response.headers.get("content-type")) == null ? void 0 : _a.includes("application/statuslist+jwt"))) {
76
77
  throw new Error("Invalid content type");
77
78
  }
78
79
  return response.text();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-jwt/sd-jwt-vc",
3
- "version": "0.7.2-next.4+87d305f",
3
+ "version": "0.7.2-next.5+8a48bb5",
4
4
  "description": "sd-jwt draft 7 implementation in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -39,13 +39,13 @@
39
39
  },
40
40
  "license": "Apache-2.0",
41
41
  "dependencies": {
42
- "@sd-jwt/core": "0.7.2-next.4+87d305f",
43
- "@sd-jwt/jwt-status-list": "0.7.2-next.4+87d305f",
44
- "@sd-jwt/utils": "0.7.2-next.4+87d305f"
42
+ "@sd-jwt/core": "0.7.2-next.5+8a48bb5",
43
+ "@sd-jwt/jwt-status-list": "0.7.2-next.5+8a48bb5",
44
+ "@sd-jwt/utils": "0.7.2-next.5+8a48bb5"
45
45
  },
46
46
  "devDependencies": {
47
- "@sd-jwt/crypto-nodejs": "0.7.2-next.4+87d305f",
48
- "@sd-jwt/types": "0.7.2-next.4+87d305f",
47
+ "@sd-jwt/crypto-nodejs": "0.7.2-next.5+8a48bb5",
48
+ "@sd-jwt/types": "0.7.2-next.5+8a48bb5",
49
49
  "jose": "^5.2.2"
50
50
  },
51
51
  "publishConfig": {
@@ -64,5 +64,5 @@
64
64
  "esm"
65
65
  ]
66
66
  },
67
- "gitHead": "87d305f9b4ca5768fbab470dc456be15bc4d00b5"
67
+ "gitHead": "8a48bb57fcf9bbad349f349b0aa1ffd997c86bb2"
68
68
  }
@@ -71,7 +71,9 @@ export class SDJwtVcInstance extends SDJwtInstance<SdJwtVcPayload> {
71
71
 
72
72
  // according to the spec the content type should be application/statuslist+jwt
73
73
  if (
74
- response.headers.get('content-type') !== 'application/statuslist+jwt'
74
+ !response.headers
75
+ .get('content-type')
76
+ ?.includes('application/statuslist+jwt')
75
77
  ) {
76
78
  throw new Error('Invalid content type');
77
79
  }