You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

has-properties

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

has-properties - npm Package Compare versions

Comparing version
1.1.0
to
1.1.1
+3
-5
index.js
'use strict';
var isObject = require('1-liners/isObject');
var diff = function(a, b) {

@@ -9,8 +11,4 @@ return a.filter(function(i) {

var isObject = function(obj) {
return (typeof obj === 'object' && !Array.isArray(obj));
};
module.exports = function(obj, keys) {
if (obj === null || !isObject(obj)) {
if (!isObject(obj) || Array.isArray(obj)) {
throw new Error('First argument must be an object.');

@@ -17,0 +15,0 @@ }

{
"name": "has-properties",
"version": "1.1.0",
"version": "1.1.1",
"description": "Checks if the given object has the required/mandatory properties.",

@@ -35,3 +35,6 @@ "license": "MIT",

"mocha": "*"
},
"dependencies": {
"1-liners": "^0.3.6"
}
}