Socket
Socket
Sign inDemoInstall

@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.8 to 4.0.0-alpha.9

10

lib/cjs/index.js

@@ -87,2 +87,11 @@ /** @LICENSE

var toString = Object.prototype.toString;
/**
* Assert is string
*/
var isString = function isString(arg) {
return toString.call(arg) === '[object String]';
};
exports.isArray = isArray;

@@ -96,2 +105,3 @@ exports.isArrayNonEmpty = isArrayNonEmpty;

exports.isPromise = isPromise;
exports.isString = isString;
//# sourceMappingURL=index.js.map

11

lib/esm/index.js

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

export { isArray, isArrayNonEmpty, isElement, isFunction, isNullish, isNumeric, isObject, isPromise };
var toString = Object.prototype.toString;
/**
* Assert is string
*/
var isString = function isString(arg) {
return toString.call(arg) === '[object String]';
};
export { isArray, isArrayNonEmpty, isElement, isFunction, isNullish, isNumeric, isObject, isPromise, isString };
//# sourceMappingURL=index.js.map

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

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

6

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

@@ -46,5 +46,5 @@ "keywords": [],

"devDependencies": {
"@hi-ui/hi-build": "^4.0.0-alpha.2"
"@hi-ui/hi-build": "^4.0.0-alpha.3"
},
"gitHead": "f067ec47048ec498d30cdc0333c598f963a172d1"
"gitHead": "689ef7c6b19089bf0aa818978c70da1e27714e6b"
}

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