Skip to content

Commit

Permalink
13.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
3imed-jaberi committed Sep 18, 2024
1 parent 057c50a commit 638aa53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ module.exports = class Layer {

function safeDecodeURIComponent(text) {
try {
// TODO: take a look on `safeDecodeURIComponent` if we use it only with route params let's remove the `replace` method otherwise make it flexible.

Check warning on line 234 in lib/layer.js

View workflow job for this annotation

GitHub Actions / Node 18 on ubuntu-latest

Unexpected 'todo' comment: 'TODO: take a look on...'.

Check warning on line 234 in lib/layer.js

View workflow job for this annotation

GitHub Actions / Node 20 on ubuntu-latest

Unexpected 'todo' comment: 'TODO: take a look on...'.

Check warning on line 234 in lib/layer.js

View workflow job for this annotation

GitHub Actions / Node 22 on ubuntu-latest

Unexpected 'todo' comment: 'TODO: take a look on...'.
// @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#decoding_query_parameters_from_a_url
return decodeURIComponent(text.replace(/\+/g, ' '));
} catch {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@koa/router",
"description": "Router middleware for koa. Maintained by Forward Email and Lad.",
"version": "13.0.0",
"version": "13.1.0",
"author": "Alex Mingoia <talk@alexmingoia.com>",
"bugs": {
"url": "https://github.com/koajs/router/issues",
Expand Down Expand Up @@ -68,7 +68,7 @@
"docs": "NODE_ENV=test jsdoc2md -t ./lib/API_tpl.hbs --src ./lib/*.js >| API.md",
"lint": "xo --fix && remark . -qfo && fixpack",
"prepare": "husky install",
"prextest": "npm run lint",
"pretest": "npm run lint",
"test": "mocha test/**/*.js",
"test:watch": "mocha test/**/*.js --watch"
}
Expand Down

0 comments on commit 638aa53

Please sign in to comment.