@abp/utils
Advanced tools
Comparing version 2.5.0 to 2.6.0
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"ListNode":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":9,"character":21,"context":{"typeName":"T"},"module":"./lib/linked-list"}]}]}},"LinkedList":{"__symbolic":"class","arity":1,"members":{"attach":[{"__symbolic":"method"}],"attachMany":[{"__symbolic":"method"}],"detach":[{"__symbolic":"method"}],"add":[{"__symbolic":"method"}],"addMany":[{"__symbolic":"method"}],"addAfter":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"addBefore":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"addByIndex":[{"__symbolic":"method"}],"addHead":[{"__symbolic":"method"}],"addTail":[{"__symbolic":"method"}],"addManyAfter":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"addManyBefore":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"addManyByIndex":[{"__symbolic":"method"}],"addManyHead":[{"__symbolic":"method"}],"addManyTail":[{"__symbolic":"method"}],"drop":[{"__symbolic":"method"}],"dropMany":[{"__symbolic":"method"}],"dropByIndex":[{"__symbolic":"method"}],"dropByValue":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"dropByValueAll":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"dropHead":[{"__symbolic":"method"}],"dropTail":[{"__symbolic":"method"}],"dropManyByIndex":[{"__symbolic":"method"}],"dropManyHead":[{"__symbolic":"method"}],"dropManyTail":[{"__symbolic":"method"}],"find":[{"__symbolic":"method"}],"findIndex":[{"__symbolic":"method"}],"forEach":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"indexOf":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"toArray":[{"__symbolic":"method"}],"toNodeArray":[{"__symbolic":"method"}],"toString":[{"__symbolic":"method"}]}},"ListMapperFn":{"__symbolic":"interface"},"ListComparisonFn":{"__symbolic":"interface"},"ListIteratorFn":{"__symbolic":"interface"}},"origins":{"ListNode":"./lib/linked-list","LinkedList":"./lib/linked-list","ListMapperFn":"./lib/linked-list","ListComparisonFn":"./lib/linked-list","ListIteratorFn":"./lib/linked-list"},"importAs":"@abp/utils"} | ||
{"__symbolic":"module","version":4,"metadata":{"ListNode":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":7,"character":37,"context":{"typeName":"T"},"module":"./lib/linked-list"}]}]}},"LinkedList":{"__symbolic":"class","arity":1,"members":{"attach":[{"__symbolic":"method"}],"attachMany":[{"__symbolic":"method"}],"detach":[{"__symbolic":"method"}],"add":[{"__symbolic":"method"}],"addMany":[{"__symbolic":"method"}],"addAfter":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"addBefore":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"addByIndex":[{"__symbolic":"method"}],"addHead":[{"__symbolic":"method"}],"addTail":[{"__symbolic":"method"}],"addManyAfter":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"addManyBefore":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"addManyByIndex":[{"__symbolic":"method"}],"addManyHead":[{"__symbolic":"method"}],"addManyTail":[{"__symbolic":"method"}],"drop":[{"__symbolic":"method"}],"dropMany":[{"__symbolic":"method"}],"dropByIndex":[{"__symbolic":"method"}],"dropByValue":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"dropByValueAll":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"dropHead":[{"__symbolic":"method"}],"dropTail":[{"__symbolic":"method"}],"dropManyByIndex":[{"__symbolic":"method"}],"dropManyHead":[{"__symbolic":"method"}],"dropManyTail":[{"__symbolic":"method"}],"find":[{"__symbolic":"method"}],"findIndex":[{"__symbolic":"method"}],"forEach":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"indexOf":[{"__symbolic":"method"},{"__symbolic":"method"},{"__symbolic":"method"}],"toArray":[{"__symbolic":"method"}],"toNodeArray":[{"__symbolic":"method"}],"toString":[{"__symbolic":"method"}]}},"ListMapperFn":{"__symbolic":"interface"},"ListComparisonFn":{"__symbolic":"interface"},"ListIteratorFn":{"__symbolic":"interface"}},"origins":{"ListNode":"./lib/linked-list","LinkedList":"./lib/linked-list","ListMapperFn":"./lib/linked-list","ListComparisonFn":"./lib/linked-list","ListIteratorFn":"./lib/linked-list"},"importAs":"@abp/utils"} |
@@ -542,5 +542,5 @@ (function (global, factory) { | ||
}; | ||
LinkedList.prototype.forEach = function (callback) { | ||
LinkedList.prototype.forEach = function (iteratorFn) { | ||
for (var node = this.first, position = 0; node; position++, node = node.next) { | ||
callback(node, position, this); | ||
iteratorFn(node, position, this); | ||
} | ||
@@ -547,0 +547,0 @@ }; |
@@ -256,5 +256,5 @@ /* tslint:disable:no-non-null-assertion */ | ||
} | ||
forEach(callback) { | ||
forEach(iteratorFn) { | ||
for (let node = this.first, position = 0; node; position++, node = node.next) { | ||
callback(node, position, this); | ||
iteratorFn(node, position, this); | ||
} | ||
@@ -290,2 +290,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlua2VkLWxpc3QuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL3V0aWxzLyIsInNvdXJjZXMiOlsibGliL2xpbmtlZC1saXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDBDQUEwQztBQUUxQyxPQUFPLE9BQU8sTUFBTSxjQUFjLENBQUM7QUFFbkMsTUFBTSxPQUFPLFFBQVE7SUFLbkIsWUFBWSxLQUFRO1FBQ2xCLElBQUksQ0FBQyxLQUFLLEdBQUcsS0FBSyxDQU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W55KSA9PiBib29sZWFuO1xyXG5cclxuZXhwb3J0IHR5cGUgTGlzdEl0ZXJhdG9yRm48VCA9IGFueSwgUiA9IGJvb2xlYW4+ID0gKFxyXG4gIG5vZGU6IExpc3ROb2RlPFQ+LFxyXG4gIGluZGV4PzogbnVtYmVyLFxyXG4gIGxpc3Q/OiBMaW5rZWRMaXN0LFxyXG4pID0+IFI7XHJcbiJdfQ== |
@@ -323,5 +323,5 @@ /* tslint:disable:no-non-null-assertion */ | ||
}; | ||
LinkedList.prototype.forEach = function (callback) { | ||
LinkedList.prototype.forEach = function (iteratorFn) { | ||
for (var node = this.first, position = 0; node; position++, node = node.next) { | ||
callback(node, position, this); | ||
iteratorFn(node, position, this); | ||
} | ||
@@ -376,2 +376,2 @@ }; | ||
export { LinkedList }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlua2VkLWxpc3QuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL3V0aWxzLyIsInNvdXJjZXMiOlsibGliL2xpbmtlZC1saXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDBDQUEwQzs7QUFFMUMsT0FBTyxPQUFPLE1BQU0sY0FBYyxDQUFDO0FBRW5DO0lBS0Usa0JBQVksS0FBUTtRQUNsQixJQUFJLENBQUMsS0FBSyxHQUFHLEtBQUssQ0FBQztJQUNyQixDQUFDO0lBQ0gsZUFBQztBQUFELENBQUMsQUFSRCxJQVFDOztBQUVEO0lBQUE7UUFHVSxTQUFJLEdBQUcsQ0FBQyxDQUFDO0lBK1huQixDQUFDO0lBN1hDLHNCQUFJLDRCQUFJO2FBQVI7WUFDRSxPQUFPLElBQUksQ0FBQyxLQUFLLENBQUM7UUFDcEIsQ0FBQzs7O09BQUE7SUFDRCxzQkFBSSw0QkFBSTthQUFSO1lBQ0UsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDO1FBQ25CLENBQUM7OztPQUFBO0lBQ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W4oJyA8LT4gJyk7XHJcbiAgfVxyXG5cclxuICAvLyBDYW5ub3QgdXNlIEdlbmVyYXRvciB0eXBlIGJlY2F1c2Ugb2YgbmctcGFja2FnclxyXG4gICpbU3ltYm9sLml0ZXJhdG9yXSgpOiBhbnkge1xyXG4gICAgZm9yIChsZXQgbm9kZSA9IHRoaXMuZmlyc3QsIHBvc2l0aW9uID0gMDsgbm9kZTsgcG9zaXRpb24rKywgbm9kZSA9IG5vZGUubmV4dCkge1xyXG4gICAgICB5aWVsZCBub2RlLnZhbHVlO1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG5cclxuZXhwb3J0IHR5cGUgTGlzdE1hcHBlckZuPFQgPSBhbnk+ID0gKHZhbHVlOiBUKSA9PiBhbnk7XHJcblxyXG5leHBvcnQgdHlwZSBMaXN0Q29tcGFyaXNvbkZuPFQgPSBhbnk+ID0gKHZhbHVlMTogVCwgdmFsdWUyOiBhbnkpID0+IGJvb2xlYW47XHJcblxyXG5leHBvcnQgdHlwZSBMaXN0SXRlcmF0b3JGbjxUID0gYW55LCBSID0gYm9vbGVhbj4gPSAoXHJcbiAgbm9kZTogTGlzdE5vZGU8VD4sXHJcbiAgaW5kZXg/OiBudW1iZXIsXHJcbiAgbGlzdD86IExpbmtlZExpc3QsXHJcbikgPT4gUjtcclxuIl19 |
@@ -257,5 +257,5 @@ import compare from 'just-compare'; | ||
} | ||
forEach(callback) { | ||
forEach(iteratorFn) { | ||
for (let node = this.first, position = 0; node; position++, node = node.next) { | ||
callback(node, position, this); | ||
iteratorFn(node, position, this); | ||
} | ||
@@ -262,0 +262,0 @@ } |
@@ -323,5 +323,5 @@ import { __spread, __generator } from 'tslib'; | ||
}; | ||
LinkedList.prototype.forEach = function (callback) { | ||
LinkedList.prototype.forEach = function (iteratorFn) { | ||
for (var node = this.first, position = 0; node; position++, node = node.next) { | ||
callback(node, position, this); | ||
iteratorFn(node, position, this); | ||
} | ||
@@ -328,0 +328,0 @@ }; |
@@ -69,3 +69,3 @@ export declare class ListNode<T = any> { | ||
findIndex(predicate: ListIteratorFn<T>): number; | ||
forEach<R = boolean>(callback: ListIteratorFn<T, R>): void; | ||
forEach<R = boolean>(iteratorFn: ListIteratorFn<T, R>): void; | ||
get(position: number): ListNode<T> | undefined; | ||
@@ -72,0 +72,0 @@ indexOf(value: T): number; |
{ | ||
"name": "@abp/utils", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"publishConfig": { | ||
@@ -23,3 +23,3 @@ "access": "public" | ||
}, | ||
"gitHead": "a9a36b8a4681df04377497addf94b15e6c521664" | ||
"gitHead": "03238c9aa7d4090b7c6ae9cc8c790bc0545501eb" | ||
} |
{ | ||
"name": "@abp/utils", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"scripts": { | ||
@@ -58,3 +58,3 @@ "prepublish": "yarn install --ignore-scripts && node prepublish.js", | ||
}, | ||
"gitHead": "a9a36b8a4681df04377497addf94b15e6c521664" | ||
"gitHead": "03238c9aa7d4090b7c6ae9cc8c790bc0545501eb" | ||
} |
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
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
287187