Remove use of __dirname from main process

This commit is contained in:
Fedor Indutny
2026-03-27 10:55:37 -07:00
committed by GitHub
parent 70f111e868
commit a048f83dbc
39 changed files with 222 additions and 337 deletions

View File

@@ -1,7 +1,7 @@
// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { version } from './packageJson.node.js';
import { packageJson } from './packageJson.node.js';
import { getUserAgent } from './getUserAgent.node.js';
type AuthenticateOptionsType = Readonly<{
@@ -36,6 +36,6 @@ export async function authenticate({
return new Headers({
authorization: `${auth.tokenType} ${auth.accessToken}`,
'user-agent': getUserAgent(version),
'user-agent': getUserAgent(packageJson.version),
});
}