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.13 to 4.0.0-alpha.14

9

lib/cjs/index.js

@@ -111,3 +111,11 @@ /** @LICENSE

};
/**
* Assert is positive number
*/
var isPlus = function isPlus(arg) {
return typeof arg === 'number' && Math.sign(arg) === 1;
};
exports.isArray = isArray;

@@ -121,2 +129,3 @@ exports.isArrayNonEmpty = isArrayNonEmpty;

exports.isObjectLike = isObjectLike;
exports.isPlus = isPlus;
exports.isPromise = isPromise;

@@ -123,0 +132,0 @@ exports.isString = isString;

10

lib/esm/index.js

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

};
/**
* Assert is positive number
*/
export { isArray, isArrayNonEmpty, isElement, isFunction, isNullish, isNumeric, isObject, isObjectLike, isPromise, isString, isUndef, isUndefined };
var isPlus = function isPlus(arg) {
return typeof arg === 'number' && Math.sign(arg) === 1;
};
export { isArray, isArrayNonEmpty, isElement, isFunction, isNullish, isNumeric, isObject, isObjectLike, isPlus, isPromise, isString, isUndef, isUndefined };
//# sourceMappingURL=index.js.map

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

export declare const isString: (arg: unknown) => arg is string;
/**
* Assert is positive number
*/
export declare const isPlus: (arg: unknown) => arg is number;

4

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

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

},
"gitHead": "4fe4855aa7b3180a4e30ffa0972ac39a04947b4b"
"gitHead": "fa21b165e493ba58f5b1834d050e4af188b6d946"
}

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