Skip to content

Commit 3200fda

Browse files
Use latest commit has for op-cli-installer dependency
1 parent f8fe031 commit 3200fda

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

dist/index.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32645,6 +32645,8 @@ exports.cliUrlBuilder = {
3264532645
win32: (version, arch) => `https://cache.agilebits.com/dist/1P/op2/pkg/${version}/op_windows_${arch}_${version}.zip`,
3264632646
};
3264732647
class CliInstaller {
32648+
version;
32649+
arch;
3264832650
constructor(version) {
3264932651
this.version = version;
3265032652
this.arch = this.getArch();
@@ -32721,9 +32723,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
3272132723
exports.LinuxInstaller = void 0;
3272232724
const cli_installer_1 = __nccwpck_require__(8733);
3272332725
class LinuxInstaller extends cli_installer_1.CliInstaller {
32726+
platform = "linux"; // Node.js platform identifier for Linux
3272432727
constructor(version) {
3272532728
super(version);
32726-
this.platform = "linux"; // Node.js platform identifier for Linux
3272732729
}
3272832730
async installCli() {
3272932731
const urlBuilder = cli_installer_1.cliUrlBuilder[this.platform];
@@ -32783,9 +32785,9 @@ const tc = __importStar(__nccwpck_require__(3472));
3278332785
const cli_installer_1 = __nccwpck_require__(8733);
3278432786
const execAsync = (0, util_1.promisify)(child_process_1.exec);
3278532787
class MacOsInstaller extends cli_installer_1.CliInstaller {
32788+
platform = "darwin"; // Node.js platform identifier for macOS
3278632789
constructor(version) {
3278732790
super(version);
32788-
this.platform = "darwin"; // Node.js platform identifier for macOS
3278932791
}
3279032792
async installCli() {
3279132793
const urlBuilder = cli_installer_1.cliUrlBuilder[this.platform];
@@ -32821,9 +32823,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
3282132823
exports.WindowsInstaller = void 0;
3282232824
const cli_installer_1 = __nccwpck_require__(8733);
3282332825
class WindowsInstaller extends cli_installer_1.CliInstaller {
32826+
platform = "win32"; // Node.js platform identifier for Windows
3282432827
constructor(version) {
3282532828
super(version);
32826-
this.platform = "win32"; // Node.js platform identifier for Windows
3282732829
}
3282832830
async installCli() {
3282932831
const urlBuilder = cli_installer_1.cliUrlBuilder[this.platform];
@@ -32911,13 +32913,11 @@ __webpack_unused_export__ = ({ enumerable: true, get: function () { return versi
3291132913

3291232914
Object.defineProperty(exports, "__esModule", ({ value: true }));
3291332915
exports.ReleaseChannel = void 0;
32914-
/* eslint-disable @typescript-eslint/naming-convention */
3291532916
var ReleaseChannel;
3291632917
(function (ReleaseChannel) {
32917-
ReleaseChannel["Stable"] = "latest";
32918-
ReleaseChannel["Beta"] = "latest-beta";
32918+
ReleaseChannel["latest"] = "latest";
32919+
ReleaseChannel["latestBeta"] = "latest-beta";
3291932920
})(ReleaseChannel || (exports.ReleaseChannel = ReleaseChannel = {}));
32920-
/* eslint-enable @typescript-eslint/naming-convention */
3292132921

3292232922

3292332923
/***/ }),
@@ -32970,7 +32970,7 @@ const getLatestVersion = async (channel) => {
3297032970
const json = (await res.json());
3297132971
const latestStable = json?.CLI2?.release?.version;
3297232972
const latestBeta = json?.CLI2?.beta?.version;
32973-
const version = channel === constants_1.ReleaseChannel.Beta ? latestBeta : latestStable;
32973+
const version = channel === constants_1.ReleaseChannel.latestBeta ? latestBeta : latestStable;
3297432974
if (!version) {
3297532975
core.error(`No ${channel} versions found`);
3297632976
throw new Error(`No ${channel} versions found`);
@@ -33073,6 +33073,7 @@ const constants_1 = __nccwpck_require__(4823);
3307333073
const helper_1 = __nccwpck_require__(1592);
3307433074
const validate_1 = __nccwpck_require__(2946);
3307533075
class VersionResolver {
33076+
version;
3307633077
constructor(version) {
3307733078
this.validate(version);
3307833079
this.version = version;

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"homepage": "https://github.com/1Password/install-cli-action#readme",
3838
"dependencies": {
3939
"@actions/core": "^1.11.1",
40-
"op-cli-installer": "github:1Password/op-cli-installer#8ea4bf402c6385a90f6d2d98efe31ac845633412"
40+
"op-cli-installer": "github:1Password/op-cli-installer#f3ef8d8e0651def3e5fe6234043f09b3298d2148"
4141
},
4242
"devDependencies": {
4343
"@1password/eslint-config": "^8.1.0",

tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"compilerOptions": {
33
"allowJs": false,
4-
"allowUnreachableCode": false,
5-
"allowUnusedLabels": false,
64
"esModuleInterop": true,
75
"exactOptionalPropertyTypes": true,
86
"forceConsistentCasingInFileNames": true,

0 commit comments

Comments
 (0)