cls-es6-promise

1.0.2 • Public • Published

cls-es6-promise

cls-es6-promise provides a shim layer for es6-promise so that it will work with continuation-local-storage. It does this by binding all callbacks passed to then and catch with a CLS namespace.

var cls = require('continuation-local-storage');
var ns = cls.createNamespace('NODESPACE');
 
var Promise = require('es6-promise').Promise;
// or require('es6-promise').polyfill();
 
// load shim
require('cls-es6-promise')(ns);

tests

The tests can be run with npm test.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    55
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    55
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i cls-es6-promise

Weekly Downloads

57

Version

1.0.2

License

MIT

Last publish

Collaborators

  • leedm777