ampersand-state
Advanced tools
Comparing version 5.0.1 to 5.0.2
'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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5
771
66669
+ Addedlodash@^4.11.1
+ Addedampersand-events@2.0.2(transitive)
+ Addedlodash@4.17.21(transitive)
- Removedlodash.assign@^3.2.0
- Removedlodash.bind@^3.1.0
- Removedlodash.escape@^3.0.0
- Removedlodash.forown@^3.0.2
- Removedlodash.has@^3.0.0
- Removedlodash.includes@^3.1.3
- Removedlodash.isarray@^3.0.4
- Removedlodash.isdate@^3.0.1
- Removedlodash.isequal@^3.0.1
- Removedlodash.isfunction@^3.0.6
- Removedlodash.isobject@^3.0.1
- Removedlodash.isstring@^3.0.1
- Removedlodash.omit@^3.1.0
- Removedlodash.result@^3.0.0
- Removedlodash.union@^3.1.0
- Removedlodash.uniqueid@^3.0.0
- Removedampersand-events@1.1.1(transitive)
- Removedlodash._arrayeach@3.0.0(transitive)
- Removedlodash._arraymap@3.0.0(transitive)
- Removedlodash._baseassign@3.2.0(transitive)
- Removedlodash._basecopy@3.0.1(transitive)
- Removedlodash._basedifference@3.0.3(transitive)
- Removedlodash._baseeach@3.0.4(transitive)
- Removedlodash._baseflatten@3.1.4(transitive)
- Removedlodash._basefor@3.0.3(transitive)
- Removedlodash._baseget@3.7.2(transitive)
- Removedlodash._baseindexof@3.1.0(transitive)
- Removedlodash._baseisequal@3.0.7(transitive)
- Removedlodash._baseslice@3.0.3(transitive)
- Removedlodash._baseuniq@3.0.3(transitive)
- Removedlodash._basevalues@3.0.0(transitive)
- Removedlodash._bindcallback@3.0.1(transitive)
- Removedlodash._cacheindexof@3.0.2(transitive)
- Removedlodash._createassigner@3.1.1(transitive)
- Removedlodash._createcache@3.1.2(transitive)
- Removedlodash._createwrapper@3.2.0(transitive)
- Removedlodash._getnative@3.9.1(transitive)
- Removedlodash._isiterateecall@3.0.9(transitive)
- Removedlodash._pickbyarray@3.0.2(transitive)
- Removedlodash._pickbycallback@3.0.0(transitive)
- Removedlodash._replaceholders@3.0.0(transitive)
- Removedlodash._root@3.0.1(transitive)
- Removedlodash._topath@3.8.1(transitive)
- Removedlodash.assign@3.2.0(transitive)
- Removedlodash.before@3.0.3(transitive)
- Removedlodash.bind@3.1.0(transitive)
- Removedlodash.escape@3.2.0(transitive)
- Removedlodash.foreach@3.0.3(transitive)
- Removedlodash.forown@3.0.2(transitive)
- Removedlodash.has@3.2.1(transitive)
- Removedlodash.includes@3.1.3(transitive)
- Removedlodash.isarguments@3.1.0(transitive)
- Removedlodash.isarray@3.0.4(transitive)
- Removedlodash.isdate@3.0.3(transitive)
- Removedlodash.isempty@3.0.4(transitive)
- Removedlodash.isequal@3.0.4(transitive)
- Removedlodash.isfunction@3.0.9(transitive)
- Removedlodash.isobject@3.0.2(transitive)
- Removedlodash.isstring@3.0.1(transitive)
- Removedlodash.istypedarray@3.0.6(transitive)
- Removedlodash.keys@3.1.2(transitive)
- Removedlodash.keysin@3.0.8(transitive)
- Removedlodash.omit@3.1.0(transitive)
- Removedlodash.once@3.0.1(transitive)
- Removedlodash.restparam@3.6.1(transitive)
- Removedlodash.result@3.1.2(transitive)
- Removedlodash.union@3.1.0(transitive)
- Removedlodash.uniqueid@3.2.0(transitive)
Updatedampersand-events@^2.0.1