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.5
to
0.2.6
+9
dist/cjs/unknown.d.ts
/**
* This is a type guard that determines whether the given unknown value
* is an object with a property of a certain type.
* @param value
* @param propName
*/
export declare function hasProperty<P extends PropertyKey>(value: unknown, propName: P): value is {
[key in P]: unknown;
};
+0
-0

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ /**

+7
-9
{
"name": "unknown",
"version": "0.2.5",
"version": "0.2.6",
"description": "A TypeScript utility library for interacting with the 'unknown' type.",

@@ -37,13 +37,11 @@ "keywords": [

"devDependencies": {
"@types/chai": "^4.2.21",
"@types/mocha": "^9.0.0",
"@types/chai": "^4.3.14",
"@types/mocha": "^9.1.1",
"@types/node": "^12.12.6",
"chai": "^4.3.4",
"link-self": "^0.2.0",
"mocha": "^9.1.1",
"shx": "^0.3.3",
"typescript": "^4.4.2"
"chai": "^4.4.1",
"mocha": "^9.2.2",
"shx": "^0.3.4",
"typescript": "^5.4.5"
},
"scripts": {
"prepare": "link-self",
"build": "tsc -b src && shx cp ./package.cjs.json ./dist/cjs/package.json",

@@ -50,0 +48,0 @@ "pretest": "npm run build",