is-online
Advanced tools
Comparing version 8.3.0 to 8.3.1
@@ -19,3 +19,3 @@ 'use strict'; | ||
const {body} = await gotPromise; | ||
if (body && body.includes('Success')) { | ||
if (!body || !body.includes('Success')) { | ||
throw new Error('Apple check failed'); | ||
@@ -22,0 +22,0 @@ } |
{ | ||
"name": "is-online", | ||
"version": "8.3.0", | ||
"version": "8.3.1", | ||
"description": "Check if the internet connection is up", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
7170