@digitransit-search-util/digitransit-search-util-execute-search-immidiate 1.3.2 → 1.3.3

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.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -420,6 +420,10 @@ export function getSearchResults(
420
420
  const geocodingLayers = ['stop', 'station'];
421
421
  const searchParams =
422
422
  geocodingSize && geocodingSize !== 10 ? { size: geocodingSize } : {};
423
+ if (geocodingSearchParams && geocodingSearchParams['boundary.country']) {
424
+ searchParams['boundary.country'] =
425
+ geocodingSearchParams['boundary.country'];
426
+ }
423
427
  // a little hack: when searching location data, automatically dedupe stops
424
428
  // this could be a new explicit prop
425
429
  if (allTargets || targets.includes('Locations')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitransit-search-util/digitransit-search-util-execute-search-immidiate",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "digitransit-search-util execute-search-immidiate module",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -28,5 +28,5 @@
28
28
  "@digitransit-search-util/digitransit-search-util-uniq-by-label": "^1.1.0",
29
29
  "lodash": "4.17.21"
30
30
  },
31
- "gitHead": "9b1aa29314665eb38be5b4863f89ab5a6425b2e3"
31
+ "gitHead": "f94548e995b21ca5b65d3e9f6efb132703fea66c"
32
32
  }