@prestyj/core 5.0.1 → 5.1.0
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2212,7 +2212,7 @@ function performUpdateInBackground(command) {
|
|
|
2212
2212
|
}
|
|
2213
2213
|
function createAutoUpdater(config) {
|
|
2214
2214
|
const REGISTRY_URL = `https://registry.npmjs.org/${config.packageName}/latest`;
|
|
2215
|
-
const periodicMessage = config.periodicMessage ?? (({ currentVersion, latestVersion, updateCommand }) => `
|
|
2215
|
+
const periodicMessage = config.periodicMessage ?? (({ currentVersion, latestVersion, updateCommand }) => `Nolan just pushed a fresh update \u2014 ${currentVersion} \u2192 ${latestVersion}! I'll grab it on next launch (or run ${updateCommand} if you can't wait).`);
|
|
2216
2216
|
let periodicTimer = null;
|
|
2217
2217
|
function stateFilePath() {
|
|
2218
2218
|
return typeof config.stateFilePath === "function" ? config.stateFilePath() : config.stateFilePath;
|
|
@@ -2291,7 +2291,7 @@ function createAutoUpdater(config) {
|
|
|
2291
2291
|
const info = detectInstallInfo();
|
|
2292
2292
|
if (info.updateCommand) {
|
|
2293
2293
|
performUpdateInBackground(info.updateCommand);
|
|
2294
|
-
message = `
|
|
2294
|
+
message = `Nolan just shipped ${state.latestVersion}! Installing in the background \u2014 takes effect next launch.`;
|
|
2295
2295
|
writeState({
|
|
2296
2296
|
...state,
|
|
2297
2297
|
lastCheckedAt: Date.now(),
|