@lawaty/lacode 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2410,8 +2410,9 @@ async function selfUpdateHooks(input, options) {
|
|
|
2410
2410
|
if (opts.enabled === false || opts.selfUpdate === false) return {};
|
|
2411
2411
|
const log = (level, message, extra) => input.client.app.log({ body: { service: "lacode", level, message, extra } }).catch(() => {
|
|
2412
2412
|
});
|
|
2413
|
-
void maybeSelfUpdate({ packageRoot: PACKAGE_ROOT, enabled: opts.enabled, log }).
|
|
2414
|
-
|
|
2413
|
+
void maybeSelfUpdate({ packageRoot: PACKAGE_ROOT, enabled: opts.enabled, log }).then((result) => {
|
|
2414
|
+
if (result.action !== "disabled") log("debug", `self-update check: ${JSON.stringify(result)}`);
|
|
2415
|
+
}).catch((error) => log("error", `self-update check threw: ${String(error)}`));
|
|
2415
2416
|
return {};
|
|
2416
2417
|
}
|
|
2417
2418
|
|
package/package.json
CHANGED