@orbit/utils
Advanced tools
Comparing version 0.17.0-beta.7 to 0.17.0-beta.8
@@ -5,7 +5,2 @@ /** | ||
* predicate is true for every item in the array. | ||
* | ||
* @export | ||
* @param {any[]} array | ||
* @param {(member: any, index: number) => boolean} predicate | ||
* @returns {boolean} | ||
*/ | ||
@@ -17,7 +12,2 @@ export declare function every(array: any[], predicate: (member: any, index: number) => boolean): boolean; | ||
* for any of the items in the array. | ||
* | ||
* @export | ||
* @param {any[]} array | ||
* @param {(member: any, index: number) => boolean} predicate | ||
* @returns {boolean} | ||
*/ | ||
@@ -28,8 +18,3 @@ export declare function some(array: any[], predicate: (member: any, index: number) => boolean): boolean; | ||
* of calling the value function rather than an item of the array. | ||
* | ||
* @export | ||
* @param {any[]} array | ||
* @param {(member: any, index: number) => any} valueFn | ||
* @returns {*} the first result of `valueFn` that returned true or undefined | ||
*/ | ||
export declare function firstResult(array: any[], valueFn: (member: any, index: number) => any): any; |
@@ -8,7 +8,2 @@ "use strict"; | ||
* predicate is true for every item in the array. | ||
* | ||
* @export | ||
* @param {any[]} array | ||
* @param {(member: any, index: number) => boolean} predicate | ||
* @returns {boolean} | ||
*/ | ||
@@ -30,7 +25,2 @@ function every(array, predicate) { | ||
* for any of the items in the array. | ||
* | ||
* @export | ||
* @param {any[]} array | ||
* @param {(member: any, index: number) => boolean} predicate | ||
* @returns {boolean} | ||
*/ | ||
@@ -51,7 +41,2 @@ function some(array, predicate) { | ||
* of calling the value function rather than an item of the array. | ||
* | ||
* @export | ||
* @param {any[]} array | ||
* @param {(member: any, index: number) => any} valueFn | ||
* @returns {*} the first result of `valueFn` that returned true or undefined | ||
*/ | ||
@@ -69,2 +54,2 @@ function firstResult(array, valueFn) { | ||
exports.firstResult = firstResult; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJyYXlzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2FycmF5cy50cyJdLCJu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XG4gIHdoaWxlICgrK2luZGV4IDwgbGVuZ3RoKSB7XG4gICAgaWYgKHByZWRpY2F0ZShhcnJheVtpbmRleF0sIGluZGV4KSkge1xuICAgICAgcmV0dXJuIHRydWU7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIGZhbHNlO1xufVxuXG4vKipcbiAqIFRoaXMgZnVuY3Rpb24gaXMgc2ltaWxhciB0byBBcnJheS5wcm90b3R5cGUuZmluZCwgYnV0IGl0IHJldHVybnMgdGhlIHJlc3VsdFxuICogb2YgY2FsbGluZyB0aGUgdmFsdWUgZnVuY3Rpb24gcmF0aGVyIHRoYW4gYW4gaXRlbSBvZiB0aGUgYXJyYXkuXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBmaXJzdFJlc3VsdChcbiAgYXJyYXk6IGFueVtdLFxuICB2YWx1ZUZuOiAobWVtYmVyOiBhbnksIGluZGV4OiBudW1iZXIpID0+IGFueVxuKTogYW55IHtcbiAgbGV0IGluZGV4ID0gLTE7XG4gIGxldCBsZW5ndGg6IG51bWJlciA9IGFycmF5Lmxlbmd0aDtcblxuICB3aGlsZSAoKytpbmRleCA8IGxlbmd0aCkge1xuICAgIGxldCByZXN1bHQgPSB2YWx1ZUZuKGFycmF5W2luZGV4XSwgaW5kZXgpO1xuICAgIGlmIChyZXN1bHQpIHtcbiAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgfVxuICB9XG59XG4iXX0= |
/** | ||
* A simple dictionary interface. | ||
* | ||
* @export | ||
* @interface Dict | ||
* @template T | ||
*/ | ||
@@ -8,0 +4,0 @@ export interface Dict<T> { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGljdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEEgc2ltcGxlIGRpY3Rpb25hcnkgaW50ZXJmYWNlLlxuICpcbiAqIEBleHBvcnRcbiAqIEBpbnRlcmZhY2UgRGljdFxuICogQHRlbXBsYXRlIFRcbiAqL1xuZXhwb3J0IGludGVyZmFjZSBEaWN0PFQ+IHtcbiAgW2tleTogc3RyaW5nXTogVDtcbn1cbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGljdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEEgc2ltcGxlIGRpY3Rpb25hcnkgaW50ZXJmYWNlLlxuICovXG5leHBvcnQgaW50ZXJmYWNlIERpY3Q8VD4ge1xuICBba2V5OiBzdHJpbmddOiBUO1xufVxuIl19 |
@@ -9,8 +9,3 @@ /** | ||
* arrays | ||
* | ||
* @export | ||
* @param {*} a | ||
* @param {*} b | ||
* @returns {boolean} are `a` and `b` equal? | ||
*/ | ||
export declare function eq(a: any, b: any): boolean; |
"use strict"; | ||
/* eslint-disable eqeqeq, no-eq-null, valid-jsdoc */ | ||
/* eslint-disable @typescript-eslint/explicit-module-boundary-types, eqeqeq, no-eq-null, valid-jsdoc */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -13,7 +13,2 @@ exports.eq = void 0; | ||
* arrays | ||
* | ||
* @export | ||
* @param {*} a | ||
* @param {*} b | ||
* @returns {boolean} are `a` and `b` equal? | ||
*/ | ||
@@ -84,2 +79,2 @@ function eq(a, b) { | ||
exports.eq = eq; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZXEudHMiXS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ICB9XG4gICAgfVxuICB9XG4gIHJldHVybiB0cnVlO1xufVxuIl19 |
@@ -6,6 +6,2 @@ /** | ||
* Traverses all object properties (but not prototype properties). | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @returns {*} Clone of the input `obj` | ||
*/ | ||
@@ -18,5 +14,3 @@ export declare function clone(obj: any): any; | ||
* | ||
* @export | ||
* @param {*} destination | ||
* @param {*} source | ||
* @deprecated since v0.17 | ||
*/ | ||
@@ -27,6 +21,3 @@ export declare function expose(destination: any, source: any): void; | ||
* | ||
* @export | ||
* @param {*} destination | ||
* @param {...any[]} sources | ||
* @returns {any} | ||
* @deprecated since v0.17 | ||
*/ | ||
@@ -41,3 +32,3 @@ export declare function extend(destination: any, ...sources: any[]): any; | ||
*/ | ||
export declare function toArray(obj: any): any[]; | ||
export declare function toArray(obj: unknown): any[]; | ||
/** | ||
@@ -50,3 +41,3 @@ * Checks whether a value is a non-null object | ||
*/ | ||
export declare function isObject(obj: any): boolean; | ||
export declare function isObject(obj: unknown): boolean; | ||
/** | ||
@@ -59,3 +50,3 @@ * Checks whether an object is null or undefined | ||
*/ | ||
export declare function isNone(obj: any): boolean; | ||
export declare function isNone(obj: unknown): boolean; | ||
/** | ||
@@ -66,6 +57,3 @@ * Merges properties from other objects into a base object. Properties that | ||
* | ||
* @export | ||
* @param {*} base | ||
* @param {...any[]} sources | ||
* @returns {*} | ||
* @deprecated since v0.17 | ||
*/ | ||
@@ -79,7 +67,2 @@ export declare function merge(object: any, ...sources: any[]): any; | ||
* base object that already exist. | ||
* | ||
* @export | ||
* @param {*} base | ||
* @param {...any[]} sources | ||
* @returns {*} | ||
*/ | ||
@@ -91,7 +74,2 @@ export declare function deepMerge(object: any, ...sources: any[]): any; | ||
* Returns any falsy value encountered while traversing the path. | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @param {string[]} path | ||
* @returns {*} | ||
*/ | ||
@@ -107,8 +85,2 @@ export declare function deepGet(obj: any, path: string[]): any; | ||
* requested `value` argument. Otherwise returns `true`. | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @param {string[]} path | ||
* @param {*} value | ||
* @returns {boolean} was the value was actually changed? | ||
*/ | ||
@@ -120,7 +92,3 @@ export declare function deepSet(obj: any, path: string[], value: any): boolean; | ||
* This is a ponyfill for `Object.values`, which is still experimental. | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @returns {any[]} | ||
*/ | ||
export declare function objectValues(obj: any): any[]; |
"use strict"; | ||
/* eslint-disable valid-jsdoc */ | ||
/* eslint-disable @typescript-eslint/explicit-module-boundary-types, valid-jsdoc */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -10,6 +10,2 @@ exports.objectValues = exports.deepSet = exports.deepGet = exports.deepMerge = exports.merge = exports.isNone = exports.isObject = exports.toArray = exports.extend = exports.expose = exports.clone = void 0; | ||
* Traverses all object properties (but not prototype properties). | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @returns {*} Clone of the input `obj` | ||
*/ | ||
@@ -58,5 +54,3 @@ function clone(obj) { | ||
* | ||
* @export | ||
* @param {*} destination | ||
* @param {*} source | ||
* @deprecated since v0.17 | ||
*/ | ||
@@ -86,6 +80,3 @@ function expose(destination, source) { | ||
* | ||
* @export | ||
* @param {*} destination | ||
* @param {...any[]} sources | ||
* @returns {any} | ||
* @deprecated since v0.17 | ||
*/ | ||
@@ -146,6 +137,3 @@ function extend(destination, ...sources) { | ||
* | ||
* @export | ||
* @param {*} base | ||
* @param {...any[]} sources | ||
* @returns {*} | ||
* @deprecated since v0.17 | ||
*/ | ||
@@ -172,7 +160,2 @@ function merge(object, ...sources) { | ||
* base object that already exist. | ||
* | ||
* @export | ||
* @param {*} base | ||
* @param {...any[]} sources | ||
* @returns {*} | ||
*/ | ||
@@ -204,7 +187,2 @@ function deepMerge(object, ...sources) { | ||
* Returns any falsy value encountered while traversing the path. | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @param {string[]} path | ||
* @returns {*} | ||
*/ | ||
@@ -231,8 +209,2 @@ function deepGet(obj, path) { | ||
* requested `value` argument. Otherwise returns `true`. | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @param {string[]} path | ||
* @param {*} value | ||
* @returns {boolean} was the value was actually changed? | ||
*/ | ||
@@ -263,6 +235,2 @@ function deepSet(obj, path, value) { | ||
* This is a ponyfill for `Object.values`, which is still experimental. | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @returns {any[]} | ||
*/ | ||
@@ -278,2 +246,2 @@ function objectValues(obj) { | ||
exports.objectValues = objectValues; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9vYmplY3RzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxnQ0FBZ0M7OztBQUVoQzs7Ozs7Ozs7O0dBU0c7QUFDSCxTQUFnQixLQUFLLENBQUMsR0FBUTtJQUM1QixJQUFJLEdBQUcsS0FBSyxTQUFTLElBQUksR0FBRyxLQUFLLElBQUksSUFBSSxPQUFPLEdBQUcsS0FBSyxRQUFRLEVBQUU7UUFDaEUsT0FBTyxHQUFHLENBQUM7S0FDWjtJQUVELElBQUksR0FBUSxDQUFDO0lBQ2IsSUFBSSxJQUFJLEdBQUcsTUFBTSxDQUFDLFNBQVMsQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBRS9DLElBQUksSUFBSSxLQUFLLGVBQWUsRUFBRTtRQUM1QixHQUFHLEdBQUcsSUFBSSxJQUFJLEVBQUUsQ0FBQztRQUNqQixHQUFHLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxPQUFPLEVBQUUsQ0FBQyxDQUFDO0tBQzVCO1NBQU0sSUFBSSxJQUFJLEtBQUssaUJBQWlCLEVBQUU7UUFDckMsR0FBRyxHQUFHLEdBQUcsQ0FBQyxXQU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7XG4gIGZvciAobGV0IGkgPSAwLCBsID0gcGF0aC5sZW5ndGg7IGkgPCBsOyBpKyspIHtcbiAgICBzZWdtZW50ID0gcGF0aFtpXTtcbiAgICBpZiAocHRyW3NlZ21lbnRdID09PSB1bmRlZmluZWQpIHtcbiAgICAgIHB0cltzZWdtZW50XSA9IHR5cGVvZiBzZWdtZW50ID09PSAnbnVtYmVyJyA/IFtdIDoge307XG4gICAgfVxuICAgIHB0ciA9IHB0cltzZWdtZW50XTtcbiAgfVxuICBpZiAocHRyW3Byb3BdID09PSB2YWx1ZSkge1xuICAgIHJldHVybiBmYWxzZTtcbiAgfSBlbHNlIHtcbiAgICBwdHJbcHJvcF0gPSB2YWx1ZTtcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfVxufVxuXG4vKipcbiAqIEZpbmQgYW4gYXJyYXkgb2YgdmFsdWVzIHRoYXQgY29ycmVzcG9uZCB0byB0aGUga2V5cyBvZiBhbiBvYmplY3QuXG4gKlxuICogVGhpcyBpcyBhIHBvbnlmaWxsIGZvciBgT2JqZWN0LnZhbHVlc2AsIHdoaWNoIGlzIHN0aWxsIGV4cGVyaW1lbnRhbC5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIG9iamVjdFZhbHVlcyhvYmo6IGFueSk6IGFueVtdIHtcbiAgaWYgKE9iamVjdC52YWx1ZXMpIHtcbiAgICByZXR1cm4gT2JqZWN0LnZhbHVlcyhvYmopO1xuICB9IGVsc2Uge1xuICAgIHJldHVybiBPYmplY3Qua2V5cyhvYmopLm1hcCgoaykgPT4gb2JqW2tdKTtcbiAgfVxufVxuIl19 |
@@ -10,6 +10,3 @@ /** | ||
* generator. | ||
* | ||
* @export | ||
* @returns {string} | ||
*/ | ||
export declare function uuid(): string; |
@@ -17,5 +17,2 @@ "use strict"; | ||
* generator. | ||
* | ||
* @export | ||
* @returns {string} | ||
*/ | ||
@@ -49,2 +46,2 @@ function uuid() { | ||
exports.uuid = uuid; | ||
//# sourceMappingURL=data:application/json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mZdICtcbiAgICAnLScgK1xuICAgIGx1dFsoZDIgPj4gMTYpICYgMHhmZl0gK1xuICAgIGx1dFsoZDIgPj4gMjQpICYgMHhmZl0gK1xuICAgIGx1dFtkMyAmIDB4ZmZdICtcbiAgICBsdXRbKGQzID4+IDgpICYgMHhmZl0gK1xuICAgIGx1dFsoZDMgPj4gMTYpICYgMHhmZl0gK1xuICAgIGx1dFsoZDMgPj4gMjQpICYgMHhmZl1cbiAgKTtcbn1cbiJdfQ== |
@@ -5,7 +5,2 @@ /** | ||
* predicate is true for every item in the array. | ||
* | ||
* @export | ||
* @param {any[]} array | ||
* @param {(member: any, index: number) => boolean} predicate | ||
* @returns {boolean} | ||
*/ | ||
@@ -17,7 +12,2 @@ export declare function every(array: any[], predicate: (member: any, index: number) => boolean): boolean; | ||
* for any of the items in the array. | ||
* | ||
* @export | ||
* @param {any[]} array | ||
* @param {(member: any, index: number) => boolean} predicate | ||
* @returns {boolean} | ||
*/ | ||
@@ -28,8 +18,3 @@ export declare function some(array: any[], predicate: (member: any, index: number) => boolean): boolean; | ||
* of calling the value function rather than an item of the array. | ||
* | ||
* @export | ||
* @param {any[]} array | ||
* @param {(member: any, index: number) => any} valueFn | ||
* @returns {*} the first result of `valueFn` that returned true or undefined | ||
*/ | ||
export declare function firstResult(array: any[], valueFn: (member: any, index: number) => any): any; |
@@ -5,7 +5,2 @@ /** | ||
* predicate is true for every item in the array. | ||
* | ||
* @export | ||
* @param {any[]} array | ||
* @param {(member: any, index: number) => boolean} predicate | ||
* @returns {boolean} | ||
*/ | ||
@@ -26,7 +21,2 @@ export function every(array, predicate) { | ||
* for any of the items in the array. | ||
* | ||
* @export | ||
* @param {any[]} array | ||
* @param {(member: any, index: number) => boolean} predicate | ||
* @returns {boolean} | ||
*/ | ||
@@ -46,7 +36,2 @@ export function some(array, predicate) { | ||
* of calling the value function rather than an item of the array. | ||
* | ||
* @export | ||
* @param {any[]} array | ||
* @param {(member: any, index: number) => any} valueFn | ||
* @returns {*} the first result of `valueFn` that returned true or undefined | ||
*/ | ||
@@ -63,2 +48,2 @@ export function firstResult(array, valueFn) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJyYXlzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2FycmF5cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7O0dBU0c7QUFDSCxNQUFNLFVBQVUsS0FBSyxDQUNuQixLQUFZLEVBQ1osU0FBa0Q7SUFFbEQsSUFBSSxLQUFLLEdBQUcsQ0FBQyxDQUFDLENBQUM7SUFDZixJQUFJLE1BQU0sR0FBVyxLQUFLLENBQUMsTUFBTSxDQUFDO0lBRWxDLE9BQU8sRUFBRSxLQUFLLEdBQUcsTUFBTSxFQUFFO1FBQ3ZCLElBQUksQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxFQUFFLEtBQUssQ0FBQyxFQUFFO1lBQ25DLE9BQU8sS0FBSyxDQUFDO1NBQ2Q7S0FDRjtJQUVELE9BQU8sSUFBSSxDQUFDO0FBQ2QsQ0FBQztBQUVEOzs7Ozs7Ozs7R0FTRztBQUNILE1BQU0sVUFBVSxJQUFJLENBQ2xCLEtBQVksRUFDWixTQUFrRDtJQUVsRCxJQUFJLEtBQUssR0FBRyxDQUFDLENBQUMsQ0FBQztJQUNmLElBQUksTUFBTSxHQUFXLEtBQUssQ0FBQyxNQUFNLENBQUM7SUFFbEMsT0FBTyxFQUFFLEtBQUssR0FBRyxNQUFNLEVBQUU7UUFDdkIsSUFBSSxTQUFTLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxFQUFFLEtBQUssQ0FBQyxFQUFFO1lBQ2xDLE9BQU8sSUFBSSxDQUFDO1NBQ2I7S0FDRjtJQUVELE9BQU8sS0FBSyxDQUFDO0FBQ2YsQ0FBQztBQUVEOzs7Ozs7O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JlZGljYXRlOiAobWVtYmVyOiBhbnksIGluZGV4OiBudW1iZXIpID0+IGJvb2xlYW5cbik6IGJvb2xlYW4ge1xuICBsZXQgaW5kZXggPSAtMTtcbiAgbGV0IGxlbmd0aDogbnVtYmVyID0gYXJyYXkubGVuZ3RoO1xuXG4gIHdoaWxlICgrK2luZGV4IDwgbGVuZ3RoKSB7XG4gICAgaWYgKHByZWRpY2F0ZShhcnJheVtpbmRleF0sIGluZGV4KSkge1xuICAgICAgcmV0dXJuIHRydWU7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIGZhbHNlO1xufVxuXG4vKipcbiAqIFRoaXMgZnVuY3Rpb24gaXMgc2ltaWxhciB0byBBcnJheS5wcm90b3R5cGUuZmluZCwgYnV0IGl0IHJldHVybnMgdGhlIHJlc3VsdFxuICogb2YgY2FsbGluZyB0aGUgdmFsdWUgZnVuY3Rpb24gcmF0aGVyIHRoYW4gYW4gaXRlbSBvZiB0aGUgYXJyYXkuXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBmaXJzdFJlc3VsdChcbiAgYXJyYXk6IGFueVtdLFxuICB2YWx1ZUZuOiAobWVtYmVyOiBhbnksIGluZGV4OiBudW1iZXIpID0+IGFueVxuKTogYW55IHtcbiAgbGV0IGluZGV4ID0gLTE7XG4gIGxldCBsZW5ndGg6IG51bWJlciA9IGFycmF5Lmxlbmd0aDtcblxuICB3aGlsZSAoKytpbmRleCA8IGxlbmd0aCkge1xuICAgIGxldCByZXN1bHQgPSB2YWx1ZUZuKGFycmF5W2luZGV4XSwgaW5kZXgpO1xuICAgIGlmIChyZXN1bHQpIHtcbiAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgfVxuICB9XG59XG4iXX0= |
/** | ||
* A simple dictionary interface. | ||
* | ||
* @export | ||
* @interface Dict | ||
* @template T | ||
*/ | ||
@@ -8,0 +4,0 @@ export interface Dict<T> { |
@@ -1,1 +0,1 @@ | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGljdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEEgc2ltcGxlIGRpY3Rpb25hcnkgaW50ZXJmYWNlLlxuICpcbiAqIEBleHBvcnRcbiAqIEBpbnRlcmZhY2UgRGljdFxuICogQHRlbXBsYXRlIFRcbiAqL1xuZXhwb3J0IGludGVyZmFjZSBEaWN0PFQ+IHtcbiAgW2tleTogc3RyaW5nXTogVDtcbn1cbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGljdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEEgc2ltcGxlIGRpY3Rpb25hcnkgaW50ZXJmYWNlLlxuICovXG5leHBvcnQgaW50ZXJmYWNlIERpY3Q8VD4ge1xuICBba2V5OiBzdHJpbmddOiBUO1xufVxuIl19 |
@@ -9,8 +9,3 @@ /** | ||
* arrays | ||
* | ||
* @export | ||
* @param {*} a | ||
* @param {*} b | ||
* @returns {boolean} are `a` and `b` equal? | ||
*/ | ||
export declare function eq(a: any, b: any): boolean; |
@@ -1,2 +0,2 @@ | ||
/* eslint-disable eqeqeq, no-eq-null, valid-jsdoc */ | ||
/* eslint-disable @typescript-eslint/explicit-module-boundary-types, eqeqeq, no-eq-null, valid-jsdoc */ | ||
/** | ||
@@ -10,7 +10,2 @@ * `eq` checks the equality of two objects. | ||
* arrays | ||
* | ||
* @export | ||
* @param {*} a | ||
* @param {*} b | ||
* @returns {boolean} are `a` and `b` equal? | ||
*/ | ||
@@ -80,2 +75,2 @@ export function eq(a, b) { | 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25Qcm9wZXJ0eShpKSkge1xuICAgICAgaWYgKCFlcShhW2ldLCBiW2ldKSkge1xuICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICB9XG4gICAgfVxuICB9XG4gIHJldHVybiB0cnVlO1xufVxuIl19 |
@@ -6,6 +6,2 @@ /** | ||
* Traverses all object properties (but not prototype properties). | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @returns {*} Clone of the input `obj` | ||
*/ | ||
@@ -18,5 +14,3 @@ export declare function clone(obj: any): any; | ||
* | ||
* @export | ||
* @param {*} destination | ||
* @param {*} source | ||
* @deprecated since v0.17 | ||
*/ | ||
@@ -27,6 +21,3 @@ export declare function expose(destination: any, source: any): void; | ||
* | ||
* @export | ||
* @param {*} destination | ||
* @param {...any[]} sources | ||
* @returns {any} | ||
* @deprecated since v0.17 | ||
*/ | ||
@@ -41,3 +32,3 @@ export declare function extend(destination: any, ...sources: any[]): any; | ||
*/ | ||
export declare function toArray(obj: any): any[]; | ||
export declare function toArray(obj: unknown): any[]; | ||
/** | ||
@@ -50,3 +41,3 @@ * Checks whether a value is a non-null object | ||
*/ | ||
export declare function isObject(obj: any): boolean; | ||
export declare function isObject(obj: unknown): boolean; | ||
/** | ||
@@ -59,3 +50,3 @@ * Checks whether an object is null or undefined | ||
*/ | ||
export declare function isNone(obj: any): boolean; | ||
export declare function isNone(obj: unknown): boolean; | ||
/** | ||
@@ -66,6 +57,3 @@ * Merges properties from other objects into a base object. Properties that | ||
* | ||
* @export | ||
* @param {*} base | ||
* @param {...any[]} sources | ||
* @returns {*} | ||
* @deprecated since v0.17 | ||
*/ | ||
@@ -79,7 +67,2 @@ export declare function merge(object: any, ...sources: any[]): any; | ||
* base object that already exist. | ||
* | ||
* @export | ||
* @param {*} base | ||
* @param {...any[]} sources | ||
* @returns {*} | ||
*/ | ||
@@ -91,7 +74,2 @@ export declare function deepMerge(object: any, ...sources: any[]): any; | ||
* Returns any falsy value encountered while traversing the path. | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @param {string[]} path | ||
* @returns {*} | ||
*/ | ||
@@ -107,8 +85,2 @@ export declare function deepGet(obj: any, path: string[]): any; | ||
* requested `value` argument. Otherwise returns `true`. | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @param {string[]} path | ||
* @param {*} value | ||
* @returns {boolean} was the value was actually changed? | ||
*/ | ||
@@ -120,7 +92,3 @@ export declare function deepSet(obj: any, path: string[], value: any): boolean; | ||
* This is a ponyfill for `Object.values`, which is still experimental. | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @returns {any[]} | ||
*/ | ||
export declare function objectValues(obj: any): any[]; |
@@ -1,2 +0,2 @@ | ||
/* eslint-disable valid-jsdoc */ | ||
/* eslint-disable @typescript-eslint/explicit-module-boundary-types, valid-jsdoc */ | ||
/** | ||
@@ -7,6 +7,2 @@ * Clones a value. If the value is an object, a deeply nested clone will be | ||
* Traverses all object properties (but not prototype properties). | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @returns {*} Clone of the input `obj` | ||
*/ | ||
@@ -54,5 +50,3 @@ export function clone(obj) { | ||
* | ||
* @export | ||
* @param {*} destination | ||
* @param {*} source | ||
* @deprecated since v0.17 | ||
*/ | ||
@@ -81,6 +75,3 @@ export function expose(destination, source) { | ||
* | ||
* @export | ||
* @param {*} destination | ||
* @param {...any[]} sources | ||
* @returns {any} | ||
* @deprecated since v0.17 | ||
*/ | ||
@@ -137,6 +128,3 @@ export function extend(destination, ...sources) { | ||
* | ||
* @export | ||
* @param {*} base | ||
* @param {...any[]} sources | ||
* @returns {*} | ||
* @deprecated since v0.17 | ||
*/ | ||
@@ -162,7 +150,2 @@ export function merge(object, ...sources) { | ||
* base object that already exist. | ||
* | ||
* @export | ||
* @param {*} base | ||
* @param {...any[]} sources | ||
* @returns {*} | ||
*/ | ||
@@ -193,7 +176,2 @@ export function deepMerge(object, ...sources) { | ||
* Returns any falsy value encountered while traversing the path. | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @param {string[]} path | ||
* @returns {*} | ||
*/ | ||
@@ -219,8 +197,2 @@ export function deepGet(obj, path) { | ||
* requested `value` argument. Otherwise returns `true`. | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @param {string[]} path | ||
* @param {*} value | ||
* @returns {boolean} was the value was actually changed? | ||
*/ | ||
@@ -250,6 +222,2 @@ export function deepSet(obj, path, value) { | ||
* This is a ponyfill for `Object.values`, which is still experimental. | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @returns {any[]} | ||
*/ | ||
@@ -264,2 +232,2 @@ export function objectValues(obj) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9vYmplY3RzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGdDQUFnQztBQUVoQzs7Ozs7Ozs7O0dBU0c7QUFDSCxNQUFNLFVBQVUsS0FBSyxDQUFDLEdBQVE7SUFDNUIsSUFBSSxHQUFHLEtBQUssU0FBUyxJQUFJLEdBQUcsS0FBSyxJQUFJLElBQUksT0FBTyxHQUFHLEtBQUssUUFBUSxFQUFFO1FBQ2hFLE9BQU8sR0FBRyxDQUFDO0tBQ1o7SUFFRCxJQUFJLEdBQVEsQ0FBQztJQUNiLElBQUksSUFBSSxHQUFHLE1BQU0sQ0FBQyxTQUFTLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUUvQyxJQUFJLElBQUksS0FBSyxlQUFlLEVBQUU7UUFDNUIsR0FBRyxHQUFHLElBQUksSUFBSSxFQUFFLENBQUM7UUFDakIsR0FBRyxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsT0FBTyxFQUFFLENBQUMsQ0FBQztLQUM1QjtTQUFNLElBQUksSUFBSSxLQUFLLGlCQUFpQixFQUFFO1FBQ3JDLEdBQUcsR0FBRyxHQUF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b24gY2xvbmUob2JqOiBhbnkpOiBhbnkge1xuICBpZiAob2JqID09PSB1bmRlZmluZWQgfHwgb2JqID09PSBudWxsIHx8IHR5cGVvZiBvYmogIT09ICdvYmplY3QnKSB7XG4gICAgcmV0dXJuIG9iajtcbiAgfVxuXG4gIGxldCBkdXA6IGFueTtcbiAgbGV0IHR5cGUgPSBPYmplY3QucHJvdG90eXBlLnRvU3RyaW5nLmNhbGwob2JqKTtcblxuICBpZiAodHlwZSA9PT0gJ1tvYmplY3QgRGF0ZV0nKSB7XG4gICAgZHVwID0gbmV3IERhdGUoKTtcbiAgICBkdXAuc2V0VGltZShvYmouZ2V0VGltZSgpKTtcbiAgfSBlbHNlIGlmICh0eXBlID09PSAnW29iamVjdCBSZWdFeHBdJykge1xuICAgIGR1cCA9IG9iai5jb25zdHJ1Y3RvcihvYmopO1xuICB9IGVsc2UgaWYgKHR5cGUgPT09ICdbb2JqZWN0IEFycmF5XScpIHtcbiAgICBkdXAgPSBbXTtcbiAgICBmb3IgKGxldCBpID0gMCwgbGVuID0gb2JqLmxlbmd0aDsgaSA8IGxlbjsgaSsrKSB7XG4gICAgICBpZiAob2JqLmhhc093blByb3BlcnR5KGkpKSB7XG4gICAgICAgIGR1cC5wdXNoKGNsb25lKG9ialtpXSkpO1xuICAgICAgfVxuICAgIH1cbiAgfSBlbHNlIHtcbiAgICBsZXQgdmFsO1xuXG4gICAgZHVwID0ge307XG4gICAgZm9yIChsZXQga2V5IGluIG9iaikge1xuICAgICAgaWYgKG9iai5oYXNPd25Qcm9wZXJ0eShrZXkpKSB7XG4gICAgICAgIHZhbCA9IG9ialtrZXldO1xuICAgICAgICBpZiAodHlwZW9mIHZhbCA9PT0gJ29iamVjdCcpIHtcbiAgICAgICAgICB2YWwgPSBjbG9uZSh2YWwpO1xuICAgICAgICB9XG4gICAgICAgIGR1cFtrZXldID0gdmFsO1xuICAgICAgfVxuICAgIH1cbiAgfVxuICByZXR1cm4gZHVwO1xufVxuXG4vKipcbiAq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W5lZCkge1xuICAgICAgcHRyW3NlZ21lbnRdID0gdHlwZW9mIHNlZ21lbnQgPT09ICdudW1iZXInID8gW10gOiB7fTtcbiAgICB9XG4gICAgcHRyID0gcHRyW3NlZ21lbnRdO1xuICB9XG4gIGlmIChwdHJbcHJvcF0gPT09IHZhbHVlKSB7XG4gICAgcmV0dXJuIGZhbHNlO1xuICB9IGVsc2Uge1xuICAgIHB0cltwcm9wXSA9IHZhbHVlO1xuICAgIHJldHVybiB0cnVlO1xuICB9XG59XG5cbi8qKlxuICogRmluZCBhbiBhcnJheSBvZiB2YWx1ZXMgdGhhdCBjb3JyZXNwb25kIHRvIHRoZSBrZXlzIG9mIGFuIG9iamVjdC5cbiAqXG4gKiBUaGlzIGlzIGEgcG9ueWZpbGwgZm9yIGBPYmplY3QudmFsdWVzYCwgd2hpY2ggaXMgc3RpbGwgZXhwZXJpbWVudGFsLlxuICovXG5leHBvcnQgZnVuY3Rpb24gb2JqZWN0VmFsdWVzKG9iajogYW55KTogYW55W10ge1xuICBpZiAoT2JqZWN0LnZhbHVlcykge1xuICAgIHJldHVybiBPYmplY3QudmFsdWVzKG9iaik7XG4gIH0gZWxzZSB7XG4gICAgcmV0dXJuIE9iamVjdC5rZXlzKG9iaikubWFwKChrKSA9PiBvYmpba10pO1xuICB9XG59XG4iXX0= |
@@ -10,6 +10,3 @@ /** | ||
* generator. | ||
* | ||
* @export | ||
* @returns {string} | ||
*/ | ||
export declare function uuid(): string; |
@@ -14,5 +14,2 @@ /** | ||
* generator. | ||
* | ||
* @export | ||
* @returns {string} | ||
*/ | ||
@@ -45,2 +42,2 @@ export function uuid() { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXVpZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dWlkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7OztJQUtJO0FBRUosTU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4gMjQpICYgMHhmZl1cbiAgKTtcbn1cbiJdfQ== |
{ | ||
"name": "@orbit/utils", | ||
"version": "0.17.0-beta.7", | ||
"version": "0.17.0-beta.8", | ||
"description": "Core utilities for Orbit.", | ||
@@ -21,3 +21,3 @@ "contributors": [ | ||
"build": "rm -rf ./dist && yarn build:modules && yarn build:commonjs", | ||
"build:modules": "tsc", | ||
"build:modules": "tsc --project ./tsconfig.modules.json", | ||
"build:commonjs": "tsc --project ./tsconfig.commonjs.json", | ||
@@ -35,3 +35,3 @@ "clean": "git clean -x -f", | ||
"prettier": "@orbit/prettier-config", | ||
"gitHead": "9b03a0671e6a3378cf5d3186f4d158aa1fb370fd" | ||
"gitHead": "1b5dd2b6a639de509e9e2b10a42cfebbc843d3eb" | ||
} |
@@ -5,7 +5,2 @@ /** | ||
* predicate is true for every item in the array. | ||
* | ||
* @export | ||
* @param {any[]} array | ||
* @param {(member: any, index: number) => boolean} predicate | ||
* @returns {boolean} | ||
*/ | ||
@@ -32,7 +27,2 @@ export function every( | ||
* for any of the items in the array. | ||
* | ||
* @export | ||
* @param {any[]} array | ||
* @param {(member: any, index: number) => boolean} predicate | ||
* @returns {boolean} | ||
*/ | ||
@@ -58,7 +48,2 @@ export function some( | ||
* of calling the value function rather than an item of the array. | ||
* | ||
* @export | ||
* @param {any[]} array | ||
* @param {(member: any, index: number) => any} valueFn | ||
* @returns {*} the first result of `valueFn` that returned true or undefined | ||
*/ | ||
@@ -65,0 +50,0 @@ export function firstResult( |
/** | ||
* A simple dictionary interface. | ||
* | ||
* @export | ||
* @interface Dict | ||
* @template T | ||
*/ | ||
@@ -8,0 +4,0 @@ export interface Dict<T> { |
@@ -1,2 +0,2 @@ | ||
/* eslint-disable eqeqeq, no-eq-null, valid-jsdoc */ | ||
/* eslint-disable @typescript-eslint/explicit-module-boundary-types, eqeqeq, no-eq-null, valid-jsdoc */ | ||
@@ -11,7 +11,2 @@ /** | ||
* arrays | ||
* | ||
* @export | ||
* @param {*} a | ||
* @param {*} b | ||
* @returns {boolean} are `a` and `b` equal? | ||
*/ | ||
@@ -18,0 +13,0 @@ export function eq(a: any, b: any): boolean { |
@@ -1,2 +0,2 @@ | ||
/* eslint-disable valid-jsdoc */ | ||
/* eslint-disable @typescript-eslint/explicit-module-boundary-types, valid-jsdoc */ | ||
@@ -8,6 +8,2 @@ /** | ||
* Traverses all object properties (but not prototype properties). | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @returns {*} Clone of the input `obj` | ||
*/ | ||
@@ -56,5 +52,3 @@ export function clone(obj: any): any { | ||
* | ||
* @export | ||
* @param {*} destination | ||
* @param {*} source | ||
* @deprecated since v0.17 | ||
*/ | ||
@@ -83,6 +77,3 @@ export function expose(destination: any, source: any): void { | ||
* | ||
* @export | ||
* @param {*} destination | ||
* @param {...any[]} sources | ||
* @returns {any} | ||
* @deprecated since v0.17 | ||
*/ | ||
@@ -107,3 +98,3 @@ export function extend(destination: any, ...sources: any[]): any { | ||
*/ | ||
export function toArray(obj: any): any[] { | ||
export function toArray(obj: unknown): any[] { | ||
if (isNone(obj)) { | ||
@@ -123,3 +114,3 @@ return []; | ||
*/ | ||
export function isObject(obj: any): boolean { | ||
export function isObject(obj: unknown): boolean { | ||
return obj !== null && typeof obj === 'object'; | ||
@@ -135,3 +126,3 @@ } | ||
*/ | ||
export function isNone(obj: any): boolean { | ||
export function isNone(obj: unknown): boolean { | ||
return obj === undefined || obj === null; | ||
@@ -145,6 +136,3 @@ } | ||
* | ||
* @export | ||
* @param {*} base | ||
* @param {...any[]} sources | ||
* @returns {*} | ||
* @deprecated since v0.17 | ||
*/ | ||
@@ -171,7 +159,2 @@ export function merge(object: any, ...sources: any[]): any { | ||
* base object that already exist. | ||
* | ||
* @export | ||
* @param {*} base | ||
* @param {...any[]} sources | ||
* @returns {*} | ||
*/ | ||
@@ -204,7 +187,2 @@ export function deepMerge(object: any, ...sources: any[]): any { | ||
* Returns any falsy value encountered while traversing the path. | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @param {string[]} path | ||
* @returns {*} | ||
*/ | ||
@@ -233,8 +211,2 @@ export function deepGet(obj: any, path: string[]): any { | ||
* requested `value` argument. Otherwise returns `true`. | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @param {string[]} path | ||
* @param {*} value | ||
* @returns {boolean} was the value was actually changed? | ||
*/ | ||
@@ -264,6 +236,2 @@ export function deepSet(obj: any, path: string[], value: any): boolean { | ||
* This is a ponyfill for `Object.values`, which is still experimental. | ||
* | ||
* @export | ||
* @param {*} obj | ||
* @returns {any[]} | ||
*/ | ||
@@ -270,0 +238,0 @@ export function objectValues(obj: any): any[] { |
@@ -17,5 +17,2 @@ /** | ||
* generator. | ||
* | ||
* @export | ||
* @returns {string} | ||
*/ | ||
@@ -22,0 +19,0 @@ export function uuid(): string { |
@@ -6,3 +6,6 @@ { | ||
"outDir": "./dist/commonjs" | ||
} | ||
}, | ||
"include": [ | ||
"src/**/*.ts" | ||
] | ||
} |
{ | ||
"extends": "../../../tsconfig", | ||
"compilerOptions": { | ||
"strict": true, | ||
"outDir": "./dist/modules" | ||
}, | ||
"include": [ | ||
"src/**/*.ts" | ||
"src/**/*.ts", | ||
"test/**/*.ts" | ||
] | ||
} |
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
43
120260
1769