Skip to content

Commit

Permalink
deno: oak fix #59
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Jun 12, 2023
1 parent 3e51235 commit 87bed75
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [ '18.x', '16.x', '14.x' ]
node: [ '20.x', '18.x', '16.x' ]
# os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm install
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [v3.3.2](https://github.com/i18next/i18next-http-middleware/compare/v3.3.1...v3.3.2)
- deno: oak fix [#59](https://github.com/i18next/i18next-http-middleware/issues/59)

## [v3.3.1](https://github.com/i18next/i18next-http-middleware/compare/v3.3.0...v3.3.1)
- Support TS5 types exports

Expand Down
1 change: 1 addition & 0 deletions lib/httpFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const getQuery = (req) => {
if (req.searchParams) return req.searchParams
if (req.raw && req.raw.query) return req.raw.query
if (req.ctx && req.ctx.queryParams) return req.ctx.queryParams
if (req.url && req.url.searchParams) return req.url.searchParams
const url = req.url || (req.raw && req.raw.url)
if (url && url.indexOf('?') < 0) return {}
console.log('no possibility found to get query')
Expand Down
2 changes: 1 addition & 1 deletion licence
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2022 i18next
Copyright (c) 2023 i18next

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit 87bed75

Please sign in to comment.