@prisma/internals 7.2.0-integration-fix-sqlite-deadlock-fix.2 → 7.2.0-integration-engines-7-2-0-3-aqrln-zpupkzknszlw-04d61c41ec1a025cabe14093fa3121a5f45040ab.1

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 (45) hide show
  1. package/dist/{chunk-V2QPYWTO.js → chunk-4QR3X56D.js} +8 -8
  2. package/dist/{chunk-E42F3SS5.js → chunk-5IS5OH7Z.js} +5 -5
  3. package/dist/{chunk-7W2GBCPD.js → chunk-5YZKJGXV.js} +6 -6
  4. package/dist/{chunk-3465QMDQ.js → chunk-AJALNZEH.js} +5 -5
  5. package/dist/{chunk-IBFI27Z5.js → chunk-B4NUBXXO.js} +7 -7
  6. package/dist/{chunk-PFY4SAVI.js → chunk-EQ6XBXVV.js} +17 -17
  7. package/dist/{chunk-PKOQQT7I.js → chunk-GH2WAX5Y.js} +4 -4
  8. package/dist/{chunk-OO2FJXCN.js → chunk-N3FJZLFP.js} +5 -5
  9. package/dist/{chunk-GZLJZGHX.js → chunk-NYNXYKR4.js} +5 -5
  10. package/dist/{chunk-VN7Y7JGW.js → chunk-OWVQILDA.js} +8 -8
  11. package/dist/{chunk-FGHEUL3V.js → chunk-PNYEHZAU.js} +5 -5
  12. package/dist/{chunk-A47ENJ7N.js → chunk-Q6D7PXUU.js} +8 -8
  13. package/dist/{chunk-R77DUVMB.js → chunk-QFQIWWVN.js} +8 -8
  14. package/dist/{chunk-UYATHWLB.js → chunk-QNSOKYEF.js} +8 -8
  15. package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
  16. package/dist/{chunk-WRRY26RQ.js → chunk-RR7B6GH2.js} +5 -5
  17. package/dist/{chunk-SJS3O4UW.js → chunk-US23KCBP.js} +5 -5
  18. package/dist/{chunk-QHAWH2GA.js → chunk-VBLGRBF2.js} +5 -5
  19. package/dist/{chunk-VHBRLEFN.js → chunk-WK3RWN6T.js} +17 -17
  20. package/dist/{chunk-YLKADBB4.js → chunk-X2DGDDLX.js} +5 -5
  21. package/dist/{chunk-TEFMK7JL.js → chunk-Y5TWK45J.js} +8 -8
  22. package/dist/{chunk-CD5HDSDY.js → chunk-YQYFLEMT.js} +5 -5
  23. package/dist/{chunk-ALJKWFSY.js → chunk-Z64WCHZR.js} +7 -7
  24. package/dist/cli/checkUnsupportedDataProxy.js +17 -18
  25. package/dist/cli/schemaContext.js +18 -19
  26. package/dist/engine-commands/errorHelpers.js +4 -4
  27. package/dist/engine-commands/formatSchema.js +16 -17
  28. package/dist/engine-commands/getConfig.js +7 -7
  29. package/dist/engine-commands/getDmmf.js +7 -7
  30. package/dist/engine-commands/index.js +23 -24
  31. package/dist/engine-commands/lintSchema.js +8 -8
  32. package/dist/engine-commands/mergeSchemas.js +7 -7
  33. package/dist/engine-commands/validate.js +7 -7
  34. package/dist/get-generators/getGenerators.js +19 -20
  35. package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -3
  36. package/dist/index.d.ts +0 -1
  37. package/dist/index.js +34 -36
  38. package/dist/utils/canPrompt.js +3 -3
  39. package/dist/utils/getVersionFromPackageJson.js +3 -3
  40. package/dist/utils/handlePanic.js +4 -4
  41. package/dist/wasm.js +5 -5
  42. package/package.json +13 -13
  43. package/dist/chunk-L6KOIJJ5.js +0 -125
  44. package/dist/utils/byline.d.ts +0 -4
  45. package/dist/utils/byline.js +0 -28
@@ -1,125 +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_L6KOIJJ5_exports = {};
30
- __export(chunk_L6KOIJJ5_exports, {
31
- LineStream: () => LineStream,
32
- byline: () => byline,
33
- createLineStream: () => createLineStream,
34
- createStream: () => createStream
35
- });
36
- module.exports = __toCommonJS(chunk_L6KOIJJ5_exports);
37
- var import_stream = __toESM(require("stream"));
38
- var import_util = __toESM(require("util"));
39
- function byline(readStream, options) {
40
- return createStream(readStream, options);
41
- }
42
- function createStream(readStream, options) {
43
- if (readStream) {
44
- return createLineStream(readStream, options);
45
- } else {
46
- return new LineStream(options);
47
- }
48
- }
49
- function createLineStream(readStream, options) {
50
- if (!readStream) {
51
- throw new Error("expected readStream");
52
- }
53
- if (!readStream.readable) {
54
- throw new Error("readStream must be readable");
55
- }
56
- const ls = new LineStream(options);
57
- readStream.pipe(ls);
58
- return ls;
59
- }
60
- function LineStream(options) {
61
- import_stream.default.Transform.call(this, options);
62
- options = options || {};
63
- this._readableState.objectMode = true;
64
- this._lineBuffer = [];
65
- this._keepEmptyLines = options.keepEmptyLines || false;
66
- this._lastChunkEndedWithCR = false;
67
- this.on("pipe", function(src) {
68
- if (!this.encoding) {
69
- if (src instanceof import_stream.default.Readable) {
70
- this.encoding = src._readableState.encoding;
71
- }
72
- }
73
- });
74
- }
75
- import_util.default.inherits(LineStream, import_stream.default.Transform);
76
- LineStream.prototype._transform = function(chunk, encoding, done) {
77
- encoding = encoding || "utf8";
78
- if (Buffer.isBuffer(chunk)) {
79
- if (encoding == "buffer") {
80
- chunk = chunk.toString();
81
- encoding = "utf8";
82
- } else {
83
- chunk = chunk.toString(encoding);
84
- }
85
- }
86
- this._chunkEncoding = encoding;
87
- const lines = chunk.split(/\r\n|\r|\n/g);
88
- if (this._lastChunkEndedWithCR && chunk[0] == "\n") {
89
- lines.shift();
90
- }
91
- if (this._lineBuffer.length > 0) {
92
- this._lineBuffer[this._lineBuffer.length - 1] += lines[0];
93
- lines.shift();
94
- }
95
- this._lastChunkEndedWithCR = chunk[chunk.length - 1] == "\r";
96
- this._lineBuffer = this._lineBuffer.concat(lines);
97
- this._pushBuffer(encoding, 1, done);
98
- };
99
- LineStream.prototype._pushBuffer = function(encoding, keep, done) {
100
- while (this._lineBuffer.length > keep) {
101
- const line = this._lineBuffer.shift();
102
- if (this._keepEmptyLines || line.length > 0) {
103
- if (!this.push(this._reencode(line, encoding))) {
104
- const self = this;
105
- setImmediate(function() {
106
- self._pushBuffer(encoding, keep, done);
107
- });
108
- return;
109
- }
110
- }
111
- }
112
- done();
113
- };
114
- LineStream.prototype._flush = function(done) {
115
- this._pushBuffer(this._chunkEncoding, 0, done);
116
- };
117
- LineStream.prototype._reencode = function(line, chunkEncoding) {
118
- if (this.encoding && this.encoding != chunkEncoding) {
119
- return Buffer.from(line, chunkEncoding).toString(this.encoding);
120
- } else if (this.encoding) {
121
- return line;
122
- } else {
123
- return Buffer.from(line, chunkEncoding);
124
- }
125
- };
@@ -1,4 +0,0 @@
1
- export default function byline(readStream: any, options?: any): any;
2
- export declare function createStream(readStream: any, options: any): any;
3
- export declare function createLineStream(readStream: any, options: any): any;
4
- export declare function LineStream(this: any, options: any): void;
@@ -1,28 +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 byline_exports = {};
20
- __export(byline_exports, {
21
- LineStream: () => import_chunk_L6KOIJJ5.LineStream,
22
- createLineStream: () => import_chunk_L6KOIJJ5.createLineStream,
23
- createStream: () => import_chunk_L6KOIJJ5.createStream,
24
- default: () => import_chunk_L6KOIJJ5.byline
25
- });
26
- module.exports = __toCommonJS(byline_exports);
27
- var import_chunk_L6KOIJJ5 = require("../chunk-L6KOIJJ5.js");
28
- var import_chunk_4VNS5WPM = require("../chunk-4VNS5WPM.js");