From 584d79ad3536bcf1a1ec23e782c5eba39fac1de2 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Wed, 27 Nov 2019 00:51:50 +0700 Subject: [PATCH] Meta tweaks Fixes #68 --- .travis.yml | 1 + package.json | 11 +++++++---- readme.md | 6 +++--- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index f3fa8cd..f98fed0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: node_js node_js: + - '12' - '10' - '8' diff --git a/package.json b/package.json index 3adea33..71d6599 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "Check if the internet connection is up", "license": "MIT", "repository": "sindresorhus/is-online", + "funding": "https://github.com/sponsors/sindresorhus", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -41,7 +42,9 @@ "socket", "reachable", "reachability", - "accessible" + "accessible", + "no", + "disconnected" ], "dependencies": { "got": "^9.6.0", @@ -50,9 +53,9 @@ "public-ip": "^3.0.0" }, "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" + "ava": "^2.4.0", + "tsd": "^0.11.0", + "xo": "^0.25.3" }, "browser": "browser.js" } diff --git a/readme.md b/readme.md index 2891dc0..db6b739 100644 --- a/readme.md +++ b/readme.md @@ -36,15 +36,15 @@ Type: `object` ##### timeout -Type: `number`
+Type: `number`\ Default: `5000` Milliseconds to wait for a server to respond. ##### version -Type: `string`
-Values: `'v4'` `'v6'`
+Type: `string`\ +Values: `'v4'` `'v6'`\ Default: `'v4'` Internet Protocol version to use. This is an advanced option that is usually not necessary to be set, but it can prove useful to specifically assert IPv6 connectivity.