@mediocre/bloodhound
Advanced tools
Comparing version 1.11.5 to 1.11.6
@@ -145,3 +145,4 @@ const async = require('async'); | ||
let timezone = 'America/New_York'; | ||
if (address && address.timezone) { | ||
if (address?.timezone) { | ||
timezone = address.timezone; | ||
@@ -152,5 +153,5 @@ } | ||
address: { | ||
city: address.city, | ||
city: address?.city, | ||
country: event.location.address.countryCode, | ||
state: address.state, | ||
state: address?.state, | ||
zip: event.location.address.postalCode | ||
@@ -157,0 +158,0 @@ }, |
@@ -43,3 +43,3 @@ { | ||
}, | ||
"version": "1.11.5" | ||
"version": "1.11.6" | ||
} |
@@ -7,3 +7,3 @@ const async = require('async'); | ||
var pettyCache; | ||
let pettyCache; | ||
@@ -74,3 +74,3 @@ function geocode(location, callback) { | ||
exports.addressToString = function(address) { | ||
var value = ''; | ||
let value = ''; | ||
@@ -116,3 +116,3 @@ if (address.city) { | ||
// Use Redis (via Petty Cache) | ||
if (options && options.pettyCache) { | ||
if (options?.pettyCache) { | ||
if (!pettyCache) { | ||
@@ -119,0 +119,0 @@ pettyCache = new PettyCache(options.pettyCache.port, options.pettyCache.host, options.pettyCache.options); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
77401