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

lil-wingman

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lil-wingman - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

dist/types/browser.d.ts

28

dist/index.d.ts

@@ -1,10 +0,20 @@

declare function isNumber<T>(obj: T): boolean;
declare function isBoolean<T>(obj: T): boolean;
declare function isString<T>(obj: T): boolean;
declare function isObject<T>(obj: T): boolean;
declare function isArray<T>(obj: T): boolean;
declare function isFunction<T>(obj: T): boolean;
declare function isEmpty<T>(obj: T): boolean;
declare function hasOwnProperty<T>(obj: T, key: PropertyKey): boolean;
type Rgb = [number, number, number];
declare function rgbToHex(rgb: Rgb): string;
declare function hexToRgb(hex: string): Rgb;
declare function isFunction<T>(value: T): boolean;
declare function isAsyncFunction<T>(value: T): boolean;
declare function isRegExp<T>(value: T): boolean;
declare function isDate<T>(value: T): boolean;
declare function isPromise<T>(value: T): boolean;
declare function isBlank<T>(value: T): boolean;
declare function hasOwnProperty<T extends object>(obj: T, key: PropertyKey): boolean;
declare function randomHex(): string;
declare function capitalize(str: string): string;
declare function reverse(str: string): string;
declare function truncateString(str: string, len: number): string;
declare function stripHtml(html: string): string;
type TreeNode<T> = T & {

@@ -16,2 +26,2 @@ children?: T[];

export { TreeNode, arrayToTree, arrayToTreeReduce, hasOwnProperty, isArray, isBoolean, isEmpty, isFunction, isNumber, isObject, isString };
export { TreeNode, arrayToTree, arrayToTreeReduce, capitalize, hasOwnProperty, hexToRgb, isAsyncFunction, isBlank, isDate, isFunction, isPromise, isRegExp, randomHex, reverse, rgbToHex, stripHtml, truncateString };

@@ -1,8 +0,7 @@

export declare function isNumber<T>(obj: T): boolean;
export declare function isBoolean<T>(obj: T): boolean;
export declare function isString<T>(obj: T): boolean;
export declare function isObject<T>(obj: T): boolean;
export declare function isArray<T>(obj: T): boolean;
export declare function isFunction<T>(obj: T): boolean;
export declare function isEmpty<T>(obj: T): boolean;
export declare function hasOwnProperty<T>(obj: T, key: PropertyKey): boolean;
export declare function isFunction<T>(value: T): boolean;
export declare function isAsyncFunction<T>(value: T): boolean;
export declare function isRegExp<T>(value: T): boolean;
export declare function isDate<T>(value: T): boolean;
export declare function isPromise<T>(value: T): boolean;
export declare function isBlank<T>(value: T): boolean;
export declare function hasOwnProperty<T extends object>(obj: T, key: PropertyKey): boolean;

@@ -0,2 +1,5 @@

export * from './convert';
export * from './judges';
export * from './random';
export * from './string';
export * from './tree';

@@ -0,0 +0,0 @@ export type TreeNode<T> = T & {

{
"name": "lil-wingman",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",

@@ -35,2 +35,3 @@ "author": "lucystwt",

"test": "jest",
"test:coverage": "jest --coverage",
"lint": "eslint .",

@@ -54,3 +55,5 @@ "lint:fix": "eslint . --fix",

"eslint-plugin-simple-import-sort": "^8.0.0",
"husky": "^8.0.0",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"lint-staged": "^13.1.0",

@@ -62,5 +65,4 @@ "rimraf": "^3.0.2",

"tslib": "^2.4.1",
"typescript": "^4.9.4",
"husky": "^8.0.0"
"typescript": "^4.9.4"
}
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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