@boomi/embedkit-sdk 1.2.3 → 1.2.4

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
@@ -4818,7 +4818,7 @@ async function fetchExtensions(httpRequest, integrationPackInstanceId, environme
4818
4818
  }
4819
4819
  const processes = resp.result;
4820
4820
  const allExtensions = [];
4821
- const targetEnvs = resolveTargetEnvironments(environments, environmentId);
4821
+ const targetEnvs = environments || [];
4822
4822
  for (const process of processes) {
4823
4823
  if (!process.id) {
4824
4824
  throw new Error(
@@ -4830,17 +4830,13 @@ async function fetchExtensions(httpRequest, integrationPackInstanceId, environme
4830
4830
  allExtensions.push(...exts);
4831
4831
  } else {
4832
4832
  for (const env of targetEnvs) {
4833
- const envId = env.id || "";
4834
- const exts = await fetchExtensionsForPair(httpRequest, process.id, envId, isSingleInstall);
4833
+ const exts = await fetchExtensionsForPair(httpRequest, process.id, env, isSingleInstall);
4835
4834
  allExtensions.push(...exts);
4836
4835
  }
4837
4836
  }
4838
4837
  }
4839
4838
  return allExtensions;
4840
4839
  }
4841
- function resolveTargetEnvironments(environments, environmentId) {
4842
- return environmentId ? [{ id: environmentId }] : environments;
4843
- }
4844
4840
 
4845
4841
  // lib/helpers/combineEnvironmentExtensions.ts
4846
4842
  function combineEnvironmentExtensions(exts) {