@temporary-name/drizzle 0.0.1-alpha.907c7c78d0193d34752279de92d699e50d6bc3a1 → 0.0.1-alpha.beffd198e2d5853e3d12fa1517c8c9c06bbe6cee

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -2
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1,11 +1,10 @@
1
- import { createInsertSchema, createSelectSchema, createUpdateSchema } from 'drizzle-zod';
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.907c7c78d0193d34752279de92d699e50d6bc3a1",
4
+ "version": "0.0.1-alpha.beffd198e2d5853e3d12fa1517c8c9c06bbe6cee",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.stainless.com/",
7
7
  "repository": {
@@ -37,6 +37,6 @@
37
37
  "build": "unbuild",
38
38
  "build:watch": "pnpm run build --watch",
39
39
  "clean": "tsc -b --clean",
40
- "type:check": "tsc -b"
40
+ "lint:tsc": "tsc -b"
41
41
  }
42
42
  }