@effection/main
Advanced tools
Comparing version 2.0.0-beta.16 to 2.0.0-beta.17
# @effection/main | ||
## \[2.0.0-beta.17] | ||
- - [0248d79](https://github.com/thefrontside/effection/commit/0248d79a33dcfc4200b0832aba975c9cad08981e) Add package readmes on 2021-09-28 | ||
## \[2.0.0-beta.16] | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "@effection/main", | ||
"version": "2.0.0-beta.16", | ||
"version": "2.0.0-beta.17", | ||
"description": "Main entry point for Effection applications", | ||
@@ -31,3 +31,3 @@ "main": "dist-cjs/node.js", | ||
"dependencies": { | ||
"@effection/core": "2.0.0-beta.14", | ||
"@effection/core": "2.0.0-beta.15", | ||
"chalk": "^4.1.2", | ||
@@ -37,4 +37,2 @@ "stacktrace-parser": "^0.1.10" | ||
"devDependencies": { | ||
"@effection/mocha": "2.0.0-beta.9", | ||
"@effection/process": "2.0.0-beta.14", | ||
"@frontside/tsconfig": "^1.2.0", | ||
@@ -41,0 +39,0 @@ "@types/node": "^16.3.2", |
# @effection/main | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) | ||
[![Created by Frontside](https://img.shields.io/badge/created%20by-frontside-26abe8.svg)](https://frontside.com) | ||
[![Chat on Discord](https://img.shields.io/discord/700803887132704931?Label=Discord)](https://discord.gg/Ug5nWH8) | ||
Entry point for Effection applications which provides nice setup and teardown. | ||
Works both in node and browser contexts. | ||
[Effection][] is the structured concurrency toolkit for JavaScript. You can find | ||
detailed information about using `main()` here [https://frontside.com/effection/docs/guides/tasks](https://frontside.com/effection/docs/guides/tasks) | ||
## Usage | ||
``` typescript | ||
import { sleep } from '@effection/core'; | ||
import { main } from '@effection/main'; | ||
main(function* sayHello() { | ||
console.log('Hello World!'); | ||
yield sleep(2000); | ||
console.log('Goodbye World!') | ||
}); | ||
``` | ||
[Effection]: https://frontside.com/effection |
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
36942
6
10
+ Added@effection/core@2.0.0-beta.15(transitive)
- Removed@effection/core@2.0.0-beta.14(transitive)