Socket
Socket
Sign inDemoInstall

countries-and-timezones

Package Overview
Dependencies
0
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous12

2.1.0

Diff

Changelog

Source

[2.1.0] - 2020-03-31

Added

  • #15 Babel and ES5 support (by Steven Vachon)
  • #16 CI Action (by Steven Vachon)
manuelmhtr
published 2.0.5 •

manuelmhtr
published 2.0.4 •

manuelmhtr
published 2.0.3 •

manuelmhtr
published 2.0.2 •

manuelmhtr
published 2.0.1 •

manuelmhtr
published 2.0.0 •

Changelog

Source

[2.0.0] - 2019-10-10

Added

  • getTimezone method.
  • getCountry method.
  • 167 new alias timezones.
  • Property dstOffset in timezones.
  • Property dstOffsetStr in timezones.

Changed

  • Added all timezone aliases (before only primary timezones where supported). This increasead the support from 338 timezones to 505.
  • Minified data.json as possible. Reduced size 72%, from 88.1 KB to 24.9 KB.
  • Replaced countries (array) timezones property for country (string). Now all alias timezones are included, then each timezone has only one country assigned.
  • Renamed offsetStr to utcOffsetStr, to be more specific whether the offset is for UTC or DST.
  • getCountriesForTimezone method was renamed to getCountryForTimezone since now timezones have only 1 country. Only return a country object, instead of a countries array.

Removed

  • .raw property. Instead use getAllCountries and getAllTimezones methods.
manuelmhtr
published 1.0.2 •

voxfeed
published 1.0.1 •

voxfeed
published 1.0.0 •

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc