Blame view

node_modules/loopback-context/browser/current-context.js 473 Bytes
f7563de62   Palak Handa   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  // Copyright IBM Corp. 2015. All Rights Reserved.
  // Node module: loopback-context-cls
  // This file is licensed under the MIT License.
  // License text available at https://opensource.org/licenses/MIT
  
  'use strict';
  
  var LoopBackContext = module.exports;
  
  LoopBackContext.getCurrentContext = function() {
    return null;
  };
  
  LoopBackContext.runInContext =
  LoopBackContext.createContext = function() {
    throw new Error('Current context is not supported in the browser.');
  };