Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

countries-and-timezones

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

countries-and-timezones - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

package.json
{
"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 @@

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