
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Better debug information for co.
co-debug
turns
TypeError: You may only yield a function, promise, generator, array, or object, but the following object was passed: "undefined"
at next (co-debug/node_modules/co/index.js:101:25)
...
into
TypeError: You may only yield a function, promise, generator, array, or object, but the following object was passed: "undefined"
co-debug/test/test.js function: foo
0: yield bar()
1: yield Promise.resolve()
at next (co-debug/node_modules/co/index.js:101:25)
...
npm i co-debug
You may need to install co
by yourself.
node -r co-debug
Or add require('co-debug')
to your main file and make sure it's loaded before other packages:
require('co-debug')
const Koa = require('koa')
const app = new Koa()
app.use(function * () {})
co-debug
has some limitationsco-debug
only can tell:
yield
within the functionExamples:
co-debug/test/test.js function: foo
0: yield bar()
1: yield Promise.resolve()
co-debug
may have trouble working with transpilers.
co-debug
when neededif (process.env.NODE_ENV !== 'production') {
require('co-debug')
}
const co = require('co')
// other stuffs
FAQs
Better debug information for co
The npm package co-debug receives a total of 0 weekly downloads. As such, co-debug popularity was classified as not popular.
We found that co-debug demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.