Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cakken

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cakken - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

example/counter.ts

2

package.json
{
"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;
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc