Skip to content

Commit 65b0ef0

Browse files
committed
chore: update dist/ with deno task build
1 parent 4c864fe commit 65b0ef0

File tree

4 files changed

+30
-75
lines changed

4 files changed

+30
-75
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { D as __toESM, E as __require, S as HttpCodes, T as __exportAll, b as HttpClient, c as isDebug, d as setOutput, f as setSecret, g as mkdirP, i as error, l as saveState, m as exec$1, o as getState, p as warning, r as debug, s as info, t as require_semver, v as which, w as __commonJSMin, x as HttpClientError, y as BearerCredentialHandler } from "./semver-DXB6lDr5.mjs";
1+
import { C as __commonJSMin, E as __toESM, T as __require, b as HttpClientError, c as isDebug, d as setOutput, f as setSecret, g as mkdirP, i as error, l as saveState, m as exec$1, o as getState, p as warning, r as debug, s as info, t as require_semver, v as which, w as __exportAll, x as HttpCodes, y as HttpClient } from "./semver-DV3jrf2T.mjs";
22
import process$1 from "node:process";
33
import * as os$2 from "os";
44
import * as crypto$1 from "crypto";
@@ -14,6 +14,7 @@ import buffer from "node:buffer";
1414
import util, { inspect } from "node:util";
1515
import zlib from "node:zlib";
1616
import { createHmac } from "node:crypto";
17+
import { BearerCredentialHandler } from "@actions/http-client/lib/auth";
1718
import fs from "node:fs";
1819
import os$1, { EOL as EOL$1 } from "node:os";
1920
import * as stream from "stream";

dist/main.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { C as require_undici, D as __toESM, _ as rmRF, a as getInput, b as HttpClient, c as isDebug, d as setOutput, g as mkdirP, h as cp, m as exec, n as addPath, p as warning, r as debug, s as info, t as require_semver, u as setFailed, v as which } from "./semver-DXB6lDr5.mjs";
1+
import { E as __toESM, S as require_undici, _ as rmRF, a as getInput, c as isDebug, d as setOutput, g as mkdirP, h as cp, m as exec, n as addPath, p as warning, r as debug, s as info, t as require_semver, u as setFailed, v as which, y as HttpClient } from "./semver-DV3jrf2T.mjs";
22
import process$1 from "node:process";
33
import * as os$3 from "os";
44
import * as crypto$1 from "crypto";
@@ -702,7 +702,7 @@ async function main() {
702702
setOutput("release-channel", version.kind);
703703
info("Installation complete.");
704704
if (isCachingEnabled()) {
705-
const { restoreCache } = await import("./cache-BKNjz_DU.mjs").then((n) => n.t);
705+
const { restoreCache } = await import("./cache-BduyH1TA.mjs").then((n) => n.t);
706706
await restoreCache(getInput("cache-hash"));
707707
}
708708
} catch (err) {

dist/post.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { u as setFailed } from "./semver-DXB6lDr5.mjs";
2-
import { n as saveCache } from "./cache-BKNjz_DU.mjs";
1+
import { u as setFailed } from "./semver-DV3jrf2T.mjs";
2+
import { n as saveCache } from "./cache-BduyH1TA.mjs";
33
import process from "node:process";
44

55
//#region src/post.ts
Lines changed: 24 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import * as http from "http";
99
import * as https from "https";
1010
import * as events from "events";
1111
import { ok } from "assert";
12+
import { BearerCredentialHandler } from "@actions/http-client/lib/auth";
1213
import * as child from "child_process";
1314
import { setTimeout as setTimeout$1 } from "timers";
1415

@@ -15743,7 +15744,7 @@ var require_undici = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1574315744
//#region node_modules/.deno/@actions+http-client@4.0.0/node_modules/@actions/http-client/lib/index.js
1574415745
var import_tunnel = /* @__PURE__ */ __toESM(require_tunnel(), 1);
1574515746
var import_undici = require_undici();
15746-
var __awaiter$9 = void 0 && (void 0).__awaiter || function(thisArg, _arguments, P, generator) {
15747+
var __awaiter$8 = void 0 && (void 0).__awaiter || function(thisArg, _arguments, P, generator) {
1574715748
function adopt(value) {
1574815749
return value instanceof P ? value : new P(function(resolve) {
1574915750
resolve(value);
@@ -15842,8 +15843,8 @@ var HttpClientResponse = class {
1584215843
this.message = message;
1584315844
}
1584415845
readBody() {
15845-
return __awaiter$9(this, void 0, void 0, function* () {
15846-
return new Promise((resolve) => __awaiter$9(this, void 0, void 0, function* () {
15846+
return __awaiter$8(this, void 0, void 0, function* () {
15847+
return new Promise((resolve) => __awaiter$8(this, void 0, void 0, function* () {
1584715848
let output = Buffer.alloc(0);
1584815849
this.message.on("data", (chunk) => {
1584915850
output = Buffer.concat([output, chunk]);
@@ -15855,8 +15856,8 @@ var HttpClientResponse = class {
1585515856
});
1585615857
}
1585715858
readBodyBuffer() {
15858-
return __awaiter$9(this, void 0, void 0, function* () {
15859-
return new Promise((resolve) => __awaiter$9(this, void 0, void 0, function* () {
15859+
return __awaiter$8(this, void 0, void 0, function* () {
15860+
return new Promise((resolve) => __awaiter$8(this, void 0, void 0, function* () {
1586015861
const chunks = [];
1586115862
this.message.on("data", (chunk) => {
1586215863
chunks.push(chunk);
@@ -15893,42 +15894,42 @@ var HttpClient = class {
1589315894
}
1589415895
}
1589515896
options(requestUrl, additionalHeaders) {
15896-
return __awaiter$9(this, void 0, void 0, function* () {
15897+
return __awaiter$8(this, void 0, void 0, function* () {
1589715898
return this.request("OPTIONS", requestUrl, null, additionalHeaders || {});
1589815899
});
1589915900
}
1590015901
get(requestUrl, additionalHeaders) {
15901-
return __awaiter$9(this, void 0, void 0, function* () {
15902+
return __awaiter$8(this, void 0, void 0, function* () {
1590215903
return this.request("GET", requestUrl, null, additionalHeaders || {});
1590315904
});
1590415905
}
1590515906
del(requestUrl, additionalHeaders) {
15906-
return __awaiter$9(this, void 0, void 0, function* () {
15907+
return __awaiter$8(this, void 0, void 0, function* () {
1590715908
return this.request("DELETE", requestUrl, null, additionalHeaders || {});
1590815909
});
1590915910
}
1591015911
post(requestUrl, data, additionalHeaders) {
15911-
return __awaiter$9(this, void 0, void 0, function* () {
15912+
return __awaiter$8(this, void 0, void 0, function* () {
1591215913
return this.request("POST", requestUrl, data, additionalHeaders || {});
1591315914
});
1591415915
}
1591515916
patch(requestUrl, data, additionalHeaders) {
15916-
return __awaiter$9(this, void 0, void 0, function* () {
15917+
return __awaiter$8(this, void 0, void 0, function* () {
1591715918
return this.request("PATCH", requestUrl, data, additionalHeaders || {});
1591815919
});
1591915920
}
1592015921
put(requestUrl, data, additionalHeaders) {
15921-
return __awaiter$9(this, void 0, void 0, function* () {
15922+
return __awaiter$8(this, void 0, void 0, function* () {
1592215923
return this.request("PUT", requestUrl, data, additionalHeaders || {});
1592315924
});
1592415925
}
1592515926
head(requestUrl, additionalHeaders) {
15926-
return __awaiter$9(this, void 0, void 0, function* () {
15927+
return __awaiter$8(this, void 0, void 0, function* () {
1592715928
return this.request("HEAD", requestUrl, null, additionalHeaders || {});
1592815929
});
1592915930
}
1593015931
sendStream(verb, requestUrl, stream, additionalHeaders) {
15931-
return __awaiter$9(this, void 0, void 0, function* () {
15932+
return __awaiter$8(this, void 0, void 0, function* () {
1593215933
return this.request(verb, requestUrl, stream, additionalHeaders);
1593315934
});
1593415935
}
@@ -15937,14 +15938,14 @@ var HttpClient = class {
1593715938
* Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
1593815939
*/
1593915940
getJson(requestUrl_1) {
15940-
return __awaiter$9(this, arguments, void 0, function* (requestUrl, additionalHeaders = {}) {
15941+
return __awaiter$8(this, arguments, void 0, function* (requestUrl, additionalHeaders = {}) {
1594115942
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
1594215943
const res = yield this.get(requestUrl, additionalHeaders);
1594315944
return this._processResponse(res, this.requestOptions);
1594415945
});
1594515946
}
1594615947
postJson(requestUrl_1, obj_1) {
15947-
return __awaiter$9(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) {
15948+
return __awaiter$8(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) {
1594815949
const data = JSON.stringify(obj, null, 2);
1594915950
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
1595015951
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultContentTypeHeader(additionalHeaders, MediaTypes.ApplicationJson);
@@ -15953,7 +15954,7 @@ var HttpClient = class {
1595315954
});
1595415955
}
1595515956
putJson(requestUrl_1, obj_1) {
15956-
return __awaiter$9(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) {
15957+
return __awaiter$8(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) {
1595715958
const data = JSON.stringify(obj, null, 2);
1595815959
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
1595915960
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultContentTypeHeader(additionalHeaders, MediaTypes.ApplicationJson);
@@ -15962,7 +15963,7 @@ var HttpClient = class {
1596215963
});
1596315964
}
1596415965
patchJson(requestUrl_1, obj_1) {
15965-
return __awaiter$9(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) {
15966+
return __awaiter$8(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) {
1596615967
const data = JSON.stringify(obj, null, 2);
1596715968
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
1596815969
additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultContentTypeHeader(additionalHeaders, MediaTypes.ApplicationJson);
@@ -15976,7 +15977,7 @@ var HttpClient = class {
1597615977
* Prefer get, del, post and patch
1597715978
*/
1597815979
request(verb, requestUrl, data, headers) {
15979-
return __awaiter$9(this, void 0, void 0, function* () {
15980+
return __awaiter$8(this, void 0, void 0, function* () {
1598015981
if (this._disposed) throw new Error("Client has already been disposed.");
1598115982
const parsedUrl = new URL(requestUrl);
1598215983
let info = this._prepareRequest(verb, parsedUrl, headers);
@@ -16031,7 +16032,7 @@ var HttpClient = class {
1603116032
* @param data
1603216033
*/
1603316034
requestRaw(info, data) {
16034-
return __awaiter$9(this, void 0, void 0, function* () {
16035+
return __awaiter$8(this, void 0, void 0, function* () {
1603516036
return new Promise((resolve, reject) => {
1603616037
function callbackForResult(err, res) {
1603716038
if (err) reject(err);
@@ -16215,15 +16216,15 @@ var HttpClient = class {
1621516216
return baseUserAgent;
1621616217
}
1621716218
_performExponentialBackoff(retryNumber) {
16218-
return __awaiter$9(this, void 0, void 0, function* () {
16219+
return __awaiter$8(this, void 0, void 0, function* () {
1621916220
retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
1622016221
const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
1622116222
return new Promise((resolve) => setTimeout(() => resolve(), ms));
1622216223
});
1622316224
}
1622416225
_processResponse(res, options) {
16225-
return __awaiter$9(this, void 0, void 0, function* () {
16226-
return new Promise((resolve, reject) => __awaiter$9(this, void 0, void 0, function* () {
16226+
return __awaiter$8(this, void 0, void 0, function* () {
16227+
return new Promise((resolve, reject) => __awaiter$8(this, void 0, void 0, function* () {
1622716228
const statusCode = res.message.statusCode || 0;
1622816229
const response = {
1622916230
statusCode,
@@ -16264,53 +16265,6 @@ var HttpClient = class {
1626416265
};
1626516266
const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => (c[k.toLowerCase()] = obj[k], c), {});
1626616267

16267-
//#endregion
16268-
//#region node_modules/.deno/@actions+http-client@4.0.0/node_modules/@actions/http-client/lib/auth.js
16269-
var __awaiter$8 = void 0 && (void 0).__awaiter || function(thisArg, _arguments, P, generator) {
16270-
function adopt(value) {
16271-
return value instanceof P ? value : new P(function(resolve) {
16272-
resolve(value);
16273-
});
16274-
}
16275-
return new (P || (P = Promise))(function(resolve, reject) {
16276-
function fulfilled(value) {
16277-
try {
16278-
step(generator.next(value));
16279-
} catch (e) {
16280-
reject(e);
16281-
}
16282-
}
16283-
function rejected(value) {
16284-
try {
16285-
step(generator["throw"](value));
16286-
} catch (e) {
16287-
reject(e);
16288-
}
16289-
}
16290-
function step(result) {
16291-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
16292-
}
16293-
step((generator = generator.apply(thisArg, _arguments || [])).next());
16294-
});
16295-
};
16296-
var BearerCredentialHandler = class {
16297-
constructor(token) {
16298-
this.token = token;
16299-
}
16300-
prepareRequest(options) {
16301-
if (!options.headers) throw Error("The request has no headers");
16302-
options.headers["Authorization"] = `Bearer ${this.token}`;
16303-
}
16304-
canHandleAuthentication() {
16305-
return false;
16306-
}
16307-
handleAuthentication() {
16308-
return __awaiter$8(this, void 0, void 0, function* () {
16309-
throw new Error("not implemented");
16310-
});
16311-
}
16312-
};
16313-
1631416268
//#endregion
1631516269
//#region node_modules/.deno/@actions+core@3.0.0/node_modules/@actions/core/lib/oidc-utils.js
1631616270
var __awaiter$7 = void 0 && (void 0).__awaiter || function(thisArg, _arguments, P, generator) {
@@ -18976,4 +18930,4 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1897618930
}));
1897718931

1897818932
//#endregion
18979-
export { require_undici as C, __toESM as D, __require as E, HttpCodes as S, __exportAll as T, rmRF as _, getInput as a, HttpClient as b, isDebug as c, setOutput as d, setSecret as f, mkdirP as g, cp as h, error as i, saveState as l, exec as m, addPath as n, getState as o, warning as p, debug as r, info as s, require_semver as t, setFailed as u, which as v, __commonJSMin as w, HttpClientError as x, BearerCredentialHandler as y };
18933+
export { __commonJSMin as C, __toESM as E, require_undici as S, __require as T, rmRF as _, getInput as a, HttpClientError as b, isDebug as c, setOutput as d, setSecret as f, mkdirP as g, cp as h, error as i, saveState as l, exec as m, addPath as n, getState as o, warning as p, debug as r, info as s, require_semver as t, setFailed as u, which as v, __exportAll as w, HttpCodes as x, HttpClient as y };

0 commit comments

Comments
 (0)