Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@highpoint/js-fetch

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@highpoint/js-fetch - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

3

CHANGELOG.md

@@ -0,1 +1,4 @@

# v1.1.0
* Throw exception when device is offline
# v1.0.1

@@ -2,0 +5,0 @@ * Throw exception on authorization errors

@@ -29,2 +29,6 @@ 'use strict';

var isOffline = function isOffline() {
return 'onLine' in window.navigator && !window.navigator.onLine;
};
var checkResponse = function () {

@@ -114,2 +118,3 @@ var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(response) {

}
if (isOffline()) throw new Error('Network Error. Are you offline?');
return fetch(url.indexOf('http') === 0 ? url : baseURI + url, _extends({

@@ -116,0 +121,0 @@ method: method,

4

package.json
{
"name": "@highpoint/js-fetch",
"version": "1.0.1",
"version": "1.1.0",
"description": "HighPoint Fetch Library",

@@ -34,4 +34,4 @@ "main": "dist/js-fetch.js",

"precommit": "lint-staged",
"prepare": "run-s clean build"
"prepack": "run-s clean build"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc