Socket
Socket
Sign inDemoInstall

@effection/fetch

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@effection/fetch - npm Package Compare versions

Comparing version 2.0.0-beta.17 to 2.0.0-beta.18

4

CHANGELOG.md
# @effection/fetch
## \[2.0.0-beta.18]
- - [0248d79](https://github.com/thefrontside/effection/commit/0248d79a33dcfc4200b0832aba975c9cad08981e) Add package readmes on 2021-09-28
## \[2.0.0-beta.17]

@@ -4,0 +8,0 @@

5

package.json
{
"name": "@effection/fetch",
"version": "2.0.0-beta.17",
"version": "2.0.0-beta.18",
"description": "Fetch operation for Effection",

@@ -31,3 +31,2 @@ "main": "dist-cjs/index.js",

"devDependencies": {
"@effection/mocha": "2.0.0-beta.9",
"@frontside/tsconfig": "^1.2.0",

@@ -41,3 +40,3 @@ "@types/node": "^16.3.2",

"dependencies": {
"@effection/core": "2.0.0-beta.14",
"@effection/core": "2.0.0-beta.15",
"abort-controller": "^3.0.0",

@@ -44,0 +43,0 @@ "cross-fetch": "^3.0.4",

# @effection/fetch
[![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)
Use `fetch` as an effection operation.
[Effection][] is the structured concurrency toolkit for JavaScript. You can find
detailed information about using its `fetch` api at [https://frontside.com/effection/api/modules/fetch.html#fetch](https://frontside.com/effection/api/modules/fetch.html#fetch)
## Synopsis
This implements the `fetch` api exactly as it appears in the JavaScript spec. However, an abort signal is automatically connected to the underlying call so that whenever the `fetch` operation passes out of scope, it is automatically cancelled. That way, it is impossible to leave an http request dangling.
``` js
let response = yield fetch('https://bigtestjs.io');
```
[Effection]: https://frontside.com/effection
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