@prisma/generator-helper 6.6.0-dev.3 → 6.6.0-dev.30

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.
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var GeneratorProcess_exports = {};
20
20
  __export(GeneratorProcess_exports, {
21
- GeneratorError: () => import_chunk_J4U56IA4.GeneratorError,
22
- GeneratorProcess: () => import_chunk_J4U56IA4.GeneratorProcess
21
+ GeneratorError: () => import_chunk_HF3IZ2PW.GeneratorError,
22
+ GeneratorProcess: () => import_chunk_HF3IZ2PW.GeneratorProcess
23
23
  });
24
24
  module.exports = __toCommonJS(GeneratorProcess_exports);
25
- var import_chunk_J4U56IA4 = require("./chunk-J4U56IA4.js");
25
+ var import_chunk_HF3IZ2PW = require("./chunk-HF3IZ2PW.js");
26
26
  var import_chunk_EOPVK4AE = require("./chunk-EOPVK4AE.js");
27
- var import_chunk_FAIJPBT5 = require("./chunk-FAIJPBT5.js");
27
+ var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
package/dist/byline.js CHANGED
@@ -25,4 +25,4 @@ __export(byline_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(byline_exports);
27
27
  var import_chunk_EOPVK4AE = require("./chunk-EOPVK4AE.js");
28
- var import_chunk_FAIJPBT5 = require("./chunk-FAIJPBT5.js");
28
+ var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
@@ -26,22 +26,22 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_J4U56IA4_exports = {};
30
- __export(chunk_J4U56IA4_exports, {
29
+ var chunk_HF3IZ2PW_exports = {};
30
+ __export(chunk_HF3IZ2PW_exports, {
31
31
  GeneratorError: () => GeneratorError,
32
32
  GeneratorProcess: () => GeneratorProcess
33
33
  });
34
- module.exports = __toCommonJS(chunk_J4U56IA4_exports);
34
+ module.exports = __toCommonJS(chunk_HF3IZ2PW_exports);
35
35
  var import_chunk_EOPVK4AE = require("./chunk-EOPVK4AE.js");
36
- var import_chunk_FAIJPBT5 = require("./chunk-FAIJPBT5.js");
36
+ var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
37
37
  var import_debug = __toESM(require("@prisma/debug"));
38
38
  var import_child_process = require("child_process");
39
- var require_windows = (0, import_chunk_FAIJPBT5.__commonJS)({
39
+ var require_windows = (0, import_chunk_QGM4M3NI.__commonJS)({
40
40
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module2) {
41
41
  "use strict";
42
42
  module2.exports = isexe;
43
43
  isexe.sync = sync;
44
- var fs = (0, import_chunk_FAIJPBT5.__require)("fs");
44
+ var fs = (0, import_chunk_QGM4M3NI.__require)("fs");
45
45
  function checkPathExt(path, options) {
46
46
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
47
47
  if (!pathext) {
@@ -75,12 +75,12 @@ var require_windows = (0, import_chunk_FAIJPBT5.__commonJS)({
75
75
  }
76
76
  }
77
77
  });
78
- var require_mode = (0, import_chunk_FAIJPBT5.__commonJS)({
78
+ var require_mode = (0, import_chunk_QGM4M3NI.__commonJS)({
79
79
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module2) {
80
80
  "use strict";
81
81
  module2.exports = isexe;
82
82
  isexe.sync = sync;
83
- var fs = (0, import_chunk_FAIJPBT5.__require)("fs");
83
+ var fs = (0, import_chunk_QGM4M3NI.__require)("fs");
84
84
  function isexe(path, options, cb) {
85
85
  fs.stat(path, function(er, stat) {
86
86
  cb(er, er ? false : checkStat(stat, options));
@@ -107,10 +107,10 @@ var require_mode = (0, import_chunk_FAIJPBT5.__commonJS)({
107
107
  }
108
108
  }
109
109
  });
110
- var require_isexe = (0, import_chunk_FAIJPBT5.__commonJS)({
110
+ var require_isexe = (0, import_chunk_QGM4M3NI.__commonJS)({
111
111
  "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module2) {
112
112
  "use strict";
113
- var fs = (0, import_chunk_FAIJPBT5.__require)("fs");
113
+ var fs = (0, import_chunk_QGM4M3NI.__require)("fs");
114
114
  var core;
115
115
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
116
116
  core = require_windows();
@@ -161,11 +161,11 @@ var require_isexe = (0, import_chunk_FAIJPBT5.__commonJS)({
161
161
  }
162
162
  }
163
163
  });
164
- var require_which = (0, import_chunk_FAIJPBT5.__commonJS)({
164
+ var require_which = (0, import_chunk_QGM4M3NI.__commonJS)({
165
165
  "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module2) {
166
166
  "use strict";
167
167
  var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
168
- var path = (0, import_chunk_FAIJPBT5.__require)("path");
168
+ var path = (0, import_chunk_QGM4M3NI.__require)("path");
169
169
  var COLON = isWindows ? ";" : ":";
170
170
  var isexe = require_isexe();
171
171
  var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -256,7 +256,7 @@ var require_which = (0, import_chunk_FAIJPBT5.__commonJS)({
256
256
  which.sync = whichSync;
257
257
  }
258
258
  });
259
- var require_path_key = (0, import_chunk_FAIJPBT5.__commonJS)({
259
+ var require_path_key = (0, import_chunk_QGM4M3NI.__commonJS)({
260
260
  "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module2) {
261
261
  "use strict";
262
262
  var pathKey = (options = {}) => {
@@ -271,10 +271,10 @@ var require_path_key = (0, import_chunk_FAIJPBT5.__commonJS)({
271
271
  module2.exports.default = pathKey;
272
272
  }
273
273
  });
274
- var require_resolveCommand = (0, import_chunk_FAIJPBT5.__commonJS)({
274
+ var require_resolveCommand = (0, import_chunk_QGM4M3NI.__commonJS)({
275
275
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) {
276
276
  "use strict";
277
- var path = (0, import_chunk_FAIJPBT5.__require)("path");
277
+ var path = (0, import_chunk_QGM4M3NI.__require)("path");
278
278
  var which = require_which();
279
279
  var getPathKey = require_path_key();
280
280
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -311,7 +311,7 @@ var require_resolveCommand = (0, import_chunk_FAIJPBT5.__commonJS)({
311
311
  module2.exports = resolveCommand;
312
312
  }
313
313
  });
314
- var require_escape = (0, import_chunk_FAIJPBT5.__commonJS)({
314
+ var require_escape = (0, import_chunk_QGM4M3NI.__commonJS)({
315
315
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module2) {
316
316
  "use strict";
317
317
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
@@ -334,13 +334,13 @@ var require_escape = (0, import_chunk_FAIJPBT5.__commonJS)({
334
334
  module2.exports.argument = escapeArgument;
335
335
  }
336
336
  });
337
- var require_shebang_regex = (0, import_chunk_FAIJPBT5.__commonJS)({
337
+ var require_shebang_regex = (0, import_chunk_QGM4M3NI.__commonJS)({
338
338
  "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module2) {
339
339
  "use strict";
340
340
  module2.exports = /^#!(.*)/;
341
341
  }
342
342
  });
343
- var require_shebang_command = (0, import_chunk_FAIJPBT5.__commonJS)({
343
+ var require_shebang_command = (0, import_chunk_QGM4M3NI.__commonJS)({
344
344
  "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module2) {
345
345
  "use strict";
346
346
  var shebangRegex = require_shebang_regex();
@@ -358,10 +358,10 @@ var require_shebang_command = (0, import_chunk_FAIJPBT5.__commonJS)({
358
358
  };
359
359
  }
360
360
  });
361
- var require_readShebang = (0, import_chunk_FAIJPBT5.__commonJS)({
361
+ var require_readShebang = (0, import_chunk_QGM4M3NI.__commonJS)({
362
362
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) {
363
363
  "use strict";
364
- var fs = (0, import_chunk_FAIJPBT5.__require)("fs");
364
+ var fs = (0, import_chunk_QGM4M3NI.__require)("fs");
365
365
  var shebangCommand = require_shebang_command();
366
366
  function readShebang(command) {
367
367
  const size = 150;
@@ -378,10 +378,10 @@ var require_readShebang = (0, import_chunk_FAIJPBT5.__commonJS)({
378
378
  module2.exports = readShebang;
379
379
  }
380
380
  });
381
- var require_parse = (0, import_chunk_FAIJPBT5.__commonJS)({
381
+ var require_parse = (0, import_chunk_QGM4M3NI.__commonJS)({
382
382
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module2) {
383
383
  "use strict";
384
- var path = (0, import_chunk_FAIJPBT5.__require)("path");
384
+ var path = (0, import_chunk_QGM4M3NI.__require)("path");
385
385
  var resolveCommand = require_resolveCommand();
386
386
  var escape = require_escape();
387
387
  var readShebang = require_readShebang();
@@ -438,7 +438,7 @@ var require_parse = (0, import_chunk_FAIJPBT5.__commonJS)({
438
438
  module2.exports = parse;
439
439
  }
440
440
  });
441
- var require_enoent = (0, import_chunk_FAIJPBT5.__commonJS)({
441
+ var require_enoent = (0, import_chunk_QGM4M3NI.__commonJS)({
442
442
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module2) {
443
443
  "use strict";
444
444
  var isWin = process.platform === "win32";
@@ -486,10 +486,10 @@ var require_enoent = (0, import_chunk_FAIJPBT5.__commonJS)({
486
486
  };
487
487
  }
488
488
  });
489
- var require_cross_spawn = (0, import_chunk_FAIJPBT5.__commonJS)({
489
+ var require_cross_spawn = (0, import_chunk_QGM4M3NI.__commonJS)({
490
490
  "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module2) {
491
491
  "use strict";
492
- var cp = (0, import_chunk_FAIJPBT5.__require)("child_process");
492
+ var cp = (0, import_chunk_QGM4M3NI.__require)("child_process");
493
493
  var parse = require_parse();
494
494
  var enoent = require_enoent();
495
495
  function spawn2(command, args, options) {
@@ -511,7 +511,7 @@ var require_cross_spawn = (0, import_chunk_FAIJPBT5.__commonJS)({
511
511
  module2.exports._enoent = enoent;
512
512
  }
513
513
  });
514
- var import_cross_spawn = (0, import_chunk_FAIJPBT5.__toESM)(require_cross_spawn());
514
+ var import_cross_spawn = (0, import_chunk_QGM4M3NI.__toESM)(require_cross_spawn());
515
515
  var FORCE_COLOR;
516
516
  var NODE_DISABLE_COLORS;
517
517
  var NO_COLOR;
@@ -565,29 +565,24 @@ var GeneratorError = class extends Error {
565
565
  super(message);
566
566
  this.code = code;
567
567
  this.data = data;
568
- (0, import_chunk_FAIJPBT5.__publicField)(this, "name", "GeneratorError");
569
568
  if (data?.stack) {
570
569
  this.stack = data.stack;
571
570
  }
572
571
  }
572
+ name = "GeneratorError";
573
573
  };
574
574
  var GeneratorProcess = class {
575
575
  constructor(pathOrCommand, { isNode = false } = {}) {
576
576
  this.pathOrCommand = pathOrCommand;
577
- (0, import_chunk_FAIJPBT5.__publicField)(this, "child");
578
- (0, import_chunk_FAIJPBT5.__publicField)(this, "handlers", {});
579
- (0, import_chunk_FAIJPBT5.__publicField)(this, "initPromise");
580
- (0, import_chunk_FAIJPBT5.__publicField)(this, "isNode");
581
- (0, import_chunk_FAIJPBT5.__publicField)(this, "errorLogs", "");
582
- (0, import_chunk_FAIJPBT5.__publicField)(this, "pendingError");
583
- (0, import_chunk_FAIJPBT5.__publicField)(this, "exited", false);
584
- (0, import_chunk_FAIJPBT5.__publicField)(this, "getManifest", this.rpcMethod(
585
- "getManifest",
586
- (result) => result.manifest ?? null
587
- ));
588
- (0, import_chunk_FAIJPBT5.__publicField)(this, "generate", this.rpcMethod("generate"));
589
577
  this.isNode = isNode;
590
578
  }
579
+ child;
580
+ handlers = {};
581
+ initPromise;
582
+ isNode;
583
+ errorLogs = "";
584
+ pendingError;
585
+ exited = false;
591
586
  async init() {
592
587
  if (!this.initPromise) {
593
588
  this.initPromise = this.initSingleton();
@@ -759,6 +754,11 @@ ${this.errorLogs}`
759
754
  );
760
755
  });
761
756
  }
757
+ getManifest = this.rpcMethod(
758
+ "getManifest",
759
+ (result) => result.manifest ?? null
760
+ );
761
+ generate = this.rpcMethod("generate");
762
762
  };
763
763
  function isErrorResponse(response) {
764
764
  return response.error !== void 0;
@@ -16,21 +16,19 @@ 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 chunk_FAIJPBT5_exports = {};
20
- __export(chunk_FAIJPBT5_exports, {
19
+ var chunk_QGM4M3NI_exports = {};
20
+ __export(chunk_QGM4M3NI_exports, {
21
21
  __commonJS: () => __commonJS,
22
- __publicField: () => __publicField,
23
22
  __require: () => __require,
24
23
  __toESM: () => __toESM
25
24
  });
26
- module.exports = __toCommonJS(chunk_FAIJPBT5_exports);
25
+ module.exports = __toCommonJS(chunk_QGM4M3NI_exports);
27
26
  var __create = Object.create;
28
27
  var __defProp2 = Object.defineProperty;
29
28
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
30
29
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
31
30
  var __getProtoOf = Object.getPrototypeOf;
32
31
  var __hasOwnProp2 = Object.prototype.hasOwnProperty;
33
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34
32
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
35
33
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
36
34
  }) : x)(function(x) {
@@ -56,4 +54,3 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
56
54
  isNodeMode || !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target,
57
55
  mod
58
56
  ));
59
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
package/dist/dmmf.js CHANGED
@@ -23,4 +23,4 @@ __export(dmmf_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(dmmf_exports);
25
25
  var import_chunk_JU65QD3H = require("./chunk-JU65QD3H.js");
26
- var import_chunk_FAIJPBT5 = require("./chunk-FAIJPBT5.js");
26
+ var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
@@ -23,4 +23,4 @@ __export(generatorHandler_exports, {
23
23
  module.exports = __toCommonJS(generatorHandler_exports);
24
24
  var import_chunk_NAG6CCUN = require("./chunk-NAG6CCUN.js");
25
25
  var import_chunk_EOPVK4AE = require("./chunk-EOPVK4AE.js");
26
- var import_chunk_FAIJPBT5 = require("./chunk-FAIJPBT5.js");
26
+ var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
package/dist/index.js CHANGED
@@ -19,15 +19,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  var index_exports = {};
20
20
  __export(index_exports, {
21
21
  DMMF: () => import_chunk_JU65QD3H.DMMF,
22
- GeneratorError: () => import_chunk_J4U56IA4.GeneratorError,
23
- GeneratorProcess: () => import_chunk_J4U56IA4.GeneratorProcess,
22
+ GeneratorError: () => import_chunk_HF3IZ2PW.GeneratorError,
23
+ GeneratorProcess: () => import_chunk_HF3IZ2PW.GeneratorProcess,
24
24
  datamodelEnumToSchemaEnum: () => import_chunk_JU65QD3H.datamodelEnumToSchemaEnum,
25
25
  generatorHandler: () => import_chunk_NAG6CCUN.generatorHandler
26
26
  });
27
27
  module.exports = __toCommonJS(index_exports);
28
- var import_chunk_J4U56IA4 = require("./chunk-J4U56IA4.js");
28
+ var import_chunk_HF3IZ2PW = require("./chunk-HF3IZ2PW.js");
29
29
  var import_chunk_JU65QD3H = require("./chunk-JU65QD3H.js");
30
30
  var import_chunk_NAG6CCUN = require("./chunk-NAG6CCUN.js");
31
31
  var import_chunk_EOPVK4AE = require("./chunk-EOPVK4AE.js");
32
- var import_chunk_FAIJPBT5 = require("./chunk-FAIJPBT5.js");
32
+ var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
33
33
  var import_chunk_6F4PWJZI = require("./chunk-6F4PWJZI.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/generator-helper",
3
- "version": "6.6.0-dev.3",
3
+ "version": "6.6.0-dev.30",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  "homepage": "https://www.prisma.io",
16
16
  "bugs": "https://github.com/prisma/prisma/issues",
17
17
  "dependencies": {
18
- "@prisma/debug": "6.6.0-dev.3"
18
+ "@prisma/debug": "6.6.0-dev.30"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@swc-node/register": "1.10.9",