
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@ember-data/request-utils
Advanced tools
Utilities for Requests
This package provides Simple utility function to assist in url building, query params, and other common request operations.
It's built for EmberData but useful more broadly if you're looking for lightweight functions to assist in working with urls and query params.
Install using your javascript package manager of choice. For instance with pnpm
pnpm add @ember-data/request-utils
Tagged Releases
These primitives may be used directly or composed by request builders to provide a consistent interface for building requests.
For instance:
import { buildBaseURL, buildQueryParams } from '@ember-data/request-utils';
const baseURL = buildBaseURL({
host: 'https://api.example.com',
namespace: 'api/v1',
resourcePath: 'emberDevelopers',
op: 'query',
identifier: { type: 'ember-developer' }
});
const url = `${baseURL}?${buildQueryParams({ name: 'Chris', include:['pets'] })}`;
// => 'https://api.example.com/api/v1/emberDevelopers?include=pets&name=Chris'
This is useful, but not as useful as the REST request builder for query which is sugar over this (and more!):
import { query } from '@ember-data/rest/request';
const options = query('ember-developer', { name: 'Chris', include:['pets'] });
// => { url: 'https://api.example.com/api/v1/emberDevelopers?include=pets&name=Chris' }
// Note: options will also include other request options like headers, method, etc.
FAQs
Request Building Utilities for use with EmberData
The npm package @ember-data/request-utils receives a total of 25,241 weekly downloads. As such, @ember-data/request-utils popularity was classified as popular.
We found that @ember-data/request-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 13 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.