synsci 2.0.77 → 2.0.78-test.34098503148
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/bin/synsci.mjs +3 -1
- package/package.json +1 -1
package/bin/synsci.mjs
CHANGED
|
@@ -435,7 +435,9 @@ async function main() {
|
|
|
435
435
|
const s = spinner("Checking for updates...")
|
|
436
436
|
const current = raw.replace(/[^0-9.]/g, "")
|
|
437
437
|
const latest = runQuiet(`npm view @synsci/openscience@${OPENSCIENCE_NPM_TAG} version`)
|
|
438
|
-
if (!latest
|
|
438
|
+
if (!latest) {
|
|
439
|
+
s.warn(`Could not check for updates, continuing with openscience ${current}`)
|
|
440
|
+
} else if (current === latest) {
|
|
439
441
|
s.ok(`openscience ${current} ${DIM}(up to date)${RESET}`)
|
|
440
442
|
} else {
|
|
441
443
|
s.update(`Upgrading ${current} → ${latest}...`)
|