diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml index ded9014..7f1849d 100644 --- a/.github/workflows/package-pr.yaml +++ b/.github/workflows/package-pr.yaml @@ -8,7 +8,6 @@ on: - synchronize paths: - 'packages/**' - workflow_dispatch: jobs: check-pkg: diff --git a/api/package.json b/api/package.json index 5642d41..53d8ba6 100644 --- a/api/package.json +++ b/api/package.json @@ -11,7 +11,7 @@ "dependencies": { "body-parser": "^1.19.0", "chownr": "^2.0.0", - "express": "^4.17.1", + "express": "^4.17.3", "express-ws": "^5.0.2", "is-docker": "^2.1.1", "logplease": "github:Endercheif/logplease#feature/quality", diff --git a/api/pnpm-lock.yaml b/api/pnpm-lock.yaml index 700f98b..0940f3e 100644 --- a/api/pnpm-lock.yaml +++ b/api/pnpm-lock.yaml @@ -5,7 +5,7 @@ specifiers: '@types/node-fetch': ^2.6.2 body-parser: ^1.19.0 chownr: ^2.0.0 - express: ^4.17.1 + express: ^4.17.3 express-ws: ^5.0.2 is-docker: ^2.1.1 logplease: github:Endercheif/logplease#feature/quality diff --git a/api/src/api/v2.ts b/api/src/api/v2.ts index 8ebf527..69f6d3d 100644 --- a/api/src/api/v2.ts +++ b/api/src/api/v2.ts @@ -169,7 +169,7 @@ router.use((req, res, next) => { return next(); } - if (!req.headers['content-type'].startsWith('application/json')) { + if (!req.headers['content-type']?.startsWith('application/json')) { return res.status(415).send({ message: 'requests must be of type application/json', }); diff --git a/packages/deno/1.16.2/run b/packages/deno/1.16.2/run index 288919f..530181f 100644 --- a/packages/deno/1.16.2/run +++ b/packages/deno/1.16.2/run @@ -1,3 +1,3 @@ #!/bin/bash -DENO_DIR=$PWD deno run $@ +DENO_DIR=$PWD NO_COLOR=true deno run $@ diff --git a/packages/deno/1.7.5/run b/packages/deno/1.7.5/run index d1b196f..fbbe106 100644 --- a/packages/deno/1.7.5/run +++ b/packages/deno/1.7.5/run @@ -1,2 +1,2 @@ #!/bin/bash -DENO_DIR=$PWD deno run "$@" \ No newline at end of file +DENO_DIR=$PWD NO_COLOR=true deno run "$@" \ No newline at end of file diff --git a/piston b/piston index fd83727..b67f44d 100755 --- a/piston +++ b/piston @@ -78,7 +78,7 @@ case $1 in clean-pkgs) git clean -fqXd packages ;; 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) PKGSLUG="$2-$3"