@prisma/migrate 6.6.0-dev.9 → 6.6.0-dev.90

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.
Files changed (150) hide show
  1. package/dist/CLI.js +3 -3
  2. package/dist/Migrate.js +8 -6
  3. package/dist/SchemaEngine.js +5 -5
  4. package/dist/bin.js +47 -46
  5. package/dist/chunk-23DZXSTI.js +62 -0
  6. package/dist/{chunk-WWAWV7DQ.js → chunk-2ESYSVXG.js} +3 -27
  7. package/dist/{chunk-LKTTJWFT.js → chunk-2R6DII47.js} +5 -5
  8. package/dist/chunk-33LPBNDX.js +1399 -0
  9. package/dist/{chunk-V3ZMNXZC.js → chunk-5LKIRKDL.js} +307 -382
  10. package/dist/{chunk-IR55GBON.js → chunk-5LTDMS3H.js} +18 -18
  11. package/dist/{chunk-LOGAFLCN.js → chunk-5R44VVVX.js} +29 -29
  12. package/dist/{chunk-Q3ZLC44N.js → chunk-63X7FE2R.js} +57 -66
  13. package/dist/{chunk-DJMFXNR4.js → chunk-74LUB4XX.js} +56 -57
  14. package/dist/{chunk-N4XTKFY6.js → chunk-7RM467G7.js} +39 -38
  15. package/dist/{chunk-RP2N6UXA.js → chunk-AI6DH66U.js} +6 -6
  16. package/dist/{chunk-A6PMXMMT.js → chunk-AUGZZ6RT.js} +105 -13
  17. package/dist/{chunk-G2XUUMKH.js → chunk-B4SUSDC2.js} +31 -39
  18. package/dist/{chunk-ZOEKRXDP.js → chunk-D2DGSPW6.js} +29 -55
  19. package/dist/{chunk-W2SZNLK4.js → chunk-EJG7GKM7.js} +37 -39
  20. package/dist/{chunk-5PSO7BDO.js → chunk-EJUXYFV3.js} +15 -15
  21. package/dist/{chunk-HCBZB4XC.js → chunk-FFPSJTA6.js} +53 -52
  22. package/dist/{chunk-N3KYWSX2.js → chunk-FZGPSDP7.js} +55 -49
  23. package/dist/{chunk-MCWCB2AX.js → chunk-IINN7QUV.js} +170 -643
  24. package/dist/{chunk-QYHXOHG3.js → chunk-IQB54PSS.js} +370 -529
  25. package/dist/{chunk-255BRND3.js → chunk-KRQEFTDT.js} +6 -6
  26. package/dist/{chunk-VVKOFN3Y.js → chunk-LLO7YF56.js} +44 -46
  27. package/dist/{chunk-VZ23KD5C.js → chunk-NGQA5JTN.js} +8 -10
  28. package/dist/{chunk-MKK3GSDF.js → chunk-NIKXBMZL.js} +5 -5
  29. package/dist/{chunk-GG54LOYV.js → chunk-O6RQXRWU.js} +45 -44
  30. package/dist/{chunk-MATFO4ZW.js → chunk-OEWQACEH.js} +38 -39
  31. package/dist/{chunk-EGPJABTW.js → chunk-QVMYNWAN.js} +257 -103
  32. package/dist/{chunk-V5TUSOJX.js → chunk-SQKGZVG3.js} +45 -45
  33. package/dist/{chunk-CQZFVAXC.js → chunk-TN7JMNXD.js} +42 -41
  34. package/dist/chunk-URKH6SE2.js +479 -0
  35. package/dist/chunk-V6PVGSDJ.js +76 -0
  36. package/dist/{chunk-DLLXDCI2.js → chunk-VAJ4VX67.js} +5 -6
  37. package/dist/{chunk-LKOMAN5A.js → chunk-YAYC26BQ.js} +371 -530
  38. package/dist/{chunk-OCQGHQED.js → chunk-YBX7R3MT.js} +12 -12
  39. package/dist/{chunk-KS7IEA6Z.js → chunk-YGBJA7QJ.js} +50 -52
  40. package/dist/{chunk-WI2A2TQE.js → chunk-ZJ4IDCRR.js} +90 -91
  41. package/dist/chunk-ZLHWX5PJ.js +883 -0
  42. package/dist/commands/DbCommand.js +3 -3
  43. package/dist/commands/DbDrop.js +4 -5
  44. package/dist/commands/DbExecute.js +9 -7
  45. package/dist/commands/DbPull.js +11 -10
  46. package/dist/commands/DbPush.js +10 -9
  47. package/dist/commands/DbSeed.js +4 -5
  48. package/dist/commands/MigrateCommand.js +3 -3
  49. package/dist/commands/MigrateDeploy.js +12 -11
  50. package/dist/commands/MigrateDev.js +14 -13
  51. package/dist/commands/MigrateDiff.js +12 -10
  52. package/dist/commands/MigrateReset.js +13 -12
  53. package/dist/commands/MigrateResolve.js +10 -9
  54. package/dist/commands/MigrateStatus.js +10 -9
  55. package/dist/index.js +50 -51
  56. package/dist/internals/src/Generator.d.ts +23 -5
  57. package/dist/internals/src/cli/checkUnsupportedDataProxy.d.ts +12 -17
  58. package/dist/internals/src/cli/directoryConfig.d.ts +7 -0
  59. package/dist/internals/src/cli/getSchema.d.ts +3 -28
  60. package/dist/internals/src/cli/hashes.d.ts +1 -2
  61. package/dist/internals/src/cli/schemaContext.d.ts +59 -0
  62. package/dist/internals/src/client/getClientEngineType.d.ts +1 -1
  63. package/dist/internals/src/convertCredentials.d.ts +1 -1
  64. package/dist/internals/src/engine-commands/getConfig.d.ts +1 -5
  65. package/dist/internals/src/engine-commands/getDmmf.d.ts +3 -6
  66. package/dist/internals/src/engine-commands/lintSchema.d.ts +1 -1
  67. package/dist/internals/src/errorReporting.d.ts +0 -1
  68. package/dist/internals/src/get-generators/getGenerators.d.ts +22 -9
  69. package/dist/internals/src/get-generators/utils/binaryTypeToEngineType.d.ts +1 -1
  70. package/dist/internals/src/get-generators/utils/engineTypeToBinaryType.d.ts +1 -1
  71. package/dist/internals/src/get-generators/utils/fixBinaryTargets.d.ts +1 -1
  72. package/dist/internals/src/get-generators/utils/getBinaryPathsByVersion.d.ts +1 -1
  73. package/dist/internals/src/get-generators/utils/getEngineVersionForGenerator.d.ts +1 -1
  74. package/dist/internals/src/get-generators/utils/printGeneratorConfig.d.ts +1 -1
  75. package/dist/internals/src/index.d.ts +7 -7
  76. package/dist/internals/src/migrateTypes.d.ts +63 -0
  77. package/dist/internals/src/panic.d.ts +1 -4
  78. package/dist/internals/src/resolvePkg.d.ts +7 -0
  79. package/dist/internals/src/types.d.ts +1 -1
  80. package/dist/internals/src/utils/extractPreviewFeatures.d.ts +2 -2
  81. package/dist/internals/src/utils/getEnvPaths.d.ts +1 -1
  82. package/dist/internals/src/utils/parseEnvValue.d.ts +1 -1
  83. package/dist/internals/src/utils/schemaFileInput.d.ts +0 -4
  84. package/dist/internals/src/utils/toSchemasContainer.d.ts +2 -3
  85. package/dist/migrate/src/Migrate.d.ts +7 -5
  86. package/dist/migrate/src/SchemaEngine.d.ts +5 -9
  87. package/dist/migrate/src/index.d.ts +0 -1
  88. package/dist/migrate/src/types.d.ts +14 -10
  89. package/dist/migrate/src/utils/createMigration.d.ts +21 -0
  90. package/dist/migrate/src/utils/ensureDatabaseExists.d.ts +4 -6
  91. package/dist/migrate/src/utils/introspectSql.d.ts +3 -2
  92. package/dist/migrate/src/utils/listMigrations.d.ts +9 -0
  93. package/dist/migrate/src/utils/printDatasources.d.ts +1 -1
  94. package/dist/migrate/src/utils/seed.d.ts +0 -2
  95. package/dist/migrate/src/views/handleViewsIO.d.ts +2 -2
  96. package/dist/{multipart-parser-54WEFGGN-NLZG56KM.js → multipart-parser-ASKQAOL4-WZ47HU6G.js} +92 -125
  97. package/dist/{multipart-parser-NDLECNMN.js → multipart-parser-QCI3Y5IB.js} +66 -68
  98. package/dist/types.js +1 -1
  99. package/dist/{typescript-WN4QH2CP.js → typescript-2LKASCMC.js} +33 -33
  100. package/dist/{typescript-AILDXN3I.js → typescript-H3AVJ6KX.js} +32 -32
  101. package/dist/utils/byline.js +1 -1
  102. package/dist/utils/captureStdout.js +3 -3
  103. package/dist/utils/countModelsAndTypes.js +1 -1
  104. package/dist/utils/{getSchemaPathAndPrint.js → createMigration.js} +8 -8
  105. package/dist/utils/customColors.js +1 -1
  106. package/dist/utils/ensureDatabaseExists.js +7 -7
  107. package/dist/utils/errors.js +1 -1
  108. package/dist/utils/flagErrors.js +1 -1
  109. package/dist/utils/getDatabaseVersionSafe.js +5 -5
  110. package/dist/utils/handleEvaluateDataloss.js +1 -1
  111. package/dist/utils/introspectSql.js +5 -5
  112. package/dist/utils/isSchemaEmpty.js +1 -1
  113. package/dist/utils/listMigrations.js +25 -0
  114. package/dist/utils/now.js +1 -1
  115. package/dist/utils/printDatasource.js +1 -1
  116. package/dist/utils/printDatasources.js +5 -5
  117. package/dist/utils/printFiles.js +5 -5
  118. package/dist/utils/printIntrospectedSchema.js +1 -1
  119. package/dist/utils/printMigrationId.js +1 -1
  120. package/dist/utils/promptForMigrationName.js +3 -3
  121. package/dist/utils/removeSchemaFiles.js +1 -1
  122. package/dist/utils/replaceOrAddDatasource.js +1 -1
  123. package/dist/utils/replaceOrAddDatasource.test.js +1 -1
  124. package/dist/utils/saveSchemaFiles.js +1 -1
  125. package/dist/utils/seed.js +4 -7
  126. package/dist/utils/setupCockroach.js +3 -3
  127. package/dist/utils/setupMSSQL.js +1478 -707
  128. package/dist/utils/setupMongo.js +553 -552
  129. package/dist/utils/setupMysql.js +508 -563
  130. package/dist/utils/setupPostgres.js +3 -3
  131. package/dist/utils/spinner.js +4 -3
  132. package/dist/utils/test-handlePanic.js +1 -30
  133. package/dist/utils/unixSocket.js +1 -1
  134. package/dist/views/handleViewsIO.js +3 -3
  135. package/package.json +11 -11
  136. package/dist/chunk-GKDFIHM2.js +0 -45
  137. package/dist/chunk-J46BJQHT.js +0 -268
  138. package/dist/chunk-KOF4LGTS.js +0 -1817
  139. package/dist/chunk-YYPMC5FN.js +0 -1407
  140. package/dist/internals/src/get-generators/generatorResolvers/generatorResolvers.d.ts +0 -15
  141. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/auto-installation/findPrismaClientDir.d.ts +0 -6
  142. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/auto-installation/getPackageCmd.d.ts +0 -9
  143. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/auto-installation/runPackageCmd.d.ts +0 -8
  144. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkTypeScriptVersion.d.ts +0 -6
  145. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.d.ts +0 -1
  146. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/resolve.d.ts +0 -20
  147. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/semverLt.d.ts +0 -7
  148. package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/prismaClientResolver.d.ts +0 -20
  149. package/dist/internals/src/get-generators/utils/check-feature-flags/checkFeatureFlags.d.ts +0 -8
  150. package/dist/migrate/src/utils/getSchemaPathAndPrint.d.ts +0 -10
@@ -33,12 +33,12 @@ __export(setupPostgres_exports, {
33
33
  tearDownPostgres: () => tearDownPostgres
34
34
  });
35
35
  module.exports = __toCommonJS(setupPostgres_exports);
36
- var import_chunk_EGPJABTW = require("../chunk-EGPJABTW.js");
37
- var import_chunk_WWAWV7DQ = require("../chunk-WWAWV7DQ.js");
36
+ var import_chunk_QVMYNWAN = require("../chunk-QVMYNWAN.js");
37
+ var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
38
38
  var import_promises = __toESM(require("node:fs/promises"));
39
39
  var import_node_path = __toESM(require("node:path"));
40
40
  var import_internals = require("@prisma/internals");
41
- var import_pg = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_EGPJABTW.require_lib)());
41
+ var import_pg = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_QVMYNWAN.require_lib)());
42
42
  async function setupPostgres(options) {
43
43
  const { connectionString } = options;
44
44
  const { dirname } = options;
@@ -18,8 +18,9 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var spinner_exports = {};
20
20
  __export(spinner_exports, {
21
- createSpinner: () => import_chunk_MCWCB2AX.createSpinner
21
+ createSpinner: () => import_chunk_IINN7QUV.createSpinner
22
22
  });
23
23
  module.exports = __toCommonJS(spinner_exports);
24
- var import_chunk_MCWCB2AX = require("../chunk-MCWCB2AX.js");
25
- var import_chunk_WWAWV7DQ = require("../chunk-WWAWV7DQ.js");
24
+ var import_chunk_IINN7QUV = require("../chunk-IINN7QUV.js");
25
+ var import_chunk_URKH6SE2 = require("../chunk-URKH6SE2.js");
26
+ var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
@@ -1,36 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (let key of __getOwnPropNames(from))
11
- if (!__hasOwnProp.call(to, key) && key !== except)
12
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- }
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
- mod
23
- ));
24
2
  var import_internals = require("@prisma/internals");
25
- var import_path = __toESM(require("path"));
26
3
  async function main() {
27
- const error = new import_internals.RustPanic(
28
- "Some error message!\n".repeat(23),
29
- "",
30
- void 0,
31
- import_internals.ErrorArea.LIFT_CLI,
32
- import_path.default.resolve(import_path.default.join("fixtures", "blog", "prisma", "schema.prisma"))
33
- );
4
+ const error = new import_internals.RustPanic("Some error message!\n".repeat(23), "", void 0, import_internals.ErrorArea.LIFT_CLI);
34
5
  const packageJsonVersion = "0.0.0";
35
6
  const enginesVersion = "prismaEngineVersionHash";
36
7
  const getDatabaseVersionSafe = () => Promise.resolve(void 0);
@@ -22,4 +22,4 @@ __export(unixSocket_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(unixSocket_exports);
24
24
  var import_chunk_TWPTG4XS = require("../chunk-TWPTG4XS.js");
25
- var import_chunk_WWAWV7DQ = require("../chunk-WWAWV7DQ.js");
25
+ var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var handleViewsIO_exports = {};
20
20
  __export(handleViewsIO_exports, {
21
- handleViewsIO: () => import_chunk_MATFO4ZW.handleViewsIO
21
+ handleViewsIO: () => import_chunk_OEWQACEH.handleViewsIO
22
22
  });
23
23
  module.exports = __toCommonJS(handleViewsIO_exports);
24
- var import_chunk_MATFO4ZW = require("../chunk-MATFO4ZW.js");
25
- var import_chunk_WWAWV7DQ = require("../chunk-WWAWV7DQ.js");
24
+ var import_chunk_OEWQACEH = require("../chunk-OEWQACEH.js");
25
+ var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/migrate",
3
- "version": "6.6.0-dev.9",
3
+ "version": "6.6.0-dev.90",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/migrate/src/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "@types/prompts": "2.4.9",
27
27
  "@types/sqlite3": "3.1.11",
28
28
  "arg": "5.0.2",
29
- "esbuild": "0.24.2",
29
+ "esbuild": "0.25.1",
30
30
  "execa": "5.1.1",
31
31
  "fp-ts": "2.16.9",
32
32
  "fs-jetpack": "5.1.0",
@@ -35,13 +35,13 @@
35
35
  "jest": "29.7.0",
36
36
  "jest-junit": "16.0.0",
37
37
  "kleur": "4.1.5",
38
- "log-update": "4.0.0",
38
+ "log-update": "6.1.0",
39
39
  "mariadb": "3.4.0",
40
40
  "mock-stdin": "1.0.0",
41
41
  "mongoose": "8.12.1",
42
42
  "mssql": "11.0.1",
43
43
  "ora": "8.2.0",
44
- "pg": "8.13.3",
44
+ "pg": "8.14.1",
45
45
  "pkg-up": "3.1.0",
46
46
  "strip-ansi": "6.0.1",
47
47
  "strip-indent": "4.0.0",
@@ -51,17 +51,17 @@
51
51
  "wrangler": "3.111.0"
52
52
  },
53
53
  "peerDependencies": {
54
- "@prisma/generator-helper": "*",
55
54
  "@prisma/internals": "*"
56
55
  },
57
56
  "dependencies": {
58
- "@prisma/engines-version": "6.6.0-8.725ea6aafbde3109ce0f840593ac739332fe78a2",
57
+ "@prisma/engines-version": "6.6.0-45.fbda4d61f6cc9c7361b803e72f3a0ffeb87db447",
59
58
  "prompts": "2.4.2",
60
- "@prisma/config": "6.6.0-dev.9",
61
- "@prisma/debug": "6.6.0-dev.9",
62
- "@prisma/get-platform": "6.6.0-dev.9",
63
- "@prisma/internals": "6.6.0-dev.9",
64
- "@prisma/generator-helper": "6.6.0-dev.9"
59
+ "@prisma/client-generator-registry": "6.6.0-dev.90",
60
+ "@prisma/debug": "6.6.0-dev.90",
61
+ "@prisma/get-platform": "6.6.0-dev.90",
62
+ "@prisma/generator": "6.6.0-dev.90",
63
+ "@prisma/internals": "6.6.0-dev.90",
64
+ "@prisma/config": "6.6.0-dev.90"
65
65
  },
66
66
  "files": [
67
67
  "README.md",
@@ -1,45 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_GKDFIHM2_exports = {};
30
- __export(chunk_GKDFIHM2_exports, {
31
- getSchemaPathAndPrint: () => getSchemaPathAndPrint,
32
- printSchemaLoadedMessage: () => printSchemaLoadedMessage
33
- });
34
- module.exports = __toCommonJS(chunk_GKDFIHM2_exports);
35
- var import_chunk_SKRR5WT4 = require("./chunk-SKRR5WT4.js");
36
- var import_internals = require("@prisma/internals");
37
- var import_path = __toESM(require("path"));
38
- async function getSchemaPathAndPrint(schemaPathProvided, schemaPathFromConfig, options) {
39
- const schemaPathResult = await (0, import_internals.getSchemaWithPath)(schemaPathProvided, schemaPathFromConfig, options);
40
- printSchemaLoadedMessage(schemaPathResult.schemaPath);
41
- return schemaPathResult;
42
- }
43
- function printSchemaLoadedMessage(schemaPath) {
44
- process.stdout.write((0, import_chunk_SKRR5WT4.dim)(`Prisma schema loaded from ${import_path.default.relative(process.cwd(), schemaPath)}`) + "\n");
45
- }
@@ -1,268 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_J46BJQHT_exports = {};
20
- __export(chunk_J46BJQHT_exports, {
21
- require_onetime: () => require_onetime,
22
- require_signal_exit: () => require_signal_exit
23
- });
24
- module.exports = __toCommonJS(chunk_J46BJQHT_exports);
25
- var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
26
- var require_mimic_fn = (0, import_chunk_WWAWV7DQ.__commonJS)({
27
- "../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js"(exports, module2) {
28
- "use strict";
29
- var mimicFn = (to, from) => {
30
- for (const prop of Reflect.ownKeys(from)) {
31
- Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
32
- }
33
- return to;
34
- };
35
- module2.exports = mimicFn;
36
- module2.exports.default = mimicFn;
37
- }
38
- });
39
- var require_onetime = (0, import_chunk_WWAWV7DQ.__commonJS)({
40
- "../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js"(exports, module2) {
41
- "use strict";
42
- var mimicFn = require_mimic_fn();
43
- var calledFunctions = /* @__PURE__ */ new WeakMap();
44
- var onetime = (function_, options = {}) => {
45
- if (typeof function_ !== "function") {
46
- throw new TypeError("Expected a function");
47
- }
48
- let returnValue;
49
- let callCount = 0;
50
- const functionName = function_.displayName || function_.name || "<anonymous>";
51
- const onetime2 = function(...arguments_) {
52
- calledFunctions.set(onetime2, ++callCount);
53
- if (callCount === 1) {
54
- returnValue = function_.apply(this, arguments_);
55
- function_ = null;
56
- } else if (options.throw === true) {
57
- throw new Error(`Function \`${functionName}\` can only be called once`);
58
- }
59
- return returnValue;
60
- };
61
- mimicFn(onetime2, function_);
62
- calledFunctions.set(onetime2, callCount);
63
- return onetime2;
64
- };
65
- module2.exports = onetime;
66
- module2.exports.default = onetime;
67
- module2.exports.callCount = (function_) => {
68
- if (!calledFunctions.has(function_)) {
69
- throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
70
- }
71
- return calledFunctions.get(function_);
72
- };
73
- }
74
- });
75
- var require_signals = (0, import_chunk_WWAWV7DQ.__commonJS)({
76
- "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports, module2) {
77
- "use strict";
78
- module2.exports = [
79
- "SIGABRT",
80
- "SIGALRM",
81
- "SIGHUP",
82
- "SIGINT",
83
- "SIGTERM"
84
- ];
85
- if (process.platform !== "win32") {
86
- module2.exports.push(
87
- "SIGVTALRM",
88
- "SIGXCPU",
89
- "SIGXFSZ",
90
- "SIGUSR2",
91
- "SIGTRAP",
92
- "SIGSYS",
93
- "SIGQUIT",
94
- "SIGIOT"
95
- // should detect profiler and enable/disable accordingly.
96
- // see #21
97
- // 'SIGPROF'
98
- );
99
- }
100
- if (process.platform === "linux") {
101
- module2.exports.push(
102
- "SIGIO",
103
- "SIGPOLL",
104
- "SIGPWR",
105
- "SIGSTKFLT",
106
- "SIGUNUSED"
107
- );
108
- }
109
- }
110
- });
111
- var require_signal_exit = (0, import_chunk_WWAWV7DQ.__commonJS)({
112
- "../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module2) {
113
- "use strict";
114
- var process2 = global.process;
115
- var processOk = function(process3) {
116
- return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
117
- };
118
- if (!processOk(process2)) {
119
- module2.exports = function() {
120
- return function() {
121
- };
122
- };
123
- } else {
124
- assert = (0, import_chunk_WWAWV7DQ.__require)("assert");
125
- signals = require_signals();
126
- isWin = /^win/i.test(process2.platform);
127
- EE = (0, import_chunk_WWAWV7DQ.__require)("events");
128
- if (typeof EE !== "function") {
129
- EE = EE.EventEmitter;
130
- }
131
- if (process2.__signal_exit_emitter__) {
132
- emitter = process2.__signal_exit_emitter__;
133
- } else {
134
- emitter = process2.__signal_exit_emitter__ = new EE();
135
- emitter.count = 0;
136
- emitter.emitted = {};
137
- }
138
- if (!emitter.infinite) {
139
- emitter.setMaxListeners(Infinity);
140
- emitter.infinite = true;
141
- }
142
- module2.exports = function(cb, opts) {
143
- if (!processOk(global.process)) {
144
- return function() {
145
- };
146
- }
147
- assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
148
- if (loaded === false) {
149
- load();
150
- }
151
- var ev = "exit";
152
- if (opts && opts.alwaysLast) {
153
- ev = "afterexit";
154
- }
155
- var remove = function() {
156
- emitter.removeListener(ev, cb);
157
- if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
158
- unload();
159
- }
160
- };
161
- emitter.on(ev, cb);
162
- return remove;
163
- };
164
- unload = function unload2() {
165
- if (!loaded || !processOk(global.process)) {
166
- return;
167
- }
168
- loaded = false;
169
- signals.forEach(function(sig) {
170
- try {
171
- process2.removeListener(sig, sigListeners[sig]);
172
- } catch (er) {
173
- }
174
- });
175
- process2.emit = originalProcessEmit;
176
- process2.reallyExit = originalProcessReallyExit;
177
- emitter.count -= 1;
178
- };
179
- module2.exports.unload = unload;
180
- emit = function emit2(event, code, signal) {
181
- if (emitter.emitted[event]) {
182
- return;
183
- }
184
- emitter.emitted[event] = true;
185
- emitter.emit(event, code, signal);
186
- };
187
- sigListeners = {};
188
- signals.forEach(function(sig) {
189
- sigListeners[sig] = function listener() {
190
- if (!processOk(global.process)) {
191
- return;
192
- }
193
- var listeners = process2.listeners(sig);
194
- if (listeners.length === emitter.count) {
195
- unload();
196
- emit("exit", null, sig);
197
- emit("afterexit", null, sig);
198
- if (isWin && sig === "SIGHUP") {
199
- sig = "SIGINT";
200
- }
201
- process2.kill(process2.pid, sig);
202
- }
203
- };
204
- });
205
- module2.exports.signals = function() {
206
- return signals;
207
- };
208
- loaded = false;
209
- load = function load2() {
210
- if (loaded || !processOk(global.process)) {
211
- return;
212
- }
213
- loaded = true;
214
- emitter.count += 1;
215
- signals = signals.filter(function(sig) {
216
- try {
217
- process2.on(sig, sigListeners[sig]);
218
- return true;
219
- } catch (er) {
220
- return false;
221
- }
222
- });
223
- process2.emit = processEmit;
224
- process2.reallyExit = processReallyExit;
225
- };
226
- module2.exports.load = load;
227
- originalProcessReallyExit = process2.reallyExit;
228
- processReallyExit = function processReallyExit2(code) {
229
- if (!processOk(global.process)) {
230
- return;
231
- }
232
- process2.exitCode = code || /* istanbul ignore next */
233
- 0;
234
- emit("exit", process2.exitCode, null);
235
- emit("afterexit", process2.exitCode, null);
236
- originalProcessReallyExit.call(process2, process2.exitCode);
237
- };
238
- originalProcessEmit = process2.emit;
239
- processEmit = function processEmit2(ev, arg) {
240
- if (ev === "exit" && processOk(global.process)) {
241
- if (arg !== void 0) {
242
- process2.exitCode = arg;
243
- }
244
- var ret = originalProcessEmit.apply(this, arguments);
245
- emit("exit", process2.exitCode, null);
246
- emit("afterexit", process2.exitCode, null);
247
- return ret;
248
- } else {
249
- return originalProcessEmit.apply(this, arguments);
250
- }
251
- };
252
- }
253
- var assert;
254
- var signals;
255
- var isWin;
256
- var EE;
257
- var emitter;
258
- var unload;
259
- var emit;
260
- var sigListeners;
261
- var loaded;
262
- var load;
263
- var originalProcessReallyExit;
264
- var processReallyExit;
265
- var originalProcessEmit;
266
- var processEmit;
267
- }
268
- });