@pushrocks/lik
Advanced tools
Comparing version 4.0.21 to 4.0.22
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -24,3 +24,3 @@ /** | ||
addAllFromOther(fastMapArg: FastMap<T>): void; | ||
find(findFunction: (mapItemArg: T) => Promise<boolean>): Promise<void>; | ||
find(findFunctionArg: (mapItemArg: T) => Promise<boolean>): Promise<T>; | ||
} |
@@ -70,4 +70,9 @@ "use strict"; | ||
} | ||
async find(findFunction) { | ||
async find(findFunctionArg) { | ||
for (const key of this.getKeys()) { | ||
const item = this.getByKey(key); | ||
const findFunctionResult = await findFunctionArg(item); | ||
if (findFunctionResult) { | ||
return item; | ||
} | ||
} | ||
@@ -77,2 +82,2 @@ } | ||
exports.FastMap = FastMap; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLmZhc3RtYXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9saWsuZmFzdG1hcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFFQTs7R0FFRztBQUNILE1BQWEsT0FBTztJQUFwQjtRQUNVLGNBQVMsR0FBeUIsRUFBRSxDQUFDO0lBaUYvQyxDQUFDO0lBL0VRLFdBQVcsQ0FBQyxNQUFjO1FBQy9CLE9BQU8sSUFBSSxDQUFDLFNBQVMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUM7SUFDL0MsQ0FBQztJQUVNLFFBQVEsQ0FDYixNQUFjLEVBQ2QsU0FBWSxFQU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sS0FBSyxDQUFDLElBQUksQ0FBQyxlQUFvRDtRQUNwRSxLQUFLLE1BQU0sR0FBRyxJQUFJLElBQUksQ0FBQyxPQUFPLEVBQUUsRUFBRTtZQUNoQyxNQUFNLElBQUksR0FBRyxJQUFJLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQyxDQUFDO1lBQ2hDLE1BQU0sa0JBQWtCLEdBQUcsTUFBTSxlQUFlLENBQUMsSUFBSSxDQUFDLENBQUM7WUFDdkQsSUFBSSxrQkFBa0IsRUFBRTtnQkFDdEIsT0FBTyxJQUFJLENBQUM7YUFDYjtTQUNGO0lBQ0gsQ0FBQztDQUNGO0FBdEZELDBCQXNGQyJ9 |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -90,2 +90,2 @@ return result; | ||
exports.Interest = Interest; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLmludGVyZXN0bWFwLmludGVyZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbGlrLmludGVyZXN0bWFwLmludGVyZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSx1REFBeUM7QUFTekMsTUFBYSxRQUFRO0lBbUNuQjs7T0FFRztJQUNILFlBQ0UsY0FBaUUsRUFDakUsV0FBeUIsRUFDekIsaUJBQXdELEVBQ3hELFVBQXFEOztRQXBDaEQscUJBQWdCLEdBQUcsSUFBSSxPQUFPLENBQUMsU0FBUyxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUN0RCxpQkF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09BRUc7SUFDSSxnQkFBZ0IsQ0FBQyxTQUFpQztRQUN2RCxJQUFJLENBQUMsWUFBWSxHQUFHLElBQUksQ0FBQztRQUN6QixJQUFJLENBQUMsaUJBQWlCLEdBQUcsRUFBRSxDQUFDO1FBQzVCLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxPQUFPLENBQUMsU0FBUyxDQUFDLENBQUM7SUFDM0MsQ0FBQztJQXdCRCxrQ0FBa0M7SUFDbEMsdUJBQXVCO0lBQ3ZCLGtDQUFrQztJQUVsQzs7T0FFRztJQUNJLE9BQU87UUFDWixJQUFJLENBQUMsY0FBYyxDQUFDLGNBQWMsQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUN6QyxJQUFJLENBQUMsSUFBSSxDQUFDLFlBQVksSUFBSSxJQUFJLENBQUMsT0FBTyxDQUFDLG1CQUFtQixFQUFFO1lBQzFELElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLG1CQUFtQixDQUFDLENBQUM7U0FDekQ7SUFDSCxDQUFDO0lBRUQ7O09BRUc7SUFDSSxRQUFRO1FBQ2IsSUFBSSxDQUFDLGdCQUFnQixDQUFDLEtBQUssRUFBRSxDQUFDO0lBQ2hDLENBQUM7SUFFRDs7T0FFRztJQUNJLEtBQUs7UUFDVixJQUFJLENBQUMsZ0JBQWdCLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDaEMsQ0FBQztDQUNGO0FBcEZELDRCQW9GQyJ9 |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -26,3 +26,3 @@ return result; | ||
const lik_fastmap_1 = require("./lik.fastmap"); | ||
exports.uni = (prefix = 'uni') => { | ||
const uni = (prefix = 'uni') => { | ||
return `${prefix}xxxxxxxxxxx`.replace(/[xy]/g, (c) => { | ||
@@ -34,2 +34,3 @@ const r = (Math.random() * 16) | 0; | ||
}; | ||
exports.uni = uni; | ||
/** | ||
@@ -83,3 +84,3 @@ * allows keeping track of objects | ||
// otherwise lets create it | ||
const uniqueKey = exports.uni('key'); | ||
const uniqueKey = (0, exports.uni)('key'); | ||
this.addMappedUnique(uniqueKey, objectArg); | ||
@@ -226,2 +227,2 @@ this.eventSubject.next({ | ||
exports.ObjectMap = ObjectMap; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLm9iamVjdG1hcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL2xpay5vYmplY3RtYXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHVEQUF5QztBQUN6QywrQ0FBd0M7QUFFM0IsUUFBQSxHQUFHLEdBQUcsQ0FBQyxTQUFpQixLQUFLLEVBQUUsRUFBRTtJQUM1QyxPQUFPLEdBQUcsTUFBTSxhQUFhLENBQUMsT0FBTyxDQUFDLE9BQU8sRUFBRSxDQUFDLENBQUMsRUFBRSxFQUFFO1FBQ25ELE1BQU0sQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxHQUFHLEVBQUUsQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUNuQyxNQUFNLENBQUMsR0FBRyxDQUFDLEtBQUssR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zlDLGtCQUFrQixDQUFDLE9BQU8sQ0FBQyxlQUFlLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQ3pELGtCQUFrQixDQUFDLE9BQU8sQ0FBQyxlQUFlLENBQUMsWUFBWSxDQUFDLE9BQU8sQ0FBQyxDQUFDO1FBQ2pFLE9BQU8sa0JBQWtCLENBQUM7SUFDNUIsQ0FBQztJQUVEOzs7O09BSUc7SUFDSSxlQUFlLENBQUMsWUFBMEI7UUFDL0MsSUFBSSxDQUFDLE9BQU8sQ0FBQyxlQUFlLENBQUMsWUFBWSxDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQ3JELENBQUM7Q0FDRjtBQTNNRCw4QkEyTUMifQ== |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
@@ -20,7 +20,7 @@ export declare class Tree<T> { | ||
ancestorsToArray(objectArg: T, optionsArg: any): T[]; | ||
treeToArray(rootArg: any, optionsArg: any): T[]; | ||
treeToArray(rootArg: T, optionsArg: any): T[]; | ||
childrenIterator(parentArg: T, optionsArg: any): T; | ||
previousSiblingsIterator(objectArg: any): T; | ||
previousSiblingsIterator(objectArg: T): T; | ||
nextSiblingsIterator(objectArg: T): any; | ||
ancestorsIterator(objectArg: any): void; | ||
ancestorsIterator(objectArg: T): void; | ||
treeIterator(rootArg: T, optionsArg: any): Iterable<T>; | ||
@@ -34,3 +34,3 @@ index(childArg: T): number; | ||
prependChild(referenceObjectArg: T, newObjectArg: T): T; | ||
appendChild(referenceObjectArg: any, newObjectArg: any): any; | ||
appendChild(referenceObjectArg: T, newObjectArg: T): any; | ||
/** | ||
@@ -40,3 +40,3 @@ * returns a branch of the tree as JSON | ||
*/ | ||
toJsonWithHierachy(rootElement: any): void; | ||
toJsonWithHierachy(rootElement: T): void; | ||
/** | ||
@@ -46,3 +46,3 @@ * builds a tree from a JSON with hierachy | ||
*/ | ||
fromJsonWithHierachy(rootElement: any): void; | ||
fromJsonWithHierachy(rootElement: T): void; | ||
} |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -134,2 +134,2 @@ return result; | ||
exports.Tree = Tree; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLnRyZWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9saWsudHJlZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsdURBQXlDO0FBRXpDLE1BQWEsSUFBSTtJQUVmO1FB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BQWUsRUFBRSxZQUFZLENBQUMsQ0FBQztJQUNwRSxDQUFDO0lBRUQsWUFBWSxDQUFDLGtCQUFxQixFQUFFLFlBQWU7UUFDakQsT0FBTyxJQUFJLENBQUMsVUFBVSxDQUFDLFlBQVksQ0FBQyxrQkFBa0IsRUFBRSxZQUFZLENBQUMsQ0FBQztJQUN4RSxDQUFDO0lBRUQsV0FBVyxDQUFDLGtCQUFxQixFQUFFLFlBQWU7UUFDaEQsT0FBTyxJQUFJLENBQUMsVUFBVSxDQUFDLFdBQVcsQ0FBQyxrQkFBa0IsRUFBRSxZQUFZLENBQUMsQ0FBQztJQUN2RSxDQUFDO0lBRUQsOENBQThDO0lBQzlDLDRDQUE0QztJQUM1Qyw4Q0FBOEM7SUFFOUM7OztPQUdHO0lBQ0gsa0JBQWtCLENBQUMsV0FBYztRQUMvQixNQUFNLFlBQVksR0FBRyxJQUFJLENBQUMsWUFBWSxDQUFDLFdBQVcsRUFBRSxFQUFFLENBQUMsQ0FBQztRQUN4RCxLQUFLLE1BQU0sUUFBUSxJQUFJLFlBQVksRUFBRTtZQUNuQyxPQUFPLENBQUMsR0FBRyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1NBQ3ZCO0lBQ0gsQ0FBQztJQUVEOzs7T0FHRztJQUNILG9CQUFvQixDQUFDLFdBQWMsSUFBRyxDQUFDO0NBQ3hDO0FBMUlELG9CQTBJQyJ9 |
{ | ||
"name": "@pushrocks/lik", | ||
"version": "4.0.21", | ||
"version": "4.0.22", | ||
"private": false, | ||
@@ -23,8 +23,8 @@ "description": "light little helpers for node", | ||
"devDependencies": { | ||
"@gitzone/tsbuild": "^2.1.25", | ||
"@gitzone/tsbundle": "^1.0.78", | ||
"@gitzone/tsrun": "^1.2.12", | ||
"@gitzone/tstest": "^1.0.52", | ||
"@pushrocks/tapbundle": "^3.2.9", | ||
"@types/node": "^14.14.9", | ||
"@gitzone/tsbuild": "^2.1.27", | ||
"@gitzone/tsbundle": "^1.0.87", | ||
"@gitzone/tsrun": "^1.2.17", | ||
"@gitzone/tstest": "^1.0.57", | ||
"@pushrocks/tapbundle": "^3.2.14", | ||
"@types/node": "^16.9.1", | ||
"tslint": "^6.1.3", | ||
@@ -34,8 +34,8 @@ "tslint-config-prettier": "^1.18.0" | ||
"dependencies": { | ||
"@pushrocks/smartdelay": "^2.0.10", | ||
"@pushrocks/smartdelay": "^2.0.13", | ||
"@pushrocks/smartmatch": "^1.0.7", | ||
"@pushrocks/smartpromise": "^3.1.3", | ||
"@pushrocks/smartpromise": "^3.1.6", | ||
"@pushrocks/smartrx": "^2.0.19", | ||
"@pushrocks/smarttime": "^3.0.37", | ||
"@types/minimatch": "^3.0.3", | ||
"@pushrocks/smarttime": "^3.0.38", | ||
"@types/minimatch": "^3.0.5", | ||
"symbol-tree": "^3.2.4" | ||
@@ -42,0 +42,0 @@ }, |
@@ -83,7 +83,11 @@ import * as plugins from './lik.plugins'; | ||
public async find(findFunction: (mapItemArg: T) => Promise<boolean>) { | ||
public async find(findFunctionArg: (mapItemArg: T) => Promise<boolean>) { | ||
for (const key of this.getKeys()) { | ||
const item = this.getByKey(key); | ||
const findFunctionResult = await findFunctionArg(item); | ||
if (findFunctionResult) { | ||
return item; | ||
} | ||
} | ||
} | ||
} |
@@ -65,11 +65,11 @@ import * as plugins from './lik.plugins'; | ||
treeToArray(rootArg, optionsArg: any): T[] { | ||
treeToArray(rootArg: T, optionsArg: any): T[] { | ||
return this.symbolTree.treeToArray(rootArg, optionsArg); | ||
} | ||
childrenIterator(parentArg: T, optionsArg): T { | ||
childrenIterator(parentArg: T, optionsArg: any): T { | ||
return this.symbolTree.childrenIterator(parentArg, optionsArg); | ||
} | ||
previousSiblingsIterator(objectArg): T { | ||
previousSiblingsIterator(objectArg: T): T { | ||
return this.symbolTree.previousSiblingsIterator(objectArg); | ||
@@ -82,7 +82,7 @@ } | ||
ancestorsIterator(objectArg) { | ||
ancestorsIterator(objectArg: T) { | ||
this.symbolTree.ancestorsIterator(); | ||
} | ||
treeIterator(rootArg: T, optionsArg): Iterable<T> { | ||
treeIterator(rootArg: T, optionsArg: any): Iterable<T> { | ||
return this.symbolTree.treeIterator(rootArg); | ||
@@ -119,3 +119,3 @@ } | ||
appendChild(referenceObjectArg, newObjectArg) { | ||
appendChild(referenceObjectArg: T, newObjectArg: T) { | ||
return this.symbolTree.appendChild(referenceObjectArg, newObjectArg); | ||
@@ -132,3 +132,3 @@ } | ||
*/ | ||
toJsonWithHierachy(rootElement) { | ||
toJsonWithHierachy(rootElement: T) { | ||
const treeIterable = this.treeIterator(rootElement, {}); | ||
@@ -144,3 +144,3 @@ for (const treeItem of treeIterable) { | ||
*/ | ||
fromJsonWithHierachy(rootElement) {} | ||
fromJsonWithHierachy(rootElement: T) {} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
1572882
14188
Updated@pushrocks/smarttime@^3.0.38
Updated@types/minimatch@^3.0.5