prisma 6.5.0-integration-fix-use-webcrypto.3 → 6.5.0-integration-fix-use-webcrypto.4
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/build/index.js +353 -353
- package/package.json +12 -12
- package/prisma-client/generator-build/index.js +8 -6
- package/prisma-client/package.json +1 -1
- package/prisma-client/runtime/binary.js +2 -2
- package/prisma-client/runtime/client.js +2 -2
- package/prisma-client/runtime/edge-esm.js +2 -2
- package/prisma-client/runtime/edge.js +2 -2
- package/prisma-client/runtime/library.js +2 -2
- package/prisma-client/runtime/react-native.js +2 -2
- package/prisma-client/scripts/default-index.js +1 -1
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "6.5.0-integration-fix-use-webcrypto.
|
2
|
+
"version": "6.5.0-integration-fix-use-webcrypto.4",
|
3
3
|
"name": "prisma",
|
4
4
|
"description": "Prisma is an open-source database toolkit. It includes a JavaScript/TypeScript ORM for Node.js, migrations and a modern GUI to view and edit the data in your database. You can use Prisma in new projects or add it to an existing one.",
|
5
5
|
"keywords": [
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"node": ">=18.18"
|
42
42
|
},
|
43
43
|
"prisma": {
|
44
|
-
"prismaCommit": "
|
44
|
+
"prismaCommit": "916a8c6b5cce854fb836bd37ea5987b7f61b9672"
|
45
45
|
},
|
46
46
|
"files": [
|
47
47
|
"README.md",
|
@@ -112,20 +112,20 @@
|
|
112
112
|
"typescript": "5.4.5",
|
113
113
|
"xdg-app-paths": "8.3.0",
|
114
114
|
"zx": "7.2.3",
|
115
|
-
"@prisma/adapter-libsql": "6.5.0-integration-fix-use-webcrypto.
|
116
|
-
"@prisma/
|
117
|
-
"@prisma/
|
118
|
-
"@prisma/
|
119
|
-
"@prisma/
|
120
|
-
"@prisma/generator-helper": "6.5.0-integration-fix-use-webcrypto.
|
121
|
-
"@prisma/
|
122
|
-
"@prisma/
|
123
|
-
"@prisma/
|
115
|
+
"@prisma/adapter-libsql": "6.5.0-integration-fix-use-webcrypto.4",
|
116
|
+
"@prisma/config": "6.5.0-integration-fix-use-webcrypto.4",
|
117
|
+
"@prisma/debug": "6.5.0-integration-fix-use-webcrypto.4",
|
118
|
+
"@prisma/fetch-engine": "6.5.0-integration-fix-use-webcrypto.4",
|
119
|
+
"@prisma/client": "6.5.0-integration-fix-use-webcrypto.4",
|
120
|
+
"@prisma/generator-helper": "6.5.0-integration-fix-use-webcrypto.4",
|
121
|
+
"@prisma/get-platform": "6.5.0-integration-fix-use-webcrypto.4",
|
122
|
+
"@prisma/internals": "6.5.0-integration-fix-use-webcrypto.4",
|
123
|
+
"@prisma/migrate": "6.5.0-integration-fix-use-webcrypto.4"
|
124
124
|
},
|
125
125
|
"dependencies": {
|
126
126
|
"esbuild": ">=0.12 <1",
|
127
127
|
"esbuild-register": "3.6.0",
|
128
|
-
"@prisma/engines": "6.5.0-integration-fix-use-webcrypto.
|
128
|
+
"@prisma/engines": "6.5.0-integration-fix-use-webcrypto.4"
|
129
129
|
},
|
130
130
|
"optionalDependencies": {
|
131
131
|
"fsevents": "2.3.3"
|
@@ -3058,7 +3058,7 @@ var require_package2 = __commonJS({
|
|
3058
3058
|
"package.json"(exports2, module2) {
|
3059
3059
|
module2.exports = {
|
3060
3060
|
name: "@prisma/client",
|
3061
|
-
version: "6.5.0-integration-fix-use-webcrypto.
|
3061
|
+
version: "6.5.0-integration-fix-use-webcrypto.4",
|
3062
3062
|
description: "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
|
3063
3063
|
keywords: [
|
3064
3064
|
"ORM",
|
@@ -4606,6 +4606,7 @@ function getMappings(mappings, datamodel) {
|
|
4606
4606
|
}
|
4607
4607
|
|
4608
4608
|
// src/generation/generateClient.ts
|
4609
|
+
var import_crypto2 = require("crypto");
|
4609
4610
|
var import_env_paths = __toESM(require_env_paths());
|
4610
4611
|
var import_fs2 = require("fs");
|
4611
4612
|
var import_promises = __toESM(require("fs/promises"));
|
@@ -7407,6 +7408,7 @@ function fluentWrapperName(modelName) {
|
|
7407
7408
|
|
7408
7409
|
// src/generation/TSClient/TSClient.ts
|
7409
7410
|
var import_ci_info = __toESM(require_ci_info());
|
7411
|
+
var import_crypto = __toESM(require("crypto"));
|
7410
7412
|
var import_indent_string8 = __toESM(require_indent_string());
|
7411
7413
|
var import_path4 = __toESM(require("path"));
|
7412
7414
|
|
@@ -9150,7 +9152,7 @@ var TSClient = class {
|
|
9150
9152
|
const clientEngineType = getClientEngineType(generator);
|
9151
9153
|
generator.config.engineType = clientEngineType;
|
9152
9154
|
const binaryTargets = clientEngineType === "library" /* Library */ ? Object.keys(binaryPaths.libqueryEngine ?? {}) : Object.keys(binaryPaths.queryEngine ?? {});
|
9153
|
-
const inlineSchemaHash =
|
9155
|
+
const inlineSchemaHash = import_crypto.default.createHash("sha256").update(Buffer.from(inlineSchema, "utf8").toString("base64")).digest("hex");
|
9154
9156
|
const datasourceFilePath = datasources[0].sourceFilePath;
|
9155
9157
|
const config = {
|
9156
9158
|
generator,
|
@@ -9299,7 +9301,7 @@ ${modelAndTypes.map((model) => model.toTS()).join("\n")}
|
|
9299
9301
|
${prismaEnums?.join("\n\n")}
|
9300
9302
|
${fieldRefs.length > 0 ? `
|
9301
9303
|
/**
|
9302
|
-
* Field references
|
9304
|
+
* Field references
|
9303
9305
|
*/
|
9304
9306
|
|
9305
9307
|
${fieldRefs.join("\n\n")}` : ""}
|
@@ -9313,7 +9315,7 @@ ${this.dmmf.inputObjectTypes.prisma?.reduce((acc, inputType) => {
|
|
9313
9315
|
const innerName = needsGeneric ? `${inputType.name}Base<$PrismaModel>` : `${inputType.name}Base`;
|
9314
9316
|
const typeName = needsGeneric ? `${inputType.name}<$PrismaModel = never>` : inputType.name;
|
9315
9317
|
const baseName = `Required<${innerName}>`;
|
9316
|
-
acc.push(`export type ${typeName} =
|
9318
|
+
acc.push(`export type ${typeName} =
|
9317
9319
|
| PatchUndefined<
|
9318
9320
|
Either<${baseName}, Exclude<keyof ${baseName}, 'path'>>,
|
9319
9321
|
${baseName}
|
@@ -9383,7 +9385,7 @@ class PrismaClient {
|
|
9383
9385
|
} else {
|
9384
9386
|
message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in \`' + runtime.prettyName + '\`).'
|
9385
9387
|
}
|
9386
|
-
|
9388
|
+
|
9387
9389
|
message += \`
|
9388
9390
|
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report\`
|
9389
9391
|
|
@@ -10242,7 +10244,7 @@ async function deleteOutputDir(outputDir) {
|
|
10242
10244
|
}
|
10243
10245
|
}
|
10244
10246
|
function getUniquePackageName(datamodel) {
|
10245
|
-
const hash =
|
10247
|
+
const hash = (0, import_crypto2.createHash)("sha256");
|
10246
10248
|
hash.write(datamodel);
|
10247
10249
|
return `${GENERATED_PACKAGE_NAME_PREFIX}${hash.digest().toString("hex")}`;
|
10248
10250
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prisma/client",
|
3
|
-
"version": "6.5.0-integration-fix-use-webcrypto.
|
3
|
+
"version": "6.5.0-integration-fix-use-webcrypto.4",
|
4
4
|
"description": "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
|
5
5
|
"keywords": [
|
6
6
|
"ORM",
|