Skip to content

Commit 2f47abf

Browse files
authored
Updates dependencies and defaults to HTTPS (#8)
Updates dependencies and defaults to HTTPS
2 parents dff9146 + 968675c commit 2f47abf

File tree

7 files changed

+2873
-1706
lines changed

7 files changed

+2873
-1706
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![npm version](https://badge.fury.io/js/pokeapi-js-wrapper.svg)](https://badge.fury.io/js/pokeapi-js-wrapper)
44
[![Build Status](https://travis-ci.org/PokeAPI/pokeapi-js-wrapper.svg?branch=master)](https://travis-ci.org/PokeAPI/pokeapi-js-wrapper)
5-
[![Mocha browser tetst](https://img.shields.io/badge/test-browser-brightgreen.svg)](https://pokeapi.github.io/pokeapi-js-wrapper/test/test.html)
5+
[![Mocha browser tests](https://img.shields.io/badge/test-browser-brightgreen.svg)](https://pokeapi.github.io/pokeapi-js-wrapper/test/test.html)
66
[![Known Vulnerabilities](https://snyk.io/test/github/pokeapi/pokeapi-js-wrapper/badge.svg?targetFile=package.json)](https://snyk.io/test/github/pokeapi/pokeapi-js-wrapper?targetFile=package.json)
77

88
Maintainer: [Naramsim](https://github.com/Naramsim)
@@ -73,7 +73,7 @@ const P = new Pokedex.Pokedex();
7373
.then(function(response) {
7474
console.log(response);
7575
});
76-
76+
7777
P.resource(['/api/v2/pokemon/36', 'api/v2/berry/8', 'https://pokeapi.co/api/v2/ability/9/'])
7878
.then(function(response) {
7979
console.log(response); // resource function accepts singles or arrays of URLs/paths
@@ -83,7 +83,7 @@ const P = new Pokedex.Pokedex();
8383
## Configuration
8484

8585
Pass an Object to Pokedex() in order to configure it. Available options: `protocol`, `hostName`, `versionPath`, `cache`, `timeout` in ms.
86-
Any option is optional :smile:. If no Object is passed, the Pokedex will be initialized to grab data from pokeapi.co using http with 20 seconds timeout and caching resources. We recommend to use HTTPS protocol since Pokeapi.co recently enabled HTTP->HTTPS redirects.
86+
Any option is optional :smile:. If no Object is passed, the Pokedex will be initialized to grab data from pokeapi.co using http with 20 seconds timeout and caching resources. HTTPS is the default protocol.
8787

8888

8989
```js

dist/index.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)