Comparing version 1.1.2 to 1.1.3
@@ -5,7 +5,9 @@ const Koa = require("koa"); | ||
const bodyParser = require("koa-bodyparser"); | ||
const serve = require('koa-static'); | ||
// const { getWorkspacePath } = require("./helper"); | ||
const { getWorkspacePath } = require("../utils"); | ||
// const { getWorkspacePath } = require("../utils"); | ||
const workCommand = require('./work-command'); | ||
const app = new Koa(); | ||
app.use(serve('./public')); | ||
app.use(bodyParser()); | ||
@@ -16,2 +18,8 @@ app.use(cors()); | ||
router.get('/ping', async ctx => { | ||
ctx.body = { | ||
msg: 'ok' | ||
}; | ||
}); | ||
router.post("/work/:workname/:command", async (ctx, next) => { | ||
@@ -18,0 +26,0 @@ const workName = ctx.params.workname; |
{ | ||
"name": "my-ci", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "", | ||
@@ -32,4 +32,5 @@ "main": "index.js", | ||
"koa-router": "^12.0.0", | ||
"koa-static": "^5.0.0", | ||
"shelljs": "^0.8.5" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11267
14
297
9
+ Addedkoa-static@^5.0.0
+ Addeddebug@3.2.7(transitive)
+ Addedhttp-errors@1.6.3(transitive)
+ Addedinherits@2.0.3(transitive)
+ Addedkoa-send@5.0.1(transitive)
+ Addedkoa-static@5.0.0(transitive)
+ Addedresolve-path@1.4.0(transitive)
+ Addedsetprototypeof@1.1.0(transitive)