@prisma/fetch-engine 6.5.0-integration-feat-get-rid-of-patches.1 → 6.5.0
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/BinaryType.js +1 -1
- package/dist/chmodPlusX.js +1 -1
- package/dist/{chunk-XSNM3AMV.js → chunk-7QDSDNVI.js} +81 -81
- package/dist/{chunk-TIRVZJHP.js → chunk-EQBIW23N.js} +44 -44
- package/dist/{chunk-4LX3XBNY.js → chunk-FXSJF4XA.js} +7 -7
- package/dist/chunk-MSGI7ABO.js +7483 -0
- package/dist/{chunk-AH6QHEOA.js → chunk-OSFPEEC6.js} +17 -3
- package/dist/{chunk-FAWNAZS6.js → chunk-PFE2F67S.js} +82 -82
- package/dist/{chunk-ORVVLJ4G.js → chunk-QWMYWBXN.js} +2728 -182
- package/dist/{chunk-ZSBPBV34.js → chunk-S3LWA4WZ.js} +40 -40
- package/dist/{chunk-I3P4GT6A.js → chunk-SXLYQ75W.js} +9 -12
- package/dist/{chunk-HACCWU3B.js → chunk-TEEFYD2G.js} +60 -60
- package/dist/cleanupCache.js +5 -5
- package/dist/download.js +15 -15
- package/dist/downloadZip.js +7 -7
- package/dist/env.js +1 -1
- package/dist/getHash.js +1 -1
- package/dist/getProxyAgent.js +3 -3
- package/dist/index.js +18 -18
- package/dist/log.js +3 -3
- package/dist/{multipart-parser-ITART6UP.js → multipart-parser-54WEFGGN.js} +7 -7
- package/dist/utils.js +6 -6
- package/package.json +5 -5
- package/dist/chunk-ZAFWMCVK.js +0 -2796
@@ -16,17 +16,17 @@ 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(
|
19
|
+
var chunk_EQBIW23N_exports = {};
|
20
|
+
__export(chunk_EQBIW23N_exports, {
|
21
21
|
FormData: () => FormData,
|
22
22
|
fetch_blob_default: () => fetch_blob_default,
|
23
23
|
file_default: () => file_default,
|
24
24
|
formDataToBlob: () => formDataToBlob
|
25
25
|
});
|
26
|
-
module.exports = __toCommonJS(
|
27
|
-
var
|
26
|
+
module.exports = __toCommonJS(chunk_EQBIW23N_exports);
|
27
|
+
var import_chunk_OSFPEEC6 = require("./chunk-OSFPEEC6.js");
|
28
28
|
var import_node_fs = require("node:fs");
|
29
|
-
var require_ponyfill_es2018 = (0,
|
29
|
+
var require_ponyfill_es2018 = (0, import_chunk_OSFPEEC6.__commonJS)({
|
30
30
|
"../../node_modules/.pnpm/web-streams-polyfill@3.2.1/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js"(exports, module2) {
|
31
31
|
"use strict";
|
32
32
|
(function(global2, factory) {
|
@@ -3835,18 +3835,18 @@ var require_ponyfill_es2018 = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
3835
3835
|
});
|
3836
3836
|
}
|
3837
3837
|
});
|
3838
|
-
var require_streams = (0,
|
3838
|
+
var require_streams = (0, import_chunk_OSFPEEC6.__commonJS)({
|
3839
3839
|
"../../node_modules/.pnpm/fetch-blob@3.2.0/node_modules/fetch-blob/streams.cjs"() {
|
3840
3840
|
"use strict";
|
3841
3841
|
var POOL_SIZE2 = 65536;
|
3842
3842
|
if (!globalThis.ReadableStream) {
|
3843
3843
|
try {
|
3844
|
-
const process = (0,
|
3844
|
+
const process = (0, import_chunk_OSFPEEC6.__require)("node:process");
|
3845
3845
|
const { emitWarning } = process;
|
3846
3846
|
try {
|
3847
3847
|
process.emitWarning = () => {
|
3848
3848
|
};
|
3849
|
-
Object.assign(globalThis, (0,
|
3849
|
+
Object.assign(globalThis, (0, import_chunk_OSFPEEC6.__require)("node:stream/web"));
|
3850
3850
|
process.emitWarning = emitWarning;
|
3851
3851
|
} catch (error) {
|
3852
3852
|
process.emitWarning = emitWarning;
|
@@ -3857,7 +3857,7 @@ var require_streams = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
3857
3857
|
}
|
3858
3858
|
}
|
3859
3859
|
try {
|
3860
|
-
const { Blob: Blob2 } = (0,
|
3860
|
+
const { Blob: Blob2 } = (0, import_chunk_OSFPEEC6.__require)("buffer");
|
3861
3861
|
if (Blob2 && !Blob2.prototype.stream) {
|
3862
3862
|
Blob2.prototype.stream = function name(params) {
|
3863
3863
|
let position = 0;
|
@@ -3880,12 +3880,12 @@ var require_streams = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
3880
3880
|
}
|
3881
3881
|
}
|
3882
3882
|
});
|
3883
|
-
var require_node_domexception = (0,
|
3883
|
+
var require_node_domexception = (0, import_chunk_OSFPEEC6.__commonJS)({
|
3884
3884
|
"../../node_modules/.pnpm/node-domexception@1.0.0/node_modules/node-domexception/index.js"(exports, module2) {
|
3885
3885
|
"use strict";
|
3886
3886
|
if (!globalThis.DOMException) {
|
3887
3887
|
try {
|
3888
|
-
const { MessageChannel } = (0,
|
3888
|
+
const { MessageChannel } = (0, import_chunk_OSFPEEC6.__require)("worker_threads"), port = new MessageChannel().port1, ab = new ArrayBuffer();
|
3889
3889
|
port.postMessage(ab, [ab, ab]);
|
3890
3890
|
} catch (err) {
|
3891
3891
|
err.constructor.name === "DOMException" && (globalThis.DOMException = err.constructor);
|
@@ -3894,7 +3894,7 @@ var require_node_domexception = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
3894
3894
|
module2.exports = globalThis.DOMException;
|
3895
3895
|
}
|
3896
3896
|
});
|
3897
|
-
var import_streams = (0,
|
3897
|
+
var import_streams = (0, import_chunk_OSFPEEC6.__toESM)(require_streams(), 1);
|
3898
3898
|
var POOL_SIZE = 65536;
|
3899
3899
|
async function* toIterator(parts, clone = true) {
|
3900
3900
|
for (const part of parts) {
|
@@ -3941,10 +3941,10 @@ var _Blob = (_a = class {
|
|
3941
3941
|
* @param {{ type?: string, endings?: string }} [options]
|
3942
3942
|
*/
|
3943
3943
|
constructor(blobParts = [], options = {}) {
|
3944
|
-
(0,
|
3945
|
-
(0,
|
3946
|
-
(0,
|
3947
|
-
(0,
|
3944
|
+
(0, import_chunk_OSFPEEC6.__privateAdd)(this, _parts, []);
|
3945
|
+
(0, import_chunk_OSFPEEC6.__privateAdd)(this, _type, "");
|
3946
|
+
(0, import_chunk_OSFPEEC6.__privateAdd)(this, _size, 0);
|
3947
|
+
(0, import_chunk_OSFPEEC6.__privateAdd)(this, _endings, "transparent");
|
3948
3948
|
if (typeof blobParts !== "object" || blobParts === null) {
|
3949
3949
|
throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");
|
3950
3950
|
}
|
@@ -3967,25 +3967,25 @@ var _Blob = (_a = class {
|
|
3967
3967
|
} else {
|
3968
3968
|
part = encoder.encode(`${element}`);
|
3969
3969
|
}
|
3970
|
-
(0,
|
3971
|
-
(0,
|
3970
|
+
(0, import_chunk_OSFPEEC6.__privateSet)(this, _size, (0, import_chunk_OSFPEEC6.__privateGet)(this, _size) + (ArrayBuffer.isView(part) ? part.byteLength : part.size));
|
3971
|
+
(0, import_chunk_OSFPEEC6.__privateGet)(this, _parts).push(part);
|
3972
3972
|
}
|
3973
|
-
(0,
|
3973
|
+
(0, import_chunk_OSFPEEC6.__privateSet)(this, _endings, `${options.endings === void 0 ? "transparent" : options.endings}`);
|
3974
3974
|
const type = options.type === void 0 ? "" : String(options.type);
|
3975
|
-
(0,
|
3975
|
+
(0, import_chunk_OSFPEEC6.__privateSet)(this, _type, /^[\x20-\x7E]*$/.test(type) ? type : "");
|
3976
3976
|
}
|
3977
3977
|
/**
|
3978
3978
|
* The Blob interface's size property returns the
|
3979
3979
|
* size of the Blob in bytes.
|
3980
3980
|
*/
|
3981
3981
|
get size() {
|
3982
|
-
return (0,
|
3982
|
+
return (0, import_chunk_OSFPEEC6.__privateGet)(this, _size);
|
3983
3983
|
}
|
3984
3984
|
/**
|
3985
3985
|
* The type property of a Blob object returns the MIME type of the file.
|
3986
3986
|
*/
|
3987
3987
|
get type() {
|
3988
|
-
return (0,
|
3988
|
+
return (0, import_chunk_OSFPEEC6.__privateGet)(this, _type);
|
3989
3989
|
}
|
3990
3990
|
/**
|
3991
3991
|
* The text() method in the Blob interface returns a Promise
|
@@ -3997,7 +3997,7 @@ var _Blob = (_a = class {
|
|
3997
3997
|
async text() {
|
3998
3998
|
const decoder = new TextDecoder();
|
3999
3999
|
let str = "";
|
4000
|
-
for await (const part of toIterator((0,
|
4000
|
+
for await (const part of toIterator((0, import_chunk_OSFPEEC6.__privateGet)(this, _parts), false)) {
|
4001
4001
|
str += decoder.decode(part, { stream: true });
|
4002
4002
|
}
|
4003
4003
|
str += decoder.decode();
|
@@ -4013,14 +4013,14 @@ var _Blob = (_a = class {
|
|
4013
4013
|
async arrayBuffer() {
|
4014
4014
|
const data = new Uint8Array(this.size);
|
4015
4015
|
let offset = 0;
|
4016
|
-
for await (const chunk of toIterator((0,
|
4016
|
+
for await (const chunk of toIterator((0, import_chunk_OSFPEEC6.__privateGet)(this, _parts), false)) {
|
4017
4017
|
data.set(chunk, offset);
|
4018
4018
|
offset += chunk.length;
|
4019
4019
|
}
|
4020
4020
|
return data.buffer;
|
4021
4021
|
}
|
4022
4022
|
stream() {
|
4023
|
-
const it = toIterator((0,
|
4023
|
+
const it = toIterator((0, import_chunk_OSFPEEC6.__privateGet)(this, _parts), true);
|
4024
4024
|
return new globalThis.ReadableStream({
|
4025
4025
|
// @ts-ignore
|
4026
4026
|
type: "bytes",
|
@@ -4047,7 +4047,7 @@ var _Blob = (_a = class {
|
|
4047
4047
|
let relativeStart = start < 0 ? Math.max(size + start, 0) : Math.min(start, size);
|
4048
4048
|
let relativeEnd = end < 0 ? Math.max(size + end, 0) : Math.min(end, size);
|
4049
4049
|
const span = Math.max(relativeEnd - relativeStart, 0);
|
4050
|
-
const parts = (0,
|
4050
|
+
const parts = (0, import_chunk_OSFPEEC6.__privateGet)(this, _parts);
|
4051
4051
|
const blobParts = [];
|
4052
4052
|
let added = 0;
|
4053
4053
|
for (const part of parts) {
|
@@ -4073,8 +4073,8 @@ var _Blob = (_a = class {
|
|
4073
4073
|
}
|
4074
4074
|
}
|
4075
4075
|
const blob = new _a([], { type: String(type).toLowerCase() });
|
4076
|
-
(0,
|
4077
|
-
(0,
|
4076
|
+
(0, import_chunk_OSFPEEC6.__privateSet)(blob, _size, span);
|
4077
|
+
(0, import_chunk_OSFPEEC6.__privateSet)(blob, _parts, blobParts);
|
4078
4078
|
return blob;
|
4079
4079
|
}
|
4080
4080
|
get [Symbol.toStringTag]() {
|
@@ -4104,20 +4104,20 @@ var _File = (_a2 = class extends fetch_blob_default {
|
|
4104
4104
|
throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`);
|
4105
4105
|
}
|
4106
4106
|
super(fileBits, options);
|
4107
|
-
(0,
|
4108
|
-
(0,
|
4107
|
+
(0, import_chunk_OSFPEEC6.__privateAdd)(this, _lastModified, 0);
|
4108
|
+
(0, import_chunk_OSFPEEC6.__privateAdd)(this, _name, "");
|
4109
4109
|
if (options === null) options = {};
|
4110
4110
|
const lastModified = options.lastModified === void 0 ? Date.now() : Number(options.lastModified);
|
4111
4111
|
if (!Number.isNaN(lastModified)) {
|
4112
|
-
(0,
|
4112
|
+
(0, import_chunk_OSFPEEC6.__privateSet)(this, _lastModified, lastModified);
|
4113
4113
|
}
|
4114
|
-
(0,
|
4114
|
+
(0, import_chunk_OSFPEEC6.__privateSet)(this, _name, String(fileName));
|
4115
4115
|
}
|
4116
4116
|
get name() {
|
4117
|
-
return (0,
|
4117
|
+
return (0, import_chunk_OSFPEEC6.__privateGet)(this, _name);
|
4118
4118
|
}
|
4119
4119
|
get lastModified() {
|
4120
|
-
return (0,
|
4120
|
+
return (0, import_chunk_OSFPEEC6.__privateGet)(this, _lastModified);
|
4121
4121
|
}
|
4122
4122
|
get [Symbol.toStringTag]() {
|
4123
4123
|
return "File";
|
@@ -4141,7 +4141,7 @@ var x = (n, a, e2) => {
|
|
4141
4141
|
var _d, _a3;
|
4142
4142
|
var FormData = (_a3 = class {
|
4143
4143
|
constructor(...a) {
|
4144
|
-
(0,
|
4144
|
+
(0, import_chunk_OSFPEEC6.__privateAdd)(this, _d, []);
|
4145
4145
|
if (a.length) throw new TypeError(`Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.`);
|
4146
4146
|
}
|
4147
4147
|
get [t]() {
|
@@ -4155,30 +4155,30 @@ var FormData = (_a3 = class {
|
|
4155
4155
|
}
|
4156
4156
|
append(...a) {
|
4157
4157
|
x("append", arguments, 2);
|
4158
|
-
(0,
|
4158
|
+
(0, import_chunk_OSFPEEC6.__privateGet)(this, _d).push(f(...a));
|
4159
4159
|
}
|
4160
4160
|
delete(a) {
|
4161
4161
|
x("delete", arguments, 1);
|
4162
4162
|
a += "";
|
4163
|
-
(0,
|
4163
|
+
(0, import_chunk_OSFPEEC6.__privateSet)(this, _d, (0, import_chunk_OSFPEEC6.__privateGet)(this, _d).filter(([b]) => b !== a));
|
4164
4164
|
}
|
4165
4165
|
get(a) {
|
4166
4166
|
x("get", arguments, 1);
|
4167
4167
|
a += "";
|
4168
|
-
for (var b = (0,
|
4168
|
+
for (var b = (0, import_chunk_OSFPEEC6.__privateGet)(this, _d), l = b.length, c = 0; c < l; c++) if (b[c][0] === a) return b[c][1];
|
4169
4169
|
return null;
|
4170
4170
|
}
|
4171
4171
|
getAll(a, b) {
|
4172
4172
|
x("getAll", arguments, 1);
|
4173
4173
|
b = [];
|
4174
4174
|
a += "";
|
4175
|
-
(0,
|
4175
|
+
(0, import_chunk_OSFPEEC6.__privateGet)(this, _d).forEach((c) => c[0] === a && b.push(c[1]));
|
4176
4176
|
return b;
|
4177
4177
|
}
|
4178
4178
|
has(a) {
|
4179
4179
|
x("has", arguments, 1);
|
4180
4180
|
a += "";
|
4181
|
-
return (0,
|
4181
|
+
return (0, import_chunk_OSFPEEC6.__privateGet)(this, _d).some((b) => b[0] === a);
|
4182
4182
|
}
|
4183
4183
|
forEach(a, b) {
|
4184
4184
|
x("forEach", arguments, 1);
|
@@ -4188,14 +4188,14 @@ var FormData = (_a3 = class {
|
|
4188
4188
|
x("set", arguments, 2);
|
4189
4189
|
var b = [], c = true;
|
4190
4190
|
a = f(...a);
|
4191
|
-
(0,
|
4191
|
+
(0, import_chunk_OSFPEEC6.__privateGet)(this, _d).forEach((d) => {
|
4192
4192
|
d[0] === a[0] ? c && (c = !b.push(a)) : b.push(d);
|
4193
4193
|
});
|
4194
4194
|
c && b.push(a);
|
4195
|
-
(0,
|
4195
|
+
(0, import_chunk_OSFPEEC6.__privateSet)(this, _d, b);
|
4196
4196
|
}
|
4197
4197
|
*entries() {
|
4198
|
-
yield* (0,
|
4198
|
+
yield* (0, import_chunk_OSFPEEC6.__privateGet)(this, _d);
|
4199
4199
|
}
|
4200
4200
|
*keys() {
|
4201
4201
|
for (var [a] of this) yield a;
|
@@ -4217,7 +4217,7 @@ Content-Type: ${v.type || "application/octet-stream"}\r
|
|
4217
4217
|
c.push(`--${b}--`);
|
4218
4218
|
return new B(c, { type: "multipart/form-data; boundary=" + b });
|
4219
4219
|
}
|
4220
|
-
var import_node_domexception = (0,
|
4220
|
+
var import_node_domexception = (0, import_chunk_OSFPEEC6.__toESM)(require_node_domexception(), 1);
|
4221
4221
|
var { stat } = import_node_fs.promises;
|
4222
4222
|
/*! Bundled license information:
|
4223
4223
|
|
@@ -16,13 +16,13 @@ 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(
|
19
|
+
var chunk_FXSJF4XA_exports = {};
|
20
|
+
__export(chunk_FXSJF4XA_exports, {
|
21
21
|
getBar: () => getBar
|
22
22
|
});
|
23
|
-
module.exports = __toCommonJS(
|
24
|
-
var
|
25
|
-
var require_node_progress = (0,
|
23
|
+
module.exports = __toCommonJS(chunk_FXSJF4XA_exports);
|
24
|
+
var import_chunk_OSFPEEC6 = require("./chunk-OSFPEEC6.js");
|
25
|
+
var require_node_progress = (0, import_chunk_OSFPEEC6.__commonJS)({
|
26
26
|
"../../node_modules/.pnpm/progress@2.0.3/node_modules/progress/lib/node-progress.js"(exports, module2) {
|
27
27
|
"use strict";
|
28
28
|
exports = module2.exports = ProgressBar;
|
@@ -132,13 +132,13 @@ var require_node_progress = (0, import_chunk_AH6QHEOA.__commonJS)({
|
|
132
132
|
};
|
133
133
|
}
|
134
134
|
});
|
135
|
-
var require_progress = (0,
|
135
|
+
var require_progress = (0, import_chunk_OSFPEEC6.__commonJS)({
|
136
136
|
"../../node_modules/.pnpm/progress@2.0.3/node_modules/progress/index.js"(exports, module2) {
|
137
137
|
"use strict";
|
138
138
|
module2.exports = require_node_progress();
|
139
139
|
}
|
140
140
|
});
|
141
|
-
var import_progress = (0,
|
141
|
+
var import_progress = (0, import_chunk_OSFPEEC6.__toESM)(require_progress());
|
142
142
|
function getBar(text) {
|
143
143
|
return new import_progress.default(`> ${text} [:bar] :percent`, {
|
144
144
|
stream: process.stdout,
|