Socket
Socket
Sign inDemoInstall

country-locale-map

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

country-locale-map - npm Package Compare versions

Comparing version 1.5.3 to 1.6.1

2

package.json
{
"name": "country-locale-map",
"version": "1.5.3",
"version": "1.6.1",
"description": "Provides mapping between country codes and provides default country locals. Includes optional fuzzy matching for country name.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -204,3 +204,3 @@ /* eslint-env node, mocha */

it('getCountryByName should return UK if passed United Kingdom', function(){
it('getCountryByName should return United Kingdom if passed United Kingdom', function(){

@@ -213,6 +213,15 @@ let result = clm.getCountryByName('United Kingdom', true)

it('getAllCountries should return 193 countries', function(){
it('getCountryByName should return Australia if passed United Kingdom', function(){
let result = clm.getCountryByName('Australia', true)
expect(result.alpha3).to.equal('AUS')
expect(result.currency).to.equal('AUD')
});
it('getAllCountries should return 249 countries', function(){
let result = clm.getAllCountries();
expect(result.length).to.equal(248)
expect(result.length).to.equal(249)

@@ -219,0 +228,0 @@ });

Sorry, the diff of this file is too big to display

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