@sd-jwt/sd-jwt-vc 0.9.3-next.2 → 0.9.3-next.4

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
@@ -50,11 +50,11 @@ var __async = (__this, __arguments, generator) => {
50
50
  };
51
51
 
52
52
  // src/index.ts
53
- var src_exports = {};
54
- __export(src_exports, {
53
+ var index_exports = {};
54
+ __export(index_exports, {
55
55
  SDJwtVcInstance: () => SDJwtVcInstance
56
56
  });
57
- module.exports = __toCommonJS(src_exports);
57
+ module.exports = __toCommonJS(index_exports);
58
58
 
59
59
  // src/sd-jwt-vc-instance.ts
60
60
  var import_core = require("@sd-jwt/core");
@@ -123,8 +123,7 @@ var SDJwtVcInstance = class _SDJwtVcInstance extends import_core.SDJwtInstance {
123
123
  */
124
124
  statusValidator(status) {
125
125
  return __async(this, null, function* () {
126
- if (status !== 0)
127
- throw new import_utils.SDJWTException("Status is not valid");
126
+ if (status !== 0) throw new import_utils.SDJWTException("Status is not valid");
128
127
  return Promise.resolve();
129
128
  });
130
129
  }
@@ -206,8 +205,7 @@ var SDJwtVcInstance = class _SDJwtVcInstance extends import_core.SDJwtInstance {
206
205
  */
207
206
  loadSchema(typeMetadataFormat) {
208
207
  return __async(this, null, function* () {
209
- if (typeMetadataFormat.schema)
210
- return typeMetadataFormat.schema;
208
+ if (typeMetadataFormat.schema) return typeMetadataFormat.schema;
211
209
  if (typeMetadataFormat.schema_uri) {
212
210
  const schema = yield this.fetch(
213
211
  typeMetadataFormat.schema_uri,
package/dist/index.mjs CHANGED
@@ -91,8 +91,7 @@ var SDJwtVcInstance = class _SDJwtVcInstance extends SDJwtInstance {
91
91
  */
92
92
  statusValidator(status) {
93
93
  return __async(this, null, function* () {
94
- if (status !== 0)
95
- throw new SDJWTException("Status is not valid");
94
+ if (status !== 0) throw new SDJWTException("Status is not valid");
96
95
  return Promise.resolve();
97
96
  });
98
97
  }
@@ -174,8 +173,7 @@ var SDJwtVcInstance = class _SDJwtVcInstance extends SDJwtInstance {
174
173
  */
175
174
  loadSchema(typeMetadataFormat) {
176
175
  return __async(this, null, function* () {
177
- if (typeMetadataFormat.schema)
178
- return typeMetadataFormat.schema;
176
+ if (typeMetadataFormat.schema) return typeMetadataFormat.schema;
179
177
  if (typeMetadataFormat.schema_uri) {
180
178
  const schema = yield this.fetch(
181
179
  typeMetadataFormat.schema_uri,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-jwt/sd-jwt-vc",
3
- "version": "0.9.3-next.2+68b4ec4",
3
+ "version": "0.9.3-next.4+cc455a6",
4
4
  "description": "sd-jwt draft 7 implementation in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -39,15 +39,15 @@
39
39
  },
40
40
  "license": "Apache-2.0",
41
41
  "dependencies": {
42
- "@sd-jwt/core": "0.9.3-next.2+68b4ec4",
43
- "@sd-jwt/jwt-status-list": "0.9.3-next.2+68b4ec4",
44
- "@sd-jwt/utils": "0.9.3-next.2+68b4ec4",
42
+ "@sd-jwt/core": "0.9.3-next.4+cc455a6",
43
+ "@sd-jwt/jwt-status-list": "0.9.3-next.4+cc455a6",
44
+ "@sd-jwt/utils": "0.9.3-next.4+cc455a6",
45
45
  "ajv": "^8.17.1",
46
46
  "ajv-formats": "^3.0.1"
47
47
  },
48
48
  "devDependencies": {
49
- "@sd-jwt/crypto-nodejs": "0.9.3-next.2+68b4ec4",
50
- "@sd-jwt/types": "0.9.3-next.2+68b4ec4",
49
+ "@sd-jwt/crypto-nodejs": "0.9.3-next.4+cc455a6",
50
+ "@sd-jwt/types": "0.9.3-next.4+cc455a6",
51
51
  "jose": "^5.2.2",
52
52
  "msw": "^2.3.5"
53
53
  },
@@ -67,5 +67,5 @@
67
67
  "esm"
68
68
  ]
69
69
  },
70
- "gitHead": "68b4ec49db47d8fdee533646a05495bb2be729d0"
70
+ "gitHead": "cc455a6f3d431fa59cca1d21dad49daac135d3bc"
71
71
  }