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 0.5.0 to 1.0.0

8

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

@@ -11,7 +11,7 @@ "bugs": {

"array-next": "~0.0.1",
"backbone-events-standalone": "~0.2.1",
"underscore": "~1.6.0"
"backbone-events-standalone": "0.2.1",
"underscore": "^1.6.0"
},
"devDependencies": {
"ampersand-collection": "~0.2.3",
"ampersand-collection": "^1.0.0",
"ampersand-registry": "0.x.x",

@@ -18,0 +18,0 @@ "precommit-hook": "~0.3.10",

@@ -182,2 +182,16 @@ /*jshint expr: true*/

test('everything should work with a property called `type`. Issue #6.', function (t) {
var Model = State.extend({
props: {
id: 'string',
type: 'string'
}
});
var model = new Model({id: '50', type: 'hello'});
t.equal(model.type, 'hello');
model.type = 'wat?';
t.equal(model.type, 'wat?');
t.end();
});
test('instanceof checks should pass for all parents in the chain', function (t) {

@@ -184,0 +198,0 @@ var P1 = Person.extend({});

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