
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@fastly/grip-compute-js
Advanced tools
Publishing messages through @fanoutio/grip
uses the global fetch()
function as the underlying mechanism. When using fetch()
in Fastly Compute, it requires the specification of the backend
parameter.
The main purpose of this library was to define that backend
value as a query parameter added to the GRIP_URL
and
to provide specialized versions of parseGripUri
and Publisher
that can work with this parameter.
In @fanoutio/grip version 4, the Publisher
class constructor accepts
an optional second parameter that is used to customize its behavior when performing this fetch()
.
The example below assigns the backend called 'publisher'
before calling the global fetch.
import { Publisher } from '@fanoutio/grip';
const publisher = new Publisher(gripConfig, {
fetch(input, init) {
return fetch(String(input), { ...init, backend: 'publisher' });
},
});
If you wish to configure the value by adding it to GRIP_URL
, the following setup can be used:
import { Publisher } from '@fanoutio/grip';
const GRIP_URL = 'https://pushpin.myproject.com/?iss=app&key=secret&backend=publisher';
const publisher = new Publisher(GRIP_URL, {
fetch(input, init) {
const url = new URL(input);
const backend = url.searchParams.get('backend');
url.searchParams.delete('backend');
return fetch(url.toString(), { ...init, backend });
},
});
If you encounter any non-security-related bug or unexpected behavior, please file an issue using the bug report template.
Please see our SECURITY.md for guidance on reporting security-related issues.
MIT.
FAQs
Extension of js-grip for Fastly Compute
The npm package @fastly/grip-compute-js receives a total of 0 weekly downloads. As such, @fastly/grip-compute-js popularity was classified as not popular.
We found that @fastly/grip-compute-js 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.