@hot-updater/server 0.21.8 → 0.21.10
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/db/index.cjs +6 -1
- package/dist/db/index.js +6 -1
- package/package.json +9 -9
- package/src/db/index.ts +10 -10
package/dist/db/index.cjs
CHANGED
|
@@ -195,7 +195,12 @@ function createHotUpdater(options) {
|
|
|
195
195
|
"fingerprint_hash",
|
|
196
196
|
"metadata"
|
|
197
197
|
],
|
|
198
|
-
where: (b) =>
|
|
198
|
+
where: (b) => {
|
|
199
|
+
const conditions = [];
|
|
200
|
+
if (where?.channel) conditions.push(b("channel", "=", where.channel));
|
|
201
|
+
if (where?.platform) conditions.push(b("platform", "=", where.platform));
|
|
202
|
+
return conditions.length > 0 ? b.and(...conditions) : true;
|
|
203
|
+
}
|
|
199
204
|
})).map((r) => ({
|
|
200
205
|
id: r.id,
|
|
201
206
|
platform: r.platform,
|
package/dist/db/index.js
CHANGED
|
@@ -191,7 +191,12 @@ function createHotUpdater(options) {
|
|
|
191
191
|
"fingerprint_hash",
|
|
192
192
|
"metadata"
|
|
193
193
|
],
|
|
194
|
-
where: (b) =>
|
|
194
|
+
where: (b) => {
|
|
195
|
+
const conditions = [];
|
|
196
|
+
if (where?.channel) conditions.push(b("channel", "=", where.channel));
|
|
197
|
+
if (where?.platform) conditions.push(b("platform", "=", where.platform));
|
|
198
|
+
return conditions.length > 0 ? b.and(...conditions) : true;
|
|
199
|
+
}
|
|
195
200
|
})).map((r) => ({
|
|
196
201
|
id: r.id,
|
|
197
202
|
platform: r.platform,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/server",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"fumadb": "0.2.0",
|
|
50
50
|
"rou3": "0.7.9",
|
|
51
51
|
"semver": "^7.7.2",
|
|
52
|
-
"@hot-updater/core": "0.21.
|
|
53
|
-
"@hot-updater/plugin-core": "0.21.
|
|
52
|
+
"@hot-updater/core": "0.21.10",
|
|
53
|
+
"@hot-updater/plugin-core": "0.21.10"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@electric-sql/pglite": "^0.2.17",
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"kysely-pglite-dialect": "^1.2.0",
|
|
62
62
|
"msw": "^2.7.0",
|
|
63
63
|
"uuidv7": "^1.0.2",
|
|
64
|
-
"@hot-updater/aws": "0.21.
|
|
65
|
-
"@hot-updater/cloudflare": "0.21.
|
|
66
|
-
"@hot-updater/firebase": "0.21.
|
|
67
|
-
"@hot-updater/
|
|
68
|
-
"@hot-updater/
|
|
69
|
-
"@hot-updater/test-utils": "0.21.
|
|
64
|
+
"@hot-updater/aws": "0.21.10",
|
|
65
|
+
"@hot-updater/cloudflare": "0.21.10",
|
|
66
|
+
"@hot-updater/firebase": "0.21.10",
|
|
67
|
+
"@hot-updater/standalone": "0.21.10",
|
|
68
|
+
"@hot-updater/supabase": "0.21.10",
|
|
69
|
+
"@hot-updater/test-utils": "0.21.10"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "tsdown",
|
package/src/db/index.ts
CHANGED
|
@@ -382,16 +382,16 @@ export function createHotUpdater(options: HotUpdaterOptions): HotUpdaterAPI {
|
|
|
382
382
|
"fingerprint_hash",
|
|
383
383
|
"metadata",
|
|
384
384
|
],
|
|
385
|
-
where: (b) =>
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
where
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
where
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
385
|
+
where: (b) => {
|
|
386
|
+
const conditions = [];
|
|
387
|
+
if (where?.channel) {
|
|
388
|
+
conditions.push(b("channel", "=", where.channel));
|
|
389
|
+
}
|
|
390
|
+
if (where?.platform) {
|
|
391
|
+
conditions.push(b("platform", "=", where.platform));
|
|
392
|
+
}
|
|
393
|
+
return conditions.length > 0 ? b.and(...conditions) : true;
|
|
394
|
+
},
|
|
395
395
|
});
|
|
396
396
|
|
|
397
397
|
const all: Bundle[] = rows
|