Skip to content

Commit

Permalink
Use cls-hooked, not continuation-local-storage,
Browse files Browse the repository at this point in the history
as suggested by @raymondfeng
in strongloop/loopback-context PR strongloop#1 comment #235931961
  • Loading branch information
josieusa authored and Emiliano Daddario committed Dec 9, 2016
1 parent 97873ae commit ad9bd30
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# loopback-context

Current context for LoopBack applications, based on
node-continuation-local-storage.
cls-hooked.

## WARNING

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "loopback-context",
"version": "3.0.0-alpha.1",
"description": "Current context for LoopBack applications, based on node-continuation-local-storage",
"version": "3.0.0",
"description": "Current context for LoopBack applications, based on cls-hooked",
"engines": {
"node": ">=4"
},
Expand All @@ -23,7 +23,7 @@
},
"license": "MIT",
"dependencies": {
"continuation-local-storage": "^3.1.7"
"cls-hooked": "^4.0.1"
},
"devDependencies": {
"chai": "^3.5.0",
Expand Down
2 changes: 1 addition & 1 deletion server/current-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

'use strict';

var cls = require('continuation-local-storage');
var cls = require('cls-hooked');
var domain = require('domain');

var LoopBackContext = module.exports;
Expand Down

0 comments on commit ad9bd30

Please sign in to comment.