@temporary-name/drizzle 0.0.1-alpha.5dc8b200530586870ac736830d4584e0333cfd05 → 0.0.1-alpha.6a735c9469d995338b7d51335ea70485e18a4dca
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.mjs +1 -2
- package/package.json +3 -2
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createSelectSchema, createUpdateSchema, createInsertSchema } from 'drizzle-zod';
|
|
2
2
|
|
|
3
3
|
const omitFromInput = {
|
|
4
4
|
createdAt: true,
|
|
5
5
|
updatedAt: true
|
|
6
6
|
};
|
|
7
7
|
function apiModel(table, refinements) {
|
|
8
|
-
createInsertSchema(table, refinements).omit(omitFromInput);
|
|
9
8
|
return {
|
|
10
9
|
// Explicit `as ZodOmit` type here is required to avoid a typescript bug that results in invalid types
|
|
11
10
|
// being emitted to the .d.ts file, which results in type errors in clients that use this function.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temporary-name/drizzle",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.1-alpha.
|
|
4
|
+
"version": "0.0.1-alpha.6a735c9469d995338b7d51335ea70485e18a4dca",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://www.stainless.com/",
|
|
7
7
|
"repository": {
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "unbuild",
|
|
38
38
|
"build:watch": "pnpm run build --watch",
|
|
39
|
-
"
|
|
39
|
+
"clean": "tsc -b --clean",
|
|
40
|
+
"lint:tsc": "tsc -b"
|
|
40
41
|
}
|
|
41
42
|
}
|