@sd-jwt/jwt-status-list 0.15.2-next.8 → 0.15.2-next.9

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
@@ -38,8 +38,8 @@ __export(index_exports, {
38
38
  module.exports = __toCommonJS(index_exports);
39
39
 
40
40
  // src/status-list.ts
41
- var import_pako = require("pako");
42
41
  var import_base64url = __toESM(require("base64url"));
42
+ var import_pako = require("pako");
43
43
  var StatusList = class _StatusList {
44
44
  /**
45
45
  * Create a new StatusListManager instance.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  // src/status-list.ts
2
- import { deflate, inflate } from "pako";
3
2
  import base64Url from "base64url";
3
+ import { deflate, inflate } from "pako";
4
4
  var StatusList = class _StatusList {
5
5
  /**
6
6
  * Create a new StatusListManager instance.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-jwt/jwt-status-list",
3
- "version": "0.15.2-next.8+f68c847",
3
+ "version": "0.15.2-next.9+75d5780",
4
4
  "description": "Implementation based on https://datatracker.ietf.org/doc/draft-ietf-oauth-status-list/",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -25,7 +25,7 @@
25
25
  "sd-jwt"
26
26
  ],
27
27
  "engines": {
28
- "node": ">=18"
28
+ "node": ">=20"
29
29
  },
30
30
  "repository": {
31
31
  "url": "https://github.com/openwallet-foundation/sd-jwt-js"
@@ -37,11 +37,11 @@
37
37
  },
38
38
  "license": "Apache-2.0",
39
39
  "devDependencies": {
40
- "@types/pako": "^2.0.3",
41
- "jose": "^5.2.2"
40
+ "@types/pako": "^2.0.4",
41
+ "jose": "^6.1.0"
42
42
  },
43
43
  "dependencies": {
44
- "@sd-jwt/types": "0.15.2-next.8+f68c847",
44
+ "@sd-jwt/types": "0.15.2-next.9+75d5780",
45
45
  "base64url": "^3.0.1",
46
46
  "pako": "^2.1.0"
47
47
  },
@@ -61,5 +61,5 @@
61
61
  "esm"
62
62
  ]
63
63
  },
64
- "gitHead": "f68c8476c2f04bb9d53acd4059b59caf271df015"
64
+ "gitHead": "75d5780fb53c5e2c886537b283503fc6fb088a4a"
65
65
  }
@@ -1,12 +1,12 @@
1
1
  import type { JwtPayload } from '@sd-jwt/types';
2
+ import base64Url from 'base64url';
2
3
  import { StatusList } from './status-list';
3
4
  import type {
4
5
  JWTwithStatusListPayload,
5
- StatusListJWTHeaderParameters,
6
6
  StatusListEntry,
7
+ StatusListJWTHeaderParameters,
7
8
  StatusListJWTPayload,
8
9
  } from './types';
9
- import base64Url from 'base64url';
10
10
 
11
11
  /**
12
12
  * Decode a JWT and return the payload.
@@ -1,5 +1,5 @@
1
- import { deflate, inflate } from 'pako';
2
1
  import base64Url from 'base64url';
2
+ import { deflate, inflate } from 'pako';
3
3
  import type { BitsPerStatus } from './types';
4
4
  /**
5
5
  * StatusListManager is a class that manages a list of statuses with variable bit size.
@@ -1,17 +1,17 @@
1
+ import { generateKeyPairSync } from 'node:crypto';
2
+ import type { JwtPayload } from '@sd-jwt/types';
3
+ import { jwtVerify, type KeyLike, SignJWT } from 'jose';
4
+ import { beforeAll, describe, expect, it } from 'vitest';
5
+ import { StatusList } from '../status-list';
1
6
  import {
2
7
  createHeaderAndPayload,
3
8
  getListFromStatusListJWT,
4
9
  getStatusListFromJWT,
5
10
  } from '../status-list-jwt';
6
11
  import type {
7
- StatusListJWTHeaderParameters,
8
12
  JWTwithStatusListPayload,
13
+ StatusListJWTHeaderParameters,
9
14
  } from '../types';
10
- import { StatusList } from '../status-list';
11
- import { jwtVerify, type KeyLike, SignJWT } from 'jose';
12
- import { beforeAll, describe, expect, it } from 'vitest';
13
- import { generateKeyPairSync } from 'node:crypto';
14
- import type { JwtPayload } from '@sd-jwt/types';
15
15
 
16
16
  describe('JWTStatusList', () => {
17
17
  let publicKey: KeyLike;