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

i18n-iso-countries

Package Overview
Dependencies
Maintainers
1
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18n-iso-countries - npm Package Compare versions

Comparing version 0.13.0 to 0.14.0

ar.js

3

index.js

@@ -12,3 +12,4 @@ var codes = require("./codes");

"fi" : require("./fi"),
"et" : require("./et")
"et" : require("./et"),
"ar" : require("./ar")
};

@@ -15,0 +16,0 @@

{
"name": "i18n-iso-countries",
"version": "0.13.0",
"version": "0.14.0",
"description": "i18n for ISO 3166-1 country codes",

@@ -25,3 +25,4 @@ "keywords": [

"fi",
"et"
"et",
"ar"
],

@@ -35,2 +36,5 @@ "author": {

"email": "post@michaelwittig.info"
},{
"name": "Bedis ElAcheche",
"email": "d4rk-5c0rp@ubuntu.com"
}],

@@ -37,0 +41,0 @@ "license" : "MIT",

@@ -38,2 +38,3 @@ [![Build Status](https://secure.travis-ci.org/michaelwittig/node-i18n-iso-countries.png)](http://travis-ci.org/michaelwittig/node-i18n-iso-countries)

* `et`: estonian
* `ar`: arabic

@@ -40,0 +41,0 @@ ### Country to Code

@@ -282,2 +282,15 @@ var assert = require("assert-plus"),

});
describe("ar", function () {
var lang = "ar";
it("complete (to less)", function() {
Object.keys(i18niso.getAlpha2Codes()).forEach(function(code) {
assert.notEqual(i18niso.getName(code, lang), undefined, "missing entry for " + code);
});
});
it("complete (too much)", function() {
Object.keys(i18niso.getNames(lang)).forEach(function(code) {
assert.notEqual(i18niso.getAlpha2Codes()[code], -1, "entry for " + code + " is too much");
});
});
});
describe("unsupported language", function () {

@@ -284,0 +297,0 @@ var lang = "unsupported";

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