Huge News!Announcing our $40M Series B led by Abstract Ventures.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 4.0.1 to 4.0.2

81

dist/js-fetch.js

@@ -5,9 +5,6 @@ import _objectSpread2 from "@babel/runtime/helpers/objectSpread";

import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
var _self$window$highpoin = self.window.highpoint;
_self$window$highpoin = _self$window$highpoin === void 0 ? {} : _self$window$highpoin;
var dataURI = _self$window$highpoin.dataURI;
var _ref = window || {},
_ref$highpoint = _ref.highpoint;
_ref$highpoint = _ref$highpoint === void 0 ? {} : _ref$highpoint;
var dataURI = _ref$highpoint.dataURI;
var getBaseURI = function getBaseURI() {

@@ -19,3 +16,3 @@ return dataURI || (document.baseURI || document.querySelector('base').href).replace(/IScript_.*/, 'IScript_');

try {
if (window.self === undefined) return false;
if (self.window === undefined) return false;
return window.self !== window.top;

@@ -48,3 +45,3 @@ } catch (e) {

function () {
var _ref2 = _asyncToGenerator(
var _ref = _asyncToGenerator(
/*#__PURE__*/

@@ -128,3 +125,3 @@ _regeneratorRuntime.mark(function _callee(response) {

return function checkResponse(_x) {
return _ref2.apply(this, arguments);
return _ref.apply(this, arguments);
};

@@ -134,12 +131,12 @@ }();

var doFetch = function doFetch(url) {
var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
_ref3$method = _ref3.method,
method = _ref3$method === void 0 ? 'GET' : _ref3$method,
_ref3$credentials = _ref3.credentials,
credentials = _ref3$credentials === void 0 ? 'same-origin' : _ref3$credentials,
_ref3$accept = _ref3.accept,
accept = _ref3$accept === void 0 ? 'application/json' : _ref3$accept,
_ref3$headers = _ref3.headers,
headers = _ref3$headers === void 0 ? {} : _ref3$headers,
otherArgs = _objectWithoutProperties(_ref3, ["method", "credentials", "accept", "headers"]);
var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
_ref2$method = _ref2.method,
method = _ref2$method === void 0 ? 'GET' : _ref2$method,
_ref2$credentials = _ref2.credentials,
credentials = _ref2$credentials === void 0 ? 'same-origin' : _ref2$credentials,
_ref2$accept = _ref2.accept,
accept = _ref2$accept === void 0 ? 'application/json' : _ref2$accept,
_ref2$headers = _ref2.headers,
headers = _ref2$headers === void 0 ? {} : _ref2$headers,
otherArgs = _objectWithoutProperties(_ref2, ["method", "credentials", "accept", "headers"]);

@@ -163,8 +160,8 @@ if (isFramed) {

var doPost = function doPost(url) {
var _ref4 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
_ref4$method = _ref4.method,
method = _ref4$method === void 0 ? 'POST' : _ref4$method,
_ref4$headers = _ref4.headers,
headers = _ref4$headers === void 0 ? {} : _ref4$headers,
otherArgs = _objectWithoutProperties(_ref4, ["method", "headers"]);
var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
_ref3$method = _ref3.method,
method = _ref3$method === void 0 ? 'POST' : _ref3$method,
_ref3$headers = _ref3.headers,
headers = _ref3$headers === void 0 ? {} : _ref3$headers,
otherArgs = _objectWithoutProperties(_ref3, ["method", "headers"]);

@@ -178,6 +175,6 @@ return doFetch(url, _objectSpread2({

var doFormPost = function doFormPost(url) {
var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
_ref5$headers = _ref5.headers,
headers = _ref5$headers === void 0 ? {} : _ref5$headers,
otherArgs = _objectWithoutProperties(_ref5, ["headers"]);
var _ref4 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
_ref4$headers = _ref4.headers,
headers = _ref4$headers === void 0 ? {} : _ref4$headers,
otherArgs = _objectWithoutProperties(_ref4, ["headers"]);

@@ -199,7 +196,7 @@ return doPost(url, _objectSpread2({

var doJSONPost = function doJSONPost(url) {
var _ref6 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
body = _ref6.body,
_ref6$headers = _ref6.headers,
headers = _ref6$headers === void 0 ? {} : _ref6$headers,
otherArgs = _objectWithoutProperties(_ref6, ["body", "headers"]);
var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
body = _ref5.body,
_ref5$headers = _ref5.headers,
headers = _ref5$headers === void 0 ? {} : _ref5$headers,
otherArgs = _objectWithoutProperties(_ref5, ["body", "headers"]);

@@ -217,3 +214,3 @@ return doPost(getBinaryURL(url), _objectSpread2({

function () {
var _ref7 = _asyncToGenerator(
var _ref6 = _asyncToGenerator(
/*#__PURE__*/

@@ -258,3 +255,3 @@ _regeneratorRuntime.mark(function _callee2() {

return function json() {
return _ref7.apply(this, arguments);
return _ref6.apply(this, arguments);
};

@@ -266,3 +263,3 @@ }();

function () {
var _ref8 = _asyncToGenerator(
var _ref7 = _asyncToGenerator(
/*#__PURE__*/

@@ -292,3 +289,3 @@ _regeneratorRuntime.mark(function _callee3() {

return function postForm() {
return _ref8.apply(this, arguments);
return _ref7.apply(this, arguments);
};

@@ -300,3 +297,3 @@ }();

function () {
var _ref9 = _asyncToGenerator(
var _ref8 = _asyncToGenerator(
/*#__PURE__*/

@@ -326,3 +323,3 @@ _regeneratorRuntime.mark(function _callee4() {

return function postJSON() {
return _ref9.apply(this, arguments);
return _ref8.apply(this, arguments);
};

@@ -334,3 +331,3 @@ }();

function () {
var _ref10 = _asyncToGenerator(
var _ref9 = _asyncToGenerator(
/*#__PURE__*/

@@ -359,3 +356,3 @@ _regeneratorRuntime.mark(function _callee5(url, args) {

return function postRaw(_x2, _x3) {
return _ref10.apply(this, arguments);
return _ref9.apply(this, arguments);
};

@@ -362,0 +359,0 @@ }();

{
"name": "@highpoint/js-fetch",
"version": "4.0.1",
"version": "4.0.2",
"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