From 36507aedad06c46d8e86164be8acdd6fb75a3d20 Mon Sep 17 00:00:00 2001 From: Will Ernst Date: Sun, 23 Jul 2023 20:25:58 -0700 Subject: [PATCH] fixup non existing pacakge check --- scripts/npm-check-version-and-publish.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/npm-check-version-and-publish.js b/scripts/npm-check-version-and-publish.js index 495f67c2..5ac153fa 100644 --- a/scripts/npm-check-version-and-publish.js +++ b/scripts/npm-check-version-and-publish.js @@ -27,7 +27,11 @@ function getPublishedVersion() { return semver.maxSatisfying(publishedVersions, '*'); // gets the highest version using semver } catch (e) { // Catch 404 which has no published version - if (e.output[1].toString('utf-8').includes('404 (Not Found)')) { + if ( + e.output[1] + .toString('utf-8') + .includes('The remote server failed to provide the requested resource') + ) { return undefined; } throw e;