Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign 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
0.2.0
to
1.0.0
+1
-1
index.js

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

module.exports = function(obj, keys) {
if (obj !== null && typeof obj === 'object') {
if (obj !== null && typeof obj !== 'object') {
throw new Error('First argument must be an object.');

@@ -13,0 +13,0 @@ }

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

@@ -33,5 +33,5 @@ "license": "MIT",

"devDependencies": {
"browserify": "^6.3.2",
"browserify": "^8.1.0",
"mocha": "*"
}
}