@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.js
CHANGED
|
@@ -1735,7 +1735,7 @@ function performUpdateInBackground(command) {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
function createAutoUpdater(config) {
|
|
1737
1737
|
const REGISTRY_URL = `https://registry.npmjs.org/${config.packageName}/latest`;
|
|
1738
|
-
const periodicMessage = config.periodicMessage ?? (({ currentVersion, latestVersion, updateCommand }) => `
|
|
1738
|
+
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).`);
|
|
1739
1739
|
let periodicTimer = null;
|
|
1740
1740
|
function stateFilePath() {
|
|
1741
1741
|
return typeof config.stateFilePath === "function" ? config.stateFilePath() : config.stateFilePath;
|
|
@@ -1814,7 +1814,7 @@ function createAutoUpdater(config) {
|
|
|
1814
1814
|
const info = detectInstallInfo();
|
|
1815
1815
|
if (info.updateCommand) {
|
|
1816
1816
|
performUpdateInBackground(info.updateCommand);
|
|
1817
|
-
message = `
|
|
1817
|
+
message = `Nolan just shipped ${state.latestVersion}! Installing in the background \u2014 takes effect next launch.`;
|
|
1818
1818
|
writeState({
|
|
1819
1819
|
...state,
|
|
1820
1820
|
lastCheckedAt: Date.now(),
|