From e7db76e230fe1c51737d456c5f0232b7a5ae46f4 Mon Sep 17 00:00:00 2001 From: JezerM Date: Tue, 8 Mar 2022 16:58:37 -0600 Subject: [PATCH] Deprecate batteryData --- package-lock.json | 12 ++++++------ ts/preload.ts | 12 +++++++++++- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 920ec74..85f329d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3220,9 +3220,9 @@ } }, "node_modules/glob": { - "version": "7.1.7", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", - "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -8741,9 +8741,9 @@ } }, "glob": { - "version": "7.1.7", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", - "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", diff --git a/ts/preload.ts b/ts/preload.ts index 709ee75..bfbc836 100644 --- a/ts/preload.ts +++ b/ts/preload.ts @@ -198,7 +198,7 @@ export class Greeter { /** * The username of the user being authenticated or "null" * if no authentication is in progress - * @type {string|Null} + * @type {string|null} * @readonly */ get authentication_user(): string | null { @@ -237,11 +237,21 @@ export class Greeter { * Gets the battery data. * @type {LightDMBattery} * @readonly + * @deprecated Use `battery_data` */ get batteryData(): LightDMBattery { return ipcRenderer.sendSync("lightdm", "batteryData"); } + /** + * Gets the battery data. + * @type {LightDMBattery} + * @readonly + */ + get battery_data(): LightDMBattery { + return ipcRenderer.sendSync("lightdm", "battery_data"); + } + /** * Gets the brightness */