async-execution-context
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "async-execution-context", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "An execution context that persists across async tasks", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# async-execution-context | ||
[![Build Status](https://travis-ci.org/alexpods/async-execution-context.svg?branch=master)](https://travis-ci.org/alexpods/async-execution-context) | ||
An execution context that persists across async tasks | ||
## Example | ||
@@ -5,0 +9,0 @@ |
@@ -69,12 +69,6 @@ const asyncHooks = require('async_hooks') | ||
_createContext(asyncId, parentAsyncId) { | ||
const ctx = Object.create(this._store[parentAsyncId] || Object.prototype) | ||
ctx.asyncId = asyncId | ||
ctx.triggerAsyncId = parentAsyncId | ||
return ctx | ||
return Object.create(this._store[parentAsyncId] || Object.prototype) | ||
} | ||
} | ||
module.exports = { AsyncExecutionContext } |
4664
7
52
74