@machynx/data-db 1.0.0 → 1.0.1
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/index.d.ts +10 -1
- package/index.js +11 -4
- package/package.json +5 -1
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @machynx/
|
|
1
|
+
// @machynx/data-db/index.d.ts
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* THIS FILE IS ZERO-MAINTENANCE.
|
|
@@ -16,3 +16,12 @@ export { PrismaClient } from "./client";
|
|
|
16
16
|
|
|
17
17
|
// Re-export the global Prisma namespace (for inputs like TaskCreateInput).
|
|
18
18
|
export type { Prisma } from "./client";
|
|
19
|
+
|
|
20
|
+
// Re-export Prisma runtime error classes for convenient import
|
|
21
|
+
export {
|
|
22
|
+
PrismaClientKnownRequestError,
|
|
23
|
+
PrismaClientValidationError,
|
|
24
|
+
PrismaClientInitializationError,
|
|
25
|
+
PrismaClientRustPanicError,
|
|
26
|
+
PrismaClientUnknownRequestError,
|
|
27
|
+
} from "./client/runtime/client";
|
package/index.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
// @machynx/
|
|
1
|
+
// @machynx/data-db/index.js
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports =
|
|
3
|
+
const client = require("./client");
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
...client,
|
|
7
|
+
PrismaClientKnownRequestError: client.PrismaClientKnownRequestError,
|
|
8
|
+
PrismaClientValidationError: client.PrismaClientValidationError,
|
|
9
|
+
PrismaClientInitializationError: client.PrismaClientInitializationError,
|
|
10
|
+
PrismaClientRustPanicError: client.PrismaClientRustPanicError,
|
|
11
|
+
PrismaClientUnknownRequestError: client.PrismaClientUnknownRequestError,
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@machynx/data-db",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Machynx Data Plane Database - Shared Prisma schema & client",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
".": {
|
|
9
9
|
"import": "./index.js",
|
|
10
10
|
"require": "./index.js"
|
|
11
|
+
},
|
|
12
|
+
"./client/runtime/client": {
|
|
13
|
+
"import": "./client/runtime/client.js",
|
|
14
|
+
"require": "./client/runtime/client.js"
|
|
11
15
|
}
|
|
12
16
|
},
|
|
13
17
|
"scripts": {
|