Socket
Socket
Sign inDemoInstall

@bunt/is

Package Overview
Dependencies
1
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.29.16 to 0.29.18

2

dist/cjs/index.d.ts

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

export declare const isNumber: (value: unknown) => value is number;
export declare const isNumberGreaterThan: (value: unknown, than: number) => value is number;
export declare const isNumberLessThan: (value: unknown, than: number) => value is number;
export declare const isNullish: (value: unknown) => value is null | undefined;

@@ -12,0 +14,0 @@ export declare const isNotNullish: <T>(value: T | null | undefined) => value is 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.isNotNullish = exports.isNullish = 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.isNumberLessThan = exports.isNumberGreaterThan = 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 isNumberGreaterThan = (value, than) => ((0, exports.isNumber)(value) && value > than);
exports.isNumberGreaterThan = isNumberGreaterThan;
const isNumberLessThan = (value, than) => ((0, exports.isNumber)(value) && value < than);
exports.isNumberLessThan = isNumberLessThan;
const isNullish = (value) => (0, exports.isNull)(value) || (0, exports.isUndefined)(value);

@@ -24,0 +28,0 @@ exports.isNullish = isNullish;

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

export declare const isNumber: (value: unknown) => value is number;
export declare const isNumberGreaterThan: (value: unknown, than: number) => value is number;
export declare const isNumberLessThan: (value: unknown, than: number) => value is number;
export declare const isNullish: (value: unknown) => value is null | undefined;

@@ -12,0 +14,0 @@ export declare const isNotNullish: <T>(value: T | null | undefined) => value is T;

@@ -11,2 +11,4 @@ export const isNull = (value) => value === null;

};
export const isNumberGreaterThan = (value, than) => (isNumber(value) && value > than);
export const isNumberLessThan = (value, than) => (isNumber(value) && value < than);
export const isNullish = (value) => isNull(value) || isUndefined(value);

@@ -13,0 +15,0 @@ export const isNotNullish = (value) => !isNullish(value);

4

package.json
{
"name": "@bunt/is",
"version": "0.29.16",
"version": "0.29.18",
"keywords": [

@@ -39,3 +39,3 @@ "typescript"

},
"gitHead": "6d4993cad2d32f4c402b89685fc92f2db8df2cf6"
"gitHead": "852305f27626a361c8a46b1167887f74d5a1c9a2"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc