Comparing version 0.2.1 to 0.2.2
@@ -1,2 +0,2 @@ | ||
export declare const isStr: (val: any) => boolean, isNum: (val: any) => boolean, isBool: (val: any) => boolean, isNull: (val: any) => boolean, isArr: (val: any) => boolean, isObj: (val: any) => boolean, isFn: (val: any) => boolean; | ||
export declare const isStr: (val: any) => boolean, isNum: (val: any) => boolean, isBool: (val: any) => boolean, isNull: (val: any) => boolean, isArr: (val: any) => boolean, isObj: (val: any) => boolean, isFn: (val: any) => boolean, isRegex: (val: any) => boolean; | ||
export declare const isEnumVal: (Enum: Object, val: string | number) => boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isEnumVal = exports.isFn = exports.isObj = exports.isArr = exports.isNull = exports.isBool = exports.isNum = exports.isStr = void 0; | ||
var isStr = function (val) { return typeof val === 'string'; }, isNum = function (val) { return typeof val === 'number'; }, isBool = function (val) { return typeof val === 'boolean'; }, isNull = function (val) { return val === null; }, isArr = function (val) { return Array.isArray(val); }, isObj = function (val) { return typeof val === 'object' && !(0, exports.isArr)(val) && !(0, exports.isNull)(val); }, isFn = function (val) { return typeof val === 'function'; }; | ||
exports.isStr = isStr, exports.isNum = isNum, exports.isBool = isBool, exports.isNull = isNull, exports.isArr = isArr, exports.isObj = isObj, exports.isFn = isFn; | ||
exports.isEnumVal = exports.isRegex = exports.isFn = exports.isObj = exports.isArr = exports.isNull = exports.isBool = exports.isNum = exports.isStr = void 0; | ||
var isStr = function (val) { return typeof val === 'string'; }, isNum = function (val) { return typeof val === 'number'; }, isBool = function (val) { return typeof val === 'boolean'; }, isNull = function (val) { return val === null; }, isArr = function (val) { return Array.isArray(val); }, isObj = function (val) { return typeof val === 'object' && !(0, exports.isArr)(val) && !(0, exports.isNull)(val); }, isFn = function (val) { return typeof val === 'function'; }, isRegex = function (val) { return (val instanceof RegExp); }; | ||
exports.isStr = isStr, exports.isNum = isNum, exports.isBool = isBool, exports.isNull = isNull, exports.isArr = isArr, exports.isObj = isObj, exports.isFn = isFn, exports.isRegex = isRegex; | ||
var isEnumVal = function (Enum, val) { return (Object.values(Enum).indexOf(val) > -1); }; | ||
exports.isEnumVal = isEnumVal; | ||
//# sourceMappingURL=isType.js.map |
@@ -6,3 +6,3 @@ { | ||
"name": "@libj/cli", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Cli toolbox", | ||
@@ -29,3 +29,3 @@ "author": "Sergey Poskachey <seregynp@gmail.com>", | ||
], | ||
"gitHead": "718c3864c6f7e652357a733c5dfbb9ed746dc5d3" | ||
"gitHead": "1cd99254c94c9feceadf7684a9f2e8ec25e17055" | ||
} |
Sorry, the diff of this file is not supported yet
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
10953
1