New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

country-list-js

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

country-list-js - npm Package Compare versions

Comparing version 3.1.6 to 3.1.7

4

index.js

@@ -70,3 +70,3 @@ 'use strict';

if (self.cache[prop][val])
return x(self.cache[prop][val]);
return self.cache[prop][val];

@@ -138,2 +138,2 @@ return self.cache[prop][val] = Object.keys(self.all)

return this.filter((e, pos) => this.indexOf(e) == pos);
}
}
{
"name": "country-list-js",
"version": "3.1.6",
"version": "3.1.7",
"description": "Country list with ISO2, ISO3 code, continent, capital, dialing code",

@@ -18,8 +18,3 @@ "homepage": "https://github.com/i-rocky/country-list-js.git",

},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/i-rocky/country-list-js/blob/master/LICENSE"
}
],
"license": "MIT",
"main": "index.js",

@@ -26,0 +21,0 @@ "keywords": [

'use strict';
const expect = require('chai').expect;
const assert = require('assert');
const ok = require('assert').ok;

@@ -105,2 +106,8 @@

it('Returns cached results same as original', function() {
var first = country.findByIso3('USA');
var second = country.findByIso3('USA');
assert.deepEqual(first, second);
});
it('Null is returned if not found', function () {

@@ -115,2 +122,2 @@ expect(country.findByIso2('XX')).to.be.equal(undefined);

});
});
});
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