Socket
Socket
Sign inDemoInstall

ampersand-state

Package Overview
Dependencies
Maintainers
2
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 4.2.1 to 4.2.2

1

ampersand-state.js

@@ -9,2 +9,3 @@ var _ = require('underscore');

options || (options = {});
if (!this.cid) this.cid = _.uniqueId('state');
this._values = {};

@@ -11,0 +12,0 @@ this._definition = Object.create(this._definition);

2

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

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

@@ -173,2 +173,14 @@ /*jshint expr: true*/

test('should have cid', function (t) {
var Model = State.extend({
props: {
id: 'string',
type: 'string'
}
});
var m = new Model();
t.ok(m.cid);
t.end();
});
test('instanceof checks should pass for all parents in the chain', function (t) {

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc