From fb961111775faa4a38f524c64aa0af06280ffa2a Mon Sep 17 00:00:00 2001 From: Damian Krzeminski Date: Fri, 19 Apr 2024 07:36:00 +0200 Subject: [PATCH 1/2] fix typos --- app.js | 2 +- lib/tools/coerce.js | 4 ++-- lib/weather/openweather.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index 56d29f33..25241ec1 100644 --- a/app.js +++ b/app.js @@ -16,7 +16,7 @@ const app = module.exports = express(); if (!process.env.SITE_URL) { process.env.SITE_URL = app.get('env') === 'production' ? 'https://liftie.info' : - 'http://locahost:3000'; + 'http://localhost:3000'; } const root = path.join(__dirname, 'public'); diff --git a/lib/tools/coerce.js b/lib/tools/coerce.js index 630c5214..cceca74c 100644 --- a/lib/tools/coerce.js +++ b/lib/tools/coerce.js @@ -89,7 +89,7 @@ function slice(str, [from, to]) { /* * slice, trim, lowercase and coerce to standard liftie statuses - * If no usuable status is found, return 'scheduled' + * If no usable status is found, return 'scheduled' */ function coerceStatus(status, ...dels) { if (status) { @@ -100,7 +100,7 @@ function coerceStatus(status, ...dels) { } let s = map[status]; if (!s) { - debug('Uknown status %s. Treated as ', status); + debug('Unknown status %s. Treated as ', status); s = 'scheduled'; } return s; diff --git a/lib/weather/openweather.js b/lib/weather/openweather.js index ac863d25..db009b54 100644 --- a/lib/weather/openweather.js +++ b/lib/weather/openweather.js @@ -18,7 +18,7 @@ function snowInInches(snow) { if (!snow) { return 0; } - snow *= 0.0393701; // milimeters to inches + snow *= 0.0393701; // millimeters to inches return Math.round(snow); } From 87fc2d3a37380d35d2eb2464c5ab792279594514 Mon Sep 17 00:00:00 2001 From: Damian Krzeminski Date: Wed, 24 Apr 2024 10:57:09 +0200 Subject: [PATCH 2/2] upgrade superagent to ~9 --- package.json | 2 +- pnpm-lock.yaml | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 36587c95..ac14f789 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "morgan": "^1.9.0", "qs": "^6.3.0", "ro-rating": "^1.0.2", - "superagent": "~8", + "superagent": "~9", "tiny-pager": "^1.0.0", "to-title-case": "^1.0.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 87960252..417f63aa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -75,8 +75,8 @@ dependencies: specifier: ^1.0.2 version: 1.0.4 superagent: - specifier: ~8 - version: 8.1.2 + specifier: ~9 + version: 9.0.1 tiny-pager: specifier: ^1.0.0 version: 1.0.0 @@ -1013,13 +1013,12 @@ packages: mime-types: 2.1.35 dev: false - /formidable@2.1.2: - resolution: {integrity: sha512-CM3GuJ57US06mlpQ47YcunuUZ9jpm8Vx+P2CGt2j7HpgkKZO/DJYQ0Bobim8G6PFQmK5lOqOOdUXboU+h73A4g==} + /formidable@3.5.1: + resolution: {integrity: sha512-WJWKelbRHN41m5dumb0/k8TeAx7Id/y3a+Z7QfhxP/htI9Js5zYaEDtG8uMgG0vM0lOlqnmjE99/kfpOYi/0Og==} dependencies: dezalgo: 1.0.4 hexoid: 1.0.0 once: 1.4.0 - qs: 6.12.0 dev: false /forwarded@0.2.0: @@ -1599,16 +1598,16 @@ packages: - supports-color dev: true - /superagent@8.1.2: - resolution: {integrity: sha512-6WTxW1EB6yCxV5VFOIPQruWGHqc3yI7hEmZK6h+pyk69Lk/Ut7rLUY6W/ONF2MjBuGjvmMiIpsrVJ2vjrHlslA==} - engines: {node: '>=6.4.0 <13 || >=14'} + /superagent@9.0.1: + resolution: {integrity: sha512-CcRSdb/P2oUVaEpQ87w9Obsl+E9FruRd6b2b7LdiBtJoyMr2DQt7a89anAfiX/EL59j9b2CbRFvf2S91DhuCww==} + engines: {node: '>=14.18.0'} dependencies: component-emitter: 1.3.1 cookiejar: 2.1.4 debug: 4.3.4 fast-safe-stringify: 2.1.1 form-data: 4.0.0 - formidable: 2.1.2 + formidable: 3.5.1 methods: 1.1.2 mime: 2.6.0 qs: 6.12.0