@prisma/migrate 6.6.0-dev.7 → 6.6.0-dev.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CLI.js +3 -3
- package/dist/Migrate.js +8 -6
- package/dist/SchemaEngine.js +5 -5
- package/dist/bin.js +47 -46
- package/dist/chunk-23DZXSTI.js +62 -0
- package/dist/{chunk-WWAWV7DQ.js → chunk-2ESYSVXG.js} +3 -27
- package/dist/{chunk-LKTTJWFT.js → chunk-2R6DII47.js} +5 -5
- package/dist/chunk-33LPBNDX.js +1399 -0
- package/dist/{chunk-P6I3Y7KI.js → chunk-4ACBW57A.js} +371 -530
- package/dist/{chunk-V3ZMNXZC.js → chunk-5LKIRKDL.js} +307 -382
- package/dist/{chunk-IR55GBON.js → chunk-5LTDMS3H.js} +18 -18
- package/dist/{chunk-LOGAFLCN.js → chunk-5R44VVVX.js} +29 -29
- package/dist/{chunk-Q3ZLC44N.js → chunk-63X7FE2R.js} +57 -66
- package/dist/{chunk-DJMFXNR4.js → chunk-74LUB4XX.js} +56 -57
- package/dist/{chunk-N4XTKFY6.js → chunk-7RM467G7.js} +39 -38
- package/dist/{chunk-RP2N6UXA.js → chunk-AI6DH66U.js} +6 -6
- package/dist/{chunk-A6PMXMMT.js → chunk-AUGZZ6RT.js} +105 -13
- package/dist/{chunk-G2XUUMKH.js → chunk-B4SUSDC2.js} +31 -39
- package/dist/{chunk-ZOEKRXDP.js → chunk-D2DGSPW6.js} +29 -55
- package/dist/{chunk-W2SZNLK4.js → chunk-EJG7GKM7.js} +37 -39
- package/dist/{chunk-5PSO7BDO.js → chunk-EJUXYFV3.js} +15 -15
- package/dist/{chunk-HCBZB4XC.js → chunk-FFPSJTA6.js} +53 -52
- package/dist/{chunk-N3KYWSX2.js → chunk-FZGPSDP7.js} +55 -49
- package/dist/{chunk-MCWCB2AX.js → chunk-IINN7QUV.js} +170 -643
- package/dist/{chunk-3GHGKOL4.js → chunk-KJGJMCHL.js} +370 -529
- package/dist/{chunk-255BRND3.js → chunk-KRQEFTDT.js} +6 -6
- package/dist/{chunk-VVKOFN3Y.js → chunk-LLO7YF56.js} +44 -46
- package/dist/{chunk-VZ23KD5C.js → chunk-NGQA5JTN.js} +8 -10
- package/dist/{chunk-MKK3GSDF.js → chunk-NIKXBMZL.js} +5 -5
- package/dist/{chunk-GG54LOYV.js → chunk-O6RQXRWU.js} +45 -44
- package/dist/{chunk-MATFO4ZW.js → chunk-OEWQACEH.js} +38 -39
- package/dist/{chunk-EGPJABTW.js → chunk-QVMYNWAN.js} +257 -103
- package/dist/{chunk-V5TUSOJX.js → chunk-SQKGZVG3.js} +45 -45
- package/dist/{chunk-CQZFVAXC.js → chunk-TN7JMNXD.js} +42 -41
- package/dist/chunk-URKH6SE2.js +479 -0
- package/dist/chunk-V6PVGSDJ.js +76 -0
- package/dist/{chunk-DLLXDCI2.js → chunk-VAJ4VX67.js} +5 -6
- package/dist/{chunk-OCQGHQED.js → chunk-YBX7R3MT.js} +12 -12
- package/dist/{chunk-KS7IEA6Z.js → chunk-YGBJA7QJ.js} +50 -52
- package/dist/{chunk-WI2A2TQE.js → chunk-ZJ4IDCRR.js} +90 -91
- package/dist/chunk-ZLHWX5PJ.js +883 -0
- package/dist/commands/DbCommand.js +3 -3
- package/dist/commands/DbDrop.js +4 -5
- package/dist/commands/DbExecute.js +9 -7
- package/dist/commands/DbPull.js +11 -10
- package/dist/commands/DbPush.js +10 -9
- package/dist/commands/DbSeed.js +4 -5
- package/dist/commands/MigrateCommand.js +3 -3
- package/dist/commands/MigrateDeploy.js +12 -11
- package/dist/commands/MigrateDev.js +14 -13
- package/dist/commands/MigrateDiff.js +12 -10
- package/dist/commands/MigrateReset.js +13 -12
- package/dist/commands/MigrateResolve.js +10 -9
- package/dist/commands/MigrateStatus.js +10 -9
- package/dist/index.js +50 -51
- package/dist/internals/src/Generator.d.ts +23 -5
- package/dist/internals/src/cli/checkUnsupportedDataProxy.d.ts +12 -17
- package/dist/internals/src/cli/directoryConfig.d.ts +7 -0
- package/dist/internals/src/cli/getSchema.d.ts +3 -28
- package/dist/internals/src/cli/hashes.d.ts +1 -2
- package/dist/internals/src/cli/schemaContext.d.ts +59 -0
- package/dist/internals/src/client/getClientEngineType.d.ts +1 -1
- package/dist/internals/src/convertCredentials.d.ts +1 -1
- package/dist/internals/src/engine-commands/getConfig.d.ts +1 -5
- package/dist/internals/src/engine-commands/getDmmf.d.ts +3 -6
- package/dist/internals/src/engine-commands/lintSchema.d.ts +1 -1
- package/dist/internals/src/errorReporting.d.ts +0 -1
- package/dist/internals/src/get-generators/getGenerators.d.ts +22 -9
- package/dist/internals/src/get-generators/utils/binaryTypeToEngineType.d.ts +1 -1
- package/dist/internals/src/get-generators/utils/engineTypeToBinaryType.d.ts +1 -1
- package/dist/internals/src/get-generators/utils/fixBinaryTargets.d.ts +1 -1
- package/dist/internals/src/get-generators/utils/getBinaryPathsByVersion.d.ts +1 -1
- package/dist/internals/src/get-generators/utils/getEngineVersionForGenerator.d.ts +1 -1
- package/dist/internals/src/get-generators/utils/printGeneratorConfig.d.ts +1 -1
- package/dist/internals/src/index.d.ts +7 -7
- package/dist/internals/src/migrateTypes.d.ts +63 -0
- package/dist/internals/src/panic.d.ts +1 -4
- package/dist/internals/src/resolvePkg.d.ts +7 -0
- package/dist/internals/src/types.d.ts +1 -1
- package/dist/internals/src/utils/extractPreviewFeatures.d.ts +2 -2
- package/dist/internals/src/utils/getEnvPaths.d.ts +1 -1
- package/dist/internals/src/utils/parseEnvValue.d.ts +1 -1
- package/dist/internals/src/utils/schemaFileInput.d.ts +0 -4
- package/dist/internals/src/utils/toSchemasContainer.d.ts +2 -3
- package/dist/migrate/src/Migrate.d.ts +7 -5
- package/dist/migrate/src/SchemaEngine.d.ts +5 -9
- package/dist/migrate/src/index.d.ts +0 -1
- package/dist/migrate/src/types.d.ts +14 -10
- package/dist/migrate/src/utils/createMigration.d.ts +21 -0
- package/dist/migrate/src/utils/ensureDatabaseExists.d.ts +4 -6
- package/dist/migrate/src/utils/introspectSql.d.ts +3 -2
- package/dist/migrate/src/utils/listMigrations.d.ts +9 -0
- package/dist/migrate/src/utils/printDatasources.d.ts +1 -1
- package/dist/migrate/src/utils/seed.d.ts +0 -2
- package/dist/migrate/src/views/handleViewsIO.d.ts +2 -2
- package/dist/{multipart-parser-54WEFGGN-NLZG56KM.js → multipart-parser-ASKQAOL4-WZ47HU6G.js} +92 -125
- package/dist/{multipart-parser-NDLECNMN.js → multipart-parser-QCI3Y5IB.js} +66 -68
- package/dist/types.js +1 -1
- package/dist/{typescript-WN4QH2CP.js → typescript-2LKASCMC.js} +33 -33
- package/dist/{typescript-AILDXN3I.js → typescript-H3AVJ6KX.js} +32 -32
- package/dist/utils/byline.js +1 -1
- package/dist/utils/captureStdout.js +3 -3
- package/dist/utils/countModelsAndTypes.js +1 -1
- package/dist/utils/{getSchemaPathAndPrint.js → createMigration.js} +8 -8
- package/dist/utils/customColors.js +1 -1
- package/dist/utils/ensureDatabaseExists.js +7 -7
- package/dist/utils/errors.js +1 -1
- package/dist/utils/flagErrors.js +1 -1
- package/dist/utils/getDatabaseVersionSafe.js +5 -5
- package/dist/utils/handleEvaluateDataloss.js +1 -1
- package/dist/utils/introspectSql.js +5 -5
- package/dist/utils/isSchemaEmpty.js +1 -1
- package/dist/utils/listMigrations.js +25 -0
- package/dist/utils/now.js +1 -1
- package/dist/utils/printDatasource.js +1 -1
- package/dist/utils/printDatasources.js +5 -5
- package/dist/utils/printFiles.js +5 -5
- package/dist/utils/printIntrospectedSchema.js +1 -1
- package/dist/utils/printMigrationId.js +1 -1
- package/dist/utils/promptForMigrationName.js +3 -3
- package/dist/utils/removeSchemaFiles.js +1 -1
- package/dist/utils/replaceOrAddDatasource.js +1 -1
- package/dist/utils/replaceOrAddDatasource.test.js +1 -1
- package/dist/utils/saveSchemaFiles.js +1 -1
- package/dist/utils/seed.js +4 -7
- package/dist/utils/setupCockroach.js +3 -3
- package/dist/utils/setupMSSQL.js +1478 -707
- package/dist/utils/setupMongo.js +553 -552
- package/dist/utils/setupMysql.js +508 -563
- package/dist/utils/setupPostgres.js +3 -3
- package/dist/utils/spinner.js +4 -3
- package/dist/utils/test-handlePanic.js +1 -30
- package/dist/utils/unixSocket.js +1 -1
- package/dist/views/handleViewsIO.js +3 -3
- package/package.json +11 -11
- package/dist/chunk-GKDFIHM2.js +0 -45
- package/dist/chunk-J46BJQHT.js +0 -268
- package/dist/chunk-KOF4LGTS.js +0 -1817
- package/dist/chunk-YYPMC5FN.js +0 -1407
- package/dist/internals/src/get-generators/generatorResolvers/generatorResolvers.d.ts +0 -15
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.d.ts +0 -6
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.d.ts +0 -9
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.d.ts +0 -8
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.d.ts +0 -6
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.d.ts +0 -1
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.d.ts +0 -20
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.d.ts +0 -7
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.d.ts +0 -20
- package/dist/internals/src/get-generators/utils/check-feature-flags/checkFeatureFlags.d.ts +0 -8
- package/dist/migrate/src/utils/getSchemaPathAndPrint.d.ts +0 -10
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ActiveConnectorType } from '@prisma/generator';
|
|
2
|
+
import type { MigrateTypes } from '@prisma/internals';
|
|
3
|
+
type CreateMigrationInput = {
|
|
4
|
+
baseDir: string;
|
|
5
|
+
generatedMigrationName: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function createMigration({ baseDir, generatedMigrationName }: CreateMigrationInput): Promise<string>;
|
|
8
|
+
type WriteMigrationScriptInput = {
|
|
9
|
+
baseDir: string;
|
|
10
|
+
migrationName: string;
|
|
11
|
+
extension: string;
|
|
12
|
+
script: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function writeMigrationScript({ baseDir, extension, migrationName, script, }: WriteMigrationScriptInput): Promise<void>;
|
|
15
|
+
type WriteMigrationLockfileInput = {
|
|
16
|
+
baseDir: string;
|
|
17
|
+
connectorType: ActiveConnectorType;
|
|
18
|
+
lockfile: Omit<MigrateTypes.MigrationLockfile, 'content'>;
|
|
19
|
+
};
|
|
20
|
+
export declare function writeMigrationLockfile({ baseDir, connectorType, lockfile }: WriteMigrationLockfileInput): Promise<void>;
|
|
21
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DataSource } from '@prisma/generator';
|
|
1
2
|
import type { DatabaseCredentials } from '@prisma/internals';
|
|
2
3
|
import { ConnectorType } from './printDatasources';
|
|
3
4
|
export type MigrateAction = 'create' | 'apply' | 'unapply' | 'dev' | 'push';
|
|
@@ -12,12 +13,9 @@ export type DatasourceInfo = {
|
|
|
12
13
|
schemas?: string[];
|
|
13
14
|
configDir?: string;
|
|
14
15
|
};
|
|
15
|
-
export declare function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}): Promise<DatasourceInfo>;
|
|
19
|
-
export declare function ensureCanConnectToDatabase(schemaPath?: string): Promise<Boolean | Error>;
|
|
20
|
-
export declare function ensureDatabaseExists(action: MigrateAction, schemaPath?: string): Promise<string | undefined>;
|
|
16
|
+
export declare function parseDatasourceInfo(datasource: DataSource | undefined): DatasourceInfo;
|
|
17
|
+
export declare function ensureCanConnectToDatabase(datasource: DataSource | undefined): Promise<Boolean | Error>;
|
|
18
|
+
export declare function ensureDatabaseExists(datasource: DataSource | undefined): Promise<string | undefined>;
|
|
21
19
|
export declare function getDbLocation(credentials: DatabaseCredentials): string | undefined;
|
|
22
20
|
/**
|
|
23
21
|
* Return a pretty version of a "provider" (with uppercase characters)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { SqlQueryOutput } from '@prisma/generator
|
|
1
|
+
import { SqlQueryOutput } from '@prisma/generator';
|
|
2
|
+
import { SchemaContext } from '@prisma/internals';
|
|
2
3
|
import { EngineArgs } from '../types';
|
|
3
4
|
export interface IntrospectSqlInput extends EngineArgs.SqlQueryInput {
|
|
4
5
|
fileName: string;
|
|
@@ -14,4 +15,4 @@ export type IntrospectSqlResult = {
|
|
|
14
15
|
ok: false;
|
|
15
16
|
errors: IntrospectSqlError[];
|
|
16
17
|
};
|
|
17
|
-
export declare function introspectSql(
|
|
18
|
+
export declare function introspectSql(schemaContext: SchemaContext, queries: IntrospectSqlInput[]): Promise<IntrospectSqlResult>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MigrateTypes } from '@prisma/internals';
|
|
2
|
+
/**
|
|
3
|
+
* Lists migrations present in the migrations directory, sorted lexicographically by name.
|
|
4
|
+
* Returns an empty array if the directory doesn't exist.
|
|
5
|
+
*
|
|
6
|
+
* @param migrationsDirectoryPath Absolute path to the migrations directory
|
|
7
|
+
* @returns Promise resolving to a sorted list of migrations
|
|
8
|
+
*/
|
|
9
|
+
export declare function listMigrations(migrationsDirectoryPath: string): Promise<MigrateTypes.MigrationList>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export declare function verifySeedConfigAndReturnMessage(schemaPath: string | null): Promise<string | undefined>;
|
|
2
1
|
export declare function getSeedCommandFromPackageJson(cwd: string): Promise<string | null>;
|
|
3
2
|
export declare function executeSeedCommand({ commandFromConfig, extraArgs, }: {
|
|
4
3
|
commandFromConfig: string;
|
|
5
4
|
extraArgs?: string;
|
|
6
5
|
}): Promise<boolean>;
|
|
7
|
-
export declare function legacyTsNodeScriptWarning(): Promise<undefined>;
|
|
@@ -5,7 +5,7 @@ export interface IntrospectionViewDefinition {
|
|
|
5
5
|
}
|
|
6
6
|
type HandleViewsIOParams = {
|
|
7
7
|
views: IntrospectionViewDefinition[];
|
|
8
|
-
|
|
8
|
+
viewsDirectoryPath: string;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* For any given view definitions, the CLI must either create or update the corresponding view definition files
|
|
@@ -13,5 +13,5 @@ type HandleViewsIOParams = {
|
|
|
13
13
|
* If some other non ".sql" files or folders exist within the `views` directory, the CLI must preserve them.
|
|
14
14
|
* In case of empty folders, these are deleted silently.
|
|
15
15
|
*/
|
|
16
|
-
export declare function handleViewsIO({ views,
|
|
16
|
+
export declare function handleViewsIO({ views, viewsDirectoryPath }: HandleViewsIOParams): Promise<void>;
|
|
17
17
|
export {};
|
package/dist/{multipart-parser-54WEFGGN-NLZG56KM.js → multipart-parser-ASKQAOL4-WZ47HU6G.js}
RENAMED
|
@@ -16,14 +16,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
default: () =>
|
|
19
|
+
var multipart_parser_ASKQAOL4_WZ47HU6G_exports = {};
|
|
20
|
+
__export(multipart_parser_ASKQAOL4_WZ47HU6G_exports, {
|
|
21
|
+
default: () => multipart_parser_ASKQAOL4_WZ47HU6G_default
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
"../fetch-engine/dist/chunk-
|
|
23
|
+
module.exports = __toCommonJS(multipart_parser_ASKQAOL4_WZ47HU6G_exports);
|
|
24
|
+
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
25
|
+
var require_chunk_QGM4M3NI = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
26
|
+
"../fetch-engine/dist/chunk-QGM4M3NI.js"(exports, module2) {
|
|
27
27
|
"use strict";
|
|
28
28
|
var __defProp2 = Object.defineProperty;
|
|
29
29
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -42,33 +42,23 @@ var require_chunk_OSFPEEC6 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
42
42
|
return to;
|
|
43
43
|
};
|
|
44
44
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
45
|
-
var
|
|
46
|
-
__export2(
|
|
45
|
+
var chunk_QGM4M3NI_exports = {};
|
|
46
|
+
__export2(chunk_QGM4M3NI_exports, {
|
|
47
47
|
__commonJS: () => __commonJS2,
|
|
48
|
-
__privateAdd: () => __privateAdd,
|
|
49
|
-
__privateGet: () => __privateGet,
|
|
50
|
-
__privateMethod: () => __privateMethod,
|
|
51
|
-
__privateSet: () => __privateSet,
|
|
52
|
-
__privateWrapper: () => __privateWrapper,
|
|
53
|
-
__publicField: () => __publicField,
|
|
54
48
|
__require: () => __require2,
|
|
55
49
|
__toESM: () => __toESM
|
|
56
50
|
});
|
|
57
|
-
module2.exports = __toCommonJS2(
|
|
51
|
+
module2.exports = __toCommonJS2(chunk_QGM4M3NI_exports);
|
|
58
52
|
var __create = Object.create;
|
|
59
53
|
var __defProp22 = Object.defineProperty;
|
|
60
54
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
61
55
|
var __getOwnPropNames22 = Object.getOwnPropertyNames;
|
|
62
56
|
var __getProtoOf = Object.getPrototypeOf;
|
|
63
57
|
var __hasOwnProp22 = Object.prototype.hasOwnProperty;
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
};
|
|
67
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp22(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
68
|
-
var __require2 = /* @__PURE__ */ ((x) => typeof import_chunk_WWAWV7DQ.__require !== "undefined" ? import_chunk_WWAWV7DQ.__require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
69
|
-
get: (a, b) => (typeof import_chunk_WWAWV7DQ.__require !== "undefined" ? import_chunk_WWAWV7DQ.__require : a)[b]
|
|
58
|
+
var __require2 = /* @__PURE__ */ ((x) => typeof import_chunk_2ESYSVXG.__require !== "undefined" ? import_chunk_2ESYSVXG.__require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
59
|
+
get: (a, b) => (typeof import_chunk_2ESYSVXG.__require !== "undefined" ? import_chunk_2ESYSVXG.__require : a)[b]
|
|
70
60
|
}) : x)(function(x) {
|
|
71
|
-
if (typeof
|
|
61
|
+
if (typeof import_chunk_2ESYSVXG.__require !== "undefined") return import_chunk_2ESYSVXG.__require.apply(this, arguments);
|
|
72
62
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
73
63
|
});
|
|
74
64
|
var __commonJS2 = (cb, mod) => function __require22() {
|
|
@@ -90,24 +80,10 @@ var require_chunk_OSFPEEC6 = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
90
80
|
isNodeMode || !mod || !mod.__esModule ? __defProp22(target, "default", { value: mod, enumerable: true }) : target,
|
|
91
81
|
mod
|
|
92
82
|
));
|
|
93
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
94
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
95
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
96
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
97
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
98
|
-
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
99
|
-
var __privateWrapper = (obj, member, setter, getter) => ({
|
|
100
|
-
set _(value) {
|
|
101
|
-
__privateSet(obj, member, value, setter);
|
|
102
|
-
},
|
|
103
|
-
get _() {
|
|
104
|
-
return __privateGet(obj, member, getter);
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
83
|
}
|
|
108
84
|
});
|
|
109
|
-
var
|
|
110
|
-
"../fetch-engine/dist/chunk-
|
|
85
|
+
var require_chunk_RXM4EBGR = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
86
|
+
"../fetch-engine/dist/chunk-RXM4EBGR.js"(exports, module2) {
|
|
111
87
|
"use strict";
|
|
112
88
|
var __defProp2 = Object.defineProperty;
|
|
113
89
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -126,17 +102,17 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
126
102
|
return to;
|
|
127
103
|
};
|
|
128
104
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
129
|
-
var
|
|
130
|
-
__export2(
|
|
105
|
+
var chunk_RXM4EBGR_exports = {};
|
|
106
|
+
__export2(chunk_RXM4EBGR_exports, {
|
|
131
107
|
FormData: () => FormData,
|
|
132
108
|
fetch_blob_default: () => fetch_blob_default,
|
|
133
109
|
file_default: () => file_default,
|
|
134
110
|
formDataToBlob: () => formDataToBlob
|
|
135
111
|
});
|
|
136
|
-
module2.exports = __toCommonJS2(
|
|
137
|
-
var
|
|
138
|
-
var import_node_fs = (0,
|
|
139
|
-
var require_ponyfill_es2018 = (0,
|
|
112
|
+
module2.exports = __toCommonJS2(chunk_RXM4EBGR_exports);
|
|
113
|
+
var import_chunk_QGM4M3NI = require_chunk_QGM4M3NI();
|
|
114
|
+
var import_node_fs = (0, import_chunk_2ESYSVXG.__require)("node:fs");
|
|
115
|
+
var require_ponyfill_es2018 = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
140
116
|
"../../node_modules/.pnpm/web-streams-polyfill@3.2.1/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js"(exports2, module22) {
|
|
141
117
|
"use strict";
|
|
142
118
|
(function(global2, factory) {
|
|
@@ -684,7 +660,7 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
684
660
|
}
|
|
685
661
|
try {
|
|
686
662
|
return x2._asyncIteratorImpl instanceof ReadableStreamAsyncIteratorImpl;
|
|
687
|
-
} catch (
|
|
663
|
+
} catch (_a) {
|
|
688
664
|
return false;
|
|
689
665
|
}
|
|
690
666
|
}
|
|
@@ -1577,7 +1553,7 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1577
1553
|
}
|
|
1578
1554
|
try {
|
|
1579
1555
|
return typeof value.aborted === "boolean";
|
|
1580
|
-
} catch (
|
|
1556
|
+
} catch (_a) {
|
|
1581
1557
|
return false;
|
|
1582
1558
|
}
|
|
1583
1559
|
}
|
|
@@ -1718,12 +1694,12 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
1718
1694
|
return true;
|
|
1719
1695
|
}
|
|
1720
1696
|
function WritableStreamAbort(stream, reason) {
|
|
1721
|
-
var
|
|
1697
|
+
var _a;
|
|
1722
1698
|
if (stream._state === "closed" || stream._state === "errored") {
|
|
1723
1699
|
return promiseResolvedWith(void 0);
|
|
1724
1700
|
}
|
|
1725
1701
|
stream._writableStreamController._abortReason = reason;
|
|
1726
|
-
(
|
|
1702
|
+
(_a = stream._writableStreamController._abortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
1727
1703
|
const state = stream._state;
|
|
1728
1704
|
if (state === "closed" || state === "errored") {
|
|
1729
1705
|
return promiseResolvedWith(void 0);
|
|
@@ -2453,7 +2429,7 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
2453
2429
|
try {
|
|
2454
2430
|
new ctor();
|
|
2455
2431
|
return true;
|
|
2456
|
-
} catch (
|
|
2432
|
+
} catch (_a) {
|
|
2457
2433
|
return false;
|
|
2458
2434
|
}
|
|
2459
2435
|
}
|
|
@@ -3509,7 +3485,7 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3509
3485
|
value: "size",
|
|
3510
3486
|
configurable: true
|
|
3511
3487
|
});
|
|
3512
|
-
} catch (
|
|
3488
|
+
} catch (_a) {
|
|
3513
3489
|
}
|
|
3514
3490
|
class ByteLengthQueuingStrategy {
|
|
3515
3491
|
constructor(options) {
|
|
@@ -3566,7 +3542,7 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3566
3542
|
value: "size",
|
|
3567
3543
|
configurable: true
|
|
3568
3544
|
});
|
|
3569
|
-
} catch (
|
|
3545
|
+
} catch (_a) {
|
|
3570
3546
|
}
|
|
3571
3547
|
class CountQueuingStrategy {
|
|
3572
3548
|
constructor(options) {
|
|
@@ -3945,18 +3921,18 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3945
3921
|
});
|
|
3946
3922
|
}
|
|
3947
3923
|
});
|
|
3948
|
-
var require_streams = (0,
|
|
3924
|
+
var require_streams = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
3949
3925
|
"../../node_modules/.pnpm/fetch-blob@3.2.0/node_modules/fetch-blob/streams.cjs"() {
|
|
3950
3926
|
"use strict";
|
|
3951
3927
|
var POOL_SIZE2 = 65536;
|
|
3952
3928
|
if (!globalThis.ReadableStream) {
|
|
3953
3929
|
try {
|
|
3954
|
-
const process = (0,
|
|
3930
|
+
const process = (0, import_chunk_QGM4M3NI.__require)("node:process");
|
|
3955
3931
|
const { emitWarning } = process;
|
|
3956
3932
|
try {
|
|
3957
3933
|
process.emitWarning = () => {
|
|
3958
3934
|
};
|
|
3959
|
-
Object.assign(globalThis, (0,
|
|
3935
|
+
Object.assign(globalThis, (0, import_chunk_QGM4M3NI.__require)("node:stream/web"));
|
|
3960
3936
|
process.emitWarning = emitWarning;
|
|
3961
3937
|
} catch (error) {
|
|
3962
3938
|
process.emitWarning = emitWarning;
|
|
@@ -3967,9 +3943,9 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3967
3943
|
}
|
|
3968
3944
|
}
|
|
3969
3945
|
try {
|
|
3970
|
-
const { Blob:
|
|
3971
|
-
if (
|
|
3972
|
-
|
|
3946
|
+
const { Blob: Blob3 } = (0, import_chunk_QGM4M3NI.__require)("buffer");
|
|
3947
|
+
if (Blob3 && !Blob3.prototype.stream) {
|
|
3948
|
+
Blob3.prototype.stream = function name(params) {
|
|
3973
3949
|
let position = 0;
|
|
3974
3950
|
const blob = this;
|
|
3975
3951
|
return new ReadableStream({
|
|
@@ -3990,12 +3966,12 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
3990
3966
|
}
|
|
3991
3967
|
}
|
|
3992
3968
|
});
|
|
3993
|
-
var require_node_domexception = (0,
|
|
3969
|
+
var require_node_domexception = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
3994
3970
|
"../../node_modules/.pnpm/node-domexception@1.0.0/node_modules/node-domexception/index.js"(exports2, module22) {
|
|
3995
3971
|
"use strict";
|
|
3996
3972
|
if (!globalThis.DOMException) {
|
|
3997
3973
|
try {
|
|
3998
|
-
const { MessageChannel } = (0,
|
|
3974
|
+
const { MessageChannel } = (0, import_chunk_QGM4M3NI.__require)("worker_threads"), port = new MessageChannel().port1, ab = new ArrayBuffer();
|
|
3999
3975
|
port.postMessage(ab, [ab, ab]);
|
|
4000
3976
|
} catch (err) {
|
|
4001
3977
|
err.constructor.name === "DOMException" && (globalThis.DOMException = err.constructor);
|
|
@@ -4004,7 +3980,7 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4004
3980
|
module22.exports = globalThis.DOMException;
|
|
4005
3981
|
}
|
|
4006
3982
|
});
|
|
4007
|
-
var import_streams = (0,
|
|
3983
|
+
var import_streams = (0, import_chunk_QGM4M3NI.__toESM)(require_streams(), 1);
|
|
4008
3984
|
var POOL_SIZE = 65536;
|
|
4009
3985
|
async function* toIterator(parts, clone = true) {
|
|
4010
3986
|
for (const part of parts) {
|
|
@@ -4040,12 +4016,12 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4040
4016
|
}
|
|
4041
4017
|
}
|
|
4042
4018
|
}
|
|
4043
|
-
var
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4019
|
+
var _Blob = class Blob {
|
|
4020
|
+
/** @type {Array.<(Blob|Uint8Array)>} */
|
|
4021
|
+
#parts = [];
|
|
4022
|
+
#type = "";
|
|
4023
|
+
#size = 0;
|
|
4024
|
+
#endings = "transparent";
|
|
4049
4025
|
/**
|
|
4050
4026
|
* The Blob() constructor returns a new Blob object. The content
|
|
4051
4027
|
* of the blob consists of the concatenation of the values given
|
|
@@ -4055,10 +4031,6 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4055
4031
|
* @param {{ type?: string, endings?: string }} [options]
|
|
4056
4032
|
*/
|
|
4057
4033
|
constructor(blobParts = [], options = {}) {
|
|
4058
|
-
(0, import_chunk_OSFPEEC6.__privateAdd)(this, _parts, []);
|
|
4059
|
-
(0, import_chunk_OSFPEEC6.__privateAdd)(this, _type, "");
|
|
4060
|
-
(0, import_chunk_OSFPEEC6.__privateAdd)(this, _size, 0);
|
|
4061
|
-
(0, import_chunk_OSFPEEC6.__privateAdd)(this, _endings, "transparent");
|
|
4062
4034
|
if (typeof blobParts !== "object" || blobParts === null) {
|
|
4063
4035
|
throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");
|
|
4064
4036
|
}
|
|
@@ -4076,30 +4048,30 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4076
4048
|
part = new Uint8Array(element.buffer.slice(element.byteOffset, element.byteOffset + element.byteLength));
|
|
4077
4049
|
} else if (element instanceof ArrayBuffer) {
|
|
4078
4050
|
part = new Uint8Array(element.slice(0));
|
|
4079
|
-
} else if (element instanceof
|
|
4051
|
+
} else if (element instanceof Blob) {
|
|
4080
4052
|
part = element;
|
|
4081
4053
|
} else {
|
|
4082
4054
|
part = encoder.encode(`${element}`);
|
|
4083
4055
|
}
|
|
4084
|
-
|
|
4085
|
-
|
|
4056
|
+
this.#size += ArrayBuffer.isView(part) ? part.byteLength : part.size;
|
|
4057
|
+
this.#parts.push(part);
|
|
4086
4058
|
}
|
|
4087
|
-
|
|
4059
|
+
this.#endings = `${options.endings === void 0 ? "transparent" : options.endings}`;
|
|
4088
4060
|
const type = options.type === void 0 ? "" : String(options.type);
|
|
4089
|
-
|
|
4061
|
+
this.#type = /^[\x20-\x7E]*$/.test(type) ? type : "";
|
|
4090
4062
|
}
|
|
4091
4063
|
/**
|
|
4092
4064
|
* The Blob interface's size property returns the
|
|
4093
4065
|
* size of the Blob in bytes.
|
|
4094
4066
|
*/
|
|
4095
4067
|
get size() {
|
|
4096
|
-
return
|
|
4068
|
+
return this.#size;
|
|
4097
4069
|
}
|
|
4098
4070
|
/**
|
|
4099
4071
|
* The type property of a Blob object returns the MIME type of the file.
|
|
4100
4072
|
*/
|
|
4101
4073
|
get type() {
|
|
4102
|
-
return
|
|
4074
|
+
return this.#type;
|
|
4103
4075
|
}
|
|
4104
4076
|
/**
|
|
4105
4077
|
* The text() method in the Blob interface returns a Promise
|
|
@@ -4111,7 +4083,7 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4111
4083
|
async text() {
|
|
4112
4084
|
const decoder = new TextDecoder();
|
|
4113
4085
|
let str = "";
|
|
4114
|
-
for await (const part of toIterator(
|
|
4086
|
+
for await (const part of toIterator(this.#parts, false)) {
|
|
4115
4087
|
str += decoder.decode(part, { stream: true });
|
|
4116
4088
|
}
|
|
4117
4089
|
str += decoder.decode();
|
|
@@ -4127,14 +4099,14 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4127
4099
|
async arrayBuffer() {
|
|
4128
4100
|
const data = new Uint8Array(this.size);
|
|
4129
4101
|
let offset = 0;
|
|
4130
|
-
for await (const chunk of toIterator(
|
|
4102
|
+
for await (const chunk of toIterator(this.#parts, false)) {
|
|
4131
4103
|
data.set(chunk, offset);
|
|
4132
4104
|
offset += chunk.length;
|
|
4133
4105
|
}
|
|
4134
4106
|
return data.buffer;
|
|
4135
4107
|
}
|
|
4136
4108
|
stream() {
|
|
4137
|
-
const it = toIterator(
|
|
4109
|
+
const it = toIterator(this.#parts, true);
|
|
4138
4110
|
return new globalThis.ReadableStream({
|
|
4139
4111
|
// @ts-ignore
|
|
4140
4112
|
type: "bytes",
|
|
@@ -4161,7 +4133,7 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4161
4133
|
let relativeStart = start < 0 ? Math.max(size + start, 0) : Math.min(start, size);
|
|
4162
4134
|
let relativeEnd = end < 0 ? Math.max(size + end, 0) : Math.min(end, size);
|
|
4163
4135
|
const span = Math.max(relativeEnd - relativeStart, 0);
|
|
4164
|
-
const parts =
|
|
4136
|
+
const parts = this.#parts;
|
|
4165
4137
|
const blobParts = [];
|
|
4166
4138
|
let added = 0;
|
|
4167
4139
|
for (const part of parts) {
|
|
@@ -4186,9 +4158,9 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4186
4158
|
relativeStart = 0;
|
|
4187
4159
|
}
|
|
4188
4160
|
}
|
|
4189
|
-
const blob = new
|
|
4190
|
-
|
|
4191
|
-
|
|
4161
|
+
const blob = new Blob([], { type: String(type).toLowerCase() });
|
|
4162
|
+
blob.#size = span;
|
|
4163
|
+
blob.#parts = blobParts;
|
|
4192
4164
|
return blob;
|
|
4193
4165
|
}
|
|
4194
4166
|
get [Symbol.toStringTag]() {
|
|
@@ -4197,18 +4169,17 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4197
4169
|
static [Symbol.hasInstance](object) {
|
|
4198
4170
|
return object && typeof object === "object" && typeof object.constructor === "function" && (typeof object.stream === "function" || typeof object.arrayBuffer === "function") && /^(Blob|File)$/.test(object[Symbol.toStringTag]);
|
|
4199
4171
|
}
|
|
4200
|
-
}
|
|
4172
|
+
};
|
|
4201
4173
|
Object.defineProperties(_Blob.prototype, {
|
|
4202
4174
|
size: { enumerable: true },
|
|
4203
4175
|
type: { enumerable: true },
|
|
4204
4176
|
slice: { enumerable: true }
|
|
4205
4177
|
});
|
|
4206
|
-
var
|
|
4207
|
-
var fetch_blob_default =
|
|
4208
|
-
var
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
var _File = (_a2 = class extends fetch_blob_default {
|
|
4178
|
+
var Blob2 = _Blob;
|
|
4179
|
+
var fetch_blob_default = Blob2;
|
|
4180
|
+
var _File = class File extends fetch_blob_default {
|
|
4181
|
+
#lastModified = 0;
|
|
4182
|
+
#name = "";
|
|
4212
4183
|
/**
|
|
4213
4184
|
* @param {*[]} fileBits
|
|
4214
4185
|
* @param {string} fileName
|
|
@@ -4220,20 +4191,18 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4220
4191
|
throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);
|
|
4221
4192
|
}
|
|
4222
4193
|
super(fileBits, options);
|
|
4223
|
-
(0, import_chunk_OSFPEEC6.__privateAdd)(this, _lastModified, 0);
|
|
4224
|
-
(0, import_chunk_OSFPEEC6.__privateAdd)(this, _name, "");
|
|
4225
4194
|
if (options === null) options = {};
|
|
4226
4195
|
const lastModified = options.lastModified === void 0 ? Date.now() : Number(options.lastModified);
|
|
4227
4196
|
if (!Number.isNaN(lastModified)) {
|
|
4228
|
-
|
|
4197
|
+
this.#lastModified = lastModified;
|
|
4229
4198
|
}
|
|
4230
|
-
|
|
4199
|
+
this.#name = String(fileName);
|
|
4231
4200
|
}
|
|
4232
4201
|
get name() {
|
|
4233
|
-
return
|
|
4202
|
+
return this.#name;
|
|
4234
4203
|
}
|
|
4235
4204
|
get lastModified() {
|
|
4236
|
-
return
|
|
4205
|
+
return this.#lastModified;
|
|
4237
4206
|
}
|
|
4238
4207
|
get [Symbol.toStringTag]() {
|
|
4239
4208
|
return "File";
|
|
@@ -4241,9 +4210,9 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4241
4210
|
static [Symbol.hasInstance](object) {
|
|
4242
4211
|
return !!object && object instanceof fetch_blob_default && /^(File)$/.test(object[Symbol.toStringTag]);
|
|
4243
4212
|
}
|
|
4244
|
-
}
|
|
4245
|
-
var
|
|
4246
|
-
var file_default =
|
|
4213
|
+
};
|
|
4214
|
+
var File2 = _File;
|
|
4215
|
+
var file_default = File2;
|
|
4247
4216
|
var { toStringTag: t, iterator: i, hasInstance: h } = Symbol;
|
|
4248
4217
|
var r = Math.random;
|
|
4249
4218
|
var m = "append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(",");
|
|
@@ -4254,11 +4223,9 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4254
4223
|
throw new TypeError(`Failed to execute '${n}' on 'FormData': ${e2} arguments required, but only ${a.length} present.`);
|
|
4255
4224
|
}
|
|
4256
4225
|
};
|
|
4257
|
-
var
|
|
4258
|
-
|
|
4259
|
-
var FormData = (_a3 = class {
|
|
4226
|
+
var FormData = class FormData2 {
|
|
4227
|
+
#d = [];
|
|
4260
4228
|
constructor(...a) {
|
|
4261
|
-
(0, import_chunk_OSFPEEC6.__privateAdd)(this, _d, []);
|
|
4262
4229
|
if (a.length) throw new TypeError(`Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.`);
|
|
4263
4230
|
}
|
|
4264
4231
|
get [t]() {
|
|
@@ -4272,30 +4239,30 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4272
4239
|
}
|
|
4273
4240
|
append(...a) {
|
|
4274
4241
|
x("append", arguments, 2);
|
|
4275
|
-
|
|
4242
|
+
this.#d.push(f(...a));
|
|
4276
4243
|
}
|
|
4277
4244
|
delete(a) {
|
|
4278
4245
|
x("delete", arguments, 1);
|
|
4279
4246
|
a += "";
|
|
4280
|
-
|
|
4247
|
+
this.#d = this.#d.filter(([b]) => b !== a);
|
|
4281
4248
|
}
|
|
4282
4249
|
get(a) {
|
|
4283
4250
|
x("get", arguments, 1);
|
|
4284
4251
|
a += "";
|
|
4285
|
-
for (var b =
|
|
4252
|
+
for (var b = this.#d, l = b.length, c = 0; c < l; c++) if (b[c][0] === a) return b[c][1];
|
|
4286
4253
|
return null;
|
|
4287
4254
|
}
|
|
4288
4255
|
getAll(a, b) {
|
|
4289
4256
|
x("getAll", arguments, 1);
|
|
4290
4257
|
b = [];
|
|
4291
4258
|
a += "";
|
|
4292
|
-
|
|
4259
|
+
this.#d.forEach((c) => c[0] === a && b.push(c[1]));
|
|
4293
4260
|
return b;
|
|
4294
4261
|
}
|
|
4295
4262
|
has(a) {
|
|
4296
4263
|
x("has", arguments, 1);
|
|
4297
4264
|
a += "";
|
|
4298
|
-
return
|
|
4265
|
+
return this.#d.some((b) => b[0] === a);
|
|
4299
4266
|
}
|
|
4300
4267
|
forEach(a, b) {
|
|
4301
4268
|
x("forEach", arguments, 1);
|
|
@@ -4305,14 +4272,14 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4305
4272
|
x("set", arguments, 2);
|
|
4306
4273
|
var b = [], c = true;
|
|
4307
4274
|
a = f(...a);
|
|
4308
|
-
|
|
4275
|
+
this.#d.forEach((d) => {
|
|
4309
4276
|
d[0] === a[0] ? c && (c = !b.push(a)) : b.push(d);
|
|
4310
4277
|
});
|
|
4311
4278
|
c && b.push(a);
|
|
4312
|
-
|
|
4279
|
+
this.#d = b;
|
|
4313
4280
|
}
|
|
4314
4281
|
*entries() {
|
|
4315
|
-
yield*
|
|
4282
|
+
yield* this.#d;
|
|
4316
4283
|
}
|
|
4317
4284
|
*keys() {
|
|
4318
4285
|
for (var [a] of this) yield a;
|
|
@@ -4320,7 +4287,7 @@ var require_chunk_EQBIW23N = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4320
4287
|
*values() {
|
|
4321
4288
|
for (var [, a] of this) yield a;
|
|
4322
4289
|
}
|
|
4323
|
-
}
|
|
4290
|
+
};
|
|
4324
4291
|
function formDataToBlob(F, B = fetch_blob_default) {
|
|
4325
4292
|
var b = `${r()}${r()}`.replace(/\./g, "").slice(-28).padStart(32, "-"), c = [], p = `--${b}\r
|
|
4326
4293
|
Content-Disposition: form-data; name="`;
|
|
@@ -4334,12 +4301,12 @@ Content-Type: ${v.type || "application/octet-stream"}\r
|
|
|
4334
4301
|
c.push(`--${b}--`);
|
|
4335
4302
|
return new B(c, { type: "multipart/form-data; boundary=" + b });
|
|
4336
4303
|
}
|
|
4337
|
-
var import_node_domexception = (0,
|
|
4304
|
+
var import_node_domexception = (0, import_chunk_QGM4M3NI.__toESM)(require_node_domexception(), 1);
|
|
4338
4305
|
var { stat } = import_node_fs.promises;
|
|
4339
4306
|
}
|
|
4340
4307
|
});
|
|
4341
|
-
var
|
|
4342
|
-
"../fetch-engine/dist/multipart-parser-
|
|
4308
|
+
var require_multipart_parser_ASKQAOL4 = (0, import_chunk_2ESYSVXG.__commonJS)({
|
|
4309
|
+
"../fetch-engine/dist/multipart-parser-ASKQAOL4.js"(exports, module2) {
|
|
4343
4310
|
var __defProp2 = Object.defineProperty;
|
|
4344
4311
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
4345
4312
|
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
@@ -4357,13 +4324,13 @@ var require_multipart_parser_54WEFGGN = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4357
4324
|
return to;
|
|
4358
4325
|
};
|
|
4359
4326
|
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
4360
|
-
var
|
|
4361
|
-
__export2(
|
|
4327
|
+
var multipart_parser_ASKQAOL4_exports = {};
|
|
4328
|
+
__export2(multipart_parser_ASKQAOL4_exports, {
|
|
4362
4329
|
toFormData: () => toFormData
|
|
4363
4330
|
});
|
|
4364
|
-
module2.exports = __toCommonJS2(
|
|
4365
|
-
var
|
|
4366
|
-
var
|
|
4331
|
+
module2.exports = __toCommonJS2(multipart_parser_ASKQAOL4_exports);
|
|
4332
|
+
var import_chunk_RXM4EBGR = require_chunk_RXM4EBGR();
|
|
4333
|
+
var import_chunk_QGM4M3NI = require_chunk_QGM4M3NI();
|
|
4367
4334
|
var s = 0;
|
|
4368
4335
|
var S = {
|
|
4369
4336
|
START_BOUNDARY: s++,
|
|
@@ -4655,7 +4622,7 @@ var require_multipart_parser_54WEFGGN = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4655
4622
|
let contentType;
|
|
4656
4623
|
let filename;
|
|
4657
4624
|
const entryChunks = [];
|
|
4658
|
-
const formData = new
|
|
4625
|
+
const formData = new import_chunk_RXM4EBGR.FormData();
|
|
4659
4626
|
const onPartData = (ui8a) => {
|
|
4660
4627
|
entryValue += decoder.decode(ui8a, { stream: true });
|
|
4661
4628
|
};
|
|
@@ -4663,7 +4630,7 @@ var require_multipart_parser_54WEFGGN = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4663
4630
|
entryChunks.push(ui8a);
|
|
4664
4631
|
};
|
|
4665
4632
|
const appendFileToFormData = () => {
|
|
4666
|
-
const file = new
|
|
4633
|
+
const file = new import_chunk_RXM4EBGR.file_default(entryChunks, filename, { type: contentType });
|
|
4667
4634
|
formData.append(entryName, file);
|
|
4668
4635
|
};
|
|
4669
4636
|
const appendEntryToFormData = () => {
|
|
@@ -4715,7 +4682,7 @@ var require_multipart_parser_54WEFGGN = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
|
4715
4682
|
}
|
|
4716
4683
|
}
|
|
4717
4684
|
});
|
|
4718
|
-
var
|
|
4685
|
+
var multipart_parser_ASKQAOL4_WZ47HU6G_default = require_multipart_parser_ASKQAOL4();
|
|
4719
4686
|
/*! Bundled license information:
|
|
4720
4687
|
|
|
4721
4688
|
node-domexception/index.js:
|