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

@hi-ui/type-assertion

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hi-ui/type-assertion - npm Package Compare versions

Comparing version 4.0.0-alpha.5 to 4.0.0-alpha.6

9

lib/cjs/index.js

@@ -62,5 +62,14 @@ /** @LICENSE

};
/**
* Assert is function
*/
var isFunction = function isFunction(arg) {
return typeof arg === 'function';
};
exports.isArray = isArray;
exports.isArrayNonEmpty = isArrayNonEmpty;
exports.isFunction = isFunction;
exports.isNumeric = isNumeric;

@@ -67,0 +76,0 @@ exports.isObject = isObject;

10

lib/esm/index.js

@@ -57,4 +57,12 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";

};
/**
* Assert is function
*/
export { isArray, isArrayNonEmpty, isNumeric, isObject, isPromise };
var isFunction = function isFunction(arg) {
return typeof arg === 'function';
};
export { isArray, isArrayNonEmpty, isFunction, isNumeric, isObject, isPromise };
//# sourceMappingURL=index.js.map

@@ -24,1 +24,5 @@ export declare type Dict<T = any> = Record<string, T>;

export declare const isNumeric: (arg: unknown) => arg is string | number;
/**
* Assert is function
*/
export declare const isFunction: <T extends Function = Function>(arg: any) => arg is T;

4

package.json
{
"name": "@hi-ui/type-assertion",
"version": "4.0.0-alpha.5",
"version": "4.0.0-alpha.6",
"description": "A sub-package for @hi-ui/utils.",

@@ -48,3 +48,3 @@ "keywords": [],

},
"gitHead": "d2ea256c3b3726334a2091eba1de7321ed8d36e3"
"gitHead": "dd5e5cb7136a263b75eecb08a2f2e7ff3a854bbc"
}

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc