create-cfast 0.2.0 → 0.2.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/dist/index.js CHANGED
@@ -375,7 +375,7 @@ const dbPlugin = definePlugin<AuthProvides>()({
375
375
  setup(ctx) {
376
376
  const client = createDb({
377
377
  d1: ctx.env.DB as D1Database,
378
- schema: schema as unknown as Record<string, unknown>,
378
+ schema: schema as unknown as Record<string, object>,
379
379
  grants: ctx.auth.grants,
380
380
  user: ctx.auth.user ? { id: ctx.auth.user.id } : null,
381
381
  cache: false,
@@ -390,7 +390,7 @@ const dbPlugin = definePlugin({
390
390
  setup(ctx) {
391
391
  const client = createDb({
392
392
  d1: ctx.env.DB as D1Database,
393
- schema: schema as unknown as Record<string, unknown>,
393
+ schema: schema as unknown as Record<string, object>,
394
394
  grants: [],
395
395
  user: null,
396
396
  cache: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cfast",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Scaffold a fully wired Cloudflare Workers + React Router project with cfast",
5
5
  "keywords": [
6
6
  "cfast",
@@ -53,11 +53,12 @@ export const passkeys = sqliteTable("passkeys", {
53
53
  name: text("name"),
54
54
  userId: text("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
55
55
  publicKey: text("public_key").notNull(),
56
- credentialId: text("credential_id").notNull().unique(),
56
+ credentialID: text("credential_id").notNull().unique(),
57
57
  counter: integer("counter").notNull().default(0),
58
- deviceType: text("device_type"),
59
- backedUp: integer("backed_up", { mode: "boolean" }).default(false),
58
+ deviceType: text("device_type").notNull(),
59
+ backedUp: integer("backed_up", { mode: "boolean" }).notNull().default(false),
60
60
  transports: text("transports"),
61
+ aaguid: text("aaguid"),
61
62
  createdAt: integer("created_at", { mode: "timestamp" }).$defaultFn(() => new Date()),
62
63
  });
63
64