@prisma/fetch-engine 6.17.0-dev.2 → 6.17.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/chmodPlusX.js +2 -2
- package/dist/{chunk-4GLRZ2GS.js → chunk-2DPMENYP.js} +14 -14
- package/dist/{chunk-MX3HXAU2.js → chunk-7JLQJWOR.js} +6 -6
- package/dist/{chunk-YJOPKU47.js → chunk-7KB2WQ67.js} +34 -34
- package/dist/chunk-EDLHWQIJ.js +2588 -0
- package/dist/{chunk-CWGQAQ3T.js → chunk-FKGWOTGU.js} +7 -7
- package/dist/chunk-FSAAZH62.js +190 -0
- package/dist/chunk-HIKUXD5O.js +2588 -0
- package/dist/{chunk-PXQVM7NP.js → chunk-QFA3XBMW.js} +7 -7
- package/dist/{chunk-NA32AGOU.js → chunk-TT7KVFVK.js} +80 -24
- package/dist/cleanupCache.js +4 -4
- package/dist/download.js +14 -14
- package/dist/downloadZip.js +4 -4
- package/dist/env.js +5 -5
- package/dist/getHash.js +2 -2
- package/dist/index.js +20 -20
- package/dist/utils.js +5 -5
- package/package.json +6 -11
- package/dist/chunk-LUEZKII4.js +0 -2444
- package/dist/chunk-SVP4SRAT.js +0 -7471
- package/dist/chunk-YNVJNBET.js +0 -2444
|
@@ -26,16 +26,16 @@ 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
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_FKGWOTGU_exports = {};
|
|
30
|
+
__export(chunk_FKGWOTGU_exports, {
|
|
31
31
|
getHash: () => getHash
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
35
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_FKGWOTGU_exports);
|
|
34
|
+
var import_node_crypto = __toESM(require("node:crypto"));
|
|
35
|
+
var import_node_fs = __toESM(require("node:fs"));
|
|
36
36
|
function getHash(filePath) {
|
|
37
|
-
const hash =
|
|
38
|
-
const input =
|
|
37
|
+
const hash = import_node_crypto.default.createHash("sha256");
|
|
38
|
+
const input = import_node_fs.default.createReadStream(filePath);
|
|
39
39
|
return new Promise((resolve) => {
|
|
40
40
|
input.on("readable", () => {
|
|
41
41
|
const data = input.read();
|
|
@@ -0,0 +1,190 @@
|
|
|
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 chunk_FSAAZH62_exports = {};
|
|
20
|
+
__export(chunk_FSAAZH62_exports, {
|
|
21
|
+
require_p_map: () => require_p_map
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(chunk_FSAAZH62_exports);
|
|
24
|
+
var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
|
|
25
|
+
var require_indent_string = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
26
|
+
"../../node_modules/.pnpm/indent-string@4.0.0/node_modules/indent-string/index.js"(exports, module2) {
|
|
27
|
+
"use strict";
|
|
28
|
+
module2.exports = (string, count = 1, options) => {
|
|
29
|
+
options = {
|
|
30
|
+
indent: " ",
|
|
31
|
+
includeEmptyLines: false,
|
|
32
|
+
...options
|
|
33
|
+
};
|
|
34
|
+
if (typeof string !== "string") {
|
|
35
|
+
throw new TypeError(
|
|
36
|
+
`Expected \`input\` to be a \`string\`, got \`${typeof string}\``
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
if (typeof count !== "number") {
|
|
40
|
+
throw new TypeError(
|
|
41
|
+
`Expected \`count\` to be a \`number\`, got \`${typeof count}\``
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
if (typeof options.indent !== "string") {
|
|
45
|
+
throw new TypeError(
|
|
46
|
+
`Expected \`options.indent\` to be a \`string\`, got \`${typeof options.indent}\``
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
if (count === 0) {
|
|
50
|
+
return string;
|
|
51
|
+
}
|
|
52
|
+
const regex = options.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
|
|
53
|
+
return string.replace(regex, options.indent.repeat(count));
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
var require_clean_stack = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
58
|
+
"../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js"(exports, module2) {
|
|
59
|
+
"use strict";
|
|
60
|
+
var os = (0, import_chunk_QGM4M3NI.__require)("os");
|
|
61
|
+
var extractPathRegex = /\s+at.*(?:\(|\s)(.*)\)?/;
|
|
62
|
+
var pathRegex = /^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/;
|
|
63
|
+
var homeDir = typeof os.homedir === "undefined" ? "" : os.homedir();
|
|
64
|
+
module2.exports = (stack, options) => {
|
|
65
|
+
options = Object.assign({ pretty: false }, options);
|
|
66
|
+
return stack.replace(/\\/g, "/").split("\n").filter((line) => {
|
|
67
|
+
const pathMatches = line.match(extractPathRegex);
|
|
68
|
+
if (pathMatches === null || !pathMatches[1]) {
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
const match = pathMatches[1];
|
|
72
|
+
if (match.includes(".app/Contents/Resources/electron.asar") || match.includes(".app/Contents/Resources/default_app.asar")) {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
return !pathRegex.test(match);
|
|
76
|
+
}).filter((line) => line.trim() !== "").map((line) => {
|
|
77
|
+
if (options.pretty) {
|
|
78
|
+
return line.replace(extractPathRegex, (m, p1) => m.replace(p1, p1.replace(homeDir, "~")));
|
|
79
|
+
}
|
|
80
|
+
return line;
|
|
81
|
+
}).join("\n");
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
var require_aggregate_error = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
86
|
+
"../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js"(exports, module2) {
|
|
87
|
+
"use strict";
|
|
88
|
+
var indentString = require_indent_string();
|
|
89
|
+
var cleanStack = require_clean_stack();
|
|
90
|
+
var cleanInternalStack = (stack) => stack.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g, "");
|
|
91
|
+
var AggregateError = class extends Error {
|
|
92
|
+
constructor(errors) {
|
|
93
|
+
if (!Array.isArray(errors)) {
|
|
94
|
+
throw new TypeError(`Expected input to be an Array, got ${typeof errors}`);
|
|
95
|
+
}
|
|
96
|
+
errors = [...errors].map((error) => {
|
|
97
|
+
if (error instanceof Error) {
|
|
98
|
+
return error;
|
|
99
|
+
}
|
|
100
|
+
if (error !== null && typeof error === "object") {
|
|
101
|
+
return Object.assign(new Error(error.message), error);
|
|
102
|
+
}
|
|
103
|
+
return new Error(error);
|
|
104
|
+
});
|
|
105
|
+
let message = errors.map((error) => {
|
|
106
|
+
return typeof error.stack === "string" ? cleanInternalStack(cleanStack(error.stack)) : String(error);
|
|
107
|
+
}).join("\n");
|
|
108
|
+
message = "\n" + indentString(message, 4);
|
|
109
|
+
super(message);
|
|
110
|
+
this.name = "AggregateError";
|
|
111
|
+
Object.defineProperty(this, "_errors", { value: errors });
|
|
112
|
+
}
|
|
113
|
+
*[Symbol.iterator]() {
|
|
114
|
+
for (const error of this._errors) {
|
|
115
|
+
yield error;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
module2.exports = AggregateError;
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
var require_p_map = (0, import_chunk_QGM4M3NI.__commonJS)({
|
|
123
|
+
"../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js"(exports, module2) {
|
|
124
|
+
"use strict";
|
|
125
|
+
var AggregateError = require_aggregate_error();
|
|
126
|
+
module2.exports = async (iterable, mapper, {
|
|
127
|
+
concurrency = Infinity,
|
|
128
|
+
stopOnError = true
|
|
129
|
+
} = {}) => {
|
|
130
|
+
return new Promise((resolve, reject) => {
|
|
131
|
+
if (typeof mapper !== "function") {
|
|
132
|
+
throw new TypeError("Mapper function is required");
|
|
133
|
+
}
|
|
134
|
+
if (!((Number.isSafeInteger(concurrency) || concurrency === Infinity) && concurrency >= 1)) {
|
|
135
|
+
throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`);
|
|
136
|
+
}
|
|
137
|
+
const result = [];
|
|
138
|
+
const errors = [];
|
|
139
|
+
const iterator = iterable[Symbol.iterator]();
|
|
140
|
+
let isRejected = false;
|
|
141
|
+
let isIterableDone = false;
|
|
142
|
+
let resolvingCount = 0;
|
|
143
|
+
let currentIndex = 0;
|
|
144
|
+
const next = () => {
|
|
145
|
+
if (isRejected) {
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
const nextItem = iterator.next();
|
|
149
|
+
const index = currentIndex;
|
|
150
|
+
currentIndex++;
|
|
151
|
+
if (nextItem.done) {
|
|
152
|
+
isIterableDone = true;
|
|
153
|
+
if (resolvingCount === 0) {
|
|
154
|
+
if (!stopOnError && errors.length !== 0) {
|
|
155
|
+
reject(new AggregateError(errors));
|
|
156
|
+
} else {
|
|
157
|
+
resolve(result);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
resolvingCount++;
|
|
163
|
+
(async () => {
|
|
164
|
+
try {
|
|
165
|
+
const element = await nextItem.value;
|
|
166
|
+
result[index] = await mapper(element, index);
|
|
167
|
+
resolvingCount--;
|
|
168
|
+
next();
|
|
169
|
+
} catch (error) {
|
|
170
|
+
if (stopOnError) {
|
|
171
|
+
isRejected = true;
|
|
172
|
+
reject(error);
|
|
173
|
+
} else {
|
|
174
|
+
errors.push(error);
|
|
175
|
+
resolvingCount--;
|
|
176
|
+
next();
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
})();
|
|
180
|
+
};
|
|
181
|
+
for (let i = 0; i < concurrency; i++) {
|
|
182
|
+
next();
|
|
183
|
+
if (isIterableDone) {
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
});
|