venue-js 1.4.0-next.1 → 1.4.0-next.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.
- package/dist/index.d.mts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -364,6 +364,7 @@ var createPopulator = ({
|
|
|
364
364
|
...amenity.properties,
|
|
365
365
|
ordinal: defaultLevel.properties.ordinal,
|
|
366
366
|
level_name: defaultLevel.properties.name.en,
|
|
367
|
+
level: defaultLevel,
|
|
367
368
|
units: populatedUnits,
|
|
368
369
|
venue,
|
|
369
370
|
_experimental_kiosk: kiosk ? await populateKiosk(kiosk) : null
|
|
@@ -372,6 +373,7 @@ var createPopulator = ({
|
|
|
372
373
|
};
|
|
373
374
|
const populateAnchor = async (anchor) => {
|
|
374
375
|
const unit = await internalFindById(anchor.properties.unit_id);
|
|
376
|
+
const venue = await internalFindById(unit.properties.venue_id);
|
|
375
377
|
const level = await internalFindById(unit.properties.level_id);
|
|
376
378
|
const sections = await internalFilterByType("section");
|
|
377
379
|
const section = sections.find((section2) => booleanWithin(anchor, section2));
|
|
@@ -381,7 +383,9 @@ var createPopulator = ({
|
|
|
381
383
|
...anchor.properties,
|
|
382
384
|
level: await populateLevel(level),
|
|
383
385
|
unit: await populateUnit(unit),
|
|
384
|
-
section: section ? await populateSection(section) : null
|
|
386
|
+
section: section ? await populateSection(section) : null,
|
|
387
|
+
venue: await populateVenue(venue),
|
|
388
|
+
ordinal: level.properties.ordinal
|
|
385
389
|
}
|
|
386
390
|
};
|
|
387
391
|
};
|