From c9ae724dfdebd792de28bd1900c7fd54c127cd05 Mon Sep 17 00:00:00 2001 From: Volodymyr Zotov Date: Fri, 8 Aug 2025 19:31:32 -0500 Subject: [PATCH] Use latest commit hash for op-cli-installer package --- dist/index.js | 17 +++++++++-------- package-lock.json | 6 +++--- package.json | 2 +- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/dist/index.js b/dist/index.js index cc21bc5..74ca457 100644 --- a/dist/index.js +++ b/dist/index.js @@ -34447,6 +34447,8 @@ exports.cliUrlBuilder = { win32: (version, arch) => `https://cache.agilebits.com/dist/1P/op2/pkg/${version}/op_windows_${arch}_${version}.zip`, }; class CliInstaller { + version; + arch; constructor(version) { this.version = version; this.arch = this.getArch(); @@ -34523,9 +34525,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.LinuxInstaller = void 0; const cli_installer_1 = __nccwpck_require__(8733); class LinuxInstaller extends cli_installer_1.CliInstaller { + platform = "linux"; // Node.js platform identifier for Linux constructor(version) { super(version); - this.platform = "linux"; // Node.js platform identifier for Linux } async installCli() { const urlBuilder = cli_installer_1.cliUrlBuilder[this.platform]; @@ -34585,9 +34587,9 @@ const tc = __importStar(__nccwpck_require__(3472)); const cli_installer_1 = __nccwpck_require__(8733); const execAsync = (0, util_1.promisify)(child_process_1.exec); class MacOsInstaller extends cli_installer_1.CliInstaller { + platform = "darwin"; // Node.js platform identifier for macOS constructor(version) { super(version); - this.platform = "darwin"; // Node.js platform identifier for macOS } async installCli() { const urlBuilder = cli_installer_1.cliUrlBuilder[this.platform]; @@ -34623,9 +34625,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.WindowsInstaller = void 0; const cli_installer_1 = __nccwpck_require__(8733); class WindowsInstaller extends cli_installer_1.CliInstaller { + platform = "win32"; // Node.js platform identifier for Windows constructor(version) { super(version); - this.platform = "win32"; // Node.js platform identifier for Windows } async installCli() { const urlBuilder = cli_installer_1.cliUrlBuilder[this.platform]; @@ -34713,13 +34715,11 @@ __webpack_unused_export__ = ({ enumerable: true, get: function () { return versi Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ReleaseChannel = void 0; -/* eslint-disable @typescript-eslint/naming-convention */ var ReleaseChannel; (function (ReleaseChannel) { - ReleaseChannel["Stable"] = "latest"; - ReleaseChannel["Beta"] = "latest-beta"; + ReleaseChannel["latest"] = "latest"; + ReleaseChannel["latestBeta"] = "latest-beta"; })(ReleaseChannel || (exports.ReleaseChannel = ReleaseChannel = {})); -/* eslint-enable @typescript-eslint/naming-convention */ /***/ }), @@ -34772,7 +34772,7 @@ const getLatestVersion = async (channel) => { const json = (await res.json()); const latestStable = json?.CLI2?.release?.version; const latestBeta = json?.CLI2?.beta?.version; - const version = channel === constants_1.ReleaseChannel.Beta ? latestBeta : latestStable; + const version = channel === constants_1.ReleaseChannel.latestBeta ? latestBeta : latestStable; if (!version) { core.error(`No ${channel} versions found`); throw new Error(`No ${channel} versions found`); @@ -34875,6 +34875,7 @@ const constants_1 = __nccwpck_require__(4823); const helper_1 = __nccwpck_require__(1592); const validate_1 = __nccwpck_require__(2946); class VersionResolver { + version; constructor(version) { this.validate(version); this.version = version; diff --git a/package-lock.json b/package-lock.json index 159ca47..54e9d59 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@1password/op-js": "^0.1.11", "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", - "op-cli-installer": "github:1Password/op-cli-installer#8ea4bf402c6385a90f6d2d98efe31ac845633412" + "op-cli-installer": "github:1Password/op-cli-installer#f3ef8d8e0651def3e5fe6234043f09b3298d2148" }, "devDependencies": { "@1password/eslint-config": "^4.3.1", @@ -6388,8 +6388,8 @@ }, "node_modules/op-cli-installer": { "version": "1.0.0", - "resolved": "git+ssh://git@github.com/1Password/op-cli-installer.git#8ea4bf402c6385a90f6d2d98efe31ac845633412", - "integrity": "sha512-HBk4wp0rOwiz4xkLTxkcYGkTZuOE+ScgIh2aSaUI35Xd692V8QbPRt2L75ZB2XzfHs2eW6j/80qDJhT9A5J92w==", + "resolved": "git+ssh://git@github.com/1Password/op-cli-installer.git#f3ef8d8e0651def3e5fe6234043f09b3298d2148", + "integrity": "sha512-k8mp0gMwYuz8uDdpUw2vQPdcRuQBUiWAAK8pJ2q90uekdYcSABVaKP6qQwrtxDcN+J1tjH32+l6+a5kX8eM/rw==", "license": "MIT", "dependencies": { "@actions/core": "^1.11.1", diff --git a/package.json b/package.json index 27d30b2..e757bae 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "@1password/op-js": "^0.1.11", "@actions/core": "^1.10.1", "@actions/exec": "^1.1.1", - "op-cli-installer": "github:1Password/op-cli-installer#8ea4bf402c6385a90f6d2d98efe31ac845633412" + "op-cli-installer": "github:1Password/op-cli-installer#f3ef8d8e0651def3e5fe6234043f09b3298d2148" }, "devDependencies": { "@1password/eslint-config": "^4.3.1",