@hot-updater/postgres 0.31.4 → 0.32.0
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 +2 -3
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +2 -3
- package/package.json +5 -5
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 ||
|
|
9
|
+
var __commonJSMin$1 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), 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 ||
|
|
36
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), 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,7 +1022,6 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1022
1022
|
break;
|
|
1023
1023
|
case "<":
|
|
1024
1024
|
case "<=": break;
|
|
1025
|
-
/* istanbul ignore next */
|
|
1026
1025
|
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
1027
1026
|
}
|
|
1028
1027
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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";
|
|
3
4
|
|
|
4
5
|
//#region src/getUpdateInfo.d.ts
|
|
5
6
|
declare const appVersionStrategy: (pool: pg.Pool, {
|
|
@@ -22,6 +23,6 @@ declare const getUpdateInfo: (pool: pg.Pool, args: GetBundlesArgs) => Promise<Up
|
|
|
22
23
|
//#endregion
|
|
23
24
|
//#region src/postgres.d.ts
|
|
24
25
|
interface PostgresConfig extends PoolConfig {}
|
|
25
|
-
declare const postgres: (config: PostgresConfig, hooks?:
|
|
26
|
+
declare const postgres: (config: PostgresConfig, hooks?: _$_hot_updater_plugin_core0.DatabasePluginHooks) => () => _$_hot_updater_plugin_core0.DatabasePlugin<unknown>;
|
|
26
27
|
//#endregion
|
|
27
28
|
export { PostgresConfig, appVersionStrategy, fingerprintStrategy, getUpdateInfo, postgres };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AppVersionGetBundlesArgs, FingerprintGetBundlesArgs, GetBundlesArgs, UpdateInfo } from "@hot-updater/core";
|
|
2
|
+
import * as _$_hot_updater_plugin_core0 from "@hot-updater/plugin-core";
|
|
2
3
|
import pg, { PoolConfig } from "pg";
|
|
3
4
|
|
|
4
5
|
//#region src/getUpdateInfo.d.ts
|
|
@@ -22,6 +23,6 @@ declare const getUpdateInfo: (pool: pg.Pool, args: GetBundlesArgs) => Promise<Up
|
|
|
22
23
|
//#endregion
|
|
23
24
|
//#region src/postgres.d.ts
|
|
24
25
|
interface PostgresConfig extends PoolConfig {}
|
|
25
|
-
declare const postgres: (config: PostgresConfig, hooks?:
|
|
26
|
+
declare const postgres: (config: PostgresConfig, hooks?: _$_hot_updater_plugin_core0.DatabasePluginHooks) => () => _$_hot_updater_plugin_core0.DatabasePlugin<unknown>;
|
|
26
27
|
//#endregion
|
|
27
28
|
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 ||
|
|
13
|
+
var __commonJSMin$1 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), 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 ||
|
|
37
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), 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,7 +1023,6 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1023
1023
|
break;
|
|
1024
1024
|
case "<":
|
|
1025
1025
|
case "<=": break;
|
|
1026
|
-
/* istanbul ignore next */
|
|
1027
1026
|
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
1028
1027
|
}
|
|
1029
1028
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/postgres",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.32.0",
|
|
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.
|
|
35
|
-
"@hot-updater/plugin-core": "0.
|
|
34
|
+
"@hot-updater/core": "0.32.0",
|
|
35
|
+
"@hot-updater/plugin-core": "0.32.0"
|
|
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/
|
|
44
|
-
"@hot-updater/
|
|
43
|
+
"@hot-updater/js": "0.32.0",
|
|
44
|
+
"@hot-updater/test-utils": "0.32.0"
|
|
45
45
|
},
|
|
46
46
|
"inlinedDependencies": {
|
|
47
47
|
"camelcase": "8.0.0",
|