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

async-caf

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-caf - npm Package Compare versions

Comparing version 3.0.5 to 3.0.6

2

dist/caf.js
/*! caf.js
v3.0.5 (c) 2018 Kyle Simpson
v3.0.6 (c) 2018 Kyle Simpson
MIT License: http://getify.mit-license.org

@@ -4,0 +4,0 @@ */

{
"name": "async-caf",
"version": "3.0.5",
"version": "3.0.6",
"description": "Wrapper for generators as cancelable async functions",

@@ -21,9 +21,10 @@ "main": "./dist/caf.js",

"coveralls": "~3.0.0",
"qunitjs": "~2.4.1"
"qunit": "~2.4.1"
},
"repository": "getify/caf",
"keywords": [
"fp",
"functional programming",
"async"
"async",
"promises",
"generators",
"cancelation"
],

@@ -30,0 +31,0 @@ "bugs": {

@@ -234,3 +234,3 @@ # Cancelable Async Functions (CAF)

As illustrated earlier, it's totally OK and intended that a single cancelation token `signal` be shared across all the functions in **one** chain of calls (`A` -> `B` -> `C`). But reusing the same token **across two or more chains of calls** (`A` -> `B` -> `C` and `D` -> `E` -> `F`) is asking for trouble.
As illustrated earlier, it's totally OK and intended that a single cancelation token `signal` be shared across all the functions in **one** chain of calls (`A` -> `B` -> `C`). But reusing the same token **across two or more chains of calls** (`A` -> `B` -> `C` ***and*** `D` -> `E` -> `F`) is asking for trouble.

@@ -237,0 +237,0 @@ Imagine a scenario where you make two separate `fetch(..)` calls, one after the other, and the second one runs too long so you cancel it via a timeout:

@@ -18,3 +18,3 @@ #!/usr/bin/env node

global.QUnit = require("qunitjs");
global.QUnit = require("qunit");

@@ -21,0 +21,0 @@ require("../tests/qunit.config.js");

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