@prisma-lossless/fetch-engine 7.8.0-lossless.11
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/LICENSE +201 -0
- package/README.md +8 -0
- package/dist/BinaryType.d.ts +3 -0
- package/dist/BinaryType.js +25 -0
- package/dist/chmodPlusX.d.ts +1 -0
- package/dist/chmodPlusX.js +25 -0
- package/dist/chunk-2ESYSVXG.js +67 -0
- package/dist/chunk-5564WBCW.js +161 -0
- package/dist/chunk-66KG5WKV.js +27 -0
- package/dist/chunk-7AOUSONO.js +190 -0
- package/dist/chunk-7JLQJWOR.js +44 -0
- package/dist/chunk-BSGQRGZQ.js +67 -0
- package/dist/chunk-FKGWOTGU.js +49 -0
- package/dist/chunk-IR7Q5RSO.js +2574 -0
- package/dist/chunk-LXSSCRSH.js +1667 -0
- package/dist/chunk-M4U32QVT.js +151 -0
- package/dist/chunk-VLGS4WJI.js +4230 -0
- package/dist/chunk-XRHAN4W7.js +2340 -0
- package/dist/chunk-Y54H3FH6.js +11922 -0
- package/dist/cleanupCache.d.ts +1 -0
- package/dist/cleanupCache.js +27 -0
- package/dist/download.d.ts +27 -0
- package/dist/download.js +41 -0
- package/dist/downloadZip.d.ts +6 -0
- package/dist/downloadZip.js +29 -0
- package/dist/env.d.ts +12 -0
- package/dist/env.js +29 -0
- package/dist/getHash.d.ts +1 -0
- package/dist/getHash.js +25 -0
- package/dist/getProxyAgent.d.ts +3 -0
- package/dist/getProxyAgent.js +25 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +49 -0
- package/dist/log.d.ts +2 -0
- package/dist/log.js +25 -0
- package/dist/multipart-parser-3E7JBBYS.js +374 -0
- package/dist/utils.d.ts +11 -0
- package/dist/utils.js +28 -0
- package/package.json +53 -0
|
@@ -0,0 +1,374 @@
|
|
|
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 multipart_parser_3E7JBBYS_exports = {};
|
|
20
|
+
__export(multipart_parser_3E7JBBYS_exports, {
|
|
21
|
+
toFormData: () => toFormData
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(multipart_parser_3E7JBBYS_exports);
|
|
24
|
+
var import_chunk_VLGS4WJI = require("./chunk-VLGS4WJI.js");
|
|
25
|
+
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
|
26
|
+
var s = 0;
|
|
27
|
+
var S = {
|
|
28
|
+
START_BOUNDARY: s++,
|
|
29
|
+
HEADER_FIELD_START: s++,
|
|
30
|
+
HEADER_FIELD: s++,
|
|
31
|
+
HEADER_VALUE_START: s++,
|
|
32
|
+
HEADER_VALUE: s++,
|
|
33
|
+
HEADER_VALUE_ALMOST_DONE: s++,
|
|
34
|
+
HEADERS_ALMOST_DONE: s++,
|
|
35
|
+
PART_DATA_START: s++,
|
|
36
|
+
PART_DATA: s++,
|
|
37
|
+
END: s++
|
|
38
|
+
};
|
|
39
|
+
var f = 1;
|
|
40
|
+
var F = {
|
|
41
|
+
PART_BOUNDARY: f,
|
|
42
|
+
LAST_BOUNDARY: f *= 2
|
|
43
|
+
};
|
|
44
|
+
var LF = 10;
|
|
45
|
+
var CR = 13;
|
|
46
|
+
var SPACE = 32;
|
|
47
|
+
var HYPHEN = 45;
|
|
48
|
+
var COLON = 58;
|
|
49
|
+
var A = 97;
|
|
50
|
+
var Z = 122;
|
|
51
|
+
var lower = (c) => c | 32;
|
|
52
|
+
var noop = () => {
|
|
53
|
+
};
|
|
54
|
+
var MultipartParser = class {
|
|
55
|
+
/**
|
|
56
|
+
* @param {string} boundary
|
|
57
|
+
*/
|
|
58
|
+
constructor(boundary) {
|
|
59
|
+
this.index = 0;
|
|
60
|
+
this.flags = 0;
|
|
61
|
+
this.onHeaderEnd = noop;
|
|
62
|
+
this.onHeaderField = noop;
|
|
63
|
+
this.onHeadersEnd = noop;
|
|
64
|
+
this.onHeaderValue = noop;
|
|
65
|
+
this.onPartBegin = noop;
|
|
66
|
+
this.onPartData = noop;
|
|
67
|
+
this.onPartEnd = noop;
|
|
68
|
+
this.boundaryChars = {};
|
|
69
|
+
boundary = "\r\n--" + boundary;
|
|
70
|
+
const ui8a = new Uint8Array(boundary.length);
|
|
71
|
+
for (let i = 0; i < boundary.length; i++) {
|
|
72
|
+
ui8a[i] = boundary.charCodeAt(i);
|
|
73
|
+
this.boundaryChars[ui8a[i]] = true;
|
|
74
|
+
}
|
|
75
|
+
this.boundary = ui8a;
|
|
76
|
+
this.lookbehind = new Uint8Array(this.boundary.length + 8);
|
|
77
|
+
this.state = S.START_BOUNDARY;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @param {Uint8Array} data
|
|
81
|
+
*/
|
|
82
|
+
write(data) {
|
|
83
|
+
let i = 0;
|
|
84
|
+
const length_ = data.length;
|
|
85
|
+
let previousIndex = this.index;
|
|
86
|
+
let { lookbehind, boundary, boundaryChars, index, state, flags } = this;
|
|
87
|
+
const boundaryLength = this.boundary.length;
|
|
88
|
+
const boundaryEnd = boundaryLength - 1;
|
|
89
|
+
const bufferLength = data.length;
|
|
90
|
+
let c;
|
|
91
|
+
let cl;
|
|
92
|
+
const mark = (name) => {
|
|
93
|
+
this[name + "Mark"] = i;
|
|
94
|
+
};
|
|
95
|
+
const clear = (name) => {
|
|
96
|
+
delete this[name + "Mark"];
|
|
97
|
+
};
|
|
98
|
+
const callback = (callbackSymbol, start, end, ui8a) => {
|
|
99
|
+
if (start === void 0 || start !== end) {
|
|
100
|
+
this[callbackSymbol](ui8a && ui8a.subarray(start, end));
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
const dataCallback = (name, clear2) => {
|
|
104
|
+
const markSymbol = name + "Mark";
|
|
105
|
+
if (!(markSymbol in this)) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
if (clear2) {
|
|
109
|
+
callback(name, this[markSymbol], i, data);
|
|
110
|
+
delete this[markSymbol];
|
|
111
|
+
} else {
|
|
112
|
+
callback(name, this[markSymbol], data.length, data);
|
|
113
|
+
this[markSymbol] = 0;
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
for (i = 0; i < length_; i++) {
|
|
117
|
+
c = data[i];
|
|
118
|
+
switch (state) {
|
|
119
|
+
case S.START_BOUNDARY:
|
|
120
|
+
if (index === boundary.length - 2) {
|
|
121
|
+
if (c === HYPHEN) {
|
|
122
|
+
flags |= F.LAST_BOUNDARY;
|
|
123
|
+
} else if (c !== CR) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
index++;
|
|
127
|
+
break;
|
|
128
|
+
} else if (index - 1 === boundary.length - 2) {
|
|
129
|
+
if (flags & F.LAST_BOUNDARY && c === HYPHEN) {
|
|
130
|
+
state = S.END;
|
|
131
|
+
flags = 0;
|
|
132
|
+
} else if (!(flags & F.LAST_BOUNDARY) && c === LF) {
|
|
133
|
+
index = 0;
|
|
134
|
+
callback("onPartBegin");
|
|
135
|
+
state = S.HEADER_FIELD_START;
|
|
136
|
+
} else {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
if (c !== boundary[index + 2]) {
|
|
142
|
+
index = -2;
|
|
143
|
+
}
|
|
144
|
+
if (c === boundary[index + 2]) {
|
|
145
|
+
index++;
|
|
146
|
+
}
|
|
147
|
+
break;
|
|
148
|
+
case S.HEADER_FIELD_START:
|
|
149
|
+
state = S.HEADER_FIELD;
|
|
150
|
+
mark("onHeaderField");
|
|
151
|
+
index = 0;
|
|
152
|
+
// falls through
|
|
153
|
+
case S.HEADER_FIELD:
|
|
154
|
+
if (c === CR) {
|
|
155
|
+
clear("onHeaderField");
|
|
156
|
+
state = S.HEADERS_ALMOST_DONE;
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
index++;
|
|
160
|
+
if (c === HYPHEN) {
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
if (c === COLON) {
|
|
164
|
+
if (index === 1) {
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
dataCallback("onHeaderField", true);
|
|
168
|
+
state = S.HEADER_VALUE_START;
|
|
169
|
+
break;
|
|
170
|
+
}
|
|
171
|
+
cl = lower(c);
|
|
172
|
+
if (cl < A || cl > Z) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
break;
|
|
176
|
+
case S.HEADER_VALUE_START:
|
|
177
|
+
if (c === SPACE) {
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
mark("onHeaderValue");
|
|
181
|
+
state = S.HEADER_VALUE;
|
|
182
|
+
// falls through
|
|
183
|
+
case S.HEADER_VALUE:
|
|
184
|
+
if (c === CR) {
|
|
185
|
+
dataCallback("onHeaderValue", true);
|
|
186
|
+
callback("onHeaderEnd");
|
|
187
|
+
state = S.HEADER_VALUE_ALMOST_DONE;
|
|
188
|
+
}
|
|
189
|
+
break;
|
|
190
|
+
case S.HEADER_VALUE_ALMOST_DONE:
|
|
191
|
+
if (c !== LF) {
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
state = S.HEADER_FIELD_START;
|
|
195
|
+
break;
|
|
196
|
+
case S.HEADERS_ALMOST_DONE:
|
|
197
|
+
if (c !== LF) {
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
callback("onHeadersEnd");
|
|
201
|
+
state = S.PART_DATA_START;
|
|
202
|
+
break;
|
|
203
|
+
case S.PART_DATA_START:
|
|
204
|
+
state = S.PART_DATA;
|
|
205
|
+
mark("onPartData");
|
|
206
|
+
// falls through
|
|
207
|
+
case S.PART_DATA:
|
|
208
|
+
previousIndex = index;
|
|
209
|
+
if (index === 0) {
|
|
210
|
+
i += boundaryEnd;
|
|
211
|
+
while (i < bufferLength && !(data[i] in boundaryChars)) {
|
|
212
|
+
i += boundaryLength;
|
|
213
|
+
}
|
|
214
|
+
i -= boundaryEnd;
|
|
215
|
+
c = data[i];
|
|
216
|
+
}
|
|
217
|
+
if (index < boundary.length) {
|
|
218
|
+
if (boundary[index] === c) {
|
|
219
|
+
if (index === 0) {
|
|
220
|
+
dataCallback("onPartData", true);
|
|
221
|
+
}
|
|
222
|
+
index++;
|
|
223
|
+
} else {
|
|
224
|
+
index = 0;
|
|
225
|
+
}
|
|
226
|
+
} else if (index === boundary.length) {
|
|
227
|
+
index++;
|
|
228
|
+
if (c === CR) {
|
|
229
|
+
flags |= F.PART_BOUNDARY;
|
|
230
|
+
} else if (c === HYPHEN) {
|
|
231
|
+
flags |= F.LAST_BOUNDARY;
|
|
232
|
+
} else {
|
|
233
|
+
index = 0;
|
|
234
|
+
}
|
|
235
|
+
} else if (index - 1 === boundary.length) {
|
|
236
|
+
if (flags & F.PART_BOUNDARY) {
|
|
237
|
+
index = 0;
|
|
238
|
+
if (c === LF) {
|
|
239
|
+
flags &= ~F.PART_BOUNDARY;
|
|
240
|
+
callback("onPartEnd");
|
|
241
|
+
callback("onPartBegin");
|
|
242
|
+
state = S.HEADER_FIELD_START;
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
} else if (flags & F.LAST_BOUNDARY) {
|
|
246
|
+
if (c === HYPHEN) {
|
|
247
|
+
callback("onPartEnd");
|
|
248
|
+
state = S.END;
|
|
249
|
+
flags = 0;
|
|
250
|
+
} else {
|
|
251
|
+
index = 0;
|
|
252
|
+
}
|
|
253
|
+
} else {
|
|
254
|
+
index = 0;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
if (index > 0) {
|
|
258
|
+
lookbehind[index - 1] = c;
|
|
259
|
+
} else if (previousIndex > 0) {
|
|
260
|
+
const _lookbehind = new Uint8Array(lookbehind.buffer, lookbehind.byteOffset, lookbehind.byteLength);
|
|
261
|
+
callback("onPartData", 0, previousIndex, _lookbehind);
|
|
262
|
+
previousIndex = 0;
|
|
263
|
+
mark("onPartData");
|
|
264
|
+
i--;
|
|
265
|
+
}
|
|
266
|
+
break;
|
|
267
|
+
case S.END:
|
|
268
|
+
break;
|
|
269
|
+
default:
|
|
270
|
+
throw new Error(`Unexpected state entered: ${state}`);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
dataCallback("onHeaderField");
|
|
274
|
+
dataCallback("onHeaderValue");
|
|
275
|
+
dataCallback("onPartData");
|
|
276
|
+
this.index = index;
|
|
277
|
+
this.state = state;
|
|
278
|
+
this.flags = flags;
|
|
279
|
+
}
|
|
280
|
+
end() {
|
|
281
|
+
if (this.state === S.HEADER_FIELD_START && this.index === 0 || this.state === S.PART_DATA && this.index === this.boundary.length) {
|
|
282
|
+
this.onPartEnd();
|
|
283
|
+
} else if (this.state !== S.END) {
|
|
284
|
+
throw new Error("MultipartParser.end(): stream ended unexpectedly");
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
function _fileName(headerValue) {
|
|
289
|
+
const m = headerValue.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
|
|
290
|
+
if (!m) {
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
const match = m[2] || m[3] || "";
|
|
294
|
+
let filename = match.slice(match.lastIndexOf("\\") + 1);
|
|
295
|
+
filename = filename.replace(/%22/g, '"');
|
|
296
|
+
filename = filename.replace(/&#(\d{4});/g, (m2, code) => {
|
|
297
|
+
return String.fromCharCode(code);
|
|
298
|
+
});
|
|
299
|
+
return filename;
|
|
300
|
+
}
|
|
301
|
+
async function toFormData(Body, ct) {
|
|
302
|
+
if (!/multipart/i.test(ct)) {
|
|
303
|
+
throw new TypeError("Failed to fetch");
|
|
304
|
+
}
|
|
305
|
+
const m = ct.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
|
|
306
|
+
if (!m) {
|
|
307
|
+
throw new TypeError("no or bad content-type header, no multipart boundary");
|
|
308
|
+
}
|
|
309
|
+
const parser = new MultipartParser(m[1] || m[2]);
|
|
310
|
+
let headerField;
|
|
311
|
+
let headerValue;
|
|
312
|
+
let entryValue;
|
|
313
|
+
let entryName;
|
|
314
|
+
let contentType;
|
|
315
|
+
let filename;
|
|
316
|
+
const entryChunks = [];
|
|
317
|
+
const formData = new import_chunk_VLGS4WJI.FormData();
|
|
318
|
+
const onPartData = (ui8a) => {
|
|
319
|
+
entryValue += decoder.decode(ui8a, { stream: true });
|
|
320
|
+
};
|
|
321
|
+
const appendToFile = (ui8a) => {
|
|
322
|
+
entryChunks.push(ui8a);
|
|
323
|
+
};
|
|
324
|
+
const appendFileToFormData = () => {
|
|
325
|
+
const file = new import_chunk_VLGS4WJI.file_default(entryChunks, filename, { type: contentType });
|
|
326
|
+
formData.append(entryName, file);
|
|
327
|
+
};
|
|
328
|
+
const appendEntryToFormData = () => {
|
|
329
|
+
formData.append(entryName, entryValue);
|
|
330
|
+
};
|
|
331
|
+
const decoder = new TextDecoder("utf-8");
|
|
332
|
+
decoder.decode();
|
|
333
|
+
parser.onPartBegin = function() {
|
|
334
|
+
parser.onPartData = onPartData;
|
|
335
|
+
parser.onPartEnd = appendEntryToFormData;
|
|
336
|
+
headerField = "";
|
|
337
|
+
headerValue = "";
|
|
338
|
+
entryValue = "";
|
|
339
|
+
entryName = "";
|
|
340
|
+
contentType = "";
|
|
341
|
+
filename = null;
|
|
342
|
+
entryChunks.length = 0;
|
|
343
|
+
};
|
|
344
|
+
parser.onHeaderField = function(ui8a) {
|
|
345
|
+
headerField += decoder.decode(ui8a, { stream: true });
|
|
346
|
+
};
|
|
347
|
+
parser.onHeaderValue = function(ui8a) {
|
|
348
|
+
headerValue += decoder.decode(ui8a, { stream: true });
|
|
349
|
+
};
|
|
350
|
+
parser.onHeaderEnd = function() {
|
|
351
|
+
headerValue += decoder.decode();
|
|
352
|
+
headerField = headerField.toLowerCase();
|
|
353
|
+
if (headerField === "content-disposition") {
|
|
354
|
+
const m2 = headerValue.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);
|
|
355
|
+
if (m2) {
|
|
356
|
+
entryName = m2[2] || m2[3] || "";
|
|
357
|
+
}
|
|
358
|
+
filename = _fileName(headerValue);
|
|
359
|
+
if (filename) {
|
|
360
|
+
parser.onPartData = appendToFile;
|
|
361
|
+
parser.onPartEnd = appendFileToFormData;
|
|
362
|
+
}
|
|
363
|
+
} else if (headerField === "content-type") {
|
|
364
|
+
contentType = headerValue;
|
|
365
|
+
}
|
|
366
|
+
headerValue = "";
|
|
367
|
+
headerField = "";
|
|
368
|
+
};
|
|
369
|
+
for await (const chunk of Body) {
|
|
370
|
+
parser.write(chunk);
|
|
371
|
+
}
|
|
372
|
+
parser.end();
|
|
373
|
+
return formData;
|
|
374
|
+
}
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BinaryTarget } from '@prisma-lossless/get-platform';
|
|
2
|
+
export declare function getRootCacheDir(): Promise<string | null>;
|
|
3
|
+
export declare function getCacheDir(channel: string, version: string, binaryTarget: string): Promise<string | null>;
|
|
4
|
+
export declare function getDownloadUrl({ channel, version, binaryTarget, binaryName, extension, }: {
|
|
5
|
+
channel: string;
|
|
6
|
+
version: string;
|
|
7
|
+
binaryTarget: BinaryTarget;
|
|
8
|
+
binaryName: string;
|
|
9
|
+
extension?: string;
|
|
10
|
+
}): string;
|
|
11
|
+
export declare function overwriteFile(sourcePath: string, targetPath: string): Promise<void>;
|
package/dist/utils.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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 utils_exports = {};
|
|
20
|
+
__export(utils_exports, {
|
|
21
|
+
getCacheDir: () => import_chunk_XRHAN4W7.getCacheDir,
|
|
22
|
+
getDownloadUrl: () => import_chunk_XRHAN4W7.getDownloadUrl,
|
|
23
|
+
getRootCacheDir: () => import_chunk_XRHAN4W7.getRootCacheDir,
|
|
24
|
+
overwriteFile: () => import_chunk_XRHAN4W7.overwriteFile
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(utils_exports);
|
|
27
|
+
var import_chunk_XRHAN4W7 = require("./chunk-XRHAN4W7.js");
|
|
28
|
+
var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@prisma-lossless/fetch-engine",
|
|
3
|
+
"version": "7.8.0-lossless.11",
|
|
4
|
+
"description": "This package is intended for Prisma's internal use",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"author": "Tim Suchanek <suchanek@prisma.io>",
|
|
9
|
+
"homepage": "https://www.prisma.io",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/prisma/prisma.git",
|
|
13
|
+
"directory": "packages/fetch-engine"
|
|
14
|
+
},
|
|
15
|
+
"bugs": "https://github.com/prisma/prisma/issues",
|
|
16
|
+
"enginesOverride": {},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/node": "~20.19.24",
|
|
19
|
+
"@types/progress": "2.0.7",
|
|
20
|
+
"del": "6.1.1",
|
|
21
|
+
"execa": "8.0.1",
|
|
22
|
+
"find-cache-dir": "5.0.0",
|
|
23
|
+
"fs-extra": "11.3.0",
|
|
24
|
+
"hasha": "5.2.2",
|
|
25
|
+
"http-proxy-agent": "7.0.2",
|
|
26
|
+
"https-proxy-agent": "7.0.6",
|
|
27
|
+
"kleur": "4.1.5",
|
|
28
|
+
"node-fetch": "3.3.2",
|
|
29
|
+
"p-filter": "4.1.0",
|
|
30
|
+
"p-map": "4.0.0",
|
|
31
|
+
"p-retry": "4.6.2",
|
|
32
|
+
"progress": "2.0.3",
|
|
33
|
+
"temp-dir": "2.0.0",
|
|
34
|
+
"tempy": "1.0.1",
|
|
35
|
+
"timeout-signal": "2.0.0",
|
|
36
|
+
"typescript": "5.4.5"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@prisma-lossless/debug": "7.8.0-lossless.11",
|
|
40
|
+
"@prisma/engines-version": "7.8.0-6.3c6e192761c0362d496ed980de936e2f3cebcd3a",
|
|
41
|
+
"@prisma-lossless/get-platform": "7.8.0-lossless.11"
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"README.md",
|
|
45
|
+
"dist"
|
|
46
|
+
],
|
|
47
|
+
"sideEffects": false,
|
|
48
|
+
"scripts": {
|
|
49
|
+
"dev": "DEV=true tsx helpers/build.ts",
|
|
50
|
+
"build": "tsx helpers/build.ts",
|
|
51
|
+
"test": "vitest run"
|
|
52
|
+
}
|
|
53
|
+
}
|