Skip to content

Commit 7b8cc5e

Browse files
committed
fix: fixed importing .json with type assertion
1 parent 74ef537 commit 7b8cc5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/status/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { JSONSchemaType, ValidateFunction } from 'ajv';
22
import type { StatusInfo } from './types.js';
33
import Ajv from 'ajv';
4-
import StatusSchema from './StatusSchema.json';
4+
import StatusSchema from './StatusSchema.json' assert { type: 'json' };
55

66
// @ts-ignore Ajv is improperly exported for ESM
77
const ajv = new Ajv.default();

src/tokens/schemas/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { ValidateFunction } from 'ajv';
22
import type { SignedTokenEncoded } from '../types.js';
33
import Ajv from 'ajv';
4-
import SignedTokenEncodedSchema from './SignedTokenEncodedSchema.json';
4+
import SignedTokenEncodedSchema from './SignedTokenEncodedSchema.json' assert { type: 'json' };
55

66
// @ts-ignore: Ajv exports is function improperly for ESM
77
const ajv = new Ajv.default();

0 commit comments

Comments
 (0)