Comparing version 0.1.5 to 0.1.6
{ | ||
"name": "cakken", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -22,3 +22,3 @@ import { Iterator } from './iterator.interface'; | ||
public build(): IReducingComponent<S, T> { | ||
public build(): Chain<S, T> { | ||
@@ -37,3 +37,3 @@ this.validate(); | ||
} | ||
return this.root; | ||
return this; | ||
} | ||
@@ -40,0 +40,0 @@ |
@@ -7,4 +7,5 @@ import { Iterator } from './iterator.interface'; | ||
add(items: T[]): void { | ||
add(items: T[]): Iterator<T> { | ||
this.itemSequence.push(...items); | ||
return this; | ||
} | ||
@@ -23,5 +24,6 @@ peek(): T { | ||
} | ||
setAll(sequence: T[]): void { | ||
setAll(sequence: T[]): Iterator<T> { | ||
this.itemSequence = sequence; | ||
return this; | ||
} | ||
} |
@@ -7,3 +7,2 @@ import { Iterator} from './iterator.interface'; | ||
canHandle(nextElement: S): boolean; | ||
handle(nextElement: S, reduced: T): Promise<T> | ||
} |
@@ -13,4 +13,3 @@ import { IReducingComponent } from "./reducing-component.interface"; | ||
abstract apply(iterator: Iterator<S>, reduced: T): Promise<T>; | ||
abstract handle(nextElement: S, reduced: T): Promise<T>; | ||
abstract canHandle(nextElement: S): boolean; | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
27712
37
498
0