-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
655 additions
and
631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
nodejs 16.20.0 | ||
lefthook 1.4.1 | ||
pnpm 8.6.0 | ||
nodejs 20.6.1 | ||
lefthook 1.4.11 | ||
pnpm 8.7.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: asdf install | |
description: Install your versioned tools with asdf | ||
author: Victor Borja <[email protected]> | ||
runs: | ||
using: node16 | ||
using: node20 | ||
main: main.js | ||
inputs: | ||
tool_versions: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge | |
)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/utils.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/utils.js | ||
var require_utils = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/utils.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/utils.js"(exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toCommandProperties = exports.toCommandValue = void 0; | ||
|
@@ -65,9 +65,9 @@ var require_utils = __commonJS({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/command.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/command.js | ||
var require_command = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/command.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/command.js"(exports) { | ||
"use strict"; | ||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { | ||
if (k2 === void 0) | ||
|
@@ -485,9 +485,9 @@ var init_esm_node = __esm({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/file-command.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/file-command.js | ||
var require_file_command = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/file-command.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/file-command.js"(exports) { | ||
"use strict"; | ||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { | ||
if (k2 === void 0) | ||
|
@@ -551,9 +551,9 @@ var require_file_command = __commonJS({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/http-client/lib/proxy.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/http-client/lib/proxy.js | ||
var require_proxy = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/http-client/lib/proxy.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/http-client/lib/proxy.js"(exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.checkBypass = exports.getProxyUrl = void 0; | ||
|
@@ -570,7 +570,12 @@ var require_proxy = __commonJS({ | |
} | ||
})(); | ||
if (proxyVar) { | ||
return new URL(proxyVar); | ||
try { | ||
return new URL(proxyVar); | ||
} catch (_a) { | ||
if (!proxyVar.startsWith("http://") && !proxyVar.startsWith("https://")) | ||
return new URL(`http://${proxyVar}`); | ||
} | ||
} else { | ||
return void 0; | ||
} | ||
|
@@ -852,9 +857,9 @@ var require_tunnel2 = __commonJS({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/http-client/lib/index.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/http-client/lib/index.js | ||
var require_lib = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/http-client/lib/index.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/http-client/lib/index.js"(exports) { | ||
"use strict"; | ||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { | ||
if (k2 === void 0) | ||
|
@@ -1002,6 +1007,19 @@ var require_lib = __commonJS({ | |
})); | ||
}); | ||
} | ||
readBodyBuffer() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { | ||
const chunks = []; | ||
this.message.on("data", (chunk) => { | ||
chunks.push(chunk); | ||
}); | ||
this.message.on("end", () => { | ||
resolve(Buffer.concat(chunks)); | ||
}); | ||
})); | ||
}); | ||
} | ||
}; | ||
exports.HttpClientResponse = HttpClientResponse; | ||
function isHttps(requestUrl) { | ||
|
@@ -1432,9 +1450,9 @@ var require_lib = __commonJS({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/http-client/lib/auth.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/http-client/lib/auth.js | ||
var require_auth = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/http-client/lib/auth.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/http-client/lib/auth.js"(exports) { | ||
"use strict"; | ||
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { | ||
function adopt(value) { | ||
|
@@ -1536,9 +1554,9 @@ var require_auth = __commonJS({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/oidc-utils.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/oidc-utils.js | ||
var require_oidc_utils = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/oidc-utils.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/oidc-utils.js"(exports) { | ||
"use strict"; | ||
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { | ||
function adopt(value) { | ||
|
@@ -1603,7 +1621,7 @@ var require_oidc_utils = __commonJS({ | |
Error Code : ${error.statusCode} | ||
Error Message: ${error.result.message}`); | ||
Error Message: ${error.message}`); | ||
}); | ||
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; | ||
if (!id_token) { | ||
|
@@ -1634,9 +1652,9 @@ var require_oidc_utils = __commonJS({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/summary.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/summary.js | ||
var require_summary = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/summary.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/summary.js"(exports) { | ||
"use strict"; | ||
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { | ||
function adopt(value) { | ||
|
@@ -1928,9 +1946,9 @@ var require_summary = __commonJS({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/path-utils.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/path-utils.js | ||
var require_path_utils = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/path-utils.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/path-utils.js"(exports) { | ||
"use strict"; | ||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { | ||
if (k2 === void 0) | ||
|
@@ -1978,9 +1996,9 @@ var require_path_utils = __commonJS({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/core.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/core.js | ||
var require_core = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/core.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/core.js"(exports) { | ||
"use strict"; | ||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { | ||
if (k2 === void 0) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Test plugin | |
description: Test your asdf plugin | ||
author: Victor Borja <[email protected]> | ||
runs: | ||
using: node16 | ||
using: node20 | ||
main: main.js | ||
inputs: | ||
command: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge | |
)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/utils.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/utils.js | ||
var require_utils = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/utils.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/utils.js"(exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toCommandProperties = exports.toCommandValue = void 0; | ||
|
@@ -65,9 +65,9 @@ var require_utils = __commonJS({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/command.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/command.js | ||
var require_command = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/command.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/command.js"(exports) { | ||
"use strict"; | ||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { | ||
if (k2 === void 0) | ||
|
@@ -485,9 +485,9 @@ var init_esm_node = __esm({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/file-command.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/file-command.js | ||
var require_file_command = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/file-command.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/file-command.js"(exports) { | ||
"use strict"; | ||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { | ||
if (k2 === void 0) | ||
|
@@ -551,9 +551,9 @@ var require_file_command = __commonJS({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/http-client/lib/proxy.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/http-client/lib/proxy.js | ||
var require_proxy = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/http-client/lib/proxy.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/http-client/lib/proxy.js"(exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.checkBypass = exports.getProxyUrl = void 0; | ||
|
@@ -570,7 +570,12 @@ var require_proxy = __commonJS({ | |
} | ||
})(); | ||
if (proxyVar) { | ||
return new URL(proxyVar); | ||
try { | ||
return new URL(proxyVar); | ||
} catch (_a) { | ||
if (!proxyVar.startsWith("http://") && !proxyVar.startsWith("https://")) | ||
return new URL(`http://${proxyVar}`); | ||
} | ||
} else { | ||
return void 0; | ||
} | ||
|
@@ -852,9 +857,9 @@ var require_tunnel2 = __commonJS({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/http-client/lib/index.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/http-client/lib/index.js | ||
var require_lib = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/http-client/lib/index.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/http-client/lib/index.js"(exports) { | ||
"use strict"; | ||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { | ||
if (k2 === void 0) | ||
|
@@ -1002,6 +1007,19 @@ var require_lib = __commonJS({ | |
})); | ||
}); | ||
} | ||
readBodyBuffer() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { | ||
const chunks = []; | ||
this.message.on("data", (chunk) => { | ||
chunks.push(chunk); | ||
}); | ||
this.message.on("end", () => { | ||
resolve(Buffer.concat(chunks)); | ||
}); | ||
})); | ||
}); | ||
} | ||
}; | ||
exports.HttpClientResponse = HttpClientResponse; | ||
function isHttps(requestUrl) { | ||
|
@@ -1432,9 +1450,9 @@ var require_lib = __commonJS({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/http-client/lib/auth.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/http-client/lib/auth.js | ||
var require_auth = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/http-client/lib/auth.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/http-client/lib/auth.js"(exports) { | ||
"use strict"; | ||
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { | ||
function adopt(value) { | ||
|
@@ -1536,9 +1554,9 @@ var require_auth = __commonJS({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/oidc-utils.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/oidc-utils.js | ||
var require_oidc_utils = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/oidc-utils.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/oidc-utils.js"(exports) { | ||
"use strict"; | ||
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { | ||
function adopt(value) { | ||
|
@@ -1603,7 +1621,7 @@ var require_oidc_utils = __commonJS({ | |
Error Code : ${error.statusCode} | ||
Error Message: ${error.result.message}`); | ||
Error Message: ${error.message}`); | ||
}); | ||
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; | ||
if (!id_token) { | ||
|
@@ -1634,9 +1652,9 @@ var require_oidc_utils = __commonJS({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/summary.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/summary.js | ||
var require_summary = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/summary.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/summary.js"(exports) { | ||
"use strict"; | ||
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) { | ||
function adopt(value) { | ||
|
@@ -1928,9 +1946,9 @@ var require_summary = __commonJS({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/path-utils.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/path-utils.js | ||
var require_path_utils = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/path-utils.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/path-utils.js"(exports) { | ||
"use strict"; | ||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { | ||
if (k2 === void 0) | ||
|
@@ -1978,9 +1996,9 @@ var require_path_utils = __commonJS({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/core.js | ||
// node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/core.js | ||
var require_core = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].0/node_modules/@actions/core/lib/core.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].1/node_modules/@actions/core/lib/core.js"(exports) { | ||
"use strict"; | ||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) { | ||
if (k2 === void 0) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Plugins install | |
description: Install the plugins listed on your .tool-versions file. | ||
author: Victor Borja <[email protected]> | ||
runs: | ||
using: node16 | ||
using: node20 | ||
main: main.js | ||
inputs: | ||
asdf_branch: | ||
|
Oops, something went wrong.