Socket
Socket
Sign inDemoInstall

@ambassify/language-object

Package Overview
Dependencies
0
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.14 to 0.1.15

.circleci/config.yml

8

package.json
{
"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']);

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc