Fix regression import attribute (#1642)

* Revert "Replace deprecated assert with import attributes syntax (#1619)"

This reverts commit f61221f73a.

* fix: update import syntax for bailey's version JSON
This commit is contained in:
João Lucas de Oliveira Lopes
2025-07-29 10:20:02 -03:00
committed by GitHub
parent 3ba5595d5b
commit 8d2cdbcf98
4 changed files with 8 additions and 6 deletions
+3 -2
View File
@@ -3,8 +3,9 @@ import { makeLibSignalRepository } from '../Signal/libsignal'
import type { AuthenticationState, MediaType, SocketConfig, WAVersion } from '../Types'
import { Browsers } from '../Utils'
import logger from '../Utils/logger'
// @ts-ignore - This file is generated during build
import { version } from './baileys-version.js'
import defaultVersion from './baileys-version.json' with { type: 'json' }
const { version } = defaultVersion
export const UNAUTHORIZED_CODES = [401, 403, 419]