kneden icon indicating copy to clipboard operation
kneden copied to clipboard

Transpile ES2017 async/await to vanilla ES6 Promise chains: a Babel plugin

Results 13 kneden issues
Sort by recently updated
recently updated
newest added

I tried getting this to work together with the `@babel/preset-env` package, but had no luck... Is Babel 7 not supported yet?

I have tried something out, and appearently a return value is not passed correctly. Code: ```js async function someFunction() { return 1; } class Foo { async init() { try...

Hello, I've encountered a case when kneden incorrectly adds extra `.then(function () {});` call at the end of the generated async function. Consider this code: ``` async function handler() {...

bug

I had this code: ```javascript 1 const cid = await getCid(slackUsername) 2 await replyFn(`Creating time report for ${year} ${month} and ${cid}`) 3 const resp = await request.post(config.apiUrl + `/create-time-report/${cid}/${year}/${month}`) ```...

Currently working in: - [x] loops - [ ] switch statements - [ ] try/catch/finally (a.k.a. still some work to do)

```js class Test { async test() { throw new Error('test-error'); } } ``` ``` AssertionError [ERR_ASSERTION]: '\'use strict\';\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i...

Source: ```js async wrapCall(fun) { const unlock = this.lock(); let ret; try { console.log('wrapCall() ' + this._queueCounter); ret = await fun(); } catch (err) { // not sucessfull -> unlock...

Hello @marten-de-vries I have some experiments with your plugin and I found it interesting, but I have some cases when I don't get that I expected. For example I should...

``` js var foo = async () => { console.log(1); return (await 1) + 2; } foo(); console.log(2); ``` should transpile to: ``` js var foo = function foo() {...

bug
help wanted

I could not get kneden working with babel-preset-stage-0 despite my efforts, does anyone know of the proper way to achieve that?

help wanted
good first bug
documentation