@lighthouse/common
Advanced tools
Comparing version 4.23.1-canary.111.1394 to 4.24.0-canary-1
@@ -41,5 +41,3 @@ "use strict"; | ||
const areaLocationMap = (0, _lodash.reduce)(areaLocations, (memo, location) => { | ||
var _location$legacyId; | ||
const legacyId = location === null || location === void 0 ? void 0 : (_location$legacyId = location.legacyId) === null || _location$legacyId === void 0 ? void 0 : _location$legacyId.toString(); | ||
const legacyId = location?.legacyId?.toString(); | ||
if (!legacyId) return memo; | ||
@@ -52,5 +50,3 @@ memo[legacyId] = location; | ||
const locationMap = (0, _lodash.isArray)(locations) ? (0, _lodash.reduce)(locations, (memo, location) => { | ||
var _location$_id; | ||
const locationId = location === null || location === void 0 ? void 0 : (_location$_id = location._id) === null || _location$_id === void 0 ? void 0 : _location$_id.toString(); | ||
const locationId = location?._id?.toString(); | ||
if (!locationId) return memo; | ||
@@ -61,5 +57,3 @@ memo[locationId] = location; | ||
const zoneMap = (0, _lodash.isArray)(zones) ? (0, _lodash.reduce)(zones, (memo, zone) => { | ||
var _zone$_id; | ||
const zoneId = zone === null || zone === void 0 ? void 0 : (_zone$_id = zone._id) === null || _zone$_id === void 0 ? void 0 : _zone$_id.toString(); | ||
const zoneId = zone?._id?.toString(); | ||
if (!zoneId) return memo; | ||
@@ -66,0 +60,0 @@ memo[zoneId] = zone; |
{ | ||
"name": "@lighthouse/common", | ||
"version": "4.23.1-canary.111.1394", | ||
"version": "4.24.0-canary-1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1234205
11881