Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bunt/util

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bunt/util - npm Package Compare versions

Comparing version 0.24.20 to 0.24.25

2

dist/is.d.ts

@@ -10,2 +10,4 @@ import { Ctor, Newable } from "./interfaces";

export declare const isNumber: (value: unknown) => value is number;
export declare const isNullish: (value: unknown) => value is null | undefined;
export declare const isNotNullish: <T>(value: T | null | undefined) => value is null | undefined;
export declare const isFunction: <T extends (...args: any) => any>(value: unknown) => value is T;

@@ -12,0 +14,0 @@ export declare const isArrowFunction: <T, A extends any[]>(value: unknown) => value is (...args: A[]) => T;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isFulfilled = exports.isRejected = exports.isInstanceOf = exports.isError = exports.isObject = exports.isClass = exports.isArrowFunction = exports.isFunction = exports.isNumber = exports.isArray = exports.isString = exports.isBoolean = exports.isDefined = exports.isVoid = exports.isUndefined = exports.isNull = void 0;
exports.isFulfilled = exports.isRejected = exports.isInstanceOf = exports.isError = exports.isObject = exports.isClass = exports.isArrowFunction = exports.isFunction = exports.isNotNullish = exports.isNullish = exports.isNumber = exports.isArray = exports.isString = exports.isBoolean = exports.isDefined = exports.isVoid = exports.isUndefined = exports.isNull = void 0;
const isNull = (value) => value === null;

@@ -22,2 +22,6 @@ exports.isNull = isNull;

exports.isNumber = isNumber;
const isNullish = (value) => (0, exports.isNull)(value) || (0, exports.isUndefined)(value);
exports.isNullish = isNullish;
const isNotNullish = (value) => (!((0, exports.isNull)(value) || (0, exports.isUndefined)(value)));
exports.isNotNullish = isNotNullish;
const isFunction = (value) => {

@@ -24,0 +28,0 @@ return typeof value === "function" && !(0, exports.isClass)(value);

4

package.json
{
"name": "@bunt/util",
"version": "0.24.20",
"version": "0.24.25",
"keywords": [

@@ -29,3 +29,3 @@ "typescript"

"license": "MIT",
"gitHead": "8cafe7233aa789c16bb75df8fdc06637a7b1163b"
"gitHead": "da3211786dca4ca020e2bdf17a2f20080ee6f2df"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc