diff --git a/dist/index.js b/dist/index.js index 61d157d1..9e0ab8c4 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/unzip b/dist/unzip new file mode 100644 index 00000000..40824180 Binary files /dev/null and b/dist/unzip differ diff --git a/package-lock.json b/package-lock.json index 5c2d047a..d0a41b10 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1711,8 +1711,7 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "aproba": { "version": "1.2.0", @@ -1733,14 +1732,12 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, - "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -1755,20 +1752,17 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "core-util-is": { "version": "1.0.2", @@ -1885,8 +1879,7 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "ini": { "version": "1.3.5", @@ -1898,7 +1891,6 @@ "version": "1.0.0", "bundled": true, "dev": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -1913,7 +1905,6 @@ "version": "3.0.4", "bundled": true, "dev": true, - "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -1921,14 +1912,12 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "minipass": { "version": "2.3.5", "bundled": true, "dev": true, - "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -1947,7 +1936,6 @@ "version": "0.5.1", "bundled": true, "dev": true, - "optional": true, "requires": { "minimist": "0.0.8" } @@ -2028,8 +2016,7 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "object-assign": { "version": "4.1.1", @@ -2041,7 +2028,6 @@ "version": "1.4.0", "bundled": true, "dev": true, - "optional": true, "requires": { "wrappy": "1" } @@ -2127,8 +2113,7 @@ "safe-buffer": { "version": "5.1.2", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "safer-buffer": { "version": "2.1.2", @@ -2164,7 +2149,6 @@ "version": "1.0.2", "bundled": true, "dev": true, - "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -2184,7 +2168,6 @@ "version": "3.0.1", "bundled": true, "dev": true, - "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -2228,14 +2211,12 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "yallist": { "version": "3.0.3", "bundled": true, - "dev": true, - "optional": true + "dev": true } } }, diff --git a/src/installer.ts b/src/installer.ts index f49c1c95..ab4f466b 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -271,7 +271,7 @@ function normalizeVersion(version: string): string { if (version.indexOf('.') == -1) { version = version.slice(0, version.length - 3) + '.0.0-ea'; } - // match anything in -ea.X (semver won't do .x matching on pre-release versions) + // match anything in -ea.X (semver won't do .x matching on pre-release versions) if (version[0] >= '0' && version[0] <= '9') { version = '>=' + version; } @@ -281,6 +281,6 @@ function normalizeVersion(version: string): string { version = version + '.x'; } } - + return version; }