@temporary-name/drizzle 0.0.1-alpha.6d3c10e7b535aec2de4b812161c8001a916134b9 → 0.0.1-alpha.843e52d0b7b6ee25c0e3e090fefb2f73878bc139

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.6d3c10e7b535aec2de4b812161c8001a916134b9",
4
+ "version": "0.0.1-alpha.843e52d0b7b6ee25c0e3e090fefb2f73878bc139",
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
  }