Socket
Socket
Sign inDemoInstall

ampersand-state

Package Overview
Dependencies
Maintainers
5
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.5.5 to 4.5.6

5

ampersand-state.js

@@ -546,3 +546,3 @@ /*$AMPERSAND_VERSION*/

}
def['default'] = desc['default'];

@@ -565,2 +565,5 @@

get: function () {
if (!this._values) {
throw Error('You may be trying to `extend` a state object with "' + name + '" which has been defined in `props` on the object being extended');
}
var value = this._values[name];

@@ -567,0 +570,0 @@ var typeDef = this._dataTypes[def.type];

2

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

@@ -6,0 +6,0 @@ "files": [

@@ -634,2 +634,4 @@ # ampersand-state

**note:** that this will only be `true` if checked inside a handler while the various `change` events are firing. Once the change events are done this will always return `false`. This has nothing to do with determining whether a property has changed since the last time it was saved to the server.
### changedAttributes `state.changedAttributes([objectToDiff])`

@@ -639,4 +641,6 @@

Note that if passing an attributes object to diff against, only changes to properties defined on the model will be detected. This means that changes to children or collections will *not* be returned as changes by this method.
**note:** that if passing an attributes object to diff against, only changes to properties defined on the model will be detected. This means that changes to children or collections will *not* be returned as changes by this method.
**note:** that this will only return values if checked inside a handler while the various `change` events are firing. Once the change events are done this will always be return an empty object. This has nothing to do with determining which properties have been changed since the last time it was saved to the server.
### toJSON `state.toJSON()`

@@ -643,0 +647,0 @@

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