@prisma/client-engine-runtime 7.2.0-dev.3 → 7.2.0-dev.5
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.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/dist/interpreter/data-mapper.d.ts +5 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -47,8 +47,11 @@ export declare type CompactedBatchResponse = {
|
|
|
47
47
|
*/
|
|
48
48
|
export declare function convertCompactedRows(rows: {}[], compiledBatch: CompactedBatchResponse): unknown[];
|
|
49
49
|
|
|
50
|
-
export declare class DataMapperError extends
|
|
50
|
+
export declare class DataMapperError extends UserFacingError {
|
|
51
51
|
name: string;
|
|
52
|
+
constructor(message: string, options?: {
|
|
53
|
+
cause?: unknown;
|
|
54
|
+
});
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
export declare type DataRule = {
|
package/dist/index.d.ts
CHANGED
|
@@ -47,8 +47,11 @@ export declare type CompactedBatchResponse = {
|
|
|
47
47
|
*/
|
|
48
48
|
export declare function convertCompactedRows(rows: {}[], compiledBatch: CompactedBatchResponse): unknown[];
|
|
49
49
|
|
|
50
|
-
export declare class DataMapperError extends
|
|
50
|
+
export declare class DataMapperError extends UserFacingError {
|
|
51
51
|
name: string;
|
|
52
|
+
constructor(message: string, options?: {
|
|
53
|
+
cause?: unknown;
|
|
54
|
+
});
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
export declare type DataRule = {
|
package/dist/index.js
CHANGED
|
@@ -445,8 +445,11 @@ function convertCompactedRows(rows, compiledBatch) {
|
|
|
445
445
|
|
|
446
446
|
// src/interpreter/data-mapper.ts
|
|
447
447
|
var import_client_runtime_utils3 = require("@prisma/client-runtime-utils");
|
|
448
|
-
var DataMapperError = class extends
|
|
448
|
+
var DataMapperError = class extends UserFacingError {
|
|
449
449
|
name = "DataMapperError";
|
|
450
|
+
constructor(message, options) {
|
|
451
|
+
super(message, "P2023", options);
|
|
452
|
+
}
|
|
450
453
|
};
|
|
451
454
|
function applyDataMap(data, structure, enums) {
|
|
452
455
|
switch (structure.type) {
|
package/dist/index.mjs
CHANGED
|
@@ -394,8 +394,11 @@ function convertCompactedRows(rows, compiledBatch) {
|
|
|
394
394
|
|
|
395
395
|
// src/interpreter/data-mapper.ts
|
|
396
396
|
import { Decimal as Decimal3 } from "@prisma/client-runtime-utils";
|
|
397
|
-
var DataMapperError = class extends
|
|
397
|
+
var DataMapperError = class extends UserFacingError {
|
|
398
398
|
name = "DataMapperError";
|
|
399
|
+
constructor(message, options) {
|
|
400
|
+
super(message, "P2023", options);
|
|
401
|
+
}
|
|
399
402
|
};
|
|
400
403
|
function applyDataMap(data, structure, enums) {
|
|
401
404
|
switch (structure.type) {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ResultNode } from '../query-plan';
|
|
2
|
+
import { UserFacingError } from '../user-facing-error';
|
|
2
3
|
import { Value } from './scope';
|
|
3
|
-
export declare class DataMapperError extends
|
|
4
|
+
export declare class DataMapperError extends UserFacingError {
|
|
4
5
|
name: string;
|
|
6
|
+
constructor(message: string, options?: {
|
|
7
|
+
cause?: unknown;
|
|
8
|
+
});
|
|
5
9
|
}
|
|
6
10
|
export declare function applyDataMap(data: Value, structure: ResultNode, enums: Record<string, Record<string, string>>): Value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-engine-runtime",
|
|
3
|
-
"version": "7.2.0-dev.
|
|
3
|
+
"version": "7.2.0-dev.5",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"nanoid": "5.1.5",
|
|
31
31
|
"ulid": "3.0.0",
|
|
32
32
|
"uuid": "11.1.0",
|
|
33
|
-
"@prisma/
|
|
34
|
-
"@prisma/
|
|
35
|
-
"@prisma/
|
|
36
|
-
"@prisma/sqlcommenter": "7.2.0-dev.
|
|
33
|
+
"@prisma/client-runtime-utils": "7.2.0-dev.5",
|
|
34
|
+
"@prisma/driver-adapter-utils": "7.2.0-dev.5",
|
|
35
|
+
"@prisma/debug": "7.2.0-dev.5",
|
|
36
|
+
"@prisma/sqlcommenter": "7.2.0-dev.5"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/jest": "29.5.14",
|