@hot-updater/postgres 0.20.10 → 0.20.12

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.d.cts CHANGED
@@ -1,12 +1,8 @@
1
+ import { AppVersionGetBundlesArgs, GetBundlesArgs, UpdateInfo } from "@hot-updater/core";
2
+ import pg, { PoolConfig } from "pg";
1
3
  import * as _hot_updater_plugin_core0 from "@hot-updater/plugin-core";
2
4
  import { DatabasePluginHooks } from "@hot-updater/plugin-core";
3
- import pg, { PoolConfig } from "pg";
4
- import { AppVersionGetBundlesArgs, GetBundlesArgs, UpdateInfo } from "@hot-updater/core";
5
5
 
6
- //#region src/postgres.d.ts
7
- interface PostgresConfig extends PoolConfig {}
8
- declare const postgres: (config: PostgresConfig, hooks?: DatabasePluginHooks) => (options: _hot_updater_plugin_core0.BasePluginArgs) => _hot_updater_plugin_core0.DatabasePlugin;
9
- //#endregion
10
6
  //#region src/getUpdateInfo.d.ts
11
7
  declare const appVersionStrategy: (pool: pg.Pool, {
12
8
  platform,
@@ -17,4 +13,8 @@ declare const appVersionStrategy: (pool: pg.Pool, {
17
13
  }: AppVersionGetBundlesArgs) => Promise<UpdateInfo | null>;
18
14
  declare const getUpdateInfo: (pool: pg.Pool, args: GetBundlesArgs) => Promise<UpdateInfo | null> | null;
19
15
  //#endregion
16
+ //#region src/postgres.d.ts
17
+ interface PostgresConfig extends PoolConfig {}
18
+ declare const postgres: (config: PostgresConfig, hooks?: DatabasePluginHooks) => (options: _hot_updater_plugin_core0.BasePluginArgs) => _hot_updater_plugin_core0.DatabasePlugin;
19
+ //#endregion
20
20
  export { PostgresConfig, appVersionStrategy, getUpdateInfo, postgres };
package/dist/index.d.ts CHANGED
@@ -1,12 +1,8 @@
1
+ import { AppVersionGetBundlesArgs, GetBundlesArgs, UpdateInfo } from "@hot-updater/core";
1
2
  import * as _hot_updater_plugin_core0 from "@hot-updater/plugin-core";
2
3
  import { DatabasePluginHooks } from "@hot-updater/plugin-core";
3
4
  import pg, { PoolConfig } from "pg";
4
- import { AppVersionGetBundlesArgs, GetBundlesArgs, UpdateInfo } from "@hot-updater/core";
5
5
 
6
- //#region src/postgres.d.ts
7
- interface PostgresConfig extends PoolConfig {}
8
- declare const postgres: (config: PostgresConfig, hooks?: DatabasePluginHooks) => (options: _hot_updater_plugin_core0.BasePluginArgs) => _hot_updater_plugin_core0.DatabasePlugin;
9
- //#endregion
10
6
  //#region src/getUpdateInfo.d.ts
11
7
  declare const appVersionStrategy: (pool: pg.Pool, {
12
8
  platform,
@@ -17,4 +13,8 @@ declare const appVersionStrategy: (pool: pg.Pool, {
17
13
  }: AppVersionGetBundlesArgs) => Promise<UpdateInfo | null>;
18
14
  declare const getUpdateInfo: (pool: pg.Pool, args: GetBundlesArgs) => Promise<UpdateInfo | null> | null;
19
15
  //#endregion
16
+ //#region src/postgres.d.ts
17
+ interface PostgresConfig extends PoolConfig {}
18
+ declare const postgres: (config: PostgresConfig, hooks?: DatabasePluginHooks) => (options: _hot_updater_plugin_core0.BasePluginArgs) => _hot_updater_plugin_core0.DatabasePlugin;
19
+ //#endregion
20
20
  export { PostgresConfig, appVersionStrategy, getUpdateInfo, postgres };