@hot-updater/standalone 1.2.0-rc.42 → 1.2.0-rc.44

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
@@ -199,16 +199,19 @@ const createStandaloneCoreApi = (config) => {
199
199
  ...nativeBuildScopeParams(scope),
200
200
  ...buildKey === void 0 ? {} : { buildKey },
201
201
  ...options?.storeBuild ? { storeBuild: "true" } : {},
202
- ...options?.builtInOlderThan === void 0 ? {} : { builtInOlderThan: options.builtInOlderThan }
202
+ ...options?.builtInOlderThan === void 0 ? {} : { builtInOlderThan: options.builtInOlderThan },
203
+ ...options?.artifactKind === void 0 ? {} : { kind: options.artifactKind }
203
204
  },
204
205
  requiredRoute: "native build"
205
206
  });
206
207
  if (buildKey !== void 0 && row?.build_key !== buildKey) return null;
208
+ if (options?.artifactKind !== void 0 && row !== null && row.artifact_kind !== options.artifactKind) return null;
207
209
  if (options?.storeBuild && row?.is_store_build !== true) return null;
208
210
  const sandbox = scope.sandbox;
209
211
  if (sandbox && row !== null && (row.is_sandbox !== true || row.artifact_kind !== sandbox.artifactKind || row.sandbox_url_scheme !== sandbox.urlScheme)) return null;
210
212
  return row;
211
213
  },
214
+ findNativeBuildSibling: (build) => call("GET", `/native-builds/${encode(build.id)}/sibling`),
212
215
  listNativeBuilds: ({ channelId, ...input }) => list("/native-builds", {
213
216
  ...keysetParams(input),
214
217
  ...channelId === void 0 ? {} : { channelId }
package/dist/index.mjs CHANGED
@@ -198,16 +198,19 @@ const createStandaloneCoreApi = (config) => {
198
198
  ...nativeBuildScopeParams(scope),
199
199
  ...buildKey === void 0 ? {} : { buildKey },
200
200
  ...options?.storeBuild ? { storeBuild: "true" } : {},
201
- ...options?.builtInOlderThan === void 0 ? {} : { builtInOlderThan: options.builtInOlderThan }
201
+ ...options?.builtInOlderThan === void 0 ? {} : { builtInOlderThan: options.builtInOlderThan },
202
+ ...options?.artifactKind === void 0 ? {} : { kind: options.artifactKind }
202
203
  },
203
204
  requiredRoute: "native build"
204
205
  });
205
206
  if (buildKey !== void 0 && row?.build_key !== buildKey) return null;
207
+ if (options?.artifactKind !== void 0 && row !== null && row.artifact_kind !== options.artifactKind) return null;
206
208
  if (options?.storeBuild && row?.is_store_build !== true) return null;
207
209
  const sandbox = scope.sandbox;
208
210
  if (sandbox && row !== null && (row.is_sandbox !== true || row.artifact_kind !== sandbox.artifactKind || row.sandbox_url_scheme !== sandbox.urlScheme)) return null;
209
211
  return row;
210
212
  },
213
+ findNativeBuildSibling: (build) => call("GET", `/native-builds/${encode(build.id)}/sibling`),
211
214
  listNativeBuilds: ({ channelId, ...input }) => list("/native-builds", {
212
215
  ...keysetParams(input),
213
216
  ...channelId === void 0 ? {} : { channelId }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/standalone",
3
- "version": "1.2.0-rc.42",
3
+ "version": "1.2.0-rc.44",
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.42",
46
- "@hot-updater/plugin-core": "1.2.0-rc.42"
45
+ "@hot-updater/plugin-core": "1.2.0-rc.44",
46
+ "@hot-updater/protocol": "1.2.0-rc.44"
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.42"
55
+ "@hot-updater/test-utils": "1.2.0-rc.44"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "tsdown",