@prisma/internals 7.2.0-dev.2 → 7.2.0-dev.20
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/{chunk-KKLC6ICR.js → chunk-6JD4VENT.js} +8 -8
- package/dist/{chunk-2REZPI5X.js → chunk-6SP5HDO3.js} +7 -7
- package/dist/{chunk-BZHSZTE2.js → chunk-CEQMGCMX.js} +5 -5
- package/dist/{chunk-I25IWVW5.js → chunk-DDPFKWQG.js} +5 -5
- package/dist/{chunk-BVV6D7XP.js → chunk-EIO44IYO.js} +8 -8
- package/dist/{chunk-WFUKFVH6.js → chunk-G7GV3UAA.js} +5 -5
- package/dist/{chunk-PKOQQT7I.js → chunk-GH2WAX5Y.js} +4 -4
- package/dist/{chunk-MANSTLL3.js → chunk-HFLFMWOT.js} +5 -5
- package/dist/{chunk-RUKCYZ54.js → chunk-HU3A5CII.js} +5 -5
- package/dist/{chunk-DHX7DBPB.js → chunk-KJKLC73N.js} +7 -7
- package/dist/{chunk-2C5EURGU.js → chunk-MLFTPRIV.js} +8 -8
- package/dist/{chunk-AGNWKAAG.js → chunk-MLOPQYUE.js} +17 -17
- package/dist/{chunk-WM7FE34C.js → chunk-MW6NA5W7.js} +8 -8
- package/dist/{chunk-IKQ7QOON.js → chunk-NSBL7ZXZ.js} +5 -5
- package/dist/{chunk-GZLJZGHX.js → chunk-NYNXYKR4.js} +5 -5
- package/dist/{chunk-IZLJDMEG.js → chunk-OVTE2A4Y.js} +5 -5
- package/dist/{chunk-2SKW7GP3.js → chunk-PXVMMIDM.js} +17 -17
- package/dist/{chunk-N5QO7HOW.js → chunk-QMSPMDFJ.js} +5 -5
- package/dist/{chunk-FCYHZHVW.js → chunk-R3J2O23S.js} +4 -4
- package/dist/{chunk-67PQJCIH.js → chunk-RNZ7ZIPA.js} +8 -8
- package/dist/{chunk-DL4H3MQB.js → chunk-T6BPU44Y.js} +5 -5
- package/dist/{chunk-RGBIV5FO.js → chunk-WDCVIVUS.js} +6 -6
- package/dist/{chunk-2TEKDQRV.js → chunk-Y3RHOHKB.js} +8 -8
- package/dist/cli/checkUnsupportedDataProxy.js +17 -18
- package/dist/cli/schemaContext.js +18 -19
- package/dist/engine-commands/errorHelpers.js +4 -4
- package/dist/engine-commands/formatSchema.js +16 -17
- package/dist/engine-commands/getConfig.js +7 -7
- package/dist/engine-commands/getDmmf.js +7 -7
- package/dist/engine-commands/index.js +23 -24
- package/dist/engine-commands/lintSchema.js +8 -8
- package/dist/engine-commands/mergeSchemas.js +7 -7
- package/dist/engine-commands/validate.js +7 -7
- package/dist/get-generators/getGenerators.js +19 -20
- package/dist/get-generators/utils/getBinaryPathsByVersion.js +3 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.js +34 -36
- package/dist/utils/canPrompt.js +3 -3
- package/dist/utils/getVersionFromPackageJson.js +3 -3
- package/dist/utils/handlePanic.js +4 -4
- package/dist/wasm.js +5 -5
- package/package.json +13 -13
- package/dist/chunk-L6KOIJJ5.js +0 -125
- package/dist/utils/byline.d.ts +0 -4
- package/dist/utils/byline.js +0 -28
package/dist/chunk-L6KOIJJ5.js
DELETED
|
@@ -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
|
-
};
|
package/dist/utils/byline.d.ts
DELETED
|
@@ -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;
|
package/dist/utils/byline.js
DELETED
|
@@ -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");
|