fix: add import assertion for JSON imports in ESM

Adds 'with { type: "json" }' to JSON imports to fix Node.js ESM runtime error:
ERR_IMPORT_ATTRIBUTE_MISSING
This commit is contained in:
Claude
2026-01-21 17:46:54 +00:00
parent 46ffaf027c
commit 8ef129bd3d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { Boom } from '@hapi/boom'
import { createHash, randomBytes } from 'crypto'
import { proto } from '../../WAProto/index.js'
// Single source of truth for WhatsApp Web version - imported from JSON
import baileysVersionData from '../Defaults/baileys-version.json'
import baileysVersionData from '../Defaults/baileys-version.json' with { type: 'json' }
const baileysVersion = baileysVersionData.version
import type {