From 573b9bf76dde6adba488845b7b7d28ab76fee078 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 17 Aug 2024 00:11:51 +0000 Subject: [PATCH 1/4] chore(deps): update dependency @octokit/rest to v21.0.2 (#159) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- src/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.ts b/src/github.ts index db9f657..a66691c 100644 --- a/src/github.ts +++ b/src/github.ts @@ -1,6 +1,6 @@ // @octokit/rest@20 dropped support for node16. However, node16 bundled in actions/runner and still supported. // So, we use @octokit/rest@19. -import { Octokit, RestEndpointMethodTypes } from "npm:@octokit/rest@21.0.1"; +import { Octokit, RestEndpointMethodTypes } from "npm:@octokit/rest@21.0.2"; import process from "node:process"; export type Workflow = From eeabad530e1c2419d9ed5c026b56a8c6e7eda09a Mon Sep 17 00:00:00 2001 From: github-actions Date: Sat, 17 Aug 2024 00:12:13 +0000 Subject: [PATCH 2/4] deno task bundle --- dist/post.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/dist/post.js b/dist/post.js index 2bb9778..f466511 100644 --- a/dist/post.js +++ b/dist/post.js @@ -560,10 +560,10 @@ var require_proxy = __commonJS({ })(); if (proxyVar) { try { - return new URL(proxyVar); + return new DecodedURL(proxyVar); } catch (_a) { if (!proxyVar.startsWith("http://") && !proxyVar.startsWith("https://")) - return new URL(`http://${proxyVar}`); + return new DecodedURL(`http://${proxyVar}`); } } else { return void 0; @@ -606,6 +606,19 @@ var require_proxy = __commonJS({ const hostLower = host.toLowerCase(); return hostLower === "localhost" || hostLower.startsWith("127.") || hostLower.startsWith("[::1]") || hostLower.startsWith("[0:0:0:0:0:0:0:1]"); } + var DecodedURL = class extends URL { + constructor(url, base) { + super(url, base); + this._decodedUsername = decodeURIComponent(super.username); + this._decodedPassword = decodeURIComponent(super.password); + } + get username() { + return this._decodedUsername; + } + get password() { + return this._decodedPassword; + } + }; } }); @@ -27870,7 +27883,7 @@ function legacyRestEndpointMethods(octokit) { legacyRestEndpointMethods.VERSION = VERSION7; // npm/node_modules/@octokit/rest/dist-src/version.js -var VERSION8 = "21.0.1"; +var VERSION8 = "21.0.2"; // npm/node_modules/@octokit/rest/dist-src/index.js var Octokit2 = Octokit.plugin(requestLog, legacyRestEndpointMethods, paginateRest).defaults( From 19d03dd3236c358b1f35a98e9496dcf2bbb9e8cb Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 17 Aug 2024 06:24:35 +0000 Subject: [PATCH 3/4] chore(deps): update dependency esbuild to v0.23.1 (#160) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- scripts/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.ts b/scripts/build.ts index 47e19f0..118ee08 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -1,5 +1,5 @@ import { build, emptyDir } from "https://deno.land/x/dnt@0.40.0/mod.ts"; -import * as esbuild from "npm:esbuild@0.23.0"; +import * as esbuild from "npm:esbuild@0.23.1"; console.debug("Start dnt ..."); From b674b8e66b417a7acfc29390a29b5c2e023178c4 Mon Sep 17 00:00:00 2001 From: github-actions Date: Sat, 17 Aug 2024 06:25:04 +0000 Subject: [PATCH 4/4] deno task bundle --- dist/post.js | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/dist/post.js b/dist/post.js index f466511..f14a8de 100644 --- a/dist/post.js +++ b/dist/post.js @@ -2251,6 +2251,7 @@ var require_decodeText = __commonJS({ return decoders.utf8; case "latin1": case "ascii": + // TODO: Make these a separate, strict decoder? case "us-ascii": case "iso-8859-1": case "iso8859-1": @@ -2950,6 +2951,7 @@ var require_basename = __commonJS({ for (var i = path.length - 1; i >= 0; --i) { switch (path.charCodeAt(i)) { case 47: + // '/' case 92: path = path.slice(i + 1); return path === ".." || path === "." ? "" : path; @@ -4184,7 +4186,21 @@ var require_util2 = __commonJS({ return referrerOrigin; } case "strict-origin": + // eslint-disable-line + /** + * 1. If referrerURL is a potentially trustworthy URL and + * request’s current URL is not a potentially trustworthy URL, + * then return no referrer. + * 2. Return referrerOrigin + */ case "no-referrer-when-downgrade": + // eslint-disable-line + /** + * 1. If referrerURL is a potentially trustworthy URL and + * request’s current URL is not a potentially trustworthy URL, + * then return no referrer. + * 2. Return referrerOrigin + */ default: return isNonPotentiallyTrustWorthy ? "no-referrer" : referrerOrigin; } @@ -23867,12 +23883,15 @@ var formatters = { G: function(date, token, localize2) { const era = date.getFullYear() > 0 ? 1 : 0; switch (token) { + // AD, BC case "G": case "GG": case "GGG": return localize2.era(era, { width: "abbreviated" }); + // A, B case "GGGGG": return localize2.era(era, { width: "narrow" }); + // Anno Domini, Before Christ case "GGGG": default: return localize2.era(era, { width: "wide" }); @@ -23922,22 +23941,28 @@ var formatters = { Q: function(date, token, localize2) { const quarter = Math.ceil((date.getMonth() + 1) / 3); switch (token) { + // 1, 2, 3, 4 case "Q": return String(quarter); + // 01, 02, 03, 04 case "QQ": return addLeadingZeros(quarter, 2); + // 1st, 2nd, 3rd, 4th case "Qo": return localize2.ordinalNumber(quarter, { unit: "quarter" }); + // Q1, Q2, Q3, Q4 case "QQQ": return localize2.quarter(quarter, { width: "abbreviated", context: "formatting" }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) case "QQQQQ": return localize2.quarter(quarter, { width: "narrow", context: "formatting" }); + // 1st quarter, 2nd quarter, ... case "QQQQ": default: return localize2.quarter(quarter, { @@ -23950,22 +23975,28 @@ var formatters = { q: function(date, token, localize2) { const quarter = Math.ceil((date.getMonth() + 1) / 3); switch (token) { + // 1, 2, 3, 4 case "q": return String(quarter); + // 01, 02, 03, 04 case "qq": return addLeadingZeros(quarter, 2); + // 1st, 2nd, 3rd, 4th case "qo": return localize2.ordinalNumber(quarter, { unit: "quarter" }); + // Q1, Q2, Q3, Q4 case "qqq": return localize2.quarter(quarter, { width: "abbreviated", context: "standalone" }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) case "qqqqq": return localize2.quarter(quarter, { width: "narrow", context: "standalone" }); + // 1st quarter, 2nd quarter, ... case "qqqq": default: return localize2.quarter(quarter, { @@ -23981,18 +24012,22 @@ var formatters = { case "M": case "MM": return lightFormatters.M(date, token); + // 1st, 2nd, ..., 12th case "Mo": return localize2.ordinalNumber(month + 1, { unit: "month" }); + // Jan, Feb, ..., Dec case "MMM": return localize2.month(month, { width: "abbreviated", context: "formatting" }); + // J, F, ..., D case "MMMMM": return localize2.month(month, { width: "narrow", context: "formatting" }); + // January, February, ..., December case "MMMM": default: return localize2.month(month, { width: "wide", context: "formatting" }); @@ -24002,22 +24037,28 @@ var formatters = { L: function(date, token, localize2) { const month = date.getMonth(); switch (token) { + // 1, 2, ..., 12 case "L": return String(month + 1); + // 01, 02, ..., 12 case "LL": return addLeadingZeros(month + 1, 2); + // 1st, 2nd, ..., 12th case "Lo": return localize2.ordinalNumber(month + 1, { unit: "month" }); + // Jan, Feb, ..., Dec case "LLL": return localize2.month(month, { width: "abbreviated", context: "standalone" }); + // J, F, ..., D case "LLLLL": return localize2.month(month, { width: "narrow", context: "standalone" }); + // January, February, ..., December case "LLLL": default: return localize2.month(month, { width: "wide", context: "standalone" }); @@ -24058,6 +24099,7 @@ var formatters = { E: function(date, token, localize2) { const dayOfWeek = date.getDay(); switch (token) { + // Tue case "E": case "EE": case "EEE": @@ -24065,16 +24107,19 @@ var formatters = { width: "abbreviated", context: "formatting" }); + // T case "EEEEE": return localize2.day(dayOfWeek, { width: "narrow", context: "formatting" }); + // Tu case "EEEEEE": return localize2.day(dayOfWeek, { width: "short", context: "formatting" }); + // Tuesday case "EEEE": default: return localize2.day(dayOfWeek, { @@ -24088,10 +24133,13 @@ var formatters = { const dayOfWeek = date.getDay(); const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; switch (token) { + // Numerical value (Nth day of week with current locale or weekStartsOn) case "e": return String(localDayOfWeek); + // Padded numerical value case "ee": return addLeadingZeros(localDayOfWeek, 2); + // 1st, 2nd, ..., 7th case "eo": return localize2.ordinalNumber(localDayOfWeek, { unit: "day" }); case "eee": @@ -24099,16 +24147,19 @@ var formatters = { width: "abbreviated", context: "formatting" }); + // T case "eeeee": return localize2.day(dayOfWeek, { width: "narrow", context: "formatting" }); + // Tu case "eeeeee": return localize2.day(dayOfWeek, { width: "short", context: "formatting" }); + // Tuesday case "eeee": default: return localize2.day(dayOfWeek, { @@ -24122,10 +24173,13 @@ var formatters = { const dayOfWeek = date.getDay(); const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; switch (token) { + // Numerical value (same as in `e`) case "c": return String(localDayOfWeek); + // Padded numerical value case "cc": return addLeadingZeros(localDayOfWeek, token.length); + // 1st, 2nd, ..., 7th case "co": return localize2.ordinalNumber(localDayOfWeek, { unit: "day" }); case "ccc": @@ -24133,16 +24187,19 @@ var formatters = { width: "abbreviated", context: "standalone" }); + // T case "ccccc": return localize2.day(dayOfWeek, { width: "narrow", context: "standalone" }); + // Tu case "cccccc": return localize2.day(dayOfWeek, { width: "short", context: "standalone" }); + // Tuesday case "cccc": default: return localize2.day(dayOfWeek, { @@ -24156,27 +24213,34 @@ var formatters = { const dayOfWeek = date.getDay(); const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek; switch (token) { + // 2 case "i": return String(isoDayOfWeek); + // 02 case "ii": return addLeadingZeros(isoDayOfWeek, token.length); + // 2nd case "io": return localize2.ordinalNumber(isoDayOfWeek, { unit: "day" }); + // Tue case "iii": return localize2.day(dayOfWeek, { width: "abbreviated", context: "formatting" }); + // T case "iiiii": return localize2.day(dayOfWeek, { width: "narrow", context: "formatting" }); + // Tu case "iiiiii": return localize2.day(dayOfWeek, { width: "short", context: "formatting" }); + // Tuesday case "iiii": default: return localize2.day(dayOfWeek, { @@ -24342,13 +24406,21 @@ var formatters = { return "Z"; } switch (token) { + // Hours and optional minutes case "X": return formatTimezoneWithOptionalMinutes(timezoneOffset); + // Hours, minutes and optional seconds without `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `XX` case "XXXX": case "XX": return formatTimezone(timezoneOffset); + // Hours, minutes and optional seconds with `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `XXX` case "XXXXX": case "XXX": + // Hours and minutes with `:` delimiter default: return formatTimezone(timezoneOffset, ":"); } @@ -24357,13 +24429,21 @@ var formatters = { x: function(date, token, _localize) { const timezoneOffset = date.getTimezoneOffset(); switch (token) { + // Hours and optional minutes case "x": return formatTimezoneWithOptionalMinutes(timezoneOffset); + // Hours, minutes and optional seconds without `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `xx` case "xxxx": case "xx": return formatTimezone(timezoneOffset); + // Hours, minutes and optional seconds with `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `xxx` case "xxxxx": case "xxx": + // Hours and minutes with `:` delimiter default: return formatTimezone(timezoneOffset, ":"); } @@ -24372,10 +24452,12 @@ var formatters = { O: function(date, token, _localize) { const timezoneOffset = date.getTimezoneOffset(); switch (token) { + // Short case "O": case "OO": case "OOO": return "GMT" + formatTimezoneShort(timezoneOffset, ":"); + // Long case "OOOO": default: return "GMT" + formatTimezone(timezoneOffset, ":"); @@ -24385,10 +24467,12 @@ var formatters = { z: function(date, token, _localize) { const timezoneOffset = date.getTimezoneOffset(); switch (token) { + // Short case "z": case "zz": case "zzz": return "GMT" + formatTimezoneShort(timezoneOffset, ":"); + // Long case "zzzz": default: return "GMT" + formatTimezone(timezoneOffset, ":");