New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@highpoint/js-fetch

Package Overview
Dependencies
Maintainers
3
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 2.3.0 to 2.3.1

32

dist/js-fetch.js

@@ -1,2 +0,2 @@

import _objectSpread from "@babel/runtime/helpers/objectSpread";
import _objectSpread2 from "@babel/runtime/helpers/objectSpread";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";

@@ -101,3 +101,3 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";

}
}, _callee, this);
}, _callee);
}));

@@ -123,10 +123,12 @@

if (isFramed) {
window.parent.postMessage('is-active', '*'); // Let parent know child is active
window.parent.postMessage({
type: 'is-active'
}, '*'); // Let parent know child is active
}
if (isOffline()) throw new Error('Network Error. Are you offline?');
return fetch(url.indexOf('http') === 0 ? url : getBaseURI() + url, _objectSpread({
return fetch(url.indexOf('http') === 0 ? url : getBaseURI() + url, _objectSpread2({
method: method,
credentials: credentials,
headers: _objectSpread({
headers: _objectSpread2({
accept: accept

@@ -145,5 +147,5 @@ }, headers)

return doFetch(url, _objectSpread({
return doFetch(url, _objectSpread2({
method: method,
headers: _objectSpread({}, getDefaultHeaders(), headers)
headers: _objectSpread2(_objectSpread2({}, getDefaultHeaders()), headers)
}, otherArgs));

@@ -158,4 +160,4 @@ };

return doPost(url, _objectSpread({
headers: _objectSpread({
return doPost(url, _objectSpread2({
headers: _objectSpread2({
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'

@@ -180,4 +182,4 @@ }, headers)

return doPost(getBinaryURL(url), _objectSpread({
headers: _objectSpread({
return doPost(getBinaryURL(url), _objectSpread2({
headers: _objectSpread2({
'Content-Type': 'application/json'

@@ -213,3 +215,3 @@ }, headers),

}
}, _callee2, this);
}, _callee2);
}));

@@ -246,3 +248,3 @@

}
}, _callee3, this);
}, _callee3);
}));

@@ -279,3 +281,3 @@

}
}, _callee4, this);
}, _callee4);
}));

@@ -311,3 +313,3 @@

}
}, _callee5, this);
}, _callee5);
}));

@@ -314,0 +316,0 @@

{
"name": "@highpoint/js-fetch",
"version": "2.3.0",
"version": "2.3.1",
"description": "HighPoint Fetch Library",

@@ -5,0 +5,0 @@ "main": "dist/js-fetch.js",

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