
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-undo-stack
Advanced tools
A simple undo/redo stack for Ember.js objects
Questions? Ping me @gavinjoyce
This is an Ember CLI addon, to install:
npm install ember-undo-stack --save
Add the UndoStack
mixin and implement a checkpointData
computed property and a restoreCheckpoint
function:
var Cat = Ember.Object.extend(UndoStack, {
name: 'Sully',
color: 'Black',
checkpointData: function() {
return {
name: this.get('name'),
color: this.get('color')
}
}.property('name', 'color'),
restoreCheckpoint: function(data) {
this.setProperties({
name: data.name,
color: data.color
});
}
})
The UndoStack
mixin adds checkpoint
, undo
and redo
functions to your object which can be used as follows:
var cat = Cat.create({
name: 'Sooty',
color: 'Black'
});
cat.checkpoint();
cat.set('name', 'Hugo');
cat.checkpoint();
cat.undo();
cat.get('name'); // => 'Sooty'
cat.redo();
cat.get('name'); // => 'Hugo'
A throttledCheckpoint
function and undoCheckpointThrottleInMilliseconds
property are also added.
git clone
this repositorynpm install
bower install
ember server
FAQs
A simple undo/redo stack for Ember.js objects
The npm package ember-undo-stack receives a total of 675 weekly downloads. As such, ember-undo-stack popularity was classified as not popular.
We found that ember-undo-stack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.