Socket
Socket
Sign inDemoInstall

ampersand-state

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ampersand-state - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "ampersand-state",
"description": "An observable, extensible state object with derived watchable properties.",
"version": "2.0.0",
"version": "2.0.1",
"author": "Henrik Joreteg <henrik@andyet.net>",

@@ -6,0 +6,0 @@ "bugs": {

@@ -698,1 +698,14 @@ var tape = require('tape');

});
test('parent collection references should be maintained when adding/removing to a collection', function (t) {
var StateObj = State.extend({
id: 'string'
});
var c = new Collection();
var s = new StateObj({id: '47'});
c.add(s);
t.equal(s.collection, c);
c.remove(s);
t.notOk(s.collection);
t.end();
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc