Skip to content

Commit

Permalink
Rename to manifest.js
Browse files Browse the repository at this point in the history
  • Loading branch information
XVincentX committed Sep 16, 2017
1 parent 2c26c38 commit 8db0d08
Show file tree
Hide file tree
Showing 11 changed files with 222 additions and 62 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/node_modules
**/node_modules
PlugGateway
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"restart": true,
"program": "${workspaceRoot}/server.js",
"env": {
"LOG_LEVEL": "debug"
}
}
]
}
6 changes: 3 additions & 3 deletions index.js → manifest.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const httpRewriteMiddlewarare = require("httpRewriteMiddleware");
const httpRewriteMiddlewarare = require("http-rewrite-middleware");

module.exports = {
version: 'v1',
version: '1.0.0',
init: function (pluginContext) {
pluginContext.registerPolicy({
name: 'rewrite',
Expand All @@ -15,7 +15,7 @@ module.exports = {
pluginContext.registerCondition({
name: 'match',
handler: (req, conditionConfig) => {

return true;
}
});
}
Expand Down
154 changes: 98 additions & 56 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "express-gateway-plugin-rewrite",
"version": "1.0.0",
"description": "Rewrite plugin for express-gateway",
"main": "index.js",
"main": "manifest.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand All @@ -21,7 +21,7 @@
},
"homepage": "https://github.com/ExpressGateway/express-gateway-plugin-rewrite#readme",
"devDependencies": {
"express-gateway": "^1.1.1"
"express-gateway": "^1.2.0"
},
"dependencies": {
"http-rewrite-middleware": "^0.1.6"
Expand Down
Loading

0 comments on commit 8db0d08

Please sign in to comment.