![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@highpoint/js-fetch
Advanced tools
This is a small library to make using JavaScript's fetch
a bit easier. It
provides some utility functions to handle common request types.
The library assumes that responses will be in JSON format. If a response is not going to be in that format, then you can still use the library, but most of its usefulness will be gone.
Also included are some HighPoint-specific requirements like CSRF support and
postMessage
s to parent
informing it that the user is actively using child
.
yarn add @highpoint/js-fetch
import { json } from '@highpoint/js-fetch';
(async () => {
try {
const jsonResponse = await json('https://api.example.com');
console.log(jsonResponse);
} catch (e) {
// Handle the exception
}
})();
import { postForm } from '@highpoint/js-fetch';
(async () => {
try {
const jsonResponse = await postForm('https://api.example.com', {
body: 'value1=1&value2=2'
});
console.log(jsonResponse);
} catch (e) {
// Handle the exception
}
})();
import { postJSON } from '@highpoint/js-fetch';
(async () => {
try {
const jsonResponse = await postJSON('https://api.example.com', {
body: {
value1: 1,
value2: 2
}
});
console.log(jsonResponse);
} catch (e) {
// Handle the exception
}
})();
<base>
HREF...
<base href="https://ps.example.com/psc/csdev/EMPLOYEE/SA/s/WEBLIB.ISCRIPT1.FieldFormula.IScript_Main">
...
import { json } from '@highpoint/js-fetch';
(async () => {
try {
const jsonResponse = await json('TermOptions');
console.log(jsonResponse);
} catch (e) {
// Handle the exception
}
})();
GET request would be made to https://ps.example.com/psc/csdev/EMPLOYEE/SA/s/WEBLIB.ISCRIPT1.FieldFormula.IScript_TermOptions
.
<base>
HREFThe 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.
FAQs
HighPoint Fetch Library
The npm package @highpoint/js-fetch receives a total of 2 weekly downloads. As such, @highpoint/js-fetch popularity was classified as not popular.
We found that @highpoint/js-fetch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.