Skip to content

Commit 332e7d5

Browse files
committed
refactor(imports): use modern JSON import assertion syntax
Update JSON import to use `with { type: 'json' }` syntax instead of plain import. This is the modern ESM standard for importing JSON modules with explicit type assertion.
1 parent 6ee7d4b commit 332e7d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Provides default values, HTTP agents, and public policy configurations for API interactions.
44
*/
55

6-
import rootPkgJson from '../package.json'
6+
import rootPkgJson from '../package.json' with { type: 'json' }
77
import { createUserAgentFromPkgJson } from './user-agent'
88

99
import type { ALERT_ACTION, ALERT_TYPE } from './types'

0 commit comments

Comments
 (0)