fix: add import assertion for JSON imports in ESM

fix: add import assertion for JSON imports in ESM
This commit is contained in:
Renato Alcara
2026-01-21 14:51:02 -03:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import type { AuthenticationState, SocketConfig, WAVersion } from '../Types'
import { Browsers } from '../Utils/browser-utils'
import logger from '../Utils/logger'
// Single source of truth for WhatsApp Web version - imported from JSON
import baileysVersionData from './baileys-version.json'
import baileysVersionData from './baileys-version.json' with { type: 'json' }
const version = baileysVersionData.version
+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 {