@prisma/get-platform 7.6.0-dev.16 → 7.6.0-dev.17

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.
@@ -26,19 +26,20 @@ 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 chunk_GGL63BNP_exports = {};
30
- __export(chunk_GGL63BNP_exports, {
29
+ var chunk_YZ6MGXMO_exports = {};
30
+ __export(chunk_YZ6MGXMO_exports, {
31
31
  jestConsoleContext: () => jestConsoleContext,
32
32
  jestContext: () => jestContext,
33
33
  jestStdoutContext: () => jestStdoutContext,
34
34
  processExitContext: () => processExitContext
35
35
  });
36
- module.exports = __toCommonJS(chunk_GGL63BNP_exports);
36
+ module.exports = __toCommonJS(chunk_YZ6MGXMO_exports);
37
37
  var import_chunk_3UEKS5W6 = require("./chunk-3UEKS5W6.js");
38
38
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
39
39
  var import_node_path = __toESM(require("node:path"));
40
40
  var import_fs_jetpack = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_3UEKS5W6.require_main)());
41
41
  var import_tempy = (0, import_chunk_2ESYSVXG.__toESM)((0, import_chunk_3UEKS5W6.require_tempy)());
42
+ var test = typeof jest !== "undefined" ? jest : globalThis.vi;
42
43
  var jestContext = {
43
44
  new: function(ctx = {}) {
44
45
  const c = ctx;
@@ -113,13 +114,13 @@ function factory(ctx) {
113
114
  var jestConsoleContext = () => (c) => {
114
115
  const ctx = c;
115
116
  beforeEach(() => {
116
- ctx.mocked["console.error"] = jest.spyOn(console, "error").mockImplementation(() => {
117
+ ctx.mocked["console.error"] = test.spyOn(console, "error").mockImplementation(() => {
117
118
  });
118
- ctx.mocked["console.log"] = jest.spyOn(console, "log").mockImplementation(() => {
119
+ ctx.mocked["console.log"] = test.spyOn(console, "log").mockImplementation(() => {
119
120
  });
120
- ctx.mocked["console.info"] = jest.spyOn(console, "info").mockImplementation(() => {
121
+ ctx.mocked["console.info"] = test.spyOn(console, "info").mockImplementation(() => {
121
122
  });
122
- ctx.mocked["console.warn"] = jest.spyOn(console, "warn").mockImplementation(() => {
123
+ ctx.mocked["console.warn"] = test.spyOn(console, "warn").mockImplementation(() => {
123
124
  });
124
125
  });
125
126
  afterEach(() => {
@@ -139,8 +140,8 @@ var jestStdoutContext = ({ normalizationRules } = { normalizationRules: [] }) =>
139
140
  return text;
140
141
  };
141
142
  beforeEach(() => {
142
- ctx.mocked["process.stderr.write"] = jest.spyOn(process.stderr, "write").mockImplementation(() => true);
143
- ctx.mocked["process.stdout.write"] = jest.spyOn(process.stdout, "write").mockImplementation(() => true);
143
+ ctx.mocked["process.stderr.write"] = test.spyOn(process.stderr, "write").mockImplementation(() => true);
144
+ ctx.mocked["process.stdout.write"] = test.spyOn(process.stdout, "write").mockImplementation(() => true);
144
145
  ctx.normalizedCapturedStdout = () => normalize(ctx.mocked["process.stdout.write"].mock.calls.join(""), normalizationRules);
145
146
  ctx.normalizedCapturedStderr = () => normalize(ctx.mocked["process.stderr.write"].mock.calls.join(""), normalizationRules);
146
147
  ctx.clearCapturedStdout = () => ctx.mocked["process.stdout.write"].mockClear();
@@ -155,7 +156,7 @@ var jestStdoutContext = ({ normalizationRules } = { normalizationRules: [] }) =>
155
156
  var processExitContext = () => (c) => {
156
157
  const ctx = c;
157
158
  beforeEach(() => {
158
- ctx.mocked["process.exit"] = jest.spyOn(process, "exit").mockImplementation((number) => {
159
+ ctx.mocked["process.exit"] = test.spyOn(process, "exit").mockImplementation((number) => {
159
160
  throw new Error("process.exit: " + number);
160
161
  });
161
162
  ctx.recordedExitCode = () => ctx.mocked["process.exit"].mock.calls[0]?.[0];
package/dist/index.js CHANGED
@@ -22,11 +22,11 @@ __export(index_exports, {
22
22
  getBinaryTargetForCurrentPlatform: () => import_chunk_7PMGXL6S.getBinaryTargetForCurrentPlatform,
23
23
  getPlatformInfo: () => import_chunk_7PMGXL6S.getPlatformInfo,
24
24
  getos: () => import_chunk_7PMGXL6S.getos,
25
- jestConsoleContext: () => import_chunk_GGL63BNP.jestConsoleContext,
26
- jestContext: () => import_chunk_GGL63BNP.jestContext,
27
- jestStdoutContext: () => import_chunk_GGL63BNP.jestStdoutContext,
25
+ jestConsoleContext: () => import_chunk_YZ6MGXMO.jestConsoleContext,
26
+ jestContext: () => import_chunk_YZ6MGXMO.jestContext,
27
+ jestStdoutContext: () => import_chunk_YZ6MGXMO.jestStdoutContext,
28
28
  link: () => import_chunk_M5T7GI2R.link,
29
- processExitContext: () => import_chunk_GGL63BNP.processExitContext
29
+ processExitContext: () => import_chunk_YZ6MGXMO.processExitContext
30
30
  });
31
31
  module.exports = __toCommonJS(index_exports);
32
32
  var import_chunk_7PMGXL6S = require("./chunk-7PMGXL6S.js");
@@ -35,7 +35,7 @@ var import_chunk_FWMN4WME = require("./chunk-FWMN4WME.js");
35
35
  var import_chunk_YVXCXD3A = require("./chunk-YVXCXD3A.js");
36
36
  var import_chunk_7MLUNQIZ = require("./chunk-7MLUNQIZ.js");
37
37
  var import_chunk_6HZWON4S = require("./chunk-6HZWON4S.js");
38
- var import_chunk_GGL63BNP = require("./chunk-GGL63BNP.js");
38
+ var import_chunk_YZ6MGXMO = require("./chunk-YZ6MGXMO.js");
39
39
  var import_chunk_3UEKS5W6 = require("./chunk-3UEKS5W6.js");
40
40
  var import_chunk_2ESYSVXG = require("./chunk-2ESYSVXG.js");
41
41
  (0, import_chunk_7MLUNQIZ.init_binaryTargets)();
@@ -18,13 +18,13 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var test_utils_exports = {};
20
20
  __export(test_utils_exports, {
21
- jestConsoleContext: () => import_chunk_GGL63BNP.jestConsoleContext,
22
- jestContext: () => import_chunk_GGL63BNP.jestContext,
23
- jestStdoutContext: () => import_chunk_GGL63BNP.jestStdoutContext,
24
- processExitContext: () => import_chunk_GGL63BNP.processExitContext
21
+ jestConsoleContext: () => import_chunk_YZ6MGXMO.jestConsoleContext,
22
+ jestContext: () => import_chunk_YZ6MGXMO.jestContext,
23
+ jestStdoutContext: () => import_chunk_YZ6MGXMO.jestStdoutContext,
24
+ processExitContext: () => import_chunk_YZ6MGXMO.processExitContext
25
25
  });
26
26
  module.exports = __toCommonJS(test_utils_exports);
27
27
  var import_chunk_6HZWON4S = require("../chunk-6HZWON4S.js");
28
- var import_chunk_GGL63BNP = require("../chunk-GGL63BNP.js");
28
+ var import_chunk_YZ6MGXMO = require("../chunk-YZ6MGXMO.js");
29
29
  var import_chunk_3UEKS5W6 = require("../chunk-3UEKS5W6.js");
30
30
  var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
@@ -18,12 +18,12 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var jestContext_exports = {};
20
20
  __export(jestContext_exports, {
21
- jestConsoleContext: () => import_chunk_GGL63BNP.jestConsoleContext,
22
- jestContext: () => import_chunk_GGL63BNP.jestContext,
23
- jestStdoutContext: () => import_chunk_GGL63BNP.jestStdoutContext,
24
- processExitContext: () => import_chunk_GGL63BNP.processExitContext
21
+ jestConsoleContext: () => import_chunk_YZ6MGXMO.jestConsoleContext,
22
+ jestContext: () => import_chunk_YZ6MGXMO.jestContext,
23
+ jestStdoutContext: () => import_chunk_YZ6MGXMO.jestStdoutContext,
24
+ processExitContext: () => import_chunk_YZ6MGXMO.processExitContext
25
25
  });
26
26
  module.exports = __toCommonJS(jestContext_exports);
27
- var import_chunk_GGL63BNP = require("../chunk-GGL63BNP.js");
27
+ var import_chunk_YZ6MGXMO = require("../chunk-YZ6MGXMO.js");
28
28
  var import_chunk_3UEKS5W6 = require("../chunk-3UEKS5W6.js");
29
29
  var import_chunk_2ESYSVXG = require("../chunk-2ESYSVXG.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/get-platform",
3
- "version": "7.6.0-dev.16",
3
+ "version": "7.6.0-dev.17",
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",
@@ -27,7 +27,7 @@
27
27
  "typescript": "5.4.5"
28
28
  },
29
29
  "dependencies": {
30
- "@prisma/debug": "7.6.0-dev.16"
30
+ "@prisma/debug": "7.6.0-dev.17"
31
31
  },
32
32
  "files": [
33
33
  "README.md",