merge: from piston/production
This commit is contained in:
commit
6a90aa3bc2
|
@ -8,7 +8,6 @@ on:
|
||||||
- synchronize
|
- synchronize
|
||||||
paths:
|
paths:
|
||||||
- 'packages/**'
|
- 'packages/**'
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-pkg:
|
check-pkg:
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"body-parser": "^1.19.0",
|
"body-parser": "^1.19.0",
|
||||||
"chownr": "^2.0.0",
|
"chownr": "^2.0.0",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.3",
|
||||||
"express-ws": "^5.0.2",
|
"express-ws": "^5.0.2",
|
||||||
"is-docker": "^2.1.1",
|
"is-docker": "^2.1.1",
|
||||||
"logplease": "github:Endercheif/logplease#feature/quality",
|
"logplease": "github:Endercheif/logplease#feature/quality",
|
||||||
|
|
|
@ -5,7 +5,7 @@ specifiers:
|
||||||
'@types/node-fetch': ^2.6.2
|
'@types/node-fetch': ^2.6.2
|
||||||
body-parser: ^1.19.0
|
body-parser: ^1.19.0
|
||||||
chownr: ^2.0.0
|
chownr: ^2.0.0
|
||||||
express: ^4.17.1
|
express: ^4.17.3
|
||||||
express-ws: ^5.0.2
|
express-ws: ^5.0.2
|
||||||
is-docker: ^2.1.1
|
is-docker: ^2.1.1
|
||||||
logplease: github:Endercheif/logplease#feature/quality
|
logplease: github:Endercheif/logplease#feature/quality
|
||||||
|
|
|
@ -169,7 +169,7 @@ router.use((req, res, next) => {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!req.headers['content-type'].startsWith('application/json')) {
|
if (!req.headers['content-type']?.startsWith('application/json')) {
|
||||||
return res.status(415).send({
|
return res.status(415).send({
|
||||||
message: 'requests must be of type application/json',
|
message: 'requests must be of type application/json',
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
DENO_DIR=$PWD deno run $@
|
DENO_DIR=$PWD NO_COLOR=true deno run $@
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
DENO_DIR=$PWD deno run "$@"
|
DENO_DIR=$PWD NO_COLOR=true deno run "$@"
|
2
piston
2
piston
|
@ -78,7 +78,7 @@ case $1 in
|
||||||
clean-pkgs) git clean -fqXd packages ;;
|
clean-pkgs) git clean -fqXd packages ;;
|
||||||
clean-repo) git clean -fqXd repo ;;
|
clean-repo) git clean -fqXd repo ;;
|
||||||
|
|
||||||
list-pkgs) find packages -depth 2 | awk -F/ '$2 && $3{ print $2 "-" $3 }' | column ;;
|
list-pkgs) find packages -maxdepth 2 | awk -F/ '$2 && $3{ print $2 "-" $3 }' | column ;;
|
||||||
|
|
||||||
build-pkg)
|
build-pkg)
|
||||||
PKGSLUG="$2-$3"
|
PKGSLUG="$2-$3"
|
||||||
|
|
Loading…
Reference in New Issue