Skip to content

Commit

Permalink
chore(npm): update package definition
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgw committed Jun 11, 2023
1 parent 6f00a2f commit 7325c8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Synchronous wrapper around the Fetch API. Uses [`node-fetch`](https://github.com
In the browser, a browserify bundle can be loaded from CDNs like unpkg.com.

<script src="https://unpkg.com/sync-fetch"></script>
<script src="https://unpkg.com/sync-fetch@VERSION/browser.js"></script>
<script src="https://unpkg.com/sync-fetch@VERSION"></script>

## Use

Expand Down Expand Up @@ -41,4 +41,5 @@ const metadata = fetch('https://doi.org/10.7717/peerj-cs.214', {
- `headers`
- `credentials` (but not `omit`)
- (Non-spec) `timeout`
- The non-standard `buffer()` method is not supported
- CORS limitations apply, of course (note they may be stricter for synchronous requests)
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"description": "Synchronous version of the Fetch API",
"main": "index.js",
"browser": "browser.js",
"jsdelivr": "bundle.js",
"unpkg": "bundle.js",
"files": [
"index.js",
"worker.js",
Expand Down

0 comments on commit 7325c8a

Please sign in to comment.