@hot-updater/postgres 0.31.1 → 0.31.2

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.cjs CHANGED
@@ -6,7 +6,7 @@ var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames$1 = Object.getOwnPropertyNames;
7
7
  var __getProtoOf$1 = Object.getPrototypeOf;
8
8
  var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
9
- var __commonJSMin$1 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
9
+ var __commonJSMin$1 = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
10
  var __copyProps$1 = (to, from, except, desc) => {
11
11
  if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames$1(from), i = 0, n = keys.length, key; i < n; i++) {
12
12
  key = keys[i];
@@ -33,7 +33,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
33
33
  var __getOwnPropNames = Object.getOwnPropertyNames;
34
34
  var __getProtoOf = Object.getPrototypeOf;
35
35
  var __hasOwnProp = Object.prototype.hasOwnProperty;
36
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
36
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
37
37
  var __copyProps = (to, from, except, desc) => {
38
38
  if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
39
39
  key = keys[i];
@@ -1022,6 +1022,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1022
1022
  break;
1023
1023
  case "<":
1024
1024
  case "<=": break;
1025
+ /* istanbul ignore next */
1025
1026
  default: throw new Error(`Unexpected operation: ${comparator.operator}`);
1026
1027
  }
1027
1028
  });
package/dist/index.d.cts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { AppVersionGetBundlesArgs, FingerprintGetBundlesArgs, GetBundlesArgs, UpdateInfo } from "@hot-updater/core";
2
2
  import pg, { PoolConfig } from "pg";
3
- import * as _$_hot_updater_plugin_core0 from "@hot-updater/plugin-core";
4
3
 
5
4
  //#region src/getUpdateInfo.d.ts
6
5
  declare const appVersionStrategy: (pool: pg.Pool, {
@@ -23,6 +22,6 @@ declare const getUpdateInfo: (pool: pg.Pool, args: GetBundlesArgs) => Promise<Up
23
22
  //#endregion
24
23
  //#region src/postgres.d.ts
25
24
  interface PostgresConfig extends PoolConfig {}
26
- declare const postgres: (config: PostgresConfig, hooks?: _$_hot_updater_plugin_core0.DatabasePluginHooks) => () => _$_hot_updater_plugin_core0.DatabasePlugin<unknown>;
25
+ declare const postgres: (config: PostgresConfig, hooks?: import("@hot-updater/plugin-core").DatabasePluginHooks) => () => import("@hot-updater/plugin-core").DatabasePlugin<unknown>;
27
26
  //#endregion
28
27
  export { PostgresConfig, appVersionStrategy, fingerprintStrategy, getUpdateInfo, postgres };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { AppVersionGetBundlesArgs, FingerprintGetBundlesArgs, GetBundlesArgs, UpdateInfo } from "@hot-updater/core";
2
- import * as _$_hot_updater_plugin_core0 from "@hot-updater/plugin-core";
3
2
  import pg, { PoolConfig } from "pg";
4
3
 
5
4
  //#region src/getUpdateInfo.d.ts
@@ -23,6 +22,6 @@ declare const getUpdateInfo: (pool: pg.Pool, args: GetBundlesArgs) => Promise<Up
23
22
  //#endregion
24
23
  //#region src/postgres.d.ts
25
24
  interface PostgresConfig extends PoolConfig {}
26
- declare const postgres: (config: PostgresConfig, hooks?: _$_hot_updater_plugin_core0.DatabasePluginHooks) => () => _$_hot_updater_plugin_core0.DatabasePlugin<unknown>;
25
+ declare const postgres: (config: PostgresConfig, hooks?: import("@hot-updater/plugin-core").DatabasePluginHooks) => () => import("@hot-updater/plugin-core").DatabasePlugin<unknown>;
27
26
  //#endregion
28
27
  export { PostgresConfig, appVersionStrategy, fingerprintStrategy, getUpdateInfo, postgres };
package/dist/index.mjs CHANGED
@@ -10,7 +10,7 @@ var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
10
10
  var __getOwnPropNames$1 = Object.getOwnPropertyNames;
11
11
  var __getProtoOf$1 = Object.getPrototypeOf;
12
12
  var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
13
- var __commonJSMin$1 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
13
+ var __commonJSMin$1 = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
14
14
  var __copyProps$1 = (to, from, except, desc) => {
15
15
  if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames$1(from), i = 0, n = keys.length, key; i < n; i++) {
16
16
  key = keys[i];
@@ -34,7 +34,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
34
34
  var __getOwnPropNames = Object.getOwnPropertyNames;
35
35
  var __getProtoOf = Object.getPrototypeOf;
36
36
  var __hasOwnProp = Object.prototype.hasOwnProperty;
37
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
37
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
38
38
  var __copyProps = (to, from, except, desc) => {
39
39
  if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
40
40
  key = keys[i];
@@ -1023,6 +1023,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1023
1023
  break;
1024
1024
  case "<":
1025
1025
  case "<=": break;
1026
+ /* istanbul ignore next */
1026
1027
  default: throw new Error(`Unexpected operation: ${comparator.operator}`);
1027
1028
  }
1028
1029
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/postgres",
3
3
  "type": "module",
4
- "version": "0.31.1",
4
+ "version": "0.31.2",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.mjs",
@@ -31,8 +31,8 @@
31
31
  "dependencies": {
32
32
  "kysely": "0.28.16",
33
33
  "pg": "8.13.1",
34
- "@hot-updater/core": "0.31.1",
35
- "@hot-updater/plugin-core": "0.31.1"
34
+ "@hot-updater/core": "0.31.2",
35
+ "@hot-updater/plugin-core": "0.31.2"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@electric-sql/pglite": "0.2.17",
@@ -40,8 +40,8 @@
40
40
  "@types/pg": "^8.11.10",
41
41
  "camelcase-keys": "^9.1.3",
42
42
  "pg-minify": "^1.6.5",
43
- "@hot-updater/js": "0.31.1",
44
- "@hot-updater/test-utils": "0.31.1"
43
+ "@hot-updater/js": "0.31.2",
44
+ "@hot-updater/test-utils": "0.31.2"
45
45
  },
46
46
  "inlinedDependencies": {
47
47
  "camelcase": "8.0.0",