@highpoint/js-fetch
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -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,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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14850
269
98
2