vona-module-test-vona 5.0.73 → 5.0.74

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/test/jwt.test.ts +2 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-test-vona",
3
3
  "type": "module",
4
- "version": "5.0.73",
4
+ "version": "5.0.74",
5
5
  "title": "test-vona",
6
6
  "vonaModule": {
7
7
  "fileVersion": 1,
package/test/jwt.test.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { IPayloadDataBase } from 'vona-module-a-jwt';
1
+ import type { IPayloadData } from 'vona-module-a-jwt';
2
2
  import assert from 'node:assert';
3
3
  import { describe, it } from 'node:test';
4
4
  import { catchError } from '@cabloy/utils';
@@ -8,7 +8,7 @@ describe('jwt.test.ts', () => {
8
8
  it('action:jwt', async () => {
9
9
  await app.bean.executor.mockCtx(async () => {
10
10
  // sign
11
- const payloadData: IPayloadDataBase = { userId: 1, authId: 1 };
11
+ const payloadData: IPayloadData = { userId: 1, authId: 1 };
12
12
  const token = await app.bean.jwt.get('access').sign(payloadData);
13
13
  assert.equal(token.split('.').length, 3);
14
14
  // verify