
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@testcafe/json-hammerhead
Advanced tools
This is a JSON implementation used in [TestCafe Hammerhead](https://github.com/DevExpress/testcafe-hammerhead) web proxy's client code.
This is a JSON implementation used in TestCafe Hammerhead web proxy's client code.
Serialization/deserialization logic is borrowed from http://json.org/json2.js.
TestCafe Hammerhead client code required an isolated JSON implementation that does not rely on any external stuff (like prototypes, existing JSON implementations, etc.)
So we ended up with this json-hammerhead module based on json2.js but without fallbacks to the existing JSON implementations.
Provides drop-in replacement for standard JSON.parse and JSON.stringify methods.
const JSON = require('json-hammerhead');
let jsonString = '{"foo": "bar"}';
const obj = JSON.parse(jsonString);
console.log(obj.foo) // > bar ;
obj.foo = "abc";
jsonString = JSON.stringify(obj);
console.log(jsonString) // > {"foo": "abc"} ;
Adds the JSON.isSerializable method that determines if the given object can be serialized.
const JSON = require('json-hammerhead');
if(JSON.isSerializable({ foo: "bar" }))
console.log('Regular JavaScript objects can be serialized');
if(!JSON.isSerializable(document.body))
console.log('DOM nodes cannot be serialized');
if(!JSON.isSerializable(function () { return void 0; }))
console.log('Functions cannot be serialized');
FAQs
This is a JSON implementation used in [TestCafe Hammerhead](https://github.com/DevExpress/testcafe-hammerhead) web proxy's client code.
We found that @testcafe/json-hammerhead demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.