From 17144997f25606de4740732003c1a34c8dc91e0a Mon Sep 17 00:00:00 2001 From: Akkuman Date: Fri, 1 Dec 2023 17:03:41 +0800 Subject: [PATCH] fix: move main.js to root dir, fix ncc build error ref: https://github.com/vercel/ncc/issues/791 --- README.md | 2 +- dist/index.js | 430 +++++++++++------------------------------ dist/package.json | 3 + src/main.js => main.js | 2 + package-lock.json | 5 +- package.json | 12 +- 6 files changed, 127 insertions(+), 327 deletions(-) create mode 100644 dist/package.json rename src/main.js => main.js (98%) diff --git a/README.md b/README.md index ef46340..7322fa1 100644 --- a/README.md +++ b/README.md @@ -34,4 +34,4 @@ If you want to ignore ssl verify error, you can set env `NODE_TLS_REJECT_UNAUTHO - [softprops/action-gh-release: 📦 GitHub Action for creating GitHub Releases](https://github.com/softprops/action-gh-release) - [sigyl-actions/gitea-action-release-asset](https://github.com/sigyl-actions/gitea-action-release-asset) -- [actions/release-action: An action written by Golang to support publishing release to Gitea(not Github Actions compatible) - release-action - Gitea: Git with a cup of tea](https://gitea.com/actions/release-action) \ No newline at end of file +- [actions/release-action: An action written by Golang to support publishing release to Gitea(not Github Actions compatible) - release-action - Gitea: Git with a cup of tea](https://gitea.com/actions/release-action) diff --git a/dist/index.js b/dist/index.js index 3ff6035..6f4cb26 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,10 +1,9 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ +import { createRequire as __WEBPACK_EXTERNAL_createRequire } from "module"; +/******/ var __webpack_modules__ = ({ /***/ 7351: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -103,7 +102,6 @@ function escapeProperty(s) { /***/ 2186: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -446,7 +444,6 @@ Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: funct /***/ 717: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; // For internal use, subject to change. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { @@ -511,7 +508,6 @@ exports.prepareKeyValueMessage = prepareKeyValueMessage; /***/ 8041: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -595,7 +591,6 @@ exports.OidcClient = OidcClient; /***/ 2981: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -660,7 +655,6 @@ exports.toPlatformPath = toPlatformPath; /***/ 1327: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -950,7 +944,6 @@ exports.summary = _summary; /***/ 5278: /***/ ((__unused_webpack_module, exports) => { -"use strict"; // We use any as a valid input type /* eslint-disable @typescript-eslint/no-explicit-any */ @@ -997,7 +990,6 @@ exports.toCommandProperties = toCommandProperties; /***/ 5526: /***/ (function(__unused_webpack_module, exports) { -"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -1085,7 +1077,6 @@ exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHand /***/ 6255: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; /* eslint-disable @typescript-eslint/no-explicit-any */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { @@ -1748,7 +1739,6 @@ const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCa /***/ 9835: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.checkBypass = exports.getProxyUrl = void 0; @@ -1837,7 +1827,6 @@ function isLoopbackAddress(host) { /***/ 1402: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GiteaApi = void 0; @@ -1884,7 +1873,6 @@ exports.GiteaApi = GiteaApi; /***/ 9624: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ApiError = void 0; @@ -1907,7 +1895,6 @@ exports.ApiError = ApiError; /***/ 3076: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.BaseHttpRequest = void 0; @@ -1924,7 +1911,6 @@ exports.BaseHttpRequest = BaseHttpRequest; /***/ 737: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CancelablePromise = exports.CancelError = void 0; @@ -2026,7 +2012,6 @@ Symbol.toStringTag; /***/ 2378: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FetchHttpRequest = void 0; @@ -2054,7 +2039,6 @@ exports.FetchHttpRequest = FetchHttpRequest; /***/ 1455: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.OpenAPI = void 0; @@ -2076,7 +2060,6 @@ exports.OpenAPI = { /***/ 1531: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } @@ -2345,63 +2328,61 @@ exports.request = request; /***/ 5371: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; -var __webpack_unused_export__; -__webpack_unused_export__ = ({ value: true }); -__webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = void 0; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.UserService = exports.SettingsService = exports.RepositoryService = exports.PackageService = exports.OrganizationService = exports.NotificationService = exports.MiscellaneousService = exports.IssueService = exports.AdminService = exports.Team = exports.MigrateRepoOptions = exports.MergePullRequestOption = exports.EditTeamOption = exports.EditOrgOption = exports.CreateTeamOption = exports.CreateRepoOption = exports.CreateOrgOption = exports.CreateMilestoneOption = exports.CreateHookOption = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.GiteaApi = void 0; /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ var GiteaApi_1 = __nccwpck_require__(1402); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return GiteaApi_1.GiteaApi; } }); +Object.defineProperty(exports, "GiteaApi", ({ enumerable: true, get: function () { return GiteaApi_1.GiteaApi; } })); var ApiError_1 = __nccwpck_require__(9624); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return ApiError_1.ApiError; } }); +Object.defineProperty(exports, "ApiError", ({ enumerable: true, get: function () { return ApiError_1.ApiError; } })); var BaseHttpRequest_1 = __nccwpck_require__(3076); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return BaseHttpRequest_1.BaseHttpRequest; } }); +Object.defineProperty(exports, "BaseHttpRequest", ({ enumerable: true, get: function () { return BaseHttpRequest_1.BaseHttpRequest; } })); var CancelablePromise_1 = __nccwpck_require__(737); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return CancelablePromise_1.CancelablePromise; } }); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return CancelablePromise_1.CancelError; } }); +Object.defineProperty(exports, "CancelablePromise", ({ enumerable: true, get: function () { return CancelablePromise_1.CancelablePromise; } })); +Object.defineProperty(exports, "CancelError", ({ enumerable: true, get: function () { return CancelablePromise_1.CancelError; } })); var OpenAPI_1 = __nccwpck_require__(1455); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return OpenAPI_1.OpenAPI; } }); +Object.defineProperty(exports, "OpenAPI", ({ enumerable: true, get: function () { return OpenAPI_1.OpenAPI; } })); var CreateHookOption_1 = __nccwpck_require__(3275); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return CreateHookOption_1.CreateHookOption; } }); +Object.defineProperty(exports, "CreateHookOption", ({ enumerable: true, get: function () { return CreateHookOption_1.CreateHookOption; } })); var CreateMilestoneOption_1 = __nccwpck_require__(1646); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return CreateMilestoneOption_1.CreateMilestoneOption; } }); +Object.defineProperty(exports, "CreateMilestoneOption", ({ enumerable: true, get: function () { return CreateMilestoneOption_1.CreateMilestoneOption; } })); var CreateOrgOption_1 = __nccwpck_require__(9219); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return CreateOrgOption_1.CreateOrgOption; } }); +Object.defineProperty(exports, "CreateOrgOption", ({ enumerable: true, get: function () { return CreateOrgOption_1.CreateOrgOption; } })); var CreateRepoOption_1 = __nccwpck_require__(2683); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return CreateRepoOption_1.CreateRepoOption; } }); +Object.defineProperty(exports, "CreateRepoOption", ({ enumerable: true, get: function () { return CreateRepoOption_1.CreateRepoOption; } })); var CreateTeamOption_1 = __nccwpck_require__(2573); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return CreateTeamOption_1.CreateTeamOption; } }); +Object.defineProperty(exports, "CreateTeamOption", ({ enumerable: true, get: function () { return CreateTeamOption_1.CreateTeamOption; } })); var EditOrgOption_1 = __nccwpck_require__(7679); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return EditOrgOption_1.EditOrgOption; } }); +Object.defineProperty(exports, "EditOrgOption", ({ enumerable: true, get: function () { return EditOrgOption_1.EditOrgOption; } })); var EditTeamOption_1 = __nccwpck_require__(6398); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return EditTeamOption_1.EditTeamOption; } }); +Object.defineProperty(exports, "EditTeamOption", ({ enumerable: true, get: function () { return EditTeamOption_1.EditTeamOption; } })); var MergePullRequestOption_1 = __nccwpck_require__(7403); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return MergePullRequestOption_1.MergePullRequestOption; } }); +Object.defineProperty(exports, "MergePullRequestOption", ({ enumerable: true, get: function () { return MergePullRequestOption_1.MergePullRequestOption; } })); var MigrateRepoOptions_1 = __nccwpck_require__(7744); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return MigrateRepoOptions_1.MigrateRepoOptions; } }); +Object.defineProperty(exports, "MigrateRepoOptions", ({ enumerable: true, get: function () { return MigrateRepoOptions_1.MigrateRepoOptions; } })); var Team_1 = __nccwpck_require__(6914); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return Team_1.Team; } }); +Object.defineProperty(exports, "Team", ({ enumerable: true, get: function () { return Team_1.Team; } })); var AdminService_1 = __nccwpck_require__(1859); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return AdminService_1.AdminService; } }); +Object.defineProperty(exports, "AdminService", ({ enumerable: true, get: function () { return AdminService_1.AdminService; } })); var IssueService_1 = __nccwpck_require__(5868); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return IssueService_1.IssueService; } }); +Object.defineProperty(exports, "IssueService", ({ enumerable: true, get: function () { return IssueService_1.IssueService; } })); var MiscellaneousService_1 = __nccwpck_require__(3446); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return MiscellaneousService_1.MiscellaneousService; } }); +Object.defineProperty(exports, "MiscellaneousService", ({ enumerable: true, get: function () { return MiscellaneousService_1.MiscellaneousService; } })); var NotificationService_1 = __nccwpck_require__(8167); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return NotificationService_1.NotificationService; } }); +Object.defineProperty(exports, "NotificationService", ({ enumerable: true, get: function () { return NotificationService_1.NotificationService; } })); var OrganizationService_1 = __nccwpck_require__(9332); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return OrganizationService_1.OrganizationService; } }); +Object.defineProperty(exports, "OrganizationService", ({ enumerable: true, get: function () { return OrganizationService_1.OrganizationService; } })); var PackageService_1 = __nccwpck_require__(4855); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return PackageService_1.PackageService; } }); +Object.defineProperty(exports, "PackageService", ({ enumerable: true, get: function () { return PackageService_1.PackageService; } })); var RepositoryService_1 = __nccwpck_require__(3594); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return RepositoryService_1.RepositoryService; } }); +Object.defineProperty(exports, "RepositoryService", ({ enumerable: true, get: function () { return RepositoryService_1.RepositoryService; } })); var SettingsService_1 = __nccwpck_require__(6011); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return SettingsService_1.SettingsService; } }); +Object.defineProperty(exports, "SettingsService", ({ enumerable: true, get: function () { return SettingsService_1.SettingsService; } })); var UserService_1 = __nccwpck_require__(4842); -__webpack_unused_export__ = ({ enumerable: true, get: function () { return UserService_1.UserService; } }); +Object.defineProperty(exports, "UserService", ({ enumerable: true, get: function () { return UserService_1.UserService; } })); /***/ }), @@ -2409,7 +2390,6 @@ __webpack_unused_export__ = ({ enumerable: true, get: function () { return UserS /***/ 3275: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* istanbul ignore file */ /* tslint:disable */ @@ -2439,7 +2419,6 @@ var CreateHookOption; /***/ 1646: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* istanbul ignore file */ /* tslint:disable */ @@ -2461,7 +2440,6 @@ var CreateMilestoneOption; /***/ 9219: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* istanbul ignore file */ /* tslint:disable */ @@ -2487,7 +2465,6 @@ var CreateOrgOption; /***/ 2683: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* istanbul ignore file */ /* tslint:disable */ @@ -2514,7 +2491,6 @@ var CreateRepoOption; /***/ 2573: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* istanbul ignore file */ /* tslint:disable */ @@ -2537,7 +2513,6 @@ var CreateTeamOption; /***/ 7679: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* istanbul ignore file */ /* tslint:disable */ @@ -2563,7 +2538,6 @@ var EditOrgOption; /***/ 6398: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* istanbul ignore file */ /* tslint:disable */ @@ -2586,7 +2560,6 @@ var EditTeamOption; /***/ 7403: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* istanbul ignore file */ /* tslint:disable */ @@ -2611,7 +2584,6 @@ var MergePullRequestOption; /***/ 7744: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* istanbul ignore file */ /* tslint:disable */ @@ -2635,7 +2607,6 @@ var MigrateRepoOptions; /***/ 6914: /***/ ((__unused_webpack_module, exports) => { -"use strict"; /* istanbul ignore file */ /* tslint:disable */ @@ -2660,7 +2631,6 @@ var Team; /***/ 1859: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.AdminService = void 0; @@ -2936,7 +2906,6 @@ exports.AdminService = AdminService; /***/ 5868: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.IssueService = void 0; @@ -3935,7 +3904,6 @@ exports.IssueService = IssueService; /***/ 3446: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MiscellaneousService = void 0; @@ -4015,7 +3983,6 @@ exports.MiscellaneousService = MiscellaneousService; /***/ 8167: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.NotificationService = void 0; @@ -4164,7 +4131,6 @@ exports.NotificationService = NotificationService; /***/ 9332: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.OrganizationService = void 0; @@ -4899,7 +4865,6 @@ exports.OrganizationService = OrganizationService; /***/ 4855: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PackageService = void 0; @@ -4996,7 +4961,6 @@ exports.PackageService = PackageService; /***/ 3594: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.RepositoryService = void 0; @@ -7546,7 +7510,6 @@ exports.RepositoryService = RepositoryService; /***/ 6011: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SettingsService = void 0; @@ -7607,7 +7570,6 @@ exports.SettingsService = SettingsService; /***/ 4842: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.UserService = void 0; @@ -8432,7 +8394,6 @@ module.exports = __nccwpck_require__(4219); /***/ 4219: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; var net = __nccwpck_require__(1808); @@ -8704,7 +8665,6 @@ exports.debug = debug; // for test /***/ 1773: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const Client = __nccwpck_require__(3598) @@ -8879,7 +8839,6 @@ module.exports.mockErrors = mockErrors /***/ 7890: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { InvalidArgumentError } = __nccwpck_require__(8045) @@ -9096,7 +9055,6 @@ module.exports = { /***/ 9744: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { AsyncResource } = __nccwpck_require__(852) @@ -9208,7 +9166,6 @@ module.exports = connect /***/ 8752: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { @@ -9465,7 +9422,6 @@ module.exports = pipeline /***/ 5448: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const Readable = __nccwpck_require__(3858) @@ -9653,7 +9609,6 @@ module.exports.RequestHandler = RequestHandler /***/ 5395: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { finished, PassThrough } = __nccwpck_require__(2781) @@ -9881,7 +9836,6 @@ module.exports = stream /***/ 6923: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { InvalidArgumentError, RequestAbortedError, SocketError } = __nccwpck_require__(8045) @@ -9994,7 +9948,6 @@ module.exports = upgrade /***/ 4059: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; module.exports.request = __nccwpck_require__(5448) @@ -10009,7 +9962,6 @@ module.exports.connect = __nccwpck_require__(9744) /***/ 3858: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; // Ported from https://github.com/nodejs/undici/pull/907 @@ -10392,7 +10344,6 @@ module.exports = { getResolveErrorBodyCallback } /***/ 7931: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { @@ -10590,7 +10541,6 @@ module.exports = BalancedPool /***/ 6101: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { kConstruct } = __nccwpck_require__(9174) @@ -11436,7 +11386,6 @@ module.exports = { /***/ 7907: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { kConstruct } = __nccwpck_require__(9174) @@ -11588,7 +11537,6 @@ module.exports = { /***/ 9174: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; module.exports = { @@ -11601,7 +11549,6 @@ module.exports = { /***/ 2396: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const assert = __nccwpck_require__(9491) @@ -11658,7 +11605,6 @@ module.exports = { /***/ 3598: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; // @ts-check @@ -13949,7 +13895,6 @@ module.exports = Client /***/ 6436: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; /* istanbul ignore file: only for Node 12 */ @@ -14005,7 +13950,6 @@ module.exports = function () { /***/ 663: /***/ ((module) => { -"use strict"; // https://wicg.github.io/cookie-store/#cookie-maximum-attribute-value-size @@ -14025,7 +13969,6 @@ module.exports = { /***/ 1724: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { parseSetCookie } = __nccwpck_require__(4408) @@ -14217,7 +14160,6 @@ module.exports = { /***/ 4408: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { maxNameValuePairSize, maxAttributeValueSize } = __nccwpck_require__(663) @@ -14542,7 +14484,6 @@ module.exports = { /***/ 3121: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const assert = __nccwpck_require__(9491) @@ -14841,7 +14782,6 @@ module.exports = { /***/ 2067: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const net = __nccwpck_require__(1808) @@ -15038,7 +14978,6 @@ module.exports = buildConnector /***/ 8045: /***/ ((module) => { -"use strict"; class UndiciError extends Error { @@ -15276,7 +15215,6 @@ module.exports = { /***/ 2905: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { @@ -15853,7 +15791,6 @@ module.exports = { /***/ 3983: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const assert = __nccwpck_require__(9491) @@ -16372,7 +16309,6 @@ module.exports = { /***/ 4839: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const Dispatcher = __nccwpck_require__(412) @@ -16572,7 +16508,6 @@ module.exports = DispatcherBase /***/ 412: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const EventEmitter = __nccwpck_require__(2361) @@ -16599,7 +16534,6 @@ module.exports = Dispatcher /***/ 1472: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const Busboy = __nccwpck_require__(727) @@ -17212,7 +17146,6 @@ module.exports = { /***/ 1037: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { MessageChannel, receiveMessageOnPort } = __nccwpck_require__(1267) @@ -18005,7 +17938,6 @@ module.exports = { /***/ 8511: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { Blob, File: NativeFile } = __nccwpck_require__(4300) @@ -18357,7 +18289,6 @@ module.exports = { File, FileLike, isFileLike } /***/ 2015: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { isBlobLike, toUSVString, makeIterator } = __nccwpck_require__(2538) @@ -18630,7 +18561,6 @@ module.exports = { FormData } /***/ 1246: /***/ ((module) => { -"use strict"; // In case of breaking changes, increase the version @@ -18678,7 +18608,6 @@ module.exports = { /***/ 554: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; // https://github.com/Ethan-Arrowood/undici-fetch @@ -19275,7 +19204,6 @@ module.exports = { /***/ 4881: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; // https://github.com/Ethan-Arrowood/undici-fetch @@ -21428,7 +21356,6 @@ module.exports = { /***/ 8359: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; /* globals AbortController */ @@ -22382,7 +22309,6 @@ module.exports = { Request, makeRequest } /***/ 7823: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { Headers, HeadersList, fill } = __nccwpck_require__(554) @@ -22961,7 +22887,6 @@ module.exports = { /***/ 5861: /***/ ((module) => { -"use strict"; module.exports = { @@ -22979,7 +22904,6 @@ module.exports = { /***/ 2538: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { redirectStatusSet, referrerPolicySet: referrerPolicyTokens, badPortsSet } = __nccwpck_require__(1037) @@ -24058,7 +23982,6 @@ module.exports = { /***/ 1744: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { types } = __nccwpck_require__(3837) @@ -24712,7 +24635,6 @@ module.exports = { /***/ 4854: /***/ ((module) => { -"use strict"; /** @@ -25010,7 +24932,6 @@ module.exports = { /***/ 1446: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { @@ -25362,7 +25283,6 @@ module.exports = { /***/ 5504: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { webidl } = __nccwpck_require__(1744) @@ -25448,7 +25368,6 @@ module.exports = { /***/ 9054: /***/ ((module) => { -"use strict"; module.exports = { @@ -25466,7 +25385,6 @@ module.exports = { /***/ 7530: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { @@ -25866,7 +25784,6 @@ module.exports = { /***/ 1892: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; // We include a version number for the Dispatcher API. In case of breaking changes, @@ -25906,7 +25823,6 @@ module.exports = { /***/ 6930: /***/ ((module) => { -"use strict"; module.exports = class DecoratorHandler { @@ -25949,7 +25865,6 @@ module.exports = class DecoratorHandler { /***/ 2860: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const util = __nccwpck_require__(3983) @@ -26516,7 +26431,6 @@ module.exports = RetryHandler /***/ 8861: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const RedirectHandler = __nccwpck_require__(2860) @@ -26545,7 +26459,6 @@ module.exports = createRedirectInterceptor /***/ 953: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SPECIAL_HEADERS = exports.HEADER_STATE = exports.MINOR = exports.MAJOR = exports.CONNECTION_TOKEN_CHARS = exports.HEADER_CHARS = exports.TOKEN = exports.STRICT_TOKEN = exports.HEX = exports.URL_CHAR = exports.STRICT_URL_CHAR = exports.USERINFO_CHARS = exports.MARK = exports.ALPHANUM = exports.NUM = exports.HEX_MAP = exports.NUM_MAP = exports.ALPHA = exports.FINISH = exports.H_METHOD_MAP = exports.METHOD_MAP = exports.METHODS_RTSP = exports.METHODS_ICE = exports.METHODS_HTTP = exports.METHODS = exports.LENIENT_FLAGS = exports.FLAGS = exports.TYPE = exports.ERROR = void 0; @@ -26846,7 +26759,6 @@ module.exports = 'AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn /***/ 1891: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.enumToMap = void 0; @@ -26868,7 +26780,6 @@ exports.enumToMap = enumToMap; /***/ 6771: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { kClients } = __nccwpck_require__(2785) @@ -27047,7 +26958,6 @@ module.exports = MockAgent /***/ 8687: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { promisify } = __nccwpck_require__(3837) @@ -27114,7 +27024,6 @@ module.exports = MockClient /***/ 888: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { UndiciError } = __nccwpck_require__(8045) @@ -27139,7 +27048,6 @@ module.exports = { /***/ 410: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { getResponseData, buildKey, addMockDispatch } = __nccwpck_require__(9323) @@ -27353,7 +27261,6 @@ module.exports.MockScope = MockScope /***/ 6193: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { promisify } = __nccwpck_require__(3837) @@ -27420,7 +27327,6 @@ module.exports = MockPool /***/ 4347: /***/ ((module) => { -"use strict"; module.exports = { @@ -27451,7 +27357,6 @@ module.exports = { /***/ 9323: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { MockNotMatchedError } = __nccwpck_require__(888) @@ -27810,7 +27715,6 @@ module.exports = { /***/ 6823: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { Transform } = __nccwpck_require__(2781) @@ -27858,7 +27762,6 @@ module.exports = class PendingInterceptorsFormatter { /***/ 8891: /***/ ((module) => { -"use strict"; const singulars = { @@ -27895,7 +27798,6 @@ module.exports = class Pluralizer { /***/ 8266: /***/ ((module) => { -"use strict"; /* eslint-disable */ @@ -28020,7 +27922,6 @@ module.exports = class FixedQueue { /***/ 3198: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const DispatcherBase = __nccwpck_require__(4839) @@ -28263,7 +28164,6 @@ module.exports = PoolStats /***/ 4634: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { @@ -28365,7 +28265,6 @@ module.exports = Pool /***/ 7858: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { kProxy, kClose, kDestroy, kInterceptors } = __nccwpck_require__(2785) @@ -28562,7 +28461,6 @@ module.exports = ProxyAgent /***/ 9459: /***/ ((module) => { -"use strict"; let fastNow = Date.now() @@ -28667,7 +28565,6 @@ module.exports = { /***/ 5354: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const diagnosticsChannel = __nccwpck_require__(7643) @@ -28966,7 +28863,6 @@ module.exports = { /***/ 9188: /***/ ((module) => { -"use strict"; // This is a Globally Unique Identifier unique used @@ -29025,7 +28921,6 @@ module.exports = { /***/ 2611: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { webidl } = __nccwpck_require__(1744) @@ -29336,7 +29231,6 @@ module.exports = { /***/ 5444: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { maxUnsigned16Bit } = __nccwpck_require__(9188) @@ -29417,7 +29311,6 @@ module.exports = { /***/ 1688: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { Writable } = __nccwpck_require__(2781) @@ -29769,7 +29662,6 @@ module.exports = { /***/ 7578: /***/ ((module) => { -"use strict"; module.exports = { @@ -29789,7 +29681,6 @@ module.exports = { /***/ 5515: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { kReadyState, kController, kResponse, kBinaryType, kWebSocketURL } = __nccwpck_require__(7578) @@ -29997,7 +29888,6 @@ module.exports = { /***/ 4284: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const { webidl } = __nccwpck_require__(1744) @@ -30646,7 +30536,6 @@ module.exports = { /***/ 5840: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -30732,7 +30621,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de /***/ 4569: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -30762,7 +30650,6 @@ exports["default"] = _default; /***/ 5332: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -30777,7 +30664,6 @@ exports["default"] = _default; /***/ 2746: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -30829,7 +30715,6 @@ exports["default"] = _default; /***/ 814: /***/ ((__unused_webpack_module, exports) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -30844,7 +30729,6 @@ exports["default"] = _default; /***/ 807: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -30875,7 +30759,6 @@ function rng() { /***/ 5274: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -30905,7 +30788,6 @@ exports["default"] = _default; /***/ 8950: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -30951,7 +30833,6 @@ exports["default"] = _default; /***/ 8628: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -31065,7 +30946,6 @@ exports["default"] = _default; /***/ 6409: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -31088,7 +30968,6 @@ exports["default"] = _default; /***/ 5998: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -31173,7 +31052,6 @@ function _default(name, version, hashfunc) { /***/ 5122: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -31217,7 +31095,6 @@ exports["default"] = _default; /***/ 9120: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -31240,7 +31117,6 @@ exports["default"] = _default; /***/ 6900: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -31264,7 +31140,6 @@ exports["default"] = _default; /***/ 1595: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -"use strict"; Object.defineProperty(exports, "__esModule", ({ @@ -31292,231 +31167,202 @@ exports["default"] = _default; /***/ 9491: /***/ ((module) => { -"use strict"; -module.exports = require("assert"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("assert"); /***/ }), /***/ 852: /***/ ((module) => { -"use strict"; -module.exports = require("async_hooks"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("async_hooks"); /***/ }), /***/ 4300: /***/ ((module) => { -"use strict"; -module.exports = require("buffer"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("buffer"); /***/ }), /***/ 6206: /***/ ((module) => { -"use strict"; -module.exports = require("console"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("console"); /***/ }), /***/ 6113: /***/ ((module) => { -"use strict"; -module.exports = require("crypto"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("crypto"); /***/ }), /***/ 7643: /***/ ((module) => { -"use strict"; -module.exports = require("diagnostics_channel"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("diagnostics_channel"); /***/ }), /***/ 2361: /***/ ((module) => { -"use strict"; -module.exports = require("events"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("events"); /***/ }), /***/ 7147: /***/ ((module) => { -"use strict"; -module.exports = require("fs"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs"); /***/ }), /***/ 3685: /***/ ((module) => { -"use strict"; -module.exports = require("http"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("http"); /***/ }), /***/ 5158: /***/ ((module) => { -"use strict"; -module.exports = require("http2"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("http2"); /***/ }), /***/ 5687: /***/ ((module) => { -"use strict"; -module.exports = require("https"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("https"); /***/ }), /***/ 1808: /***/ ((module) => { -"use strict"; -module.exports = require("net"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("net"); /***/ }), /***/ 5673: /***/ ((module) => { -"use strict"; -module.exports = require("node:events"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:events"); /***/ }), /***/ 4492: /***/ ((module) => { -"use strict"; -module.exports = require("node:stream"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream"); /***/ }), /***/ 7261: /***/ ((module) => { -"use strict"; -module.exports = require("node:util"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:util"); /***/ }), /***/ 2037: /***/ ((module) => { -"use strict"; -module.exports = require("os"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("os"); /***/ }), /***/ 1017: /***/ ((module) => { -"use strict"; -module.exports = require("path"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("path"); /***/ }), /***/ 4074: /***/ ((module) => { -"use strict"; -module.exports = require("perf_hooks"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("perf_hooks"); /***/ }), /***/ 3477: /***/ ((module) => { -"use strict"; -module.exports = require("querystring"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("querystring"); /***/ }), /***/ 2781: /***/ ((module) => { -"use strict"; -module.exports = require("stream"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("stream"); /***/ }), /***/ 5356: /***/ ((module) => { -"use strict"; -module.exports = require("stream/web"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("stream/web"); /***/ }), /***/ 1576: /***/ ((module) => { -"use strict"; -module.exports = require("string_decoder"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("string_decoder"); /***/ }), /***/ 4404: /***/ ((module) => { -"use strict"; -module.exports = require("tls"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("tls"); /***/ }), /***/ 7310: /***/ ((module) => { -"use strict"; -module.exports = require("url"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("url"); /***/ }), /***/ 3837: /***/ ((module) => { -"use strict"; -module.exports = require("util"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("util"); /***/ }), /***/ 9830: /***/ ((module) => { -"use strict"; -module.exports = require("util/types"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("util/types"); /***/ }), /***/ 1267: /***/ ((module) => { -"use strict"; -module.exports = require("worker_threads"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("worker_threads"); /***/ }), /***/ 9796: /***/ ((module) => { -"use strict"; -module.exports = require("zlib"); +module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("zlib"); /***/ }), /***/ 2960: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const WritableStream = (__nccwpck_require__(4492).Writable) @@ -31731,7 +31577,6 @@ module.exports = Dicer /***/ 2032: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const EventEmitter = (__nccwpck_require__(5673).EventEmitter) @@ -31839,7 +31684,6 @@ module.exports = HeaderParser /***/ 1620: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const inherits = (__nccwpck_require__(7261).inherits) @@ -31860,7 +31704,6 @@ module.exports = PartStream /***/ 1142: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; /** @@ -32096,7 +31939,6 @@ module.exports = SBMH /***/ 727: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const WritableStream = (__nccwpck_require__(4492).Writable) @@ -32189,7 +32031,6 @@ module.exports.Dicer = Dicer /***/ 2183: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; // TODO: @@ -32503,7 +32344,6 @@ module.exports = Multipart /***/ 8306: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; const Decoder = __nccwpck_require__(7100) @@ -32701,7 +32541,6 @@ module.exports = UrlEncoded /***/ 7100: /***/ ((module) => { -"use strict"; const RE_PLUS = /\+/g @@ -32763,7 +32602,6 @@ module.exports = Decoder /***/ 8647: /***/ ((module) => { -"use strict"; module.exports = function basename (path) { @@ -32785,7 +32623,6 @@ module.exports = function basename (path) { /***/ 4619: /***/ (function(module) { -"use strict"; // Node has always utf-8 @@ -32907,7 +32744,6 @@ module.exports = decodeText /***/ 1467: /***/ ((module) => { -"use strict"; module.exports = function getLimit (limits, name, defaultLimit) { @@ -32931,7 +32767,6 @@ module.exports = function getLimit (limits, name, defaultLimit) { /***/ 1854: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -"use strict"; /* eslint-disable object-property-newline */ @@ -33132,98 +32967,52 @@ module.exports = parseParams /***/ }) -/******/ }); +/******/ }); /************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __nccwpck_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; /******/ } -/******/ +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ var threw = true; +/******/ try { +/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nccwpck_require__); +/******/ threw = false; +/******/ } finally { +/******/ if(threw) delete __webpack_module_cache__[moduleId]; +/******/ } +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ /************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ (() => { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __nccwpck_require__.n = (module) => { -/******/ var getter = module && module.__esModule ? -/******/ () => (module['default']) : -/******/ () => (module); -/******/ __nccwpck_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __nccwpck_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __nccwpck_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; -/******/ +/******/ /* webpack/runtime/compat */ +/******/ +/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = new URL('.', import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/) ? 1 : 0, -1) + "/"; +/******/ /************************************************************************/ var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be in strict mode. +// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. (() => { -"use strict"; -__nccwpck_require__.r(__webpack_exports__); /* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(7147); -/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(4300); -/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nccwpck_require__.n(buffer__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(2186); -/* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__nccwpck_require__.n(_actions_core__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var gitea_api__WEBPACK_IMPORTED_MODULE_3__ = __nccwpck_require__(5371); /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_4__ = __nccwpck_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__nccwpck_require__.n(path__WEBPACK_IMPORTED_MODULE_4__); @@ -33234,19 +33023,21 @@ __nccwpck_require__.r(__webpack_exports__); async function run() { try { - const server_url = _actions_core__WEBPACK_IMPORTED_MODULE_2___default().getInput("server_url") - const name = _actions_core__WEBPACK_IMPORTED_MODULE_2___default().getInput("name") - const body = _actions_core__WEBPACK_IMPORTED_MODULE_2___default().getInput("body") - const tag_name = _actions_core__WEBPACK_IMPORTED_MODULE_2___default().getInput("tag_name") - const draft = _actions_core__WEBPACK_IMPORTED_MODULE_2___default().getInput("draft") - const prerelease = _actions_core__WEBPACK_IMPORTED_MODULE_2___default().getInput("prerelease") - const files = _actions_core__WEBPACK_IMPORTED_MODULE_2___default().getInput("files") - const repository = _actions_core__WEBPACK_IMPORTED_MODULE_2___default().getInput("repository") - const token = _actions_core__WEBPACK_IMPORTED_MODULE_2___default().getInput("token") + console.log(_actions_core__WEBPACK_IMPORTED_MODULE_2__) + console.log(gitea_api__WEBPACK_IMPORTED_MODULE_3__) + const server_url = _actions_core__WEBPACK_IMPORTED_MODULE_2__.getInput("server_url") + const name = _actions_core__WEBPACK_IMPORTED_MODULE_2__.getInput("name") + const body = _actions_core__WEBPACK_IMPORTED_MODULE_2__.getInput("body") + const tag_name = _actions_core__WEBPACK_IMPORTED_MODULE_2__.getInput("tag_name") + const draft = _actions_core__WEBPACK_IMPORTED_MODULE_2__.getInput("draft") + const prerelease = _actions_core__WEBPACK_IMPORTED_MODULE_2__.getInput("prerelease") + const files = _actions_core__WEBPACK_IMPORTED_MODULE_2__.getInput("files") + const repository = _actions_core__WEBPACK_IMPORTED_MODULE_2__.getInput("repository") + const token = _actions_core__WEBPACK_IMPORTED_MODULE_2__.getInput("token") const [owner, repo] = (repository).split("/") - const gitea_client = new gitea_api__WEBPACK_IMPORTED_MODULE_3__["default"].GiteaApi({ + const gitea_client = new gitea_api__WEBPACK_IMPORTED_MODULE_3__.GiteaApi({ BASE: `${server_url}/api/v1`, WITH_CREDENTIALS: true, TOKEN: token, @@ -33268,7 +33059,7 @@ async function run() { console.log(`🎉 Release ready at ${response.html_url}`); } catch (error) { console.log(error); - _actions_core__WEBPACK_IMPORTED_MODULE_2___default().setFailed(error.message); + _actions_core__WEBPACK_IMPORTED_MODULE_2__.setFailed(error.message); } } @@ -33289,7 +33080,7 @@ async function createOrGetRelease(client, owner, repo, body) { }) return release } catch (error) { - if (!(error instanceof gitea_api__WEBPACK_IMPORTED_MODULE_3__["default"].ApiError) || error.status !== 404) { + if (!(error instanceof gitea_api__WEBPACK_IMPORTED_MODULE_3__.ApiError) || error.status !== 404) { throw error } } @@ -33330,7 +33121,7 @@ async function uploadFiles(client, owner, repo, release_id, all_files) { }) for (const filepath in all_files) { for (const attachment in attachments) { - if (attachment.name === path__WEBPACK_IMPORTED_MODULE_4___default().basename(filepath)) { + if (attachment.name === path__WEBPACK_IMPORTED_MODULE_4__.basename(filepath)) { await client.repository.repoDeleteReleaseAttachment({ owner: owner, repo: repo, @@ -33339,14 +33130,14 @@ async function uploadFiles(client, owner, repo, release_id, all_files) { }) console.log(`Successfully deleted old release attachment ${attachment.name}`) } - const content = fs__WEBPACK_IMPORTED_MODULE_0___default().readFileSync(filepath); + const content = fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(filepath); const blob = new buffer__WEBPACK_IMPORTED_MODULE_1__.Blob([content]); await client.repository.repoCreateReleaseAttachment({ owner: owner, repo: repo, id: release_id, attachment: blob, - name: path__WEBPACK_IMPORTED_MODULE_4___default().basename(filepath), + name: path__WEBPACK_IMPORTED_MODULE_4__.basename(filepath), }) console.log(`Successfully uploaded release attachment ${filepath}`) } @@ -33357,6 +33148,3 @@ run(); })(); -module.exports = __webpack_exports__; -/******/ })() -; \ No newline at end of file diff --git a/dist/package.json b/dist/package.json new file mode 100644 index 0000000..3dbc1ca --- /dev/null +++ b/dist/package.json @@ -0,0 +1,3 @@ +{ + "type": "module" +} diff --git a/src/main.js b/main.js similarity index 98% rename from src/main.js rename to main.js index 89e597f..9a83023 100644 --- a/src/main.js +++ b/main.js @@ -8,6 +8,8 @@ import path from 'path' async function run() { try { + console.log(core) + console.log(gitea) const server_url = core.getInput("server_url") const name = core.getInput("name") const body = core.getInput("body") diff --git a/package-lock.json b/package-lock.json index 7e6e661..bca6efb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,8 +11,10 @@ "dependencies": { "@actions/core": "^1.10.1", "@actions/github": "^6.0.0", - "@vercel/ncc": "^0.38.1", "gitea-api": "^1.17.3-1" + }, + "devDependencies": { + "@vercel/ncc": "^0.38.1" } }, "node_modules/@actions/core": { @@ -174,6 +176,7 @@ "version": "0.38.1", "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.1.tgz", "integrity": "sha512-IBBb+iI2NLu4VQn3Vwldyi2QwaXt5+hTyh58ggAMoCGE6DJmPvwL3KPBWcJl1m9LYPChBLE980Jw+CS4Wokqxw==", + "dev": true, "bin": { "ncc": "dist/ncc/cli.js" } diff --git a/package.json b/package.json index f72b4f6..80f42ab 100644 --- a/package.json +++ b/package.json @@ -2,11 +2,13 @@ "name": "gitea-release-action", "version": "1.0.0", "description": "", - "main": "src/main.js", + "type": "module", + "main": "main.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "package": "ncc build src/main.js -o dist", - "build": "ncc build src/main.js" + "package": "ncc build main.js -o dist", + "build": "ncc build main.js", + "start": "node main.js" }, "keywords": [], "author": "", @@ -14,7 +16,9 @@ "dependencies": { "@actions/core": "^1.10.1", "@actions/github": "^6.0.0", - "@vercel/ncc": "^0.38.1", "gitea-api": "^1.17.3-1" + }, + "devDependencies": { + "@vercel/ncc": "^0.38.1" } }