Skip to content

Commit

Permalink
Fix travis (#190)
Browse files Browse the repository at this point in the history
* Latest node for Travis

* Remove auto publish

* Update all dependencies
  • Loading branch information
matthew-andrews authored Sep 14, 2020
1 parent db0aa8c commit e32b006
Show file tree
Hide file tree
Showing 5 changed files with 1,501 additions and 22 deletions.
13 changes: 1 addition & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
sudo: false
language: node_js
node_js:
- "0.10"
before_deploy:
- npm-prepublish --verbose
deploy:
provider: npm
email: matt@mattandre.ws
api_key:
secure: eEeb1aG7phF4X5z+CQ3yzTdXtHf71Dk4ec6v5iAjRYNh/s6GLxfZS7c4qocZI8YXW3YmmsJR5zGZ2l88k2iqTtlBn0Mrp6ytwIa/jO00kDpR8V11eW9i47KRQq25eA1YW+SrLM5V/fh+s9u3VU7jhbax5eeViqVdwORI85kZrZE=
on:
all_branches: true
tags: true
repo: matthew-andrews/isomorphic-fetch
- 14
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Fetch for node and Browserify. Built on top of [GitHub's WHATWG Fetch polyfill]
## Warnings

- This adds `fetch` as a global so that its API is consistent between client and server.
- You must bring your own ES6 Promise compatible polyfill, I suggest [es6-promise](https://github.com/jakearchibald/es6-promise).

For [ease-of-maintenance and backward-compatibility reasons][why polyfill], this library will always be a polyfill. As a "safe" alternative, which does not modify the global, consider [fetch-ponyfill][].

Expand All @@ -18,19 +17,18 @@ For [ease-of-maintenance and backward-compatibility reasons][why polyfill], this
### NPM

```sh
npm install --save isomorphic-fetch es6-promise
npm install --save isomorphic-fetch
```

### Bower

```sh
bower install --save isomorphic-fetch es6-promise
bower install --save isomorphic-fetch
```

## Usage

```js
require('es6-promise').polyfill();
require('isomorphic-fetch');

fetch('//offline-news-api.herokuapp.com/stories')
Expand Down
Loading

0 comments on commit e32b006

Please sign in to comment.