Socket
Socket
Sign inDemoInstall

@lighthouse/common

Package Overview
Dependencies
Maintainers
15
Versions
461
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lighthouse/common - npm Package Compare versions

Comparing version 4.23.1-canary.111.1394 to 4.24.0-canary-1

12

dist/helpers/get-location-reference/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc