@hot-updater/standalone 1.2.0-rc.50 → 1.2.0-rc.51
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 +12 -0
- package/dist/index.mjs +12 -0
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -186,6 +186,14 @@ const createStandaloneCoreApi = (config) => {
|
|
|
186
186
|
limit: String(limit)
|
|
187
187
|
}),
|
|
188
188
|
getRelease: (id) => call("GET", `/releases/${encode(id)}`),
|
|
189
|
+
getReleaseByLabel: ({ channel, platform, label }) => call("GET", "/release-labels", {
|
|
190
|
+
query: {
|
|
191
|
+
channel,
|
|
192
|
+
platform,
|
|
193
|
+
label: String(label)
|
|
194
|
+
},
|
|
195
|
+
requiredRoute: "release label"
|
|
196
|
+
}),
|
|
189
197
|
listReleases: ({ filter, ...input }) => list("/releases", {
|
|
190
198
|
...keysetParams(input),
|
|
191
199
|
...filterParams(filter)
|
|
@@ -256,6 +264,10 @@ const createStandaloneCoreApi = (config) => {
|
|
|
256
264
|
} }),
|
|
257
265
|
promoteRelease: async ({ releaseId, ...input }) => await call("POST", `/releases/${encode(releaseId)}/promote`, { body: input }),
|
|
258
266
|
rebuildReleaseCatalog: async (scopeKey) => await call("POST", `/release-catalogs/${encode(scopeKey)}/rebuild`),
|
|
267
|
+
fillReleaseLabels: async (input = {}) => await call("POST", "/release-labels/fill", {
|
|
268
|
+
body: input,
|
|
269
|
+
requiredRoute: "release label"
|
|
270
|
+
}),
|
|
259
271
|
preflightReleaseCatalogRebuild: async (scopeKey) => await call("POST", `/release-catalogs/${encode(scopeKey)}/preflight`),
|
|
260
272
|
ensureChannel: async (name) => await call("POST", "/channels", { body: { name } }),
|
|
261
273
|
deleteChannel: async (id) => {
|
package/dist/index.mjs
CHANGED
|
@@ -185,6 +185,14 @@ const createStandaloneCoreApi = (config) => {
|
|
|
185
185
|
limit: String(limit)
|
|
186
186
|
}),
|
|
187
187
|
getRelease: (id) => call("GET", `/releases/${encode(id)}`),
|
|
188
|
+
getReleaseByLabel: ({ channel, platform, label }) => call("GET", "/release-labels", {
|
|
189
|
+
query: {
|
|
190
|
+
channel,
|
|
191
|
+
platform,
|
|
192
|
+
label: String(label)
|
|
193
|
+
},
|
|
194
|
+
requiredRoute: "release label"
|
|
195
|
+
}),
|
|
188
196
|
listReleases: ({ filter, ...input }) => list("/releases", {
|
|
189
197
|
...keysetParams(input),
|
|
190
198
|
...filterParams(filter)
|
|
@@ -255,6 +263,10 @@ const createStandaloneCoreApi = (config) => {
|
|
|
255
263
|
} }),
|
|
256
264
|
promoteRelease: async ({ releaseId, ...input }) => await call("POST", `/releases/${encode(releaseId)}/promote`, { body: input }),
|
|
257
265
|
rebuildReleaseCatalog: async (scopeKey) => await call("POST", `/release-catalogs/${encode(scopeKey)}/rebuild`),
|
|
266
|
+
fillReleaseLabels: async (input = {}) => await call("POST", "/release-labels/fill", {
|
|
267
|
+
body: input,
|
|
268
|
+
requiredRoute: "release label"
|
|
269
|
+
}),
|
|
258
270
|
preflightReleaseCatalogRebuild: async (scopeKey) => await call("POST", `/release-catalogs/${encode(scopeKey)}/preflight`),
|
|
259
271
|
ensureChannel: async (name) => await call("POST", "/channels", { body: { name } }),
|
|
260
272
|
deleteChannel: async (id) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/standalone",
|
|
3
|
-
"version": "1.2.0-rc.
|
|
3
|
+
"version": "1.2.0-rc.51",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@hot-updater/protocol": "1.2.0-rc.
|
|
46
|
-
"@hot-updater/plugin-core": "1.2.0-rc.
|
|
45
|
+
"@hot-updater/protocol": "1.2.0-rc.51",
|
|
46
|
+
"@hot-updater/plugin-core": "1.2.0-rc.51"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"mime": "2.6.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"msw": "^2.7.0",
|
|
53
53
|
"verkit": "0.4.0",
|
|
54
54
|
"vitest": "4.1.4",
|
|
55
|
-
"@hot-updater/test-utils": "1.2.0-rc.
|
|
55
|
+
"@hot-updater/test-utils": "1.2.0-rc.51"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsdown",
|