countries-and-timezones
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "countries-and-timezones", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Minimalistic library to work with countries and timezones data.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -13,3 +13,3 @@ const data = require('./data'); | ||
if (totalCountries !== memoizedCountries) Object.keys(data.countries).forEach(getCountry); | ||
return countries; | ||
return { ...countries }; | ||
} | ||
@@ -19,3 +19,3 @@ | ||
if (totalTimezones !== memoizedTimezones) Object.keys(data.timezones).forEach(getTimezone); | ||
return timezones; | ||
return { ...timezones }; | ||
} | ||
@@ -25,3 +25,3 @@ | ||
if (!countries[id]) memoizeCountry(buildCountry(data, id)); | ||
return countries[id] || null; | ||
return countries[id] ? { ...countries[id] } : null; | ||
} | ||
@@ -37,3 +37,3 @@ | ||
if (!timezones[name]) memoizeTimezone(buildTimezone(data, name)); | ||
return timezones[name] || null; | ||
return timezones[name] ? { ...timezones[name] } : null; | ||
} | ||
@@ -40,0 +40,0 @@ |
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
52342
18