diff --git a/package-lock.json b/package-lock.json index b4423c31..60a1a521 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3830,9 +3830,9 @@ } }, "node_modules/azure-pipelines-task-lib": { - "version": "4.16.0", - "resolved": "https://registry.npmjs.org/azure-pipelines-task-lib/-/azure-pipelines-task-lib-4.16.0.tgz", - "integrity": "sha512-hjyDi5GI1cFmS2o6GzTFPqloeTZBeaTLOjPn/H3CVr0vV/MV+eYoWszVe9kn7XnRSiv22j3p4Rhw/Sy4v1okxA==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/azure-pipelines-task-lib/-/azure-pipelines-task-lib-4.17.0.tgz", + "integrity": "sha512-WSopDnRAQAnxqKf7SEVHQS88NjCUNDQAc3qE6xqQWEwo8UeaK3UISxHXrVlaW0frjrgMhs3m+RhZPDlyIGYmhA==", "dependencies": { "adm-zip": "^0.5.10", "minimatch": "3.0.5", @@ -10490,7 +10490,7 @@ "version": "1.0.0", "license": "Apache-2.0", "dependencies": { - "azure-pipelines-task-lib": "^4.16.0", + "azure-pipelines-task-lib": "^4.17.0", "azure-pipelines-tasks-utility-common": "^3.242.0", "azure-pipelines-tool-lib": "^2.0.7" }, diff --git a/scan/dist/index.js b/scan/dist/index.js index abe8d0bb..d9ae1703 100644 --- a/scan/dist/index.js +++ b/scan/dist/index.js @@ -2381,6 +2381,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": @@ -3084,6 +3085,7 @@ var require_basename = __commonJS({ for (var i = path2.length - 1; i >= 0; --i) { switch (path2.charCodeAt(i)) { case 47: + // '/' case 92: path2 = path2.slice(i + 1); return path2 === ".." || path2 === "." ? "" : path2; @@ -4347,7 +4349,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; } @@ -31512,6 +31528,7 @@ var require_inflate = __commonJS({ hold = 0; bits = 0; state.mode = TIME; + /* falls through */ case TIME: while (bits < 32) { if (have === 0) { @@ -31534,6 +31551,7 @@ var require_inflate = __commonJS({ hold = 0; bits = 0; state.mode = OS; + /* falls through */ case OS: while (bits < 16) { if (have === 0) { @@ -31555,6 +31573,7 @@ var require_inflate = __commonJS({ hold = 0; bits = 0; state.mode = EXLEN; + /* falls through */ case EXLEN: if (state.flags & 1024) { while (bits < 16) { @@ -31580,6 +31599,7 @@ var require_inflate = __commonJS({ state.head.extra = null; } state.mode = EXTRA; + /* falls through */ case EXTRA: if (state.flags & 1024) { copy = state.length; @@ -31616,6 +31636,7 @@ var require_inflate = __commonJS({ } state.length = 0; state.mode = NAME; + /* falls through */ case NAME: if (state.flags & 2048) { if (have === 0) { @@ -31641,6 +31662,7 @@ var require_inflate = __commonJS({ } state.length = 0; state.mode = COMMENT; + /* falls through */ case COMMENT: if (state.flags & 4096) { if (have === 0) { @@ -31665,6 +31687,7 @@ var require_inflate = __commonJS({ state.head.comment = null; } state.mode = HCRC; + /* falls through */ case HCRC: if (state.flags & 512) { while (bits < 16) { @@ -31703,6 +31726,7 @@ var require_inflate = __commonJS({ hold = 0; bits = 0; state.mode = DICT; + /* falls through */ case DICT: if (state.havedict === 0) { strm.next_out = put; @@ -31715,10 +31739,12 @@ var require_inflate = __commonJS({ } strm.adler = state.check = 1; state.mode = TYPE; + /* falls through */ case TYPE: if (flush === Z_BLOCK || flush === Z_TREES) { break inf_leave; } + /* falls through */ case TYPEDO: if (state.last) { hold >>>= bits & 7; @@ -31783,8 +31809,10 @@ var require_inflate = __commonJS({ if (flush === Z_TREES) { break inf_leave; } + /* falls through */ case COPY_: state.mode = COPY; + /* falls through */ case COPY: copy = state.length; if (copy) { @@ -31832,6 +31860,7 @@ var require_inflate = __commonJS({ } state.have = 0; state.mode = LENLENS; + /* falls through */ case LENLENS: while (state.have < state.ncode) { while (bits < 3) { @@ -31861,6 +31890,7 @@ var require_inflate = __commonJS({ } state.have = 0; state.mode = CODELENS; + /* falls through */ case CODELENS: while (state.have < state.nlen + state.ndist) { for (; ; ) { @@ -31978,8 +32008,10 @@ var require_inflate = __commonJS({ if (flush === Z_TREES) { break inf_leave; } + /* falls through */ case LEN_: state.mode = LEN; + /* falls through */ case LEN: if (have >= 6 && left >= 258) { strm.next_out = put; @@ -32061,6 +32093,7 @@ var require_inflate = __commonJS({ } state.extra = here_op & 15; state.mode = LENEXT; + /* falls through */ case LENEXT: if (state.extra) { n = state.extra; @@ -32079,6 +32112,7 @@ var require_inflate = __commonJS({ } state.was = state.length; state.mode = DIST; + /* falls through */ case DIST: for (; ; ) { here = state.distcode[hold & (1 << state.distbits) - 1]; @@ -32129,6 +32163,7 @@ var require_inflate = __commonJS({ state.offset = here_val; state.extra = here_op & 15; state.mode = DISTEXT; + /* falls through */ case DISTEXT: if (state.extra) { n = state.extra; @@ -32151,6 +32186,7 @@ var require_inflate = __commonJS({ break; } state.mode = MATCH; + /* falls through */ case MATCH: if (left === 0) { break inf_leave; @@ -32227,6 +32263,7 @@ var require_inflate = __commonJS({ bits = 0; } state.mode = LENGTH; + /* falls through */ case LENGTH: if (state.wrap && state.flags) { while (bits < 32) { @@ -32246,6 +32283,7 @@ var require_inflate = __commonJS({ bits = 0; } state.mode = DONE; + /* falls through */ case DONE: ret = Z_STREAM_END; break inf_leave; @@ -32255,6 +32293,7 @@ var require_inflate = __commonJS({ case MEM: return Z_MEM_ERROR; case SYNC: + /* falls through */ default: return Z_STREAM_ERROR; } @@ -35804,6 +35843,7 @@ var require_minimatch = __commonJS({ continue; } switch (c) { + /* istanbul ignore next */ case "/": { return false; } @@ -35811,6 +35851,8 @@ var require_minimatch = __commonJS({ clearStateChar(); escaping = true; continue; + // the various stateChar values + // for the "extglob" stuff. case "?": case "*": case "+": @@ -35871,6 +35913,7 @@ var require_minimatch = __commonJS({ clearStateChar(); re2 += "|"; continue; + // these are mostly the same in regexp and glob case "[": clearStateChar(); if (inClass) { @@ -37118,6 +37161,8 @@ var require_semver = __commonJS({ this.inc("patch", identifier); this.inc("pre", identifier); break; + // If the input is a non-prerelease version, this acts the same as + // prepatch. case "prerelease": if (this.prerelease.length === 0) { this.inc("patch", identifier); @@ -37145,6 +37190,8 @@ var require_semver = __commonJS({ } this.prerelease = []; break; + // This probably shouldn't be used publicly. + // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction. case "pre": if (this.prerelease.length === 0) { this.prerelease = [0]; @@ -37847,6 +37894,7 @@ var require_semver = __commonJS({ compver.prerelease.push(0); } compver.raw = compver.format(); + /* fallthrough */ case "": case ">=": if (!minver || gt(minver, compver)) { @@ -37856,6 +37904,7 @@ var require_semver = __commonJS({ case "<": case "<=": break; + /* istanbul ignore next */ default: throw new Error("Unexpected operation: " + comparator.operator); } @@ -83105,7 +83154,9 @@ ${key}:${decodeURIComponent(lowercaseQueries[key])}`; } return new AvroMapType(_AvroType.fromSchema(schema.values)); case AvroComplex.ARRAY: + // Unused today case AvroComplex.FIXED: + // Unused today default: throw new Error(`Unexpected Avro type ${type} in ${schema}`); } @@ -91613,6 +91664,8 @@ var require_semver2 = __commonJS({ this.inc("patch", identifier); this.inc("pre", identifier); break; + // If the input is a non-prerelease version, this acts the same as + // prepatch. case "prerelease": if (this.prerelease.length === 0) { this.inc("patch", identifier); @@ -91640,6 +91693,8 @@ var require_semver2 = __commonJS({ } this.prerelease = []; break; + // This probably shouldn't be used publicly. + // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction. case "pre": if (this.prerelease.length === 0) { this.prerelease = [0]; @@ -92342,6 +92397,7 @@ var require_semver2 = __commonJS({ compver.prerelease.push(0); } compver.raw = compver.format(); + /* fallthrough */ case "": case ">=": if (!minver || gt(minver, compver)) { @@ -92351,6 +92407,7 @@ var require_semver2 = __commonJS({ case "<": case "<=": break; + /* istanbul ignore next */ default: throw new Error("Unexpected operation: " + comparator.operator); } @@ -93427,11 +93484,13 @@ var require_base642 = __commonJS({ switch (base64Str[i]) { case "=": groupPos = 0; + // reset state when padding found case "\n": case "\r": case " ": case " ": continue; + // skip white-space, and padding default: throw Error(`invalid base64 string.`); } @@ -95122,6 +95181,8 @@ var require_reflection_json_reader = __commonJS({ let e; try { switch (type) { + // float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity". + // Either numbers or strings are accepted. Exponent notation is also accepted. case reflection_info_1.ScalarType.DOUBLE: case reflection_info_1.ScalarType.FLOAT: if (json === null) @@ -95155,6 +95216,7 @@ var require_reflection_json_reader = __commonJS({ if (type == reflection_info_1.ScalarType.FLOAT) assert_1.assertFloat32(float); return float; + // int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted. case reflection_info_1.ScalarType.INT32: case reflection_info_1.ScalarType.FIXED32: case reflection_info_1.ScalarType.SFIXED32: @@ -95180,6 +95242,7 @@ var require_reflection_json_reader = __commonJS({ else assert_1.assertInt32(int32); return int32; + // int64, fixed64, uint64: JSON value will be a decimal string. Either numbers or strings are accepted. case reflection_info_1.ScalarType.INT64: case reflection_info_1.ScalarType.SFIXED64: case reflection_info_1.ScalarType.SINT64: @@ -95195,12 +95258,14 @@ var require_reflection_json_reader = __commonJS({ if (typeof json != "number" && typeof json != "string") break; return reflection_long_convert_1.reflectionLongConvert(pb_long_1.PbULong.from(json), longType); + // bool: case reflection_info_1.ScalarType.BOOL: if (json === null) return false; if (typeof json !== "boolean") break; return json; + // string: case reflection_info_1.ScalarType.STRING: if (json === null) return ""; @@ -95215,6 +95280,8 @@ var require_reflection_json_reader = __commonJS({ break; } return json; + // bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings. + // Either standard or URL-safe base64 encoding with/without paddings are accepted. case reflection_info_1.ScalarType.BYTES: if (json === null || json === "") return new Uint8Array(0); @@ -95383,6 +95450,7 @@ var require_reflection_json_writer = __commonJS({ } const ed = emitDefaultValues || optional; switch (type) { + // int32, fixed32, uint32: JSON value will be a decimal number. Either numbers or strings are accepted. case reflection_info_1.ScalarType.INT32: case reflection_info_1.ScalarType.SFIXED32: case reflection_info_1.ScalarType.SINT32: @@ -95396,6 +95464,8 @@ var require_reflection_json_writer = __commonJS({ return ed ? 0 : void 0; assert_1.assertUInt32(value); return value; + // float, double: JSON value will be a number or one of the special string values "NaN", "Infinity", and "-Infinity". + // Either numbers or strings are accepted. Exponent notation is also accepted. case reflection_info_1.ScalarType.FLOAT: assert_1.assertFloat32(value); case reflection_info_1.ScalarType.DOUBLE: @@ -95409,16 +95479,19 @@ var require_reflection_json_writer = __commonJS({ if (value === Number.NEGATIVE_INFINITY) return "-Infinity"; return value; + // string: case reflection_info_1.ScalarType.STRING: if (value === "") return ed ? "" : void 0; assert_1.assert(typeof value == "string"); return value; + // bool: case reflection_info_1.ScalarType.BOOL: if (value === false) return ed ? false : void 0; assert_1.assert(typeof value == "boolean"); return value; + // JSON value will be a decimal string. Either numbers or strings are accepted. case reflection_info_1.ScalarType.UINT64: case reflection_info_1.ScalarType.FIXED64: assert_1.assert(typeof value == "number" || typeof value == "string" || typeof value == "bigint"); @@ -95426,6 +95499,7 @@ var require_reflection_json_writer = __commonJS({ if (ulong.isZero() && !ed) return void 0; return ulong.toString(); + // JSON value will be a decimal string. Either numbers or strings are accepted. case reflection_info_1.ScalarType.INT64: case reflection_info_1.ScalarType.SFIXED64: case reflection_info_1.ScalarType.SINT64: @@ -95434,6 +95508,8 @@ var require_reflection_json_writer = __commonJS({ if (long.isZero() && !ed) return void 0; return long.toString(); + // bytes: JSON value will be the data encoded as a string using standard base64 encoding with paddings. + // Either standard or URL-safe base64 encoding with/without paddings are accepted. case reflection_info_1.ScalarType.BYTES: assert_1.assert(value instanceof Uint8Array); if (!value.byteLength) @@ -99662,40 +99738,58 @@ var require_errors2 = __commonJS({ switch (code) { case TwirpErrorCode.Canceled: return 408; + // RequestTimeout case TwirpErrorCode.Unknown: return 500; + // Internal Server Error case TwirpErrorCode.InvalidArgument: return 400; + // BadRequest case TwirpErrorCode.Malformed: return 400; + // BadRequest case TwirpErrorCode.DeadlineExceeded: return 408; + // RequestTimeout case TwirpErrorCode.NotFound: return 404; + // Not Found case TwirpErrorCode.BadRoute: return 404; + // Not Found case TwirpErrorCode.AlreadyExists: return 409; + // Conflict case TwirpErrorCode.PermissionDenied: return 403; + // Forbidden case TwirpErrorCode.Unauthenticated: return 401; + // Unauthorized case TwirpErrorCode.ResourceExhausted: return 429; + // Too Many Requests case TwirpErrorCode.FailedPrecondition: return 412; + // Precondition Failed case TwirpErrorCode.Aborted: return 409; + // Conflict case TwirpErrorCode.OutOfRange: return 400; + // Bad Request case TwirpErrorCode.Unimplemented: return 501; + // Not Implemented case TwirpErrorCode.Internal: return 500; + // Internal Server Error case TwirpErrorCode.Unavailable: return 503; + // Service Unavailable case TwirpErrorCode.DataLoss: return 500; + // Internal Server Error default: return 0; } @@ -102729,6 +102823,7 @@ var require_minimatch2 = __commonJS({ continue; } switch (c) { + /* istanbul ignore next */ case "/": { return false; } @@ -102740,6 +102835,8 @@ var require_minimatch2 = __commonJS({ clearStateChar(); escaping = true; continue; + // the various stateChar values + // for the "extglob" stuff. case "?": case "*": case "+": @@ -102814,6 +102911,7 @@ var require_minimatch2 = __commonJS({ } continue; } + // these are mostly the same in regexp and glob case "[": clearStateChar(); if (inClass) { @@ -103025,12 +103123,16 @@ var require_readdir_glob = __commonJS({ } break; case "ENOTSUP": + // Operation not supported case "ENOENT": + // No such file or directory case "ENAMETOOLONG": + // Filename too long case "UNKNOWN": resolve2([]); break; case "ELOOP": + // Too many levels of symbolic links default: reject(err); break; @@ -131488,6 +131590,7 @@ var require_unzip_stream = __commonJS({ return requiredLength; case states.ERROR: return chunk.length; + // discard default: console.log("didn't handle state #", this.state, "discarding"); return chunk.length; @@ -131921,6 +132024,9 @@ var require_mkdirp = __commonJS({ else mkdirP(p, opts, cb, made2); }); break; + // In the case of any other error, just see if there's a dir + // there already. If so, then hooray! If not, then something + // is borked. default: xfs.stat(p, function(er2, stat3) { if (er2 || !stat3.isDirectory()) cb(er, made); @@ -131951,6 +132057,9 @@ var require_mkdirp = __commonJS({ made = sync(path2.dirname(p), opts, made); sync(p, opts, made); break; + // In the case of any other error, just see if there's a dir + // there already. If so, then hooray! If not, then something + // is borked. default: var stat3; try { diff --git a/vsts/QodanaScan/index.js b/vsts/QodanaScan/index.js index 8518c55d..6b3f32ca 100644 --- a/vsts/QodanaScan/index.js +++ b/vsts/QodanaScan/index.js @@ -7122,6 +7122,7 @@ var require_inflate = __commonJS({ hold = 0; bits = 0; state.mode = TIME; + /* falls through */ case TIME: while (bits < 32) { if (have === 0) { @@ -7144,6 +7145,7 @@ var require_inflate = __commonJS({ hold = 0; bits = 0; state.mode = OS; + /* falls through */ case OS: while (bits < 16) { if (have === 0) { @@ -7165,6 +7167,7 @@ var require_inflate = __commonJS({ hold = 0; bits = 0; state.mode = EXLEN; + /* falls through */ case EXLEN: if (state.flags & 1024) { while (bits < 16) { @@ -7190,6 +7193,7 @@ var require_inflate = __commonJS({ state.head.extra = null; } state.mode = EXTRA; + /* falls through */ case EXTRA: if (state.flags & 1024) { copy = state.length; @@ -7226,6 +7230,7 @@ var require_inflate = __commonJS({ } state.length = 0; state.mode = NAME; + /* falls through */ case NAME: if (state.flags & 2048) { if (have === 0) { @@ -7251,6 +7256,7 @@ var require_inflate = __commonJS({ } state.length = 0; state.mode = COMMENT; + /* falls through */ case COMMENT: if (state.flags & 4096) { if (have === 0) { @@ -7275,6 +7281,7 @@ var require_inflate = __commonJS({ state.head.comment = null; } state.mode = HCRC; + /* falls through */ case HCRC: if (state.flags & 512) { while (bits < 16) { @@ -7313,6 +7320,7 @@ var require_inflate = __commonJS({ hold = 0; bits = 0; state.mode = DICT; + /* falls through */ case DICT: if (state.havedict === 0) { strm.next_out = put; @@ -7325,10 +7333,12 @@ var require_inflate = __commonJS({ } strm.adler = state.check = 1; state.mode = TYPE; + /* falls through */ case TYPE: if (flush === Z_BLOCK || flush === Z_TREES) { break inf_leave; } + /* falls through */ case TYPEDO: if (state.last) { hold >>>= bits & 7; @@ -7393,8 +7403,10 @@ var require_inflate = __commonJS({ if (flush === Z_TREES) { break inf_leave; } + /* falls through */ case COPY_: state.mode = COPY; + /* falls through */ case COPY: copy = state.length; if (copy) { @@ -7442,6 +7454,7 @@ var require_inflate = __commonJS({ } state.have = 0; state.mode = LENLENS; + /* falls through */ case LENLENS: while (state.have < state.ncode) { while (bits < 3) { @@ -7471,6 +7484,7 @@ var require_inflate = __commonJS({ } state.have = 0; state.mode = CODELENS; + /* falls through */ case CODELENS: while (state.have < state.nlen + state.ndist) { for (; ; ) { @@ -7588,8 +7602,10 @@ var require_inflate = __commonJS({ if (flush === Z_TREES) { break inf_leave; } + /* falls through */ case LEN_: state.mode = LEN; + /* falls through */ case LEN: if (have >= 6 && left >= 258) { strm.next_out = put; @@ -7671,6 +7687,7 @@ var require_inflate = __commonJS({ } state.extra = here_op & 15; state.mode = LENEXT; + /* falls through */ case LENEXT: if (state.extra) { n = state.extra; @@ -7689,6 +7706,7 @@ var require_inflate = __commonJS({ } state.was = state.length; state.mode = DIST; + /* falls through */ case DIST: for (; ; ) { here = state.distcode[hold & (1 << state.distbits) - 1]; @@ -7739,6 +7757,7 @@ var require_inflate = __commonJS({ state.offset = here_val; state.extra = here_op & 15; state.mode = DISTEXT; + /* falls through */ case DISTEXT: if (state.extra) { n = state.extra; @@ -7761,6 +7780,7 @@ var require_inflate = __commonJS({ break; } state.mode = MATCH; + /* falls through */ case MATCH: if (left === 0) { break inf_leave; @@ -7837,6 +7857,7 @@ var require_inflate = __commonJS({ bits = 0; } state.mode = LENGTH; + /* falls through */ case LENGTH: if (state.wrap && state.flags) { while (bits < 32) { @@ -7856,6 +7877,7 @@ var require_inflate = __commonJS({ bits = 0; } state.mode = DONE; + /* falls through */ case DONE: ret = Z_STREAM_END; break inf_leave; @@ -7865,6 +7887,7 @@ var require_inflate = __commonJS({ case MEM: return Z_MEM_ERROR; case SYNC: + /* falls through */ default: return Z_STREAM_ERROR; } @@ -13267,6 +13290,8 @@ var require_semver = __commonJS({ this.inc("patch", identifier); this.inc("pre", identifier); break; + // If the input is a non-prerelease version, this acts the same as + // prepatch. case "prerelease": if (this.prerelease.length === 0) { this.inc("patch", identifier); @@ -13294,6 +13319,8 @@ var require_semver = __commonJS({ } this.prerelease = []; break; + // This probably shouldn't be used publicly. + // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction. case "pre": if (this.prerelease.length === 0) { this.prerelease = [0]; @@ -13924,6 +13951,7 @@ var require_semver = __commonJS({ compver.prerelease.push(0); } compver.raw = compver.format(); + /* fallthrough */ case "": case ">=": if (!minver || gt(minver, compver)) { @@ -13933,6 +13961,7 @@ var require_semver = __commonJS({ case "<": case "<=": break; + /* istanbul ignore next */ default: throw new Error("Unexpected operation: " + comparator.operator); } diff --git a/vsts/package.json b/vsts/package.json index cb42086f..7bbe0102 100644 --- a/vsts/package.json +++ b/vsts/package.json @@ -24,7 +24,7 @@ "author": "JetBrains", "license": "Apache-2.0", "dependencies": { - "azure-pipelines-task-lib": "^4.16.0", + "azure-pipelines-task-lib": "^4.17.0", "azure-pipelines-tasks-utility-common": "^3.242.0", "azure-pipelines-tool-lib": "^2.0.7" }, diff --git a/vsts/vss-extension.dev.json b/vsts/vss-extension.dev.json index dd681734..b617c936 100644 --- a/vsts/vss-extension.dev.json +++ b/vsts/vss-extension.dev.json @@ -2,7 +2,7 @@ "manifestVersion": 1, "id": "qodana-dev", "name": "Qodana (Dev)", - "version": "2024.1.118", + "version": "2024.1.119", "publisher": "JetBrains", "targets": [ {