@ductape/sdk 0.1.133 → 0.1.135

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.
@@ -2864,6 +2864,13 @@ class ProcessorService {
2864
2864
  if ((_e = envMapping === null || envMapping === void 0 ? void 0 : envMapping.variables) === null || _e === void 0 ? void 0 : _e.length) {
2865
2865
  request_base_url = (0, string_utils_2.resolveBaseUrlVariables)(request_base_url, envMapping.variables);
2866
2866
  }
2867
+ // Guard against sending a request with an unresolved {{placeholder}} still in the URL —
2868
+ // this happens for connections made before variable values were enforced/provided.
2869
+ const unresolvedBaseUrlVar = request_base_url === null || request_base_url === void 0 ? void 0 : request_base_url.match(/\{\{([a-zA-Z0-9_]+)\}\}/);
2870
+ if (unresolvedBaseUrlVar) {
2871
+ throw new Error(`base_url variable {{${unresolvedBaseUrlVar[1]}}} is not resolved for app environment ${app_env_slug}. ` +
2872
+ `Set its value on the product's app connection (envs[].variables) before executing this action.`);
2873
+ }
2867
2874
  const samples = {
2868
2875
  query: (query === null || query === void 0 ? void 0 : query.data) || [],
2869
2876
  headers: (headers === null || headers === void 0 ? void 0 : headers.data) || [],