Skip to content

Commit

Permalink
Fix broken windows (#115)
Browse files Browse the repository at this point in the history
Includes:

 - Remove Node 14 support
 - Update dependencies
 - Update build scripts
  • Loading branch information
wavded authored Jan 22, 2024
1 parent aacba9e commit 5a20cdc
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
build:
runs-on: ubuntu-latest
container:
image: osgeo/gdal:ubuntu-small-latest
image: ghcr.io/osgeo/gdal:ubuntu-small-latest
options: --user 1001
strategy:
matrix:
node: ["14", "16", "18"]
node: ["16", "18", "20"]
name: Node v${{ matrix.node }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install
Expand Down
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Ogre {
storage: diskStorage({
filename(_req, file, cb) {
randomBytes(16, (err, raw) =>
cb(err, raw.toString("hex") + file.originalname)
cb(err, raw.toString("hex") + file.originalname),
)
},
}),
Expand Down Expand Up @@ -108,7 +108,7 @@ class Ogre {
"Content-Type",
"forcePlainText" in b
? "text/plain; charset=utf-8"
: "application/json; charset=utf-8"
: "application/json; charset=utf-8",
)
if ("forceDownload" in b) res.attachment()

Expand Down
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,29 +34,29 @@
"express": "^4.18.2",
"express-promise-router": "^4.1.1",
"multer": "1.4.5-lts.1",
"ogr2ogr": "^4.0.1"
"ogr2ogr": "^5.0.0"
},
"devDependencies": {
"@types/blue-tape": "^0.1.33",
"@types/body-parser": "^1.19.2",
"@types/cors": "^2.8.13",
"@types/express": "^4.17.17",
"@types/multer": "^1.4.7",
"@types/node": "^18.14.6",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^5.54.0",
"@typescript-eslint/parser": "^5.54.0",
"@types/blue-tape": "^0.1.36",
"@types/body-parser": "^1.19.5",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/multer": "^1.4.11",
"@types/node": "^20.11.5",
"@types/supertest": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"blue-tape": "^1.0.0",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.6.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"nyc": "^15.1.0",
"prettier": "^2.8.4",
"prettier-plugin-organize-imports": "^3.2.2",
"supertest": "^6.3.3",
"ts-node": "^10.9.1",
"typescript": "^4.9.5"
"prettier": "^3.2.4",
"prettier-plugin-organize-imports": "^3.2.4",
"supertest": "^6.3.4",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
"engines": {
"node": ">=12"
"node": ">=16"
}
}
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Ogre - ogr2ogr web client</title>
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"declaration": true,
"outDir": "./dist",
"esModuleInterop": true,
"resolveJsonModule": true
"resolveJsonModule": true,
},
"exclude": ["node_modules", "dist"]
"exclude": ["node_modules", "dist"],
}

0 comments on commit 5a20cdc

Please sign in to comment.