Skip to content

Commit 25f3f01

Browse files
Merge pull request #125 from MaartenDesnouck/fix-version-check
Fix version check
2 parents a0646ff + 86ade80 commit 25f3f01

File tree

3 files changed

+33
-33
lines changed

3 files changed

+33
-33
lines changed

lib/functions/checkNewVersion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function checkNewVersion() {
3131
// Show update message
3232
if (lastCheckForUpdate + (6 * 3600 * 1000) < Date.now()) {
3333
const latestVersion = await request(`${constants.FIREBASE_DATABASE_URL}/version/cli/latest.json`);
34-
if (latestVersion && latestVersion !== 'null' && latestVersion !== pjson.version) {
34+
if (latestVersion && latestVersion !== 'null' && latestVersion !== `"${pjson.version}"`) {
3535
const scale = pjson.version.length + latestVersion.length - 10;
3636

3737
console.log();

package-lock.json

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "google-apps-script",
3-
"version": "4.1.3",
3+
"version": "4.1.4",
44
"description": "gas, the complete CLI for Google Apps Script",
55
"bin": {
66
"gas": "./bin/gas",
@@ -41,10 +41,10 @@
4141
},
4242
"homepage": "https://github.com/maartendesnouck/google-apps-script#readme",
4343
"dependencies": {
44-
"colors": "^1.3.2",
44+
"colors": "^1.3.3",
4545
"columnify": "^1.5.4",
4646
"commander": "^2.19.0",
47-
"firebase": "^5.7.0",
47+
"firebase": "^5.7.2",
4848
"fs-extra": "^7.0.1",
4949
"googleapis": "^36.0.0",
5050
"has-unicode": "^2.0.1",

0 commit comments

Comments
 (0)