promise-domain-monkeypatch
Don't break domain usage in an es6 Promise chain
This issue sheds a bit more detail, but basically the ES6 promise implementation in Node doesn't carry through the domain context (if there is one).
This is a module to monkeypatch to fix this.
More are examples are in the tests.
Useage
;
This will apply the patch.
You can unpatch by doing the following:
let PromisePatcher = ;PromisePatcher;
Not applying the patch immediately
let PromisePatcher = ; ...some code... PromisePatcher; ...some code... PromisePatcher;
Tests
mocha --recursive