@prisma/config 6.8.0-dev.5 → 6.8.0-dev.51
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.d.ts +1 -1
- package/dist/index.js +8 -9
- package/package.json +6 -7
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ declare interface AdapterInfo {
|
|
|
12
12
|
* Query arguments marked with this type are sanitized before being sent to the database.
|
|
13
13
|
* Notice while a query argument may be `null`, `ArgType` is guaranteed to be defined.
|
|
14
14
|
*/
|
|
15
|
-
declare type ArgType = 'Int32' | 'Int64' | 'Float' | 'Double' | 'Text' | 'Enum' | 'EnumArray' | 'Bytes' | 'Boolean' | 'Char' | 'Array' | 'Numeric' | 'Json' | 'Xml' | 'Uuid' | 'DateTime' | 'Date' | 'Time';
|
|
15
|
+
declare type ArgType = 'Int32' | 'Int64' | 'Float' | 'Double' | 'Text' | 'Enum' | 'EnumArray' | 'Bytes' | 'Boolean' | 'Char' | 'Array' | 'Numeric' | 'Json' | 'Xml' | 'Uuid' | 'DateTime' | 'Date' | 'Time' | 'Unknown';
|
|
16
16
|
|
|
17
17
|
declare type ColumnType = (typeof ColumnTypeEnum)[keyof typeof ColumnTypeEnum];
|
|
18
18
|
|
package/dist/index.js
CHANGED
|
@@ -22522,7 +22522,7 @@ function defineMigrateConfig(config2, configInput) {
|
|
|
22522
22522
|
var debug3 = Debug("prisma:config:PrismaConfig");
|
|
22523
22523
|
var sqlMigrationAwareDriverAdapterFactoryShape = () => Schema_exports.declare(
|
|
22524
22524
|
(input) => {
|
|
22525
|
-
return input
|
|
22525
|
+
return typeof input === "function";
|
|
22526
22526
|
},
|
|
22527
22527
|
{
|
|
22528
22528
|
identifier: "SqlMigrationAwareDriverAdapterFactory<Env>",
|
|
@@ -22532,7 +22532,7 @@ var sqlMigrationAwareDriverAdapterFactoryShape = () => Schema_exports.declare(
|
|
|
22532
22532
|
);
|
|
22533
22533
|
var errorCapturingSqlMigrationAwareDriverAdapterFactoryShape = () => Schema_exports.declare(
|
|
22534
22534
|
(input) => {
|
|
22535
|
-
return input
|
|
22535
|
+
return typeof input === "function";
|
|
22536
22536
|
},
|
|
22537
22537
|
{
|
|
22538
22538
|
identifier: "ErrorCapturingSqlMigrationAwareDriverAdapterFactory<Env>",
|
|
@@ -22655,6 +22655,7 @@ function defaultTestConfig() {
|
|
|
22655
22655
|
var import_node_fs = __toESM(require("node:fs"));
|
|
22656
22656
|
var import_node_path = __toESM(require("node:path"));
|
|
22657
22657
|
var import_node_process = __toESM(require("node:process"));
|
|
22658
|
+
var import_jiti = require("jiti");
|
|
22658
22659
|
var debug4 = Debug("prisma:config:loadConfigFromFile");
|
|
22659
22660
|
async function loadConfigFromFile({
|
|
22660
22661
|
configFile,
|
|
@@ -22721,20 +22722,18 @@ async function loadConfigFromFile({
|
|
|
22721
22722
|
}
|
|
22722
22723
|
async function requireTypeScriptFile(resolvedPath) {
|
|
22723
22724
|
try {
|
|
22724
|
-
const
|
|
22725
|
-
|
|
22726
|
-
|
|
22727
|
-
loader: "ts"
|
|
22725
|
+
const jiti = (0, import_jiti.createJiti)(__filename, {
|
|
22726
|
+
interopDefault: true,
|
|
22727
|
+
moduleCache: false
|
|
22728
22728
|
});
|
|
22729
|
-
const configExport =
|
|
22730
|
-
unregister();
|
|
22729
|
+
const configExport = await jiti.import(resolvedPath);
|
|
22731
22730
|
return {
|
|
22732
22731
|
required: configExport,
|
|
22733
22732
|
error: null
|
|
22734
22733
|
};
|
|
22735
22734
|
} catch (e) {
|
|
22736
22735
|
const error = e;
|
|
22737
|
-
debug4("
|
|
22736
|
+
debug4("jiti import failed: %s", error.message);
|
|
22738
22737
|
return {
|
|
22739
22738
|
error: {
|
|
22740
22739
|
_tag: "TypeScriptImportFailed",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/config",
|
|
3
|
-
"version": "6.8.0-dev.
|
|
3
|
+
"version": "6.8.0-dev.51",
|
|
4
4
|
"description": "Internal package used to define and read Prisma configuration files",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -12,18 +12,17 @@
|
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"author": "Alberto Schiabel <schiabel@prisma.io>",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"
|
|
16
|
-
"esbuild-register": "3.6.0"
|
|
15
|
+
"jiti": "2.4.2"
|
|
17
16
|
},
|
|
18
17
|
"devDependencies": {
|
|
19
18
|
"@swc/core": "1.11.5",
|
|
20
19
|
"@swc/jest": "0.2.37",
|
|
21
20
|
"effect": "3.12.10",
|
|
22
|
-
"esbuild-register": "3.6.0",
|
|
23
21
|
"jest": "29.7.0",
|
|
24
22
|
"jest-junit": "16.0.0",
|
|
25
|
-
"
|
|
26
|
-
"@prisma/driver-adapter-utils": "6.8.0-dev.
|
|
23
|
+
"cross-env": "7.0.3",
|
|
24
|
+
"@prisma/driver-adapter-utils": "6.8.0-dev.51",
|
|
25
|
+
"@prisma/get-platform": "6.8.0-dev.51"
|
|
27
26
|
},
|
|
28
27
|
"files": [
|
|
29
28
|
"dist"
|
|
@@ -32,6 +31,6 @@
|
|
|
32
31
|
"scripts": {
|
|
33
32
|
"dev": "DEV=true tsx helpers/build.ts",
|
|
34
33
|
"build": "tsx helpers/build.ts",
|
|
35
|
-
"test": "jest"
|
|
34
|
+
"test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest"
|
|
36
35
|
}
|
|
37
36
|
}
|