Skip to content

Commit

Permalink
Merge pull request #110 from apigee/134751883
Browse files Browse the repository at this point in the history
remove memored and use third party lib
  • Loading branch information
theganyo authored Jun 7, 2019
2 parents 5b861d9 + 9c86765 commit 386e1b8
Show file tree
Hide file tree
Showing 7 changed files with 433 additions and 7 deletions.
3 changes: 2 additions & 1 deletion apikeys/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ var url = require("url");
var rs = require("jsrsasign");
var fs = require("fs");
var path = require("path");
var cache = require("memored");
const memoredpath = '../third_party/memored/index';
var cache = require(memoredpath);
var JWS = rs.jws.JWS;
var requestLib = require("request");
var _ = require("lodash");
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ module.exports = {
apikeys: require('./apikeys'),
oauthv2: require('./oauthv2'),
extauth: require('./extauth'),
invalidHeader: require('./invalidHeader')
invalidHeader: require('./invalidHeader'),
memored: require('./third_party/memored');
}
4 changes: 3 additions & 1 deletion monitor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
*/

var debug = require('debug')('plugin:monitor');
var cache = require('memored');
var path = require('path');
const memoredpath = '../third_party/memored/index';
var cache = require(memoredpath);
const lynx = require('lynx');

module.exports.init = function(config, logger, stats) {
Expand Down
5 changes: 3 additions & 2 deletions oauth/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ var url = require('url');
var rs = require('jsrsasign');
var fs = require('fs');
var path = require('path');
var cache = require('memored');
var map = require('memored');
const memoredpath = '../third_party/memored/index';
var cache = require(memoredpath);
var map = require(memoredpath);
var JWS = rs.jws.JWS;
var requestLib = require('request');
var _ = require('lodash');
Expand Down
3 changes: 2 additions & 1 deletion oauthv2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ var url = require('url');
var rs = require('jsrsasign');
var fs = require('fs');
var path = require('path');
var map = require('memored');
const memoredpath = '../third_party/memored/index';
var map = require(memoredpath);
var JWS = rs.jws.JWS;
var requestLib = require('request');
var _ = require('lodash');
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"jsrsasign": "^7.2.0",
"lodash": "^4.17.10",
"lynx": "^0.2.0",
"memored": "^1.1.1",
"minimatch": "^3.0.4",
"portastic": "^1.0.1",
"request": "^2.87.0",
Expand Down
Loading

0 comments on commit 386e1b8

Please sign in to comment.