Socket
Socket
Sign inDemoInstall

ampersand-state

Package Overview
Dependencies
Maintainers
7
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 5.0.1 to 5.0.2

38

ampersand-state.js
'use strict';
/*$AMPERSAND_VERSION*/
var uniqueId = require('lodash.uniqueid');
var assign = require('lodash.assign');
var uniqueId = require('lodash/uniqueId');
var assign = require('lodash/assign');
var cloneObj = function(obj) { return assign({}, obj); };
var omit = require('lodash.omit');
var escape = require('lodash.escape');
var forOwn = require('lodash.forown');
var includes = require('lodash.includes');
var isString = require('lodash.isstring');
var isObject = require('lodash.isobject');
var isDate = require('lodash.isdate');
var isFunction = require('lodash.isfunction');
var _isEqual = require('lodash.isequal'); // to avoid shadowing
var has = require('lodash.has');
var result = require('lodash.result');
var bind = require('lodash.bind'); // because phantomjs doesn't have Function#bind
var union = require('lodash.union');
var omit = require('lodash/omit');
var escape = require('lodash/escape');
var forOwn = require('lodash/forOwn');
var includes = require('lodash/includes');
var isString = require('lodash/isString');
var isObject = require('lodash/isObject');
var isDate = require('lodash/isDate');
var isFunction = require('lodash/isFunction');
var _isEqual = require('lodash/isEqual'); // to avoid shadowing
var has = require('lodash/has');
var result = require('lodash/result');
var bind = require('lodash/bind'); // because phantomjs doesn't have Function#bind
var union = require('lodash/union');
var Events = require('ampersand-events');

@@ -106,8 +106,8 @@ var KeyTree = require('key-tree-store');

var res = this.getAttributes(attrOpts, true);
forOwn(this._children, function (value, key) {
forOwn(this._children, bind(function (value, key) {
res[key] = this[key].serialize();
}, this);
forOwn(this._collections, function (value, key) {
}, this));
forOwn(this._collections, bind(function (value, key) {
res[key] = this[key].serialize();
}, this);
}, this));
return res;

@@ -114,0 +114,0 @@ },

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

@@ -18,22 +18,7 @@ "files": [

"dependencies": {
"ampersand-events": "^1.1.1",
"ampersand-events": "^2.0.1",
"ampersand-version": "^1.0.0",
"array-next": "~0.0.1",
"key-tree-store": "^1.3.0",
"lodash.assign": "^3.2.0",
"lodash.bind": "^3.1.0",
"lodash.escape": "^3.0.0",
"lodash.forown": "^3.0.2",
"lodash.has": "^3.0.0",
"lodash.includes": "^3.1.3",
"lodash.isarray": "^3.0.4",
"lodash.isdate": "^3.0.1",
"lodash.isequal": "^3.0.1",
"lodash.isfunction": "^3.0.6",
"lodash.isobject": "^3.0.1",
"lodash.isstring": "^3.0.1",
"lodash.omit": "^3.1.0",
"lodash.result": "^3.0.0",
"lodash.union": "^3.1.0",
"lodash.uniqueid": "^3.0.0"
"lodash": "^4.11.1"
},

@@ -46,3 +31,3 @@ "devDependencies": {

"jshint": "^2.5.3",
"phantomjs": "^1.9.19",
"phantomjs": "^2.1.7",
"precommit-hook": "^3.0.0",

@@ -49,0 +34,0 @@ "tape": "^4.0.3",

# ampersand-state
Lead Maintainer: [Philip Roberts](https://github.com/latentflip)
[![Coverage Status](https://coveralls.io/repos/AmpersandJS/ampersand-state/badge.svg?branch=master&service=github)](https://coveralls.io/github/AmpersandJS/ampersand-state?branch=master)

@@ -765,1 +767,5 @@

<!-- endhide -->
## changelog
- 5.0.2 - use lodash/xzy pkg requires (@samhashemi)
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