@fabriktor/fx 0.0.154 → 0.0.155

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.
@@ -55,6 +55,7 @@ export type StartMarketplaceSessionOptions = MarketplacePullContext & {
55
55
  on_error?: MarketplaceSessionErrorHandler;
56
56
  };
57
57
  export type StartMarketplaceWelcomeSessionOptions = {
58
+ research?: string;
58
59
  signal?: AbortSignal;
59
60
  country: string;
60
61
  state?: string;
@@ -446,11 +446,8 @@ function marketplaceLocationResearch(opts) {
446
446
  msg: msgMarketplaceCountryRequired,
447
447
  });
448
448
  }
449
- const state = opts.state?.trim();
450
- if (state === undefined || state === "") {
451
- return country;
452
- }
453
- return `${state}, ${country}`;
449
+ const location = [opts.state?.trim(), country].filter(Boolean).join(", ");
450
+ return [opts.research?.trim(), location].filter(Boolean).join("\n");
454
451
  }
455
452
  function marketplaceSessionToken(out) {
456
453
  const token = resolvedValue(out.value?.session_token);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabriktor/fx",
3
- "version": "0.0.154",
3
+ "version": "0.0.155",
4
4
  "description": "![Fabriktor Logo](./img/fabriktor-character.gif)",
5
5
  "type": "module",
6
6
  "exports": {