forked from strongloop/loopback
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change all current-context APIs to throw a helpful error.
- Loading branch information
Showing
22 changed files
with
91 additions
and
441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright IBM Corp. 2015,2016. All Rights Reserved. | ||
// Node module: loopback | ||
// This file is licensed under the MIT License. | ||
// License text available at https://opensource.org/licenses/MIT | ||
|
||
var juggler = require('loopback-datasource-juggler'); | ||
var remoting = require('strong-remoting'); | ||
|
||
module.exports = function(loopback) { | ||
juggler.getCurrentContext = | ||
remoting.getCurrentContext = | ||
loopback.getCurrentContext = function() { | ||
throw new Error( | ||
'loopback.getCurrentContext() was removed in version 3.0. See ' + | ||
'https://docs.strongloop.com/display/APIC/Using%20current%20context ' + | ||
'for more details.'); | ||
}; | ||
|
||
loopback.runInContext = function(fn) { | ||
throw new Error( | ||
'loopback.runInContext() was removed in version 3.0. See ' + | ||
'https://docs.strongloop.com/display/APIC/Using%20current%20context ' + | ||
'for more details.'); | ||
}; | ||
|
||
loopback.createContext = function(scopeName) { | ||
throw new Error( | ||
'loopback.createContext() was removed in version 3.0. See ' + | ||
'https://docs.strongloop.com/display/APIC/Using%20current%20context ' + | ||
'for more details.'); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.