@hot-updater/postgres 0.6.1-rc.6 → 0.6.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/types.d.ts +2 -8
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type SnakeCase<S extends string> = S extends `${infer T}${infer U}` ? `${T extends Capitalize<T> ? "_" : ""}${Lowercase<T>}${SnakeCase<U>}` : S;
|
|
3
|
-
type SnakeKeyObject<T> = T extends Record<string, any> ? {
|
|
4
|
-
[K in keyof T as SnakeCase<Extract<K, string>>]: T[K] extends object ? SnakeKeyObject<T[K]> : T[K];
|
|
5
|
-
} : T;
|
|
6
|
-
export type BundlesTable = SnakeKeyObject<Bundle>;
|
|
1
|
+
import type { SnakeCaseBundle } from "@hot-updater/core";
|
|
7
2
|
export interface Database {
|
|
8
|
-
bundles:
|
|
3
|
+
bundles: SnakeCaseBundle;
|
|
9
4
|
}
|
|
10
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/postgres",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.1
|
|
4
|
+
"version": "0.6.1",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"package.json"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@hot-updater/core": "0.6.1
|
|
33
|
-
"@hot-updater/plugin-core": "0.6.1
|
|
32
|
+
"@hot-updater/core": "0.6.1",
|
|
33
|
+
"@hot-updater/plugin-core": "0.6.1",
|
|
34
34
|
"kysely": "^0.27.5",
|
|
35
35
|
"pg": "^8.13.1"
|
|
36
36
|
},
|