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 3.0.0 to 3.1.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# v3.1.0
- Added functionality to override the `<base>` url of the page with the bootstrap field `window.highpoint.dataURI`
# v2.1.0

@@ -2,0 +6,0 @@

5

dist/js-fetch.js

@@ -5,5 +5,8 @@ import _objectSpread 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 getBaseURI = function getBaseURI() {
return (document.baseURI || document.querySelector('base').href).replace(/IScript_.*/, 'IScript_');
return dataURI || (document.baseURI || document.querySelector('base').href).replace(/IScript_.*/, 'IScript_');
};

@@ -10,0 +13,0 @@

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

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

@@ -95,1 +95,5 @@ # js-fetch

GET request would be made to `https://ps.example.com/psc/csdev/EMPLOYEE/SA/s/WEBLIB.ISCRIPT1.FieldFormula.IScript_TermOptions`.
### Overriding the `<base>` HREF
The baseURI of the page can be overridden for requests made using js-fetch. If the value `window.highpoint.dataURI` is added to the global javascript namespace of the window, that url will be used instead of the `<base>` of the page.
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