From 842be928b8e8fc463022e9334378bc2e88f5c13c Mon Sep 17 00:00:00 2001 From: ShaunLWM Date: Fri, 31 May 2019 10:06:56 +0800 Subject: [PATCH] 0.0.4 Update axios (CVE) --- README.md | 8 ++++---- package.json | 6 +++--- yarn.lock | 31 ++++++++++++++++++------------- 3 files changed, 25 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 1a17b4b..8f3e52f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # overwatchleague.js -[!["Latest Release"](https://img.shields.io/github/release/ShaunLWM/OverwatchLeague.js.svg)](https://github.com/ShaunLWM/OverwatchLeague.js/releases/latest) -[!["Latest Release"](https://img.shields.io/npm/v/overwatchleague.js.svg)](https://github.com/ShaunLWM/OverwatchLeague.js/releases/latest) -[![MIT license](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/ShaunLWM/OverwatchLeague.js/blob/master/LICENSE) +[![npm downloads](https://img.shields.io/npm/dm/overwatchleague.js.svg?style=flat-square)](http://npm-stat.com/charts.html?package=overwatchleague.js) +[!["Latest Release"](https://img.shields.io/npm/v/overwatchleague.js.svg?style=flat-square)](https://github.com/ShaunLWM/OverwatchLeague.js/releases/latest) +[![MIT license](https://img.shields.io/badge/license-MIT-green.svg?style=flat-square)](https://github.com/ShaunLWM/OverwatchLeague.js/blob/master/LICENSE) OverwatchLeague API. Inspired by [blizzard.js](https://github.com/benweier/blizzard.js) and [OWLeagueLib](https://github.com/overtools/OWLeagueLib/). @@ -32,7 +32,7 @@ OWL.getSchedule().then(response => { console.log(response.data); }); ``` -or the async way (node v8 and above) +or the async way (NodeJS v8 and above) ```javascript (async () => { let players = await OWL.getPlayers(); diff --git a/package.json b/package.json index 42bc3e8..490ef69 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Shaun (https://github.com/ShaunLWM)", "name": "overwatchleague.js", "description": "A Node.js library for the OverwatchLeague API", - "version": "0.0.3", + "version": "0.0.4", "homepage": "https://github.com/ShaunLWM/OverwatchLeague.js", "license": "MIT", "keywords": [ @@ -23,11 +23,11 @@ }, "main": "index.js", "dependencies": { - "axios": "^0.17.1" + "axios": "^0.19.0" }, "files": [ "README.md", "LICENSE", "index.js" ] -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index 7734bb3..350b108 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,29 +2,34 @@ # yarn lockfile v1 -axios@^0.17.1: - version "0.17.1" - resolved "https://registry.yarnpkg.com/axios/-/axios-0.17.1.tgz#2d8e3e5d0bdbd7327f91bc814f5c57660f81824d" +axios@^0.19.0: + version "0.19.0" + resolved "https://registry.yarnpkg.com/axios/-/axios-0.19.0.tgz#8e09bff3d9122e133f7b8101c8fbdd00ed3d2ab8" + integrity sha512-1uvKqKQta3KBxIz14F2v06AEHZ/dIoeKfbTRkK1E5oqjDnuEerLmYTgJB5AiQZHJcljpg1TuRzdjDR06qNk0DQ== dependencies: - follow-redirects "^1.2.5" - is-buffer "^1.1.5" + follow-redirects "1.5.10" + is-buffer "^2.0.2" -debug@^3.1.0: +debug@=3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" + integrity sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g== dependencies: ms "2.0.0" -follow-redirects@^1.2.5: - version "1.4.1" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.4.1.tgz#d8120f4518190f55aac65bb6fc7b85fcd666d6aa" +follow-redirects@1.5.10: + version "1.5.10" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.5.10.tgz#7b7a9f9aea2fdff36786a94ff643ed07f4ff5e2a" + integrity sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ== dependencies: - debug "^3.1.0" + debug "=3.1.0" -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" +is-buffer@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.3.tgz#4ecf3fcf749cbd1e472689e109ac66261a25e725" + integrity sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw== ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=