New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

effection

Package Overview
Dependencies
Maintainers
1
Versions
307
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

effection - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0-d6d2bd4

15

CHANGELOG.md

@@ -8,1 +8,16 @@ # Changelog

## [Unreleased]
## [0.2.0] - 2019-10-17
### Added
- Typescript typings: Effection now officially supports TypeScript!
From here on out, the project is committed to shipping precise and
up-to-date typing information for its entire public API
https://github.com/thefrontside/effection.js/pull/8
## [0.1.0] - 2019-10-05
### Added
- Test Suite, and functioning structured concurrency model

14

index.d.ts
declare module "effection" {
export type Operation = SequenceFn | Promise<any> | Controller | undefined;
export type SequenceFn = (this: Execution, ...args: any[]) => Sequence;
export type Sequence = Generator<Operation, any, any>;
export type Controller = (execution: Execution) => void | (() => void);
export const timeout: (duration: number) => any;
export interface Execution<T = any> {
resume(result: T): void;
throw(error: Error): void;
}
export function execute<T>(operation: Operation): Execution<T>;
export function call(operation: Operation, ...args: any[]): Operation;
export function timeout(durationMillis: number): Operation;
}

4

package.json
{
"name": "effection",
"description": "Effortlessly composable structured concurrency primitive for JavaScript",
"version": "0.1.0",
"version": "0.2.0-d6d2bd4",
"license": "MIT",

@@ -37,5 +37,5 @@ "files": [

"ts-node": "^8.1.0",
"typescript": "^3.4.5"
"typescript": "^3.6.4"
},
"private": false
}
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