trucoshi 2.3.1 → 2.4.0
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/types.d.ts +1 -1
- package/package.json +8 -5
- package/prisma/client/index-browser.d.ts +184 -0
- package/prisma/client/index-browser.js +203 -0
- package/prisma/client/index.d.ts +8237 -0
- package/prisma/client/index.js +247 -0
- package/prisma/client/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
- package/prisma/client/package.json +6 -0
- package/prisma/client/runtime/index-browser.d.ts +322 -0
- package/prisma/client/runtime/index-browser.js +2410 -0
- package/prisma/client/runtime/index.d.ts +2716 -0
- package/prisma/client/runtime/library.d.ts +1 -0
- package/prisma/client/runtime/library.js +209 -0
- package/prisma/client/schema.prisma +89 -0
- package/prisma/migrations/20240109031536_init/migration.sql +82 -0
- package/prisma/migrations/20240109033400_truco_winner_optional/migration.sql +2 -0
- package/prisma/migrations/20240110222804_player_session/migration.sql +3 -0
- package/prisma/migrations/20240110222816_remove_default/migration.sql +2 -0
- package/prisma/migrations/20240111032135_match_session_id/migration.sql +2 -0
- package/prisma/migrations/20240111032250_remove_match_session_id/migration.sql +8 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/schema.prisma +89 -0
package/dist/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { User } from "lightning-accounts";
|
|
|
2
2
|
import { CARDS, IHand } from "./lib";
|
|
3
3
|
import { IUserData } from "./server";
|
|
4
4
|
import { SocketError } from "./server/classes/SocketError";
|
|
5
|
-
import { Match,
|
|
5
|
+
import { Match, MatchPlayer, MatchHand, UserStats } from "@trucoshi/prisma";
|
|
6
6
|
export { CARDS, CARDS_HUMAN_READABLE, BURNT_CARD } from "./lib/constants";
|
|
7
7
|
export interface IMatchDetails extends Match {
|
|
8
8
|
players: Array<Pick<MatchPlayer, "id" | "accountId" | "teamIdx" | "name" | "idx">>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trucoshi",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Lightning Truco Server",
|
|
5
5
|
"main": "dist/types.js",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -12,14 +12,17 @@
|
|
|
12
12
|
"paths": {
|
|
13
13
|
"trucoshi": [
|
|
14
14
|
"./"
|
|
15
|
+
],
|
|
16
|
+
"@trucoshi/prisma": [
|
|
17
|
+
"./prisma/client"
|
|
15
18
|
]
|
|
16
19
|
},
|
|
17
20
|
"scripts": {
|
|
18
21
|
"start": "nodemon",
|
|
19
22
|
"start:e2e": "yarn build && dotenv -e .env.e2e -- node ./bin/trucoshi-server ",
|
|
20
23
|
"profiler": "yarn build && node --prof ./bin/trucoshi-server",
|
|
21
|
-
"build": "yarn run rimraf ./build && yarn run tsc --project . && yarn build:dist",
|
|
22
|
-
"build:dist": "yarn run rimraf ./dist && yarn run tsc --project ./tsconfig.dist.json",
|
|
24
|
+
"build": " yarn run rimraf ./build && yarn run tsc --project . && yarn build:dist",
|
|
25
|
+
"build:dist": "yarn run rimraf ./dist && yarn prisma generate --generator distClient && yarn run tsc --project ./tsconfig.dist.json",
|
|
23
26
|
"prepublishOnly": "yarn test && yarn build:dist",
|
|
24
27
|
"test": "dotenv -e .env.e2e -- yarn db:e2e:push --force-reset && dotenv -e .env.e2e -- ts-mocha --exit ./test/**/*.ts -t 50000",
|
|
25
28
|
"cli:autoplay": "yarn run ts-node src/cli/autoplay",
|
|
@@ -44,7 +47,6 @@
|
|
|
44
47
|
"ts-mocha": "^10.0.0"
|
|
45
48
|
},
|
|
46
49
|
"files": [
|
|
47
|
-
"node_modules/.prisma/client/*",
|
|
48
50
|
"dist/lib/index.js",
|
|
49
51
|
"dist/lib/index.d.ts",
|
|
50
52
|
"dist/lib/constants.js",
|
|
@@ -52,7 +54,8 @@
|
|
|
52
54
|
"dist/types.js",
|
|
53
55
|
"dist/types.d.ts",
|
|
54
56
|
"dist/server/constants.js",
|
|
55
|
-
"dist/server/constants.d.ts"
|
|
57
|
+
"dist/server/constants.d.ts",
|
|
58
|
+
"prisma/*"
|
|
56
59
|
],
|
|
57
60
|
"dependencies": {
|
|
58
61
|
"@prisma/client": "^4.14.1",
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
export const __esModule: boolean;
|
|
2
|
+
export namespace Prisma {
|
|
3
|
+
namespace JsonNullValueFilter {
|
|
4
|
+
import DbNull = Prisma.DbNull;
|
|
5
|
+
export { DbNull };
|
|
6
|
+
import JsonNull = Prisma.JsonNull;
|
|
7
|
+
export { JsonNull };
|
|
8
|
+
import AnyNull = Prisma.AnyNull;
|
|
9
|
+
export { AnyNull };
|
|
10
|
+
}
|
|
11
|
+
namespace JsonNullValueInput {
|
|
12
|
+
import JsonNull_1 = Prisma.JsonNull;
|
|
13
|
+
export { JsonNull_1 as JsonNull };
|
|
14
|
+
}
|
|
15
|
+
namespace MatchBetScalarFieldEnum {
|
|
16
|
+
let id: string;
|
|
17
|
+
let createdAt: string;
|
|
18
|
+
let updatedAt: string;
|
|
19
|
+
let matchId: string;
|
|
20
|
+
let satsPerPlayer: string;
|
|
21
|
+
let allPlayersPaid: string;
|
|
22
|
+
let winnerAwarded: string;
|
|
23
|
+
}
|
|
24
|
+
namespace MatchHandScalarFieldEnum {
|
|
25
|
+
let id_1: string;
|
|
26
|
+
export { id_1 as id };
|
|
27
|
+
let createdAt_1: string;
|
|
28
|
+
export { createdAt_1 as createdAt };
|
|
29
|
+
let updatedAt_1: string;
|
|
30
|
+
export { updatedAt_1 as updatedAt };
|
|
31
|
+
export let idx: string;
|
|
32
|
+
export let rounds: string;
|
|
33
|
+
export let results: string;
|
|
34
|
+
let matchId_1: string;
|
|
35
|
+
export { matchId_1 as matchId };
|
|
36
|
+
export let trucoWinnerIdx: string;
|
|
37
|
+
export let envidoWinnerIdx: string;
|
|
38
|
+
export let florWinnerIdx: string;
|
|
39
|
+
}
|
|
40
|
+
namespace MatchPlayerScalarFieldEnum {
|
|
41
|
+
let id_2: string;
|
|
42
|
+
export { id_2 as id };
|
|
43
|
+
let createdAt_2: string;
|
|
44
|
+
export { createdAt_2 as createdAt };
|
|
45
|
+
let updatedAt_2: string;
|
|
46
|
+
export { updatedAt_2 as updatedAt };
|
|
47
|
+
let idx_1: string;
|
|
48
|
+
export { idx_1 as idx };
|
|
49
|
+
export let name: string;
|
|
50
|
+
export let accountId: string;
|
|
51
|
+
export let session: string;
|
|
52
|
+
export let teamIdx: string;
|
|
53
|
+
export let satsPaid: string;
|
|
54
|
+
export let satsReceived: string;
|
|
55
|
+
export let payRequestId: string;
|
|
56
|
+
let matchId_2: string;
|
|
57
|
+
export { matchId_2 as matchId };
|
|
58
|
+
}
|
|
59
|
+
namespace MatchScalarFieldEnum {
|
|
60
|
+
let id_3: string;
|
|
61
|
+
export { id_3 as id };
|
|
62
|
+
let createdAt_3: string;
|
|
63
|
+
export { createdAt_3 as createdAt };
|
|
64
|
+
let updatedAt_3: string;
|
|
65
|
+
export { updatedAt_3 as updatedAt };
|
|
66
|
+
export let sessionId: string;
|
|
67
|
+
export let state: string;
|
|
68
|
+
export let ownerAccountId: string;
|
|
69
|
+
export let options: string;
|
|
70
|
+
let results_1: string;
|
|
71
|
+
export { results_1 as results };
|
|
72
|
+
export let winnerIdx: string;
|
|
73
|
+
}
|
|
74
|
+
namespace QueryMode {
|
|
75
|
+
let _default: string;
|
|
76
|
+
export { _default as default };
|
|
77
|
+
export let insensitive: string;
|
|
78
|
+
}
|
|
79
|
+
namespace SortOrder {
|
|
80
|
+
let asc: string;
|
|
81
|
+
let desc: string;
|
|
82
|
+
}
|
|
83
|
+
namespace TransactionIsolationLevel {
|
|
84
|
+
let ReadUncommitted: string;
|
|
85
|
+
let ReadCommitted: string;
|
|
86
|
+
let RepeatableRead: string;
|
|
87
|
+
let Serializable: string;
|
|
88
|
+
}
|
|
89
|
+
namespace UserStatsScalarFieldEnum {
|
|
90
|
+
let id_4: string;
|
|
91
|
+
export { id_4 as id };
|
|
92
|
+
let accountId_1: string;
|
|
93
|
+
export { accountId_1 as accountId };
|
|
94
|
+
export let win: string;
|
|
95
|
+
export let loss: string;
|
|
96
|
+
export let satsBet: string;
|
|
97
|
+
export let satsWon: string;
|
|
98
|
+
export let satsLost: string;
|
|
99
|
+
}
|
|
100
|
+
namespace ModelName {
|
|
101
|
+
let UserStats: string;
|
|
102
|
+
let Match: string;
|
|
103
|
+
let MatchBet: string;
|
|
104
|
+
let MatchHand: string;
|
|
105
|
+
let MatchPlayer: string;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
export namespace EMatchState {
|
|
109
|
+
let UNREADY: string;
|
|
110
|
+
let READY: string;
|
|
111
|
+
let STARTED: string;
|
|
112
|
+
let FINISHED: string;
|
|
113
|
+
}
|
|
114
|
+
export namespace Prisma {
|
|
115
|
+
export namespace prismaVersion {
|
|
116
|
+
let client: string;
|
|
117
|
+
let engine: string;
|
|
118
|
+
}
|
|
119
|
+
export function PrismaClientKnownRequestError(): never;
|
|
120
|
+
export function PrismaClientUnknownRequestError(): never;
|
|
121
|
+
export function PrismaClientRustPanicError(): never;
|
|
122
|
+
export function PrismaClientInitializationError(): never;
|
|
123
|
+
export function PrismaClientValidationError(): never;
|
|
124
|
+
export function NotFoundError(): never;
|
|
125
|
+
export { Decimal };
|
|
126
|
+
/**
|
|
127
|
+
* Re-export of sql-template-tag
|
|
128
|
+
*/
|
|
129
|
+
export function sql(): never;
|
|
130
|
+
export function empty(): never;
|
|
131
|
+
export function join(): never;
|
|
132
|
+
export function raw(): never;
|
|
133
|
+
export function validator(): (val: any) => any;
|
|
134
|
+
let DbNull_1: {
|
|
135
|
+
_getNamespace(): string;
|
|
136
|
+
_getName(): string;
|
|
137
|
+
toString(): string;
|
|
138
|
+
};
|
|
139
|
+
export { DbNull_1 as DbNull };
|
|
140
|
+
let JsonNull_2: {
|
|
141
|
+
_getNamespace(): string;
|
|
142
|
+
_getName(): string;
|
|
143
|
+
toString(): string;
|
|
144
|
+
};
|
|
145
|
+
export { JsonNull_2 as JsonNull };
|
|
146
|
+
let AnyNull_1: {
|
|
147
|
+
_getNamespace(): string;
|
|
148
|
+
_getName(): string;
|
|
149
|
+
toString(): string;
|
|
150
|
+
};
|
|
151
|
+
export { AnyNull_1 as AnyNull };
|
|
152
|
+
export namespace NullTypes {
|
|
153
|
+
let DbNull_2: {
|
|
154
|
+
new (arg?: symbol | undefined): {
|
|
155
|
+
_getNamespace(): string;
|
|
156
|
+
_getName(): string;
|
|
157
|
+
toString(): string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
export { DbNull_2 as DbNull };
|
|
161
|
+
let JsonNull_3: {
|
|
162
|
+
new (arg?: symbol | undefined): {
|
|
163
|
+
_getNamespace(): string;
|
|
164
|
+
_getName(): string;
|
|
165
|
+
toString(): string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
export { JsonNull_3 as JsonNull };
|
|
169
|
+
let AnyNull_2: {
|
|
170
|
+
new (arg?: symbol | undefined): {
|
|
171
|
+
_getNamespace(): string;
|
|
172
|
+
_getName(): string;
|
|
173
|
+
toString(): string;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
export { AnyNull_2 as AnyNull };
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Create the Client
|
|
181
|
+
*/
|
|
182
|
+
export class PrismaClient {
|
|
183
|
+
}
|
|
184
|
+
import { Decimal } from "./runtime/index-browser";
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
|
|
4
|
+
const {
|
|
5
|
+
Decimal,
|
|
6
|
+
objectEnumValues,
|
|
7
|
+
makeStrictEnum
|
|
8
|
+
} = require('./runtime/index-browser')
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const Prisma = {}
|
|
12
|
+
|
|
13
|
+
exports.Prisma = Prisma
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Prisma Client JS version: 4.14.1
|
|
17
|
+
* Query Engine version: d9a4c5988f480fa576d43970d5a23641aa77bc9c
|
|
18
|
+
*/
|
|
19
|
+
Prisma.prismaVersion = {
|
|
20
|
+
client: "4.14.1",
|
|
21
|
+
engine: "d9a4c5988f480fa576d43970d5a23641aa77bc9c"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
Prisma.PrismaClientKnownRequestError = () => {
|
|
25
|
+
throw new Error(`PrismaClientKnownRequestError is unable to be run in the browser.
|
|
26
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
27
|
+
)};
|
|
28
|
+
Prisma.PrismaClientUnknownRequestError = () => {
|
|
29
|
+
throw new Error(`PrismaClientUnknownRequestError is unable to be run in the browser.
|
|
30
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
31
|
+
)}
|
|
32
|
+
Prisma.PrismaClientRustPanicError = () => {
|
|
33
|
+
throw new Error(`PrismaClientRustPanicError is unable to be run in the browser.
|
|
34
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
35
|
+
)}
|
|
36
|
+
Prisma.PrismaClientInitializationError = () => {
|
|
37
|
+
throw new Error(`PrismaClientInitializationError is unable to be run in the browser.
|
|
38
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
39
|
+
)}
|
|
40
|
+
Prisma.PrismaClientValidationError = () => {
|
|
41
|
+
throw new Error(`PrismaClientValidationError is unable to be run in the browser.
|
|
42
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
43
|
+
)}
|
|
44
|
+
Prisma.NotFoundError = () => {
|
|
45
|
+
throw new Error(`NotFoundError is unable to be run in the browser.
|
|
46
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
47
|
+
)}
|
|
48
|
+
Prisma.Decimal = Decimal
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Re-export of sql-template-tag
|
|
52
|
+
*/
|
|
53
|
+
Prisma.sql = () => {
|
|
54
|
+
throw new Error(`sqltag is unable to be run in the browser.
|
|
55
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
56
|
+
)}
|
|
57
|
+
Prisma.empty = () => {
|
|
58
|
+
throw new Error(`empty is unable to be run in the browser.
|
|
59
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
60
|
+
)}
|
|
61
|
+
Prisma.join = () => {
|
|
62
|
+
throw new Error(`join is unable to be run in the browser.
|
|
63
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
64
|
+
)}
|
|
65
|
+
Prisma.raw = () => {
|
|
66
|
+
throw new Error(`raw is unable to be run in the browser.
|
|
67
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
68
|
+
)}
|
|
69
|
+
Prisma.validator = () => (val) => val
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Shorthand utilities for JSON filtering
|
|
74
|
+
*/
|
|
75
|
+
Prisma.DbNull = objectEnumValues.instances.DbNull
|
|
76
|
+
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
|
77
|
+
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
|
78
|
+
|
|
79
|
+
Prisma.NullTypes = {
|
|
80
|
+
DbNull: objectEnumValues.classes.DbNull,
|
|
81
|
+
JsonNull: objectEnumValues.classes.JsonNull,
|
|
82
|
+
AnyNull: objectEnumValues.classes.AnyNull
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Enums
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
exports.Prisma.JsonNullValueFilter = {
|
|
90
|
+
DbNull: Prisma.DbNull,
|
|
91
|
+
JsonNull: Prisma.JsonNull,
|
|
92
|
+
AnyNull: Prisma.AnyNull
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
exports.Prisma.JsonNullValueInput = {
|
|
96
|
+
JsonNull: Prisma.JsonNull
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
exports.Prisma.MatchBetScalarFieldEnum = {
|
|
100
|
+
id: 'id',
|
|
101
|
+
createdAt: 'createdAt',
|
|
102
|
+
updatedAt: 'updatedAt',
|
|
103
|
+
matchId: 'matchId',
|
|
104
|
+
satsPerPlayer: 'satsPerPlayer',
|
|
105
|
+
allPlayersPaid: 'allPlayersPaid',
|
|
106
|
+
winnerAwarded: 'winnerAwarded'
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
exports.Prisma.MatchHandScalarFieldEnum = {
|
|
110
|
+
id: 'id',
|
|
111
|
+
createdAt: 'createdAt',
|
|
112
|
+
updatedAt: 'updatedAt',
|
|
113
|
+
idx: 'idx',
|
|
114
|
+
rounds: 'rounds',
|
|
115
|
+
results: 'results',
|
|
116
|
+
matchId: 'matchId',
|
|
117
|
+
trucoWinnerIdx: 'trucoWinnerIdx',
|
|
118
|
+
envidoWinnerIdx: 'envidoWinnerIdx',
|
|
119
|
+
florWinnerIdx: 'florWinnerIdx'
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
exports.Prisma.MatchPlayerScalarFieldEnum = {
|
|
123
|
+
id: 'id',
|
|
124
|
+
createdAt: 'createdAt',
|
|
125
|
+
updatedAt: 'updatedAt',
|
|
126
|
+
idx: 'idx',
|
|
127
|
+
name: 'name',
|
|
128
|
+
accountId: 'accountId',
|
|
129
|
+
session: 'session',
|
|
130
|
+
teamIdx: 'teamIdx',
|
|
131
|
+
satsPaid: 'satsPaid',
|
|
132
|
+
satsReceived: 'satsReceived',
|
|
133
|
+
payRequestId: 'payRequestId',
|
|
134
|
+
matchId: 'matchId'
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
exports.Prisma.MatchScalarFieldEnum = {
|
|
138
|
+
id: 'id',
|
|
139
|
+
createdAt: 'createdAt',
|
|
140
|
+
updatedAt: 'updatedAt',
|
|
141
|
+
sessionId: 'sessionId',
|
|
142
|
+
state: 'state',
|
|
143
|
+
ownerAccountId: 'ownerAccountId',
|
|
144
|
+
options: 'options',
|
|
145
|
+
results: 'results',
|
|
146
|
+
winnerIdx: 'winnerIdx'
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
exports.Prisma.QueryMode = {
|
|
150
|
+
default: 'default',
|
|
151
|
+
insensitive: 'insensitive'
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
exports.Prisma.SortOrder = {
|
|
155
|
+
asc: 'asc',
|
|
156
|
+
desc: 'desc'
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
160
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
161
|
+
ReadCommitted: 'ReadCommitted',
|
|
162
|
+
RepeatableRead: 'RepeatableRead',
|
|
163
|
+
Serializable: 'Serializable'
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
exports.Prisma.UserStatsScalarFieldEnum = {
|
|
167
|
+
id: 'id',
|
|
168
|
+
accountId: 'accountId',
|
|
169
|
+
win: 'win',
|
|
170
|
+
loss: 'loss',
|
|
171
|
+
satsBet: 'satsBet',
|
|
172
|
+
satsWon: 'satsWon',
|
|
173
|
+
satsLost: 'satsLost'
|
|
174
|
+
};
|
|
175
|
+
exports.EMatchState = {
|
|
176
|
+
UNREADY: 'UNREADY',
|
|
177
|
+
READY: 'READY',
|
|
178
|
+
STARTED: 'STARTED',
|
|
179
|
+
FINISHED: 'FINISHED'
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
exports.Prisma.ModelName = {
|
|
183
|
+
UserStats: 'UserStats',
|
|
184
|
+
Match: 'Match',
|
|
185
|
+
MatchBet: 'MatchBet',
|
|
186
|
+
MatchHand: 'MatchHand',
|
|
187
|
+
MatchPlayer: 'MatchPlayer'
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Create the Client
|
|
192
|
+
*/
|
|
193
|
+
class PrismaClient {
|
|
194
|
+
constructor() {
|
|
195
|
+
throw new Error(
|
|
196
|
+
`PrismaClient is unable to be run in the browser.
|
|
197
|
+
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
|
|
198
|
+
)
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
exports.PrismaClient = PrismaClient
|
|
202
|
+
|
|
203
|
+
Object.assign(exports, Prisma)
|