Skip to content

Commit

Permalink
allow qs value to be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
jd1378 committed Feb 9, 2021
1 parent acba2d1 commit 7b013a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

# Changelog

# v1.3.2

- allow qs value to be undefined

# v1.3.1

- only add qs if value not undefined
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Also adds `Accept` header with value `application/json, text/plain, */*` if not
you can import `wrapFetch` from `mod.ts` file.

```js
export { wrapFetch } from 'https://deno.land/x/[email protected].1/mod.ts';
export { wrapFetch } from 'https://deno.land/x/[email protected].2/mod.ts';
```

### wrapFetch
Expand Down
2 changes: 1 addition & 1 deletion extended_request_init.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
interface RequestInitDiff {
qs?: Record<string, string>;
qs?: Record<string, string | undefined>;
form?: Record<string, string>;
body?: Record<string, unknown> | BodyInit | null;
}
Expand Down

0 comments on commit 7b013a3

Please sign in to comment.