This commit is contained in:
Alan Hamlett
2023-10-17 21:56:16 +02:00
parent c57818bec7
commit 625410df1a
4 changed files with 8 additions and 4 deletions

View File

@@ -354,7 +354,7 @@ class WakaTimeCore {
};
payload.project = heartbeat.project ?? '<<LAST_PROJECT>>';
payload.branch= heartbeat.branch ?? '<<LAST_BRANCH>>';
payload.branch = heartbeat.branch ?? '<<LAST_BRANCH>>';
return payload;
}

View File

@@ -28,9 +28,9 @@ export interface Datum {
}
export interface SendHeartbeat {
branch: string | null;
hostname: string;
project: string | null;
branch: string | null;
url: string;
}

View File

@@ -25,11 +25,11 @@ export interface User {
is_hireable: boolean;
is_onboarding_finished: boolean;
languages_used_public: boolean;
last_branch?: string;
last_heartbeat_at: string;
last_plugin: string;
last_plugin_name: string;
last_project?: string;
last_branch?: string;
location: string;
logged_time_public: boolean;
modified_at: string;

View File

@@ -75,5 +75,9 @@ export default (
arv: Record<string, string>,
): webpack.Configuration[] => {
const isProd = arv.mode !== 'development';
return [getConfigByBrowser(isProd, 'chrome'), getConfigByBrowser(isProd, 'firefox'), getConfigByBrowser(isProd, 'edge')];
return [
getConfigByBrowser(isProd, 'chrome'),
getConfigByBrowser(isProd, 'firefox'),
getConfigByBrowser(isProd, 'edge'),
];
};