
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-immer-changeset
Advanced tools
ember install ember-immer-changeset
https://triptyk.github.io/ember-immer-changeset/
const userData = {
id: 1,
name: 'John Doe',
email: 'johndoe@example.com',
age: 30,
};
const userChangeset = new ImmerChangeset(userData);
// Display the initial user data
console.log('Initial User Data:', userChangeset.data);
// Make changes to the user data using the set method
userChangeset.set('name', 'Jane Doe');
userChangeset.set('age', 31);
// Check if there are changes
console.log('Is Dirty:', userChangeset.isDirty);
// Get the changes made
console.log('Changes:', userChangeset.changes);
await userChangeset.validate((draftData) => {
userChangeset.removeErrors();
console.log('Validating:', draftData);
if (draftData.age < 18) {
userChangeset.addError({
originalValue: draftData.age,
value: 18,
key: 'age',
});
}
});
if (userChangeset.isValid) {
// Apply the changes to the original data
userChangeset.execute();
// Display the updated user data
console.log('Updated User Data:', userChangeset.data);
// Save the changes
userChangeset.save();
console.log('Is Dirty:', userChangeset.isDirty);
// Display the final user data after saving
console.log('User Data after Saving:', userChangeset.data);
}
FAQs
A changeset library for emberJS using ImmerJS.
We found that ember-immer-changeset 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
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.