New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

unknown

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unknown - npm Package Compare versions

Comparing version
0.2.2
to
0.2.3
+5
-1
dist/cjs/unknown.js

@@ -0,1 +1,4 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasProperty = void 0;
/**

@@ -7,4 +10,5 @@ * This is a type guard that determines whether the given unknown value

*/
export function hasProperty(value, propName) {
function hasProperty(value, propName) {
return typeof value === "object" && value !== null && propName in value;
}
exports.hasProperty = hasProperty;
+1
-1
{
"name": "unknown",
"version": "0.2.2",
"version": "0.2.3",
"description": "A TypeScript utility library for interacting with the 'unknown' type.",

@@ -5,0 +5,0 @@ "keywords": [