@ambassify/language-object
Advanced tools
Comparing version 0.1.14 to 0.1.15
{ | ||
"name": "@ambassify/language-object", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"description": "Detection and conversion library for language objects.", | ||
@@ -26,8 +26,8 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/ambassify/language-object.git" | ||
"url": "git+https://github.com/bubobox/language-object.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/ambassify/language-object/issues" | ||
"url": "https://github.com/bubobox/language-object/issues" | ||
}, | ||
"homepage": "https://github.com/ambassify/language-object#readme" | ||
"homepage": "https://github.com/bubobox/language-object#readme" | ||
} |
# language-object | ||
[![CircleCI](https://circleci.com/gh/ambassify/language-object.svg?style=svg)](https://circleci.com/gh/ambassify/language-object) | ||
[![CircleCI](https://circleci.com/gh/bubobox/language-object.svg?style=svg)](https://circleci.com/gh/bubobox/language-object) | ||
@@ -5,0 +5,0 @@ ## Installation |
@@ -6,3 +6,3 @@ var constants = require('./constants'); | ||
// Not an object, cannot be a language object. | ||
if (typeof obj !== 'object' || obj === null) | ||
if (typeof obj !== 'object' || obj === null || Array.isArray(obj)) | ||
return false; | ||
@@ -9,0 +9,0 @@ |
@@ -77,2 +77,8 @@ var assert = require('assert'); | ||
it('Should reject empty array values', function() { | ||
var result = isMultilingual([], ['en', 'nl']); | ||
assert(!result, 'array is not a multilingual object'); | ||
}) | ||
it('Should reject undefined', function() { | ||
@@ -79,0 +85,0 @@ var result = isMultilingual(void(0), ['en', 'nl']); |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
25335
612
23