Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
ampersand-jsonapi-model
Advanced tools
An extension to ampersand-model that adds methods and properties for working with JSON-API.
AmpersandJSONAPIModel is a JSON-API-compatible extension of the AmpersandJS Model.
It achieves this JSON-API compatibility by overriding select methods within ampersand-model and adding appropriate HTTP headers to requests.
npm install ampersand-jsonapi-model
Except as described below, AmpersandJSONAPIModel has the same interface as AmpersandModel and AmpersandState.
To ensure this, AmpersandJSONAPIModel passes all tests for AmpersandModel (version 6.0.2).
The following methods have been overridden:
This adds additional options for returning children
and collections
along
with the standard session
, props
, and derived
options.
This has been augmented to parse JSON-API formatted data: specifically a
format in which model attributes are nested within the structure
{ data: { attributes: {} } }
.
This has been augmented in order to handle the special structure and additional relationship data included in saving to a JSON-API-compatible server.
This has been augmented in order to serialize data into the correct format expected by JSON-API.
FAQs
An extension to ampersand-model that adds methods and properties for working with JSON-API.
The npm package ampersand-jsonapi-model receives a total of 0 weekly downloads. As such, ampersand-jsonapi-model popularity was classified as not popular.
We found that ampersand-jsonapi-model demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.