@hot-updater/standalone 1.2.0-rc.12 → 1.2.0-rc.13

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
@@ -190,11 +190,15 @@ const createStandaloneCoreApi = (config) => {
190
190
  const row = await call("GET", "/native-builds/latest", {
191
191
  query: {
192
192
  ...nativeBuildScopeParams(scope),
193
- ...buildKey === void 0 ? {} : { buildKey }
193
+ ...buildKey === void 0 ? {} : { buildKey },
194
+ ...options?.storeBuild ? { storeBuild: "true" } : {},
195
+ ...options?.builtInOlderThan === void 0 ? {} : { builtInOlderThan: options.builtInOlderThan }
194
196
  },
195
197
  requiredRoute: "native build"
196
198
  });
197
- return buildKey !== void 0 && row?.build_key !== buildKey ? null : row;
199
+ if (buildKey !== void 0 && row?.build_key !== buildKey) return null;
200
+ if (options?.storeBuild && row?.store_build !== true) return null;
201
+ return row;
198
202
  },
199
203
  listNativeBuilds: ({ channelId, ...input }) => list("/native-builds", {
200
204
  ...keysetParams(input),
@@ -238,6 +242,10 @@ const createStandaloneCoreApi = (config) => {
238
242
  body: submission,
239
243
  requiredRoute: "native build submission"
240
244
  }),
245
+ markNativeBuild: (id, mark) => call("POST", `/native-builds/${encode(id)}/store-build`, {
246
+ body: mark,
247
+ requiredRoute: "native build store mark"
248
+ }),
241
249
  deleteNativeBuild: async (id) => await call("DELETE", `/native-builds/${encode(id)}`, { requiredRoute: "native build deletion" })
242
250
  };
243
251
  };
package/dist/index.mjs CHANGED
@@ -189,11 +189,15 @@ const createStandaloneCoreApi = (config) => {
189
189
  const row = await call("GET", "/native-builds/latest", {
190
190
  query: {
191
191
  ...nativeBuildScopeParams(scope),
192
- ...buildKey === void 0 ? {} : { buildKey }
192
+ ...buildKey === void 0 ? {} : { buildKey },
193
+ ...options?.storeBuild ? { storeBuild: "true" } : {},
194
+ ...options?.builtInOlderThan === void 0 ? {} : { builtInOlderThan: options.builtInOlderThan }
193
195
  },
194
196
  requiredRoute: "native build"
195
197
  });
196
- return buildKey !== void 0 && row?.build_key !== buildKey ? null : row;
198
+ if (buildKey !== void 0 && row?.build_key !== buildKey) return null;
199
+ if (options?.storeBuild && row?.store_build !== true) return null;
200
+ return row;
197
201
  },
198
202
  listNativeBuilds: ({ channelId, ...input }) => list("/native-builds", {
199
203
  ...keysetParams(input),
@@ -237,6 +241,10 @@ const createStandaloneCoreApi = (config) => {
237
241
  body: submission,
238
242
  requiredRoute: "native build submission"
239
243
  }),
244
+ markNativeBuild: (id, mark) => call("POST", `/native-builds/${encode(id)}/store-build`, {
245
+ body: mark,
246
+ requiredRoute: "native build store mark"
247
+ }),
240
248
  deleteNativeBuild: async (id) => await call("DELETE", `/native-builds/${encode(id)}`, { requiredRoute: "native build deletion" })
241
249
  };
242
250
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/standalone",
3
- "version": "1.2.0-rc.12",
3
+ "version": "1.2.0-rc.13",
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/plugin-core": "1.2.0-rc.12",
46
- "@hot-updater/protocol": "1.2.0-rc.12"
45
+ "@hot-updater/protocol": "1.2.0-rc.13",
46
+ "@hot-updater/plugin-core": "1.2.0-rc.13"
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.12"
55
+ "@hot-updater/test-utils": "1.2.0-rc.13"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "tsdown",