mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-03-10 08:42:21 +00:00
Bump biome to v2 (#515)
This commit is contained in:
committed by
GitHub
parent
1463845d3c
commit
4109b4033f
8
.github/python.json
vendored
8
.github/python.json
vendored
@@ -4,13 +4,13 @@
|
|||||||
"owner": "python",
|
"owner": "python",
|
||||||
"pattern": [
|
"pattern": [
|
||||||
{
|
{
|
||||||
"regexp": "^\\s*File\\s\\\"(.*)\\\",\\sline\\s(\\d+),\\sin\\s(.*)$",
|
|
||||||
"file": 1,
|
"file": 1,
|
||||||
"line": 2
|
"line": 2,
|
||||||
|
"regexp": "^\\s*File\\s\\\"(.*)\\\",\\sline\\s(\\d+),\\sin\\s(.*)$"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"regexp": "^\\s*raise\\s(.*)\\(\\'(.*)\\'\\)$",
|
"message": 2,
|
||||||
"message": 2
|
"regexp": "^\\s*raise\\s(.*)\\(\\'(.*)\\'\\)$"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { expect, test, it } from "@jest/globals";
|
import { expect, it, test } from "@jest/globals";
|
||||||
import {
|
import {
|
||||||
isknownVersion,
|
isknownVersion,
|
||||||
validateChecksum,
|
validateChecksum,
|
||||||
@@ -22,12 +22,12 @@ type KnownVersionFixture = { version: string; known: boolean };
|
|||||||
|
|
||||||
it.each<KnownVersionFixture>([
|
it.each<KnownVersionFixture>([
|
||||||
{
|
{
|
||||||
version: "0.3.0",
|
|
||||||
known: true,
|
known: true,
|
||||||
|
version: "0.3.0",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
version: "0.0.15",
|
|
||||||
known: false,
|
known: false,
|
||||||
|
version: "0.0.15",
|
||||||
},
|
},
|
||||||
])(
|
])(
|
||||||
"isknownVersion should return $known for version $version",
|
"isknownVersion should return $known for version $version",
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"version": "0.7.12-alpha.1",
|
|
||||||
"artifactName": "uv-x86_64-unknown-linux-gnu.tar.gz",
|
|
||||||
"arch": "x86_64",
|
"arch": "x86_64",
|
||||||
|
"artifactName": "uv-x86_64-unknown-linux-gnu.tar.gz",
|
||||||
|
"downloadUrl": "https://release.pyx.dev/0.7.12-alpha.1/uv-x86_64-unknown-linux-gnu.tar.gz",
|
||||||
"platform": "unknown-linux-gnu",
|
"platform": "unknown-linux-gnu",
|
||||||
"downloadUrl": "https://release.pyx.dev/0.7.12-alpha.1/uv-x86_64-unknown-linux-gnu.tar.gz"
|
"version": "0.7.12-alpha.1"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { getUvVersionFromFile } from "../../src/version/resolve";
|
|
||||||
|
|
||||||
import { expect, test } from "@jest/globals";
|
import { expect, test } from "@jest/globals";
|
||||||
|
import { getUvVersionFromFile } from "../../src/version/resolve";
|
||||||
|
|
||||||
test("ignores dependencies starting with uv", async () => {
|
test("ignores dependencies starting with uv", async () => {
|
||||||
const parsedVersion = getUvVersionFromFile(
|
const parsedVersion = getUvVersionFromFile(
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { getUvVersionFromFile } from "../../src/version/resolve";
|
|
||||||
|
|
||||||
import { expect, test } from "@jest/globals";
|
import { expect, test } from "@jest/globals";
|
||||||
|
import { getUvVersionFromFile } from "../../src/version/resolve";
|
||||||
|
|
||||||
test("ignores dependencies starting with uv", async () => {
|
test("ignores dependencies starting with uv", async () => {
|
||||||
const parsedVersion = getUvVersionFromFile(
|
const parsedVersion = getUvVersionFromFile(
|
||||||
|
|||||||
39
biome.json
39
biome.json
@@ -1,20 +1,34 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
|
"$schema": "https://biomejs.dev/schemas/2.1.4/schema.json",
|
||||||
"vcs": {
|
"assist": {
|
||||||
"enabled": true,
|
"actions": {
|
||||||
"clientKind": "git",
|
"source": {
|
||||||
"useIgnoreFile": false
|
"organizeImports": "on",
|
||||||
|
"useSortedAttributes": "on",
|
||||||
|
"useSortedKeys": "on"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"files": {
|
"files": {
|
||||||
"ignoreUnknown": false,
|
"ignoreUnknown": false,
|
||||||
"ignore": ["dist", "lib", "node_modules"]
|
"includes": [
|
||||||
|
"**",
|
||||||
|
"!**/dist",
|
||||||
|
"!**/lib",
|
||||||
|
"!**/node_modules",
|
||||||
|
"!**/package*.json",
|
||||||
|
"!**/known-checksums.*"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"formatter": {
|
"formatter": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"indentStyle": "space"
|
"indentStyle": "space"
|
||||||
},
|
},
|
||||||
"organizeImports": {
|
"javascript": {
|
||||||
"enabled": true
|
"formatter": {
|
||||||
|
"quoteStyle": "double",
|
||||||
|
"trailingCommas": "all"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"linter": {
|
"linter": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
@@ -22,10 +36,9 @@
|
|||||||
"recommended": true
|
"recommended": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"javascript": {
|
"vcs": {
|
||||||
"formatter": {
|
"clientKind": "git",
|
||||||
"quoteStyle": "double",
|
"enabled": true,
|
||||||
"trailingCommas": "all"
|
"useIgnoreFile": false
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
1414
dist/save-cache/index.js
generated
vendored
1414
dist/save-cache/index.js
generated
vendored
@@ -2204,7 +2204,7 @@ const cacheUtils_1 = __nccwpck_require__(8299);
|
|||||||
const auth_1 = __nccwpck_require__(4552);
|
const auth_1 = __nccwpck_require__(4552);
|
||||||
const http_client_1 = __nccwpck_require__(4844);
|
const http_client_1 = __nccwpck_require__(4844);
|
||||||
const cache_twirp_client_1 = __nccwpck_require__(1486);
|
const cache_twirp_client_1 = __nccwpck_require__(1486);
|
||||||
const util_1 = __nccwpck_require__(7564);
|
const util_1 = __nccwpck_require__(5183);
|
||||||
/**
|
/**
|
||||||
* This class is a wrapper around the CacheServiceClientJSON class generated by Twirp.
|
* This class is a wrapper around the CacheServiceClientJSON class generated by Twirp.
|
||||||
*
|
*
|
||||||
@@ -2446,7 +2446,7 @@ exports.getUserAgentString = getUserAgentString;
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 7564:
|
/***/ 5183:
|
||||||
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
@@ -36699,6 +36699,9 @@ exports.userAgentPolicy = userAgentPolicy;
|
|||||||
/***/ 172:
|
/***/ 172:
|
||||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
var CombinedStream = __nccwpck_require__(5630);
|
var CombinedStream = __nccwpck_require__(5630);
|
||||||
var util = __nccwpck_require__(9023);
|
var util = __nccwpck_require__(9023);
|
||||||
var path = __nccwpck_require__(6928);
|
var path = __nccwpck_require__(6928);
|
||||||
@@ -36707,23 +36710,20 @@ var https = __nccwpck_require__(5692);
|
|||||||
var parseUrl = (__nccwpck_require__(7016).parse);
|
var parseUrl = (__nccwpck_require__(7016).parse);
|
||||||
var fs = __nccwpck_require__(9896);
|
var fs = __nccwpck_require__(9896);
|
||||||
var Stream = (__nccwpck_require__(2203).Stream);
|
var Stream = (__nccwpck_require__(2203).Stream);
|
||||||
|
var crypto = __nccwpck_require__(6982);
|
||||||
var mime = __nccwpck_require__(4096);
|
var mime = __nccwpck_require__(4096);
|
||||||
var asynckit = __nccwpck_require__(1324);
|
var asynckit = __nccwpck_require__(1324);
|
||||||
|
var setToStringTag = __nccwpck_require__(8700);
|
||||||
|
var hasOwn = __nccwpck_require__(4076);
|
||||||
var populate = __nccwpck_require__(2209);
|
var populate = __nccwpck_require__(2209);
|
||||||
|
|
||||||
// Public API
|
|
||||||
module.exports = FormData;
|
|
||||||
|
|
||||||
// make it a Stream
|
|
||||||
util.inherits(FormData, CombinedStream);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create readable "multipart/form-data" streams.
|
* Create readable "multipart/form-data" streams.
|
||||||
* Can be used to submit forms
|
* Can be used to submit forms
|
||||||
* and file uploads to other web applications.
|
* and file uploads to other web applications.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {Object} options - Properties to be added/overriden for FormData and CombinedStream
|
* @param {object} options - Properties to be added/overriden for FormData and CombinedStream
|
||||||
*/
|
*/
|
||||||
function FormData(options) {
|
function FormData(options) {
|
||||||
if (!(this instanceof FormData)) {
|
if (!(this instanceof FormData)) {
|
||||||
@@ -36736,35 +36736,39 @@ function FormData(options) {
|
|||||||
|
|
||||||
CombinedStream.call(this);
|
CombinedStream.call(this);
|
||||||
|
|
||||||
options = options || {};
|
options = options || {}; // eslint-disable-line no-param-reassign
|
||||||
for (var option in options) {
|
for (var option in options) { // eslint-disable-line no-restricted-syntax
|
||||||
this[option] = options[option];
|
this[option] = options[option];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// make it a Stream
|
||||||
|
util.inherits(FormData, CombinedStream);
|
||||||
|
|
||||||
FormData.LINE_BREAK = '\r\n';
|
FormData.LINE_BREAK = '\r\n';
|
||||||
FormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream';
|
FormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream';
|
||||||
|
|
||||||
FormData.prototype.append = function(field, value, options) {
|
FormData.prototype.append = function (field, value, options) {
|
||||||
|
options = options || {}; // eslint-disable-line no-param-reassign
|
||||||
options = options || {};
|
|
||||||
|
|
||||||
// allow filename as single option
|
// allow filename as single option
|
||||||
if (typeof options == 'string') {
|
if (typeof options === 'string') {
|
||||||
options = {filename: options};
|
options = { filename: options }; // eslint-disable-line no-param-reassign
|
||||||
}
|
}
|
||||||
|
|
||||||
var append = CombinedStream.prototype.append.bind(this);
|
var append = CombinedStream.prototype.append.bind(this);
|
||||||
|
|
||||||
// all that streamy business can't handle numbers
|
// all that streamy business can't handle numbers
|
||||||
if (typeof value == 'number') {
|
if (typeof value === 'number' || value == null) {
|
||||||
value = '' + value;
|
value = String(value); // eslint-disable-line no-param-reassign
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/felixge/node-form-data/issues/38
|
// https://github.com/felixge/node-form-data/issues/38
|
||||||
if (util.isArray(value)) {
|
if (Array.isArray(value)) {
|
||||||
// Please convert your array into string
|
/*
|
||||||
// the way web server expects it
|
* Please convert your array into string
|
||||||
|
* the way web server expects it
|
||||||
|
*/
|
||||||
this._error(new Error('Arrays are not supported.'));
|
this._error(new Error('Arrays are not supported.'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -36780,15 +36784,17 @@ FormData.prototype.append = function(field, value, options) {
|
|||||||
this._trackLength(header, value, options);
|
this._trackLength(header, value, options);
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._trackLength = function(header, value, options) {
|
FormData.prototype._trackLength = function (header, value, options) {
|
||||||
var valueLength = 0;
|
var valueLength = 0;
|
||||||
|
|
||||||
// used w/ getLengthSync(), when length is known.
|
/*
|
||||||
// e.g. for streaming directly from a remote server,
|
* used w/ getLengthSync(), when length is known.
|
||||||
// w/ a known file a size, and not wanting to wait for
|
* e.g. for streaming directly from a remote server,
|
||||||
// incoming file to finish to get its size.
|
* w/ a known file a size, and not wanting to wait for
|
||||||
|
* incoming file to finish to get its size.
|
||||||
|
*/
|
||||||
if (options.knownLength != null) {
|
if (options.knownLength != null) {
|
||||||
valueLength += +options.knownLength;
|
valueLength += Number(options.knownLength);
|
||||||
} else if (Buffer.isBuffer(value)) {
|
} else if (Buffer.isBuffer(value)) {
|
||||||
valueLength = value.length;
|
valueLength = value.length;
|
||||||
} else if (typeof value === 'string') {
|
} else if (typeof value === 'string') {
|
||||||
@@ -36798,12 +36804,10 @@ FormData.prototype._trackLength = function(header, value, options) {
|
|||||||
this._valueLength += valueLength;
|
this._valueLength += valueLength;
|
||||||
|
|
||||||
// @check why add CRLF? does this account for custom/multiple CRLFs?
|
// @check why add CRLF? does this account for custom/multiple CRLFs?
|
||||||
this._overheadLength +=
|
this._overheadLength += Buffer.byteLength(header) + FormData.LINE_BREAK.length;
|
||||||
Buffer.byteLength(header) +
|
|
||||||
FormData.LINE_BREAK.length;
|
|
||||||
|
|
||||||
// empty or either doesn't have path or not an http response or not a stream
|
// empty or either doesn't have path or not an http response or not a stream
|
||||||
if (!value || ( !value.path && !(value.readable && value.hasOwnProperty('httpVersion')) && !(value instanceof Stream))) {
|
if (!value || (!value.path && !(value.readable && hasOwn(value, 'httpVersion')) && !(value instanceof Stream))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36813,10 +36817,8 @@ FormData.prototype._trackLength = function(header, value, options) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._lengthRetriever = function(value, callback) {
|
FormData.prototype._lengthRetriever = function (value, callback) {
|
||||||
|
if (hasOwn(value, 'fd')) {
|
||||||
if (value.hasOwnProperty('fd')) {
|
|
||||||
|
|
||||||
// take read range into a account
|
// take read range into a account
|
||||||
// `end` = Infinity –> read file till the end
|
// `end` = Infinity –> read file till the end
|
||||||
//
|
//
|
||||||
@@ -36825,54 +36827,52 @@ FormData.prototype._lengthRetriever = function(value, callback) {
|
|||||||
// Fix it when node fixes it.
|
// Fix it when node fixes it.
|
||||||
// https://github.com/joyent/node/issues/7819
|
// https://github.com/joyent/node/issues/7819
|
||||||
if (value.end != undefined && value.end != Infinity && value.start != undefined) {
|
if (value.end != undefined && value.end != Infinity && value.start != undefined) {
|
||||||
|
|
||||||
// when end specified
|
// when end specified
|
||||||
// no need to calculate range
|
// no need to calculate range
|
||||||
// inclusive, starts with 0
|
// inclusive, starts with 0
|
||||||
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
callback(null, value.end + 1 - (value.start ? value.start : 0)); // eslint-disable-line callback-return
|
||||||
|
|
||||||
// not that fast snoopy
|
// not that fast snoopy
|
||||||
} else {
|
} else {
|
||||||
// still need to fetch file size from fs
|
// still need to fetch file size from fs
|
||||||
fs.stat(value.path, function(err, stat) {
|
fs.stat(value.path, function (err, stat) {
|
||||||
|
|
||||||
var fileSize;
|
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
callback(err);
|
callback(err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// update final size based on the range options
|
// update final size based on the range options
|
||||||
fileSize = stat.size - (value.start ? value.start : 0);
|
var fileSize = stat.size - (value.start ? value.start : 0);
|
||||||
callback(null, fileSize);
|
callback(null, fileSize);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// or http response
|
// or http response
|
||||||
} else if (value.hasOwnProperty('httpVersion')) {
|
} else if (hasOwn(value, 'httpVersion')) {
|
||||||
callback(null, +value.headers['content-length']);
|
callback(null, Number(value.headers['content-length'])); // eslint-disable-line callback-return
|
||||||
|
|
||||||
// or request stream http://github.com/mikeal/request
|
// or request stream http://github.com/mikeal/request
|
||||||
} else if (value.hasOwnProperty('httpModule')) {
|
} else if (hasOwn(value, 'httpModule')) {
|
||||||
// wait till response come back
|
// wait till response come back
|
||||||
value.on('response', function(response) {
|
value.on('response', function (response) {
|
||||||
value.pause();
|
value.pause();
|
||||||
callback(null, +response.headers['content-length']);
|
callback(null, Number(response.headers['content-length']));
|
||||||
});
|
});
|
||||||
value.resume();
|
value.resume();
|
||||||
|
|
||||||
// something else
|
// something else
|
||||||
} else {
|
} else {
|
||||||
callback('Unknown stream');
|
callback('Unknown stream'); // eslint-disable-line callback-return
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._multiPartHeader = function(field, value, options) {
|
FormData.prototype._multiPartHeader = function (field, value, options) {
|
||||||
// custom header specified (as string)?
|
/*
|
||||||
// it becomes responsible for boundary
|
* custom header specified (as string)?
|
||||||
// (e.g. to handle extra CRLFs on .NET servers)
|
* it becomes responsible for boundary
|
||||||
if (typeof options.header == 'string') {
|
* (e.g. to handle extra CRLFs on .NET servers)
|
||||||
|
*/
|
||||||
|
if (typeof options.header === 'string') {
|
||||||
return options.header;
|
return options.header;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36880,7 +36880,7 @@ FormData.prototype._multiPartHeader = function(field, value, options) {
|
|||||||
var contentType = this._getContentType(value, options);
|
var contentType = this._getContentType(value, options);
|
||||||
|
|
||||||
var contents = '';
|
var contents = '';
|
||||||
var headers = {
|
var headers = {
|
||||||
// add custom disposition as third element or keep it two elements if not
|
// add custom disposition as third element or keep it two elements if not
|
||||||
'Content-Disposition': ['form-data', 'name="' + field + '"'].concat(contentDisposition || []),
|
'Content-Disposition': ['form-data', 'name="' + field + '"'].concat(contentDisposition || []),
|
||||||
// if no content type. allow it to be empty array
|
// if no content type. allow it to be empty array
|
||||||
@@ -36888,77 +36888,74 @@ FormData.prototype._multiPartHeader = function(field, value, options) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// allow custom headers.
|
// allow custom headers.
|
||||||
if (typeof options.header == 'object') {
|
if (typeof options.header === 'object') {
|
||||||
populate(headers, options.header);
|
populate(headers, options.header);
|
||||||
}
|
}
|
||||||
|
|
||||||
var header;
|
var header;
|
||||||
for (var prop in headers) {
|
for (var prop in headers) { // eslint-disable-line no-restricted-syntax
|
||||||
if (!headers.hasOwnProperty(prop)) continue;
|
if (hasOwn(headers, prop)) {
|
||||||
header = headers[prop];
|
header = headers[prop];
|
||||||
|
|
||||||
// skip nullish headers.
|
// skip nullish headers.
|
||||||
if (header == null) {
|
if (header == null) {
|
||||||
continue;
|
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// convert all headers to arrays.
|
// convert all headers to arrays.
|
||||||
if (!Array.isArray(header)) {
|
if (!Array.isArray(header)) {
|
||||||
header = [header];
|
header = [header];
|
||||||
}
|
}
|
||||||
|
|
||||||
// add non-empty headers.
|
// add non-empty headers.
|
||||||
if (header.length) {
|
if (header.length) {
|
||||||
contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK;
|
contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK;
|
return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK;
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._getContentDisposition = function(value, options) {
|
FormData.prototype._getContentDisposition = function (value, options) { // eslint-disable-line consistent-return
|
||||||
|
var filename;
|
||||||
var filename
|
|
||||||
, contentDisposition
|
|
||||||
;
|
|
||||||
|
|
||||||
if (typeof options.filepath === 'string') {
|
if (typeof options.filepath === 'string') {
|
||||||
// custom filepath for relative paths
|
// custom filepath for relative paths
|
||||||
filename = path.normalize(options.filepath).replace(/\\/g, '/');
|
filename = path.normalize(options.filepath).replace(/\\/g, '/');
|
||||||
} else if (options.filename || value.name || value.path) {
|
} else if (options.filename || (value && (value.name || value.path))) {
|
||||||
// custom filename take precedence
|
/*
|
||||||
// formidable and the browser add a name property
|
* custom filename take precedence
|
||||||
// fs- and request- streams have path property
|
* formidable and the browser add a name property
|
||||||
filename = path.basename(options.filename || value.name || value.path);
|
* fs- and request- streams have path property
|
||||||
} else if (value.readable && value.hasOwnProperty('httpVersion')) {
|
*/
|
||||||
|
filename = path.basename(options.filename || (value && (value.name || value.path)));
|
||||||
|
} else if (value && value.readable && hasOwn(value, 'httpVersion')) {
|
||||||
// or try http response
|
// or try http response
|
||||||
filename = path.basename(value.client._httpMessage.path || '');
|
filename = path.basename(value.client._httpMessage.path || '');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filename) {
|
if (filename) {
|
||||||
contentDisposition = 'filename="' + filename + '"';
|
return 'filename="' + filename + '"';
|
||||||
}
|
}
|
||||||
|
|
||||||
return contentDisposition;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._getContentType = function(value, options) {
|
FormData.prototype._getContentType = function (value, options) {
|
||||||
|
|
||||||
// use custom content-type above all
|
// use custom content-type above all
|
||||||
var contentType = options.contentType;
|
var contentType = options.contentType;
|
||||||
|
|
||||||
// or try `name` from formidable, browser
|
// or try `name` from formidable, browser
|
||||||
if (!contentType && value.name) {
|
if (!contentType && value && value.name) {
|
||||||
contentType = mime.lookup(value.name);
|
contentType = mime.lookup(value.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
// or try `path` from fs-, request- streams
|
// or try `path` from fs-, request- streams
|
||||||
if (!contentType && value.path) {
|
if (!contentType && value && value.path) {
|
||||||
contentType = mime.lookup(value.path);
|
contentType = mime.lookup(value.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
// or if it's http-reponse
|
// or if it's http-reponse
|
||||||
if (!contentType && value.readable && value.hasOwnProperty('httpVersion')) {
|
if (!contentType && value && value.readable && hasOwn(value, 'httpVersion')) {
|
||||||
contentType = value.headers['content-type'];
|
contentType = value.headers['content-type'];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36968,18 +36965,18 @@ FormData.prototype._getContentType = function(value, options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// fallback to the default content type if `value` is not simple value
|
// fallback to the default content type if `value` is not simple value
|
||||||
if (!contentType && typeof value == 'object') {
|
if (!contentType && value && typeof value === 'object') {
|
||||||
contentType = FormData.DEFAULT_CONTENT_TYPE;
|
contentType = FormData.DEFAULT_CONTENT_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return contentType;
|
return contentType;
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._multiPartFooter = function() {
|
FormData.prototype._multiPartFooter = function () {
|
||||||
return function(next) {
|
return function (next) {
|
||||||
var footer = FormData.LINE_BREAK;
|
var footer = FormData.LINE_BREAK;
|
||||||
|
|
||||||
var lastPart = (this._streams.length === 0);
|
var lastPart = this._streams.length === 0;
|
||||||
if (lastPart) {
|
if (lastPart) {
|
||||||
footer += this._lastBoundary();
|
footer += this._lastBoundary();
|
||||||
}
|
}
|
||||||
@@ -36988,18 +36985,18 @@ FormData.prototype._multiPartFooter = function() {
|
|||||||
}.bind(this);
|
}.bind(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._lastBoundary = function() {
|
FormData.prototype._lastBoundary = function () {
|
||||||
return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK;
|
return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK;
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype.getHeaders = function(userHeaders) {
|
FormData.prototype.getHeaders = function (userHeaders) {
|
||||||
var header;
|
var header;
|
||||||
var formHeaders = {
|
var formHeaders = {
|
||||||
'content-type': 'multipart/form-data; boundary=' + this.getBoundary()
|
'content-type': 'multipart/form-data; boundary=' + this.getBoundary()
|
||||||
};
|
};
|
||||||
|
|
||||||
for (header in userHeaders) {
|
for (header in userHeaders) { // eslint-disable-line no-restricted-syntax
|
||||||
if (userHeaders.hasOwnProperty(header)) {
|
if (hasOwn(userHeaders, header)) {
|
||||||
formHeaders[header.toLowerCase()] = userHeaders[header];
|
formHeaders[header.toLowerCase()] = userHeaders[header];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -37007,11 +37004,14 @@ FormData.prototype.getHeaders = function(userHeaders) {
|
|||||||
return formHeaders;
|
return formHeaders;
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype.setBoundary = function(boundary) {
|
FormData.prototype.setBoundary = function (boundary) {
|
||||||
|
if (typeof boundary !== 'string') {
|
||||||
|
throw new TypeError('FormData boundary must be a string');
|
||||||
|
}
|
||||||
this._boundary = boundary;
|
this._boundary = boundary;
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype.getBoundary = function() {
|
FormData.prototype.getBoundary = function () {
|
||||||
if (!this._boundary) {
|
if (!this._boundary) {
|
||||||
this._generateBoundary();
|
this._generateBoundary();
|
||||||
}
|
}
|
||||||
@@ -37019,60 +37019,55 @@ FormData.prototype.getBoundary = function() {
|
|||||||
return this._boundary;
|
return this._boundary;
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype.getBuffer = function() {
|
FormData.prototype.getBuffer = function () {
|
||||||
var dataBuffer = new Buffer.alloc( 0 );
|
var dataBuffer = new Buffer.alloc(0); // eslint-disable-line new-cap
|
||||||
var boundary = this.getBoundary();
|
var boundary = this.getBoundary();
|
||||||
|
|
||||||
// Create the form content. Add Line breaks to the end of data.
|
// Create the form content. Add Line breaks to the end of data.
|
||||||
for (var i = 0, len = this._streams.length; i < len; i++) {
|
for (var i = 0, len = this._streams.length; i < len; i++) {
|
||||||
if (typeof this._streams[i] !== 'function') {
|
if (typeof this._streams[i] !== 'function') {
|
||||||
|
|
||||||
// Add content to the buffer.
|
// Add content to the buffer.
|
||||||
if(Buffer.isBuffer(this._streams[i])) {
|
if (Buffer.isBuffer(this._streams[i])) {
|
||||||
dataBuffer = Buffer.concat( [dataBuffer, this._streams[i]]);
|
dataBuffer = Buffer.concat([dataBuffer, this._streams[i]]);
|
||||||
}else {
|
} else {
|
||||||
dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(this._streams[i])]);
|
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add break after content.
|
// Add break after content.
|
||||||
if (typeof this._streams[i] !== 'string' || this._streams[i].substring( 2, boundary.length + 2 ) !== boundary) {
|
if (typeof this._streams[i] !== 'string' || this._streams[i].substring(2, boundary.length + 2) !== boundary) {
|
||||||
dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(FormData.LINE_BREAK)] );
|
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData.LINE_BREAK)]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the footer and return the Buffer object.
|
// Add the footer and return the Buffer object.
|
||||||
return Buffer.concat( [dataBuffer, Buffer.from(this._lastBoundary())] );
|
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._generateBoundary = function() {
|
FormData.prototype._generateBoundary = function () {
|
||||||
// This generates a 50 character boundary similar to those used by Firefox.
|
// This generates a 50 character boundary similar to those used by Firefox.
|
||||||
// They are optimized for boyer-moore parsing.
|
|
||||||
var boundary = '--------------------------';
|
|
||||||
for (var i = 0; i < 24; i++) {
|
|
||||||
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
||||||
}
|
|
||||||
|
|
||||||
this._boundary = boundary;
|
// They are optimized for boyer-moore parsing.
|
||||||
|
this._boundary = '--------------------------' + crypto.randomBytes(12).toString('hex');
|
||||||
};
|
};
|
||||||
|
|
||||||
// Note: getLengthSync DOESN'T calculate streams length
|
// Note: getLengthSync DOESN'T calculate streams length
|
||||||
// As workaround one can calculate file size manually
|
// As workaround one can calculate file size manually and add it as knownLength option
|
||||||
// and add it as knownLength option
|
FormData.prototype.getLengthSync = function () {
|
||||||
FormData.prototype.getLengthSync = function() {
|
|
||||||
var knownLength = this._overheadLength + this._valueLength;
|
var knownLength = this._overheadLength + this._valueLength;
|
||||||
|
|
||||||
// Don't get confused, there are 3 "internal" streams for each keyval pair
|
// Don't get confused, there are 3 "internal" streams for each keyval pair so it basically checks if there is any value added to the form
|
||||||
// so it basically checks if there is any value added to the form
|
|
||||||
if (this._streams.length) {
|
if (this._streams.length) {
|
||||||
knownLength += this._lastBoundary().length;
|
knownLength += this._lastBoundary().length;
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/form-data/form-data/issues/40
|
// https://github.com/form-data/form-data/issues/40
|
||||||
if (!this.hasKnownLength()) {
|
if (!this.hasKnownLength()) {
|
||||||
// Some async length retrievers are present
|
/*
|
||||||
// therefore synchronous length calculation is false.
|
* Some async length retrievers are present
|
||||||
// Please use getLength(callback) to get proper length
|
* therefore synchronous length calculation is false.
|
||||||
|
* Please use getLength(callback) to get proper length
|
||||||
|
*/
|
||||||
this._error(new Error('Cannot calculate proper length in synchronous way.'));
|
this._error(new Error('Cannot calculate proper length in synchronous way.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37082,7 +37077,7 @@ FormData.prototype.getLengthSync = function() {
|
|||||||
// Public API to check if length of added values is known
|
// Public API to check if length of added values is known
|
||||||
// https://github.com/form-data/form-data/issues/196
|
// https://github.com/form-data/form-data/issues/196
|
||||||
// https://github.com/form-data/form-data/issues/262
|
// https://github.com/form-data/form-data/issues/262
|
||||||
FormData.prototype.hasKnownLength = function() {
|
FormData.prototype.hasKnownLength = function () {
|
||||||
var hasKnownLength = true;
|
var hasKnownLength = true;
|
||||||
|
|
||||||
if (this._valuesToMeasure.length) {
|
if (this._valuesToMeasure.length) {
|
||||||
@@ -37092,7 +37087,7 @@ FormData.prototype.hasKnownLength = function() {
|
|||||||
return hasKnownLength;
|
return hasKnownLength;
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype.getLength = function(cb) {
|
FormData.prototype.getLength = function (cb) {
|
||||||
var knownLength = this._overheadLength + this._valueLength;
|
var knownLength = this._overheadLength + this._valueLength;
|
||||||
|
|
||||||
if (this._streams.length) {
|
if (this._streams.length) {
|
||||||
@@ -37104,13 +37099,13 @@ FormData.prototype.getLength = function(cb) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
|
asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function (err, values) {
|
||||||
if (err) {
|
if (err) {
|
||||||
cb(err);
|
cb(err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
values.forEach(function(length) {
|
values.forEach(function (length) {
|
||||||
knownLength += length;
|
knownLength += length;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -37118,31 +37113,26 @@ FormData.prototype.getLength = function(cb) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype.submit = function(params, cb) {
|
FormData.prototype.submit = function (params, cb) {
|
||||||
var request
|
var request;
|
||||||
, options
|
var options;
|
||||||
, defaults = {method: 'post'}
|
var defaults = { method: 'post' };
|
||||||
;
|
|
||||||
|
|
||||||
// parse provided url if it's string
|
// parse provided url if it's string or treat it as options object
|
||||||
// or treat it as options object
|
if (typeof params === 'string') {
|
||||||
if (typeof params == 'string') {
|
params = parseUrl(params); // eslint-disable-line no-param-reassign
|
||||||
|
/* eslint sort-keys: 0 */
|
||||||
params = parseUrl(params);
|
|
||||||
options = populate({
|
options = populate({
|
||||||
port: params.port,
|
port: params.port,
|
||||||
path: params.pathname,
|
path: params.pathname,
|
||||||
host: params.hostname,
|
host: params.hostname,
|
||||||
protocol: params.protocol
|
protocol: params.protocol
|
||||||
}, defaults);
|
}, defaults);
|
||||||
|
} else { // use custom params
|
||||||
// use custom params
|
|
||||||
} else {
|
|
||||||
|
|
||||||
options = populate(params, defaults);
|
options = populate(params, defaults);
|
||||||
// if no port provided use default one
|
// if no port provided use default one
|
||||||
if (!options.port) {
|
if (!options.port) {
|
||||||
options.port = options.protocol == 'https:' ? 443 : 80;
|
options.port = options.protocol === 'https:' ? 443 : 80;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37150,14 +37140,14 @@ FormData.prototype.submit = function(params, cb) {
|
|||||||
options.headers = this.getHeaders(params.headers);
|
options.headers = this.getHeaders(params.headers);
|
||||||
|
|
||||||
// https if specified, fallback to http in any other case
|
// https if specified, fallback to http in any other case
|
||||||
if (options.protocol == 'https:') {
|
if (options.protocol === 'https:') {
|
||||||
request = https.request(options);
|
request = https.request(options);
|
||||||
} else {
|
} else {
|
||||||
request = http.request(options);
|
request = http.request(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
// get content length and fire away
|
// get content length and fire away
|
||||||
this.getLength(function(err, length) {
|
this.getLength(function (err, length) {
|
||||||
if (err && err !== 'Unknown stream') {
|
if (err && err !== 'Unknown stream') {
|
||||||
this._error(err);
|
this._error(err);
|
||||||
return;
|
return;
|
||||||
@@ -37176,7 +37166,7 @@ FormData.prototype.submit = function(params, cb) {
|
|||||||
request.removeListener('error', callback);
|
request.removeListener('error', callback);
|
||||||
request.removeListener('response', onResponse);
|
request.removeListener('response', onResponse);
|
||||||
|
|
||||||
return cb.call(this, error, responce);
|
return cb.call(this, error, responce); // eslint-disable-line no-invalid-this
|
||||||
};
|
};
|
||||||
|
|
||||||
onResponse = callback.bind(this, null);
|
onResponse = callback.bind(this, null);
|
||||||
@@ -37189,7 +37179,7 @@ FormData.prototype.submit = function(params, cb) {
|
|||||||
return request;
|
return request;
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._error = function(err) {
|
FormData.prototype._error = function (err) {
|
||||||
if (!this.error) {
|
if (!this.error) {
|
||||||
this.error = err;
|
this.error = err;
|
||||||
this.pause();
|
this.pause();
|
||||||
@@ -37200,6 +37190,10 @@ FormData.prototype._error = function(err) {
|
|||||||
FormData.prototype.toString = function () {
|
FormData.prototype.toString = function () {
|
||||||
return '[object FormData]';
|
return '[object FormData]';
|
||||||
};
|
};
|
||||||
|
setToStringTag(FormData, 'FormData');
|
||||||
|
|
||||||
|
// Public API
|
||||||
|
module.exports = FormData;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@@ -37207,12 +37201,13 @@ FormData.prototype.toString = function () {
|
|||||||
/***/ 2209:
|
/***/ 2209:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
// populates missing values
|
"use strict";
|
||||||
module.exports = function(dst, src) {
|
|
||||||
|
|
||||||
Object.keys(src).forEach(function(prop)
|
|
||||||
{
|
// populates missing values
|
||||||
dst[prop] = dst[prop] || src[prop];
|
module.exports = function (dst, src) {
|
||||||
|
Object.keys(src).forEach(function (prop) {
|
||||||
|
dst[prop] = dst[prop] || src[prop]; // eslint-disable-line no-param-reassign
|
||||||
});
|
});
|
||||||
|
|
||||||
return dst;
|
return dst;
|
||||||
@@ -76351,7 +76346,7 @@ function expand(str, isTop) {
|
|||||||
var isOptions = m.body.indexOf(',') >= 0;
|
var isOptions = m.body.indexOf(',') >= 0;
|
||||||
if (!isSequence && !isOptions) {
|
if (!isSequence && !isOptions) {
|
||||||
// {a},b}
|
// {a},b}
|
||||||
if (m.post.match(/,.*\}/)) {
|
if (m.post.match(/,(?!,).*\}/)) {
|
||||||
str = m.pre + '{' + m.body + escClose + m.post;
|
str = m.pre + '{' + m.body + escClose + m.post;
|
||||||
return expand(str);
|
return expand(str);
|
||||||
}
|
}
|
||||||
@@ -76443,6 +76438,83 @@ function expand(str, isTop) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 2639:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var bind = __nccwpck_require__(7564);
|
||||||
|
|
||||||
|
var $apply = __nccwpck_require__(3945);
|
||||||
|
var $call = __nccwpck_require__(8093);
|
||||||
|
var $reflectApply = __nccwpck_require__(1330);
|
||||||
|
|
||||||
|
/** @type {import('./actualApply')} */
|
||||||
|
module.exports = $reflectApply || bind.call($call, $apply);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 3945:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./functionApply')} */
|
||||||
|
module.exports = Function.prototype.apply;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 8093:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./functionCall')} */
|
||||||
|
module.exports = Function.prototype.call;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 8705:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var bind = __nccwpck_require__(7564);
|
||||||
|
var $TypeError = __nccwpck_require__(3314);
|
||||||
|
|
||||||
|
var $call = __nccwpck_require__(8093);
|
||||||
|
var $actualApply = __nccwpck_require__(2639);
|
||||||
|
|
||||||
|
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
||||||
|
module.exports = function callBindBasic(args) {
|
||||||
|
if (args.length < 1 || typeof args[0] !== 'function') {
|
||||||
|
throw new $TypeError('a function is required');
|
||||||
|
}
|
||||||
|
return $actualApply(bind, $call, args);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 1330:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./reflectApply')} */
|
||||||
|
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 5630:
|
/***/ 5630:
|
||||||
@@ -76792,6 +76864,1004 @@ DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 6669:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var callBind = __nccwpck_require__(8705);
|
||||||
|
var gOPD = __nccwpck_require__(3170);
|
||||||
|
|
||||||
|
var hasProtoAccessor;
|
||||||
|
try {
|
||||||
|
// eslint-disable-next-line no-extra-parens, no-proto
|
||||||
|
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
||||||
|
} catch (e) {
|
||||||
|
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line no-extra-parens
|
||||||
|
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
||||||
|
|
||||||
|
var $Object = Object;
|
||||||
|
var $getPrototypeOf = $Object.getPrototypeOf;
|
||||||
|
|
||||||
|
/** @type {import('./get')} */
|
||||||
|
module.exports = desc && typeof desc.get === 'function'
|
||||||
|
? callBind([desc.get])
|
||||||
|
: typeof $getPrototypeOf === 'function'
|
||||||
|
? /** @type {import('./get')} */ function getDunder(value) {
|
||||||
|
// eslint-disable-next-line eqeqeq
|
||||||
|
return $getPrototypeOf(value == null ? value : $Object(value));
|
||||||
|
}
|
||||||
|
: false;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 9094:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
var $defineProperty = Object.defineProperty || false;
|
||||||
|
if ($defineProperty) {
|
||||||
|
try {
|
||||||
|
$defineProperty({}, 'a', { value: 1 });
|
||||||
|
} catch (e) {
|
||||||
|
// IE 8 has a broken defineProperty
|
||||||
|
$defineProperty = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = $defineProperty;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 3056:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./eval')} */
|
||||||
|
module.exports = EvalError;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 1620:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
module.exports = Error;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 4585:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./range')} */
|
||||||
|
module.exports = RangeError;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 6905:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./ref')} */
|
||||||
|
module.exports = ReferenceError;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 105:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./syntax')} */
|
||||||
|
module.exports = SyntaxError;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 3314:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./type')} */
|
||||||
|
module.exports = TypeError;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 2578:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./uri')} */
|
||||||
|
module.exports = URIError;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 5399:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
module.exports = Object;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 8700:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var GetIntrinsic = __nccwpck_require__(8089);
|
||||||
|
|
||||||
|
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
||||||
|
|
||||||
|
var hasToStringTag = __nccwpck_require__(5479)();
|
||||||
|
var hasOwn = __nccwpck_require__(4076);
|
||||||
|
var $TypeError = __nccwpck_require__(3314);
|
||||||
|
|
||||||
|
var toStringTag = hasToStringTag ? Symbol.toStringTag : null;
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
module.exports = function setToStringTag(object, value) {
|
||||||
|
var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
|
||||||
|
var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
|
||||||
|
if (
|
||||||
|
(typeof overrideIfSet !== 'undefined' && typeof overrideIfSet !== 'boolean')
|
||||||
|
|| (typeof nonConfigurable !== 'undefined' && typeof nonConfigurable !== 'boolean')
|
||||||
|
) {
|
||||||
|
throw new $TypeError('if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans');
|
||||||
|
}
|
||||||
|
if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {
|
||||||
|
if ($defineProperty) {
|
||||||
|
$defineProperty(object, toStringTag, {
|
||||||
|
configurable: !nonConfigurable,
|
||||||
|
enumerable: false,
|
||||||
|
value: value,
|
||||||
|
writable: false
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
object[toStringTag] = value; // eslint-disable-line no-param-reassign
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 9808:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/* eslint no-invalid-this: 1 */
|
||||||
|
|
||||||
|
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
||||||
|
var toStr = Object.prototype.toString;
|
||||||
|
var max = Math.max;
|
||||||
|
var funcType = '[object Function]';
|
||||||
|
|
||||||
|
var concatty = function concatty(a, b) {
|
||||||
|
var arr = [];
|
||||||
|
|
||||||
|
for (var i = 0; i < a.length; i += 1) {
|
||||||
|
arr[i] = a[i];
|
||||||
|
}
|
||||||
|
for (var j = 0; j < b.length; j += 1) {
|
||||||
|
arr[j + a.length] = b[j];
|
||||||
|
}
|
||||||
|
|
||||||
|
return arr;
|
||||||
|
};
|
||||||
|
|
||||||
|
var slicy = function slicy(arrLike, offset) {
|
||||||
|
var arr = [];
|
||||||
|
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
||||||
|
arr[j] = arrLike[i];
|
||||||
|
}
|
||||||
|
return arr;
|
||||||
|
};
|
||||||
|
|
||||||
|
var joiny = function (arr, joiner) {
|
||||||
|
var str = '';
|
||||||
|
for (var i = 0; i < arr.length; i += 1) {
|
||||||
|
str += arr[i];
|
||||||
|
if (i + 1 < arr.length) {
|
||||||
|
str += joiner;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return str;
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports = function bind(that) {
|
||||||
|
var target = this;
|
||||||
|
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
||||||
|
throw new TypeError(ERROR_MESSAGE + target);
|
||||||
|
}
|
||||||
|
var args = slicy(arguments, 1);
|
||||||
|
|
||||||
|
var bound;
|
||||||
|
var binder = function () {
|
||||||
|
if (this instanceof bound) {
|
||||||
|
var result = target.apply(
|
||||||
|
this,
|
||||||
|
concatty(args, arguments)
|
||||||
|
);
|
||||||
|
if (Object(result) === result) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
return target.apply(
|
||||||
|
that,
|
||||||
|
concatty(args, arguments)
|
||||||
|
);
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
var boundLength = max(0, target.length - args.length);
|
||||||
|
var boundArgs = [];
|
||||||
|
for (var i = 0; i < boundLength; i++) {
|
||||||
|
boundArgs[i] = '$' + i;
|
||||||
|
}
|
||||||
|
|
||||||
|
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
||||||
|
|
||||||
|
if (target.prototype) {
|
||||||
|
var Empty = function Empty() {};
|
||||||
|
Empty.prototype = target.prototype;
|
||||||
|
bound.prototype = new Empty();
|
||||||
|
Empty.prototype = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return bound;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 7564:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var implementation = __nccwpck_require__(9808);
|
||||||
|
|
||||||
|
module.exports = Function.prototype.bind || implementation;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 8089:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var undefined;
|
||||||
|
|
||||||
|
var $Object = __nccwpck_require__(5399);
|
||||||
|
|
||||||
|
var $Error = __nccwpck_require__(1620);
|
||||||
|
var $EvalError = __nccwpck_require__(3056);
|
||||||
|
var $RangeError = __nccwpck_require__(4585);
|
||||||
|
var $ReferenceError = __nccwpck_require__(6905);
|
||||||
|
var $SyntaxError = __nccwpck_require__(105);
|
||||||
|
var $TypeError = __nccwpck_require__(3314);
|
||||||
|
var $URIError = __nccwpck_require__(2578);
|
||||||
|
|
||||||
|
var abs = __nccwpck_require__(5641);
|
||||||
|
var floor = __nccwpck_require__(6171);
|
||||||
|
var max = __nccwpck_require__(7147);
|
||||||
|
var min = __nccwpck_require__(1017);
|
||||||
|
var pow = __nccwpck_require__(6947);
|
||||||
|
var round = __nccwpck_require__(2621);
|
||||||
|
var sign = __nccwpck_require__(156);
|
||||||
|
|
||||||
|
var $Function = Function;
|
||||||
|
|
||||||
|
// eslint-disable-next-line consistent-return
|
||||||
|
var getEvalledConstructor = function (expressionSyntax) {
|
||||||
|
try {
|
||||||
|
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
||||||
|
} catch (e) {}
|
||||||
|
};
|
||||||
|
|
||||||
|
var $gOPD = __nccwpck_require__(3170);
|
||||||
|
var $defineProperty = __nccwpck_require__(9094);
|
||||||
|
|
||||||
|
var throwTypeError = function () {
|
||||||
|
throw new $TypeError();
|
||||||
|
};
|
||||||
|
var ThrowTypeError = $gOPD
|
||||||
|
? (function () {
|
||||||
|
try {
|
||||||
|
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
||||||
|
arguments.callee; // IE 8 does not throw here
|
||||||
|
return throwTypeError;
|
||||||
|
} catch (calleeThrows) {
|
||||||
|
try {
|
||||||
|
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
||||||
|
return $gOPD(arguments, 'callee').get;
|
||||||
|
} catch (gOPDthrows) {
|
||||||
|
return throwTypeError;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}())
|
||||||
|
: throwTypeError;
|
||||||
|
|
||||||
|
var hasSymbols = __nccwpck_require__(3336)();
|
||||||
|
|
||||||
|
var getProto = __nccwpck_require__(1967);
|
||||||
|
var $ObjectGPO = __nccwpck_require__(1311);
|
||||||
|
var $ReflectGPO = __nccwpck_require__(8681);
|
||||||
|
|
||||||
|
var $apply = __nccwpck_require__(3945);
|
||||||
|
var $call = __nccwpck_require__(8093);
|
||||||
|
|
||||||
|
var needsEval = {};
|
||||||
|
|
||||||
|
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
||||||
|
|
||||||
|
var INTRINSICS = {
|
||||||
|
__proto__: null,
|
||||||
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
||||||
|
'%Array%': Array,
|
||||||
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
||||||
|
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
||||||
|
'%AsyncFromSyncIteratorPrototype%': undefined,
|
||||||
|
'%AsyncFunction%': needsEval,
|
||||||
|
'%AsyncGenerator%': needsEval,
|
||||||
|
'%AsyncGeneratorFunction%': needsEval,
|
||||||
|
'%AsyncIteratorPrototype%': needsEval,
|
||||||
|
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
||||||
|
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
||||||
|
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
|
||||||
|
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
|
||||||
|
'%Boolean%': Boolean,
|
||||||
|
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
||||||
|
'%Date%': Date,
|
||||||
|
'%decodeURI%': decodeURI,
|
||||||
|
'%decodeURIComponent%': decodeURIComponent,
|
||||||
|
'%encodeURI%': encodeURI,
|
||||||
|
'%encodeURIComponent%': encodeURIComponent,
|
||||||
|
'%Error%': $Error,
|
||||||
|
'%eval%': eval, // eslint-disable-line no-eval
|
||||||
|
'%EvalError%': $EvalError,
|
||||||
|
'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,
|
||||||
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
||||||
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
||||||
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
||||||
|
'%Function%': $Function,
|
||||||
|
'%GeneratorFunction%': needsEval,
|
||||||
|
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
||||||
|
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
||||||
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
||||||
|
'%isFinite%': isFinite,
|
||||||
|
'%isNaN%': isNaN,
|
||||||
|
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
||||||
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
||||||
|
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
||||||
|
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
||||||
|
'%Math%': Math,
|
||||||
|
'%Number%': Number,
|
||||||
|
'%Object%': $Object,
|
||||||
|
'%Object.getOwnPropertyDescriptor%': $gOPD,
|
||||||
|
'%parseFloat%': parseFloat,
|
||||||
|
'%parseInt%': parseInt,
|
||||||
|
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
||||||
|
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
||||||
|
'%RangeError%': $RangeError,
|
||||||
|
'%ReferenceError%': $ReferenceError,
|
||||||
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
||||||
|
'%RegExp%': RegExp,
|
||||||
|
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
||||||
|
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
|
||||||
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
||||||
|
'%String%': String,
|
||||||
|
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
|
||||||
|
'%Symbol%': hasSymbols ? Symbol : undefined,
|
||||||
|
'%SyntaxError%': $SyntaxError,
|
||||||
|
'%ThrowTypeError%': ThrowTypeError,
|
||||||
|
'%TypedArray%': TypedArray,
|
||||||
|
'%TypeError%': $TypeError,
|
||||||
|
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
||||||
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
||||||
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
||||||
|
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
||||||
|
'%URIError%': $URIError,
|
||||||
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
||||||
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
||||||
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
|
||||||
|
|
||||||
|
'%Function.prototype.call%': $call,
|
||||||
|
'%Function.prototype.apply%': $apply,
|
||||||
|
'%Object.defineProperty%': $defineProperty,
|
||||||
|
'%Object.getPrototypeOf%': $ObjectGPO,
|
||||||
|
'%Math.abs%': abs,
|
||||||
|
'%Math.floor%': floor,
|
||||||
|
'%Math.max%': max,
|
||||||
|
'%Math.min%': min,
|
||||||
|
'%Math.pow%': pow,
|
||||||
|
'%Math.round%': round,
|
||||||
|
'%Math.sign%': sign,
|
||||||
|
'%Reflect.getPrototypeOf%': $ReflectGPO
|
||||||
|
};
|
||||||
|
|
||||||
|
if (getProto) {
|
||||||
|
try {
|
||||||
|
null.error; // eslint-disable-line no-unused-expressions
|
||||||
|
} catch (e) {
|
||||||
|
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
||||||
|
var errorProto = getProto(getProto(e));
|
||||||
|
INTRINSICS['%Error.prototype%'] = errorProto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var doEval = function doEval(name) {
|
||||||
|
var value;
|
||||||
|
if (name === '%AsyncFunction%') {
|
||||||
|
value = getEvalledConstructor('async function () {}');
|
||||||
|
} else if (name === '%GeneratorFunction%') {
|
||||||
|
value = getEvalledConstructor('function* () {}');
|
||||||
|
} else if (name === '%AsyncGeneratorFunction%') {
|
||||||
|
value = getEvalledConstructor('async function* () {}');
|
||||||
|
} else if (name === '%AsyncGenerator%') {
|
||||||
|
var fn = doEval('%AsyncGeneratorFunction%');
|
||||||
|
if (fn) {
|
||||||
|
value = fn.prototype;
|
||||||
|
}
|
||||||
|
} else if (name === '%AsyncIteratorPrototype%') {
|
||||||
|
var gen = doEval('%AsyncGenerator%');
|
||||||
|
if (gen && getProto) {
|
||||||
|
value = getProto(gen.prototype);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
INTRINSICS[name] = value;
|
||||||
|
|
||||||
|
return value;
|
||||||
|
};
|
||||||
|
|
||||||
|
var LEGACY_ALIASES = {
|
||||||
|
__proto__: null,
|
||||||
|
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
||||||
|
'%ArrayPrototype%': ['Array', 'prototype'],
|
||||||
|
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
||||||
|
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
||||||
|
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
||||||
|
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
||||||
|
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
||||||
|
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
||||||
|
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
||||||
|
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
||||||
|
'%DataViewPrototype%': ['DataView', 'prototype'],
|
||||||
|
'%DatePrototype%': ['Date', 'prototype'],
|
||||||
|
'%ErrorPrototype%': ['Error', 'prototype'],
|
||||||
|
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
||||||
|
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
||||||
|
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
||||||
|
'%FunctionPrototype%': ['Function', 'prototype'],
|
||||||
|
'%Generator%': ['GeneratorFunction', 'prototype'],
|
||||||
|
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
||||||
|
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
||||||
|
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
||||||
|
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
||||||
|
'%JSONParse%': ['JSON', 'parse'],
|
||||||
|
'%JSONStringify%': ['JSON', 'stringify'],
|
||||||
|
'%MapPrototype%': ['Map', 'prototype'],
|
||||||
|
'%NumberPrototype%': ['Number', 'prototype'],
|
||||||
|
'%ObjectPrototype%': ['Object', 'prototype'],
|
||||||
|
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
||||||
|
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
||||||
|
'%PromisePrototype%': ['Promise', 'prototype'],
|
||||||
|
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
||||||
|
'%Promise_all%': ['Promise', 'all'],
|
||||||
|
'%Promise_reject%': ['Promise', 'reject'],
|
||||||
|
'%Promise_resolve%': ['Promise', 'resolve'],
|
||||||
|
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
||||||
|
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
||||||
|
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
||||||
|
'%SetPrototype%': ['Set', 'prototype'],
|
||||||
|
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
||||||
|
'%StringPrototype%': ['String', 'prototype'],
|
||||||
|
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
||||||
|
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
||||||
|
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
||||||
|
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
||||||
|
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
||||||
|
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
||||||
|
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
||||||
|
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
||||||
|
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
||||||
|
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
||||||
|
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
||||||
|
};
|
||||||
|
|
||||||
|
var bind = __nccwpck_require__(7564);
|
||||||
|
var hasOwn = __nccwpck_require__(4076);
|
||||||
|
var $concat = bind.call($call, Array.prototype.concat);
|
||||||
|
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
||||||
|
var $replace = bind.call($call, String.prototype.replace);
|
||||||
|
var $strSlice = bind.call($call, String.prototype.slice);
|
||||||
|
var $exec = bind.call($call, RegExp.prototype.exec);
|
||||||
|
|
||||||
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
||||||
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
||||||
|
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
||||||
|
var stringToPath = function stringToPath(string) {
|
||||||
|
var first = $strSlice(string, 0, 1);
|
||||||
|
var last = $strSlice(string, -1);
|
||||||
|
if (first === '%' && last !== '%') {
|
||||||
|
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
||||||
|
} else if (last === '%' && first !== '%') {
|
||||||
|
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
||||||
|
}
|
||||||
|
var result = [];
|
||||||
|
$replace(string, rePropName, function (match, number, quote, subString) {
|
||||||
|
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
||||||
|
});
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
/* end adaptation */
|
||||||
|
|
||||||
|
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
||||||
|
var intrinsicName = name;
|
||||||
|
var alias;
|
||||||
|
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
||||||
|
alias = LEGACY_ALIASES[intrinsicName];
|
||||||
|
intrinsicName = '%' + alias[0] + '%';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (hasOwn(INTRINSICS, intrinsicName)) {
|
||||||
|
var value = INTRINSICS[intrinsicName];
|
||||||
|
if (value === needsEval) {
|
||||||
|
value = doEval(intrinsicName);
|
||||||
|
}
|
||||||
|
if (typeof value === 'undefined' && !allowMissing) {
|
||||||
|
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
alias: alias,
|
||||||
|
name: intrinsicName,
|
||||||
|
value: value
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports = function GetIntrinsic(name, allowMissing) {
|
||||||
|
if (typeof name !== 'string' || name.length === 0) {
|
||||||
|
throw new $TypeError('intrinsic name must be a non-empty string');
|
||||||
|
}
|
||||||
|
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
||||||
|
throw new $TypeError('"allowMissing" argument must be a boolean');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
||||||
|
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
||||||
|
}
|
||||||
|
var parts = stringToPath(name);
|
||||||
|
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
||||||
|
|
||||||
|
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
||||||
|
var intrinsicRealName = intrinsic.name;
|
||||||
|
var value = intrinsic.value;
|
||||||
|
var skipFurtherCaching = false;
|
||||||
|
|
||||||
|
var alias = intrinsic.alias;
|
||||||
|
if (alias) {
|
||||||
|
intrinsicBaseName = alias[0];
|
||||||
|
$spliceApply(parts, $concat([0, 1], alias));
|
||||||
|
}
|
||||||
|
|
||||||
|
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
||||||
|
var part = parts[i];
|
||||||
|
var first = $strSlice(part, 0, 1);
|
||||||
|
var last = $strSlice(part, -1);
|
||||||
|
if (
|
||||||
|
(
|
||||||
|
(first === '"' || first === "'" || first === '`')
|
||||||
|
|| (last === '"' || last === "'" || last === '`')
|
||||||
|
)
|
||||||
|
&& first !== last
|
||||||
|
) {
|
||||||
|
throw new $SyntaxError('property names with quotes must have matching quotes');
|
||||||
|
}
|
||||||
|
if (part === 'constructor' || !isOwn) {
|
||||||
|
skipFurtherCaching = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
intrinsicBaseName += '.' + part;
|
||||||
|
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
||||||
|
|
||||||
|
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
||||||
|
value = INTRINSICS[intrinsicRealName];
|
||||||
|
} else if (value != null) {
|
||||||
|
if (!(part in value)) {
|
||||||
|
if (!allowMissing) {
|
||||||
|
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
||||||
|
}
|
||||||
|
return void undefined;
|
||||||
|
}
|
||||||
|
if ($gOPD && (i + 1) >= parts.length) {
|
||||||
|
var desc = $gOPD(value, part);
|
||||||
|
isOwn = !!desc;
|
||||||
|
|
||||||
|
// By convention, when a data property is converted to an accessor
|
||||||
|
// property to emulate a data property that does not suffer from
|
||||||
|
// the override mistake, that accessor's getter is marked with
|
||||||
|
// an `originalValue` property. Here, when we detect this, we
|
||||||
|
// uphold the illusion by pretending to see that original data
|
||||||
|
// property, i.e., returning the value rather than the getter
|
||||||
|
// itself.
|
||||||
|
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
||||||
|
value = desc.get;
|
||||||
|
} else {
|
||||||
|
value = value[part];
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
isOwn = hasOwn(value, part);
|
||||||
|
value = value[part];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isOwn && !skipFurtherCaching) {
|
||||||
|
INTRINSICS[intrinsicRealName] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 1311:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var $Object = __nccwpck_require__(5399);
|
||||||
|
|
||||||
|
/** @type {import('./Object.getPrototypeOf')} */
|
||||||
|
module.exports = $Object.getPrototypeOf || null;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 8681:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./Reflect.getPrototypeOf')} */
|
||||||
|
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 1967:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var reflectGetProto = __nccwpck_require__(8681);
|
||||||
|
var originalGetProto = __nccwpck_require__(1311);
|
||||||
|
|
||||||
|
var getDunderProto = __nccwpck_require__(6669);
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
module.exports = reflectGetProto
|
||||||
|
? function getProto(O) {
|
||||||
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
||||||
|
return reflectGetProto(O);
|
||||||
|
}
|
||||||
|
: originalGetProto
|
||||||
|
? function getProto(O) {
|
||||||
|
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
||||||
|
throw new TypeError('getProto: not an object');
|
||||||
|
}
|
||||||
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
||||||
|
return originalGetProto(O);
|
||||||
|
}
|
||||||
|
: getDunderProto
|
||||||
|
? function getProto(O) {
|
||||||
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
||||||
|
return getDunderProto(O);
|
||||||
|
}
|
||||||
|
: null;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 1174:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./gOPD')} */
|
||||||
|
module.exports = Object.getOwnPropertyDescriptor;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 3170:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
var $gOPD = __nccwpck_require__(1174);
|
||||||
|
|
||||||
|
if ($gOPD) {
|
||||||
|
try {
|
||||||
|
$gOPD([], 'length');
|
||||||
|
} catch (e) {
|
||||||
|
// IE 8 has a broken gOPD
|
||||||
|
$gOPD = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = $gOPD;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 3336:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
||||||
|
var hasSymbolSham = __nccwpck_require__(1114);
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
module.exports = function hasNativeSymbols() {
|
||||||
|
if (typeof origSymbol !== 'function') { return false; }
|
||||||
|
if (typeof Symbol !== 'function') { return false; }
|
||||||
|
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
||||||
|
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
||||||
|
|
||||||
|
return hasSymbolSham();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 1114:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./shams')} */
|
||||||
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
||||||
|
module.exports = function hasSymbols() {
|
||||||
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
||||||
|
if (typeof Symbol.iterator === 'symbol') { return true; }
|
||||||
|
|
||||||
|
/** @type {{ [k in symbol]?: unknown }} */
|
||||||
|
var obj = {};
|
||||||
|
var sym = Symbol('test');
|
||||||
|
var symObj = Object(sym);
|
||||||
|
if (typeof sym === 'string') { return false; }
|
||||||
|
|
||||||
|
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
||||||
|
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
||||||
|
|
||||||
|
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
||||||
|
// if (sym instanceof Symbol) { return false; }
|
||||||
|
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
||||||
|
// if (!(symObj instanceof Symbol)) { return false; }
|
||||||
|
|
||||||
|
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
||||||
|
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
||||||
|
|
||||||
|
var symVal = 42;
|
||||||
|
obj[sym] = symVal;
|
||||||
|
for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
||||||
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
||||||
|
|
||||||
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
||||||
|
|
||||||
|
var syms = Object.getOwnPropertySymbols(obj);
|
||||||
|
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
||||||
|
|
||||||
|
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
||||||
|
|
||||||
|
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
||||||
|
// eslint-disable-next-line no-extra-parens
|
||||||
|
var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
|
||||||
|
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 5479:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var hasSymbols = __nccwpck_require__(1114);
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
module.exports = function hasToStringTagShams() {
|
||||||
|
return hasSymbols() && !!Symbol.toStringTag;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 4076:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var call = Function.prototype.call;
|
||||||
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
||||||
|
var bind = __nccwpck_require__(7564);
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
module.exports = bind.call(call, $hasOwn);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 5641:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./abs')} */
|
||||||
|
module.exports = Math.abs;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 6171:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./floor')} */
|
||||||
|
module.exports = Math.floor;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 7044:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./isNaN')} */
|
||||||
|
module.exports = Number.isNaN || function isNaN(a) {
|
||||||
|
return a !== a;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 7147:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./max')} */
|
||||||
|
module.exports = Math.max;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 1017:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./min')} */
|
||||||
|
module.exports = Math.min;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 6947:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./pow')} */
|
||||||
|
module.exports = Math.pow;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 2621:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./round')} */
|
||||||
|
module.exports = Math.round;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 156:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var $isNaN = __nccwpck_require__(7044);
|
||||||
|
|
||||||
|
/** @type {import('./sign')} */
|
||||||
|
module.exports = function sign(number) {
|
||||||
|
if ($isNaN(number) || number === 0) {
|
||||||
|
return number;
|
||||||
|
}
|
||||||
|
return number < 0 ? -1 : +1;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 9829:
|
/***/ 9829:
|
||||||
@@ -88677,10 +89747,10 @@ exports.STATE_CACHE_MATCHED_KEY = exports.STATE_CACHE_KEY = void 0;
|
|||||||
exports.restoreCache = restoreCache;
|
exports.restoreCache = restoreCache;
|
||||||
const cache = __importStar(__nccwpck_require__(5116));
|
const cache = __importStar(__nccwpck_require__(5116));
|
||||||
const core = __importStar(__nccwpck_require__(7484));
|
const core = __importStar(__nccwpck_require__(7484));
|
||||||
|
const exec = __importStar(__nccwpck_require__(5236));
|
||||||
|
const hash_files_1 = __nccwpck_require__(9660);
|
||||||
const inputs_1 = __nccwpck_require__(9612);
|
const inputs_1 = __nccwpck_require__(9612);
|
||||||
const platforms_1 = __nccwpck_require__(8361);
|
const platforms_1 = __nccwpck_require__(8361);
|
||||||
const hash_files_1 = __nccwpck_require__(9660);
|
|
||||||
const exec = __importStar(__nccwpck_require__(5236));
|
|
||||||
exports.STATE_CACHE_KEY = "cache-key";
|
exports.STATE_CACHE_KEY = "cache-key";
|
||||||
exports.STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
exports.STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
||||||
const CACHE_VERSION = "1";
|
const CACHE_VERSION = "1";
|
||||||
@@ -88724,12 +89794,12 @@ async function getPythonVersion() {
|
|||||||
}
|
}
|
||||||
let output = "";
|
let output = "";
|
||||||
const options = {
|
const options = {
|
||||||
silent: !core.isDebug(),
|
|
||||||
listeners: {
|
listeners: {
|
||||||
stdout: (data) => {
|
stdout: (data) => {
|
||||||
output += data.toString();
|
output += data.toString();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
silent: !core.isDebug(),
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
const execArgs = ["python", "find", "--directory", inputs_1.workingDirectory];
|
const execArgs = ["python", "find", "--directory", inputs_1.workingDirectory];
|
||||||
@@ -88801,10 +89871,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.hashFiles = hashFiles;
|
exports.hashFiles = hashFiles;
|
||||||
const crypto = __importStar(__nccwpck_require__(7598));
|
const crypto = __importStar(__nccwpck_require__(7598));
|
||||||
const core = __importStar(__nccwpck_require__(7484));
|
|
||||||
const fs = __importStar(__nccwpck_require__(3024));
|
const fs = __importStar(__nccwpck_require__(3024));
|
||||||
const stream = __importStar(__nccwpck_require__(7075));
|
const stream = __importStar(__nccwpck_require__(7075));
|
||||||
const util = __importStar(__nccwpck_require__(7975));
|
const util = __importStar(__nccwpck_require__(7975));
|
||||||
|
const core = __importStar(__nccwpck_require__(7484));
|
||||||
const glob_1 = __nccwpck_require__(7206);
|
const glob_1 = __nccwpck_require__(7206);
|
||||||
/**
|
/**
|
||||||
* Hashes files matching the given glob pattern.
|
* Hashes files matching the given glob pattern.
|
||||||
@@ -88887,10 +89957,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|||||||
})();
|
})();
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.run = run;
|
exports.run = run;
|
||||||
|
const fs = __importStar(__nccwpck_require__(3024));
|
||||||
const cache = __importStar(__nccwpck_require__(5116));
|
const cache = __importStar(__nccwpck_require__(5116));
|
||||||
const core = __importStar(__nccwpck_require__(7484));
|
const core = __importStar(__nccwpck_require__(7484));
|
||||||
const exec = __importStar(__nccwpck_require__(5236));
|
const exec = __importStar(__nccwpck_require__(5236));
|
||||||
const fs = __importStar(__nccwpck_require__(3024));
|
|
||||||
const restore_cache_1 = __nccwpck_require__(5391);
|
const restore_cache_1 = __nccwpck_require__(5391);
|
||||||
const inputs_1 = __nccwpck_require__(9612);
|
const inputs_1 = __nccwpck_require__(9612);
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -88999,8 +90069,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.manifestFile = exports.githubToken = exports.serverUrl = exports.toolDir = exports.toolBinDir = exports.ignoreEmptyWorkdir = exports.ignoreNothingToCache = exports.pruneCache = exports.cacheDependencyGlob = exports.cacheLocalPath = exports.cacheSuffix = exports.enableCache = exports.checkSum = exports.activateEnvironment = exports.pythonVersion = exports.versionFile = exports.version = exports.workingDirectory = void 0;
|
exports.manifestFile = exports.githubToken = exports.serverUrl = exports.toolDir = exports.toolBinDir = exports.ignoreEmptyWorkdir = exports.ignoreNothingToCache = exports.pruneCache = exports.cacheDependencyGlob = exports.cacheLocalPath = exports.cacheSuffix = exports.enableCache = exports.checkSum = exports.activateEnvironment = exports.pythonVersion = exports.versionFile = exports.version = exports.workingDirectory = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(7484));
|
|
||||||
const node_path_1 = __importDefault(__nccwpck_require__(6760));
|
const node_path_1 = __importDefault(__nccwpck_require__(6760));
|
||||||
|
const core = __importStar(__nccwpck_require__(7484));
|
||||||
exports.workingDirectory = core.getInput("working-directory");
|
exports.workingDirectory = core.getInput("working-directory");
|
||||||
exports.version = core.getInput("version");
|
exports.version = core.getInput("version");
|
||||||
exports.versionFile = getVersionFile();
|
exports.versionFile = getVersionFile();
|
||||||
@@ -89161,16 +90231,16 @@ var __importStar = (this && this.__importStar) || (function () {
|
|||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.getArch = getArch;
|
exports.getArch = getArch;
|
||||||
exports.getPlatform = getPlatform;
|
exports.getPlatform = getPlatform;
|
||||||
const exec = __importStar(__nccwpck_require__(5236));
|
|
||||||
const core = __importStar(__nccwpck_require__(7484));
|
const core = __importStar(__nccwpck_require__(7484));
|
||||||
|
const exec = __importStar(__nccwpck_require__(5236));
|
||||||
function getArch() {
|
function getArch() {
|
||||||
const arch = process.arch;
|
const arch = process.arch;
|
||||||
const archMapping = {
|
const archMapping = {
|
||||||
ia32: "i686",
|
|
||||||
x64: "x86_64",
|
|
||||||
arm64: "aarch64",
|
arm64: "aarch64",
|
||||||
s390x: "s390x",
|
ia32: "i686",
|
||||||
ppc64: "powerpc64le",
|
ppc64: "powerpc64le",
|
||||||
|
s390x: "s390x",
|
||||||
|
x64: "x86_64",
|
||||||
};
|
};
|
||||||
if (arch in archMapping) {
|
if (arch in archMapping) {
|
||||||
return archMapping[arch];
|
return archMapping[arch];
|
||||||
@@ -89179,8 +90249,8 @@ function getArch() {
|
|||||||
async function getPlatform() {
|
async function getPlatform() {
|
||||||
const processPlatform = process.platform;
|
const processPlatform = process.platform;
|
||||||
const platformMapping = {
|
const platformMapping = {
|
||||||
linux: "unknown-linux-gnu",
|
|
||||||
darwin: "apple-darwin",
|
darwin: "apple-darwin",
|
||||||
|
linux: "unknown-linux-gnu",
|
||||||
win32: "pc-windows-msvc",
|
win32: "pc-windows-msvc",
|
||||||
};
|
};
|
||||||
if (processPlatform in platformMapping) {
|
if (processPlatform in platformMapping) {
|
||||||
@@ -89196,16 +90266,16 @@ async function isMuslOs() {
|
|||||||
let stdOutput = "";
|
let stdOutput = "";
|
||||||
let errOutput = "";
|
let errOutput = "";
|
||||||
const options = {
|
const options = {
|
||||||
silent: !core.isDebug(),
|
ignoreReturnCode: true,
|
||||||
listeners: {
|
listeners: {
|
||||||
stdout: (data) => {
|
|
||||||
stdOutput += data.toString();
|
|
||||||
},
|
|
||||||
stderr: (data) => {
|
stderr: (data) => {
|
||||||
errOutput += data.toString();
|
errOutput += data.toString();
|
||||||
},
|
},
|
||||||
|
stdout: (data) => {
|
||||||
|
stdOutput += data.toString();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
ignoreReturnCode: true,
|
silent: !core.isDebug(),
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
const execArgs = ["--version"];
|
const execArgs = ["--version"];
|
||||||
|
|||||||
1452
dist/setup/index.js
generated
vendored
1452
dist/setup/index.js
generated
vendored
@@ -37602,6 +37602,9 @@ exports.userAgentPolicy = userAgentPolicy;
|
|||||||
/***/ 90172:
|
/***/ 90172:
|
||||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
var CombinedStream = __nccwpck_require__(35630);
|
var CombinedStream = __nccwpck_require__(35630);
|
||||||
var util = __nccwpck_require__(39023);
|
var util = __nccwpck_require__(39023);
|
||||||
var path = __nccwpck_require__(16928);
|
var path = __nccwpck_require__(16928);
|
||||||
@@ -37610,23 +37613,20 @@ var https = __nccwpck_require__(65692);
|
|||||||
var parseUrl = (__nccwpck_require__(87016).parse);
|
var parseUrl = (__nccwpck_require__(87016).parse);
|
||||||
var fs = __nccwpck_require__(79896);
|
var fs = __nccwpck_require__(79896);
|
||||||
var Stream = (__nccwpck_require__(2203).Stream);
|
var Stream = (__nccwpck_require__(2203).Stream);
|
||||||
|
var crypto = __nccwpck_require__(76982);
|
||||||
var mime = __nccwpck_require__(14096);
|
var mime = __nccwpck_require__(14096);
|
||||||
var asynckit = __nccwpck_require__(31324);
|
var asynckit = __nccwpck_require__(31324);
|
||||||
|
var setToStringTag = __nccwpck_require__(88700);
|
||||||
|
var hasOwn = __nccwpck_require__(54076);
|
||||||
var populate = __nccwpck_require__(32209);
|
var populate = __nccwpck_require__(32209);
|
||||||
|
|
||||||
// Public API
|
|
||||||
module.exports = FormData;
|
|
||||||
|
|
||||||
// make it a Stream
|
|
||||||
util.inherits(FormData, CombinedStream);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create readable "multipart/form-data" streams.
|
* Create readable "multipart/form-data" streams.
|
||||||
* Can be used to submit forms
|
* Can be used to submit forms
|
||||||
* and file uploads to other web applications.
|
* and file uploads to other web applications.
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {Object} options - Properties to be added/overriden for FormData and CombinedStream
|
* @param {object} options - Properties to be added/overriden for FormData and CombinedStream
|
||||||
*/
|
*/
|
||||||
function FormData(options) {
|
function FormData(options) {
|
||||||
if (!(this instanceof FormData)) {
|
if (!(this instanceof FormData)) {
|
||||||
@@ -37639,35 +37639,39 @@ function FormData(options) {
|
|||||||
|
|
||||||
CombinedStream.call(this);
|
CombinedStream.call(this);
|
||||||
|
|
||||||
options = options || {};
|
options = options || {}; // eslint-disable-line no-param-reassign
|
||||||
for (var option in options) {
|
for (var option in options) { // eslint-disable-line no-restricted-syntax
|
||||||
this[option] = options[option];
|
this[option] = options[option];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// make it a Stream
|
||||||
|
util.inherits(FormData, CombinedStream);
|
||||||
|
|
||||||
FormData.LINE_BREAK = '\r\n';
|
FormData.LINE_BREAK = '\r\n';
|
||||||
FormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream';
|
FormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream';
|
||||||
|
|
||||||
FormData.prototype.append = function(field, value, options) {
|
FormData.prototype.append = function (field, value, options) {
|
||||||
|
options = options || {}; // eslint-disable-line no-param-reassign
|
||||||
options = options || {};
|
|
||||||
|
|
||||||
// allow filename as single option
|
// allow filename as single option
|
||||||
if (typeof options == 'string') {
|
if (typeof options === 'string') {
|
||||||
options = {filename: options};
|
options = { filename: options }; // eslint-disable-line no-param-reassign
|
||||||
}
|
}
|
||||||
|
|
||||||
var append = CombinedStream.prototype.append.bind(this);
|
var append = CombinedStream.prototype.append.bind(this);
|
||||||
|
|
||||||
// all that streamy business can't handle numbers
|
// all that streamy business can't handle numbers
|
||||||
if (typeof value == 'number') {
|
if (typeof value === 'number' || value == null) {
|
||||||
value = '' + value;
|
value = String(value); // eslint-disable-line no-param-reassign
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/felixge/node-form-data/issues/38
|
// https://github.com/felixge/node-form-data/issues/38
|
||||||
if (util.isArray(value)) {
|
if (Array.isArray(value)) {
|
||||||
// Please convert your array into string
|
/*
|
||||||
// the way web server expects it
|
* Please convert your array into string
|
||||||
|
* the way web server expects it
|
||||||
|
*/
|
||||||
this._error(new Error('Arrays are not supported.'));
|
this._error(new Error('Arrays are not supported.'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -37683,15 +37687,17 @@ FormData.prototype.append = function(field, value, options) {
|
|||||||
this._trackLength(header, value, options);
|
this._trackLength(header, value, options);
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._trackLength = function(header, value, options) {
|
FormData.prototype._trackLength = function (header, value, options) {
|
||||||
var valueLength = 0;
|
var valueLength = 0;
|
||||||
|
|
||||||
// used w/ getLengthSync(), when length is known.
|
/*
|
||||||
// e.g. for streaming directly from a remote server,
|
* used w/ getLengthSync(), when length is known.
|
||||||
// w/ a known file a size, and not wanting to wait for
|
* e.g. for streaming directly from a remote server,
|
||||||
// incoming file to finish to get its size.
|
* w/ a known file a size, and not wanting to wait for
|
||||||
|
* incoming file to finish to get its size.
|
||||||
|
*/
|
||||||
if (options.knownLength != null) {
|
if (options.knownLength != null) {
|
||||||
valueLength += +options.knownLength;
|
valueLength += Number(options.knownLength);
|
||||||
} else if (Buffer.isBuffer(value)) {
|
} else if (Buffer.isBuffer(value)) {
|
||||||
valueLength = value.length;
|
valueLength = value.length;
|
||||||
} else if (typeof value === 'string') {
|
} else if (typeof value === 'string') {
|
||||||
@@ -37701,12 +37707,10 @@ FormData.prototype._trackLength = function(header, value, options) {
|
|||||||
this._valueLength += valueLength;
|
this._valueLength += valueLength;
|
||||||
|
|
||||||
// @check why add CRLF? does this account for custom/multiple CRLFs?
|
// @check why add CRLF? does this account for custom/multiple CRLFs?
|
||||||
this._overheadLength +=
|
this._overheadLength += Buffer.byteLength(header) + FormData.LINE_BREAK.length;
|
||||||
Buffer.byteLength(header) +
|
|
||||||
FormData.LINE_BREAK.length;
|
|
||||||
|
|
||||||
// empty or either doesn't have path or not an http response or not a stream
|
// empty or either doesn't have path or not an http response or not a stream
|
||||||
if (!value || ( !value.path && !(value.readable && value.hasOwnProperty('httpVersion')) && !(value instanceof Stream))) {
|
if (!value || (!value.path && !(value.readable && hasOwn(value, 'httpVersion')) && !(value instanceof Stream))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37716,10 +37720,8 @@ FormData.prototype._trackLength = function(header, value, options) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._lengthRetriever = function(value, callback) {
|
FormData.prototype._lengthRetriever = function (value, callback) {
|
||||||
|
if (hasOwn(value, 'fd')) {
|
||||||
if (value.hasOwnProperty('fd')) {
|
|
||||||
|
|
||||||
// take read range into a account
|
// take read range into a account
|
||||||
// `end` = Infinity –> read file till the end
|
// `end` = Infinity –> read file till the end
|
||||||
//
|
//
|
||||||
@@ -37728,54 +37730,52 @@ FormData.prototype._lengthRetriever = function(value, callback) {
|
|||||||
// Fix it when node fixes it.
|
// Fix it when node fixes it.
|
||||||
// https://github.com/joyent/node/issues/7819
|
// https://github.com/joyent/node/issues/7819
|
||||||
if (value.end != undefined && value.end != Infinity && value.start != undefined) {
|
if (value.end != undefined && value.end != Infinity && value.start != undefined) {
|
||||||
|
|
||||||
// when end specified
|
// when end specified
|
||||||
// no need to calculate range
|
// no need to calculate range
|
||||||
// inclusive, starts with 0
|
// inclusive, starts with 0
|
||||||
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
callback(null, value.end + 1 - (value.start ? value.start : 0)); // eslint-disable-line callback-return
|
||||||
|
|
||||||
// not that fast snoopy
|
// not that fast snoopy
|
||||||
} else {
|
} else {
|
||||||
// still need to fetch file size from fs
|
// still need to fetch file size from fs
|
||||||
fs.stat(value.path, function(err, stat) {
|
fs.stat(value.path, function (err, stat) {
|
||||||
|
|
||||||
var fileSize;
|
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
callback(err);
|
callback(err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// update final size based on the range options
|
// update final size based on the range options
|
||||||
fileSize = stat.size - (value.start ? value.start : 0);
|
var fileSize = stat.size - (value.start ? value.start : 0);
|
||||||
callback(null, fileSize);
|
callback(null, fileSize);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// or http response
|
// or http response
|
||||||
} else if (value.hasOwnProperty('httpVersion')) {
|
} else if (hasOwn(value, 'httpVersion')) {
|
||||||
callback(null, +value.headers['content-length']);
|
callback(null, Number(value.headers['content-length'])); // eslint-disable-line callback-return
|
||||||
|
|
||||||
// or request stream http://github.com/mikeal/request
|
// or request stream http://github.com/mikeal/request
|
||||||
} else if (value.hasOwnProperty('httpModule')) {
|
} else if (hasOwn(value, 'httpModule')) {
|
||||||
// wait till response come back
|
// wait till response come back
|
||||||
value.on('response', function(response) {
|
value.on('response', function (response) {
|
||||||
value.pause();
|
value.pause();
|
||||||
callback(null, +response.headers['content-length']);
|
callback(null, Number(response.headers['content-length']));
|
||||||
});
|
});
|
||||||
value.resume();
|
value.resume();
|
||||||
|
|
||||||
// something else
|
// something else
|
||||||
} else {
|
} else {
|
||||||
callback('Unknown stream');
|
callback('Unknown stream'); // eslint-disable-line callback-return
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._multiPartHeader = function(field, value, options) {
|
FormData.prototype._multiPartHeader = function (field, value, options) {
|
||||||
// custom header specified (as string)?
|
/*
|
||||||
// it becomes responsible for boundary
|
* custom header specified (as string)?
|
||||||
// (e.g. to handle extra CRLFs on .NET servers)
|
* it becomes responsible for boundary
|
||||||
if (typeof options.header == 'string') {
|
* (e.g. to handle extra CRLFs on .NET servers)
|
||||||
|
*/
|
||||||
|
if (typeof options.header === 'string') {
|
||||||
return options.header;
|
return options.header;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37783,7 +37783,7 @@ FormData.prototype._multiPartHeader = function(field, value, options) {
|
|||||||
var contentType = this._getContentType(value, options);
|
var contentType = this._getContentType(value, options);
|
||||||
|
|
||||||
var contents = '';
|
var contents = '';
|
||||||
var headers = {
|
var headers = {
|
||||||
// add custom disposition as third element or keep it two elements if not
|
// add custom disposition as third element or keep it two elements if not
|
||||||
'Content-Disposition': ['form-data', 'name="' + field + '"'].concat(contentDisposition || []),
|
'Content-Disposition': ['form-data', 'name="' + field + '"'].concat(contentDisposition || []),
|
||||||
// if no content type. allow it to be empty array
|
// if no content type. allow it to be empty array
|
||||||
@@ -37791,77 +37791,74 @@ FormData.prototype._multiPartHeader = function(field, value, options) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// allow custom headers.
|
// allow custom headers.
|
||||||
if (typeof options.header == 'object') {
|
if (typeof options.header === 'object') {
|
||||||
populate(headers, options.header);
|
populate(headers, options.header);
|
||||||
}
|
}
|
||||||
|
|
||||||
var header;
|
var header;
|
||||||
for (var prop in headers) {
|
for (var prop in headers) { // eslint-disable-line no-restricted-syntax
|
||||||
if (!headers.hasOwnProperty(prop)) continue;
|
if (hasOwn(headers, prop)) {
|
||||||
header = headers[prop];
|
header = headers[prop];
|
||||||
|
|
||||||
// skip nullish headers.
|
// skip nullish headers.
|
||||||
if (header == null) {
|
if (header == null) {
|
||||||
continue;
|
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// convert all headers to arrays.
|
// convert all headers to arrays.
|
||||||
if (!Array.isArray(header)) {
|
if (!Array.isArray(header)) {
|
||||||
header = [header];
|
header = [header];
|
||||||
}
|
}
|
||||||
|
|
||||||
// add non-empty headers.
|
// add non-empty headers.
|
||||||
if (header.length) {
|
if (header.length) {
|
||||||
contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK;
|
contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK;
|
return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK;
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._getContentDisposition = function(value, options) {
|
FormData.prototype._getContentDisposition = function (value, options) { // eslint-disable-line consistent-return
|
||||||
|
var filename;
|
||||||
var filename
|
|
||||||
, contentDisposition
|
|
||||||
;
|
|
||||||
|
|
||||||
if (typeof options.filepath === 'string') {
|
if (typeof options.filepath === 'string') {
|
||||||
// custom filepath for relative paths
|
// custom filepath for relative paths
|
||||||
filename = path.normalize(options.filepath).replace(/\\/g, '/');
|
filename = path.normalize(options.filepath).replace(/\\/g, '/');
|
||||||
} else if (options.filename || value.name || value.path) {
|
} else if (options.filename || (value && (value.name || value.path))) {
|
||||||
// custom filename take precedence
|
/*
|
||||||
// formidable and the browser add a name property
|
* custom filename take precedence
|
||||||
// fs- and request- streams have path property
|
* formidable and the browser add a name property
|
||||||
filename = path.basename(options.filename || value.name || value.path);
|
* fs- and request- streams have path property
|
||||||
} else if (value.readable && value.hasOwnProperty('httpVersion')) {
|
*/
|
||||||
|
filename = path.basename(options.filename || (value && (value.name || value.path)));
|
||||||
|
} else if (value && value.readable && hasOwn(value, 'httpVersion')) {
|
||||||
// or try http response
|
// or try http response
|
||||||
filename = path.basename(value.client._httpMessage.path || '');
|
filename = path.basename(value.client._httpMessage.path || '');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filename) {
|
if (filename) {
|
||||||
contentDisposition = 'filename="' + filename + '"';
|
return 'filename="' + filename + '"';
|
||||||
}
|
}
|
||||||
|
|
||||||
return contentDisposition;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._getContentType = function(value, options) {
|
FormData.prototype._getContentType = function (value, options) {
|
||||||
|
|
||||||
// use custom content-type above all
|
// use custom content-type above all
|
||||||
var contentType = options.contentType;
|
var contentType = options.contentType;
|
||||||
|
|
||||||
// or try `name` from formidable, browser
|
// or try `name` from formidable, browser
|
||||||
if (!contentType && value.name) {
|
if (!contentType && value && value.name) {
|
||||||
contentType = mime.lookup(value.name);
|
contentType = mime.lookup(value.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
// or try `path` from fs-, request- streams
|
// or try `path` from fs-, request- streams
|
||||||
if (!contentType && value.path) {
|
if (!contentType && value && value.path) {
|
||||||
contentType = mime.lookup(value.path);
|
contentType = mime.lookup(value.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
// or if it's http-reponse
|
// or if it's http-reponse
|
||||||
if (!contentType && value.readable && value.hasOwnProperty('httpVersion')) {
|
if (!contentType && value && value.readable && hasOwn(value, 'httpVersion')) {
|
||||||
contentType = value.headers['content-type'];
|
contentType = value.headers['content-type'];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37871,18 +37868,18 @@ FormData.prototype._getContentType = function(value, options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// fallback to the default content type if `value` is not simple value
|
// fallback to the default content type if `value` is not simple value
|
||||||
if (!contentType && typeof value == 'object') {
|
if (!contentType && value && typeof value === 'object') {
|
||||||
contentType = FormData.DEFAULT_CONTENT_TYPE;
|
contentType = FormData.DEFAULT_CONTENT_TYPE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return contentType;
|
return contentType;
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._multiPartFooter = function() {
|
FormData.prototype._multiPartFooter = function () {
|
||||||
return function(next) {
|
return function (next) {
|
||||||
var footer = FormData.LINE_BREAK;
|
var footer = FormData.LINE_BREAK;
|
||||||
|
|
||||||
var lastPart = (this._streams.length === 0);
|
var lastPart = this._streams.length === 0;
|
||||||
if (lastPart) {
|
if (lastPart) {
|
||||||
footer += this._lastBoundary();
|
footer += this._lastBoundary();
|
||||||
}
|
}
|
||||||
@@ -37891,18 +37888,18 @@ FormData.prototype._multiPartFooter = function() {
|
|||||||
}.bind(this);
|
}.bind(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._lastBoundary = function() {
|
FormData.prototype._lastBoundary = function () {
|
||||||
return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK;
|
return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK;
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype.getHeaders = function(userHeaders) {
|
FormData.prototype.getHeaders = function (userHeaders) {
|
||||||
var header;
|
var header;
|
||||||
var formHeaders = {
|
var formHeaders = {
|
||||||
'content-type': 'multipart/form-data; boundary=' + this.getBoundary()
|
'content-type': 'multipart/form-data; boundary=' + this.getBoundary()
|
||||||
};
|
};
|
||||||
|
|
||||||
for (header in userHeaders) {
|
for (header in userHeaders) { // eslint-disable-line no-restricted-syntax
|
||||||
if (userHeaders.hasOwnProperty(header)) {
|
if (hasOwn(userHeaders, header)) {
|
||||||
formHeaders[header.toLowerCase()] = userHeaders[header];
|
formHeaders[header.toLowerCase()] = userHeaders[header];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -37910,11 +37907,14 @@ FormData.prototype.getHeaders = function(userHeaders) {
|
|||||||
return formHeaders;
|
return formHeaders;
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype.setBoundary = function(boundary) {
|
FormData.prototype.setBoundary = function (boundary) {
|
||||||
|
if (typeof boundary !== 'string') {
|
||||||
|
throw new TypeError('FormData boundary must be a string');
|
||||||
|
}
|
||||||
this._boundary = boundary;
|
this._boundary = boundary;
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype.getBoundary = function() {
|
FormData.prototype.getBoundary = function () {
|
||||||
if (!this._boundary) {
|
if (!this._boundary) {
|
||||||
this._generateBoundary();
|
this._generateBoundary();
|
||||||
}
|
}
|
||||||
@@ -37922,60 +37922,55 @@ FormData.prototype.getBoundary = function() {
|
|||||||
return this._boundary;
|
return this._boundary;
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype.getBuffer = function() {
|
FormData.prototype.getBuffer = function () {
|
||||||
var dataBuffer = new Buffer.alloc( 0 );
|
var dataBuffer = new Buffer.alloc(0); // eslint-disable-line new-cap
|
||||||
var boundary = this.getBoundary();
|
var boundary = this.getBoundary();
|
||||||
|
|
||||||
// Create the form content. Add Line breaks to the end of data.
|
// Create the form content. Add Line breaks to the end of data.
|
||||||
for (var i = 0, len = this._streams.length; i < len; i++) {
|
for (var i = 0, len = this._streams.length; i < len; i++) {
|
||||||
if (typeof this._streams[i] !== 'function') {
|
if (typeof this._streams[i] !== 'function') {
|
||||||
|
|
||||||
// Add content to the buffer.
|
// Add content to the buffer.
|
||||||
if(Buffer.isBuffer(this._streams[i])) {
|
if (Buffer.isBuffer(this._streams[i])) {
|
||||||
dataBuffer = Buffer.concat( [dataBuffer, this._streams[i]]);
|
dataBuffer = Buffer.concat([dataBuffer, this._streams[i]]);
|
||||||
}else {
|
} else {
|
||||||
dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(this._streams[i])]);
|
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add break after content.
|
// Add break after content.
|
||||||
if (typeof this._streams[i] !== 'string' || this._streams[i].substring( 2, boundary.length + 2 ) !== boundary) {
|
if (typeof this._streams[i] !== 'string' || this._streams[i].substring(2, boundary.length + 2) !== boundary) {
|
||||||
dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(FormData.LINE_BREAK)] );
|
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData.LINE_BREAK)]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the footer and return the Buffer object.
|
// Add the footer and return the Buffer object.
|
||||||
return Buffer.concat( [dataBuffer, Buffer.from(this._lastBoundary())] );
|
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._generateBoundary = function() {
|
FormData.prototype._generateBoundary = function () {
|
||||||
// This generates a 50 character boundary similar to those used by Firefox.
|
// This generates a 50 character boundary similar to those used by Firefox.
|
||||||
// They are optimized for boyer-moore parsing.
|
|
||||||
var boundary = '--------------------------';
|
|
||||||
for (var i = 0; i < 24; i++) {
|
|
||||||
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
||||||
}
|
|
||||||
|
|
||||||
this._boundary = boundary;
|
// They are optimized for boyer-moore parsing.
|
||||||
|
this._boundary = '--------------------------' + crypto.randomBytes(12).toString('hex');
|
||||||
};
|
};
|
||||||
|
|
||||||
// Note: getLengthSync DOESN'T calculate streams length
|
// Note: getLengthSync DOESN'T calculate streams length
|
||||||
// As workaround one can calculate file size manually
|
// As workaround one can calculate file size manually and add it as knownLength option
|
||||||
// and add it as knownLength option
|
FormData.prototype.getLengthSync = function () {
|
||||||
FormData.prototype.getLengthSync = function() {
|
|
||||||
var knownLength = this._overheadLength + this._valueLength;
|
var knownLength = this._overheadLength + this._valueLength;
|
||||||
|
|
||||||
// Don't get confused, there are 3 "internal" streams for each keyval pair
|
// Don't get confused, there are 3 "internal" streams for each keyval pair so it basically checks if there is any value added to the form
|
||||||
// so it basically checks if there is any value added to the form
|
|
||||||
if (this._streams.length) {
|
if (this._streams.length) {
|
||||||
knownLength += this._lastBoundary().length;
|
knownLength += this._lastBoundary().length;
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/form-data/form-data/issues/40
|
// https://github.com/form-data/form-data/issues/40
|
||||||
if (!this.hasKnownLength()) {
|
if (!this.hasKnownLength()) {
|
||||||
// Some async length retrievers are present
|
/*
|
||||||
// therefore synchronous length calculation is false.
|
* Some async length retrievers are present
|
||||||
// Please use getLength(callback) to get proper length
|
* therefore synchronous length calculation is false.
|
||||||
|
* Please use getLength(callback) to get proper length
|
||||||
|
*/
|
||||||
this._error(new Error('Cannot calculate proper length in synchronous way.'));
|
this._error(new Error('Cannot calculate proper length in synchronous way.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37985,7 +37980,7 @@ FormData.prototype.getLengthSync = function() {
|
|||||||
// Public API to check if length of added values is known
|
// Public API to check if length of added values is known
|
||||||
// https://github.com/form-data/form-data/issues/196
|
// https://github.com/form-data/form-data/issues/196
|
||||||
// https://github.com/form-data/form-data/issues/262
|
// https://github.com/form-data/form-data/issues/262
|
||||||
FormData.prototype.hasKnownLength = function() {
|
FormData.prototype.hasKnownLength = function () {
|
||||||
var hasKnownLength = true;
|
var hasKnownLength = true;
|
||||||
|
|
||||||
if (this._valuesToMeasure.length) {
|
if (this._valuesToMeasure.length) {
|
||||||
@@ -37995,7 +37990,7 @@ FormData.prototype.hasKnownLength = function() {
|
|||||||
return hasKnownLength;
|
return hasKnownLength;
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype.getLength = function(cb) {
|
FormData.prototype.getLength = function (cb) {
|
||||||
var knownLength = this._overheadLength + this._valueLength;
|
var knownLength = this._overheadLength + this._valueLength;
|
||||||
|
|
||||||
if (this._streams.length) {
|
if (this._streams.length) {
|
||||||
@@ -38007,13 +38002,13 @@ FormData.prototype.getLength = function(cb) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
|
asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function (err, values) {
|
||||||
if (err) {
|
if (err) {
|
||||||
cb(err);
|
cb(err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
values.forEach(function(length) {
|
values.forEach(function (length) {
|
||||||
knownLength += length;
|
knownLength += length;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -38021,31 +38016,26 @@ FormData.prototype.getLength = function(cb) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype.submit = function(params, cb) {
|
FormData.prototype.submit = function (params, cb) {
|
||||||
var request
|
var request;
|
||||||
, options
|
var options;
|
||||||
, defaults = {method: 'post'}
|
var defaults = { method: 'post' };
|
||||||
;
|
|
||||||
|
|
||||||
// parse provided url if it's string
|
// parse provided url if it's string or treat it as options object
|
||||||
// or treat it as options object
|
if (typeof params === 'string') {
|
||||||
if (typeof params == 'string') {
|
params = parseUrl(params); // eslint-disable-line no-param-reassign
|
||||||
|
/* eslint sort-keys: 0 */
|
||||||
params = parseUrl(params);
|
|
||||||
options = populate({
|
options = populate({
|
||||||
port: params.port,
|
port: params.port,
|
||||||
path: params.pathname,
|
path: params.pathname,
|
||||||
host: params.hostname,
|
host: params.hostname,
|
||||||
protocol: params.protocol
|
protocol: params.protocol
|
||||||
}, defaults);
|
}, defaults);
|
||||||
|
} else { // use custom params
|
||||||
// use custom params
|
|
||||||
} else {
|
|
||||||
|
|
||||||
options = populate(params, defaults);
|
options = populate(params, defaults);
|
||||||
// if no port provided use default one
|
// if no port provided use default one
|
||||||
if (!options.port) {
|
if (!options.port) {
|
||||||
options.port = options.protocol == 'https:' ? 443 : 80;
|
options.port = options.protocol === 'https:' ? 443 : 80;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -38053,14 +38043,14 @@ FormData.prototype.submit = function(params, cb) {
|
|||||||
options.headers = this.getHeaders(params.headers);
|
options.headers = this.getHeaders(params.headers);
|
||||||
|
|
||||||
// https if specified, fallback to http in any other case
|
// https if specified, fallback to http in any other case
|
||||||
if (options.protocol == 'https:') {
|
if (options.protocol === 'https:') {
|
||||||
request = https.request(options);
|
request = https.request(options);
|
||||||
} else {
|
} else {
|
||||||
request = http.request(options);
|
request = http.request(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
// get content length and fire away
|
// get content length and fire away
|
||||||
this.getLength(function(err, length) {
|
this.getLength(function (err, length) {
|
||||||
if (err && err !== 'Unknown stream') {
|
if (err && err !== 'Unknown stream') {
|
||||||
this._error(err);
|
this._error(err);
|
||||||
return;
|
return;
|
||||||
@@ -38079,7 +38069,7 @@ FormData.prototype.submit = function(params, cb) {
|
|||||||
request.removeListener('error', callback);
|
request.removeListener('error', callback);
|
||||||
request.removeListener('response', onResponse);
|
request.removeListener('response', onResponse);
|
||||||
|
|
||||||
return cb.call(this, error, responce);
|
return cb.call(this, error, responce); // eslint-disable-line no-invalid-this
|
||||||
};
|
};
|
||||||
|
|
||||||
onResponse = callback.bind(this, null);
|
onResponse = callback.bind(this, null);
|
||||||
@@ -38092,7 +38082,7 @@ FormData.prototype.submit = function(params, cb) {
|
|||||||
return request;
|
return request;
|
||||||
};
|
};
|
||||||
|
|
||||||
FormData.prototype._error = function(err) {
|
FormData.prototype._error = function (err) {
|
||||||
if (!this.error) {
|
if (!this.error) {
|
||||||
this.error = err;
|
this.error = err;
|
||||||
this.pause();
|
this.pause();
|
||||||
@@ -38103,6 +38093,10 @@ FormData.prototype._error = function(err) {
|
|||||||
FormData.prototype.toString = function () {
|
FormData.prototype.toString = function () {
|
||||||
return '[object FormData]';
|
return '[object FormData]';
|
||||||
};
|
};
|
||||||
|
setToStringTag(FormData, 'FormData');
|
||||||
|
|
||||||
|
// Public API
|
||||||
|
module.exports = FormData;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@@ -38110,12 +38104,13 @@ FormData.prototype.toString = function () {
|
|||||||
/***/ 32209:
|
/***/ 32209:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
// populates missing values
|
"use strict";
|
||||||
module.exports = function(dst, src) {
|
|
||||||
|
|
||||||
Object.keys(src).forEach(function(prop)
|
|
||||||
{
|
// populates missing values
|
||||||
dst[prop] = dst[prop] || src[prop];
|
module.exports = function (dst, src) {
|
||||||
|
Object.keys(src).forEach(function (prop) {
|
||||||
|
dst[prop] = dst[prop] || src[prop]; // eslint-disable-line no-param-reassign
|
||||||
});
|
});
|
||||||
|
|
||||||
return dst;
|
return dst;
|
||||||
@@ -78031,7 +78026,7 @@ function expand(str, isTop) {
|
|||||||
var isOptions = m.body.indexOf(',') >= 0;
|
var isOptions = m.body.indexOf(',') >= 0;
|
||||||
if (!isSequence && !isOptions) {
|
if (!isSequence && !isOptions) {
|
||||||
// {a},b}
|
// {a},b}
|
||||||
if (m.post.match(/,.*\}/)) {
|
if (m.post.match(/,(?!,).*\}/)) {
|
||||||
str = m.pre + '{' + m.body + escClose + m.post;
|
str = m.pre + '{' + m.body + escClose + m.post;
|
||||||
return expand(str);
|
return expand(str);
|
||||||
}
|
}
|
||||||
@@ -78123,6 +78118,83 @@ function expand(str, isTop) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 22639:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var bind = __nccwpck_require__(37564);
|
||||||
|
|
||||||
|
var $apply = __nccwpck_require__(33945);
|
||||||
|
var $call = __nccwpck_require__(88093);
|
||||||
|
var $reflectApply = __nccwpck_require__(31330);
|
||||||
|
|
||||||
|
/** @type {import('./actualApply')} */
|
||||||
|
module.exports = $reflectApply || bind.call($call, $apply);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 33945:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./functionApply')} */
|
||||||
|
module.exports = Function.prototype.apply;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 88093:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./functionCall')} */
|
||||||
|
module.exports = Function.prototype.call;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 88705:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var bind = __nccwpck_require__(37564);
|
||||||
|
var $TypeError = __nccwpck_require__(73314);
|
||||||
|
|
||||||
|
var $call = __nccwpck_require__(88093);
|
||||||
|
var $actualApply = __nccwpck_require__(22639);
|
||||||
|
|
||||||
|
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
||||||
|
module.exports = function callBindBasic(args) {
|
||||||
|
if (args.length < 1 || typeof args[0] !== 'function') {
|
||||||
|
throw new $TypeError('a function is required');
|
||||||
|
}
|
||||||
|
return $actualApply(bind, $call, args);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 31330:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./reflectApply')} */
|
||||||
|
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 35630:
|
/***/ 35630:
|
||||||
@@ -78472,6 +78544,1004 @@ DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 26669:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var callBind = __nccwpck_require__(88705);
|
||||||
|
var gOPD = __nccwpck_require__(33170);
|
||||||
|
|
||||||
|
var hasProtoAccessor;
|
||||||
|
try {
|
||||||
|
// eslint-disable-next-line no-extra-parens, no-proto
|
||||||
|
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
||||||
|
} catch (e) {
|
||||||
|
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line no-extra-parens
|
||||||
|
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
||||||
|
|
||||||
|
var $Object = Object;
|
||||||
|
var $getPrototypeOf = $Object.getPrototypeOf;
|
||||||
|
|
||||||
|
/** @type {import('./get')} */
|
||||||
|
module.exports = desc && typeof desc.get === 'function'
|
||||||
|
? callBind([desc.get])
|
||||||
|
: typeof $getPrototypeOf === 'function'
|
||||||
|
? /** @type {import('./get')} */ function getDunder(value) {
|
||||||
|
// eslint-disable-next-line eqeqeq
|
||||||
|
return $getPrototypeOf(value == null ? value : $Object(value));
|
||||||
|
}
|
||||||
|
: false;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 79094:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
var $defineProperty = Object.defineProperty || false;
|
||||||
|
if ($defineProperty) {
|
||||||
|
try {
|
||||||
|
$defineProperty({}, 'a', { value: 1 });
|
||||||
|
} catch (e) {
|
||||||
|
// IE 8 has a broken defineProperty
|
||||||
|
$defineProperty = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = $defineProperty;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 33056:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./eval')} */
|
||||||
|
module.exports = EvalError;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 31620:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
module.exports = Error;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 14585:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./range')} */
|
||||||
|
module.exports = RangeError;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 46905:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./ref')} */
|
||||||
|
module.exports = ReferenceError;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 80105:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./syntax')} */
|
||||||
|
module.exports = SyntaxError;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 73314:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./type')} */
|
||||||
|
module.exports = TypeError;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 32578:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./uri')} */
|
||||||
|
module.exports = URIError;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 95399:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
module.exports = Object;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 88700:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var GetIntrinsic = __nccwpck_require__(38089);
|
||||||
|
|
||||||
|
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
||||||
|
|
||||||
|
var hasToStringTag = __nccwpck_require__(85479)();
|
||||||
|
var hasOwn = __nccwpck_require__(54076);
|
||||||
|
var $TypeError = __nccwpck_require__(73314);
|
||||||
|
|
||||||
|
var toStringTag = hasToStringTag ? Symbol.toStringTag : null;
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
module.exports = function setToStringTag(object, value) {
|
||||||
|
var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
|
||||||
|
var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
|
||||||
|
if (
|
||||||
|
(typeof overrideIfSet !== 'undefined' && typeof overrideIfSet !== 'boolean')
|
||||||
|
|| (typeof nonConfigurable !== 'undefined' && typeof nonConfigurable !== 'boolean')
|
||||||
|
) {
|
||||||
|
throw new $TypeError('if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans');
|
||||||
|
}
|
||||||
|
if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {
|
||||||
|
if ($defineProperty) {
|
||||||
|
$defineProperty(object, toStringTag, {
|
||||||
|
configurable: !nonConfigurable,
|
||||||
|
enumerable: false,
|
||||||
|
value: value,
|
||||||
|
writable: false
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
object[toStringTag] = value; // eslint-disable-line no-param-reassign
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 99808:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/* eslint no-invalid-this: 1 */
|
||||||
|
|
||||||
|
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
||||||
|
var toStr = Object.prototype.toString;
|
||||||
|
var max = Math.max;
|
||||||
|
var funcType = '[object Function]';
|
||||||
|
|
||||||
|
var concatty = function concatty(a, b) {
|
||||||
|
var arr = [];
|
||||||
|
|
||||||
|
for (var i = 0; i < a.length; i += 1) {
|
||||||
|
arr[i] = a[i];
|
||||||
|
}
|
||||||
|
for (var j = 0; j < b.length; j += 1) {
|
||||||
|
arr[j + a.length] = b[j];
|
||||||
|
}
|
||||||
|
|
||||||
|
return arr;
|
||||||
|
};
|
||||||
|
|
||||||
|
var slicy = function slicy(arrLike, offset) {
|
||||||
|
var arr = [];
|
||||||
|
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
||||||
|
arr[j] = arrLike[i];
|
||||||
|
}
|
||||||
|
return arr;
|
||||||
|
};
|
||||||
|
|
||||||
|
var joiny = function (arr, joiner) {
|
||||||
|
var str = '';
|
||||||
|
for (var i = 0; i < arr.length; i += 1) {
|
||||||
|
str += arr[i];
|
||||||
|
if (i + 1 < arr.length) {
|
||||||
|
str += joiner;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return str;
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports = function bind(that) {
|
||||||
|
var target = this;
|
||||||
|
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
||||||
|
throw new TypeError(ERROR_MESSAGE + target);
|
||||||
|
}
|
||||||
|
var args = slicy(arguments, 1);
|
||||||
|
|
||||||
|
var bound;
|
||||||
|
var binder = function () {
|
||||||
|
if (this instanceof bound) {
|
||||||
|
var result = target.apply(
|
||||||
|
this,
|
||||||
|
concatty(args, arguments)
|
||||||
|
);
|
||||||
|
if (Object(result) === result) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
return target.apply(
|
||||||
|
that,
|
||||||
|
concatty(args, arguments)
|
||||||
|
);
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
var boundLength = max(0, target.length - args.length);
|
||||||
|
var boundArgs = [];
|
||||||
|
for (var i = 0; i < boundLength; i++) {
|
||||||
|
boundArgs[i] = '$' + i;
|
||||||
|
}
|
||||||
|
|
||||||
|
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
||||||
|
|
||||||
|
if (target.prototype) {
|
||||||
|
var Empty = function Empty() {};
|
||||||
|
Empty.prototype = target.prototype;
|
||||||
|
bound.prototype = new Empty();
|
||||||
|
Empty.prototype = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return bound;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 37564:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var implementation = __nccwpck_require__(99808);
|
||||||
|
|
||||||
|
module.exports = Function.prototype.bind || implementation;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 38089:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var undefined;
|
||||||
|
|
||||||
|
var $Object = __nccwpck_require__(95399);
|
||||||
|
|
||||||
|
var $Error = __nccwpck_require__(31620);
|
||||||
|
var $EvalError = __nccwpck_require__(33056);
|
||||||
|
var $RangeError = __nccwpck_require__(14585);
|
||||||
|
var $ReferenceError = __nccwpck_require__(46905);
|
||||||
|
var $SyntaxError = __nccwpck_require__(80105);
|
||||||
|
var $TypeError = __nccwpck_require__(73314);
|
||||||
|
var $URIError = __nccwpck_require__(32578);
|
||||||
|
|
||||||
|
var abs = __nccwpck_require__(55641);
|
||||||
|
var floor = __nccwpck_require__(96171);
|
||||||
|
var max = __nccwpck_require__(57147);
|
||||||
|
var min = __nccwpck_require__(41017);
|
||||||
|
var pow = __nccwpck_require__(56947);
|
||||||
|
var round = __nccwpck_require__(42621);
|
||||||
|
var sign = __nccwpck_require__(30156);
|
||||||
|
|
||||||
|
var $Function = Function;
|
||||||
|
|
||||||
|
// eslint-disable-next-line consistent-return
|
||||||
|
var getEvalledConstructor = function (expressionSyntax) {
|
||||||
|
try {
|
||||||
|
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
||||||
|
} catch (e) {}
|
||||||
|
};
|
||||||
|
|
||||||
|
var $gOPD = __nccwpck_require__(33170);
|
||||||
|
var $defineProperty = __nccwpck_require__(79094);
|
||||||
|
|
||||||
|
var throwTypeError = function () {
|
||||||
|
throw new $TypeError();
|
||||||
|
};
|
||||||
|
var ThrowTypeError = $gOPD
|
||||||
|
? (function () {
|
||||||
|
try {
|
||||||
|
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
||||||
|
arguments.callee; // IE 8 does not throw here
|
||||||
|
return throwTypeError;
|
||||||
|
} catch (calleeThrows) {
|
||||||
|
try {
|
||||||
|
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
||||||
|
return $gOPD(arguments, 'callee').get;
|
||||||
|
} catch (gOPDthrows) {
|
||||||
|
return throwTypeError;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}())
|
||||||
|
: throwTypeError;
|
||||||
|
|
||||||
|
var hasSymbols = __nccwpck_require__(23336)();
|
||||||
|
|
||||||
|
var getProto = __nccwpck_require__(81967);
|
||||||
|
var $ObjectGPO = __nccwpck_require__(91311);
|
||||||
|
var $ReflectGPO = __nccwpck_require__(48681);
|
||||||
|
|
||||||
|
var $apply = __nccwpck_require__(33945);
|
||||||
|
var $call = __nccwpck_require__(88093);
|
||||||
|
|
||||||
|
var needsEval = {};
|
||||||
|
|
||||||
|
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
||||||
|
|
||||||
|
var INTRINSICS = {
|
||||||
|
__proto__: null,
|
||||||
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
||||||
|
'%Array%': Array,
|
||||||
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
||||||
|
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
||||||
|
'%AsyncFromSyncIteratorPrototype%': undefined,
|
||||||
|
'%AsyncFunction%': needsEval,
|
||||||
|
'%AsyncGenerator%': needsEval,
|
||||||
|
'%AsyncGeneratorFunction%': needsEval,
|
||||||
|
'%AsyncIteratorPrototype%': needsEval,
|
||||||
|
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
||||||
|
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
||||||
|
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
|
||||||
|
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
|
||||||
|
'%Boolean%': Boolean,
|
||||||
|
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
||||||
|
'%Date%': Date,
|
||||||
|
'%decodeURI%': decodeURI,
|
||||||
|
'%decodeURIComponent%': decodeURIComponent,
|
||||||
|
'%encodeURI%': encodeURI,
|
||||||
|
'%encodeURIComponent%': encodeURIComponent,
|
||||||
|
'%Error%': $Error,
|
||||||
|
'%eval%': eval, // eslint-disable-line no-eval
|
||||||
|
'%EvalError%': $EvalError,
|
||||||
|
'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,
|
||||||
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
||||||
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
||||||
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
||||||
|
'%Function%': $Function,
|
||||||
|
'%GeneratorFunction%': needsEval,
|
||||||
|
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
||||||
|
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
||||||
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
||||||
|
'%isFinite%': isFinite,
|
||||||
|
'%isNaN%': isNaN,
|
||||||
|
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
||||||
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
||||||
|
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
||||||
|
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
||||||
|
'%Math%': Math,
|
||||||
|
'%Number%': Number,
|
||||||
|
'%Object%': $Object,
|
||||||
|
'%Object.getOwnPropertyDescriptor%': $gOPD,
|
||||||
|
'%parseFloat%': parseFloat,
|
||||||
|
'%parseInt%': parseInt,
|
||||||
|
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
||||||
|
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
||||||
|
'%RangeError%': $RangeError,
|
||||||
|
'%ReferenceError%': $ReferenceError,
|
||||||
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
||||||
|
'%RegExp%': RegExp,
|
||||||
|
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
||||||
|
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
|
||||||
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
||||||
|
'%String%': String,
|
||||||
|
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
|
||||||
|
'%Symbol%': hasSymbols ? Symbol : undefined,
|
||||||
|
'%SyntaxError%': $SyntaxError,
|
||||||
|
'%ThrowTypeError%': ThrowTypeError,
|
||||||
|
'%TypedArray%': TypedArray,
|
||||||
|
'%TypeError%': $TypeError,
|
||||||
|
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
||||||
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
||||||
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
||||||
|
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
||||||
|
'%URIError%': $URIError,
|
||||||
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
||||||
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
||||||
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
|
||||||
|
|
||||||
|
'%Function.prototype.call%': $call,
|
||||||
|
'%Function.prototype.apply%': $apply,
|
||||||
|
'%Object.defineProperty%': $defineProperty,
|
||||||
|
'%Object.getPrototypeOf%': $ObjectGPO,
|
||||||
|
'%Math.abs%': abs,
|
||||||
|
'%Math.floor%': floor,
|
||||||
|
'%Math.max%': max,
|
||||||
|
'%Math.min%': min,
|
||||||
|
'%Math.pow%': pow,
|
||||||
|
'%Math.round%': round,
|
||||||
|
'%Math.sign%': sign,
|
||||||
|
'%Reflect.getPrototypeOf%': $ReflectGPO
|
||||||
|
};
|
||||||
|
|
||||||
|
if (getProto) {
|
||||||
|
try {
|
||||||
|
null.error; // eslint-disable-line no-unused-expressions
|
||||||
|
} catch (e) {
|
||||||
|
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
||||||
|
var errorProto = getProto(getProto(e));
|
||||||
|
INTRINSICS['%Error.prototype%'] = errorProto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var doEval = function doEval(name) {
|
||||||
|
var value;
|
||||||
|
if (name === '%AsyncFunction%') {
|
||||||
|
value = getEvalledConstructor('async function () {}');
|
||||||
|
} else if (name === '%GeneratorFunction%') {
|
||||||
|
value = getEvalledConstructor('function* () {}');
|
||||||
|
} else if (name === '%AsyncGeneratorFunction%') {
|
||||||
|
value = getEvalledConstructor('async function* () {}');
|
||||||
|
} else if (name === '%AsyncGenerator%') {
|
||||||
|
var fn = doEval('%AsyncGeneratorFunction%');
|
||||||
|
if (fn) {
|
||||||
|
value = fn.prototype;
|
||||||
|
}
|
||||||
|
} else if (name === '%AsyncIteratorPrototype%') {
|
||||||
|
var gen = doEval('%AsyncGenerator%');
|
||||||
|
if (gen && getProto) {
|
||||||
|
value = getProto(gen.prototype);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
INTRINSICS[name] = value;
|
||||||
|
|
||||||
|
return value;
|
||||||
|
};
|
||||||
|
|
||||||
|
var LEGACY_ALIASES = {
|
||||||
|
__proto__: null,
|
||||||
|
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
||||||
|
'%ArrayPrototype%': ['Array', 'prototype'],
|
||||||
|
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
||||||
|
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
||||||
|
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
||||||
|
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
||||||
|
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
||||||
|
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
||||||
|
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
||||||
|
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
||||||
|
'%DataViewPrototype%': ['DataView', 'prototype'],
|
||||||
|
'%DatePrototype%': ['Date', 'prototype'],
|
||||||
|
'%ErrorPrototype%': ['Error', 'prototype'],
|
||||||
|
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
||||||
|
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
||||||
|
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
||||||
|
'%FunctionPrototype%': ['Function', 'prototype'],
|
||||||
|
'%Generator%': ['GeneratorFunction', 'prototype'],
|
||||||
|
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
||||||
|
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
||||||
|
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
||||||
|
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
||||||
|
'%JSONParse%': ['JSON', 'parse'],
|
||||||
|
'%JSONStringify%': ['JSON', 'stringify'],
|
||||||
|
'%MapPrototype%': ['Map', 'prototype'],
|
||||||
|
'%NumberPrototype%': ['Number', 'prototype'],
|
||||||
|
'%ObjectPrototype%': ['Object', 'prototype'],
|
||||||
|
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
||||||
|
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
||||||
|
'%PromisePrototype%': ['Promise', 'prototype'],
|
||||||
|
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
||||||
|
'%Promise_all%': ['Promise', 'all'],
|
||||||
|
'%Promise_reject%': ['Promise', 'reject'],
|
||||||
|
'%Promise_resolve%': ['Promise', 'resolve'],
|
||||||
|
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
||||||
|
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
||||||
|
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
||||||
|
'%SetPrototype%': ['Set', 'prototype'],
|
||||||
|
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
||||||
|
'%StringPrototype%': ['String', 'prototype'],
|
||||||
|
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
||||||
|
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
||||||
|
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
||||||
|
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
||||||
|
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
||||||
|
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
||||||
|
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
||||||
|
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
||||||
|
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
||||||
|
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
||||||
|
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
||||||
|
};
|
||||||
|
|
||||||
|
var bind = __nccwpck_require__(37564);
|
||||||
|
var hasOwn = __nccwpck_require__(54076);
|
||||||
|
var $concat = bind.call($call, Array.prototype.concat);
|
||||||
|
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
||||||
|
var $replace = bind.call($call, String.prototype.replace);
|
||||||
|
var $strSlice = bind.call($call, String.prototype.slice);
|
||||||
|
var $exec = bind.call($call, RegExp.prototype.exec);
|
||||||
|
|
||||||
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
||||||
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
||||||
|
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
||||||
|
var stringToPath = function stringToPath(string) {
|
||||||
|
var first = $strSlice(string, 0, 1);
|
||||||
|
var last = $strSlice(string, -1);
|
||||||
|
if (first === '%' && last !== '%') {
|
||||||
|
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
||||||
|
} else if (last === '%' && first !== '%') {
|
||||||
|
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
||||||
|
}
|
||||||
|
var result = [];
|
||||||
|
$replace(string, rePropName, function (match, number, quote, subString) {
|
||||||
|
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
||||||
|
});
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
/* end adaptation */
|
||||||
|
|
||||||
|
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
||||||
|
var intrinsicName = name;
|
||||||
|
var alias;
|
||||||
|
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
||||||
|
alias = LEGACY_ALIASES[intrinsicName];
|
||||||
|
intrinsicName = '%' + alias[0] + '%';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (hasOwn(INTRINSICS, intrinsicName)) {
|
||||||
|
var value = INTRINSICS[intrinsicName];
|
||||||
|
if (value === needsEval) {
|
||||||
|
value = doEval(intrinsicName);
|
||||||
|
}
|
||||||
|
if (typeof value === 'undefined' && !allowMissing) {
|
||||||
|
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
alias: alias,
|
||||||
|
name: intrinsicName,
|
||||||
|
value: value
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports = function GetIntrinsic(name, allowMissing) {
|
||||||
|
if (typeof name !== 'string' || name.length === 0) {
|
||||||
|
throw new $TypeError('intrinsic name must be a non-empty string');
|
||||||
|
}
|
||||||
|
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
||||||
|
throw new $TypeError('"allowMissing" argument must be a boolean');
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
||||||
|
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
||||||
|
}
|
||||||
|
var parts = stringToPath(name);
|
||||||
|
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
||||||
|
|
||||||
|
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
||||||
|
var intrinsicRealName = intrinsic.name;
|
||||||
|
var value = intrinsic.value;
|
||||||
|
var skipFurtherCaching = false;
|
||||||
|
|
||||||
|
var alias = intrinsic.alias;
|
||||||
|
if (alias) {
|
||||||
|
intrinsicBaseName = alias[0];
|
||||||
|
$spliceApply(parts, $concat([0, 1], alias));
|
||||||
|
}
|
||||||
|
|
||||||
|
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
||||||
|
var part = parts[i];
|
||||||
|
var first = $strSlice(part, 0, 1);
|
||||||
|
var last = $strSlice(part, -1);
|
||||||
|
if (
|
||||||
|
(
|
||||||
|
(first === '"' || first === "'" || first === '`')
|
||||||
|
|| (last === '"' || last === "'" || last === '`')
|
||||||
|
)
|
||||||
|
&& first !== last
|
||||||
|
) {
|
||||||
|
throw new $SyntaxError('property names with quotes must have matching quotes');
|
||||||
|
}
|
||||||
|
if (part === 'constructor' || !isOwn) {
|
||||||
|
skipFurtherCaching = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
intrinsicBaseName += '.' + part;
|
||||||
|
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
||||||
|
|
||||||
|
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
||||||
|
value = INTRINSICS[intrinsicRealName];
|
||||||
|
} else if (value != null) {
|
||||||
|
if (!(part in value)) {
|
||||||
|
if (!allowMissing) {
|
||||||
|
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
||||||
|
}
|
||||||
|
return void undefined;
|
||||||
|
}
|
||||||
|
if ($gOPD && (i + 1) >= parts.length) {
|
||||||
|
var desc = $gOPD(value, part);
|
||||||
|
isOwn = !!desc;
|
||||||
|
|
||||||
|
// By convention, when a data property is converted to an accessor
|
||||||
|
// property to emulate a data property that does not suffer from
|
||||||
|
// the override mistake, that accessor's getter is marked with
|
||||||
|
// an `originalValue` property. Here, when we detect this, we
|
||||||
|
// uphold the illusion by pretending to see that original data
|
||||||
|
// property, i.e., returning the value rather than the getter
|
||||||
|
// itself.
|
||||||
|
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
||||||
|
value = desc.get;
|
||||||
|
} else {
|
||||||
|
value = value[part];
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
isOwn = hasOwn(value, part);
|
||||||
|
value = value[part];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isOwn && !skipFurtherCaching) {
|
||||||
|
INTRINSICS[intrinsicRealName] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 91311:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var $Object = __nccwpck_require__(95399);
|
||||||
|
|
||||||
|
/** @type {import('./Object.getPrototypeOf')} */
|
||||||
|
module.exports = $Object.getPrototypeOf || null;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 48681:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./Reflect.getPrototypeOf')} */
|
||||||
|
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 81967:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var reflectGetProto = __nccwpck_require__(48681);
|
||||||
|
var originalGetProto = __nccwpck_require__(91311);
|
||||||
|
|
||||||
|
var getDunderProto = __nccwpck_require__(26669);
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
module.exports = reflectGetProto
|
||||||
|
? function getProto(O) {
|
||||||
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
||||||
|
return reflectGetProto(O);
|
||||||
|
}
|
||||||
|
: originalGetProto
|
||||||
|
? function getProto(O) {
|
||||||
|
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
||||||
|
throw new TypeError('getProto: not an object');
|
||||||
|
}
|
||||||
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
||||||
|
return originalGetProto(O);
|
||||||
|
}
|
||||||
|
: getDunderProto
|
||||||
|
? function getProto(O) {
|
||||||
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
||||||
|
return getDunderProto(O);
|
||||||
|
}
|
||||||
|
: null;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 1174:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./gOPD')} */
|
||||||
|
module.exports = Object.getOwnPropertyDescriptor;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 33170:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
var $gOPD = __nccwpck_require__(1174);
|
||||||
|
|
||||||
|
if ($gOPD) {
|
||||||
|
try {
|
||||||
|
$gOPD([], 'length');
|
||||||
|
} catch (e) {
|
||||||
|
// IE 8 has a broken gOPD
|
||||||
|
$gOPD = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = $gOPD;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 23336:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
||||||
|
var hasSymbolSham = __nccwpck_require__(61114);
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
module.exports = function hasNativeSymbols() {
|
||||||
|
if (typeof origSymbol !== 'function') { return false; }
|
||||||
|
if (typeof Symbol !== 'function') { return false; }
|
||||||
|
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
||||||
|
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
||||||
|
|
||||||
|
return hasSymbolSham();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 61114:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./shams')} */
|
||||||
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
||||||
|
module.exports = function hasSymbols() {
|
||||||
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
||||||
|
if (typeof Symbol.iterator === 'symbol') { return true; }
|
||||||
|
|
||||||
|
/** @type {{ [k in symbol]?: unknown }} */
|
||||||
|
var obj = {};
|
||||||
|
var sym = Symbol('test');
|
||||||
|
var symObj = Object(sym);
|
||||||
|
if (typeof sym === 'string') { return false; }
|
||||||
|
|
||||||
|
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
||||||
|
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
||||||
|
|
||||||
|
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
||||||
|
// if (sym instanceof Symbol) { return false; }
|
||||||
|
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
||||||
|
// if (!(symObj instanceof Symbol)) { return false; }
|
||||||
|
|
||||||
|
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
||||||
|
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
||||||
|
|
||||||
|
var symVal = 42;
|
||||||
|
obj[sym] = symVal;
|
||||||
|
for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
||||||
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
||||||
|
|
||||||
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
||||||
|
|
||||||
|
var syms = Object.getOwnPropertySymbols(obj);
|
||||||
|
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
||||||
|
|
||||||
|
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
||||||
|
|
||||||
|
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
||||||
|
// eslint-disable-next-line no-extra-parens
|
||||||
|
var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
|
||||||
|
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 85479:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var hasSymbols = __nccwpck_require__(61114);
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
module.exports = function hasToStringTagShams() {
|
||||||
|
return hasSymbols() && !!Symbol.toStringTag;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 54076:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var call = Function.prototype.call;
|
||||||
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
||||||
|
var bind = __nccwpck_require__(37564);
|
||||||
|
|
||||||
|
/** @type {import('.')} */
|
||||||
|
module.exports = bind.call(call, $hasOwn);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 55641:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./abs')} */
|
||||||
|
module.exports = Math.abs;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 96171:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./floor')} */
|
||||||
|
module.exports = Math.floor;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 77044:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./isNaN')} */
|
||||||
|
module.exports = Number.isNaN || function isNaN(a) {
|
||||||
|
return a !== a;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 57147:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./max')} */
|
||||||
|
module.exports = Math.max;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 41017:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./min')} */
|
||||||
|
module.exports = Math.min;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 56947:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./pow')} */
|
||||||
|
module.exports = Math.pow;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 42621:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
/** @type {import('./round')} */
|
||||||
|
module.exports = Math.round;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 30156:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var $isNaN = __nccwpck_require__(77044);
|
||||||
|
|
||||||
|
/** @type {import('./sign')} */
|
||||||
|
module.exports = function sign(number) {
|
||||||
|
if ($isNaN(number) || number === 0) {
|
||||||
|
return number;
|
||||||
|
}
|
||||||
|
return number < 0 ? -1 : +1;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 99829:
|
/***/ 99829:
|
||||||
@@ -121339,7 +122409,7 @@ module.exports.implForWrapper = function (wrapper) {
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 17772:
|
/***/ 95391:
|
||||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
@@ -121382,10 +122452,10 @@ exports.STATE_CACHE_MATCHED_KEY = exports.STATE_CACHE_KEY = void 0;
|
|||||||
exports.restoreCache = restoreCache;
|
exports.restoreCache = restoreCache;
|
||||||
const cache = __importStar(__nccwpck_require__(5116));
|
const cache = __importStar(__nccwpck_require__(5116));
|
||||||
const core = __importStar(__nccwpck_require__(37484));
|
const core = __importStar(__nccwpck_require__(37484));
|
||||||
|
const exec = __importStar(__nccwpck_require__(95236));
|
||||||
|
const hash_files_1 = __nccwpck_require__(99660);
|
||||||
const inputs_1 = __nccwpck_require__(9612);
|
const inputs_1 = __nccwpck_require__(9612);
|
||||||
const platforms_1 = __nccwpck_require__(98361);
|
const platforms_1 = __nccwpck_require__(98361);
|
||||||
const hash_files_1 = __nccwpck_require__(99660);
|
|
||||||
const exec = __importStar(__nccwpck_require__(95236));
|
|
||||||
exports.STATE_CACHE_KEY = "cache-key";
|
exports.STATE_CACHE_KEY = "cache-key";
|
||||||
exports.STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
exports.STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
||||||
const CACHE_VERSION = "1";
|
const CACHE_VERSION = "1";
|
||||||
@@ -121429,12 +122499,12 @@ async function getPythonVersion() {
|
|||||||
}
|
}
|
||||||
let output = "";
|
let output = "";
|
||||||
const options = {
|
const options = {
|
||||||
silent: !core.isDebug(),
|
|
||||||
listeners: {
|
listeners: {
|
||||||
stdout: (data) => {
|
stdout: (data) => {
|
||||||
output += data.toString();
|
output += data.toString();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
silent: !core.isDebug(),
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
const execArgs = ["python", "find", "--directory", inputs_1.workingDirectory];
|
const execArgs = ["python", "find", "--directory", inputs_1.workingDirectory];
|
||||||
@@ -121465,7 +122535,7 @@ function handleMatchResult(matchedKey, primaryKey) {
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 95391:
|
/***/ 17772:
|
||||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
@@ -121506,12 +122576,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.validateChecksum = validateChecksum;
|
exports.validateChecksum = validateChecksum;
|
||||||
exports.isknownVersion = isknownVersion;
|
exports.isknownVersion = isknownVersion;
|
||||||
const fs = __importStar(__nccwpck_require__(73024));
|
|
||||||
const crypto = __importStar(__nccwpck_require__(77598));
|
const crypto = __importStar(__nccwpck_require__(77598));
|
||||||
|
const fs = __importStar(__nccwpck_require__(73024));
|
||||||
const core = __importStar(__nccwpck_require__(37484));
|
const core = __importStar(__nccwpck_require__(37484));
|
||||||
const known_checksums_1 = __nccwpck_require__(62764);
|
const known_checksums_1 = __nccwpck_require__(62764);
|
||||||
async function validateChecksum(checkSum, downloadPath, arch, platform, version) {
|
async function validateChecksum(checkSum, downloadPath, arch, platform, version) {
|
||||||
let isValid = undefined;
|
let isValid;
|
||||||
if (checkSum !== undefined && checkSum !== "") {
|
if (checkSum !== undefined && checkSum !== "") {
|
||||||
isValid = await validateFileCheckSum(downloadPath, checkSum);
|
isValid = await validateFileCheckSum(downloadPath, checkSum);
|
||||||
}
|
}
|
||||||
@@ -125021,14 +126091,14 @@ exports.tryGetFromToolCache = tryGetFromToolCache;
|
|||||||
exports.downloadVersionFromGithub = downloadVersionFromGithub;
|
exports.downloadVersionFromGithub = downloadVersionFromGithub;
|
||||||
exports.downloadVersionFromManifest = downloadVersionFromManifest;
|
exports.downloadVersionFromManifest = downloadVersionFromManifest;
|
||||||
exports.resolveVersion = resolveVersion;
|
exports.resolveVersion = resolveVersion;
|
||||||
|
const node_fs_1 = __nccwpck_require__(73024);
|
||||||
|
const path = __importStar(__nccwpck_require__(76760));
|
||||||
const core = __importStar(__nccwpck_require__(37484));
|
const core = __importStar(__nccwpck_require__(37484));
|
||||||
const tc = __importStar(__nccwpck_require__(33472));
|
const tc = __importStar(__nccwpck_require__(33472));
|
||||||
const path = __importStar(__nccwpck_require__(76760));
|
|
||||||
const pep440 = __importStar(__nccwpck_require__(63297));
|
const pep440 = __importStar(__nccwpck_require__(63297));
|
||||||
const node_fs_1 = __nccwpck_require__(73024);
|
|
||||||
const constants_1 = __nccwpck_require__(56156);
|
const constants_1 = __nccwpck_require__(56156);
|
||||||
const checksum_1 = __nccwpck_require__(95391);
|
|
||||||
const octokit_1 = __nccwpck_require__(73352);
|
const octokit_1 = __nccwpck_require__(73352);
|
||||||
|
const checksum_1 = __nccwpck_require__(17772);
|
||||||
const version_manifest_1 = __nccwpck_require__(54000);
|
const version_manifest_1 = __nccwpck_require__(54000);
|
||||||
function tryGetFromToolCache(arch, version) {
|
function tryGetFromToolCache(arch, version) {
|
||||||
core.debug(`Trying to get uv from tool cache for ${version}...`);
|
core.debug(`Trying to get uv from tool cache for ${version}...`);
|
||||||
@@ -125039,7 +126109,7 @@ function tryGetFromToolCache(arch, version) {
|
|||||||
resolvedVersion = version;
|
resolvedVersion = version;
|
||||||
}
|
}
|
||||||
const installedPath = tc.find(constants_1.TOOL_CACHE_NAME, resolvedVersion, arch);
|
const installedPath = tc.find(constants_1.TOOL_CACHE_NAME, resolvedVersion, arch);
|
||||||
return { version: resolvedVersion, installedPath };
|
return { installedPath, version: resolvedVersion };
|
||||||
}
|
}
|
||||||
async function downloadVersionFromGithub(serverUrl, platform, arch, version, checkSum, githubToken) {
|
async function downloadVersionFromGithub(serverUrl, platform, arch, version, checkSum, githubToken) {
|
||||||
const artifact = `uv-${arch}-${platform}`;
|
const artifact = `uv-${arch}-${platform}`;
|
||||||
@@ -125072,7 +126142,7 @@ async function downloadVersion(downloadUrl, artifactName, platform, arch, versio
|
|||||||
uvDir = path.join(extractedDir, artifactName);
|
uvDir = path.join(extractedDir, artifactName);
|
||||||
}
|
}
|
||||||
const cachedToolDir = await tc.cacheDir(uvDir, constants_1.TOOL_CACHE_NAME, version, arch);
|
const cachedToolDir = await tc.cacheDir(uvDir, constants_1.TOOL_CACHE_NAME, version, arch);
|
||||||
return { version: version, cachedToolDir };
|
return { cachedToolDir, version: version };
|
||||||
}
|
}
|
||||||
function getExtension(platform) {
|
function getExtension(platform) {
|
||||||
return platform === "pc-windows-msvc" ? ".zip" : ".tar.gz";
|
return platform === "pc-windows-msvc" ? ".zip" : ".tar.gz";
|
||||||
@@ -125217,10 +126287,10 @@ exports.getLatestKnownVersion = getLatestKnownVersion;
|
|||||||
exports.getDownloadUrl = getDownloadUrl;
|
exports.getDownloadUrl = getDownloadUrl;
|
||||||
exports.updateVersionManifest = updateVersionManifest;
|
exports.updateVersionManifest = updateVersionManifest;
|
||||||
const node_fs_1 = __nccwpck_require__(73024);
|
const node_fs_1 = __nccwpck_require__(73024);
|
||||||
|
const node_path_1 = __nccwpck_require__(76760);
|
||||||
const core = __importStar(__nccwpck_require__(37484));
|
const core = __importStar(__nccwpck_require__(37484));
|
||||||
const semver = __importStar(__nccwpck_require__(39318));
|
const semver = __importStar(__nccwpck_require__(39318));
|
||||||
const fetch_1 = __nccwpck_require__(3385);
|
const fetch_1 = __nccwpck_require__(3385);
|
||||||
const node_path_1 = __nccwpck_require__(76760);
|
|
||||||
const localManifestFile = (0, node_path_1.join)(__dirname, "..", "..", "version-manifest.json");
|
const localManifestFile = (0, node_path_1.join)(__dirname, "..", "..", "version-manifest.json");
|
||||||
async function getLatestKnownVersion(manifestUrl) {
|
async function getLatestKnownVersion(manifestUrl) {
|
||||||
const manifestEntries = await getManifestEntries(manifestUrl);
|
const manifestEntries = await getManifestEntries(manifestUrl);
|
||||||
@@ -125264,11 +126334,11 @@ async function updateVersionManifest(manifestUrl, downloadUrls) {
|
|||||||
}
|
}
|
||||||
const artifactParts = artifactName.split(".")[0].split("-");
|
const artifactParts = artifactName.split(".")[0].split("-");
|
||||||
manifest.push({
|
manifest.push({
|
||||||
version: version,
|
|
||||||
artifactName: artifactName,
|
|
||||||
arch: artifactParts[1],
|
arch: artifactParts[1],
|
||||||
platform: artifactName.split(`uv-${artifactParts[1]}-`)[1].split(".")[0],
|
artifactName: artifactName,
|
||||||
downloadUrl: downloadUrl,
|
downloadUrl: downloadUrl,
|
||||||
|
platform: artifactName.split(`uv-${artifactParts[1]}-`)[1].split(".")[0],
|
||||||
|
version: version,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
core.debug(`Updating manifest-file: ${JSON.stringify(manifest)}`);
|
core.debug(`Updating manifest-file: ${JSON.stringify(manifest)}`);
|
||||||
@@ -125319,10 +126389,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.hashFiles = hashFiles;
|
exports.hashFiles = hashFiles;
|
||||||
const crypto = __importStar(__nccwpck_require__(77598));
|
const crypto = __importStar(__nccwpck_require__(77598));
|
||||||
const core = __importStar(__nccwpck_require__(37484));
|
|
||||||
const fs = __importStar(__nccwpck_require__(73024));
|
const fs = __importStar(__nccwpck_require__(73024));
|
||||||
const stream = __importStar(__nccwpck_require__(57075));
|
const stream = __importStar(__nccwpck_require__(57075));
|
||||||
const util = __importStar(__nccwpck_require__(57975));
|
const util = __importStar(__nccwpck_require__(57975));
|
||||||
|
const core = __importStar(__nccwpck_require__(37484));
|
||||||
const glob_1 = __nccwpck_require__(47206);
|
const glob_1 = __nccwpck_require__(47206);
|
||||||
/**
|
/**
|
||||||
* Hashes files matching the given glob pattern.
|
* Hashes files matching the given glob pattern.
|
||||||
@@ -125407,14 +126477,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
const core = __importStar(__nccwpck_require__(37484));
|
|
||||||
const path = __importStar(__nccwpck_require__(76760));
|
|
||||||
const download_version_1 = __nccwpck_require__(28255);
|
|
||||||
const restore_cache_1 = __nccwpck_require__(17772);
|
|
||||||
const platforms_1 = __nccwpck_require__(98361);
|
|
||||||
const inputs_1 = __nccwpck_require__(9612);
|
|
||||||
const exec = __importStar(__nccwpck_require__(95236));
|
|
||||||
const node_fs_1 = __importDefault(__nccwpck_require__(73024));
|
const node_fs_1 = __importDefault(__nccwpck_require__(73024));
|
||||||
|
const path = __importStar(__nccwpck_require__(76760));
|
||||||
|
const core = __importStar(__nccwpck_require__(37484));
|
||||||
|
const exec = __importStar(__nccwpck_require__(95236));
|
||||||
|
const restore_cache_1 = __nccwpck_require__(95391);
|
||||||
|
const download_version_1 = __nccwpck_require__(28255);
|
||||||
|
const inputs_1 = __nccwpck_require__(9612);
|
||||||
|
const platforms_1 = __nccwpck_require__(98361);
|
||||||
const resolve_1 = __nccwpck_require__(36772);
|
const resolve_1 = __nccwpck_require__(36772);
|
||||||
async function run() {
|
async function run() {
|
||||||
detectEmptyWorkdir();
|
detectEmptyWorkdir();
|
||||||
@@ -125649,8 +126719,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.manifestFile = exports.githubToken = exports.serverUrl = exports.toolDir = exports.toolBinDir = exports.ignoreEmptyWorkdir = exports.ignoreNothingToCache = exports.pruneCache = exports.cacheDependencyGlob = exports.cacheLocalPath = exports.cacheSuffix = exports.enableCache = exports.checkSum = exports.activateEnvironment = exports.pythonVersion = exports.versionFile = exports.version = exports.workingDirectory = void 0;
|
exports.manifestFile = exports.githubToken = exports.serverUrl = exports.toolDir = exports.toolBinDir = exports.ignoreEmptyWorkdir = exports.ignoreNothingToCache = exports.pruneCache = exports.cacheDependencyGlob = exports.cacheLocalPath = exports.cacheSuffix = exports.enableCache = exports.checkSum = exports.activateEnvironment = exports.pythonVersion = exports.versionFile = exports.version = exports.workingDirectory = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(37484));
|
|
||||||
const node_path_1 = __importDefault(__nccwpck_require__(76760));
|
const node_path_1 = __importDefault(__nccwpck_require__(76760));
|
||||||
|
const core = __importStar(__nccwpck_require__(37484));
|
||||||
exports.workingDirectory = core.getInput("working-directory");
|
exports.workingDirectory = core.getInput("working-directory");
|
||||||
exports.version = core.getInput("version");
|
exports.version = core.getInput("version");
|
||||||
exports.versionFile = getVersionFile();
|
exports.versionFile = getVersionFile();
|
||||||
@@ -125840,16 +126910,16 @@ var __importStar = (this && this.__importStar) || (function () {
|
|||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.getArch = getArch;
|
exports.getArch = getArch;
|
||||||
exports.getPlatform = getPlatform;
|
exports.getPlatform = getPlatform;
|
||||||
const exec = __importStar(__nccwpck_require__(95236));
|
|
||||||
const core = __importStar(__nccwpck_require__(37484));
|
const core = __importStar(__nccwpck_require__(37484));
|
||||||
|
const exec = __importStar(__nccwpck_require__(95236));
|
||||||
function getArch() {
|
function getArch() {
|
||||||
const arch = process.arch;
|
const arch = process.arch;
|
||||||
const archMapping = {
|
const archMapping = {
|
||||||
ia32: "i686",
|
|
||||||
x64: "x86_64",
|
|
||||||
arm64: "aarch64",
|
arm64: "aarch64",
|
||||||
s390x: "s390x",
|
ia32: "i686",
|
||||||
ppc64: "powerpc64le",
|
ppc64: "powerpc64le",
|
||||||
|
s390x: "s390x",
|
||||||
|
x64: "x86_64",
|
||||||
};
|
};
|
||||||
if (arch in archMapping) {
|
if (arch in archMapping) {
|
||||||
return archMapping[arch];
|
return archMapping[arch];
|
||||||
@@ -125858,8 +126928,8 @@ function getArch() {
|
|||||||
async function getPlatform() {
|
async function getPlatform() {
|
||||||
const processPlatform = process.platform;
|
const processPlatform = process.platform;
|
||||||
const platformMapping = {
|
const platformMapping = {
|
||||||
linux: "unknown-linux-gnu",
|
|
||||||
darwin: "apple-darwin",
|
darwin: "apple-darwin",
|
||||||
|
linux: "unknown-linux-gnu",
|
||||||
win32: "pc-windows-msvc",
|
win32: "pc-windows-msvc",
|
||||||
};
|
};
|
||||||
if (processPlatform in platformMapping) {
|
if (processPlatform in platformMapping) {
|
||||||
@@ -125875,16 +126945,16 @@ async function isMuslOs() {
|
|||||||
let stdOutput = "";
|
let stdOutput = "";
|
||||||
let errOutput = "";
|
let errOutput = "";
|
||||||
const options = {
|
const options = {
|
||||||
silent: !core.isDebug(),
|
ignoreReturnCode: true,
|
||||||
listeners: {
|
listeners: {
|
||||||
stdout: (data) => {
|
|
||||||
stdOutput += data.toString();
|
|
||||||
},
|
|
||||||
stderr: (data) => {
|
stderr: (data) => {
|
||||||
errOutput += data.toString();
|
errOutput += data.toString();
|
||||||
},
|
},
|
||||||
|
stdout: (data) => {
|
||||||
|
stdOutput += data.toString();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
ignoreReturnCode: true,
|
silent: !core.isDebug(),
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
const execArgs = ["--version"];
|
const execArgs = ["--version"];
|
||||||
@@ -126005,8 +127075,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.getUvVersionFromRequirementsFile = getUvVersionFromRequirementsFile;
|
exports.getUvVersionFromRequirementsFile = getUvVersionFromRequirementsFile;
|
||||||
const toml = __importStar(__nccwpck_require__(27106));
|
|
||||||
const node_fs_1 = __importDefault(__nccwpck_require__(73024));
|
const node_fs_1 = __importDefault(__nccwpck_require__(73024));
|
||||||
|
const toml = __importStar(__nccwpck_require__(27106));
|
||||||
function getUvVersionFromRequirementsFile(filePath) {
|
function getUvVersionFromRequirementsFile(filePath) {
|
||||||
const fileContent = node_fs_1.default.readFileSync(filePath, "utf-8");
|
const fileContent = node_fs_1.default.readFileSync(filePath, "utf-8");
|
||||||
if (filePath.endsWith(".txt")) {
|
if (filePath.endsWith(".txt")) {
|
||||||
@@ -126077,8 +127147,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.getUvVersionFromFile = getUvVersionFromFile;
|
exports.getUvVersionFromFile = getUvVersionFromFile;
|
||||||
const core = __importStar(__nccwpck_require__(37484));
|
|
||||||
const node_fs_1 = __importDefault(__nccwpck_require__(73024));
|
const node_fs_1 = __importDefault(__nccwpck_require__(73024));
|
||||||
|
const core = __importStar(__nccwpck_require__(37484));
|
||||||
const config_file_1 = __nccwpck_require__(9931);
|
const config_file_1 = __nccwpck_require__(9931);
|
||||||
const requirements_file_1 = __nccwpck_require__(4569);
|
const requirements_file_1 = __nccwpck_require__(4569);
|
||||||
function getUvVersionFromFile(filePath) {
|
function getUvVersionFromFile(filePath) {
|
||||||
|
|||||||
36
dist/update-known-versions/index.js
generated
vendored
36
dist/update-known-versions/index.js
generated
vendored
@@ -3021,7 +3021,7 @@ module.exports = Agent
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 6937:
|
/***/ 9318:
|
||||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
const { addAbortListener } = __nccwpck_require__(1544)
|
const { addAbortListener } = __nccwpck_require__(1544)
|
||||||
@@ -3091,7 +3091,7 @@ module.exports = {
|
|||||||
const { AsyncResource } = __nccwpck_require__(290)
|
const { AsyncResource } = __nccwpck_require__(290)
|
||||||
const { InvalidArgumentError, RequestAbortedError, SocketError } = __nccwpck_require__(8091)
|
const { InvalidArgumentError, RequestAbortedError, SocketError } = __nccwpck_require__(8091)
|
||||||
const util = __nccwpck_require__(1544)
|
const util = __nccwpck_require__(1544)
|
||||||
const { addSignal, removeSignal } = __nccwpck_require__(6937)
|
const { addSignal, removeSignal } = __nccwpck_require__(9318)
|
||||||
|
|
||||||
class ConnectHandler extends AsyncResource {
|
class ConnectHandler extends AsyncResource {
|
||||||
constructor (opts, callback) {
|
constructor (opts, callback) {
|
||||||
@@ -3212,7 +3212,7 @@ const {
|
|||||||
} = __nccwpck_require__(8091)
|
} = __nccwpck_require__(8091)
|
||||||
const util = __nccwpck_require__(1544)
|
const util = __nccwpck_require__(1544)
|
||||||
const { AsyncResource } = __nccwpck_require__(290)
|
const { AsyncResource } = __nccwpck_require__(290)
|
||||||
const { addSignal, removeSignal } = __nccwpck_require__(6937)
|
const { addSignal, removeSignal } = __nccwpck_require__(9318)
|
||||||
const assert = __nccwpck_require__(2613)
|
const assert = __nccwpck_require__(2613)
|
||||||
|
|
||||||
const kResume = Symbol('resume')
|
const kResume = Symbol('resume')
|
||||||
@@ -3465,7 +3465,7 @@ const {
|
|||||||
const util = __nccwpck_require__(1544)
|
const util = __nccwpck_require__(1544)
|
||||||
const { getResolveErrorBodyCallback } = __nccwpck_require__(8447)
|
const { getResolveErrorBodyCallback } = __nccwpck_require__(8447)
|
||||||
const { AsyncResource } = __nccwpck_require__(290)
|
const { AsyncResource } = __nccwpck_require__(290)
|
||||||
const { addSignal, removeSignal } = __nccwpck_require__(6937)
|
const { addSignal, removeSignal } = __nccwpck_require__(9318)
|
||||||
|
|
||||||
class RequestHandler extends AsyncResource {
|
class RequestHandler extends AsyncResource {
|
||||||
constructor (opts, callback) {
|
constructor (opts, callback) {
|
||||||
@@ -3654,7 +3654,7 @@ const {
|
|||||||
const util = __nccwpck_require__(1544)
|
const util = __nccwpck_require__(1544)
|
||||||
const { getResolveErrorBodyCallback } = __nccwpck_require__(8447)
|
const { getResolveErrorBodyCallback } = __nccwpck_require__(8447)
|
||||||
const { AsyncResource } = __nccwpck_require__(290)
|
const { AsyncResource } = __nccwpck_require__(290)
|
||||||
const { addSignal, removeSignal } = __nccwpck_require__(6937)
|
const { addSignal, removeSignal } = __nccwpck_require__(9318)
|
||||||
|
|
||||||
class StreamHandler extends AsyncResource {
|
class StreamHandler extends AsyncResource {
|
||||||
constructor (opts, factory, callback) {
|
constructor (opts, factory, callback) {
|
||||||
@@ -3876,7 +3876,7 @@ module.exports = stream
|
|||||||
const { InvalidArgumentError, RequestAbortedError, SocketError } = __nccwpck_require__(8091)
|
const { InvalidArgumentError, RequestAbortedError, SocketError } = __nccwpck_require__(8091)
|
||||||
const { AsyncResource } = __nccwpck_require__(290)
|
const { AsyncResource } = __nccwpck_require__(290)
|
||||||
const util = __nccwpck_require__(1544)
|
const util = __nccwpck_require__(1544)
|
||||||
const { addSignal, removeSignal } = __nccwpck_require__(6937)
|
const { addSignal, removeSignal } = __nccwpck_require__(9318)
|
||||||
const assert = __nccwpck_require__(2613)
|
const assert = __nccwpck_require__(2613)
|
||||||
|
|
||||||
class UpgradeHandler extends AsyncResource {
|
class UpgradeHandler extends AsyncResource {
|
||||||
@@ -25393,7 +25393,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports._readLinuxVersionFile = exports._getOsVersion = exports._findMatch = void 0;
|
exports._readLinuxVersionFile = exports._getOsVersion = exports._findMatch = void 0;
|
||||||
const semver = __importStar(__nccwpck_require__(9318));
|
const semver = __importStar(__nccwpck_require__(6937));
|
||||||
const core_1 = __nccwpck_require__(7484);
|
const core_1 = __nccwpck_require__(7484);
|
||||||
// needs to be require for core node modules to be mocked
|
// needs to be require for core node modules to be mocked
|
||||||
/* eslint @typescript-eslint/no-require-imports: 0 */
|
/* eslint @typescript-eslint/no-require-imports: 0 */
|
||||||
@@ -25631,7 +25631,7 @@ const mm = __importStar(__nccwpck_require__(8036));
|
|||||||
const os = __importStar(__nccwpck_require__(857));
|
const os = __importStar(__nccwpck_require__(857));
|
||||||
const path = __importStar(__nccwpck_require__(6928));
|
const path = __importStar(__nccwpck_require__(6928));
|
||||||
const httpm = __importStar(__nccwpck_require__(4844));
|
const httpm = __importStar(__nccwpck_require__(4844));
|
||||||
const semver = __importStar(__nccwpck_require__(9318));
|
const semver = __importStar(__nccwpck_require__(6937));
|
||||||
const stream = __importStar(__nccwpck_require__(2203));
|
const stream = __importStar(__nccwpck_require__(2203));
|
||||||
const util = __importStar(__nccwpck_require__(9023));
|
const util = __importStar(__nccwpck_require__(9023));
|
||||||
const assert_1 = __nccwpck_require__(2613);
|
const assert_1 = __nccwpck_require__(2613);
|
||||||
@@ -26257,7 +26257,7 @@ function _unique(values) {
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 9318:
|
/***/ 6937:
|
||||||
/***/ ((module, exports) => {
|
/***/ ((module, exports) => {
|
||||||
|
|
||||||
exports = module.exports = SemVer
|
exports = module.exports = SemVer
|
||||||
@@ -62771,10 +62771,10 @@ exports.getLatestKnownVersion = getLatestKnownVersion;
|
|||||||
exports.getDownloadUrl = getDownloadUrl;
|
exports.getDownloadUrl = getDownloadUrl;
|
||||||
exports.updateVersionManifest = updateVersionManifest;
|
exports.updateVersionManifest = updateVersionManifest;
|
||||||
const node_fs_1 = __nccwpck_require__(3024);
|
const node_fs_1 = __nccwpck_require__(3024);
|
||||||
const core = __importStar(__nccwpck_require__(7484));
|
|
||||||
const semver = __importStar(__nccwpck_require__(9318));
|
|
||||||
const fetch_1 = __nccwpck_require__(3385);
|
|
||||||
const node_path_1 = __nccwpck_require__(6760);
|
const node_path_1 = __nccwpck_require__(6760);
|
||||||
|
const core = __importStar(__nccwpck_require__(7484));
|
||||||
|
const semver = __importStar(__nccwpck_require__(6937));
|
||||||
|
const fetch_1 = __nccwpck_require__(3385);
|
||||||
const localManifestFile = (0, node_path_1.join)(__dirname, "..", "..", "version-manifest.json");
|
const localManifestFile = (0, node_path_1.join)(__dirname, "..", "..", "version-manifest.json");
|
||||||
async function getLatestKnownVersion(manifestUrl) {
|
async function getLatestKnownVersion(manifestUrl) {
|
||||||
const manifestEntries = await getManifestEntries(manifestUrl);
|
const manifestEntries = await getManifestEntries(manifestUrl);
|
||||||
@@ -62818,11 +62818,11 @@ async function updateVersionManifest(manifestUrl, downloadUrls) {
|
|||||||
}
|
}
|
||||||
const artifactParts = artifactName.split(".")[0].split("-");
|
const artifactParts = artifactName.split(".")[0].split("-");
|
||||||
manifest.push({
|
manifest.push({
|
||||||
version: version,
|
|
||||||
artifactName: artifactName,
|
|
||||||
arch: artifactParts[1],
|
arch: artifactParts[1],
|
||||||
platform: artifactName.split(`uv-${artifactParts[1]}-`)[1].split(".")[0],
|
artifactName: artifactName,
|
||||||
downloadUrl: downloadUrl,
|
downloadUrl: downloadUrl,
|
||||||
|
platform: artifactName.split(`uv-${artifactParts[1]}-`)[1].split(".")[0],
|
||||||
|
version: version,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
core.debug(`Updating manifest-file: ${JSON.stringify(manifest)}`);
|
core.debug(`Updating manifest-file: ${JSON.stringify(manifest)}`);
|
||||||
@@ -62871,12 +62871,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
const semver = __importStar(__nccwpck_require__(9318));
|
|
||||||
const core = __importStar(__nccwpck_require__(7484));
|
const core = __importStar(__nccwpck_require__(7484));
|
||||||
const octokit_1 = __nccwpck_require__(3352);
|
const semver = __importStar(__nccwpck_require__(6937));
|
||||||
const constants_1 = __nccwpck_require__(6156);
|
|
||||||
const update_known_checksums_1 = __nccwpck_require__(6182);
|
const update_known_checksums_1 = __nccwpck_require__(6182);
|
||||||
const version_manifest_1 = __nccwpck_require__(4000);
|
const version_manifest_1 = __nccwpck_require__(4000);
|
||||||
|
const constants_1 = __nccwpck_require__(6156);
|
||||||
|
const octokit_1 = __nccwpck_require__(3352);
|
||||||
async function run() {
|
async function run() {
|
||||||
const checksumFilePath = process.argv.slice(2)[0];
|
const checksumFilePath = process.argv.slice(2)[0];
|
||||||
const versionsManifestFile = process.argv.slice(2)[1];
|
const versionsManifestFile = process.argv.slice(2)[1];
|
||||||
|
|||||||
528
package-lock.json
generated
528
package-lock.json
generated
@@ -23,7 +23,7 @@
|
|||||||
"undici": "^7.10.0"
|
"undici": "^7.10.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "1.9.4",
|
"@biomejs/biome": "2.1.4",
|
||||||
"@types/js-yaml": "^4.0.9",
|
"@types/js-yaml": "^4.0.9",
|
||||||
"@types/node": "^24.0.14",
|
"@types/node": "^24.0.14",
|
||||||
"@types/semver": "^7.7.0",
|
"@types/semver": "^7.7.0",
|
||||||
@@ -196,12 +196,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@azure/core-http/node_modules/form-data": {
|
"node_modules/@azure/core-http/node_modules/form-data": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
|
||||||
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
|
"integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"asynckit": "^0.4.0",
|
"asynckit": "^0.4.0",
|
||||||
"combined-stream": "^1.0.8",
|
"combined-stream": "^1.0.8",
|
||||||
|
"es-set-tostringtag": "^2.1.0",
|
||||||
|
"hasown": "^2.0.2",
|
||||||
"mime-types": "^2.1.12"
|
"mime-types": "^2.1.12"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -869,11 +872,11 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/biome": {
|
"node_modules/@biomejs/biome": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.1.4.tgz",
|
||||||
"integrity": "sha512-1rkd7G70+o9KkTn5KLmDYXihGoTaIGO9PIIN2ZB7UJxFrWw04CZHPYiMRjYsaDvVV7hP1dYNRLxSANLaBFGpog==",
|
"integrity": "sha512-QWlrqyxsU0FCebuMnkvBIkxvPqH89afiJzjMl+z67ybutse590jgeaFdDurE9XYtzpjRGTI1tlUZPGWmbKsElA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"hasInstallScript": true,
|
"license": "MIT OR Apache-2.0",
|
||||||
"bin": {
|
"bin": {
|
||||||
"biome": "bin/biome"
|
"biome": "bin/biome"
|
||||||
},
|
},
|
||||||
@@ -885,24 +888,25 @@
|
|||||||
"url": "https://opencollective.com/biome"
|
"url": "https://opencollective.com/biome"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@biomejs/cli-darwin-arm64": "1.9.4",
|
"@biomejs/cli-darwin-arm64": "2.1.4",
|
||||||
"@biomejs/cli-darwin-x64": "1.9.4",
|
"@biomejs/cli-darwin-x64": "2.1.4",
|
||||||
"@biomejs/cli-linux-arm64": "1.9.4",
|
"@biomejs/cli-linux-arm64": "2.1.4",
|
||||||
"@biomejs/cli-linux-arm64-musl": "1.9.4",
|
"@biomejs/cli-linux-arm64-musl": "2.1.4",
|
||||||
"@biomejs/cli-linux-x64": "1.9.4",
|
"@biomejs/cli-linux-x64": "2.1.4",
|
||||||
"@biomejs/cli-linux-x64-musl": "1.9.4",
|
"@biomejs/cli-linux-x64-musl": "2.1.4",
|
||||||
"@biomejs/cli-win32-arm64": "1.9.4",
|
"@biomejs/cli-win32-arm64": "2.1.4",
|
||||||
"@biomejs/cli-win32-x64": "1.9.4"
|
"@biomejs/cli-win32-x64": "2.1.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/cli-darwin-arm64": {
|
"node_modules/@biomejs/cli-darwin-arm64": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.1.4.tgz",
|
||||||
"integrity": "sha512-bFBsPWrNvkdKrNCYeAp+xo2HecOGPAy9WyNyB/jKnnedgzl4W4Hb9ZMzYNbf8dMCGmUdSavlYHiR01QaYR58cw==",
|
"integrity": "sha512-sCrNENE74I9MV090Wq/9Dg7EhPudx3+5OiSoQOkIe3DLPzFARuL1dOwCWhKCpA3I5RHmbrsbNSRfZwCabwd8Qg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"license": "MIT OR Apache-2.0",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
"darwin"
|
"darwin"
|
||||||
@@ -912,13 +916,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/cli-darwin-x64": {
|
"node_modules/@biomejs/cli-darwin-x64": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.1.4.tgz",
|
||||||
"integrity": "sha512-ngYBh/+bEedqkSevPVhLP4QfVPCpb+4BBe2p7Xs32dBgs7rh9nY2AIYUL6BgLw1JVXV8GlpKmb/hNiuIxfPfZg==",
|
"integrity": "sha512-gOEICJbTCy6iruBywBDcG4X5rHMbqCPs3clh3UQ+hRKlgvJTk4NHWQAyHOXvaLe+AxD1/TNX1jbZeffBJzcrOw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"license": "MIT OR Apache-2.0",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
"darwin"
|
"darwin"
|
||||||
@@ -928,13 +933,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/cli-linux-arm64": {
|
"node_modules/@biomejs/cli-linux-arm64": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.1.4.tgz",
|
||||||
"integrity": "sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g==",
|
"integrity": "sha512-juhEkdkKR4nbUi5k/KRp1ocGPNWLgFRD4NrHZSveYrD6i98pyvuzmS9yFYgOZa5JhaVqo0HPnci0+YuzSwT2fw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"license": "MIT OR Apache-2.0",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
"linux"
|
"linux"
|
||||||
@@ -944,13 +950,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/cli-linux-arm64-musl": {
|
"node_modules/@biomejs/cli-linux-arm64-musl": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.1.4.tgz",
|
||||||
"integrity": "sha512-v665Ct9WCRjGa8+kTr0CzApU0+XXtRgwmzIf1SeKSGAv+2scAlW6JR5PMFo6FzqqZ64Po79cKODKf3/AAmECqA==",
|
"integrity": "sha512-nYr7H0CyAJPaLupFE2cH16KZmRC5Z9PEftiA2vWxk+CsFkPZQ6dBRdcC6RuS+zJlPc/JOd8xw3uCCt9Pv41WvQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"license": "MIT OR Apache-2.0",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
"linux"
|
"linux"
|
||||||
@@ -960,13 +967,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/cli-linux-x64": {
|
"node_modules/@biomejs/cli-linux-x64": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.1.4.tgz",
|
||||||
"integrity": "sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg==",
|
"integrity": "sha512-Eoy9ycbhpJVYuR+LskV9s3uyaIkp89+qqgqhGQsWnp/I02Uqg2fXFblHJOpGZR8AxdB9ADy87oFVxn9MpFKUrw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"license": "MIT OR Apache-2.0",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
"linux"
|
"linux"
|
||||||
@@ -976,13 +984,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/cli-linux-x64-musl": {
|
"node_modules/@biomejs/cli-linux-x64-musl": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.1.4.tgz",
|
||||||
"integrity": "sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg==",
|
"integrity": "sha512-lvwvb2SQQHctHUKvBKptR6PLFCM7JfRjpCCrDaTmvB7EeZ5/dQJPhTYBf36BE/B4CRWR2ZiBLRYhK7hhXBCZAg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"license": "MIT OR Apache-2.0",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
"linux"
|
"linux"
|
||||||
@@ -992,13 +1001,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/cli-win32-arm64": {
|
"node_modules/@biomejs/cli-win32-arm64": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.1.4.tgz",
|
||||||
"integrity": "sha512-tlbhLk+WXZmgwoIKwHIHEBZUwxml7bRJgk0X2sPyNR3S93cdRq6XulAZRQJ17FYGGzWne0fgrXBKpl7l4M87Hg==",
|
"integrity": "sha512-3WRYte7orvyi6TRfIZkDN9Jzoogbv+gSvR+b9VOXUg1We1XrjBg6WljADeVEaKTvOcpVdH0a90TwyOQ6ue4fGw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"license": "MIT OR Apache-2.0",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
"win32"
|
"win32"
|
||||||
@@ -1008,13 +1018,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/cli-win32-x64": {
|
"node_modules/@biomejs/cli-win32-x64": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.1.4.tgz",
|
||||||
"integrity": "sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA==",
|
"integrity": "sha512-tBc+W7anBPSFXGAoQW+f/+svkpt8/uXfRwDzN1DvnatkRMt16KIYpEi/iw8u9GahJlFv98kgHcIrSsZHZTR0sw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"license": "MIT OR Apache-2.0",
|
||||||
"optional": true,
|
"optional": true,
|
||||||
"os": [
|
"os": [
|
||||||
"win32"
|
"win32"
|
||||||
@@ -1852,13 +1863,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/node-fetch/node_modules/form-data": {
|
"node_modules/@types/node-fetch/node_modules/form-data": {
|
||||||
"version": "3.0.1",
|
"version": "3.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.4.tgz",
|
||||||
"integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==",
|
"integrity": "sha512-f0cRzm6dkyVYV3nPoooP8XlccPQukegwhAnpoLcXy+X+A8KfpGOoXwDr9FLZd3wzgLaBGQBE3lY93Zm/i1JvIQ==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"asynckit": "^0.4.0",
|
"asynckit": "^0.4.0",
|
||||||
"combined-stream": "^1.0.8",
|
"combined-stream": "^1.0.8",
|
||||||
"mime-types": "^2.1.12"
|
"es-set-tostringtag": "^2.1.0",
|
||||||
|
"hasown": "^2.0.2",
|
||||||
|
"mime-types": "^2.1.35"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 6"
|
"node": ">= 6"
|
||||||
@@ -2104,9 +2118,10 @@
|
|||||||
"license": "Apache-2.0"
|
"license": "Apache-2.0"
|
||||||
},
|
},
|
||||||
"node_modules/brace-expansion": {
|
"node_modules/brace-expansion": {
|
||||||
"version": "1.1.11",
|
"version": "1.1.12",
|
||||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
|
||||||
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
|
"integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"balanced-match": "^1.0.0",
|
"balanced-match": "^1.0.0",
|
||||||
"concat-map": "0.0.1"
|
"concat-map": "0.0.1"
|
||||||
@@ -2179,6 +2194,19 @@
|
|||||||
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
|
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/call-bind-apply-helpers": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
|
||||||
|
"integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"es-errors": "^1.3.0",
|
||||||
|
"function-bind": "^1.1.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/callsites": {
|
"node_modules/callsites": {
|
||||||
"version": "3.1.0",
|
"version": "3.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
|
||||||
@@ -2434,6 +2462,20 @@
|
|||||||
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
|
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/dunder-proto": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"call-bind-apply-helpers": "^1.0.1",
|
||||||
|
"es-errors": "^1.3.0",
|
||||||
|
"gopd": "^1.2.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/ejs": {
|
"node_modules/ejs": {
|
||||||
"version": "3.1.10",
|
"version": "3.1.10",
|
||||||
"resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",
|
||||||
@@ -2482,6 +2524,51 @@
|
|||||||
"is-arrayish": "^0.2.1"
|
"is-arrayish": "^0.2.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/es-define-property": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/es-errors": {
|
||||||
|
"version": "1.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
|
||||||
|
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/es-object-atoms": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
|
||||||
|
"integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"es-errors": "^1.3.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/es-set-tostringtag": {
|
||||||
|
"version": "2.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
|
||||||
|
"integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"es-errors": "^1.3.0",
|
||||||
|
"get-intrinsic": "^1.2.6",
|
||||||
|
"has-tostringtag": "^1.0.2",
|
||||||
|
"hasown": "^2.0.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/escalade": {
|
"node_modules/escalade": {
|
||||||
"version": "3.1.1",
|
"version": "3.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
|
||||||
@@ -2609,10 +2696,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/filelist/node_modules/brace-expansion": {
|
"node_modules/filelist/node_modules/brace-expansion": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"balanced-match": "^1.0.0"
|
"balanced-match": "^1.0.0"
|
||||||
}
|
}
|
||||||
@@ -2642,13 +2730,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/form-data": {
|
"node_modules/form-data": {
|
||||||
"version": "2.5.1",
|
"version": "2.5.5",
|
||||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.5.tgz",
|
||||||
"integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==",
|
"integrity": "sha512-jqdObeR2rxZZbPSGL+3VckHMYtu+f9//KXBsVny6JSX/pa38Fy+bGjuG8eW/H6USNQWhLi8Num++cU2yOCNz4A==",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"asynckit": "^0.4.0",
|
"asynckit": "^0.4.0",
|
||||||
"combined-stream": "^1.0.6",
|
"combined-stream": "^1.0.8",
|
||||||
"mime-types": "^2.1.12"
|
"es-set-tostringtag": "^2.1.0",
|
||||||
|
"hasown": "^2.0.2",
|
||||||
|
"mime-types": "^2.1.35",
|
||||||
|
"safe-buffer": "^5.2.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.12"
|
"node": ">= 0.12"
|
||||||
@@ -2678,7 +2770,6 @@
|
|||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
||||||
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
||||||
"dev": true,
|
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
@@ -2701,6 +2792,30 @@
|
|||||||
"node": "6.* || 8.* || >= 10.*"
|
"node": "6.* || 8.* || >= 10.*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/get-intrinsic": {
|
||||||
|
"version": "1.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
|
||||||
|
"integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"call-bind-apply-helpers": "^1.0.2",
|
||||||
|
"es-define-property": "^1.0.1",
|
||||||
|
"es-errors": "^1.3.0",
|
||||||
|
"es-object-atoms": "^1.1.1",
|
||||||
|
"function-bind": "^1.1.2",
|
||||||
|
"get-proto": "^1.0.1",
|
||||||
|
"gopd": "^1.2.0",
|
||||||
|
"has-symbols": "^1.1.0",
|
||||||
|
"hasown": "^2.0.2",
|
||||||
|
"math-intrinsics": "^1.1.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/get-package-type": {
|
"node_modules/get-package-type": {
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz",
|
||||||
@@ -2710,6 +2825,19 @@
|
|||||||
"node": ">=8.0.0"
|
"node": ">=8.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/get-proto": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"dunder-proto": "^1.0.1",
|
||||||
|
"es-object-atoms": "^1.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/get-stream": {
|
"node_modules/get-stream": {
|
||||||
"version": "6.0.1",
|
"version": "6.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
|
||||||
@@ -2751,6 +2879,18 @@
|
|||||||
"node": ">=4"
|
"node": ">=4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/gopd": {
|
||||||
|
"version": "1.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
|
||||||
|
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/graceful-fs": {
|
"node_modules/graceful-fs": {
|
||||||
"version": "4.2.11",
|
"version": "4.2.11",
|
||||||
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
|
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
|
||||||
@@ -2766,11 +2906,37 @@
|
|||||||
"node": ">=8"
|
"node": ">=8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/has-symbols": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/has-tostringtag": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
|
||||||
|
"integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"has-symbols": "^1.0.3"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/hasown": {
|
"node_modules/hasown": {
|
||||||
"version": "2.0.2",
|
"version": "2.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
||||||
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"function-bind": "^1.1.2"
|
"function-bind": "^1.1.2"
|
||||||
},
|
},
|
||||||
@@ -3828,6 +3994,15 @@
|
|||||||
"tmpl": "1.0.5"
|
"tmpl": "1.0.5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/math-intrinsics": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/merge-stream": {
|
"node_modules/merge-stream": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
|
||||||
@@ -4149,6 +4324,26 @@
|
|||||||
"node": ">=10"
|
"node": ">=10"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/safe-buffer": {
|
||||||
|
"version": "5.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||||
|
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
||||||
|
"funding": [
|
||||||
|
{
|
||||||
|
"type": "github",
|
||||||
|
"url": "https://github.com/sponsors/feross"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "patreon",
|
||||||
|
"url": "https://www.patreon.com/feross"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "consulting",
|
||||||
|
"url": "https://feross.org/support"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
"node_modules/sax": {
|
"node_modules/sax": {
|
||||||
"version": "1.2.4",
|
"version": "1.2.4",
|
||||||
"resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
|
"resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
|
||||||
@@ -4868,12 +5063,14 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"form-data": {
|
"form-data": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
|
||||||
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
|
"integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"asynckit": "^0.4.0",
|
"asynckit": "^0.4.0",
|
||||||
"combined-stream": "^1.0.8",
|
"combined-stream": "^1.0.8",
|
||||||
|
"es-set-tostringtag": "^2.1.0",
|
||||||
|
"hasown": "^2.0.2",
|
||||||
"mime-types": "^2.1.12"
|
"mime-types": "^2.1.12"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -5393,74 +5590,74 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@biomejs/biome": {
|
"@biomejs/biome": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.1.4.tgz",
|
||||||
"integrity": "sha512-1rkd7G70+o9KkTn5KLmDYXihGoTaIGO9PIIN2ZB7UJxFrWw04CZHPYiMRjYsaDvVV7hP1dYNRLxSANLaBFGpog==",
|
"integrity": "sha512-QWlrqyxsU0FCebuMnkvBIkxvPqH89afiJzjMl+z67ybutse590jgeaFdDurE9XYtzpjRGTI1tlUZPGWmbKsElA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@biomejs/cli-darwin-arm64": "1.9.4",
|
"@biomejs/cli-darwin-arm64": "2.1.4",
|
||||||
"@biomejs/cli-darwin-x64": "1.9.4",
|
"@biomejs/cli-darwin-x64": "2.1.4",
|
||||||
"@biomejs/cli-linux-arm64": "1.9.4",
|
"@biomejs/cli-linux-arm64": "2.1.4",
|
||||||
"@biomejs/cli-linux-arm64-musl": "1.9.4",
|
"@biomejs/cli-linux-arm64-musl": "2.1.4",
|
||||||
"@biomejs/cli-linux-x64": "1.9.4",
|
"@biomejs/cli-linux-x64": "2.1.4",
|
||||||
"@biomejs/cli-linux-x64-musl": "1.9.4",
|
"@biomejs/cli-linux-x64-musl": "2.1.4",
|
||||||
"@biomejs/cli-win32-arm64": "1.9.4",
|
"@biomejs/cli-win32-arm64": "2.1.4",
|
||||||
"@biomejs/cli-win32-x64": "1.9.4"
|
"@biomejs/cli-win32-x64": "2.1.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@biomejs/cli-darwin-arm64": {
|
"@biomejs/cli-darwin-arm64": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.1.4.tgz",
|
||||||
"integrity": "sha512-bFBsPWrNvkdKrNCYeAp+xo2HecOGPAy9WyNyB/jKnnedgzl4W4Hb9ZMzYNbf8dMCGmUdSavlYHiR01QaYR58cw==",
|
"integrity": "sha512-sCrNENE74I9MV090Wq/9Dg7EhPudx3+5OiSoQOkIe3DLPzFARuL1dOwCWhKCpA3I5RHmbrsbNSRfZwCabwd8Qg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"@biomejs/cli-darwin-x64": {
|
"@biomejs/cli-darwin-x64": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.1.4.tgz",
|
||||||
"integrity": "sha512-ngYBh/+bEedqkSevPVhLP4QfVPCpb+4BBe2p7Xs32dBgs7rh9nY2AIYUL6BgLw1JVXV8GlpKmb/hNiuIxfPfZg==",
|
"integrity": "sha512-gOEICJbTCy6iruBywBDcG4X5rHMbqCPs3clh3UQ+hRKlgvJTk4NHWQAyHOXvaLe+AxD1/TNX1jbZeffBJzcrOw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"@biomejs/cli-linux-arm64": {
|
"@biomejs/cli-linux-arm64": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.1.4.tgz",
|
||||||
"integrity": "sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g==",
|
"integrity": "sha512-juhEkdkKR4nbUi5k/KRp1ocGPNWLgFRD4NrHZSveYrD6i98pyvuzmS9yFYgOZa5JhaVqo0HPnci0+YuzSwT2fw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"@biomejs/cli-linux-arm64-musl": {
|
"@biomejs/cli-linux-arm64-musl": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.1.4.tgz",
|
||||||
"integrity": "sha512-v665Ct9WCRjGa8+kTr0CzApU0+XXtRgwmzIf1SeKSGAv+2scAlW6JR5PMFo6FzqqZ64Po79cKODKf3/AAmECqA==",
|
"integrity": "sha512-nYr7H0CyAJPaLupFE2cH16KZmRC5Z9PEftiA2vWxk+CsFkPZQ6dBRdcC6RuS+zJlPc/JOd8xw3uCCt9Pv41WvQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"@biomejs/cli-linux-x64": {
|
"@biomejs/cli-linux-x64": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.1.4.tgz",
|
||||||
"integrity": "sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg==",
|
"integrity": "sha512-Eoy9ycbhpJVYuR+LskV9s3uyaIkp89+qqgqhGQsWnp/I02Uqg2fXFblHJOpGZR8AxdB9ADy87oFVxn9MpFKUrw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"@biomejs/cli-linux-x64-musl": {
|
"@biomejs/cli-linux-x64-musl": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.1.4.tgz",
|
||||||
"integrity": "sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg==",
|
"integrity": "sha512-lvwvb2SQQHctHUKvBKptR6PLFCM7JfRjpCCrDaTmvB7EeZ5/dQJPhTYBf36BE/B4CRWR2ZiBLRYhK7hhXBCZAg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"@biomejs/cli-win32-arm64": {
|
"@biomejs/cli-win32-arm64": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.1.4.tgz",
|
||||||
"integrity": "sha512-tlbhLk+WXZmgwoIKwHIHEBZUwxml7bRJgk0X2sPyNR3S93cdRq6XulAZRQJ17FYGGzWne0fgrXBKpl7l4M87Hg==",
|
"integrity": "sha512-3WRYte7orvyi6TRfIZkDN9Jzoogbv+gSvR+b9VOXUg1We1XrjBg6WljADeVEaKTvOcpVdH0a90TwyOQ6ue4fGw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"@biomejs/cli-win32-x64": {
|
"@biomejs/cli-win32-x64": {
|
||||||
"version": "1.9.4",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-1.9.4.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.1.4.tgz",
|
||||||
"integrity": "sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA==",
|
"integrity": "sha512-tBc+W7anBPSFXGAoQW+f/+svkpt8/uXfRwDzN1DvnatkRMt16KIYpEi/iw8u9GahJlFv98kgHcIrSsZHZTR0sw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
@@ -6118,13 +6315,15 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"form-data": {
|
"form-data": {
|
||||||
"version": "3.0.1",
|
"version": "3.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.4.tgz",
|
||||||
"integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==",
|
"integrity": "sha512-f0cRzm6dkyVYV3nPoooP8XlccPQukegwhAnpoLcXy+X+A8KfpGOoXwDr9FLZd3wzgLaBGQBE3lY93Zm/i1JvIQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"asynckit": "^0.4.0",
|
"asynckit": "^0.4.0",
|
||||||
"combined-stream": "^1.0.8",
|
"combined-stream": "^1.0.8",
|
||||||
"mime-types": "^2.1.12"
|
"es-set-tostringtag": "^2.1.0",
|
||||||
|
"hasown": "^2.0.2",
|
||||||
|
"mime-types": "^2.1.35"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6318,9 +6517,9 @@
|
|||||||
"integrity": "sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ=="
|
"integrity": "sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ=="
|
||||||
},
|
},
|
||||||
"brace-expansion": {
|
"brace-expansion": {
|
||||||
"version": "1.1.11",
|
"version": "1.1.12",
|
||||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
|
||||||
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
|
"integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"balanced-match": "^1.0.0",
|
"balanced-match": "^1.0.0",
|
||||||
"concat-map": "0.0.1"
|
"concat-map": "0.0.1"
|
||||||
@@ -6371,6 +6570,15 @@
|
|||||||
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
|
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"call-bind-apply-helpers": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
|
||||||
|
"integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
|
||||||
|
"requires": {
|
||||||
|
"es-errors": "^1.3.0",
|
||||||
|
"function-bind": "^1.1.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
"callsites": {
|
"callsites": {
|
||||||
"version": "3.1.0",
|
"version": "3.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
|
||||||
@@ -6539,6 +6747,16 @@
|
|||||||
"integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==",
|
"integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"dunder-proto": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
|
||||||
|
"requires": {
|
||||||
|
"call-bind-apply-helpers": "^1.0.1",
|
||||||
|
"es-errors": "^1.3.0",
|
||||||
|
"gopd": "^1.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"ejs": {
|
"ejs": {
|
||||||
"version": "3.1.10",
|
"version": "3.1.10",
|
||||||
"resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",
|
"resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",
|
||||||
@@ -6575,6 +6793,35 @@
|
|||||||
"is-arrayish": "^0.2.1"
|
"is-arrayish": "^0.2.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"es-define-property": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="
|
||||||
|
},
|
||||||
|
"es-errors": {
|
||||||
|
"version": "1.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
|
||||||
|
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="
|
||||||
|
},
|
||||||
|
"es-object-atoms": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
|
||||||
|
"integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
|
||||||
|
"requires": {
|
||||||
|
"es-errors": "^1.3.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"es-set-tostringtag": {
|
||||||
|
"version": "2.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
|
||||||
|
"integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
|
||||||
|
"requires": {
|
||||||
|
"es-errors": "^1.3.0",
|
||||||
|
"get-intrinsic": "^1.2.6",
|
||||||
|
"has-tostringtag": "^1.0.2",
|
||||||
|
"hasown": "^2.0.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
"escalade": {
|
"escalade": {
|
||||||
"version": "3.1.1",
|
"version": "3.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
|
||||||
@@ -6663,9 +6910,9 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"brace-expansion": {
|
"brace-expansion": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"balanced-match": "^1.0.0"
|
"balanced-match": "^1.0.0"
|
||||||
@@ -6692,13 +6939,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"form-data": {
|
"form-data": {
|
||||||
"version": "2.5.1",
|
"version": "2.5.5",
|
||||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.5.tgz",
|
||||||
"integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==",
|
"integrity": "sha512-jqdObeR2rxZZbPSGL+3VckHMYtu+f9//KXBsVny6JSX/pa38Fy+bGjuG8eW/H6USNQWhLi8Num++cU2yOCNz4A==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"asynckit": "^0.4.0",
|
"asynckit": "^0.4.0",
|
||||||
"combined-stream": "^1.0.6",
|
"combined-stream": "^1.0.8",
|
||||||
"mime-types": "^2.1.12"
|
"es-set-tostringtag": "^2.1.0",
|
||||||
|
"hasown": "^2.0.2",
|
||||||
|
"mime-types": "^2.1.35",
|
||||||
|
"safe-buffer": "^5.2.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"fs.realpath": {
|
"fs.realpath": {
|
||||||
@@ -6717,8 +6967,7 @@
|
|||||||
"function-bind": {
|
"function-bind": {
|
||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
||||||
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"gensync": {
|
"gensync": {
|
||||||
"version": "1.0.0-beta.2",
|
"version": "1.0.0-beta.2",
|
||||||
@@ -6732,12 +6981,38 @@
|
|||||||
"integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
|
"integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"get-intrinsic": {
|
||||||
|
"version": "1.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
|
||||||
|
"integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
|
||||||
|
"requires": {
|
||||||
|
"call-bind-apply-helpers": "^1.0.2",
|
||||||
|
"es-define-property": "^1.0.1",
|
||||||
|
"es-errors": "^1.3.0",
|
||||||
|
"es-object-atoms": "^1.1.1",
|
||||||
|
"function-bind": "^1.1.2",
|
||||||
|
"get-proto": "^1.0.1",
|
||||||
|
"gopd": "^1.2.0",
|
||||||
|
"has-symbols": "^1.1.0",
|
||||||
|
"hasown": "^2.0.2",
|
||||||
|
"math-intrinsics": "^1.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"get-package-type": {
|
"get-package-type": {
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz",
|
||||||
"integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==",
|
"integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"get-proto": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
|
||||||
|
"requires": {
|
||||||
|
"dunder-proto": "^1.0.1",
|
||||||
|
"es-object-atoms": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"get-stream": {
|
"get-stream": {
|
||||||
"version": "6.0.1",
|
"version": "6.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
|
||||||
@@ -6764,6 +7039,11 @@
|
|||||||
"integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",
|
"integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"gopd": {
|
||||||
|
"version": "1.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
|
||||||
|
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="
|
||||||
|
},
|
||||||
"graceful-fs": {
|
"graceful-fs": {
|
||||||
"version": "4.2.11",
|
"version": "4.2.11",
|
||||||
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
|
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
|
||||||
@@ -6776,11 +7056,23 @@
|
|||||||
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"has-symbols": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="
|
||||||
|
},
|
||||||
|
"has-tostringtag": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
|
||||||
|
"integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
|
||||||
|
"requires": {
|
||||||
|
"has-symbols": "^1.0.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
"hasown": {
|
"hasown": {
|
||||||
"version": "2.0.2",
|
"version": "2.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
||||||
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
||||||
"dev": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"function-bind": "^1.1.2"
|
"function-bind": "^1.1.2"
|
||||||
}
|
}
|
||||||
@@ -7576,6 +7868,11 @@
|
|||||||
"tmpl": "1.0.5"
|
"tmpl": "1.0.5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"math-intrinsics": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="
|
||||||
|
},
|
||||||
"merge-stream": {
|
"merge-stream": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
|
||||||
@@ -7810,6 +8107,11 @@
|
|||||||
"integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==",
|
"integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"safe-buffer": {
|
||||||
|
"version": "5.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||||
|
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
|
||||||
|
},
|
||||||
"sax": {
|
"sax": {
|
||||||
"version": "1.2.4",
|
"version": "1.2.4",
|
||||||
"resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
|
"resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"format": "biome format --fix",
|
"check": "biome check --write",
|
||||||
"format-check": "biome format",
|
|
||||||
"lint": "biome lint --fix",
|
|
||||||
"package": "ncc build -o dist/setup src/setup-uv.ts && ncc build -o dist/save-cache src/save-cache.ts && ncc build -o dist/update-known-versions src/update-known-versions.ts",
|
"package": "ncc build -o dist/setup src/setup-uv.ts && ncc build -o dist/save-cache src/save-cache.ts && ncc build -o dist/update-known-versions src/update-known-versions.ts",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"act": "act pull_request -W .github/workflows/test.yml --container-architecture linux/amd64 -s GITHUB_TOKEN=\"$(gh auth token)\"",
|
"act": "act pull_request -W .github/workflows/test.yml --container-architecture linux/amd64 -s GITHUB_TOKEN=\"$(gh auth token)\"",
|
||||||
"update-known-versions": "RUNNER_TEMP=known_versions node dist/update-known-versions/index.js src/download/checksum/known-versions.ts \"$(gh auth token)\"",
|
"update-known-versions": "RUNNER_TEMP=known_versions node dist/update-known-versions/index.js src/download/checksum/known-versions.ts \"$(gh auth token)\"",
|
||||||
"all": "npm run build && npm run format && npm run lint && npm run package && npm test"
|
"all": "npm run build && npm run check && npm run package && npm test"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -37,7 +35,7 @@
|
|||||||
"undici": "^7.10.0"
|
"undici": "^7.10.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "1.9.4",
|
"@biomejs/biome": "2.1.4",
|
||||||
"@types/js-yaml": "^4.0.9",
|
"@types/js-yaml": "^4.0.9",
|
||||||
"@types/node": "^24.0.14",
|
"@types/node": "^24.0.14",
|
||||||
"@types/semver": "^7.7.0",
|
"@types/semver": "^7.7.0",
|
||||||
|
|||||||
6
src/cache/restore-cache.ts
vendored
6
src/cache/restore-cache.ts
vendored
@@ -1,5 +1,7 @@
|
|||||||
import * as cache from "@actions/cache";
|
import * as cache from "@actions/cache";
|
||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
|
import * as exec from "@actions/exec";
|
||||||
|
import { hashFiles } from "../hash/hash-files";
|
||||||
import {
|
import {
|
||||||
cacheDependencyGlob,
|
cacheDependencyGlob,
|
||||||
cacheLocalPath,
|
cacheLocalPath,
|
||||||
@@ -9,8 +11,6 @@ import {
|
|||||||
workingDirectory,
|
workingDirectory,
|
||||||
} from "../utils/inputs";
|
} from "../utils/inputs";
|
||||||
import { getArch, getPlatform } from "../utils/platforms";
|
import { getArch, getPlatform } from "../utils/platforms";
|
||||||
import { hashFiles } from "../hash/hash-files";
|
|
||||||
import * as exec from "@actions/exec";
|
|
||||||
|
|
||||||
export const STATE_CACHE_KEY = "cache-key";
|
export const STATE_CACHE_KEY = "cache-key";
|
||||||
export const STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
export const STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
||||||
@@ -67,12 +67,12 @@ async function getPythonVersion(): Promise<string> {
|
|||||||
|
|
||||||
let output = "";
|
let output = "";
|
||||||
const options: exec.ExecOptions = {
|
const options: exec.ExecOptions = {
|
||||||
silent: !core.isDebug(),
|
|
||||||
listeners: {
|
listeners: {
|
||||||
stdout: (data: Buffer) => {
|
stdout: (data: Buffer) => {
|
||||||
output += data.toString();
|
output += data.toString();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
silent: !core.isDebug(),
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import * as fs from "node:fs";
|
|
||||||
import * as crypto from "node:crypto";
|
import * as crypto from "node:crypto";
|
||||||
|
import * as fs from "node:fs";
|
||||||
|
|
||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
import { KNOWN_CHECKSUMS } from "./known-checksums";
|
|
||||||
import type { Architecture, Platform } from "../../utils/platforms";
|
import type { Architecture, Platform } from "../../utils/platforms";
|
||||||
|
import { KNOWN_CHECKSUMS } from "./known-checksums";
|
||||||
|
|
||||||
export async function validateChecksum(
|
export async function validateChecksum(
|
||||||
checkSum: string | undefined,
|
checkSum: string | undefined,
|
||||||
@@ -12,7 +12,7 @@ export async function validateChecksum(
|
|||||||
platform: Platform,
|
platform: Platform,
|
||||||
version: string,
|
version: string,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
let isValid: boolean | undefined = undefined;
|
let isValid: boolean | undefined;
|
||||||
if (checkSum !== undefined && checkSum !== "") {
|
if (checkSum !== undefined && checkSum !== "") {
|
||||||
isValid = await validateFileCheckSum(downloadPath, checkSum);
|
isValid = await validateFileCheckSum(downloadPath, checkSum);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
|
import { promises as fs } from "node:fs";
|
||||||
|
import * as path from "node:path";
|
||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
import * as tc from "@actions/tool-cache";
|
import * as tc from "@actions/tool-cache";
|
||||||
import * as path from "node:path";
|
|
||||||
import * as pep440 from "@renovatebot/pep440";
|
import * as pep440 from "@renovatebot/pep440";
|
||||||
import { promises as fs } from "node:fs";
|
|
||||||
import { OWNER, REPO, TOOL_CACHE_NAME } from "../utils/constants";
|
import { OWNER, REPO, TOOL_CACHE_NAME } from "../utils/constants";
|
||||||
|
import { Octokit } from "../utils/octokit";
|
||||||
import type { Architecture, Platform } from "../utils/platforms";
|
import type { Architecture, Platform } from "../utils/platforms";
|
||||||
import { validateChecksum } from "./checksum/checksum";
|
import { validateChecksum } from "./checksum/checksum";
|
||||||
import { Octokit } from "../utils/octokit";
|
|
||||||
import {
|
import {
|
||||||
getDownloadUrl,
|
getDownloadUrl,
|
||||||
getLatestKnownVersion as getLatestVersionInManifest,
|
getLatestKnownVersion as getLatestVersionInManifest,
|
||||||
@@ -24,7 +24,7 @@ export function tryGetFromToolCache(
|
|||||||
resolvedVersion = version;
|
resolvedVersion = version;
|
||||||
}
|
}
|
||||||
const installedPath = tc.find(TOOL_CACHE_NAME, resolvedVersion, arch);
|
const installedPath = tc.find(TOOL_CACHE_NAME, resolvedVersion, arch);
|
||||||
return { version: resolvedVersion, installedPath };
|
return { installedPath, version: resolvedVersion };
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function downloadVersionFromGithub(
|
export async function downloadVersionFromGithub(
|
||||||
@@ -121,7 +121,7 @@ async function downloadVersion(
|
|||||||
version,
|
version,
|
||||||
arch,
|
arch,
|
||||||
);
|
);
|
||||||
return { version: version, cachedToolDir };
|
return { cachedToolDir, version: version };
|
||||||
}
|
}
|
||||||
|
|
||||||
function getExtension(platform: Platform): string {
|
function getExtension(platform: Platform): string {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { promises as fs } from "node:fs";
|
import { promises as fs } from "node:fs";
|
||||||
|
import { join } from "node:path";
|
||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
import * as semver from "semver";
|
import * as semver from "semver";
|
||||||
import { fetch } from "../utils/fetch";
|
import { fetch } from "../utils/fetch";
|
||||||
import { join } from "node:path";
|
|
||||||
|
|
||||||
const localManifestFile = join(__dirname, "..", "..", "version-manifest.json");
|
const localManifestFile = join(__dirname, "..", "..", "version-manifest.json");
|
||||||
|
|
||||||
@@ -79,11 +79,11 @@ export async function updateVersionManifest(
|
|||||||
}
|
}
|
||||||
const artifactParts = artifactName.split(".")[0].split("-");
|
const artifactParts = artifactName.split(".")[0].split("-");
|
||||||
manifest.push({
|
manifest.push({
|
||||||
version: version,
|
|
||||||
artifactName: artifactName,
|
|
||||||
arch: artifactParts[1],
|
arch: artifactParts[1],
|
||||||
platform: artifactName.split(`uv-${artifactParts[1]}-`)[1].split(".")[0],
|
artifactName: artifactName,
|
||||||
downloadUrl: downloadUrl,
|
downloadUrl: downloadUrl,
|
||||||
|
platform: artifactName.split(`uv-${artifactParts[1]}-`)[1].split(".")[0],
|
||||||
|
version: version,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
core.debug(`Updating manifest-file: ${JSON.stringify(manifest)}`);
|
core.debug(`Updating manifest-file: ${JSON.stringify(manifest)}`);
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import * as crypto from "node:crypto";
|
import * as crypto from "node:crypto";
|
||||||
import * as core from "@actions/core";
|
|
||||||
import * as fs from "node:fs";
|
import * as fs from "node:fs";
|
||||||
import * as stream from "node:stream";
|
import * as stream from "node:stream";
|
||||||
import * as util from "node:util";
|
import * as util from "node:util";
|
||||||
|
import * as core from "@actions/core";
|
||||||
import { create } from "@actions/glob";
|
import { create } from "@actions/glob";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
|
import * as fs from "node:fs";
|
||||||
import * as cache from "@actions/cache";
|
import * as cache from "@actions/cache";
|
||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
import * as exec from "@actions/exec";
|
import * as exec from "@actions/exec";
|
||||||
import * as fs from "node:fs";
|
|
||||||
import {
|
import {
|
||||||
STATE_CACHE_MATCHED_KEY,
|
|
||||||
STATE_CACHE_KEY,
|
STATE_CACHE_KEY,
|
||||||
|
STATE_CACHE_MATCHED_KEY,
|
||||||
} from "./cache/restore-cache";
|
} from "./cache/restore-cache";
|
||||||
import {
|
import {
|
||||||
cacheLocalPath,
|
cacheLocalPath,
|
||||||
|
|||||||
@@ -1,37 +1,36 @@
|
|||||||
import * as core from "@actions/core";
|
import fs from "node:fs";
|
||||||
import * as path from "node:path";
|
import * as path from "node:path";
|
||||||
|
import * as core from "@actions/core";
|
||||||
|
import * as exec from "@actions/exec";
|
||||||
|
import { restoreCache } from "./cache/restore-cache";
|
||||||
import {
|
import {
|
||||||
tryGetFromToolCache,
|
|
||||||
resolveVersion,
|
|
||||||
downloadVersionFromGithub,
|
downloadVersionFromGithub,
|
||||||
downloadVersionFromManifest,
|
downloadVersionFromManifest,
|
||||||
|
resolveVersion,
|
||||||
|
tryGetFromToolCache,
|
||||||
} from "./download/download-version";
|
} from "./download/download-version";
|
||||||
import { restoreCache } from "./cache/restore-cache";
|
import {
|
||||||
|
activateEnvironment as activateEnvironmentInput,
|
||||||
|
cacheLocalPath,
|
||||||
|
checkSum,
|
||||||
|
enableCache,
|
||||||
|
githubToken,
|
||||||
|
ignoreEmptyWorkdir,
|
||||||
|
manifestFile,
|
||||||
|
pythonVersion,
|
||||||
|
serverUrl,
|
||||||
|
toolBinDir,
|
||||||
|
toolDir,
|
||||||
|
versionFile as versionFileInput,
|
||||||
|
version as versionInput,
|
||||||
|
workingDirectory,
|
||||||
|
} from "./utils/inputs";
|
||||||
import {
|
import {
|
||||||
type Architecture,
|
type Architecture,
|
||||||
getArch,
|
getArch,
|
||||||
getPlatform,
|
getPlatform,
|
||||||
type Platform,
|
type Platform,
|
||||||
} from "./utils/platforms";
|
} from "./utils/platforms";
|
||||||
import {
|
|
||||||
activateEnvironment as activateEnvironmentInput,
|
|
||||||
cacheLocalPath,
|
|
||||||
checkSum,
|
|
||||||
ignoreEmptyWorkdir,
|
|
||||||
enableCache,
|
|
||||||
githubToken,
|
|
||||||
pythonVersion,
|
|
||||||
toolBinDir,
|
|
||||||
toolDir,
|
|
||||||
version as versionInput,
|
|
||||||
versionFile as versionFileInput,
|
|
||||||
workingDirectory,
|
|
||||||
serverUrl,
|
|
||||||
manifestFile,
|
|
||||||
} from "./utils/inputs";
|
|
||||||
import * as exec from "@actions/exec";
|
|
||||||
import fs from "node:fs";
|
|
||||||
import { getUvVersionFromFile } from "./version/resolve";
|
import { getUvVersionFromFile } from "./version/resolve";
|
||||||
|
|
||||||
async function run(): Promise<void> {
|
async function run(): Promise<void> {
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
import * as semver from "semver";
|
|
||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
import { Octokit } from "./utils/octokit";
|
import * as semver from "semver";
|
||||||
|
|
||||||
import { OWNER, REPO } from "./utils/constants";
|
|
||||||
|
|
||||||
import { updateChecksums } from "./download/checksum/update-known-checksums";
|
import { updateChecksums } from "./download/checksum/update-known-checksums";
|
||||||
import {
|
import {
|
||||||
updateVersionManifest,
|
|
||||||
getLatestKnownVersion,
|
getLatestKnownVersion,
|
||||||
|
updateVersionManifest,
|
||||||
} from "./download/version-manifest";
|
} from "./download/version-manifest";
|
||||||
|
import { OWNER, REPO } from "./utils/constants";
|
||||||
|
import { Octokit } from "./utils/octokit";
|
||||||
|
|
||||||
async function run(): Promise<void> {
|
async function run(): Promise<void> {
|
||||||
const checksumFilePath = process.argv.slice(2)[0];
|
const checksumFilePath = process.argv.slice(2)[0];
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { fetch as undiciFetch, ProxyAgent, type RequestInit } from "undici";
|
import { ProxyAgent, type RequestInit, fetch as undiciFetch } from "undici";
|
||||||
|
|
||||||
export function getProxyAgent() {
|
export function getProxyAgent() {
|
||||||
const httpProxy = process.env.HTTP_PROXY || process.env.http_proxy;
|
const httpProxy = process.env.HTTP_PROXY || process.env.http_proxy;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import * as core from "@actions/core";
|
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
import * as core from "@actions/core";
|
||||||
|
|
||||||
export const workingDirectory = core.getInput("working-directory");
|
export const workingDirectory = core.getInput("working-directory");
|
||||||
export const version = core.getInput("version");
|
export const version = core.getInput("version");
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import type {
|
|||||||
OctokitOptions,
|
OctokitOptions,
|
||||||
} from "@octokit/core/dist-types/types";
|
} from "@octokit/core/dist-types/types";
|
||||||
import {
|
import {
|
||||||
paginateRest,
|
|
||||||
type PaginateInterface,
|
type PaginateInterface,
|
||||||
|
paginateRest,
|
||||||
} from "@octokit/plugin-paginate-rest";
|
} from "@octokit/plugin-paginate-rest";
|
||||||
import { legacyRestEndpointMethods } from "@octokit/plugin-rest-endpoint-methods";
|
import { legacyRestEndpointMethods } from "@octokit/plugin-rest-endpoint-methods";
|
||||||
import { fetch as customFetch } from "./fetch";
|
import { fetch as customFetch } from "./fetch";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import * as exec from "@actions/exec";
|
|
||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
|
import * as exec from "@actions/exec";
|
||||||
export type Platform =
|
export type Platform =
|
||||||
| "unknown-linux-gnu"
|
| "unknown-linux-gnu"
|
||||||
| "unknown-linux-musl"
|
| "unknown-linux-musl"
|
||||||
@@ -16,11 +16,11 @@ export type Architecture =
|
|||||||
export function getArch(): Architecture | undefined {
|
export function getArch(): Architecture | undefined {
|
||||||
const arch = process.arch;
|
const arch = process.arch;
|
||||||
const archMapping: { [key: string]: Architecture } = {
|
const archMapping: { [key: string]: Architecture } = {
|
||||||
ia32: "i686",
|
|
||||||
x64: "x86_64",
|
|
||||||
arm64: "aarch64",
|
arm64: "aarch64",
|
||||||
s390x: "s390x",
|
ia32: "i686",
|
||||||
ppc64: "powerpc64le",
|
ppc64: "powerpc64le",
|
||||||
|
s390x: "s390x",
|
||||||
|
x64: "x86_64",
|
||||||
};
|
};
|
||||||
|
|
||||||
if (arch in archMapping) {
|
if (arch in archMapping) {
|
||||||
@@ -31,8 +31,8 @@ export function getArch(): Architecture | undefined {
|
|||||||
export async function getPlatform(): Promise<Platform | undefined> {
|
export async function getPlatform(): Promise<Platform | undefined> {
|
||||||
const processPlatform = process.platform;
|
const processPlatform = process.platform;
|
||||||
const platformMapping: { [key: string]: Platform } = {
|
const platformMapping: { [key: string]: Platform } = {
|
||||||
linux: "unknown-linux-gnu",
|
|
||||||
darwin: "apple-darwin",
|
darwin: "apple-darwin",
|
||||||
|
linux: "unknown-linux-gnu",
|
||||||
win32: "pc-windows-msvc",
|
win32: "pc-windows-msvc",
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -50,16 +50,16 @@ async function isMuslOs(): Promise<boolean> {
|
|||||||
let stdOutput = "";
|
let stdOutput = "";
|
||||||
let errOutput = "";
|
let errOutput = "";
|
||||||
const options: exec.ExecOptions = {
|
const options: exec.ExecOptions = {
|
||||||
silent: !core.isDebug(),
|
ignoreReturnCode: true,
|
||||||
listeners: {
|
listeners: {
|
||||||
stdout: (data: Buffer) => {
|
|
||||||
stdOutput += data.toString();
|
|
||||||
},
|
|
||||||
stderr: (data: Buffer) => {
|
stderr: (data: Buffer) => {
|
||||||
errOutput += data.toString();
|
errOutput += data.toString();
|
||||||
},
|
},
|
||||||
|
stdout: (data: Buffer) => {
|
||||||
|
stdOutput += data.toString();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
ignoreReturnCode: true,
|
silent: !core.isDebug(),
|
||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import * as toml from "smol-toml";
|
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
|
import * as toml from "smol-toml";
|
||||||
|
|
||||||
export function getUvVersionFromRequirementsFile(
|
export function getUvVersionFromRequirementsFile(
|
||||||
filePath: string,
|
filePath: string,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import * as core from "@actions/core";
|
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
|
import * as core from "@actions/core";
|
||||||
import { getRequiredVersionFromConfigFile } from "./config-file";
|
import { getRequiredVersionFromConfigFile } from "./config-file";
|
||||||
import { getUvVersionFromRequirementsFile } from "./requirements-file";
|
import { getUvVersionFromRequirementsFile } from "./requirements-file";
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ES2022" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
|
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
||||||
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
|
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
|
||||||
|
"noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
|
||||||
"outDir": "./lib" /* Redirect output structure to the directory. */,
|
"outDir": "./lib" /* Redirect output structure to the directory. */,
|
||||||
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
|
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
|
||||||
"strict": true /* Enable all strict type-checking options. */,
|
"strict": true /* Enable all strict type-checking options. */,
|
||||||
"noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
|
"target": "ES2022" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
|
||||||
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
|
||||||
},
|
},
|
||||||
"exclude": ["node_modules", "**/*.test.ts"]
|
"exclude": ["node_modules", "**/*.test.ts"]
|
||||||
}
|
}
|
||||||
|
|||||||
20708
version-manifest.json
20708
version-manifest.json
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user