@kanjijs/cli 0.2.0-beta.35 → 0.2.0-beta.37

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
@@ -20148,13 +20148,13 @@ export abstract class BaseRepository<
20148
20148
  ) {}
20149
20149
 
20150
20150
  async findAll(): Promise<TEntity[]> {
20151
- return this.db.select().from(this.table) as unknown as Promise<TEntity[]>;
20151
+ return this.db.select().from(this.table as any) as unknown as Promise<TEntity[]>;
20152
20152
  }
20153
20153
 
20154
20154
  async findById(id: number | string): Promise<TEntity | undefined> {
20155
20155
  const result = await this.db
20156
20156
  .select()
20157
- .from(this.table)
20157
+ .from(this.table as any)
20158
20158
  .where(eq(this.idColumn, id));
20159
20159
 
20160
20160
  // @ts-ignore
@@ -20163,14 +20163,14 @@ export abstract class BaseRepository<
20163
20163
 
20164
20164
  async create(data: TCreate): Promise<TEntity> {
20165
20165
  // @ts-ignore
20166
- const result = await this.db.insert(this.table).values(data).returning();
20166
+ const result = await this.db.insert(this.table as any).values(data).returning();
20167
20167
  // @ts-ignore
20168
20168
  return result[0];
20169
20169
  }
20170
20170
 
20171
20171
  async update(id: number | string, data: TUpdate): Promise<TEntity | undefined> {
20172
20172
  const result = await this.db
20173
- .update(this.table)
20173
+ .update(this.table as any)
20174
20174
  // @ts-ignore
20175
20175
  .set(data)
20176
20176
  .where(eq(this.idColumn, id))
@@ -20182,7 +20182,7 @@ export abstract class BaseRepository<
20182
20182
 
20183
20183
  async delete(id: number | string): Promise<TEntity | undefined> {
20184
20184
  const result = await this.db
20185
- .delete(this.table)
20185
+ .delete(this.table as any)
20186
20186
  .where(eq(this.idColumn, id))
20187
20187
  .returning();
20188
20188
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanjijs/cli",
3
- "version": "0.2.0-beta.35",
3
+ "version": "0.2.0-beta.37",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "kanji": "./dist/index.js"
@@ -21,7 +21,7 @@
21
21
  "fs-extra": "^11.3.3",
22
22
  "picocolors": "^1.1.1",
23
23
  "openapi-typescript-codegen": "^0.25.0",
24
- "@kanjijs/openapi": "^0.2.0-beta.35"
24
+ "@kanjijs/openapi": "^0.2.0-beta.37"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/fs-extra": "^11.0.4"
@@ -7,12 +7,12 @@
7
7
  "start": "bun run src/main.ts"
8
8
  },
9
9
  "dependencies": {
10
- "@kanjijs/core": "^0.2.0-beta.35",
11
- "@kanjijs/platform-bun": "^0.2.0-beta.35",
12
- "@kanjijs/platform-hono": "^0.2.0-beta.35",
13
- "@kanjijs/auth": "^0.2.0-beta.35",
14
- "@kanjijs/logger": "^0.2.0-beta.35",
15
- "@kanjijs/throttler": "^0.2.0-beta.35",
10
+ "@kanjijs/core": "^0.2.0-beta.37",
11
+ "@kanjijs/platform-bun": "^0.2.0-beta.37",
12
+ "@kanjijs/platform-hono": "^0.2.0-beta.37",
13
+ "@kanjijs/auth": "^0.2.0-beta.37",
14
+ "@kanjijs/logger": "^0.2.0-beta.37",
15
+ "@kanjijs/throttler": "^0.2.0-beta.37",
16
16
  "hono": "^4.0.0",
17
17
  "reflect-metadata": "^0.2.0",
18
18
  "zod": "^3.0.0"