Skip to content

Commit 8801a35

Browse files
committed
build: lock file maintenance
1 parent 271a6d3 commit 8801a35

File tree

15 files changed

+829
-1288
lines changed

15 files changed

+829
-1288
lines changed

.github/local-actions/branch-manager/main.js

Lines changed: 43 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -19734,6 +19734,17 @@ var require_semver = __commonJS({
1973419734
} while (++i);
1973519735
}
1973619736
inc(release, identifier, identifierBase) {
19737+
if (release.startsWith("pre")) {
19738+
if (!identifier && identifierBase === false) {
19739+
throw new Error("invalid increment argument: identifier is empty");
19740+
}
19741+
if (identifier) {
19742+
const match2 = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
19743+
if (!match2 || match2[1] !== identifier) {
19744+
throw new Error(`invalid identifier: ${identifier}`);
19745+
}
19746+
}
19747+
}
1973719748
switch (release) {
1973819749
case "premajor":
1973919750
this.prerelease.length = 0;
@@ -19759,6 +19770,12 @@ var require_semver = __commonJS({
1975919770
}
1976019771
this.inc("pre", identifier, identifierBase);
1976119772
break;
19773+
case "release":
19774+
if (this.prerelease.length === 0) {
19775+
throw new Error(`version ${this.raw} is not a prerelease`);
19776+
}
19777+
this.prerelease.length = 0;
19778+
break;
1976219779
case "major":
1976319780
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
1976419781
this.major++;
@@ -19782,9 +19799,6 @@ var require_semver = __commonJS({
1978219799
break;
1978319800
case "pre": {
1978419801
const base = Number(identifierBase) ? 1 : 0;
19785-
if (!identifier && identifierBase === false) {
19786-
throw new Error("invalid increment argument: identifier is empty");
19787-
}
1978819802
if (this.prerelease.length === 0) {
1978919803
this.prerelease = [base];
1979019804
} else {
@@ -19919,13 +19933,12 @@ var require_diff = __commonJS({
1991919933
if (!lowVersion.patch && !lowVersion.minor) {
1992019934
return "major";
1992119935
}
19922-
if (highVersion.patch) {
19936+
if (lowVersion.compareMain(highVersion) === 0) {
19937+
if (lowVersion.minor && !lowVersion.patch) {
19938+
return "minor";
19939+
}
1992319940
return "patch";
1992419941
}
19925-
if (highVersion.minor) {
19926-
return "minor";
19927-
}
19928-
return "major";
1992919942
}
1993019943
const prefix = highHasPre ? "pre" : "";
1993119944
if (v1.major !== v2.major) {
@@ -34207,15 +34220,15 @@ var require_jsonc_parser = __commonJS({
3420734220
throw earlyReturnException;
3420834221
}
3420934222
},
34210-
onSeparator: (sep2, offset, length) => {
34223+
onSeparator: (sep3, offset, length) => {
3421134224
if (position <= offset) {
3421234225
throw earlyReturnException;
3421334226
}
34214-
if (sep2 === ":" && previousNode && previousNode.type === "property") {
34227+
if (sep3 === ":" && previousNode && previousNode.type === "property") {
3421534228
previousNode.colonOffset = offset;
3421634229
isAtPropertyKey = false;
3421734230
previousNode = void 0;
34218-
} else if (sep2 === ",") {
34231+
} else if (sep3 === ",") {
3421934232
const last = segments[segments.length - 1];
3422034233
if (typeof last === "number") {
3422134234
segments[segments.length - 1] = last + 1;
@@ -34330,11 +34343,11 @@ var require_jsonc_parser = __commonJS({
3433034343
onValue({ type: getNodeType(value), offset, length, parent: currentParent, value });
3433134344
ensurePropertyComplete(offset + length);
3433234345
},
34333-
onSeparator: (sep2, offset, length) => {
34346+
onSeparator: (sep3, offset, length) => {
3433434347
if (currentParent.type === "property") {
34335-
if (sep2 === ":") {
34348+
if (sep3 === ":") {
3433634349
currentParent.colonOffset = offset;
34337-
} else if (sep2 === ",") {
34350+
} else if (sep3 === ",") {
3433834351
ensurePropertyComplete(offset);
3433934352
}
3434034353
}
@@ -55245,13 +55258,13 @@ var require_dist_node8 = __commonJS({
5524555258
createTokenAuth: () => createTokenAuth3
5524655259
});
5524755260
module.exports = __toCommonJS(dist_src_exports);
55248-
var REGEX_IS_INSTALLATION_LEGACY2 = /^v1\./;
55249-
var REGEX_IS_INSTALLATION2 = /^ghs_/;
55250-
var REGEX_IS_USER_TO_SERVER2 = /^ghu_/;
55261+
var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
55262+
var REGEX_IS_INSTALLATION = /^ghs_/;
55263+
var REGEX_IS_USER_TO_SERVER = /^ghu_/;
5525155264
async function auth6(token2) {
5525255265
const isApp = token2.split(/\./).length === 3;
55253-
const isInstallation = REGEX_IS_INSTALLATION_LEGACY2.test(token2) || REGEX_IS_INSTALLATION2.test(token2);
55254-
const isUserToServer = REGEX_IS_USER_TO_SERVER2.test(token2);
55266+
const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token2) || REGEX_IS_INSTALLATION.test(token2);
55267+
const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token2);
5525555268
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
5525655269
return {
5525755270
type: "token",
@@ -61959,7 +61972,7 @@ async function getResponseData(response) {
6195961972
return response.text().catch(() => "");
6196061973
}
6196161974
const mimetype = (0, import_fast_content_type_parse.safeParse)(contentType);
61962-
if (mimetype.type === "application/json") {
61975+
if (isJSONResponse(mimetype)) {
6196361976
let text = "";
6196461977
try {
6196561978
text = await response.text();
@@ -61973,6 +61986,9 @@ async function getResponseData(response) {
6197361986
return response.arrayBuffer().catch(() => new ArrayBuffer(0));
6197461987
}
6197561988
}
61989+
function isJSONResponse(mimetype) {
61990+
return mimetype.type === "application/json" || mimetype.type === "application/scim+json";
61991+
}
6197661992
function toErrorMessage(data) {
6197761993
if (typeof data === "string") {
6197861994
return data;
@@ -64747,13 +64763,14 @@ function Collection() {
6474764763
var before_after_hook_default = { Singular, Collection };
6474864764

6474964765
//
64750-
var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
64751-
var REGEX_IS_INSTALLATION = /^ghs_/;
64752-
var REGEX_IS_USER_TO_SERVER = /^ghu_/;
64766+
var b64url = "(?:[a-zA-Z0-9_-]+)";
64767+
var sep2 = "\\.";
64768+
var jwtRE = new RegExp(`^${b64url}${sep2}${b64url}${sep2}${b64url}$`);
64769+
var isJWT = jwtRE.test.bind(jwtRE);
6475364770
async function auth(token2) {
64754-
const isApp = token2.split(/\./).length === 3;
64755-
const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token2) || REGEX_IS_INSTALLATION.test(token2);
64756-
const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token2);
64771+
const isApp = isJWT(token2);
64772+
const isInstallation = token2.startsWith("v1.") || token2.startsWith("ghs_");
64773+
const isUserToServer = token2.startsWith("ghu_");
6475764774
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
6475864775
return {
6475964776
type: "token",

.github/local-actions/labels-sync/main.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39672,13 +39672,13 @@ var require_dist_node8 = __commonJS({
3967239672
createTokenAuth: () => createTokenAuth3
3967339673
});
3967439674
module.exports = __toCommonJS(dist_src_exports);
39675-
var REGEX_IS_INSTALLATION_LEGACY2 = /^v1\./;
39676-
var REGEX_IS_INSTALLATION2 = /^ghs_/;
39677-
var REGEX_IS_USER_TO_SERVER2 = /^ghu_/;
39675+
var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
39676+
var REGEX_IS_INSTALLATION = /^ghs_/;
39677+
var REGEX_IS_USER_TO_SERVER = /^ghu_/;
3967839678
async function auth6(token) {
3967939679
const isApp = token.split(/\./).length === 3;
39680-
const isInstallation = REGEX_IS_INSTALLATION_LEGACY2.test(token) || REGEX_IS_INSTALLATION2.test(token);
39681-
const isUserToServer = REGEX_IS_USER_TO_SERVER2.test(token);
39680+
const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
39681+
const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
3968239682
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
3968339683
return {
3968439684
type: "token",
@@ -43203,7 +43203,7 @@ async function getResponseData(response) {
4320343203
return response.text().catch(() => "");
4320443204
}
4320543205
const mimetype = (0, import_fast_content_type_parse.safeParse)(contentType);
43206-
if (mimetype.type === "application/json") {
43206+
if (isJSONResponse(mimetype)) {
4320743207
let text = "";
4320843208
try {
4320943209
text = await response.text();
@@ -43217,6 +43217,9 @@ async function getResponseData(response) {
4321743217
return response.arrayBuffer().catch(() => new ArrayBuffer(0));
4321843218
}
4321943219
}
43220+
function isJSONResponse(mimetype) {
43221+
return mimetype.type === "application/json" || mimetype.type === "application/scim+json";
43222+
}
4322043223
function toErrorMessage(data) {
4322143224
if (typeof data === "string") {
4322243225
return data;
@@ -43363,13 +43366,14 @@ function withCustomRequest(customRequest) {
4336343366
}
4336443367

4336543368
//
43366-
var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
43367-
var REGEX_IS_INSTALLATION = /^ghs_/;
43368-
var REGEX_IS_USER_TO_SERVER = /^ghu_/;
43369+
var b64url = "(?:[a-zA-Z0-9_-]+)";
43370+
var sep = "\\.";
43371+
var jwtRE = new RegExp(`^${b64url}${sep}${b64url}${sep}${b64url}$`);
43372+
var isJWT = jwtRE.test.bind(jwtRE);
4336943373
async function auth(token) {
43370-
const isApp = token.split(/\./).length === 3;
43371-
const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
43372-
const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
43374+
const isApp = isJWT(token);
43375+
const isInstallation = token.startsWith("v1.") || token.startsWith("ghs_");
43376+
const isUserToServer = token.startsWith("ghu_");
4337343377
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
4337443378
return {
4337543379
type: "token",

.github/local-actions/lock-closed/main.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39672,13 +39672,13 @@ var require_dist_node8 = __commonJS({
3967239672
createTokenAuth: () => createTokenAuth3
3967339673
});
3967439674
module.exports = __toCommonJS(dist_src_exports);
39675-
var REGEX_IS_INSTALLATION_LEGACY2 = /^v1\./;
39676-
var REGEX_IS_INSTALLATION2 = /^ghs_/;
39677-
var REGEX_IS_USER_TO_SERVER2 = /^ghu_/;
39675+
var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
39676+
var REGEX_IS_INSTALLATION = /^ghs_/;
39677+
var REGEX_IS_USER_TO_SERVER = /^ghu_/;
3967839678
async function auth6(token) {
3967939679
const isApp = token.split(/\./).length === 3;
39680-
const isInstallation = REGEX_IS_INSTALLATION_LEGACY2.test(token) || REGEX_IS_INSTALLATION2.test(token);
39681-
const isUserToServer = REGEX_IS_USER_TO_SERVER2.test(token);
39680+
const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
39681+
const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
3968239682
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
3968339683
return {
3968439684
type: "token",
@@ -43203,7 +43203,7 @@ async function getResponseData(response) {
4320343203
return response.text().catch(() => "");
4320443204
}
4320543205
const mimetype = (0, import_fast_content_type_parse.safeParse)(contentType);
43206-
if (mimetype.type === "application/json") {
43206+
if (isJSONResponse(mimetype)) {
4320743207
let text = "";
4320843208
try {
4320943209
text = await response.text();
@@ -43217,6 +43217,9 @@ async function getResponseData(response) {
4321743217
return response.arrayBuffer().catch(() => new ArrayBuffer(0));
4321843218
}
4321943219
}
43220+
function isJSONResponse(mimetype) {
43221+
return mimetype.type === "application/json" || mimetype.type === "application/scim+json";
43222+
}
4322043223
function toErrorMessage(data) {
4322143224
if (typeof data === "string") {
4322243225
return data;
@@ -43363,13 +43366,14 @@ function withCustomRequest(customRequest) {
4336343366
}
4336443367

4336543368
//
43366-
var REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
43367-
var REGEX_IS_INSTALLATION = /^ghs_/;
43368-
var REGEX_IS_USER_TO_SERVER = /^ghu_/;
43369+
var b64url = "(?:[a-zA-Z0-9_-]+)";
43370+
var sep = "\\.";
43371+
var jwtRE = new RegExp(`^${b64url}${sep}${b64url}${sep}${b64url}$`);
43372+
var isJWT = jwtRE.test.bind(jwtRE);
4336943373
async function auth(token) {
43370-
const isApp = token.split(/\./).length === 3;
43371-
const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
43372-
const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
43374+
const isApp = isJWT(token);
43375+
const isInstallation = token.startsWith("v1.") || token.startsWith("ghs_");
43376+
const isUserToServer = token.startsWith("ghu_");
4337343377
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
4337443378
return {
4337543379
type: "token",

0 commit comments

Comments
 (0)