@prisma/fetch-engine 6.3.0-integration-simpler-typeinfo-query.1 → 6.3.0-integration-studio-ux-refinements.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.
package/dist/index.js CHANGED
@@ -16,34 +16,34 @@ 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 dist_exports = {};
20
- __export(dist_exports, {
19
+ var index_exports = {};
20
+ __export(index_exports, {
21
21
  BinaryType: () => import_chunk_X37PZICB.BinaryType,
22
22
  allEngineEnvVarsSet: () => import_chunk_PXQVM7NP.allEngineEnvVarsSet,
23
23
  deprecatedEnvVarMap: () => import_chunk_PXQVM7NP.deprecatedEnvVarMap,
24
- download: () => import_chunk_43CHHWJS.download,
24
+ download: () => import_chunk_UE42BPIG.download,
25
25
  engineEnvVarMap: () => import_chunk_PXQVM7NP.engineEnvVarMap,
26
26
  getBinaryEnvVarPath: () => import_chunk_PXQVM7NP.getBinaryEnvVarPath,
27
- getBinaryName: () => import_chunk_43CHHWJS.getBinaryName,
28
- getCacheDir: () => import_chunk_FQ2BOR66.getCacheDir,
29
- getProxyAgent: () => import_chunk_KDPLGCY6.getProxyAgent,
30
- getVersion: () => import_chunk_43CHHWJS.getVersion,
31
- maybeCopyToTmp: () => import_chunk_43CHHWJS.maybeCopyToTmp,
32
- overwriteFile: () => import_chunk_FQ2BOR66.overwriteFile,
33
- plusX: () => import_chunk_43CHHWJS.plusX,
34
- vercelPkgPathRegex: () => import_chunk_43CHHWJS.vercelPkgPathRegex
27
+ getBinaryName: () => import_chunk_UE42BPIG.getBinaryName,
28
+ getCacheDir: () => import_chunk_G7EM4XDM.getCacheDir,
29
+ getProxyAgent: () => import_chunk_OFSFRIEP.getProxyAgent,
30
+ getVersion: () => import_chunk_UE42BPIG.getVersion,
31
+ maybeCopyToTmp: () => import_chunk_UE42BPIG.maybeCopyToTmp,
32
+ overwriteFile: () => import_chunk_G7EM4XDM.overwriteFile,
33
+ plusX: () => import_chunk_UE42BPIG.plusX,
34
+ vercelPkgPathRegex: () => import_chunk_UE42BPIG.vercelPkgPathRegex
35
35
  });
36
- module.exports = __toCommonJS(dist_exports);
37
- var import_chunk_43CHHWJS = require("./chunk-43CHHWJS.js");
36
+ module.exports = __toCommonJS(index_exports);
37
+ var import_chunk_UE42BPIG = require("./chunk-UE42BPIG.js");
38
38
  var import_chunk_4LX3XBNY = require("./chunk-4LX3XBNY.js");
39
39
  var import_chunk_MX3HXAU2 = require("./chunk-MX3HXAU2.js");
40
- var import_chunk_QSTZGX47 = require("./chunk-QSTZGX47.js");
41
- var import_chunk_QLWYUM7O = require("./chunk-QLWYUM7O.js");
42
- var import_chunk_VTJS2JJN = require("./chunk-VTJS2JJN.js");
43
- var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js");
44
- var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js");
40
+ var import_chunk_FKKOTNO6 = require("./chunk-FKKOTNO6.js");
41
+ var import_chunk_BBQM2DBF = require("./chunk-BBQM2DBF.js");
42
+ var import_chunk_TIRVZJHP = require("./chunk-TIRVZJHP.js");
43
+ var import_chunk_ZAFWMCVK = require("./chunk-ZAFWMCVK.js");
44
+ var import_chunk_G7EM4XDM = require("./chunk-G7EM4XDM.js");
45
45
  var import_chunk_PXQVM7NP = require("./chunk-PXQVM7NP.js");
46
46
  var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
47
47
  var import_chunk_CWGQAQ3T = require("./chunk-CWGQAQ3T.js");
48
- var import_chunk_KDPLGCY6 = require("./chunk-KDPLGCY6.js");
48
+ var import_chunk_OFSFRIEP = require("./chunk-OFSFRIEP.js");
49
49
  var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
@@ -16,12 +16,12 @@ 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 multipart_parser_47FFAP42_exports = {};
20
- __export(multipart_parser_47FFAP42_exports, {
19
+ var multipart_parser_ITART6UP_exports = {};
20
+ __export(multipart_parser_ITART6UP_exports, {
21
21
  toFormData: () => toFormData
22
22
  });
23
- module.exports = __toCommonJS(multipart_parser_47FFAP42_exports);
24
- var import_chunk_VTJS2JJN = require("./chunk-VTJS2JJN.js");
23
+ module.exports = __toCommonJS(multipart_parser_ITART6UP_exports);
24
+ var import_chunk_TIRVZJHP = require("./chunk-TIRVZJHP.js");
25
25
  var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
26
26
  var s = 0;
27
27
  var S = {
@@ -149,6 +149,7 @@ var MultipartParser = class {
149
149
  state = S.HEADER_FIELD;
150
150
  mark("onHeaderField");
151
151
  index = 0;
152
+ // falls through
152
153
  case S.HEADER_FIELD:
153
154
  if (c === CR) {
154
155
  clear("onHeaderField");
@@ -178,6 +179,7 @@ var MultipartParser = class {
178
179
  }
179
180
  mark("onHeaderValue");
180
181
  state = S.HEADER_VALUE;
182
+ // falls through
181
183
  case S.HEADER_VALUE:
182
184
  if (c === CR) {
183
185
  dataCallback("onHeaderValue", true);
@@ -201,6 +203,7 @@ var MultipartParser = class {
201
203
  case S.PART_DATA_START:
202
204
  state = S.PART_DATA;
203
205
  mark("onPartData");
206
+ // falls through
204
207
  case S.PART_DATA:
205
208
  previousIndex = index;
206
209
  if (index === 0) {
@@ -311,7 +314,7 @@ async function toFormData(Body, ct) {
311
314
  let contentType;
312
315
  let filename;
313
316
  const entryChunks = [];
314
- const formData = new import_chunk_VTJS2JJN.FormData();
317
+ const formData = new import_chunk_TIRVZJHP.FormData();
315
318
  const onPartData = (ui8a) => {
316
319
  entryValue += decoder.decode(ui8a, { stream: true });
317
320
  };
@@ -319,7 +322,7 @@ async function toFormData(Body, ct) {
319
322
  entryChunks.push(ui8a);
320
323
  };
321
324
  const appendFileToFormData = () => {
322
- const file = new import_chunk_VTJS2JJN.file_default(entryChunks, filename, { type: contentType });
325
+ const file = new import_chunk_TIRVZJHP.file_default(entryChunks, filename, { type: contentType });
323
326
  formData.append(entryName, file);
324
327
  };
325
328
  const appendEntryToFormData = () => {
package/dist/utils.js CHANGED
@@ -18,12 +18,12 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var utils_exports = {};
20
20
  __export(utils_exports, {
21
- getCacheDir: () => import_chunk_FQ2BOR66.getCacheDir,
22
- getDownloadUrl: () => import_chunk_FQ2BOR66.getDownloadUrl,
23
- getRootCacheDir: () => import_chunk_FQ2BOR66.getRootCacheDir,
24
- overwriteFile: () => import_chunk_FQ2BOR66.overwriteFile
21
+ getCacheDir: () => import_chunk_G7EM4XDM.getCacheDir,
22
+ getDownloadUrl: () => import_chunk_G7EM4XDM.getDownloadUrl,
23
+ getRootCacheDir: () => import_chunk_G7EM4XDM.getRootCacheDir,
24
+ overwriteFile: () => import_chunk_G7EM4XDM.overwriteFile
25
25
  });
26
26
  module.exports = __toCommonJS(utils_exports);
27
- var import_chunk_FQ2BOR66 = require("./chunk-FQ2BOR66.js");
27
+ var import_chunk_G7EM4XDM = require("./chunk-G7EM4XDM.js");
28
28
  var import_chunk_X37PZICB = require("./chunk-X37PZICB.js");
29
29
  var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/fetch-engine",
3
- "version": "6.3.0-integration-simpler-typeinfo-query.1",
3
+ "version": "6.3.0-integration-studio-ux-refinements.1",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,9 +15,9 @@
15
15
  "bugs": "https://github.com/prisma/prisma/issues",
16
16
  "enginesOverride": {},
17
17
  "devDependencies": {
18
- "@swc/core": "1.6.13",
19
- "@swc/jest": "0.2.36",
20
- "@types/jest": "29.5.12",
18
+ "@swc/core": "1.10.1",
19
+ "@swc/jest": "0.2.37",
20
+ "@types/jest": "29.5.14",
21
21
  "@types/node": "18.19.31",
22
22
  "@types/progress": "2.0.7",
23
23
  "del": "6.1.1",
@@ -42,9 +42,9 @@
42
42
  "typescript": "5.4.5"
43
43
  },
44
44
  "dependencies": {
45
- "@prisma/engines-version": "6.3.0-6.integration-5-22-0-with-simplified-typeinfo-c7d99d9db5129d8b35986b8518c7f10bc8580e03",
46
- "@prisma/debug": "6.3.0-integration-simpler-typeinfo-query.1",
47
- "@prisma/get-platform": "6.3.0-integration-simpler-typeinfo-query.1"
45
+ "@prisma/engines-version": "6.3.0-13.1635fdddbcd54b9f4b16ffcd9eb726b58d5408da",
46
+ "@prisma/debug": "6.3.0-integration-studio-ux-refinements.1",
47
+ "@prisma/get-platform": "6.3.0-integration-studio-ux-refinements.1"
48
48
  },
49
49
  "files": [
50
50
  "README.md",
@@ -1,70 +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_74KKSUUB_exports = {};
30
- __export(chunk_74KKSUUB_exports, {
31
- cleanupCache: () => cleanupCache
32
- });
33
- module.exports = __toCommonJS(chunk_74KKSUUB_exports);
34
- var import_chunk_RGVHWUUH = require("./chunk-RGVHWUUH.js");
35
- var import_chunk_BBSR4B7O = require("./chunk-BBSR4B7O.js");
36
- var import_chunk_AH6QHEOA = require("./chunk-AH6QHEOA.js");
37
- var import_debug = __toESM(require("@prisma/debug"));
38
- var import_fs = __toESM(require("fs"));
39
- var import_path = __toESM(require("path"));
40
- var import_util = require("util");
41
- var import_p_map = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_RGVHWUUH.require_p_map)());
42
- var import_rimraf = (0, import_chunk_AH6QHEOA.__toESM)((0, import_chunk_RGVHWUUH.require_rimraf)());
43
- var debug = (0, import_debug.default)("cleanupCache");
44
- var del = (0, import_util.promisify)(import_rimraf.default);
45
- async function cleanupCache(n = 5) {
46
- try {
47
- const rootCacheDir = await (0, import_chunk_BBSR4B7O.getRootCacheDir)();
48
- if (!rootCacheDir) {
49
- debug("no rootCacheDir found");
50
- return;
51
- }
52
- const channel = "master";
53
- const cacheDir = import_path.default.join(rootCacheDir, channel);
54
- const dirs = await import_fs.default.promises.readdir(cacheDir);
55
- const dirsWithMeta = await Promise.all(
56
- dirs.map(async (dirName) => {
57
- const dir = import_path.default.join(cacheDir, dirName);
58
- const statResult = await import_fs.default.promises.stat(dir);
59
- return {
60
- dir,
61
- created: statResult.birthtime
62
- };
63
- })
64
- );
65
- dirsWithMeta.sort((a, b) => a.created < b.created ? 1 : -1);
66
- const dirsToRemove = dirsWithMeta.slice(n);
67
- await (0, import_p_map.default)(dirsToRemove, (dir) => del(dir.dir), { concurrency: 20 });
68
- } catch (e) {
69
- }
70
- }