Comparing version 0.1.14 to 0.2.0
"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; | ||
exports.isStr = function (val) { return typeof val === 'string'; }, exports.isNum = function (val) { return typeof val === 'number'; }, exports.isBool = function (val) { return typeof val === 'boolean'; }, exports.isNull = function (val) { return val === null; }, exports.isArr = function (val) { return Array.isArray(val); }, exports.isObj = function (val) { return typeof val === 'object' && !exports.isArr(val) && !exports.isNull(val); }, exports.isFn = function (val) { return typeof val === 'function'; }; | ||
exports.isEnumVal = function (Enum, val) { return (Object.values(Enum).indexOf(val) > -1); }; | ||
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; | ||
var isEnumVal = function (Enum, val) { return (Object.values(Enum).indexOf(val) > -1); }; | ||
exports.isEnumVal = isEnumVal; | ||
//# sourceMappingURL=isType.js.map |
@@ -7,2 +7,2 @@ export interface LooseObject { | ||
} | ||
export declare type ValueOf<T> = T[keyof T]; | ||
export type ValueOf<T> = T[keyof T]; |
@@ -6,3 +6,3 @@ { | ||
"name": "@libj/cli", | ||
"version": "0.1.14", | ||
"version": "0.2.0", | ||
"description": "Cli toolbox", | ||
@@ -29,3 +29,3 @@ "author": "Sergey Poskachey <seregynp@gmail.com>", | ||
], | ||
"gitHead": "4cdbad06d65596a3c43629e7615baae34ab987c1" | ||
"gitHead": "f7cae57cf8f916f779448750560edd3ca0efffad" | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10726
23
121
2