@meteor-it/utils
Advanced tools
Comparing version 1.3.4 to 1.3.5
/// <reference types="node" /> | ||
import { Readable } from 'stream'; | ||
export declare function firstUppercase(str: string): string; | ||
/** | ||
* | ||
* @deprecated Extremally slow on Proxy/getters | ||
* @param x | ||
* @param y | ||
*/ | ||
export declare function objectEquals(x: any, y: any): boolean; | ||
/** | ||
* Flattens array | ||
* @param array | ||
* @param result | ||
*/ | ||
export declare function flatten(array: any[], result?: any[]): any[]; | ||
/** | ||
* @deprecated | ||
* @param array | ||
*/ | ||
export declare function removeDuplicates<T>(array: T[]): T[]; | ||
/** | ||
* @deprecated | ||
* @param array1 | ||
* @param array2 | ||
*/ | ||
export declare function mix(array1: any[] | Object, array2: any[] | Object): any; | ||
/** | ||
* @deprecated | ||
* @param values | ||
*/ | ||
export declare function createPrivateEnum(...values: string[]): { | ||
[key: string]: Symbol; | ||
}; | ||
/** | ||
* @deprecated | ||
* @param string | ||
* @param length | ||
* @param insertPre | ||
* @param symbol | ||
*/ | ||
export declare function fixLength(string: string, length: number, insertPre?: boolean, symbol?: string): string; | ||
declare global { | ||
declare global { | ||
interface ObjectConstructor { | ||
@@ -17,3 +48,13 @@ values(object: any): any; | ||
} | ||
/** | ||
* @deprecated Object.entrys | ||
* @param object | ||
* @param cb | ||
*/ | ||
export declare function objectMap(object: any, cb: (a: any, b: any, c: any) => any): any; | ||
/** | ||
* @deprecated Object.entrys | ||
* @param keys | ||
* @param values | ||
*/ | ||
export declare function arrayKVObject(keys: string[], values: any[]): any; | ||
@@ -30,2 +71,3 @@ export declare function sleep(time: number): Promise<void>; | ||
* Convert callback function to async | ||
* @deprecated Existst in node utils | ||
* @param cbFunction Function to convert | ||
@@ -32,0 +74,0 @@ */ |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "@meteor-it/utils", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "Many useful utils", | ||
@@ -15,3 +15,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "4c42fd3e8ab0dbba17ca3090f20bf46a1f2dd9e8" | ||
"gitHead": "7d50e6965c1f3b4b2e681647953a0a53cf15e72b" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25911
638