From 60b8329a73b486d5361cc74633efb09d15c84823 Mon Sep 17 00:00:00 2001 From: jdalton Date: Thu, 29 Jan 2015 23:56:52 -0800 Subject: [PATCH] Bump to v3.0.1. --- README.md | 2 +- lodash._arraymax/README.md | 20 ----- lodash._arraymax/index.js | 34 -------- lodash._arraymax/package.json | 18 ---- lodash._arraymin/README.md | 20 ----- lodash._arraymin/index.js | 34 -------- lodash._arraymin/package.json | 18 ---- lodash._baseassign/README.md | 4 +- lodash._baseassign/index.js | 4 +- lodash._baseassign/package.json | 2 +- lodash._baseat/LICENSE.txt | 2 +- lodash._baseat/README.md | 4 +- lodash._baseat/index.js | 17 ++-- lodash._baseat/package.json | 2 +- lodash._basecallback/README.md | 4 +- lodash._basecallback/index.js | 19 +---- lodash._basecallback/package.json | 2 +- lodash._baseclone/LICENSE.txt | 2 +- lodash._baseclone/README.md | 4 +- lodash._baseclone/index.js | 15 ++-- lodash._baseclone/package.json | 2 +- lodash._basecompareascending/LICENSE.txt | 2 +- lodash._basecompareascending/README.md | 4 +- lodash._basecompareascending/index.js | 8 +- lodash._basecompareascending/package.json | 2 +- lodash._basecopy/LICENSE.txt | 2 +- lodash._basecopy/README.md | 4 +- lodash._basecopy/index.js | 16 ++-- lodash._basecopy/package.json | 2 +- lodash._basecreate/LICENSE.txt | 2 +- lodash._basecreate/README.md | 4 +- lodash._basecreate/index.js | 10 +-- lodash._basecreate/package.json | 2 +- lodash._basedelay/README.md | 4 +- lodash._basedelay/index.js | 7 +- lodash._basedelay/package.json | 5 +- lodash._basedifference/README.md | 4 +- lodash._basedifference/index.js | 6 +- lodash._basedifference/package.json | 2 +- lodash._baseeach/README.md | 4 +- lodash._baseeach/index.js | 38 ++++++++- lodash._baseeach/package.json | 3 +- lodash._baseeachright/LICENSE.txt | 2 +- lodash._baseeachright/README.md | 4 +- lodash._baseeachright/index.js | 59 +++++++------ lodash._baseeachright/package.json | 2 +- lodash._basefind/README.md | 20 ----- lodash._basefind/index.js | 34 -------- lodash._basefind/package.json | 18 ---- lodash._baseflatten/README.md | 4 +- lodash._baseflatten/index.js | 6 +- lodash._baseflatten/package.json | 2 +- lodash._basefor/LICENSE.txt | 2 +- lodash._basefor/README.md | 4 +- lodash._basefor/index.js | 43 ++++++---- lodash._basefor/package.json | 2 +- lodash._baseforright/LICENSE.txt | 2 +- lodash._baseforright/README.md | 4 +- lodash._baseforright/index.js | 42 ++++++---- lodash._baseforright/package.json | 2 +- lodash._baseisequal/README.md | 4 +- lodash._baseisequal/index.js | 19 +---- lodash._baseisequal/package.json | 2 +- lodash._baseproperty/README.md | 20 ----- lodash._baseproperty/index.js | 23 ------ lodash._baseproperty/package.json | 18 ---- .../LICENSE.txt => lodash._baserandom/LICENSE | 2 +- lodash._baserandom/LICENSE.txt | 22 ----- lodash._baserandom/README.md | 4 +- lodash._baserandom/index.js | 12 ++- lodash._baserandom/package.json | 2 +- lodash._basereduce/README.md | 4 +- lodash._basereduce/index.js | 17 ++-- lodash._basereduce/package.json | 2 +- lodash._baseslice/README.md | 4 +- lodash._baseslice/index.js | 5 +- lodash._baseslice/package.json | 2 +- .../LICENSE | 2 +- lodash._basetostring/LICENSE.txt | 22 ----- lodash._basetostring/README.md | 4 +- lodash._basetostring/index.js | 9 +- lodash._basetostring/package.json | 2 +- lodash._baseuniq/README.md | 4 +- lodash._baseuniq/index.js | 6 +- lodash._baseuniq/package.json | 2 +- lodash._binaryindex/LICENSE.txt | 2 +- lodash._binaryindex/README.md | 4 +- lodash._binaryindex/index.js | 8 +- lodash._binaryindex/package.json | 2 +- lodash._binaryindexby/LICENSE.txt | 2 +- lodash._binaryindexby/README.md | 4 +- lodash._binaryindexby/index.js | 12 ++- lodash._binaryindexby/package.json | 2 +- lodash._bindcallback/LICENSE.txt | 2 +- lodash._bindcallback/README.md | 4 +- lodash._bindcallback/index.js | 6 +- lodash._bindcallback/package.json | 2 +- lodash._cacheindexof/LICENSE.txt | 2 +- lodash._cacheindexof/README.md | 4 +- lodash._cacheindexof/index.js | 10 +-- lodash._cacheindexof/package.json | 2 +- lodash._createassigner/README.md | 4 +- lodash._createassigner/index.js | 33 +++++--- lodash._createassigner/package.json | 2 +- lodash._createcache/LICENSE.txt | 2 +- lodash._createcache/README.md | 4 +- lodash._createcache/index.js | 10 +-- lodash._createcache/package.json | 2 +- lodash._createextremum/LICENSE.txt | 2 +- lodash._createextremum/README.md | 4 +- lodash._createextremum/index.js | 7 +- lodash._createextremum/package.json | 2 +- lodash._createpad/README.md | 4 +- lodash._createpad/index.js | 19 +---- lodash._createpad/package.json | 2 +- lodash._createwrapper/README.md | 4 +- lodash._createwrapper/index.js | 11 ++- lodash._createwrapper/package.json | 5 +- lodash._isiterateecall/README.md | 4 +- lodash._isiterateecall/index.js | 4 +- lodash._isiterateecall/package.json | 2 +- lodash._pickbyarray/LICENSE.txt | 2 +- lodash._pickbyarray/README.md | 4 +- lodash._pickbyarray/index.js | 10 +-- lodash._pickbyarray/package.json | 2 +- lodash._reescape/LICENSE.txt | 22 ----- lodash._reescape/README.md | 20 ----- lodash._reescape/index.js | 13 --- lodash._reescape/package.json | 18 ---- lodash._reevaluate/LICENSE.txt | 22 ----- lodash._reevaluate/README.md | 20 ----- lodash._reevaluate/index.js | 13 --- lodash._reevaluate/package.json | 18 ---- lodash._root/LICENSE | 33 ++++---- lodash._root/README.md | 4 +- lodash._root/index.js | 14 +++- lodash._root/package.json | 2 +- lodash._toiterable/LICENSE.txt | 2 +- lodash._toiterable/README.md | 4 +- lodash._toiterable/index.js | 19 ++--- lodash._toiterable/package.json | 2 +- lodash.after/README.md | 4 +- lodash.after/index.js | 16 +--- lodash.after/package.json | 7 +- lodash.ary/LICENSE.txt | 2 +- lodash.ary/README.md | 4 +- lodash.ary/index.js | 6 +- lodash.ary/package.json | 2 +- lodash.before/README.md | 4 +- lodash.before/index.js | 7 +- lodash.before/package.json | 7 +- lodash.camelcase/README.md | 4 +- lodash.camelcase/index.js | 7 +- lodash.camelcase/package.json | 2 +- .../LICENSE.txt => lodash.chunk/LICENSE | 2 +- lodash.chunk/LICENSE.txt | 22 ----- lodash.chunk/README.md | 4 +- lodash.chunk/index.js | 15 ++-- lodash.chunk/package.json | 2 +- lodash.clone/README.md | 4 +- lodash.clone/index.js | 28 ++++--- lodash.clone/package.json | 2 +- lodash.clonedeep/LICENSE.txt | 2 +- lodash.clonedeep/README.md | 4 +- lodash.clonedeep/index.js | 9 +- lodash.clonedeep/package.json | 2 +- lodash.compact/LICENSE | 23 ++++++ lodash.compact/LICENSE.txt | 22 ----- lodash.compact/README.md | 10 +-- lodash.compact/index.js | 15 ++-- lodash.compact/package.json | 10 +-- lodash.curry/LICENSE.txt | 2 +- lodash.curry/README.md | 4 +- lodash.curry/index.js | 34 +++++--- lodash.curry/package.json | 2 +- lodash.curryright/LICENSE.txt | 2 +- lodash.curryright/README.md | 4 +- lodash.curryright/index.js | 34 +++++--- lodash.curryright/package.json | 2 +- lodash.debounce/README.md | 4 +- lodash.debounce/index.js | 11 +-- lodash.debounce/package.json | 3 +- lodash.deburr/LICENSE.txt | 2 +- lodash.deburr/README.md | 4 +- lodash.deburr/index.js | 16 ++-- lodash.deburr/package.json | 2 +- lodash.difference/README.md | 4 +- lodash.difference/index.js | 13 +-- lodash.difference/package.json | 2 +- lodash.droprightwhile/LICENSE.txt | 2 +- lodash.droprightwhile/README.md | 4 +- lodash.droprightwhile/index.js | 37 ++++++--- lodash.droprightwhile/package.json | 2 +- lodash.dropwhile/LICENSE.txt | 2 +- lodash.dropwhile/README.md | 4 +- lodash.dropwhile/index.js | 38 ++++++--- lodash.dropwhile/package.json | 2 +- lodash.endswith/LICENSE.txt | 2 +- lodash.endswith/README.md | 4 +- lodash.endswith/index.js | 10 ++- lodash.endswith/package.json | 2 +- .../LICENSE | 2 +- lodash.escaperegexp/LICENSE.txt | 22 ----- lodash.escaperegexp/README.md | 4 +- lodash.escaperegexp/index.js | 52 ++++++++++-- lodash.escaperegexp/package.json | 2 +- lodash.findkey/LICENSE.txt | 2 +- lodash.findkey/README.md | 4 +- lodash.findkey/index.js | 27 ++++-- lodash.findkey/package.json | 2 +- lodash.findlastkey/LICENSE.txt | 2 +- lodash.findlastkey/README.md | 4 +- lodash.findlastkey/index.js | 23 ++++-- lodash.findlastkey/package.json | 2 +- lodash.flatten/README.md | 4 +- lodash.flatten/index.js | 6 +- lodash.flatten/package.json | 2 +- lodash.flattendeep/README.md | 4 +- lodash.flattendeep/index.js | 6 +- lodash.flattendeep/package.json | 2 +- lodash.foreach/README.md | 4 +- lodash.foreach/index.js | 10 ++- lodash.foreach/package.json | 2 +- lodash.foreachright/LICENSE.txt | 2 +- lodash.foreachright/README.md | 4 +- lodash.foreachright/index.js | 30 +++++-- lodash.foreachright/package.json | 2 +- lodash.forin/LICENSE.txt | 2 +- lodash.forin/README.md | 4 +- lodash.forin/index.js | 29 +++++-- lodash.forin/package.json | 2 +- lodash.forinright/LICENSE.txt | 2 +- lodash.forinright/README.md | 4 +- lodash.forinright/index.js | 25 ++++-- lodash.forinright/package.json | 2 +- lodash.forown/LICENSE.txt | 2 +- lodash.forown/README.md | 4 +- lodash.forown/index.js | 29 +++++-- lodash.forown/package.json | 2 +- lodash.forownright/LICENSE.txt | 2 +- lodash.forownright/README.md | 4 +- lodash.forownright/index.js | 38 +++++++-- lodash.forownright/package.json | 2 +- lodash.indexof/README.md | 4 +- lodash.indexof/index.js | 8 +- lodash.indexof/package.json | 2 +- lodash.intersection/README.md | 4 +- lodash.intersection/index.js | 6 +- lodash.intersection/package.json | 2 +- lodash.invert/LICENSE | 22 +++++ lodash.invert/LICENSE.txt | 22 ----- lodash.invert/README.md | 4 +- lodash.invert/index.js | 6 +- lodash.invert/package.json | 2 +- lodash.isarguments/LICENSE.txt | 2 +- lodash.isarguments/README.md | 4 +- lodash.isarguments/index.js | 22 ++--- lodash.isarguments/package.json | 2 +- lodash.isarray/LICENSE.txt | 2 +- lodash.isarray/README.md | 4 +- lodash.isarray/index.js | 36 ++++---- lodash.isarray/package.json | 2 +- lodash.isboolean/LICENSE.txt | 2 +- lodash.isboolean/README.md | 4 +- lodash.isboolean/index.js | 18 ++-- lodash.isboolean/package.json | 2 +- lodash.isdate/LICENSE.txt | 2 +- lodash.isdate/README.md | 4 +- lodash.isdate/index.js | 18 ++-- lodash.isdate/package.json | 2 +- lodash.iselement/README.md | 4 +- lodash.iselement/index.js | 53 +++++++++++- lodash.iselement/package.json | 5 +- lodash.isempty/LICENSE.txt | 2 +- lodash.isempty/README.md | 4 +- lodash.isempty/index.js | 15 ++-- lodash.isempty/package.json | 2 +- lodash.isequal/LICENSE.txt | 2 +- lodash.isequal/README.md | 4 +- lodash.isequal/index.js | 12 ++- lodash.isequal/package.json | 2 +- lodash.iserror/LICENSE.txt | 2 +- lodash.iserror/README.md | 4 +- lodash.iserror/index.js | 18 ++-- lodash.iserror/package.json | 2 +- lodash.isfunction/README.md | 4 +- lodash.isfunction/index.js | 36 ++++---- lodash.isfunction/package.json | 2 +- lodash.isnan/LICENSE | 22 +++++ lodash.isnan/LICENSE.txt | 22 ----- lodash.isnan/README.md | 10 +-- lodash.isnan/index.js | 82 +++++++++++++++++-- lodash.isnan/package.json | 15 ++-- lodash.isnative/LICENSE.txt | 2 +- lodash.isnative/README.md | 4 +- lodash.isnative/index.js | 25 +++--- lodash.isnative/package.json | 2 +- lodash.isnumber/LICENSE.txt | 2 +- lodash.isnumber/README.md | 4 +- lodash.isnumber/index.js | 18 ++-- lodash.isnumber/package.json | 2 +- lodash.isobject/LICENSE.txt | 2 +- lodash.isobject/README.md | 4 +- lodash.isobject/index.js | 10 +-- lodash.isobject/package.json | 2 +- lodash.isplainobject/LICENSE.txt | 2 +- lodash.isplainobject/README.md | 4 +- lodash.isplainobject/index.js | 11 ++- lodash.isplainobject/package.json | 2 +- lodash.isregexp/LICENSE.txt | 2 +- lodash.isregexp/README.md | 4 +- lodash.isregexp/index.js | 11 ++- lodash.isregexp/package.json | 2 +- lodash.isstring/LICENSE.txt | 2 +- lodash.isstring/README.md | 4 +- lodash.isstring/index.js | 18 ++-- lodash.isstring/package.json | 2 +- lodash.istypedarray/LICENSE.txt | 2 +- lodash.istypedarray/README.md | 4 +- lodash.istypedarray/index.js | 22 ++--- lodash.istypedarray/package.json | 2 +- lodash.isundefined/LICENSE.txt | 2 +- lodash.isundefined/README.md | 4 +- lodash.isundefined/index.js | 9 +- lodash.isundefined/package.json | 2 +- lodash.kebabcase/README.md | 4 +- lodash.kebabcase/index.js | 6 +- lodash.kebabcase/package.json | 2 +- lodash.keys/README.md | 4 +- lodash.keys/index.js | 53 +++++++++++- lodash.keys/package.json | 5 +- lodash.keysin/README.md | 4 +- lodash.keysin/index.js | 53 +++++++++++- lodash.keysin/package.json | 5 +- lodash.lastindexof/README.md | 4 +- lodash.lastindexof/index.js | 8 +- lodash.lastindexof/package.json | 2 +- lodash.mapvalues/LICENSE.txt | 2 +- lodash.mapvalues/README.md | 4 +- lodash.mapvalues/index.js | 36 +++++--- lodash.mapvalues/package.json | 2 +- lodash.memoize/README.md | 4 +- lodash.memoize/index.js | 2 +- lodash.memoize/package.json | 2 +- lodash.merge/README.md | 4 +- lodash.merge/index.js | 5 +- lodash.merge/package.json | 2 +- lodash.mixin/LICENSE.txt | 2 +- lodash.mixin/README.md | 4 +- lodash.mixin/index.js | 10 ++- lodash.mixin/package.json | 2 +- lodash.negate/README.md | 4 +- lodash.negate/index.js | 10 +-- lodash.negate/package.json | 7 +- lodash.noop/LICENSE | 22 +++++ lodash.noop/LICENSE.txt | 22 ----- lodash.noop/README.md | 10 +-- lodash.noop/index.js | 18 ++-- lodash.noop/package.json | 10 +-- lodash.pairs/LICENSE.txt | 2 +- lodash.pairs/README.md | 4 +- lodash.pairs/index.js | 44 +++++++++- lodash.pairs/package.json | 2 +- lodash.parseint/LICENSE.txt | 2 +- lodash.parseint/README.md | 4 +- lodash.parseint/index.js | 8 +- lodash.parseint/package.json | 2 +- lodash.pluck/README.md | 4 +- lodash.pluck/index.js | 31 +------ lodash.pluck/package.json | 2 +- lodash.pull/README.md | 4 +- lodash.pull/index.js | 23 +++--- lodash.pull/package.json | 2 +- lodash.random/LICENSE | 22 +++++ lodash.random/LICENSE.txt | 22 ----- lodash.random/README.md | 4 +- lodash.random/index.js | 6 +- lodash.random/package.json | 2 +- lodash.range/LICENSE | 22 +++++ lodash.range/LICENSE.txt | 22 ----- lodash.range/README.md | 4 +- lodash.range/index.js | 16 ++-- lodash.range/package.json | 2 +- lodash.reduce/LICENSE.txt | 2 +- lodash.reduce/README.md | 4 +- lodash.reduce/index.js | 32 ++++++-- lodash.reduce/package.json | 2 +- lodash.reduceright/LICENSE.txt | 2 +- lodash.reduceright/README.md | 4 +- lodash.reduceright/index.js | 28 +++++-- lodash.reduceright/package.json | 2 +- lodash.reescape/README.md | 6 +- lodash.reescape/index.js | 14 +--- lodash.reescape/package.json | 10 ++- lodash.reevaluate/README.md | 6 +- lodash.reevaluate/index.js | 14 +--- lodash.reevaluate/package.json | 10 ++- lodash.reinterpolate/README.md | 6 +- lodash.reinterpolate/index.js | 14 +--- lodash.reinterpolate/package.json | 10 ++- lodash.remove/LICENSE.txt | 2 +- lodash.remove/README.md | 4 +- lodash.remove/index.js | 57 +++++++++++-- lodash.remove/package.json | 2 +- lodash.repeat/LICENSE | 22 +++++ lodash.repeat/LICENSE.txt | 22 ----- lodash.repeat/README.md | 4 +- lodash.repeat/index.js | 12 ++- lodash.repeat/package.json | 2 +- lodash.size/LICENSE.txt | 2 +- lodash.size/README.md | 4 +- lodash.size/index.js | 31 ++++++- lodash.size/package.json | 2 +- lodash.snakecase/README.md | 4 +- lodash.snakecase/index.js | 5 +- lodash.snakecase/package.json | 2 +- lodash.sortbyall/README.md | 4 +- lodash.sortbyall/index.js | 4 +- lodash.sortbyall/package.json | 2 +- lodash.sortedindex/LICENSE.txt | 2 +- lodash.sortedindex/README.md | 4 +- lodash.sortedindex/index.js | 29 +++++-- lodash.sortedindex/package.json | 2 +- lodash.sortedlastindex/LICENSE.txt | 2 +- lodash.sortedlastindex/README.md | 4 +- lodash.sortedlastindex/index.js | 25 ++++-- lodash.sortedlastindex/package.json | 2 +- lodash.startswith/LICENSE.txt | 2 +- lodash.startswith/README.md | 4 +- lodash.startswith/index.js | 9 +- lodash.startswith/package.json | 2 +- lodash.support/LICENSE.txt | 2 +- lodash.support/README.md | 4 +- lodash.support/index.js | 16 ++-- lodash.support/package.json | 2 +- lodash.takerightwhile/LICENSE.txt | 2 +- lodash.takerightwhile/README.md | 4 +- lodash.takerightwhile/index.js | 37 ++++++--- lodash.takerightwhile/package.json | 2 +- lodash.takewhile/LICENSE.txt | 2 +- lodash.takewhile/README.md | 4 +- lodash.takewhile/index.js | 38 ++++++--- lodash.takewhile/package.json | 2 +- lodash.template/README.md | 4 +- lodash.template/index.js | 4 +- lodash.template/package.json | 4 +- lodash.templatesettings/README.md | 4 +- lodash.templatesettings/index.js | 10 +-- lodash.templatesettings/package.json | 10 +-- lodash.throttle/README.md | 4 +- lodash.throttle/index.js | 14 ++-- lodash.throttle/package.json | 5 +- lodash.times/LICENSE.txt | 2 +- lodash.times/README.md | 4 +- lodash.times/index.js | 11 ++- lodash.times/package.json | 2 +- lodash.toarray/LICENSE.txt | 2 +- lodash.toarray/README.md | 4 +- lodash.toarray/index.js | 31 ++++++- lodash.toarray/package.json | 2 +- lodash.transform/README.md | 4 +- lodash.transform/index.js | 19 ++--- lodash.transform/package.json | 3 +- lodash.trim/README.md | 4 +- lodash.trim/index.js | 6 +- lodash.trim/package.json | 2 +- lodash.trimleft/README.md | 4 +- lodash.trimleft/index.js | 4 +- lodash.trimleft/package.json | 2 +- lodash.trimright/README.md | 4 +- lodash.trimright/index.js | 4 +- lodash.trimright/package.json | 2 +- lodash.trunc/LICENSE.txt | 2 +- lodash.trunc/README.md | 4 +- lodash.trunc/index.js | 6 +- lodash.trunc/package.json | 2 +- lodash.union/README.md | 4 +- lodash.union/index.js | 6 +- lodash.union/package.json | 2 +- lodash.uniq/README.md | 4 +- lodash.uniq/index.js | 22 ++--- lodash.uniq/package.json | 2 +- lodash.words/README.md | 4 +- lodash.words/index.js | 6 +- lodash.words/package.json | 2 +- lodash.wrap/LICENSE | 22 +++++ lodash.wrap/LICENSE.txt | 22 ----- lodash.wrap/README.md | 4 +- lodash.wrap/index.js | 6 +- lodash.wrap/package.json | 2 +- 490 files changed, 2148 insertions(+), 2159 deletions(-) delete mode 100644 lodash._arraymax/README.md delete mode 100644 lodash._arraymax/index.js delete mode 100644 lodash._arraymax/package.json delete mode 100644 lodash._arraymin/README.md delete mode 100644 lodash._arraymin/index.js delete mode 100644 lodash._arraymin/package.json delete mode 100644 lodash._basefind/README.md delete mode 100644 lodash._basefind/index.js delete mode 100644 lodash._basefind/package.json delete mode 100644 lodash._baseproperty/README.md delete mode 100644 lodash._baseproperty/index.js delete mode 100644 lodash._baseproperty/package.json rename lodash._arraymax/LICENSE.txt => lodash._baserandom/LICENSE (94%) delete mode 100644 lodash._baserandom/LICENSE.txt rename lodash._arraymin/LICENSE.txt => lodash._basetostring/LICENSE (94%) delete mode 100644 lodash._basetostring/LICENSE.txt delete mode 100644 lodash._reescape/LICENSE.txt delete mode 100644 lodash._reescape/README.md delete mode 100644 lodash._reescape/index.js delete mode 100644 lodash._reescape/package.json delete mode 100644 lodash._reevaluate/LICENSE.txt delete mode 100644 lodash._reevaluate/README.md delete mode 100644 lodash._reevaluate/index.js delete mode 100644 lodash._reevaluate/package.json rename lodash._basefind/LICENSE.txt => lodash.chunk/LICENSE (94%) delete mode 100644 lodash.chunk/LICENSE.txt create mode 100644 lodash.compact/LICENSE delete mode 100644 lodash.compact/LICENSE.txt rename lodash._baseproperty/LICENSE.txt => lodash.escaperegexp/LICENSE (94%) delete mode 100644 lodash.escaperegexp/LICENSE.txt create mode 100644 lodash.invert/LICENSE delete mode 100644 lodash.invert/LICENSE.txt create mode 100644 lodash.isnan/LICENSE delete mode 100644 lodash.isnan/LICENSE.txt create mode 100644 lodash.noop/LICENSE delete mode 100644 lodash.noop/LICENSE.txt create mode 100644 lodash.random/LICENSE delete mode 100644 lodash.random/LICENSE.txt create mode 100644 lodash.range/LICENSE delete mode 100644 lodash.range/LICENSE.txt create mode 100644 lodash.repeat/LICENSE delete mode 100644 lodash.repeat/LICENSE.txt create mode 100644 lodash.wrap/LICENSE delete mode 100644 lodash.wrap/LICENSE.txt diff --git a/README.md b/README.md index 82f802ed9..a06a93a2e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# lodash v3.0.0 +# lodash v3.0.1 The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method. diff --git a/lodash._arraymax/README.md b/lodash._arraymax/README.md deleted file mode 100644 index d6dbb5066..000000000 --- a/lodash._arraymax/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._arraymax v3.0.0 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `arrayMax` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._arraymax -``` - -In Node.js/io.js: - -```js -var arrayMax = require('lodash._arraymax'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._arraymax) for more details. diff --git a/lodash._arraymax/index.js b/lodash._arraymax/index.js deleted file mode 100644 index 42651d44a..000000000 --- a/lodash._arraymax/index.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** Used as references for `-Infinity` and `Infinity`. */ -var NEGATIVE_INFINITY = Number.NEGATIVE_INFINITY; - -/** - * A specialized version of `_.max` for arrays without support for iteratees. - * - * @private - * @param {Array} array The array to iterate over. - * @returns {*} Returns the maximum value. - */ -function arrayMax(array) { - var index = -1, - length = array.length, - result = NEGATIVE_INFINITY; - - while (++index < length) { - var value = array[index]; - if (value > result) { - result = value; - } - } - return result; -} - -module.exports = arrayMax; diff --git a/lodash._arraymax/package.json b/lodash._arraymax/package.json deleted file mode 100644 index 9cc040078..000000000 --- a/lodash._arraymax/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "lodash._arraymax", - "version": "3.0.0", - "description": "The modern build of lodash’s internal `arrayMax` as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "author": "John-David Dalton (http://allyoucanleet.com/)", - "contributors": [ - "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", - "Mathias Bynens (https://mathiasbynens.be/)" - ], - "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } -} diff --git a/lodash._arraymin/README.md b/lodash._arraymin/README.md deleted file mode 100644 index af70ae314..000000000 --- a/lodash._arraymin/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._arraymin v3.0.0 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `arrayMin` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._arraymin -``` - -In Node.js/io.js: - -```js -var arrayMin = require('lodash._arraymin'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._arraymin) for more details. diff --git a/lodash._arraymin/index.js b/lodash._arraymin/index.js deleted file mode 100644 index f6f8cd581..000000000 --- a/lodash._arraymin/index.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** Used as references for `-Infinity` and `Infinity`. */ -var POSITIVE_INFINITY = Number.POSITIVE_INFINITY; - -/** - * A specialized version of `_.min` for arrays without support for iteratees. - * - * @private - * @param {Array} array The array to iterate over. - * @returns {*} Returns the minimum value. - */ -function arrayMin(array) { - var index = -1, - length = array.length, - result = POSITIVE_INFINITY; - - while (++index < length) { - var value = array[index]; - if (value < result) { - result = value; - } - } - return result; -} - -module.exports = arrayMin; diff --git a/lodash._arraymin/package.json b/lodash._arraymin/package.json deleted file mode 100644 index e5ad57481..000000000 --- a/lodash._arraymin/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "lodash._arraymin", - "version": "3.0.0", - "description": "The modern build of lodash’s internal `arrayMin` as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "author": "John-David Dalton (http://allyoucanleet.com/)", - "contributors": [ - "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", - "Mathias Bynens (https://mathiasbynens.be/)" - ], - "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } -} diff --git a/lodash._baseassign/README.md b/lodash._baseassign/README.md index bb8fff7b5..7646a8e19 100644 --- a/lodash._baseassign/README.md +++ b/lodash._baseassign/README.md @@ -1,4 +1,4 @@ -# lodash._baseassign v3.0.0 +# lodash._baseassign v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseAssign` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseAssign = require('lodash._baseassign'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseassign) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseassign) for more details. diff --git a/lodash._baseassign/index.js b/lodash._baseassign/index.js index 342e7299a..c7df9f352 100644 --- a/lodash._baseassign/index.js +++ b/lodash._baseassign/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -25,7 +25,7 @@ function baseAssign(object, source, customizer) { return baseCopy(source, object, props); } var index = -1, - length = props.length + length = props.length; while (++index < length) { var key = props[index], diff --git a/lodash._baseassign/package.json b/lodash._baseassign/package.json index 1140367bf..d3e953d6c 100644 --- a/lodash._baseassign/package.json +++ b/lodash._baseassign/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseassign", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseAssign` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._baseat/LICENSE.txt b/lodash._baseat/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._baseat/LICENSE.txt +++ b/lodash._baseat/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._baseat/README.md b/lodash._baseat/README.md index a8ffbc221..394f71743 100644 --- a/lodash._baseat/README.md +++ b/lodash._baseat/README.md @@ -1,4 +1,4 @@ -# lodash._baseat v3.0.0 +# lodash._baseat v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseAt` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseAt = require('lodash._baseat'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseat) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseat) for more details. diff --git a/lodash._baseat/index.js b/lodash._baseat/index.js index 12941263d..99d485cc1 100644 --- a/lodash._baseat/index.js +++ b/lodash._baseat/index.js @@ -1,18 +1,12 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ -/** - * Used as the maximum length of an array-like value. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) - * for more details. - */ - /** * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) * of an array-like value. @@ -20,12 +14,12 @@ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; /** - * The base implementation of `_.at` without support for strings and individual - * key arguments. + * The base implementation of `_.at` without support for string collections + * and individual key arguments. * * @private * @param {Array|Object} collection The collection to iterate over. - * @param {number[]|string[]} [props] The property names or indexes of elements to pick. + * @param {number[]|string[]} props The property names or indexes of elements to pick. * @returns {Array} Returns the new array of picked elements. */ function baseAt(collection, props) { @@ -38,7 +32,6 @@ function baseAt(collection, props) { while(++index < propsLength) { var key = props[index]; if (isArr) { - key = parseFloat(key); result[index] = isIndex(key, length) ? collection[key] : undefined; } else { result[index] = collection[key]; diff --git a/lodash._baseat/package.json b/lodash._baseat/package.json index 163d33356..75aa9ceac 100644 --- a/lodash._baseat/package.json +++ b/lodash._baseat/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseat", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseAt` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._basecallback/README.md b/lodash._basecallback/README.md index e042bb7de..abcae4a0c 100644 --- a/lodash._basecallback/README.md +++ b/lodash._basecallback/README.md @@ -1,4 +1,4 @@ -# lodash._basecallback v3.0.0 +# lodash._basecallback v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseCallback` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseCallback = require('lodash._basecallback'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basecallback) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basecallback) for more details. diff --git a/lodash._basecallback/index.js b/lodash._basecallback/index.js index d73a97778..2a6b2c378 100644 --- a/lodash._basecallback/index.js +++ b/lodash._basecallback/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -12,21 +12,6 @@ var baseClone = require('lodash._baseclone'), bindCallback = require('lodash._bindcallback'), keys = require('lodash.keys'); -/** - * Converts `value` to a string if it is not one. An empty string is returned - * for `null` or `undefined` values. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ -function baseToString(value) { - if (typeof value == 'string') { - return value; - } - return value == null ? '' : (value + ''); -} - /** Used for native method references. */ var objectProto = Object.prototype; @@ -56,7 +41,7 @@ function baseCallback(func, thisArg, argCount) { // Handle "_.property" and "_.matches" style callback shorthands. return type == 'object' ? baseMatches(func, !argCount) - : baseProperty(argCount ? baseToString(func) : func); + : baseProperty(func + ''); } /** diff --git a/lodash._basecallback/package.json b/lodash._basecallback/package.json index a7818e52e..3c106310e 100644 --- a/lodash._basecallback/package.json +++ b/lodash._basecallback/package.json @@ -1,6 +1,6 @@ { "name": "lodash._basecallback", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseCallback` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._baseclone/LICENSE.txt b/lodash._baseclone/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._baseclone/LICENSE.txt +++ b/lodash._baseclone/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._baseclone/README.md b/lodash._baseclone/README.md index bc9af80fa..2f89b1473 100644 --- a/lodash._baseclone/README.md +++ b/lodash._baseclone/README.md @@ -1,4 +1,4 @@ -# lodash._baseclone v3.0.0 +# lodash._baseclone v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseClone` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseClone = require('lodash._baseclone'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseclone) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseclone) for more details. diff --git a/lodash._baseclone/index.js b/lodash._baseclone/index.js index 6506ad7d0..7ffadc4c7 100644 --- a/lodash._baseclone/index.js +++ b/lodash._baseclone/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -65,9 +65,8 @@ var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; /** - * Used to resolve the `toStringTag` of values. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) - * for more details. + * Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) + * of values. */ var objToString = objectProto.toString; @@ -277,11 +276,9 @@ function initCloneByTag(object, tag, isDeep) { } /** - * Checks if `value` is the language type of `Object`. + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * - * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. - * * @static * @memberOf _ * @category Lang @@ -302,7 +299,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (value && type == 'object') || false; + return type == 'function' || (!!value && type == 'object'); } /** diff --git a/lodash._baseclone/package.json b/lodash._baseclone/package.json index 08adeed55..ad7d45694 100644 --- a/lodash._baseclone/package.json +++ b/lodash._baseclone/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseclone", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseClone` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._basecompareascending/LICENSE.txt b/lodash._basecompareascending/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._basecompareascending/LICENSE.txt +++ b/lodash._basecompareascending/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._basecompareascending/README.md b/lodash._basecompareascending/README.md index 6701c717c..c73537332 100644 --- a/lodash._basecompareascending/README.md +++ b/lodash._basecompareascending/README.md @@ -1,4 +1,4 @@ -# lodash._basecompareascending v3.0.0 +# lodash._basecompareascending v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseCompareAscending` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseCompareAscending = require('lodash._basecompareascending'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basecompareascending) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basecompareascending) for more details. diff --git a/lodash._basecompareascending/index.js b/lodash._basecompareascending/index.js index 6c2b8a882..0ebc24ee1 100644 --- a/lodash._basecompareascending/index.js +++ b/lodash._basecompareascending/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -21,10 +21,10 @@ function baseCompareAscending(value, other) { var valIsReflexive = value === value, othIsReflexive = other === other; - if (value > other || !valIsReflexive || (typeof value == 'undefined' && othIsReflexive)) { + if (value > other || !valIsReflexive || (value === undefined && othIsReflexive)) { return 1; } - if (value < other || !othIsReflexive || (typeof other == 'undefined' && valIsReflexive)) { + if (value < other || !othIsReflexive || (other === undefined && valIsReflexive)) { return -1; } } diff --git a/lodash._basecompareascending/package.json b/lodash._basecompareascending/package.json index 3288fed51..d402a1c11 100644 --- a/lodash._basecompareascending/package.json +++ b/lodash._basecompareascending/package.json @@ -1,6 +1,6 @@ { "name": "lodash._basecompareascending", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseCompareAscending` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._basecopy/LICENSE.txt b/lodash._basecopy/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._basecopy/LICENSE.txt +++ b/lodash._basecopy/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._basecopy/README.md b/lodash._basecopy/README.md index 6e0cc6261..acdfa29d3 100644 --- a/lodash._basecopy/README.md +++ b/lodash._basecopy/README.md @@ -1,4 +1,4 @@ -# lodash._basecopy v3.0.0 +# lodash._basecopy v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseCopy` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseCopy = require('lodash._basecopy'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basecopy) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basecopy) for more details. diff --git a/lodash._basecopy/index.js b/lodash._basecopy/index.js index 8074a3fb6..b586d31d9 100644 --- a/lodash._basecopy/index.js +++ b/lodash._basecopy/index.js @@ -1,26 +1,24 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ /** - * Copies the properties of `source` to `object`. + * Copies properties of `source` to `object`. * * @private * @param {Object} source The object to copy properties from. - * @param {Object} [object={}] The object to copy properties to. * @param {Array} props The property names to copy. + * @param {Object} [object={}] The object to copy properties to. * @returns {Object} Returns `object`. */ -function baseCopy(source, object, props) { - if (!props) { - props = object; - object = {}; - } +function baseCopy(source, props, object) { + object || (object = {}); + var index = -1, length = props.length; diff --git a/lodash._basecopy/package.json b/lodash._basecopy/package.json index 5f20f4374..ad50c7712 100644 --- a/lodash._basecopy/package.json +++ b/lodash._basecopy/package.json @@ -1,6 +1,6 @@ { "name": "lodash._basecopy", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseCopy` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._basecreate/LICENSE.txt b/lodash._basecreate/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._basecreate/LICENSE.txt +++ b/lodash._basecreate/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._basecreate/README.md b/lodash._basecreate/README.md index 1e194623f..e78c10cd8 100644 --- a/lodash._basecreate/README.md +++ b/lodash._basecreate/README.md @@ -1,4 +1,4 @@ -# lodash._basecreate v3.0.0 +# lodash._basecreate v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseCreate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseCreate = require('lodash._basecreate'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basecreate) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basecreate) for more details. diff --git a/lodash._basecreate/index.js b/lodash._basecreate/index.js index c3915e8cd..49a9e7aa1 100644 --- a/lodash._basecreate/index.js +++ b/lodash._basecreate/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -28,11 +28,9 @@ var baseCreate = (function() { }()); /** - * Checks if `value` is the language type of `Object`. + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * - * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. - * * @static * @memberOf _ * @category Lang @@ -53,7 +51,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (value && type == 'object') || false; + return type == 'function' || (!!value && type == 'object'); } module.exports = baseCreate; diff --git a/lodash._basecreate/package.json b/lodash._basecreate/package.json index 3bf0b097d..3a4f42cf6 100644 --- a/lodash._basecreate/package.json +++ b/lodash._basecreate/package.json @@ -1,6 +1,6 @@ { "name": "lodash._basecreate", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseCreate` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._basedelay/README.md b/lodash._basedelay/README.md index 129f53b78..96a52e1b7 100644 --- a/lodash._basedelay/README.md +++ b/lodash._basedelay/README.md @@ -1,4 +1,4 @@ -# lodash._basedelay v3.0.0 +# lodash._basedelay v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseDelay` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseDelay = require('lodash._basedelay'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basedelay) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basedelay) for more details. diff --git a/lodash._basedelay/index.js b/lodash._basedelay/index.js index d9e238467..61bc5a8ea 100644 --- a/lodash._basedelay/index.js +++ b/lodash._basedelay/index.js @@ -1,13 +1,12 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ -var baseSlice = require('lodash._baseslice'), - isFunction = require('lodash.isfunction'); +var baseSlice = require('lodash._baseslice'); /** Used as the `TypeError` message for "Functions" methods. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -23,7 +22,7 @@ var FUNC_ERROR_TEXT = 'Expected a function'; * @returns {number} Returns the timer id. */ function baseDelay(func, wait, args, fromIndex) { - if (!isFunction(func)) { + if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } return setTimeout(function() { func.apply(undefined, baseSlice(args, fromIndex)); }, wait); diff --git a/lodash._basedelay/package.json b/lodash._basedelay/package.json index ab49c4461..95dd639f8 100644 --- a/lodash._basedelay/package.json +++ b/lodash._basedelay/package.json @@ -1,6 +1,6 @@ { "name": "lodash._basedelay", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseDelay` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -16,7 +16,6 @@ "repository": "lodash/lodash", "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, "dependencies": { - "lodash._baseslice": "^3.0.0", - "lodash.isfunction": "^3.0.0" + "lodash._baseslice": "^3.0.0" } } diff --git a/lodash._basedifference/README.md b/lodash._basedifference/README.md index 4584d7855..7a39235b9 100644 --- a/lodash._basedifference/README.md +++ b/lodash._basedifference/README.md @@ -1,4 +1,4 @@ -# lodash._basedifference v3.0.0 +# lodash._basedifference v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseDifference` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseDifference = require('lodash._basedifference'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basedifference) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basedifference) for more details. diff --git a/lodash._basedifference/index.js b/lodash._basedifference/index.js index 477b93f57..4297b89f1 100644 --- a/lodash._basedifference/index.js +++ b/lodash._basedifference/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -29,7 +29,7 @@ function baseDifference(array, values) { var index = -1, indexOf = baseIndexOf, isCommon = true, - cache = isCommon && values.length >= 200 && createCache(values), + cache = (isCommon && values.length >= 200) ? createCache(values) : null, valuesLength = values.length; if (cache) { diff --git a/lodash._basedifference/package.json b/lodash._basedifference/package.json index e082cc14c..900921d8c 100644 --- a/lodash._basedifference/package.json +++ b/lodash._basedifference/package.json @@ -1,6 +1,6 @@ { "name": "lodash._basedifference", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseDifference` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._baseeach/README.md b/lodash._baseeach/README.md index 04c1346f4..2f3d32621 100644 --- a/lodash._baseeach/README.md +++ b/lodash._baseeach/README.md @@ -1,4 +1,4 @@ -# lodash._baseeach v3.0.0 +# lodash._baseeach v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseEach` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseEach = require('lodash._baseeach'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseeach) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseeach) for more details. diff --git a/lodash._baseeach/index.js b/lodash._baseeach/index.js index e8d205835..6ecc2979f 100644 --- a/lodash._baseeach/index.js +++ b/lodash._baseeach/index.js @@ -1,17 +1,16 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ -var baseFor = require('lodash._basefor'), - keys = require('lodash.keys'); +var keys = require('lodash.keys'); /** * Used as the maximum length of an array-like value. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength) + * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) * for more details. */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; @@ -41,6 +40,33 @@ function baseEach(collection, iteratee) { return collection; } +/** + * The base implementation of `baseForIn` and `baseForOwn` which iterates + * over `object` properties returned by `keysFunc` invoking `iteratee` for + * each property. Iterator functions may exit iteration early by explicitly + * returning `false`. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */ +function baseFor(object, iteratee, keysFunc) { + var index = -1, + iterable = toObject(object), + props = keysFunc(object), + length = props.length; + + while (++index < length) { + var key = props[index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } + } + return object; +} + /** * The base implementation of `_.forOwn` without support for callback * shorthands and `this` binding. @@ -57,6 +83,10 @@ function baseForOwn(object, iteratee) { /** * Checks if `value` is a valid array-like length. * + * **Note:** This function is based on ES `ToLength`. See the + * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength) + * for more details. + * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. diff --git a/lodash._baseeach/package.json b/lodash._baseeach/package.json index 29d3af8ff..f432cafc3 100644 --- a/lodash._baseeach/package.json +++ b/lodash._baseeach/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseeach", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseEach` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -16,7 +16,6 @@ "repository": "lodash/lodash", "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, "dependencies": { - "lodash._basefor": "^3.0.0", "lodash.keys": "^3.0.0" } } diff --git a/lodash._baseeachright/LICENSE.txt b/lodash._baseeachright/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._baseeachright/LICENSE.txt +++ b/lodash._baseeachright/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._baseeachright/README.md b/lodash._baseeachright/README.md index 0b745cfaf..89f19c791 100644 --- a/lodash._baseeachright/README.md +++ b/lodash._baseeachright/README.md @@ -1,4 +1,4 @@ -# lodash._baseeachright v3.0.0 +# lodash._baseeachright v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseEachRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseEachRight = require('lodash._baseeachright'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseeachright) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseeachright) for more details. diff --git a/lodash._baseeachright/index.js b/lodash._baseeachright/index.js index 271870251..56b4ebb83 100644 --- a/lodash._baseeachright/index.js +++ b/lodash._baseeachright/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -10,9 +10,8 @@ var baseForRight = require('lodash._baseforright'), keys = require('lodash.keys'); /** - * Used as the maximum length of an array-like value. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) - * for more details. + * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) + * of an array-like value. */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; @@ -25,19 +24,7 @@ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; * @param {Function} iteratee The function invoked per iteration. * @returns {Array|Object|string} Returns `collection`. */ -function baseEachRight(collection, iteratee) { - var length = collection ? collection.length : 0; - if (!isLength(length)) { - return baseForOwnRight(collection, iteratee); - } - var iterable = toObject(collection); - while (length--) { - if (iteratee(iterable[length], length, iterable) === false) { - break; - } - } - return collection; -} +var baseEachRight = createBaseEach(baseForOwnRight, true); /** * The base implementation of `_.forOwnRight` without support for callback @@ -52,12 +39,36 @@ function baseForOwnRight(object, iteratee) { return baseForRight(object, iteratee, keys); } +/** + * Creates a `baseEach` or `baseEachRight` function. + * + * @private + * @param {Function} eachFunc The function to iterate over a collection. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseEach(eachFunc, fromRight) { + return function(collection, iteratee) { + var length = collection ? collection.length : 0; + if (!isLength(length)) { + return eachFunc(collection, iteratee); + } + var index = fromRight ? length : -1, + iterable = toObject(collection); + + while ((fromRight ? index-- : ++index < length)) { + if (iteratee(iterable[index], index, iterable) === false) { + break; + } + } + return collection; + }; +} + /** * Checks if `value` is a valid array-like length. * - * **Note:** This function is based on ES `ToLength`. See the - * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength) - * for more details. + * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength). * * @private * @param {*} value The value to check. @@ -79,11 +90,9 @@ function toObject(value) { } /** - * Checks if `value` is the language type of `Object`. + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * - * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. - * * @static * @memberOf _ * @category Lang @@ -104,7 +113,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (value && type == 'object') || false; + return type == 'function' || (!!value && type == 'object'); } module.exports = baseEachRight; diff --git a/lodash._baseeachright/package.json b/lodash._baseeachright/package.json index 6a9b389a0..1897a590f 100644 --- a/lodash._baseeachright/package.json +++ b/lodash._baseeachright/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseeachright", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseEachRight` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._basefind/README.md b/lodash._basefind/README.md deleted file mode 100644 index 14dfea04e..000000000 --- a/lodash._basefind/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._basefind v3.0.0 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseFind` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._basefind -``` - -In Node.js/io.js: - -```js -var baseFind = require('lodash._basefind'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basefind) for more details. diff --git a/lodash._basefind/index.js b/lodash._basefind/index.js deleted file mode 100644 index 3bcb592a8..000000000 --- a/lodash._basefind/index.js +++ /dev/null @@ -1,34 +0,0 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** - * The base implementation of methods like `_.find` and `_.findKey`, without - * support for iteratee shorthands, which iterates over `collection` using - * `eachFunc`. - * - * @private - * @param {Array|Object} collection The collection to search. - * @param {Function} predicate The function invoked per iteration. - * @param {Function} eachFunc The function to iterate over `collection`. - * @param {boolean} [retKey] Specify returning the key of the found element - * instead of the element itself. - * @returns {*} Returns the found element or its key, else `undefined`. - */ -function baseFind(collection, predicate, eachFunc, retKey) { - var result; - eachFunc(collection, function(value, key, collection) { - if (predicate(value, key, collection)) { - result = retKey ? key : value; - return false; - } - }); - return result; -} - -module.exports = baseFind; diff --git a/lodash._basefind/package.json b/lodash._basefind/package.json deleted file mode 100644 index a1b1bb023..000000000 --- a/lodash._basefind/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "lodash._basefind", - "version": "3.0.0", - "description": "The modern build of lodash’s internal `baseFind` as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "author": "John-David Dalton (http://allyoucanleet.com/)", - "contributors": [ - "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", - "Mathias Bynens (https://mathiasbynens.be/)" - ], - "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } -} diff --git a/lodash._baseflatten/README.md b/lodash._baseflatten/README.md index ba49aed13..45451e4a4 100644 --- a/lodash._baseflatten/README.md +++ b/lodash._baseflatten/README.md @@ -1,4 +1,4 @@ -# lodash._baseflatten v3.0.0 +# lodash._baseflatten v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseFlatten` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseFlatten = require('lodash._baseflatten'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseflatten) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseflatten) for more details. diff --git a/lodash._baseflatten/index.js b/lodash._baseflatten/index.js index 2334fce55..d99dc0243 100644 --- a/lodash._baseflatten/index.js +++ b/lodash._baseflatten/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -39,7 +39,7 @@ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; * @returns {Array} Returns the new flattened array. */ function baseFlatten(array, isDeep, isStrict, fromIndex) { - var index = (fromIndex || 0) - 1, + var index = fromIndex == null ? -1 : (fromIndex - 1), length = array.length, resIndex = -1, result = []; diff --git a/lodash._baseflatten/package.json b/lodash._baseflatten/package.json index 7565b65ab..d58c006de 100644 --- a/lodash._baseflatten/package.json +++ b/lodash._baseflatten/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseflatten", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseFlatten` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._basefor/LICENSE.txt b/lodash._basefor/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._basefor/LICENSE.txt +++ b/lodash._basefor/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._basefor/README.md b/lodash._basefor/README.md index ef810c469..62f07918e 100644 --- a/lodash._basefor/README.md +++ b/lodash._basefor/README.md @@ -1,4 +1,4 @@ -# lodash._basefor v3.0.0 +# lodash._basefor v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseFor` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseFor = require('lodash._basefor'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basefor) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basefor) for more details. diff --git a/lodash._basefor/index.js b/lodash._basefor/index.js index 13e78d307..b7fb2e89c 100644 --- a/lodash._basefor/index.js +++ b/lodash._basefor/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -19,19 +19,30 @@ * @param {Function} keysFunc The function to get the keys of `object`. * @returns {Object} Returns `object`. */ -function baseFor(object, iteratee, keysFunc) { - var index = -1, - iterable = toObject(object), - props = keysFunc(object), - length = props.length; +var baseFor = createBaseFor(); - while (++index < length) { - var key = props[index]; - if (iteratee(iterable[key], key, iterable) === false) { - break; +/** + * Creates a base function for `_.forIn` or `_.forInRight`. + * + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var iterable = toObject(object), + props = keysFunc(object), + length = props.length, + index = fromRight ? length : -1; + + while ((fromRight ? index-- : ++index < length)) { + var key = props[index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } } - } - return object; + return object; + }; } /** @@ -46,11 +57,9 @@ function toObject(value) { } /** - * Checks if `value` is the language type of `Object`. + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * - * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. - * * @static * @memberOf _ * @category Lang @@ -71,7 +80,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (value && type == 'object') || false; + return type == 'function' || (!!value && type == 'object'); } module.exports = baseFor; diff --git a/lodash._basefor/package.json b/lodash._basefor/package.json index 4b9e9222d..fe661b9b6 100644 --- a/lodash._basefor/package.json +++ b/lodash._basefor/package.json @@ -1,6 +1,6 @@ { "name": "lodash._basefor", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseFor` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._baseforright/LICENSE.txt b/lodash._baseforright/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._baseforright/LICENSE.txt +++ b/lodash._baseforright/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._baseforright/README.md b/lodash._baseforright/README.md index 2831a6303..6a68c9d09 100644 --- a/lodash._baseforright/README.md +++ b/lodash._baseforright/README.md @@ -1,4 +1,4 @@ -# lodash._baseforright v3.0.0 +# lodash._baseforright v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseForRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseForRight = require('lodash._baseforright'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseforright) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseforright) for more details. diff --git a/lodash._baseforright/index.js b/lodash._baseforright/index.js index 5ddcd7f6f..940c2f40d 100644 --- a/lodash._baseforright/index.js +++ b/lodash._baseforright/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -17,18 +17,30 @@ * @param {Function} keysFunc The function to get the keys of `object`. * @returns {Object} Returns `object`. */ -function baseForRight(object, iteratee, keysFunc) { - var iterable = toObject(object), - props = keysFunc(object), - length = props.length; +var baseForRight = createBaseFor(true); - while (length--) { - var key = props[length]; - if (iteratee(iterable[key], key, iterable) === false) { - break; +/** + * Creates a base function for `_.forIn` or `_.forInRight`. + * + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var iterable = toObject(object), + props = keysFunc(object), + length = props.length, + index = fromRight ? length : -1; + + while ((fromRight ? index-- : ++index < length)) { + var key = props[index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } } - } - return object; + return object; + }; } /** @@ -43,11 +55,9 @@ function toObject(value) { } /** - * Checks if `value` is the language type of `Object`. + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * - * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. - * * @static * @memberOf _ * @category Lang @@ -68,7 +78,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (value && type == 'object') || false; + return type == 'function' || (!!value && type == 'object'); } module.exports = baseForRight; diff --git a/lodash._baseforright/package.json b/lodash._baseforright/package.json index b4018ae5b..880be0aba 100644 --- a/lodash._baseforright/package.json +++ b/lodash._baseforright/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseforright", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseForRight` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._baseisequal/README.md b/lodash._baseisequal/README.md index 4a22b8f9d..5c234c495 100644 --- a/lodash._baseisequal/README.md +++ b/lodash._baseisequal/README.md @@ -1,4 +1,4 @@ -# lodash._baseisequal v3.0.0 +# lodash._baseisequal v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseIsEqual` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseIsEqual = require('lodash._baseisequal'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseisequal) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseisequal) for more details. diff --git a/lodash._baseisequal/index.js b/lodash._baseisequal/index.js index a27c2a713..12250eb45 100644 --- a/lodash._baseisequal/index.js +++ b/lodash._baseisequal/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -21,21 +21,6 @@ var argsTag = '[object Arguments]', regexpTag = '[object RegExp]', stringTag = '[object String]'; -/** - * Converts `value` to a string if it is not one. An empty string is returned - * for `null` or `undefined` values. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ -function baseToString(value) { - if (typeof value == 'string') { - return value; - } - return value == null ? '' : (value + ''); -} - /** Used for native method references. */ var objectProto = Object.prototype; @@ -244,7 +229,7 @@ function equalByTag(object, other, tag) { case stringTag: // Coerce regexes to strings and treat strings primitives and string // objects as equal. See https://es5.github.io/#x15.10.6.4 for more details. - return object == baseToString(other); + return object == (other + ''); } return false; } diff --git a/lodash._baseisequal/package.json b/lodash._baseisequal/package.json index 2855cc121..489ed596f 100644 --- a/lodash._baseisequal/package.json +++ b/lodash._baseisequal/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseisequal", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseIsEqual` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._baseproperty/README.md b/lodash._baseproperty/README.md deleted file mode 100644 index 0c263583c..000000000 --- a/lodash._baseproperty/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._baseproperty v3.0.0 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseProperty` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._baseproperty -``` - -In Node.js/io.js: - -```js -var baseProperty = require('lodash._baseproperty'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseproperty) for more details. diff --git a/lodash._baseproperty/index.js b/lodash._baseproperty/index.js deleted file mode 100644 index 4e794436e..000000000 --- a/lodash._baseproperty/index.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** - * The base implementation of `_.property` which does not coerce `key` to a string. - * - * @private - * @param {string} key The key of the property to get. - * @returns {Function} Returns the new function. - */ -function baseProperty(key) { - return function(object) { - return object == null ? undefined : object[key]; - }; -} - -module.exports = baseProperty; diff --git a/lodash._baseproperty/package.json b/lodash._baseproperty/package.json deleted file mode 100644 index 91bdaa606..000000000 --- a/lodash._baseproperty/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "lodash._baseproperty", - "version": "3.0.0", - "description": "The modern build of lodash’s internal `baseProperty` as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "author": "John-David Dalton (http://allyoucanleet.com/)", - "contributors": [ - "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", - "Mathias Bynens (https://mathiasbynens.be/)" - ], - "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } -} diff --git a/lodash._arraymax/LICENSE.txt b/lodash._baserandom/LICENSE similarity index 94% rename from lodash._arraymax/LICENSE.txt rename to lodash._baserandom/LICENSE index 17764328c..9cd87e5dc 100644 --- a/lodash._arraymax/LICENSE.txt +++ b/lodash._baserandom/LICENSE @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._baserandom/LICENSE.txt b/lodash._baserandom/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash._baserandom/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash._baserandom/README.md b/lodash._baserandom/README.md index 35244c4aa..1ff3d19d7 100644 --- a/lodash._baserandom/README.md +++ b/lodash._baserandom/README.md @@ -1,4 +1,4 @@ -# lodash._baserandom v3.0.0 +# lodash._baserandom v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseRandom` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseRandom = require('lodash._baserandom'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baserandom) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baserandom) for more details. diff --git a/lodash._baserandom/index.js b/lodash._baserandom/index.js index 196c21ecc..8f5dabcdf 100644 --- a/lodash._baserandom/index.js +++ b/lodash._baserandom/index.js @@ -1,17 +1,15 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ -/** Native method references. */ -var floor = Math.floor; - /* Native method references for those with the same name as other `lodash` methods. */ -var nativeRandom = Math.random; +var nativeFloor = Math.floor, + nativeRandom = Math.random; /** * The base implementation of `_.random` without support for argument juggling @@ -23,7 +21,7 @@ var nativeRandom = Math.random; * @returns {number} Returns the random number. */ function baseRandom(min, max) { - return min + floor(nativeRandom() * (max - min + 1)); + return min + nativeFloor(nativeRandom() * (max - min + 1)); } module.exports = baseRandom; diff --git a/lodash._baserandom/package.json b/lodash._baserandom/package.json index c8892d170..34ec63e57 100644 --- a/lodash._baserandom/package.json +++ b/lodash._baserandom/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baserandom", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseRandom` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._basereduce/README.md b/lodash._basereduce/README.md index 1a32a6b83..3ddfc898f 100644 --- a/lodash._basereduce/README.md +++ b/lodash._basereduce/README.md @@ -1,4 +1,4 @@ -# lodash._basereduce v3.0.0 +# lodash._basereduce v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseReduce` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseReduce = require('lodash._basereduce'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basereduce) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basereduce) for more details. diff --git a/lodash._basereduce/index.js b/lodash._basereduce/index.js index 775cba0c3..2553d6c17 100644 --- a/lodash._basereduce/index.js +++ b/lodash._basereduce/index.js @@ -1,6 +1,6 @@ /** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` + * lodash 3.0.1 (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors @@ -8,16 +8,15 @@ */ /** - * The base implementation of `_.reduce` and `_.reduceRight` without support - * for callback shorthands or `this` binding, which iterates over `collection` - * using the provided `eachFunc`. + * The base implementation of `_.reduce` and `_.reduceRight`, without support + * for iteratee shorthands, which iterates over `collection` using the provided + * `eachFunc`. * * @private - * @param {Array|Object|string} collection The collection to iterate over. + * @param {Array|Object} collection The collection to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {*} accumulator The initial value. - * @param {boolean} initFromCollection Specify using the first or last element - * of `collection` as the initial value. + * @param {boolean} initFromCollection Specify using the first or last element of `collection` as the initial value. * @param {Function} eachFunc The function to iterate over `collection`. * @returns {*} Returns the accumulated value. */ @@ -25,7 +24,7 @@ function baseReduce(collection, iteratee, accumulator, initFromCollection, eachF eachFunc(collection, function(value, index, collection) { accumulator = initFromCollection ? (initFromCollection = false, value) - : iteratee(accumulator, value, index, collection) + : iteratee(accumulator, value, index, collection); }); return accumulator; } diff --git a/lodash._basereduce/package.json b/lodash._basereduce/package.json index f9d97ba9d..8dab5dafa 100644 --- a/lodash._basereduce/package.json +++ b/lodash._basereduce/package.json @@ -1,6 +1,6 @@ { "name": "lodash._basereduce", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseReduce` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._baseslice/README.md b/lodash._baseslice/README.md index 7b7f3b4a7..9fcb7068f 100644 --- a/lodash._baseslice/README.md +++ b/lodash._baseslice/README.md @@ -1,4 +1,4 @@ -# lodash._baseslice v3.0.0 +# lodash._baseslice v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseSlice` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseSlice = require('lodash._baseslice'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseslice) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseslice) for more details. diff --git a/lodash._baseslice/index.js b/lodash._baseslice/index.js index 080453eae..278bd0535 100644 --- a/lodash._baseslice/index.js +++ b/lodash._baseslice/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -28,7 +28,8 @@ function baseSlice(array, start, end) { if (end < 0) { end += length; } - length = start > end ? 0 : (end - start); + length = start > end ? 0 : (end - start) >>> 0; + start >>>= 0; var result = Array(length); while (++index < length) { diff --git a/lodash._baseslice/package.json b/lodash._baseslice/package.json index d52b23677..42adab643 100644 --- a/lodash._baseslice/package.json +++ b/lodash._baseslice/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseslice", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseSlice` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._arraymin/LICENSE.txt b/lodash._basetostring/LICENSE similarity index 94% rename from lodash._arraymin/LICENSE.txt rename to lodash._basetostring/LICENSE index 17764328c..9cd87e5dc 100644 --- a/lodash._arraymin/LICENSE.txt +++ b/lodash._basetostring/LICENSE @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._basetostring/LICENSE.txt b/lodash._basetostring/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash._basetostring/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash._basetostring/README.md b/lodash._basetostring/README.md index ad04ea956..f81145e6e 100644 --- a/lodash._basetostring/README.md +++ b/lodash._basetostring/README.md @@ -1,4 +1,4 @@ -# lodash._basetostring v3.0.0 +# lodash._basetostring v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseToString` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseToString = require('lodash._basetostring'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._basetostring) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._basetostring) for more details. diff --git a/lodash._basetostring/index.js b/lodash._basetostring/index.js index 71ac88588..db8ecc9fd 100644 --- a/lodash._basetostring/index.js +++ b/lodash._basetostring/index.js @@ -1,14 +1,14 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ /** - * Converts `value` to a string if it is not one. An empty string is returned + * Converts `value` to a string if it's not one. An empty string is returned * for `null` or `undefined` values. * * @private @@ -16,9 +16,6 @@ * @returns {string} Returns the string. */ function baseToString(value) { - if (typeof value == 'string') { - return value; - } return value == null ? '' : (value + ''); } diff --git a/lodash._basetostring/package.json b/lodash._basetostring/package.json index 3bd5c43e4..1d7abbfc5 100644 --- a/lodash._basetostring/package.json +++ b/lodash._basetostring/package.json @@ -1,6 +1,6 @@ { "name": "lodash._basetostring", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseToString` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._baseuniq/README.md b/lodash._baseuniq/README.md index 3bc682031..feac220e3 100644 --- a/lodash._baseuniq/README.md +++ b/lodash._baseuniq/README.md @@ -1,4 +1,4 @@ -# lodash._baseuniq v3.0.0 +# lodash._baseuniq v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseUniq` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var baseUniq = require('lodash._baseuniq'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._baseuniq) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._baseuniq) for more details. diff --git a/lodash._baseuniq/index.js b/lodash._baseuniq/index.js index fbea03668..f55c02a42 100644 --- a/lodash._baseuniq/index.js +++ b/lodash._baseuniq/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -25,7 +25,7 @@ function baseUniq(array, iteratee) { length = array.length, isCommon = true, isLarge = isCommon && length >= 200, - seen = isLarge && createCache(), + seen = isLarge ? createCache() : null, result = []; if (seen) { diff --git a/lodash._baseuniq/package.json b/lodash._baseuniq/package.json index e8f922f50..62256e4b0 100644 --- a/lodash._baseuniq/package.json +++ b/lodash._baseuniq/package.json @@ -1,6 +1,6 @@ { "name": "lodash._baseuniq", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `baseUniq` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._binaryindex/LICENSE.txt b/lodash._binaryindex/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._binaryindex/LICENSE.txt +++ b/lodash._binaryindex/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._binaryindex/README.md b/lodash._binaryindex/README.md index 7dedf0bdf..9b4419fd0 100644 --- a/lodash._binaryindex/README.md +++ b/lodash._binaryindex/README.md @@ -1,4 +1,4 @@ -# lodash._binaryindex v3.0.0 +# lodash._binaryindex v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `binaryIndex` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var binaryIndex = require('lodash._binaryindex'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._binaryindex) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._binaryindex) for more details. diff --git a/lodash._binaryindex/index.js b/lodash._binaryindex/index.js index e01a6a647..45217f716 100644 --- a/lodash._binaryindex/index.js +++ b/lodash._binaryindex/index.js @@ -1,15 +1,15 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ var binaryIndexBy = require('lodash._binaryindexby'); /** Used as references for the maximum length and index of an array. */ -var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1, +var MAX_ARRAY_LENGTH = 4294967295, HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1; /** @@ -32,7 +32,7 @@ function binaryIndex(array, value, retHighest) { var mid = (low + high) >>> 1, computed = array[mid]; - if (retHighest ? (computed <= value) : (computed < value)) { + if ((retHighest ? (computed <= value) : (computed < value)) && computed !== null) { low = mid + 1; } else { high = mid; diff --git a/lodash._binaryindex/package.json b/lodash._binaryindex/package.json index 47495afb3..ef16de8a1 100644 --- a/lodash._binaryindex/package.json +++ b/lodash._binaryindex/package.json @@ -1,6 +1,6 @@ { "name": "lodash._binaryindex", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `binaryIndex` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._binaryindexby/LICENSE.txt b/lodash._binaryindexby/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._binaryindexby/LICENSE.txt +++ b/lodash._binaryindexby/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._binaryindexby/README.md b/lodash._binaryindexby/README.md index bbff1cd89..0dcd08067 100644 --- a/lodash._binaryindexby/README.md +++ b/lodash._binaryindexby/README.md @@ -1,4 +1,4 @@ -# lodash._binaryindexby v3.0.0 +# lodash._binaryindexby v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `binaryIndexBy` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var binaryIndexBy = require('lodash._binaryindexby'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._binaryindexby) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._binaryindexby) for more details. diff --git a/lodash._binaryindexby/index.js b/lodash._binaryindexby/index.js index 47dbbfc41..4c4c2d081 100644 --- a/lodash._binaryindexby/index.js +++ b/lodash._binaryindexby/index.js @@ -1,14 +1,12 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ -/** Native method references. */ - /** Native method references. */ var floor = Math.floor; @@ -17,7 +15,7 @@ var nativeMin = Math.min; /** Used as references for the maximum length and index of an array. */ var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1, - MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1; + MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1; /** * This function is like `binaryIndex` except that it invokes `iteratee` for @@ -38,7 +36,7 @@ function binaryIndexBy(array, value, iteratee, retHighest) { var low = 0, high = array ? array.length : 0, valIsNaN = value !== value, - valIsUndef = typeof value == 'undefined'; + valIsUndef = value === undefined; while (low < high) { var mid = floor((low + high) / 2), @@ -48,7 +46,7 @@ function binaryIndexBy(array, value, iteratee, retHighest) { if (valIsNaN) { var setLow = isReflexive || retHighest; } else if (valIsUndef) { - setLow = isReflexive && (retHighest || typeof computed != 'undefined'); + setLow = isReflexive && (retHighest || computed !== undefined); } else { setLow = retHighest ? (computed <= value) : (computed < value); } diff --git a/lodash._binaryindexby/package.json b/lodash._binaryindexby/package.json index 0cd52aba2..8bc3fe773 100644 --- a/lodash._binaryindexby/package.json +++ b/lodash._binaryindexby/package.json @@ -1,6 +1,6 @@ { "name": "lodash._binaryindexby", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `binaryIndexBy` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._bindcallback/LICENSE.txt b/lodash._bindcallback/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._bindcallback/LICENSE.txt +++ b/lodash._bindcallback/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._bindcallback/README.md b/lodash._bindcallback/README.md index 4ebb15f6d..d287f26d8 100644 --- a/lodash._bindcallback/README.md +++ b/lodash._bindcallback/README.md @@ -1,4 +1,4 @@ -# lodash._bindcallback v3.0.0 +# lodash._bindcallback v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `bindCallback` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var bindCallback = require('lodash._bindcallback'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._bindcallback) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._bindcallback) for more details. diff --git a/lodash._bindcallback/index.js b/lodash._bindcallback/index.js index 3237b1fa3..ef6811d1a 100644 --- a/lodash._bindcallback/index.js +++ b/lodash._bindcallback/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -21,7 +21,7 @@ function bindCallback(func, thisArg, argCount) { if (typeof func != 'function') { return identity; } - if (typeof thisArg == 'undefined') { + if (thisArg === undefined) { return func; } switch (argCount) { diff --git a/lodash._bindcallback/package.json b/lodash._bindcallback/package.json index 28eadc8e5..6ede44016 100644 --- a/lodash._bindcallback/package.json +++ b/lodash._bindcallback/package.json @@ -1,6 +1,6 @@ { "name": "lodash._bindcallback", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `bindCallback` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._cacheindexof/LICENSE.txt b/lodash._cacheindexof/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._cacheindexof/LICENSE.txt +++ b/lodash._cacheindexof/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._cacheindexof/README.md b/lodash._cacheindexof/README.md index cb01aec08..9d819a923 100644 --- a/lodash._cacheindexof/README.md +++ b/lodash._cacheindexof/README.md @@ -1,4 +1,4 @@ -# lodash._cacheindexof v3.0.0 +# lodash._cacheindexof v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `cacheIndexOf` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var cacheIndexOf = require('lodash._cacheindexof'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._cacheindexof) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._cacheindexof) for more details. diff --git a/lodash._cacheindexof/index.js b/lodash._cacheindexof/index.js index 11cea73b8..ad369bb16 100644 --- a/lodash._cacheindexof/index.js +++ b/lodash._cacheindexof/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -24,11 +24,9 @@ function cacheIndexOf(cache, value) { } /** - * Checks if `value` is the language type of `Object`. + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * - * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. - * * @static * @memberOf _ * @category Lang @@ -49,7 +47,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (value && type == 'object') || false; + return type == 'function' || (!!value && type == 'object'); } module.exports = cacheIndexOf; diff --git a/lodash._cacheindexof/package.json b/lodash._cacheindexof/package.json index fb4905e05..f0de8b345 100644 --- a/lodash._cacheindexof/package.json +++ b/lodash._cacheindexof/package.json @@ -1,6 +1,6 @@ { "name": "lodash._cacheindexof", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `cacheIndexOf` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._createassigner/README.md b/lodash._createassigner/README.md index 45322ee5c..1f8d4a153 100644 --- a/lodash._createassigner/README.md +++ b/lodash._createassigner/README.md @@ -1,4 +1,4 @@ -# lodash._createassigner v3.0.0 +# lodash._createassigner v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `createAssigner` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var createAssigner = require('lodash._createassigner'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._createassigner) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._createassigner) for more details. diff --git a/lodash._createassigner/index.js b/lodash._createassigner/index.js index fd320c884..37efe38a7 100644 --- a/lodash._createassigner/index.js +++ b/lodash._createassigner/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -13,30 +13,39 @@ var bindCallback = require('lodash._bindcallback'), * Creates a function that assigns properties of source object(s) to a given * destination object. * + * **Note:** This function is used to create `_.assign`, `_.defaults`, and `_.merge`. + * * @private * @param {Function} assigner The function to assign values. * @returns {Function} Returns the new assigner function. */ function createAssigner(assigner) { return function() { - var length = arguments.length, - object = arguments[0]; + var args = arguments, + length = args.length, + object = args[0]; if (length < 2 || object == null) { return object; } - if (length > 3 && isIterateeCall(arguments[1], arguments[2], arguments[3])) { - length = 2; + var customizer = args[length - 2], + thisArg = args[length - 1], + guard = args[3]; + + if (length > 3 && typeof customizer == 'function') { + customizer = bindCallback(customizer, thisArg, 5); + length -= 2; + } else { + customizer = (length > 2 && typeof thisArg == 'function') ? thisArg : null; + length -= (customizer ? 1 : 0); } - // Juggle arguments. - if (length > 3 && typeof arguments[length - 2] == 'function') { - var customizer = bindCallback(arguments[--length - 1], arguments[length--], 5); - } else if (length > 2 && typeof arguments[length - 1] == 'function') { - customizer = arguments[--length]; + if (guard && isIterateeCall(args[1], args[2], guard)) { + customizer = length == 3 ? null : customizer; + length = 2; } var index = 0; while (++index < length) { - var source = arguments[index]; + var source = args[index]; if (source) { assigner(object, source, customizer); } diff --git a/lodash._createassigner/package.json b/lodash._createassigner/package.json index cb70e95c2..f3ee309a9 100644 --- a/lodash._createassigner/package.json +++ b/lodash._createassigner/package.json @@ -1,6 +1,6 @@ { "name": "lodash._createassigner", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `createAssigner` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._createcache/LICENSE.txt b/lodash._createcache/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._createcache/LICENSE.txt +++ b/lodash._createcache/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._createcache/README.md b/lodash._createcache/README.md index b33dcc444..b37eb746b 100644 --- a/lodash._createcache/README.md +++ b/lodash._createcache/README.md @@ -1,4 +1,4 @@ -# lodash._createcache v3.0.0 +# lodash._createcache v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `createCache` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var createCache = require('lodash._createcache'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._createcache) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._createcache) for more details. diff --git a/lodash._createcache/index.js b/lodash._createcache/index.js index 9c4d9a403..cbeb715d6 100644 --- a/lodash._createcache/index.js +++ b/lodash._createcache/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -59,11 +59,9 @@ var createCache = !(nativeCreate && Set) ? constant(null) : function(values) { }; /** - * Checks if `value` is the language type of `Object`. + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * - * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. - * * @static * @memberOf _ * @category Lang @@ -84,7 +82,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (value && type == 'object') || false; + return type == 'function' || (!!value && type == 'object'); } /** diff --git a/lodash._createcache/package.json b/lodash._createcache/package.json index e0ab74944..ab6b13e33 100644 --- a/lodash._createcache/package.json +++ b/lodash._createcache/package.json @@ -1,6 +1,6 @@ { "name": "lodash._createcache", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `createCache` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._createextremum/LICENSE.txt b/lodash._createextremum/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._createextremum/LICENSE.txt +++ b/lodash._createextremum/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._createextremum/README.md b/lodash._createextremum/README.md index 8801312c9..96cda1b61 100644 --- a/lodash._createextremum/README.md +++ b/lodash._createextremum/README.md @@ -1,4 +1,4 @@ -# lodash._createextremum v3.0.0 +# lodash._createextremum v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `createExtremum` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var createExtremum = require('lodash._createextremum'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._createextremum) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._createextremum) for more details. diff --git a/lodash._createextremum/index.js b/lodash._createextremum/index.js index 7bc8ac861..e25cfd2b2 100644 --- a/lodash._createextremum/index.js +++ b/lodash._createextremum/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -76,7 +76,8 @@ function extremumBy(collection, iteratee, isMin) { baseEach(collection, function(value, index, collection) { var current = iteratee(value, index, collection); - if ((isMin ? current < computed : current > computed) || (current === exValue && current === result)) { + if ((isMin ? (current < computed) : (current > computed)) || + (current === exValue && current === result)) { computed = current; result = value; } diff --git a/lodash._createextremum/package.json b/lodash._createextremum/package.json index f8ee12bc1..ce1c0b788 100644 --- a/lodash._createextremum/package.json +++ b/lodash._createextremum/package.json @@ -1,6 +1,6 @@ { "name": "lodash._createextremum", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `createExtremum` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._createpad/README.md b/lodash._createpad/README.md index cff97e1ee..7825373fd 100644 --- a/lodash._createpad/README.md +++ b/lodash._createpad/README.md @@ -1,4 +1,4 @@ -# lodash._createpad v3.0.0 +# lodash._createpad v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `createPad` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var createPad = require('lodash._createpad'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._createpad) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._createpad) for more details. diff --git a/lodash._createpad/index.js b/lodash._createpad/index.js index fdbbb7acb..bbeb7de1b 100644 --- a/lodash._createpad/index.js +++ b/lodash._createpad/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -8,21 +8,6 @@ */ var repeat = require('lodash.repeat'); -/** - * Converts `value` to a string if it is not one. An empty string is returned - * for `null` or `undefined` values. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ -function baseToString(value) { - if (typeof value == 'string') { - return value; - } - return value == null ? '' : (value + ''); -} - /** Native method references. */ var ceil = Math.ceil; @@ -48,7 +33,7 @@ function createPad(string, length, chars) { return ''; } var padLength = length - strLength; - chars = chars == null ? ' ' : baseToString(chars); + chars = chars == null ? ' ' : (chars + ''); return repeat(chars, ceil(padLength / chars.length)).slice(0, padLength); } diff --git a/lodash._createpad/package.json b/lodash._createpad/package.json index 7be4ec74d..f175cc382 100644 --- a/lodash._createpad/package.json +++ b/lodash._createpad/package.json @@ -1,6 +1,6 @@ { "name": "lodash._createpad", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `createPad` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._createwrapper/README.md b/lodash._createwrapper/README.md index f8518a660..d7bc6144e 100644 --- a/lodash._createwrapper/README.md +++ b/lodash._createwrapper/README.md @@ -1,4 +1,4 @@ -# lodash._createwrapper v3.0.0 +# lodash._createwrapper v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `createWrapper` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var createWrapper = require('lodash._createwrapper'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._createwrapper) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._createwrapper) for more details. diff --git a/lodash._createwrapper/index.js b/lodash._createwrapper/index.js index 8e22659c5..8df136e9b 100644 --- a/lodash._createwrapper/index.js +++ b/lodash._createwrapper/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -8,8 +8,7 @@ */ var arrayCopy = require('lodash._arraycopy'), baseCreate = require('lodash._basecreate'), - replaceHolders = require('lodash._replaceholders'), - isFunction = require('lodash.isfunction'); + replaceHolders = require('lodash._replaceholders'); /** Used to compose bitmasks for wrapper metadata. */ var BIND_FLAG = 1, @@ -280,7 +279,7 @@ function createPartialWrapper(func, bitmask, thisArg, partials) { */ function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, arity) { var isBindKey = bitmask & BIND_KEY_FLAG; - if (!isBindKey && !isFunction(func)) { + if (!isBindKey && typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } var length = partials ? partials.length : 0; @@ -304,9 +303,9 @@ function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, a if (bitmask == BIND_FLAG) { var result = createBindWrapper(newData[0], newData[2]); } else if ((bitmask == PARTIAL_FLAG || bitmask == (BIND_FLAG | PARTIAL_FLAG)) && !newData[4].length) { - result = createPartialWrapper.apply(null, newData); + result = createPartialWrapper.apply(undefined, newData); } else { - result = createHybridWrapper.apply(null, newData); + result = createHybridWrapper.apply(undefined, newData); } return result; } diff --git a/lodash._createwrapper/package.json b/lodash._createwrapper/package.json index 1bf4d6b59..0d6b6cfde 100644 --- a/lodash._createwrapper/package.json +++ b/lodash._createwrapper/package.json @@ -1,6 +1,6 @@ { "name": "lodash._createwrapper", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `createWrapper` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -18,7 +18,6 @@ "dependencies": { "lodash._arraycopy": "^3.0.0", "lodash._basecreate": "^3.0.0", - "lodash._replaceholders": "^3.0.0", - "lodash.isfunction": "^3.0.0" + "lodash._replaceholders": "^3.0.0" } } diff --git a/lodash._isiterateecall/README.md b/lodash._isiterateecall/README.md index 27a344e82..69c712bdb 100644 --- a/lodash._isiterateecall/README.md +++ b/lodash._isiterateecall/README.md @@ -1,4 +1,4 @@ -# lodash._isiterateecall v3.0.0 +# lodash._isiterateecall v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `isIterateeCall` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isIterateeCall = require('lodash._isiterateecall'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._isiterateecall) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._isiterateecall) for more details. diff --git a/lodash._isiterateecall/index.js b/lodash._isiterateecall/index.js index cb5425cd8..aab88e7b6 100644 --- a/lodash._isiterateecall/index.js +++ b/lodash._isiterateecall/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -46,7 +46,7 @@ function isIterateeCall(value, index, object) { var length = object.length, prereq = isLength(length) && isIndex(index, length); } else { - prereq = type == 'string' && index in value; + prereq = type == 'string' && index in object; } return prereq && object[index] === value; } diff --git a/lodash._isiterateecall/package.json b/lodash._isiterateecall/package.json index adabc8fcb..8dcf9ea87 100644 --- a/lodash._isiterateecall/package.json +++ b/lodash._isiterateecall/package.json @@ -1,6 +1,6 @@ { "name": "lodash._isiterateecall", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `isIterateeCall` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._pickbyarray/LICENSE.txt b/lodash._pickbyarray/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._pickbyarray/LICENSE.txt +++ b/lodash._pickbyarray/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._pickbyarray/README.md b/lodash._pickbyarray/README.md index 581000b08..de1f8de4e 100644 --- a/lodash._pickbyarray/README.md +++ b/lodash._pickbyarray/README.md @@ -1,4 +1,4 @@ -# lodash._pickbyarray v3.0.0 +# lodash._pickbyarray v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `pickByArray` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var pickByArray = require('lodash._pickbyarray'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._pickbyarray) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._pickbyarray) for more details. diff --git a/lodash._pickbyarray/index.js b/lodash._pickbyarray/index.js index 1ff1cbad8..8483d9dd4 100644 --- a/lodash._pickbyarray/index.js +++ b/lodash._pickbyarray/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -44,11 +44,9 @@ function toObject(value) { } /** - * Checks if `value` is the language type of `Object`. + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * - * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. - * * @static * @memberOf _ * @category Lang @@ -69,7 +67,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (value && type == 'object') || false; + return type == 'function' || (!!value && type == 'object'); } module.exports = pickByArray; diff --git a/lodash._pickbyarray/package.json b/lodash._pickbyarray/package.json index a11f82f78..065eaa8e1 100644 --- a/lodash._pickbyarray/package.json +++ b/lodash._pickbyarray/package.json @@ -1,6 +1,6 @@ { "name": "lodash._pickbyarray", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `pickByArray` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._reescape/LICENSE.txt b/lodash._reescape/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash._reescape/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash._reescape/README.md b/lodash._reescape/README.md deleted file mode 100644 index c80ae07c0..000000000 --- a/lodash._reescape/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._reescape v3.0.0 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `reEscape` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._reescape -``` - -In Node.js/io.js: - -```js -var reEscape = require('lodash._reescape'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._reescape) for more details. diff --git a/lodash._reescape/index.js b/lodash._reescape/index.js deleted file mode 100644 index 1a3b8cf34..000000000 --- a/lodash._reescape/index.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** Used to match template delimiters. */ -var reEscape = /<%-([\s\S]+?)%>/g; - -module.exports = reEscape; diff --git a/lodash._reescape/package.json b/lodash._reescape/package.json deleted file mode 100644 index a25c81ede..000000000 --- a/lodash._reescape/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "lodash._reescape", - "version": "3.0.0", - "description": "The modern build of lodash’s internal `reEscape` as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "author": "John-David Dalton (http://allyoucanleet.com/)", - "contributors": [ - "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", - "Mathias Bynens (https://mathiasbynens.be/)" - ], - "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } -} diff --git a/lodash._reevaluate/LICENSE.txt b/lodash._reevaluate/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash._reevaluate/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash._reevaluate/README.md b/lodash._reevaluate/README.md deleted file mode 100644 index a69b8aac1..000000000 --- a/lodash._reevaluate/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# lodash._reevaluate v3.0.0 - -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `reEvaluate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. - -## Installation - -Using npm: - -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash._reevaluate -``` - -In Node.js/io.js: - -```js -var reEvaluate = require('lodash._reevaluate'); -``` - -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._reevaluate) for more details. diff --git a/lodash._reevaluate/index.js b/lodash._reevaluate/index.js deleted file mode 100644 index 16d76098d..000000000 --- a/lodash._reevaluate/index.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** Used to match template delimiters. */ -var reEvaluate = /<%([\s\S]+?)%>/g; - -module.exports = reEvaluate; diff --git a/lodash._reevaluate/package.json b/lodash._reevaluate/package.json deleted file mode 100644 index fad87a2d2..000000000 --- a/lodash._reevaluate/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "lodash._reevaluate", - "version": "3.0.0", - "description": "The modern build of lodash’s internal `reEvaluate` as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "license": "MIT", - "author": "John-David Dalton (http://allyoucanleet.com/)", - "contributors": [ - "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", - "Mathias Bynens (https://mathiasbynens.be/)" - ], - "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } -} diff --git a/lodash._root/LICENSE b/lodash._root/LICENSE index b054ca5a3..bcbe13d67 100644 --- a/lodash._root/LICENSE +++ b/lodash._root/LICENSE @@ -1,22 +1,23 @@ +The MIT License (MIT) + Copyright 2012-2016 The Dojo Foundation Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/lodash._root/README.md b/lodash._root/README.md index 9372f4a97..0329abf23 100644 --- a/lodash._root/README.md +++ b/lodash._root/README.md @@ -1,4 +1,4 @@ -# lodash._root v3.0.0 +# lodash._root v3.0.1 The internal [lodash](https://lodash.com/) function `root` exported as a [Node.js](https://nodejs.org/) module. @@ -15,4 +15,4 @@ In Node.js: var root = require('lodash._root'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._root) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._root) for more details. diff --git a/lodash._root/index.js b/lodash._root/index.js index 469812486..2d8ba0aff 100644 --- a/lodash._root/index.js +++ b/lodash._root/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modularize exports="npm" -o ./` * Copyright 2012-2016 The Dojo Foundation * Based on Underscore.js 1.8.3 @@ -14,10 +14,14 @@ var objectTypes = { }; /** Detect free variable `exports`. */ -var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null; +var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) + ? exports + : undefined; /** Detect free variable `module`. */ -var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null; +var freeModule = (objectTypes[typeof module] && module && !module.nodeType) + ? module + : undefined; /** Detect free variable `global` from Node.js. */ var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global); @@ -37,7 +41,9 @@ var thisGlobal = checkGlobal(objectTypes[typeof this] && this); * The `this` value is used if it's the global object to avoid Greasemonkey's * restricted `window` object, otherwise the `window` object is used. */ -var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')(); +var root = freeGlobal || + ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || + freeSelf || thisGlobal || Function('return this')(); /** * Checks if `value` is a global object. diff --git a/lodash._root/package.json b/lodash._root/package.json index 227ac6c4a..f75400d14 100644 --- a/lodash._root/package.json +++ b/lodash._root/package.json @@ -1,6 +1,6 @@ { "name": "lodash._root", - "version": "3.0.0", + "version": "3.0.1", "description": "The internal lodash function `root` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._toiterable/LICENSE.txt b/lodash._toiterable/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash._toiterable/LICENSE.txt +++ b/lodash._toiterable/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash._toiterable/README.md b/lodash._toiterable/README.md index 4789390b4..e2299e28d 100644 --- a/lodash._toiterable/README.md +++ b/lodash._toiterable/README.md @@ -1,4 +1,4 @@ -# lodash._toiterable v3.0.0 +# lodash._toiterable v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `toIterable` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var toIterable = require('lodash._toiterable'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._toiterable) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._toiterable) for more details. diff --git a/lodash._toiterable/index.js b/lodash._toiterable/index.js index f7da7bdfc..83947cf43 100644 --- a/lodash._toiterable/index.js +++ b/lodash._toiterable/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -10,18 +10,15 @@ var baseValues = require('lodash._basevalues'), keys = require('lodash.keys'); /** - * Used as the maximum length of an array-like value. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) - * for more details. + * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) + * of an array-like value. */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; /** * Checks if `value` is a valid array-like length. * - * **Note:** This function is based on ES `ToLength`. See the - * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength) - * for more details. + * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength). * * @private * @param {*} value The value to check. @@ -49,11 +46,9 @@ function toIterable(value) { } /** - * Checks if `value` is the language type of `Object`. + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * - * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. - * * @static * @memberOf _ * @category Lang @@ -74,7 +69,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (value && type == 'object') || false; + return type == 'function' || (!!value && type == 'object'); } /** diff --git a/lodash._toiterable/package.json b/lodash._toiterable/package.json index fb1210189..a1d561808 100644 --- a/lodash._toiterable/package.json +++ b/lodash._toiterable/package.json @@ -1,6 +1,6 @@ { "name": "lodash._toiterable", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s internal `toIterable` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.after/README.md b/lodash.after/README.md index e8ee50f6b..a4e4eb45d 100644 --- a/lodash.after/README.md +++ b/lodash.after/README.md @@ -1,4 +1,4 @@ -# lodash.after v3.0.0 +# lodash.after v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.after` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var after = require('lodash.after'); ``` -See the [documentation](https://lodash.com/docs#after) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.after) for more details. +See the [documentation](https://lodash.com/docs#after) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.after) for more details. diff --git a/lodash.after/index.js b/lodash.after/index.js index 30917fdea..330c276db 100644 --- a/lodash.after/index.js +++ b/lodash.after/index.js @@ -1,12 +1,4 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ -var isFunction = require('lodash.isfunction'); +/** Used as the `TypeError` message for "Functions" methods. */ /** Used as the `TypeError` message for "Functions" methods. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -16,7 +8,7 @@ var nativeIsFinite = global.isFinite; /** * The opposite of `_.before`; this method creates a function that invokes - * `func` once it is called `n` or more times. + * `func` once it's called `n` or more times. * * @static * @memberOf _ @@ -38,8 +30,8 @@ var nativeIsFinite = global.isFinite; * // => logs 'done saving!' after the two async saves have completed */ function after(n, func) { - if (!isFunction(func)) { - if (isFunction(n)) { + if (typeof func != 'function') { + if (typeof n == 'function') { var temp = n; n = func; func = temp; diff --git a/lodash.after/package.json b/lodash.after/package.json index b4c261030..d73306dd9 100644 --- a/lodash.after/package.json +++ b/lodash.after/package.json @@ -1,6 +1,6 @@ { "name": "lodash.after", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.after` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -15,8 +15,5 @@ "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, - "dependencies": { - "lodash.isfunction": "^3.0.0" - } + "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } } diff --git a/lodash.ary/LICENSE.txt b/lodash.ary/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.ary/LICENSE.txt +++ b/lodash.ary/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.ary/README.md b/lodash.ary/README.md index 16350f39c..c5c4ed05a 100644 --- a/lodash.ary/README.md +++ b/lodash.ary/README.md @@ -1,4 +1,4 @@ -# lodash.ary v3.0.0 +# lodash.ary v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.ary` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var ary = require('lodash.ary'); ``` -See the [documentation](https://lodash.com/docs#ary) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.ary) for more details. +See the [documentation](https://lodash.com/docs#ary) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.ary) for more details. diff --git a/lodash.ary/index.js b/lodash.ary/index.js index 95282a58f..d7b495869 100644 --- a/lodash.ary/index.js +++ b/lodash.ary/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -10,7 +10,7 @@ var createWrapper = require('lodash._createwrapper'), isIterateeCall = require('lodash._isiterateecall'); /** Used to compose bitmasks for wrapper metadata. */ -var ARY_FLAG = 256; +var ARY_FLAG = 128; /* Native method references for those with the same name as other `lodash` methods. */ var nativeMax = Math.max; diff --git a/lodash.ary/package.json b/lodash.ary/package.json index e856f8c95..9742c3d84 100644 --- a/lodash.ary/package.json +++ b/lodash.ary/package.json @@ -1,6 +1,6 @@ { "name": "lodash.ary", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.ary` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.before/README.md b/lodash.before/README.md index 73e707251..1a4f93348 100644 --- a/lodash.before/README.md +++ b/lodash.before/README.md @@ -1,4 +1,4 @@ -# lodash.before v3.0.0 +# lodash.before v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.before` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var before = require('lodash.before'); ``` -See the [documentation](https://lodash.com/docs#before) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.before) for more details. +See the [documentation](https://lodash.com/docs#before) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.before) for more details. diff --git a/lodash.before/index.js b/lodash.before/index.js index ad47114ba..7175d123c 100644 --- a/lodash.before/index.js +++ b/lodash.before/index.js @@ -1,12 +1,11 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ -var isFunction = require('lodash.isfunction'); /** Used as the `TypeError` message for "Functions" methods. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -29,8 +28,8 @@ var FUNC_ERROR_TEXT = 'Expected a function'; */ function before(n, func) { var result; - if (!isFunction(func)) { - if (isFunction(n)) { + if (typeof func != 'function') { + if (typeof n == 'function') { var temp = n; n = func; func = temp; diff --git a/lodash.before/package.json b/lodash.before/package.json index 29e40887a..cd5c15e80 100644 --- a/lodash.before/package.json +++ b/lodash.before/package.json @@ -1,6 +1,6 @@ { "name": "lodash.before", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.before` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -15,8 +15,5 @@ "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, - "dependencies": { - "lodash.isfunction": "^3.0.0" - } + "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } } diff --git a/lodash.camelcase/README.md b/lodash.camelcase/README.md index c9bfb432a..d2dfcdfea 100644 --- a/lodash.camelcase/README.md +++ b/lodash.camelcase/README.md @@ -1,4 +1,4 @@ -# lodash.camelcase v3.0.0 +# lodash.camelcase v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.camelCase` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var camelCase = require('lodash.camelcase'); ``` -See the [documentation](https://lodash.com/docs#camelCase) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.camelcase) for more details. +See the [documentation](https://lodash.com/docs#camelCase) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.camelcase) for more details. diff --git a/lodash.camelcase/index.js b/lodash.camelcase/index.js index 81c35dff1..4ed1ab163 100644 --- a/lodash.camelcase/index.js +++ b/lodash.camelcase/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -9,8 +9,7 @@ var createCompounder = require('lodash._createcompounder'); /** - * Converts `string` to camel case. - * See [Wikipedia](https://en.wikipedia.org/wiki/CamelCase) for more details. + * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase). * * @static * @memberOf _ @@ -30,7 +29,7 @@ var createCompounder = require('lodash._createcompounder'); */ var camelCase = createCompounder(function(result, word, index) { word = word.toLowerCase(); - return index ? (result + word.charAt(0).toUpperCase() + word.slice(1)) : word; + return result + (index ? (word.charAt(0).toUpperCase() + word.slice(1)) : word); }); module.exports = camelCase; diff --git a/lodash.camelcase/package.json b/lodash.camelcase/package.json index 343cd179f..6aefb6ba1 100644 --- a/lodash.camelcase/package.json +++ b/lodash.camelcase/package.json @@ -1,6 +1,6 @@ { "name": "lodash.camelcase", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.camelCase` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._basefind/LICENSE.txt b/lodash.chunk/LICENSE similarity index 94% rename from lodash._basefind/LICENSE.txt rename to lodash.chunk/LICENSE index 17764328c..9cd87e5dc 100644 --- a/lodash._basefind/LICENSE.txt +++ b/lodash.chunk/LICENSE @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.chunk/LICENSE.txt b/lodash.chunk/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash.chunk/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash.chunk/README.md b/lodash.chunk/README.md index f766bc81f..e3fa73db9 100644 --- a/lodash.chunk/README.md +++ b/lodash.chunk/README.md @@ -1,4 +1,4 @@ -# lodash.chunk v3.0.0 +# lodash.chunk v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.chunk` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var chunk = require('lodash.chunk'); ``` -See the [documentation](https://lodash.com/docs#chunk) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.chunk) for more details. +See the [documentation](https://lodash.com/docs#chunk) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.chunk) for more details. diff --git a/lodash.chunk/index.js b/lodash.chunk/index.js index 7eea67b1f..72b8974ba 100644 --- a/lodash.chunk/index.js +++ b/lodash.chunk/index.js @@ -1,19 +1,18 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ var baseSlice = require('lodash._baseslice'), isIterateeCall = require('lodash._isiterateecall'); -/** Native method references. */ -var ceil = Math.ceil; - /* Native method references for those with the same name as other `lodash` methods. */ -var nativeMax = Math.max; +var nativeCeil = Math.ceil, + nativeFloor = Math.floor, + nativeMax = Math.max; /** * Creates an array of elements split into groups the length of `size`. @@ -39,12 +38,12 @@ function chunk(array, size, guard) { if (guard ? isIterateeCall(array, size, guard) : size == null) { size = 1; } else { - size = nativeMax(+size || 1, 1); + size = nativeMax(nativeFloor(size) || 1, 1); } var index = 0, length = array ? array.length : 0, resIndex = -1, - result = Array(ceil(length / size)); + result = Array(nativeCeil(length / size)); while (index < length) { result[++resIndex] = baseSlice(array, index, (index += size)); diff --git a/lodash.chunk/package.json b/lodash.chunk/package.json index ea3db2319..31b611e3b 100644 --- a/lodash.chunk/package.json +++ b/lodash.chunk/package.json @@ -1,6 +1,6 @@ { "name": "lodash.chunk", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.chunk` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.clone/README.md b/lodash.clone/README.md index 0d42ccfa6..185ce302a 100644 --- a/lodash.clone/README.md +++ b/lodash.clone/README.md @@ -1,4 +1,4 @@ -# lodash.clone v3.0.0 +# lodash.clone v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.clone` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var clone = require('lodash.clone'); ``` -See the [documentation](https://lodash.com/docs#clone) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.clone) for more details. +See the [documentation](https://lodash.com/docs#clone) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.clone) for more details. diff --git a/lodash.clone/index.js b/lodash.clone/index.js index 921a59489..e9aab9f75 100644 --- a/lodash.clone/index.js +++ b/lodash.clone/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -17,12 +17,12 @@ var baseClone = require('lodash._baseclone'), * cloning is handled by the method instead. The `customizer` is bound to * `thisArg` and invoked with two argument; (value [, index|key, object]). * - * **Note:** This method is loosely based on the structured clone algorithm. + * **Note:** This method is loosely based on the + * [structured clone algorithm](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm). * The enumerable properties of `arguments` objects and objects created by * constructors other than `Object` are cloned to plain `Object` objects. An * empty object is returned for uncloneable values such as functions, DOM nodes, - * Maps, Sets, and WeakMaps. See the [HTML5 specification](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm) - * for more details. + * Maps, Sets, and WeakMaps. * * @static * @memberOf _ @@ -48,22 +48,26 @@ var baseClone = require('lodash._baseclone'), * // => false * * // using a customizer callback - * var body = _.clone(document.body, function(value) { - * return _.isElement(value) ? value.cloneNode(false) : undefined; + * var el = _.clone(document.body, function(value) { + * if (_.isElement(value)) { + * return value.cloneNode(false); + * } * }); * - * body === document.body + * el === document.body * // => false - * body.nodeName + * el.nodeName * // => BODY - * body.childNodes.length; + * el.childNodes.length; * // => 0 */ function clone(value, isDeep, customizer, thisArg) { - // Juggle arguments. - if (typeof isDeep != 'boolean' && isDeep != null) { + if (isDeep && typeof isDeep != 'boolean' && isIterateeCall(value, isDeep, customizer)) { + isDeep = false; + } + else if (typeof isDeep == 'function') { thisArg = customizer; - customizer = isIterateeCall(value, isDeep, thisArg) ? null : isDeep; + customizer = isDeep; isDeep = false; } customizer = typeof customizer == 'function' && bindCallback(customizer, thisArg, 1); diff --git a/lodash.clone/package.json b/lodash.clone/package.json index 7d2c3f3c7..7bc1234fb 100644 --- a/lodash.clone/package.json +++ b/lodash.clone/package.json @@ -1,6 +1,6 @@ { "name": "lodash.clone", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.clone` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.clonedeep/LICENSE.txt b/lodash.clonedeep/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.clonedeep/LICENSE.txt +++ b/lodash.clonedeep/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.clonedeep/README.md b/lodash.clonedeep/README.md index 027afa45e..79c88487d 100644 --- a/lodash.clonedeep/README.md +++ b/lodash.clonedeep/README.md @@ -1,4 +1,4 @@ -# lodash.clonedeep v3.0.0 +# lodash.clonedeep v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.cloneDeep` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var cloneDeep = require('lodash.clonedeep'); ``` -See the [documentation](https://lodash.com/docs#cloneDeep) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.clonedeep) for more details. +See the [documentation](https://lodash.com/docs#cloneDeep) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.clonedeep) for more details. diff --git a/lodash.clonedeep/index.js b/lodash.clonedeep/index.js index 73b914f09..26b9ddcb8 100644 --- a/lodash.clonedeep/index.js +++ b/lodash.clonedeep/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -55,8 +55,9 @@ var baseClone = require('lodash._baseclone'), * // => 20 */ function cloneDeep(value, customizer, thisArg) { - customizer = typeof customizer == 'function' && bindCallback(customizer, thisArg, 1); - return baseClone(value, true, customizer); + return typeof customizer == 'function' + ? baseClone(value, true, bindCallback(customizer, thisArg, 1)) + : baseClone(value, true); } module.exports = cloneDeep; diff --git a/lodash.clonedeep/package.json b/lodash.clonedeep/package.json index cf909108d..c5ec7d85a 100644 --- a/lodash.clonedeep/package.json +++ b/lodash.clonedeep/package.json @@ -1,6 +1,6 @@ { "name": "lodash.clonedeep", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.cloneDeep` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.compact/LICENSE b/lodash.compact/LICENSE new file mode 100644 index 000000000..bcbe13d67 --- /dev/null +++ b/lodash.compact/LICENSE @@ -0,0 +1,23 @@ +The MIT License (MIT) + +Copyright 2012-2016 The Dojo Foundation +Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/lodash.compact/LICENSE.txt b/lodash.compact/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash.compact/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash.compact/README.md b/lodash.compact/README.md index aedd515fc..dadacc58f 100644 --- a/lodash.compact/README.md +++ b/lodash.compact/README.md @@ -1,20 +1,18 @@ -# lodash.compact v3.0.0 +# lodash.compact v3.0.1 -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.compact` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. +The [lodash](https://lodash.com/) method `_.compact` exported as a [Node.js](https://nodejs.org/) module. ## Installation Using npm: - ```bash $ {sudo -H} npm i -g npm $ npm i --save lodash.compact ``` -In Node.js/io.js: - +In Node.js: ```js var compact = require('lodash.compact'); ``` -See the [documentation](https://lodash.com/docs#compact) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.compact) for more details. +See the [documentation](https://lodash.com/docs#compact) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.compact) for more details. diff --git a/lodash.compact/index.js b/lodash.compact/index.js index 13597d7c2..804c35972 100644 --- a/lodash.compact/index.js +++ b/lodash.compact/index.js @@ -1,9 +1,9 @@ /** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * lodash 3.0.1 (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright 2012-2016 The Dojo Foundation + * Based on Underscore.js 1.8.3 + * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -13,6 +13,7 @@ * * @static * @memberOf _ + * @since 0.1.0 * @category Array * @param {Array} array The array to compact. * @returns {Array} Returns the new array of filtered values. @@ -24,13 +25,13 @@ function compact(array) { var index = -1, length = array ? array.length : 0, - resIndex = -1, + resIndex = 0, result = []; while (++index < length) { var value = array[index]; if (value) { - result[++resIndex] = value; + result[resIndex++] = value; } } return result; diff --git a/lodash.compact/package.json b/lodash.compact/package.json index 466709192..2da2660fb 100644 --- a/lodash.compact/package.json +++ b/lodash.compact/package.json @@ -1,17 +1,15 @@ { "name": "lodash.compact", - "version": "3.0.0", - "description": "The modern build of lodash’s `_.compact` as a module.", + "version": "3.0.1", + "description": "The lodash method `_.compact` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", "license": "MIT", - "keywords": "lodash, lodash-modularized, stdlib, util", + "keywords": "lodash-modularized, compact", "author": "John-David Dalton (http://allyoucanleet.com/)", "contributors": [ "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", + "Blaine Bublitz (https://github.com/phated)", "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", diff --git a/lodash.curry/LICENSE.txt b/lodash.curry/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.curry/LICENSE.txt +++ b/lodash.curry/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.curry/README.md b/lodash.curry/README.md index d43d90a43..9d7342e15 100644 --- a/lodash.curry/README.md +++ b/lodash.curry/README.md @@ -1,4 +1,4 @@ -# lodash.curry v3.0.0 +# lodash.curry v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.curry` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var curry = require('lodash.curry'); ``` -See the [documentation](https://lodash.com/docs#curry) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.curry) for more details. +See the [documentation](https://lodash.com/docs#curry) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.curry) for more details. diff --git a/lodash.curry/index.js b/lodash.curry/index.js index 9c33193a2..391b36926 100644 --- a/lodash.curry/index.js +++ b/lodash.curry/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -12,6 +12,25 @@ var createWrapper = require('lodash._createwrapper'), /** Used to compose bitmasks for wrapper metadata. */ var CURRY_FLAG = 8; +/** + * Creates a `_.curry` or `_.curryRight` function. + * + * @private + * @param {boolean} flag The curry bit flag. + * @returns {Function} Returns the new curry function. + */ +function createCurry(flag) { + function curryFunc(func, arity, guard) { + if (guard && isIterateeCall(func, arity, guard)) { + arity = null; + } + var result = createWrapper(func, flag, null, null, null, null, null, arity); + result.placeholder = curryFunc.placeholder; + return result; + } + return curryFunc; +} + /** * Creates a function that accepts one or more arguments of `func` that when * called either invokes `func` returning its result, if all `func` arguments @@ -22,7 +41,7 @@ var CURRY_FLAG = 8; * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds, * may be used as a placeholder for provided arguments. * - * **Note:** This method does not set the `length` property of curried functions. + * **Note:** This method does not set the "length" property of curried functions. * * @static * @memberOf _ @@ -52,14 +71,7 @@ var CURRY_FLAG = 8; * curried(1)(_, 3)(2); * // => [1, 2, 3] */ -function curry(func, arity, guard) { - if (guard && isIterateeCall(func, arity, guard)) { - arity = null; - } - var result = createWrapper(func, CURRY_FLAG, null, null, null, null, null, arity); - result.placeholder = curry.placeholder; - return result; -} +var curry = createCurry(CURRY_FLAG); // Assign default placeholders. curry.placeholder = {}; diff --git a/lodash.curry/package.json b/lodash.curry/package.json index fe1af57c0..dabecc5c2 100644 --- a/lodash.curry/package.json +++ b/lodash.curry/package.json @@ -1,6 +1,6 @@ { "name": "lodash.curry", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.curry` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.curryright/LICENSE.txt b/lodash.curryright/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.curryright/LICENSE.txt +++ b/lodash.curryright/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.curryright/README.md b/lodash.curryright/README.md index 21b49764e..33a835777 100644 --- a/lodash.curryright/README.md +++ b/lodash.curryright/README.md @@ -1,4 +1,4 @@ -# lodash.curryright v3.0.0 +# lodash.curryright v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.curryRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var curryRight = require('lodash.curryright'); ``` -See the [documentation](https://lodash.com/docs#curryRight) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.curryright) for more details. +See the [documentation](https://lodash.com/docs#curryRight) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.curryright) for more details. diff --git a/lodash.curryright/index.js b/lodash.curryright/index.js index 55f158c83..d6b417294 100644 --- a/lodash.curryright/index.js +++ b/lodash.curryright/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -12,6 +12,25 @@ var createWrapper = require('lodash._createwrapper'), /** Used to compose bitmasks for wrapper metadata. */ var CURRY_RIGHT_FLAG = 16; +/** + * Creates a `_.curry` or `_.curryRight` function. + * + * @private + * @param {boolean} flag The curry bit flag. + * @returns {Function} Returns the new curry function. + */ +function createCurry(flag) { + function curryFunc(func, arity, guard) { + if (guard && isIterateeCall(func, arity, guard)) { + arity = null; + } + var result = createWrapper(func, flag, null, null, null, null, null, arity); + result.placeholder = curryFunc.placeholder; + return result; + } + return curryFunc; +} + /** * This method is like `_.curry` except that arguments are applied to `func` * in the manner of `_.partialRight` instead of `_.partial`. @@ -19,7 +38,7 @@ var CURRY_RIGHT_FLAG = 16; * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic * builds, may be used as a placeholder for provided arguments. * - * **Note:** This method does not set the `length` property of curried functions. + * **Note:** This method does not set the "length" property of curried functions. * * @static * @memberOf _ @@ -49,14 +68,7 @@ var CURRY_RIGHT_FLAG = 16; * curried(3)(1, _)(2); * // => [1, 2, 3] */ -function curryRight(func, arity, guard) { - if (guard && isIterateeCall(func, arity, guard)) { - arity = null; - } - var result = createWrapper(func, CURRY_RIGHT_FLAG, null, null, null, null, null, arity); - result.placeholder = curryRight.placeholder; - return result; -} +var curryRight = createCurry(CURRY_RIGHT_FLAG); // Assign default placeholders. curryRight.placeholder = {}; diff --git a/lodash.curryright/package.json b/lodash.curryright/package.json index 18be39bb7..981ff0d21 100644 --- a/lodash.curryright/package.json +++ b/lodash.curryright/package.json @@ -1,6 +1,6 @@ { "name": "lodash.curryright", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.curryRight` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.debounce/README.md b/lodash.debounce/README.md index c05de802e..e68391d74 100644 --- a/lodash.debounce/README.md +++ b/lodash.debounce/README.md @@ -1,4 +1,4 @@ -# lodash.debounce v3.0.0 +# lodash.debounce v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.debounce` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var debounce = require('lodash.debounce'); ``` -See the [documentation](https://lodash.com/docs#debounce) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.debounce) for more details. +See the [documentation](https://lodash.com/docs#debounce) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.debounce) for more details. diff --git a/lodash.debounce/index.js b/lodash.debounce/index.js index 76d2ea735..cfabe6215 100644 --- a/lodash.debounce/index.js +++ b/lodash.debounce/index.js @@ -1,13 +1,12 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ -var isFunction = require('lodash.isfunction'), - isNative = require('lodash.isnative'); +var isNative = require('lodash.isnative'); /** Used as the `TypeError` message for "Functions" methods. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -25,7 +24,9 @@ var nativeMax = Math.max, * @category Date * @example * - * _.defer(function(stamp) { console.log(_.now() - stamp); }, _.now()); + * _.defer(function(stamp) { + * console.log(_.now() - stamp); + * }, _.now()); * // => logs the number of milliseconds it took for the deferred function to be invoked */ var now = nativeNow || function() { @@ -106,7 +107,7 @@ function debounce(func, wait, options) { maxWait = false, trailing = true; - if (!isFunction(func)) { + if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } wait = wait < 0 ? 0 : wait; diff --git a/lodash.debounce/package.json b/lodash.debounce/package.json index a7d3f119e..615531836 100644 --- a/lodash.debounce/package.json +++ b/lodash.debounce/package.json @@ -1,6 +1,6 @@ { "name": "lodash.debounce", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.debounce` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -17,7 +17,6 @@ "repository": "lodash/lodash", "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, "dependencies": { - "lodash.isfunction": "^3.0.0", "lodash.isnative": "^3.0.0" } } diff --git a/lodash.deburr/LICENSE.txt b/lodash.deburr/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.deburr/LICENSE.txt +++ b/lodash.deburr/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.deburr/README.md b/lodash.deburr/README.md index edaa5ada3..de6013092 100644 --- a/lodash.deburr/README.md +++ b/lodash.deburr/README.md @@ -1,4 +1,4 @@ -# lodash.deburr v3.0.0 +# lodash.deburr v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.deburr` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var deburr = require('lodash.deburr'); ``` -See the [documentation](https://lodash.com/docs#deburr) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.deburr) for more details. +See the [documentation](https://lodash.com/docs#deburr) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.deburr) for more details. diff --git a/lodash.deburr/index.js b/lodash.deburr/index.js index caa86eaca..e1e914773 100644 --- a/lodash.deburr/index.js +++ b/lodash.deburr/index.js @@ -1,13 +1,18 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ var baseToString = require('lodash._basetostring'); +/** + * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). + */ +var reComboMarks = /[\u0300-\u036f\ufe20-\ufe23]/g; + /** Used to match latin-1 supplementary letters (excluding mathematical operators). */ var reLatin1 = /[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g; @@ -44,9 +49,8 @@ function deburrLetter(letter) { } /** - * Deburrs `string` by converting latin-1 supplementary letters to basic latin letters. - * See [Wikipedia](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) - * for more details. + * Deburrs `string` by converting [latin-1 supplementary letters](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table) + * to basic latin letters and removing [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks). * * @static * @memberOf _ @@ -60,7 +64,7 @@ function deburrLetter(letter) { */ function deburr(string) { string = baseToString(string); - return string && string.replace(reLatin1, deburrLetter); + return string && string.replace(reLatin1, deburrLetter).replace(reComboMarks, ''); } module.exports = deburr; diff --git a/lodash.deburr/package.json b/lodash.deburr/package.json index 133a61915..b8ceead10 100644 --- a/lodash.deburr/package.json +++ b/lodash.deburr/package.json @@ -1,6 +1,6 @@ { "name": "lodash.deburr", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.deburr` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.difference/README.md b/lodash.difference/README.md index 7dc571550..7a8bf1ad0 100644 --- a/lodash.difference/README.md +++ b/lodash.difference/README.md @@ -1,4 +1,4 @@ -# lodash.difference v3.0.0 +# lodash.difference v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.difference` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var difference = require('lodash.difference'); ``` -See the [documentation](https://lodash.com/docs#difference) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.difference) for more details. +See the [documentation](https://lodash.com/docs#difference) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.difference) for more details. diff --git a/lodash.difference/index.js b/lodash.difference/index.js index 7d225a2cb..aa2a7c1e3 100644 --- a/lodash.difference/index.js +++ b/lodash.difference/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -32,16 +32,17 @@ var baseDifference = require('lodash._basedifference'), * // => [1, 3] */ function difference() { - var index = -1, - length = arguments.length; + var args = arguments, + index = -1, + length = args.length; while (++index < length) { - var value = arguments[index]; + var value = args[index]; if (isArray(value) || isArguments(value)) { break; } } - return baseDifference(value, baseFlatten(arguments, false, true, ++index)); + return baseDifference(value, baseFlatten(args, false, true, ++index)); } module.exports = difference; diff --git a/lodash.difference/package.json b/lodash.difference/package.json index a731ae317..9e9fcae94 100644 --- a/lodash.difference/package.json +++ b/lodash.difference/package.json @@ -1,6 +1,6 @@ { "name": "lodash.difference", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.difference` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.droprightwhile/LICENSE.txt b/lodash.droprightwhile/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.droprightwhile/LICENSE.txt +++ b/lodash.droprightwhile/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.droprightwhile/README.md b/lodash.droprightwhile/README.md index 4ea448096..c8b83c2e0 100644 --- a/lodash.droprightwhile/README.md +++ b/lodash.droprightwhile/README.md @@ -1,4 +1,4 @@ -# lodash.droprightwhile v3.0.0 +# lodash.droprightwhile v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.dropRightWhile` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var dropRightWhile = require('lodash.droprightwhile'); ``` -See the [documentation](https://lodash.com/docs#dropRightWhile) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.droprightwhile) for more details. +See the [documentation](https://lodash.com/docs#dropRightWhile) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.droprightwhile) for more details. diff --git a/lodash.droprightwhile/index.js b/lodash.droprightwhile/index.js index 975f1c0c4..b49d6fc71 100644 --- a/lodash.droprightwhile/index.js +++ b/lodash.droprightwhile/index.js @@ -1,18 +1,39 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ var baseCallback = require('lodash._basecallback'), baseSlice = require('lodash._baseslice'); +/** + * The base implementation of `_.dropRightWhile`, `_.dropWhile`, `_.takeRightWhile`, + * and `_.takeWhile` without support for callback shorthands and `this` binding. + * + * @private + * @param {Array} array The array to query. + * @param {Function} predicate The function invoked per iteration. + * @param {boolean} [isDrop] Specify dropping elements instead of taking them. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Array} Returns the slice of `array`. + */ +function baseWhile(array, predicate, isDrop, fromRight) { + var length = array.length, + index = fromRight ? length : -1; + + while ((fromRight ? index-- : ++index < length) && predicate(array[index], index, array)) {} + return isDrop + ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length)) + : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index)); +} + /** * Creates a slice of `array` excluding elements dropped from the end. * Elements are dropped until `predicate` returns falsey. The predicate is - * bound to `thisArg` and invoked with three arguments; (value, index, array). + * bound to `thisArg` and invoked with three arguments: (value, index, array). * * If a property name is provided for `predicate` the created `_.property` * style callback returns the property value of the given element. @@ -59,13 +80,9 @@ var baseCallback = require('lodash._basecallback'), * // => ['barney', 'fred', 'pebbles'] */ function dropRightWhile(array, predicate, thisArg) { - var length = array ? array.length : 0; - if (!length) { - return []; - } - predicate = baseCallback(predicate, thisArg, 3); - while (length-- && predicate(array[length], length, array)) {} - return baseSlice(array, 0, length + 1); + return (array && array.length) + ? baseWhile(array, baseCallback(predicate, thisArg, 3), true, true) + : []; } module.exports = dropRightWhile; diff --git a/lodash.droprightwhile/package.json b/lodash.droprightwhile/package.json index 51caac41d..20c066657 100644 --- a/lodash.droprightwhile/package.json +++ b/lodash.droprightwhile/package.json @@ -1,6 +1,6 @@ { "name": "lodash.droprightwhile", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.dropRightWhile` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.dropwhile/LICENSE.txt b/lodash.dropwhile/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.dropwhile/LICENSE.txt +++ b/lodash.dropwhile/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.dropwhile/README.md b/lodash.dropwhile/README.md index 4555e6cd0..4054dbb37 100644 --- a/lodash.dropwhile/README.md +++ b/lodash.dropwhile/README.md @@ -1,4 +1,4 @@ -# lodash.dropwhile v3.0.0 +# lodash.dropwhile v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.dropWhile` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var dropWhile = require('lodash.dropwhile'); ``` -See the [documentation](https://lodash.com/docs#dropWhile) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.dropwhile) for more details. +See the [documentation](https://lodash.com/docs#dropWhile) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.dropwhile) for more details. diff --git a/lodash.dropwhile/index.js b/lodash.dropwhile/index.js index f59efbc0b..458b3d098 100644 --- a/lodash.dropwhile/index.js +++ b/lodash.dropwhile/index.js @@ -1,18 +1,39 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ var baseCallback = require('lodash._basecallback'), baseSlice = require('lodash._baseslice'); +/** + * The base implementation of `_.dropRightWhile`, `_.dropWhile`, `_.takeRightWhile`, + * and `_.takeWhile` without support for callback shorthands and `this` binding. + * + * @private + * @param {Array} array The array to query. + * @param {Function} predicate The function invoked per iteration. + * @param {boolean} [isDrop] Specify dropping elements instead of taking them. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Array} Returns the slice of `array`. + */ +function baseWhile(array, predicate, isDrop, fromRight) { + var length = array.length, + index = fromRight ? length : -1; + + while ((fromRight ? index-- : ++index < length) && predicate(array[index], index, array)) {} + return isDrop + ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length)) + : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index)); +} + /** * Creates a slice of `array` excluding elements dropped from the beginning. * Elements are dropped until `predicate` returns falsey. The predicate is - * bound to `thisArg` and invoked with three arguments; (value, index, array). + * bound to `thisArg` and invoked with three arguments: (value, index, array). * * If a property name is provided for `predicate` the created `_.property` * style callback returns the property value of the given element. @@ -59,14 +80,9 @@ var baseCallback = require('lodash._basecallback'), * // => ['barney', 'fred', 'pebbles'] */ function dropWhile(array, predicate, thisArg) { - var length = array ? array.length : 0; - if (!length) { - return []; - } - var index = -1; - predicate = baseCallback(predicate, thisArg, 3); - while (++index < length && predicate(array[index], index, array)) {} - return baseSlice(array, index); + return (array && array.length) + ? baseWhile(array, baseCallback(predicate, thisArg, 3), true) + : []; } module.exports = dropWhile; diff --git a/lodash.dropwhile/package.json b/lodash.dropwhile/package.json index 801b3bd1f..85a8468cb 100644 --- a/lodash.dropwhile/package.json +++ b/lodash.dropwhile/package.json @@ -1,6 +1,6 @@ { "name": "lodash.dropwhile", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.dropWhile` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.endswith/LICENSE.txt b/lodash.endswith/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.endswith/LICENSE.txt +++ b/lodash.endswith/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.endswith/README.md b/lodash.endswith/README.md index a5be39153..c132ca4c3 100644 --- a/lodash.endswith/README.md +++ b/lodash.endswith/README.md @@ -1,4 +1,4 @@ -# lodash.endswith v3.0.0 +# lodash.endswith v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.endsWith` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var endsWith = require('lodash.endswith'); ``` -See the [documentation](https://lodash.com/docs#endsWith) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.endswith) for more details. +See the [documentation](https://lodash.com/docs#endsWith) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.endswith) for more details. diff --git a/lodash.endswith/index.js b/lodash.endswith/index.js index 192bba70d..de7000e54 100644 --- a/lodash.endswith/index.js +++ b/lodash.endswith/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -37,7 +37,11 @@ function endsWith(string, target, position) { target = (target + ''); var length = string.length; - position = (typeof position == 'undefined' ? length : nativeMin(position < 0 ? 0 : (+position || 0), length)) - target.length; + position = typeof position == 'undefined' + ? length + : nativeMin(position < 0 ? 0 : (+position || 0), length); + + position -= target.length; return position >= 0 && string.indexOf(target, position) == position; } diff --git a/lodash.endswith/package.json b/lodash.endswith/package.json index 4bb1a1996..0a972a7d5 100644 --- a/lodash.endswith/package.json +++ b/lodash.endswith/package.json @@ -1,6 +1,6 @@ { "name": "lodash.endswith", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.endsWith` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash._baseproperty/LICENSE.txt b/lodash.escaperegexp/LICENSE similarity index 94% rename from lodash._baseproperty/LICENSE.txt rename to lodash.escaperegexp/LICENSE index 17764328c..9cd87e5dc 100644 --- a/lodash._baseproperty/LICENSE.txt +++ b/lodash.escaperegexp/LICENSE @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.escaperegexp/LICENSE.txt b/lodash.escaperegexp/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash.escaperegexp/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash.escaperegexp/README.md b/lodash.escaperegexp/README.md index b20b7d687..1293329d5 100644 --- a/lodash.escaperegexp/README.md +++ b/lodash.escaperegexp/README.md @@ -1,4 +1,4 @@ -# lodash.escaperegexp v3.0.0 +# lodash.escaperegexp v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.escapeRegExp` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var escapeRegExp = require('lodash.escaperegexp'); ``` -See the [documentation](https://lodash.com/docs#escapeRegExp) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.escaperegexp) for more details. +See the [documentation](https://lodash.com/docs#escapeRegExp) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.escaperegexp) for more details. diff --git a/lodash.escaperegexp/index.js b/lodash.escaperegexp/index.js index 77e4dabc2..588b703d7 100644 --- a/lodash.escaperegexp/index.js +++ b/lodash.escaperegexp/index.js @@ -1,21 +1,57 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ var baseToString = require('lodash._basetostring'); /** - * Used to match `RegExp` [special characters](http://www.regular-expressions.info/characters.html#special). - * In addition to special characters the forward slash is escaped to allow for - * easier `eval` use and `Function` compilation. + * Used to match `RegExp` [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns) + * and those outlined by [`EscapeRegExpPattern`](http://ecma-international.org/ecma-262/6.0/#sec-escaperegexppattern). */ -var reRegExpChars = /[.*+?^${}()|[\]\/\\]/g, +var reRegExpChars = /^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g, reHasRegExpChars = RegExp(reRegExpChars.source); +/** Used to escape characters for inclusion in compiled regexes. */ +var regexpEscapes = { + '0': 'x30', '1': 'x31', '2': 'x32', '3': 'x33', '4': 'x34', + '5': 'x35', '6': 'x36', '7': 'x37', '8': 'x38', '9': 'x39', + 'A': 'x41', 'B': 'x42', 'C': 'x43', 'D': 'x44', 'E': 'x45', 'F': 'x46', + 'a': 'x61', 'b': 'x62', 'c': 'x63', 'd': 'x64', 'e': 'x65', 'f': 'x66', + 'n': 'x6e', 'r': 'x72', 't': 'x74', 'u': 'x75', 'v': 'x76', 'x': 'x78' +}; + +/** Used to escape characters for inclusion in compiled string literals. */ +var stringEscapes = { + '\\': '\\', + "'": "'", + '\n': 'n', + '\r': 'r', + '\u2028': 'u2028', + '\u2029': 'u2029' +}; + +/** + * Used by `_.escapeRegExp` to escape characters for inclusion in compiled regexes. + * + * @private + * @param {string} chr The matched character to escape. + * @param {string} leadingChar The capture group for a leading character. + * @param {string} whitespaceChar The capture group for a whitespace character. + * @returns {string} Returns the escaped character. + */ +function escapeRegExpChar(chr, leadingChar, whitespaceChar) { + if (leadingChar) { + chr = regexpEscapes[chr]; + } else if (whitespaceChar) { + chr = stringEscapes[chr]; + } + return '\\' + chr; +} + /** * Escapes the `RegExp` special characters "\", "/", "^", "$", ".", "|", "?", * "*", "+", "(", ")", "[", "]", "{" and "}" in `string`. @@ -33,8 +69,8 @@ var reRegExpChars = /[.*+?^${}()|[\]\/\\]/g, function escapeRegExp(string) { string = baseToString(string); return (string && reHasRegExpChars.test(string)) - ? string.replace(reRegExpChars, '\\$&') - : string; + ? string.replace(reRegExpChars, escapeRegExpChar) + : (string || '(?:)'); } module.exports = escapeRegExp; diff --git a/lodash.escaperegexp/package.json b/lodash.escaperegexp/package.json index 81608475b..ce39a25a5 100644 --- a/lodash.escaperegexp/package.json +++ b/lodash.escaperegexp/package.json @@ -1,6 +1,6 @@ { "name": "lodash.escaperegexp", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.escapeRegExp` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.findkey/LICENSE.txt b/lodash.findkey/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.findkey/LICENSE.txt +++ b/lodash.findkey/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.findkey/README.md b/lodash.findkey/README.md index ce36c18d8..f0169dc6e 100644 --- a/lodash.findkey/README.md +++ b/lodash.findkey/README.md @@ -1,4 +1,4 @@ -# lodash.findkey v3.0.0 +# lodash.findkey v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.findKey` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var findKey = require('lodash.findkey'); ``` -See the [documentation](https://lodash.com/docs#findKey) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.findkey) for more details. +See the [documentation](https://lodash.com/docs#findKey) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.findkey) for more details. diff --git a/lodash.findkey/index.js b/lodash.findkey/index.js index da3b0b0a2..3b220ae9d 100644 --- a/lodash.findkey/index.js +++ b/lodash.findkey/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -25,8 +25,22 @@ function baseForOwn(object, iteratee) { } /** - * This method is like `_.findIndex` except that it returns the key of the - * first element `predicate` returns truthy for, instead of the element itself. + * Creates a `_.findKey` or `_.findLastKey` function. + * + * @private + * @param {Function} objectFunc The function to iterate over an object. + * @returns {Function} Returns the new find function. + */ +function createFindKey(objectFunc) { + return function(object, predicate, thisArg) { + predicate = baseCallback(predicate, thisArg, 3); + return baseFind(object, predicate, objectFunc, true); + }; +} + +/** + * This method is like `_.find` except that it returns the key of the first + * element `predicate` returns truthy for instead of the element itself. * * If a property name is provided for `predicate` the created `_.property` * style callback returns the property value of the given element. @@ -72,9 +86,6 @@ function baseForOwn(object, iteratee) { * _.findKey(users, 'active'); * // => 'barney' */ -function findKey(object, predicate, thisArg) { - predicate = baseCallback(predicate, thisArg, 3); - return baseFind(object, predicate, baseForOwn, true); -} +var findKey = createFindKey(baseForOwn); module.exports = findKey; diff --git a/lodash.findkey/package.json b/lodash.findkey/package.json index 737a7cad8..3c8f870f6 100644 --- a/lodash.findkey/package.json +++ b/lodash.findkey/package.json @@ -1,6 +1,6 @@ { "name": "lodash.findkey", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.findKey` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.findlastkey/LICENSE.txt b/lodash.findlastkey/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.findlastkey/LICENSE.txt +++ b/lodash.findlastkey/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.findlastkey/README.md b/lodash.findlastkey/README.md index 9646de09c..4ddde59b5 100644 --- a/lodash.findlastkey/README.md +++ b/lodash.findlastkey/README.md @@ -1,4 +1,4 @@ -# lodash.findlastkey v3.0.0 +# lodash.findlastkey v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.findLastKey` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var findLastKey = require('lodash.findlastkey'); ``` -See the [documentation](https://lodash.com/docs#findLastKey) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.findlastkey) for more details. +See the [documentation](https://lodash.com/docs#findLastKey) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.findlastkey) for more details. diff --git a/lodash.findlastkey/index.js b/lodash.findlastkey/index.js index d147cae2c..e75e4805a 100644 --- a/lodash.findlastkey/index.js +++ b/lodash.findlastkey/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -24,6 +24,20 @@ function baseForOwnRight(object, iteratee) { return baseForRight(object, iteratee, keys); } +/** + * Creates a `_.findKey` or `_.findLastKey` function. + * + * @private + * @param {Function} objectFunc The function to iterate over an object. + * @returns {Function} Returns the new find function. + */ +function createFindKey(objectFunc) { + return function(object, predicate, thisArg) { + predicate = baseCallback(predicate, thisArg, 3); + return baseFind(object, predicate, objectFunc, true); + }; +} + /** * This method is like `_.findKey` except that it iterates over elements of * a collection in the opposite order. @@ -72,9 +86,6 @@ function baseForOwnRight(object, iteratee) { * _.findLastKey(users, 'active'); * // => 'pebbles' */ -function findLastKey(object, predicate, thisArg) { - predicate = baseCallback(predicate, thisArg, 3); - return baseFind(object, predicate, baseForOwnRight, true); -} +var findLastKey = createFindKey(baseForOwnRight); module.exports = findLastKey; diff --git a/lodash.findlastkey/package.json b/lodash.findlastkey/package.json index 15de9c5ad..429395118 100644 --- a/lodash.findlastkey/package.json +++ b/lodash.findlastkey/package.json @@ -1,6 +1,6 @@ { "name": "lodash.findlastkey", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.findLastKey` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.flatten/README.md b/lodash.flatten/README.md index eb60efc08..71e79196b 100644 --- a/lodash.flatten/README.md +++ b/lodash.flatten/README.md @@ -1,4 +1,4 @@ -# lodash.flatten v3.0.0 +# lodash.flatten v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.flatten` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var flatten = require('lodash.flatten'); ``` -See the [documentation](https://lodash.com/docs#flatten) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.flatten) for more details. +See the [documentation](https://lodash.com/docs#flatten) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.flatten) for more details. diff --git a/lodash.flatten/index.js b/lodash.flatten/index.js index ee9e9e8f7..a9d981d06 100644 --- a/lodash.flatten/index.js +++ b/lodash.flatten/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -34,7 +34,7 @@ function flatten(array, isDeep, guard) { if (guard && isIterateeCall(array, isDeep, guard)) { isDeep = false; } - return length ? baseFlatten(array, isDeep) : []; + return length ? baseFlatten(array, isDeep, false, 0) : []; } module.exports = flatten; diff --git a/lodash.flatten/package.json b/lodash.flatten/package.json index 354a6788c..a570afcc8 100644 --- a/lodash.flatten/package.json +++ b/lodash.flatten/package.json @@ -1,6 +1,6 @@ { "name": "lodash.flatten", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.flatten` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.flattendeep/README.md b/lodash.flattendeep/README.md index 775447b58..a4b17b30b 100644 --- a/lodash.flattendeep/README.md +++ b/lodash.flattendeep/README.md @@ -1,4 +1,4 @@ -# lodash.flattendeep v3.0.0 +# lodash.flattendeep v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.flattenDeep` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var flattenDeep = require('lodash.flattendeep'); ``` -See the [documentation](https://lodash.com/docs#flattenDeep) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.flattendeep) for more details. +See the [documentation](https://lodash.com/docs#flattenDeep) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.flattendeep) for more details. diff --git a/lodash.flattendeep/index.js b/lodash.flattendeep/index.js index 4a820da9b..9fbff8379 100644 --- a/lodash.flattendeep/index.js +++ b/lodash.flattendeep/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -23,7 +23,7 @@ var baseFlatten = require('lodash._baseflatten'); */ function flattenDeep(array) { var length = array ? array.length : 0; - return length ? baseFlatten(array, true) : []; + return length ? baseFlatten(array, true, false, 0) : []; } module.exports = flattenDeep; diff --git a/lodash.flattendeep/package.json b/lodash.flattendeep/package.json index 084ce0c64..1f7153414 100644 --- a/lodash.flattendeep/package.json +++ b/lodash.flattendeep/package.json @@ -1,6 +1,6 @@ { "name": "lodash.flattendeep", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.flattenDeep` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.foreach/README.md b/lodash.foreach/README.md index 9ea1c91a9..4531a6bb4 100644 --- a/lodash.foreach/README.md +++ b/lodash.foreach/README.md @@ -1,4 +1,4 @@ -# lodash.foreach v3.0.0 +# lodash.foreach v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.forEach` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var forEach = require('lodash.foreach'); ``` -See the [documentation](https://lodash.com/docs#forEach) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.foreach) for more details. +See the [documentation](https://lodash.com/docs#forEach) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.foreach) for more details. diff --git a/lodash.foreach/index.js b/lodash.foreach/index.js index 31f6f453d..6242e9dbb 100644 --- a/lodash.foreach/index.js +++ b/lodash.foreach/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -31,10 +31,14 @@ var arrayEach = require('lodash._arrayeach'), * @returns {Array|Object|string} Returns `collection`. * @example * - * _([1, 2, 3]).forEach(function(n) { console.log(n); }).value(); + * _([1, 2]).forEach(function(n) { + * console.log(n); + * }).value(); * // => logs each value from left to right and returns the array * - * _.forEach({ 'one': 1, 'two': 2, 'three': 3 }, function(n, key) { console.log(n, key); }); + * _.forEach({ 'a': 1, 'b': 2 }, function(n, key) { + * console.log(n, key); + * }); * // => logs each value-key pair and returns the object (iteration order is not guaranteed) */ function forEach(collection, iteratee, thisArg) { diff --git a/lodash.foreach/package.json b/lodash.foreach/package.json index 7d1d809e0..64bfc0f2d 100644 --- a/lodash.foreach/package.json +++ b/lodash.foreach/package.json @@ -1,6 +1,6 @@ { "name": "lodash.foreach", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.forEach` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.foreachright/LICENSE.txt b/lodash.foreachright/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.foreachright/LICENSE.txt +++ b/lodash.foreachright/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.foreachright/README.md b/lodash.foreachright/README.md index faf299afa..4c4cfa1fb 100644 --- a/lodash.foreachright/README.md +++ b/lodash.foreachright/README.md @@ -1,4 +1,4 @@ -# lodash.foreachright v3.0.0 +# lodash.foreachright v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.forEachRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var forEachRight = require('lodash.foreachright'); ``` -See the [documentation](https://lodash.com/docs#forEachRight) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.foreachright) for more details. +See the [documentation](https://lodash.com/docs#forEachRight) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.foreachright) for more details. diff --git a/lodash.foreachright/index.js b/lodash.foreachright/index.js index 751481f92..4db2a46cc 100644 --- a/lodash.foreachright/index.js +++ b/lodash.foreachright/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -12,7 +12,7 @@ var baseEachRight = require('lodash._baseeachright'), /** * A specialized version of `_.forEachRight` for arrays without support for - * callback shorthands or `this` binding. + * callback shorthands and `this` binding. * * @private * @param {Array} array The array to iterate over. @@ -30,6 +30,22 @@ function arrayEachRight(array, iteratee) { return array; } +/** + * Creates a function for `_.forEach` or `_.forEachRight`. + * + * @private + * @param {Function} arrayFunc The function to iterate over an array. + * @param {Function} eachFunc The function to iterate over a collection. + * @returns {Function} Returns the new each function. + */ +function createForEach(arrayFunc, eachFunc) { + return function(collection, iteratee, thisArg) { + return (typeof iteratee == 'function' && typeof thisArg == 'undefined' && isArray(collection)) + ? arrayFunc(collection, iteratee) + : eachFunc(collection, bindCallback(iteratee, thisArg, 3)); + }; +} + /** * This method is like `_.forEach` except that it iterates over elements of * `collection` from right to left. @@ -46,13 +62,9 @@ function arrayEachRight(array, iteratee) { * * _([1, 2]).forEachRight(function(n) { * console.log(n); - * }).join(','); + * }).value(); * // => logs each value from right to left and returns the array */ -function forEachRight(collection, iteratee, thisArg) { - return (typeof iteratee == 'function' && typeof thisArg == 'undefined' && isArray(collection)) - ? arrayEachRight(collection, iteratee) - : baseEachRight(collection, bindCallback(iteratee, thisArg, 3)); -} +var forEachRight = createForEach(arrayEachRight, baseEachRight); module.exports = forEachRight; diff --git a/lodash.foreachright/package.json b/lodash.foreachright/package.json index 34cd18bb1..d95400698 100644 --- a/lodash.foreachright/package.json +++ b/lodash.foreachright/package.json @@ -1,6 +1,6 @@ { "name": "lodash.foreachright", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.forEachRight` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.forin/LICENSE.txt b/lodash.forin/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.forin/LICENSE.txt +++ b/lodash.forin/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.forin/README.md b/lodash.forin/README.md index 2d3e9a30f..5ae3e792e 100644 --- a/lodash.forin/README.md +++ b/lodash.forin/README.md @@ -1,4 +1,4 @@ -# lodash.forin v3.0.0 +# lodash.forin v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.forIn` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var forIn = require('lodash.forin'); ``` -See the [documentation](https://lodash.com/docs#forIn) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.forin) for more details. +See the [documentation](https://lodash.com/docs#forIn) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.forin) for more details. diff --git a/lodash.forin/index.js b/lodash.forin/index.js index 1c2133b82..1038aacd3 100644 --- a/lodash.forin/index.js +++ b/lodash.forin/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -10,10 +10,26 @@ var baseFor = require('lodash._basefor'), bindCallback = require('lodash._bindcallback'), keysIn = require('lodash.keysin'); +/** + * Creates a function for `_.forIn` or `_.forInRight`. + * + * @private + * @param {Function} objectFunc The function to iterate over an object. + * @returns {Function} Returns the new each function. + */ +function createForIn(objectFunc) { + return function(object, iteratee, thisArg) { + if (typeof iteratee != 'function' || typeof thisArg != 'undefined') { + iteratee = bindCallback(iteratee, thisArg, 3); + } + return objectFunc(object, iteratee, keysIn); + }; +} + /** * Iterates over own and inherited enumerable properties of an object invoking * `iteratee` for each property. The `iteratee` is bound to `thisArg` and invoked - * with three arguments; (value, key, object). Iterator functions may exit + * with three arguments: (value, key, object). Iterator functions may exit * iteration early by explicitly returning `false`. * * @static @@ -37,11 +53,6 @@ var baseFor = require('lodash._basefor'), * }); * // => logs 'a', 'b', and 'c' (iteration order is not guaranteed) */ -function forIn(object, iteratee, thisArg) { - if (typeof iteratee != 'function' || typeof thisArg != 'undefined') { - iteratee = bindCallback(iteratee, thisArg, 3); - } - return baseFor(object, iteratee, keysIn); -} +var forIn = createForIn(baseFor); module.exports = forIn; diff --git a/lodash.forin/package.json b/lodash.forin/package.json index 6fa946fba..695db810c 100644 --- a/lodash.forin/package.json +++ b/lodash.forin/package.json @@ -1,6 +1,6 @@ { "name": "lodash.forin", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.forIn` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.forinright/LICENSE.txt b/lodash.forinright/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.forinright/LICENSE.txt +++ b/lodash.forinright/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.forinright/README.md b/lodash.forinright/README.md index 3be656f1b..2b38104ad 100644 --- a/lodash.forinright/README.md +++ b/lodash.forinright/README.md @@ -1,4 +1,4 @@ -# lodash.forinright v3.0.0 +# lodash.forinright v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.forInRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var forInRight = require('lodash.forinright'); ``` -See the [documentation](https://lodash.com/docs#forInRight) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.forinright) for more details. +See the [documentation](https://lodash.com/docs#forInRight) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.forinright) for more details. diff --git a/lodash.forinright/index.js b/lodash.forinright/index.js index 6e1aa32fe..21e53f846 100644 --- a/lodash.forinright/index.js +++ b/lodash.forinright/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -10,6 +10,22 @@ var baseForRight = require('lodash._baseforright'), bindCallback = require('lodash._bindcallback'), keysIn = require('lodash.keysin'); +/** + * Creates a function for `_.forIn` or `_.forInRight`. + * + * @private + * @param {Function} objectFunc The function to iterate over an object. + * @returns {Function} Returns the new each function. + */ +function createForIn(objectFunc) { + return function(object, iteratee, thisArg) { + if (typeof iteratee != 'function' || typeof thisArg != 'undefined') { + iteratee = bindCallback(iteratee, thisArg, 3); + } + return objectFunc(object, iteratee, keysIn); + }; +} + /** * This method is like `_.forIn` except that it iterates over properties of * `object` in the opposite order. @@ -35,9 +51,6 @@ var baseForRight = require('lodash._baseforright'), * }); * // => logs 'c', 'b', and 'a' assuming `_.forIn ` logs 'a', 'b', and 'c' */ -function forInRight(object, iteratee, thisArg) { - iteratee = bindCallback(iteratee, thisArg, 3); - return baseForRight(object, iteratee, keysIn); -} +var forInRight = createForIn(baseForRight); module.exports = forInRight; diff --git a/lodash.forinright/package.json b/lodash.forinright/package.json index fce66d8ea..f284949eb 100644 --- a/lodash.forinright/package.json +++ b/lodash.forinright/package.json @@ -1,6 +1,6 @@ { "name": "lodash.forinright", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.forInRight` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.forown/LICENSE.txt b/lodash.forown/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.forown/LICENSE.txt +++ b/lodash.forown/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.forown/README.md b/lodash.forown/README.md index 430539197..a16d35b1d 100644 --- a/lodash.forown/README.md +++ b/lodash.forown/README.md @@ -1,4 +1,4 @@ -# lodash.forown v3.0.0 +# lodash.forown v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.forOwn` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var forOwn = require('lodash.forown'); ``` -See the [documentation](https://lodash.com/docs#forOwn) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.forown) for more details. +See the [documentation](https://lodash.com/docs#forOwn) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.forown) for more details. diff --git a/lodash.forown/index.js b/lodash.forown/index.js index 483ef23de..998cf7428 100644 --- a/lodash.forown/index.js +++ b/lodash.forown/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -23,10 +23,26 @@ function baseForOwn(object, iteratee) { return baseFor(object, iteratee, keys); } +/** + * Creates a function for `_.forOwn` or `_.forOwnRight`. + * + * @private + * @param {Function} objectFunc The function to iterate over an object. + * @returns {Function} Returns the new each function. + */ +function createForOwn(objectFunc) { + return function(object, iteratee, thisArg) { + if (typeof iteratee != 'function' || typeof thisArg != 'undefined') { + iteratee = bindCallback(iteratee, thisArg, 3); + } + return objectFunc(object, iteratee); + }; +} + /** * Iterates over own enumerable properties of an object invoking `iteratee` * for each property. The `iteratee` is bound to `thisArg` and invoked with - * three arguments; (value, key, object). Iterator functions may exit iteration + * three arguments: (value, key, object). Iterator functions may exit iteration * early by explicitly returning `false`. * * @static @@ -50,11 +66,6 @@ function baseForOwn(object, iteratee) { * }); * // => logs 'a' and 'b' (iteration order is not guaranteed) */ -function forOwn(object, iteratee, thisArg) { - if (typeof iteratee != 'function' || typeof thisArg != 'undefined') { - iteratee = bindCallback(iteratee, thisArg, 3); - } - return baseForOwn(object, iteratee); -} +var forOwn = createForOwn(baseForOwn); module.exports = forOwn; diff --git a/lodash.forown/package.json b/lodash.forown/package.json index be975a7f7..507c4d3c1 100644 --- a/lodash.forown/package.json +++ b/lodash.forown/package.json @@ -1,6 +1,6 @@ { "name": "lodash.forown", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.forOwn` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.forownright/LICENSE.txt b/lodash.forownright/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.forownright/LICENSE.txt +++ b/lodash.forownright/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.forownright/README.md b/lodash.forownright/README.md index f9fbdcfa0..321162116 100644 --- a/lodash.forownright/README.md +++ b/lodash.forownright/README.md @@ -1,4 +1,4 @@ -# lodash.forownright v3.0.0 +# lodash.forownright v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.forOwnRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var forOwnRight = require('lodash.forownright'); ``` -See the [documentation](https://lodash.com/docs#forOwnRight) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.forownright) for more details. +See the [documentation](https://lodash.com/docs#forOwnRight) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.forownright) for more details. diff --git a/lodash.forownright/index.js b/lodash.forownright/index.js index 2ea508f01..5d965ba92 100644 --- a/lodash.forownright/index.js +++ b/lodash.forownright/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -10,6 +10,35 @@ var baseForRight = require('lodash._baseforright'), bindCallback = require('lodash._bindcallback'), keys = require('lodash.keys'); +/** + * The base implementation of `_.forOwnRight` without support for callback + * shorthands and `this` binding. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */ +function baseForOwnRight(object, iteratee) { + return baseForRight(object, iteratee, keys); +} + +/** + * Creates a function for `_.forOwn` or `_.forOwnRight`. + * + * @private + * @param {Function} objectFunc The function to iterate over an object. + * @returns {Function} Returns the new each function. + */ +function createForOwn(objectFunc) { + return function(object, iteratee, thisArg) { + if (typeof iteratee != 'function' || typeof thisArg != 'undefined') { + iteratee = bindCallback(iteratee, thisArg, 3); + } + return objectFunc(object, iteratee); + }; +} + /** * This method is like `_.forOwn` except that it iterates over properties of * `object` in the opposite order. @@ -35,9 +64,6 @@ var baseForRight = require('lodash._baseforright'), * }); * // => logs 'b' and 'a' assuming `_.forOwn` logs 'a' and 'b' */ -function forOwnRight(object, iteratee, thisArg) { - iteratee = bindCallback(iteratee, thisArg, 3); - return baseForRight(object, iteratee, keys); -} +var forOwnRight = createForOwn(baseForOwnRight); module.exports = forOwnRight; diff --git a/lodash.forownright/package.json b/lodash.forownright/package.json index c2ac600fe..e895ee6e5 100644 --- a/lodash.forownright/package.json +++ b/lodash.forownright/package.json @@ -1,6 +1,6 @@ { "name": "lodash.forownright", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.forOwnRight` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.indexof/README.md b/lodash.indexof/README.md index 796e90adf..24c004838 100644 --- a/lodash.indexof/README.md +++ b/lodash.indexof/README.md @@ -1,4 +1,4 @@ -# lodash.indexof v3.0.0 +# lodash.indexof v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.indexOf` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var indexOf = require('lodash.indexof'); ``` -See the [documentation](https://lodash.com/docs#indexOf) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.indexof) for more details. +See the [documentation](https://lodash.com/docs#indexOf) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.indexof) for more details. diff --git a/lodash.indexof/index.js b/lodash.indexof/index.js index c1afecb0b..e34c5c5fd 100644 --- a/lodash.indexof/index.js +++ b/lodash.indexof/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -50,14 +50,14 @@ function indexOf(array, value, fromIndex) { return -1; } if (typeof fromIndex == 'number') { - fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : (fromIndex || 0); + fromIndex = fromIndex < 0 ? nativeMax(length + fromIndex, 0) : fromIndex; } else if (fromIndex) { var index = binaryIndex(array, value), other = array[index]; return (value === value ? value === other : other !== other) ? index : -1; } - return baseIndexOf(array, value, fromIndex); + return baseIndexOf(array, value, fromIndex || 0); } module.exports = indexOf; diff --git a/lodash.indexof/package.json b/lodash.indexof/package.json index c59da43ed..af269fc07 100644 --- a/lodash.indexof/package.json +++ b/lodash.indexof/package.json @@ -1,6 +1,6 @@ { "name": "lodash.indexof", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.indexOf` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.intersection/README.md b/lodash.intersection/README.md index b8465983c..05150b98c 100644 --- a/lodash.intersection/README.md +++ b/lodash.intersection/README.md @@ -1,4 +1,4 @@ -# lodash.intersection v3.0.0 +# lodash.intersection v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.intersection` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var intersection = require('lodash.intersection'); ``` -See the [documentation](https://lodash.com/docs#intersection) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.intersection) for more details. +See the [documentation](https://lodash.com/docs#intersection) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.intersection) for more details. diff --git a/lodash.intersection/index.js b/lodash.intersection/index.js index 5f9406501..40cc1ed7a 100644 --- a/lodash.intersection/index.js +++ b/lodash.intersection/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -42,7 +42,7 @@ function intersection() { var value = arguments[argsIndex]; if (isArray(value) || isArguments(value)) { args.push(value); - caches.push(isCommon && value.length >= 120 && createCache(argsIndex && value)); + caches.push((isCommon && value.length >= 120) ? createCache(argsIndex && value) : null); } } argsLength = args.length; diff --git a/lodash.intersection/package.json b/lodash.intersection/package.json index 746ac51c6..897bf0729 100644 --- a/lodash.intersection/package.json +++ b/lodash.intersection/package.json @@ -1,6 +1,6 @@ { "name": "lodash.intersection", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.intersection` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.invert/LICENSE b/lodash.invert/LICENSE new file mode 100644 index 000000000..9cd87e5dc --- /dev/null +++ b/lodash.invert/LICENSE @@ -0,0 +1,22 @@ +Copyright 2012-2015 The Dojo Foundation +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash.invert/LICENSE.txt b/lodash.invert/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash.invert/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash.invert/README.md b/lodash.invert/README.md index acf5e1895..ac44d786b 100644 --- a/lodash.invert/README.md +++ b/lodash.invert/README.md @@ -1,4 +1,4 @@ -# lodash.invert v3.0.0 +# lodash.invert v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.invert` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var invert = require('lodash.invert'); ``` -See the [documentation](https://lodash.com/docs#invert) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.invert) for more details. +See the [documentation](https://lodash.com/docs#invert) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.invert) for more details. diff --git a/lodash.invert/index.js b/lodash.invert/index.js index 638fe733b..59e32c5aa 100644 --- a/lodash.invert/index.js +++ b/lodash.invert/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -40,7 +40,7 @@ var hasOwnProperty = objectProto.hasOwnProperty; */ function invert(object, multiValue, guard) { if (guard && isIterateeCall(object, multiValue, guard)) { - multiValue = null; + multiValue = undefined; } var index = -1, props = keys(object), diff --git a/lodash.invert/package.json b/lodash.invert/package.json index 190fa0362..102cd1109 100644 --- a/lodash.invert/package.json +++ b/lodash.invert/package.json @@ -1,6 +1,6 @@ { "name": "lodash.invert", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.invert` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isarguments/LICENSE.txt b/lodash.isarguments/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.isarguments/LICENSE.txt +++ b/lodash.isarguments/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.isarguments/README.md b/lodash.isarguments/README.md index 5464c9a4d..f2f48d3eb 100644 --- a/lodash.isarguments/README.md +++ b/lodash.isarguments/README.md @@ -1,4 +1,4 @@ -# lodash.isarguments v3.0.0 +# lodash.isarguments v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isArguments` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isArguments = require('lodash.isarguments'); ``` -See the [documentation](https://lodash.com/docs#isArguments) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.isarguments) for more details. +See the [documentation](https://lodash.com/docs#isArguments) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isarguments) for more details. diff --git a/lodash.isarguments/index.js b/lodash.isarguments/index.js index 9bddc9063..aee5b99b5 100644 --- a/lodash.isarguments/index.js +++ b/lodash.isarguments/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -18,32 +18,28 @@ var argsTag = '[object Arguments]'; * @returns {boolean} Returns `true` if `value` is object-like, else `false`. */ function isObjectLike(value) { - return (value && typeof value == 'object') || false; + return !!value && typeof value == 'object'; } /** Used for native method references. */ var objectProto = Object.prototype; /** - * Used to resolve the `toStringTag` of values. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) - * for more details. + * Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) + * of values. */ var objToString = objectProto.toString; /** - * Used as the maximum length of an array-like value. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) - * for more details. + * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) + * of an array-like value. */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; /** * Checks if `value` is a valid array-like length. * - * **Note:** This function is based on ES `ToLength`. See the - * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength) - * for more details. + * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength). * * @private * @param {*} value The value to check. @@ -71,7 +67,7 @@ function isLength(value) { */ function isArguments(value) { var length = isObjectLike(value) ? value.length : undefined; - return (isLength(length) && objToString.call(value) == argsTag) || false; + return isLength(length) && objToString.call(value) == argsTag; } module.exports = isArguments; diff --git a/lodash.isarguments/package.json b/lodash.isarguments/package.json index a23ee7734..8748ad41a 100644 --- a/lodash.isarguments/package.json +++ b/lodash.isarguments/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isarguments", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.isArguments` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isarray/LICENSE.txt b/lodash.isarray/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.isarray/LICENSE.txt +++ b/lodash.isarray/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.isarray/README.md b/lodash.isarray/README.md index b281858a0..76d21dd04 100644 --- a/lodash.isarray/README.md +++ b/lodash.isarray/README.md @@ -1,4 +1,4 @@ -# lodash.isarray v3.0.0 +# lodash.isarray v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isArray` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isArray = require('lodash.isarray'); ``` -See the [documentation](https://lodash.com/docs#isArray) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.isarray) for more details. +See the [documentation](https://lodash.com/docs#isArray) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isarray) for more details. diff --git a/lodash.isarray/index.js b/lodash.isarray/index.js index f20041fff..0e4c4c822 100644 --- a/lodash.isarray/index.js +++ b/lodash.isarray/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -15,9 +15,9 @@ var arrayTag = '[object Array]', var reHostCtor = /^\[object .+?Constructor\]$/; /** - * Used to match `RegExp` special characters. - * See this [article on `RegExp` characters](http://www.regular-expressions.info/characters.html#special) - * for more details. + * Used to match `RegExp` [special characters](http://www.regular-expressions.info/characters.html#special). + * In addition to special characters the forward slash is escaped to allow for + * easier `eval` use and `Function` compilation. */ var reRegExpChars = /[.*+?^${}()|[\]\/\\]/g, reHasRegExpChars = RegExp(reRegExpChars.source); @@ -45,7 +45,7 @@ function baseToString(value) { * @returns {boolean} Returns `true` if `value` is object-like, else `false`. */ function isObjectLike(value) { - return (value && typeof value == 'object') || false; + return !!value && typeof value == 'object'; } /** Used for native method references. */ @@ -55,9 +55,8 @@ var objectProto = Object.prototype; var fnToString = Function.prototype.toString; /** - * Used to resolve the `toStringTag` of values. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) - * for more details. + * Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) + * of values. */ var objToString = objectProto.toString; @@ -71,18 +70,15 @@ var reNative = RegExp('^' + var nativeIsArray = isNative(nativeIsArray = Array.isArray) && nativeIsArray; /** - * Used as the maximum length of an array-like value. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) - * for more details. + * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) + * of an array-like value. */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; /** * Checks if `value` is a valid array-like length. * - * **Note:** This function is based on ES `ToLength`. See the - * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength) - * for more details. + * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength). * * @private * @param {*} value The value to check. @@ -109,7 +105,7 @@ function isLength(value) { * // => false */ var isArray = nativeIsArray || function(value) { - return (isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag) || false; + return isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag; }; /** @@ -135,12 +131,12 @@ function isNative(value) { if (objToString.call(value) == funcTag) { return reNative.test(fnToString.call(value)); } - return (isObjectLike(value) && reHostCtor.test(value)) || false; + return isObjectLike(value) && reHostCtor.test(value); } /** - * Escapes the `RegExp` special characters "\", "^", "$", ".", "|", "?", "*", - * "+", "(", ")", "[", "]", "{" and "}" in `string`. + * Escapes the `RegExp` special characters "\", "/", "^", "$", ".", "|", "?", + * "*", "+", "(", ")", "[", "]", "{" and "}" in `string`. * * @static * @memberOf _ @@ -150,7 +146,7 @@ function isNative(value) { * @example * * _.escapeRegExp('[lodash](https://lodash.com/)'); - * // => '\[lodash\]\(https://lodash\.com/\)' + * // => '\[lodash\]\(https:\/\/lodash\.com\/\)' */ function escapeRegExp(string) { string = baseToString(string); diff --git a/lodash.isarray/package.json b/lodash.isarray/package.json index 3e0074e59..cde780008 100644 --- a/lodash.isarray/package.json +++ b/lodash.isarray/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isarray", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.isArray` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isboolean/LICENSE.txt b/lodash.isboolean/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.isboolean/LICENSE.txt +++ b/lodash.isboolean/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.isboolean/README.md b/lodash.isboolean/README.md index e958a4dbd..907008de1 100644 --- a/lodash.isboolean/README.md +++ b/lodash.isboolean/README.md @@ -1,4 +1,4 @@ -# lodash.isboolean v3.0.0 +# lodash.isboolean v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isBoolean` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isBoolean = require('lodash.isboolean'); ``` -See the [documentation](https://lodash.com/docs#isBoolean) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.isboolean) for more details. +See the [documentation](https://lodash.com/docs#isBoolean) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isboolean) for more details. diff --git a/lodash.isboolean/index.js b/lodash.isboolean/index.js index 8f2f2fec2..98577743d 100644 --- a/lodash.isboolean/index.js +++ b/lodash.isboolean/index.js @@ -1,11 +1,4 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ +/** `Object#toString` result references. */ /** `Object#toString` result references. */ var boolTag = '[object Boolean]'; @@ -18,16 +11,15 @@ var boolTag = '[object Boolean]'; * @returns {boolean} Returns `true` if `value` is object-like, else `false`. */ function isObjectLike(value) { - return (value && typeof value == 'object') || false; + return !!value && typeof value == 'object'; } /** Used for native method references. */ var objectProto = Object.prototype; /** - * Used to resolve the `toStringTag` of values. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) - * for more details. + * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) + * of values. */ var objToString = objectProto.toString; @@ -48,7 +40,7 @@ var objToString = objectProto.toString; * // => false */ function isBoolean(value) { - return (value === true || value === false || isObjectLike(value) && objToString.call(value) == boolTag) || false; + return value === true || value === false || (isObjectLike(value) && objToString.call(value) == boolTag); } module.exports = isBoolean; diff --git a/lodash.isboolean/package.json b/lodash.isboolean/package.json index a86e99846..f331fb932 100644 --- a/lodash.isboolean/package.json +++ b/lodash.isboolean/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isboolean", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.isBoolean` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isdate/LICENSE.txt b/lodash.isdate/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.isdate/LICENSE.txt +++ b/lodash.isdate/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.isdate/README.md b/lodash.isdate/README.md index c5a4e0fee..7c12a8a9d 100644 --- a/lodash.isdate/README.md +++ b/lodash.isdate/README.md @@ -1,4 +1,4 @@ -# lodash.isdate v3.0.0 +# lodash.isdate v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isDate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isDate = require('lodash.isdate'); ``` -See the [documentation](https://lodash.com/docs#isDate) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.isdate) for more details. +See the [documentation](https://lodash.com/docs#isDate) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isdate) for more details. diff --git a/lodash.isdate/index.js b/lodash.isdate/index.js index 8afdb8a6a..9396fd0df 100644 --- a/lodash.isdate/index.js +++ b/lodash.isdate/index.js @@ -1,11 +1,4 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ +/** `Object#toString` result references. */ /** `Object#toString` result references. */ var dateTag = '[object Date]'; @@ -18,16 +11,15 @@ var dateTag = '[object Date]'; * @returns {boolean} Returns `true` if `value` is object-like, else `false`. */ function isObjectLike(value) { - return (value && typeof value == 'object') || false; + return !!value && typeof value == 'object'; } /** Used for native method references. */ var objectProto = Object.prototype; /** - * Used to resolve the `toStringTag` of values. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) - * for more details. + * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) + * of values. */ var objToString = objectProto.toString; @@ -48,7 +40,7 @@ var objToString = objectProto.toString; * // => false */ function isDate(value) { - return (isObjectLike(value) && objToString.call(value) == dateTag) || false; + return isObjectLike(value) && objToString.call(value) == dateTag; } module.exports = isDate; diff --git a/lodash.isdate/package.json b/lodash.isdate/package.json index 90b62300b..935939542 100644 --- a/lodash.isdate/package.json +++ b/lodash.isdate/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isdate", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.isDate` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.iselement/README.md b/lodash.iselement/README.md index 8982e6351..c39f5929f 100644 --- a/lodash.iselement/README.md +++ b/lodash.iselement/README.md @@ -1,4 +1,4 @@ -# lodash.iselement v3.0.0 +# lodash.iselement v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isElement` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isElement = require('lodash.iselement'); ``` -See the [documentation](https://lodash.com/docs#isElement) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.iselement) for more details. +See the [documentation](https://lodash.com/docs#isElement) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.iselement) for more details. diff --git a/lodash.iselement/index.js b/lodash.iselement/index.js index 3a2025b06..20351189c 100644 --- a/lodash.iselement/index.js +++ b/lodash.iselement/index.js @@ -1,13 +1,12 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ -var isPlainObject = require('lodash.isplainobject'), - support = require('lodash.support'); +var isPlainObject = require('lodash.isplainobject'); /** * Checks if `value` is object-like. @@ -23,6 +22,9 @@ function isObjectLike(value) { /** Used for native method references. */ var objectProto = Object.prototype; +/** Used to detect DOM support. */ +var document = (document = global.window) && document.document; + /** * Used to resolve the `toStringTag` of values. * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) @@ -30,6 +32,51 @@ var objectProto = Object.prototype; */ var objToString = objectProto.toString; +/** Native method references. */ +var propertyIsEnumerable = objectProto.propertyIsEnumerable; + +/** + * An object environment feature flags. + * + * @static + * @memberOf _ + * @type Object + */ +var support = {}; + +(function(x) { + + /** + * Detect if the DOM is supported. + * + * @memberOf _.support + * @type boolean + */ + try { + support.dom = document.createDocumentFragment().nodeType === 11; + } catch(e) { + support.dom = false; + } + + /** + * Detect if `arguments` object indexes are non-enumerable. + * + * In Firefox < 4, IE < 9, PhantomJS, and Safari < 5.1 `arguments` object + * indexes are non-enumerable. Chrome < 25 and Node.js < 0.11.0 treat + * `arguments` object indexes as non-enumerable and fail `hasOwnProperty` + * checks for indexes that exceed their function's formal parameters with + * associated values of `0`. + * + * @memberOf _.support + * @type boolean + */ + try { + support.nonEnumArgs = !propertyIsEnumerable.call(arguments, 1); + } catch(e) { + support.nonEnumArgs = true; + } +}(0, 0)); + /** * Checks if `value` is a DOM element. * diff --git a/lodash.iselement/package.json b/lodash.iselement/package.json index fbb4a57c5..726e9204c 100644 --- a/lodash.iselement/package.json +++ b/lodash.iselement/package.json @@ -1,6 +1,6 @@ { "name": "lodash.iselement", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.isElement` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -17,7 +17,6 @@ "repository": "lodash/lodash", "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, "dependencies": { - "lodash.isplainobject": "^3.0.0", - "lodash.support": "^3.0.0" + "lodash.isplainobject": "^3.0.0" } } diff --git a/lodash.isempty/LICENSE.txt b/lodash.isempty/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.isempty/LICENSE.txt +++ b/lodash.isempty/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.isempty/README.md b/lodash.isempty/README.md index 43c8a527b..f20a43c0e 100644 --- a/lodash.isempty/README.md +++ b/lodash.isempty/README.md @@ -1,4 +1,4 @@ -# lodash.isempty v3.0.0 +# lodash.isempty v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isEmpty` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isEmpty = require('lodash.isempty'); ``` -See the [documentation](https://lodash.com/docs#isEmpty) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.isempty) for more details. +See the [documentation](https://lodash.com/docs#isEmpty) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isempty) for more details. diff --git a/lodash.isempty/index.js b/lodash.isempty/index.js index f0651cf8d..6e9a2e342 100644 --- a/lodash.isempty/index.js +++ b/lodash.isempty/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -20,22 +20,19 @@ var isArguments = require('lodash.isarguments'), * @returns {boolean} Returns `true` if `value` is object-like, else `false`. */ function isObjectLike(value) { - return (value && typeof value == 'object') || false; + return !!value && typeof value == 'object'; } /** - * Used as the maximum length of an array-like value. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) - * for more details. + * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) + * of an array-like value. */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; /** * Checks if `value` is a valid array-like length. * - * **Note:** This function is based on ES `ToLength`. See the - * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength) - * for more details. + * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength). * * @private * @param {*} value The value to check. diff --git a/lodash.isempty/package.json b/lodash.isempty/package.json index a3402e6e2..d6decc27e 100644 --- a/lodash.isempty/package.json +++ b/lodash.isempty/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isempty", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.isEmpty` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isequal/LICENSE.txt b/lodash.isequal/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.isequal/LICENSE.txt +++ b/lodash.isequal/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.isequal/README.md b/lodash.isequal/README.md index e586afc69..c46e16d68 100644 --- a/lodash.isequal/README.md +++ b/lodash.isequal/README.md @@ -1,4 +1,4 @@ -# lodash.isequal v3.0.0 +# lodash.isequal v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isEqual` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isEqual = require('lodash.isequal'); ``` -See the [documentation](https://lodash.com/docs#isEqual) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.isequal) for more details. +See the [documentation](https://lodash.com/docs#isEqual) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isequal) for more details. diff --git a/lodash.isequal/index.js b/lodash.isequal/index.js index ccf1dfaeb..aed9416bf 100644 --- a/lodash.isequal/index.js +++ b/lodash.isequal/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -26,7 +26,7 @@ function isStrictComparable(value) { * equivalent. If `customizer` is provided it is invoked to compare values. * If `customizer` returns `undefined` comparisons are handled by the method * instead. The `customizer` is bound to `thisArg` and invoked with three - * arguments; (value, other [, index|key]). + * arguments: (value, other [, index|key]). * * **Note:** This method supports comparing arrays, booleans, `Date` objects, * numbers, `Object` objects, regexes, and strings. Objects are compared by @@ -74,11 +74,9 @@ function isEqual(value, other, customizer, thisArg) { } /** - * Checks if `value` is the language type of `Object`. + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * - * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. - * * @static * @memberOf _ * @category Lang @@ -99,7 +97,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (value && type == 'object') || false; + return type == 'function' || (!!value && type == 'object'); } module.exports = isEqual; diff --git a/lodash.isequal/package.json b/lodash.isequal/package.json index 2cdf7b948..1d94510a2 100644 --- a/lodash.isequal/package.json +++ b/lodash.isequal/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isequal", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.isEqual` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.iserror/LICENSE.txt b/lodash.iserror/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.iserror/LICENSE.txt +++ b/lodash.iserror/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.iserror/README.md b/lodash.iserror/README.md index 6ec5359c8..64bcbaf75 100644 --- a/lodash.iserror/README.md +++ b/lodash.iserror/README.md @@ -1,4 +1,4 @@ -# lodash.iserror v3.0.0 +# lodash.iserror v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isError` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isError = require('lodash.iserror'); ``` -See the [documentation](https://lodash.com/docs#isError) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.iserror) for more details. +See the [documentation](https://lodash.com/docs#isError) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.iserror) for more details. diff --git a/lodash.iserror/index.js b/lodash.iserror/index.js index 0d2c7fa06..41b4acc68 100644 --- a/lodash.iserror/index.js +++ b/lodash.iserror/index.js @@ -1,11 +1,4 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ +/** `Object#toString` result references. */ /** `Object#toString` result references. */ var errorTag = '[object Error]'; @@ -18,16 +11,15 @@ var errorTag = '[object Error]'; * @returns {boolean} Returns `true` if `value` is object-like, else `false`. */ function isObjectLike(value) { - return (value && typeof value == 'object') || false; + return !!value && typeof value == 'object'; } /** Used for native method references. */ var objectProto = Object.prototype; /** - * Used to resolve the `toStringTag` of values. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) - * for more details. + * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) + * of values. */ var objToString = objectProto.toString; @@ -49,7 +41,7 @@ var objToString = objectProto.toString; * // => false */ function isError(value) { - return (isObjectLike(value) && typeof value.message == 'string' && objToString.call(value) == errorTag) || false; + return isObjectLike(value) && typeof value.message == 'string' && objToString.call(value) == errorTag; } module.exports = isError; diff --git a/lodash.iserror/package.json b/lodash.iserror/package.json index 5a4b613f7..b0ef65516 100644 --- a/lodash.iserror/package.json +++ b/lodash.iserror/package.json @@ -1,6 +1,6 @@ { "name": "lodash.iserror", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.isError` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isfunction/README.md b/lodash.isfunction/README.md index 0aab47a11..2abdecf18 100644 --- a/lodash.isfunction/README.md +++ b/lodash.isfunction/README.md @@ -1,4 +1,4 @@ -# lodash.isfunction v3.0.0 +# lodash.isfunction v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isFunction` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isFunction = require('lodash.isfunction'); ``` -See the [documentation](https://lodash.com/docs#isFunction) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.isfunction) for more details. +See the [documentation](https://lodash.com/docs#isFunction) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isfunction) for more details. diff --git a/lodash.isfunction/index.js b/lodash.isfunction/index.js index 5a587fdb2..16a5af931 100644 --- a/lodash.isfunction/index.js +++ b/lodash.isfunction/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -21,6 +21,20 @@ var reHostCtor = /^\[object .+?Constructor\]$/; var reRegExpChars = /[.*+?^${}()|[\]\/\\]/g, reHasRegExpChars = RegExp(reRegExpChars.source); +/** + * The base implementation of `_.isFunction` without support for environments + * with incorrect `typeof` results. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. + */ +function baseIsFunction(value) { + // Avoid a Chakra JIT bug in compatibility modes of IE 11. + // See https://github.com/jashkenas/underscore/issues/1621 for more details. + return typeof value == 'function' || false; +} + /** * Converts `value` to a string if it is not one. An empty string is returned * for `null` or `undefined` values. @@ -85,20 +99,12 @@ var Uint8Array = isNative(Uint8Array = global.Uint8Array) && Uint8Array; * _.isFunction(/abc/); * // => false */ -function isFunction(value) { - // Avoid a Chakra JIT bug in compatibility modes of IE 11. - // See https://github.com/jashkenas/underscore/issues/1621 for more details. - return typeof value == 'function' || false; -} -// Fallback for environments that return incorrect `typeof` operator results. -if (isFunction(/x/) || (Uint8Array && !isFunction(Uint8Array))) { - isFunction = function(value) { - // The use of `Object#toString` avoids issues with the `typeof` operator - // in older versions of Chrome and Safari which return 'function' for regexes - // and Safari 8 equivalents which return 'object' for typed array constructors. - return objToString.call(value) == funcTag; - }; -} +var isFunction = !(baseIsFunction(/x/) || (Uint8Array && !baseIsFunction(Uint8Array))) ? baseIsFunction : function(value) { + // The use of `Object#toString` avoids issues with the `typeof` operator + // in older versions of Chrome and Safari which return 'function' for regexes + // and Safari 8 equivalents which return 'object' for typed array constructors. + return objToString.call(value) == funcTag; +}; /** * Checks if `value` is a native function. diff --git a/lodash.isfunction/package.json b/lodash.isfunction/package.json index 947973835..69f86e262 100644 --- a/lodash.isfunction/package.json +++ b/lodash.isfunction/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isfunction", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.isFunction` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isnan/LICENSE b/lodash.isnan/LICENSE new file mode 100644 index 000000000..b054ca5a3 --- /dev/null +++ b/lodash.isnan/LICENSE @@ -0,0 +1,22 @@ +Copyright 2012-2016 The Dojo Foundation +Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash.isnan/LICENSE.txt b/lodash.isnan/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash.isnan/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash.isnan/README.md b/lodash.isnan/README.md index df48e7b27..b6ea0dcd1 100644 --- a/lodash.isnan/README.md +++ b/lodash.isnan/README.md @@ -1,20 +1,18 @@ -# lodash.isnan v3.0.0 +# lodash.isnan v3.0.1 -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isNaN` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. +The [lodash](https://lodash.com/) method `_.isNaN` exported as a [Node.js](https://nodejs.org/) module. ## Installation Using npm: - ```bash $ {sudo -H} npm i -g npm $ npm i --save lodash.isnan ``` -In Node.js/io.js: - +In Node.js: ```js var isNaN = require('lodash.isnan'); ``` -See the [documentation](https://lodash.com/docs#isNaN) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.isnan) for more details. +See the [documentation](https://lodash.com/docs#isNaN) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isnan) for more details. diff --git a/lodash.isnan/index.js b/lodash.isnan/index.js index 1a1a373e0..4aeb63734 100644 --- a/lodash.isnan/index.js +++ b/lodash.isnan/index.js @@ -1,12 +1,50 @@ /** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * lodash 3.0.1 (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright 2012-2016 The Dojo Foundation + * Based on Underscore.js 1.8.3 + * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ -var isNumber = require('lodash.isnumber'); + +/** `Object#toString` result references. */ +var numberTag = '[object Number]'; + +/** Used for built-in method references. */ +var objectProto = global.Object.prototype; + +/** + * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString = objectProto.toString; + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; +} /** * Checks if `value` is `NaN`. @@ -35,8 +73,38 @@ var isNumber = require('lodash.isnumber'); */ function isNaN(value) { // An `NaN` primitive is the only value that is not equal to itself. - // Perform the `toStringTag` check first to avoid errors with some host objects in IE. + // Perform the `toStringTag` check first to avoid errors with some ActiveX objects in IE. return isNumber(value) && value != +value; } +/** + * Checks if `value` is classified as a `Number` primitive or object. + * + * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are classified + * as numbers, use the `_.isFinite` method. + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. + * @example + * + * _.isNumber(3); + * // => true + * + * _.isNumber(Number.MIN_VALUE); + * // => true + * + * _.isNumber(Infinity); + * // => true + * + * _.isNumber('3'); + * // => false + */ +function isNumber(value) { + return typeof value == 'number' || + (isObjectLike(value) && objectToString.call(value) == numberTag); +} + module.exports = isNaN; diff --git a/lodash.isnan/package.json b/lodash.isnan/package.json index aafa2627e..dfe8989f9 100644 --- a/lodash.isnan/package.json +++ b/lodash.isnan/package.json @@ -1,22 +1,17 @@ { "name": "lodash.isnan", - "version": "3.0.0", - "description": "The modern build of lodash’s `_.isNaN` as a module.", + "version": "3.0.1", + "description": "The lodash method `_.isNaN` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", "license": "MIT", - "keywords": "lodash, lodash-modularized, stdlib, util", + "keywords": "lodash, lodash-modularized, stdlib, util, isnan", "author": "John-David Dalton (http://allyoucanleet.com/)", "contributors": [ "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", + "Blaine Bublitz (https://github.com/phated)", "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, - "dependencies": { - "lodash.isnumber": "^3.0.0" - } + "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } } diff --git a/lodash.isnative/LICENSE.txt b/lodash.isnative/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.isnative/LICENSE.txt +++ b/lodash.isnative/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.isnative/README.md b/lodash.isnative/README.md index 3a9ff76a3..e9cea5950 100644 --- a/lodash.isnative/README.md +++ b/lodash.isnative/README.md @@ -1,4 +1,4 @@ -# lodash.isnative v3.0.0 +# lodash.isnative v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isNative` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isNative = require('lodash.isnative'); ``` -See the [documentation](https://lodash.com/docs#isNative) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.isnative) for more details. +See the [documentation](https://lodash.com/docs#isNative) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isnative) for more details. diff --git a/lodash.isnative/index.js b/lodash.isnative/index.js index 0b876ea37..91f847636 100644 --- a/lodash.isnative/index.js +++ b/lodash.isnative/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -14,9 +14,9 @@ var funcTag = '[object Function]'; var reHostCtor = /^\[object .+?Constructor\]$/; /** - * Used to match `RegExp` special characters. - * See this [article on `RegExp` characters](http://www.regular-expressions.info/characters.html#special) - * for more details. + * Used to match `RegExp` [special characters](http://www.regular-expressions.info/characters.html#special). + * In addition to special characters the forward slash is escaped to allow for + * easier `eval` use and `Function` compilation. */ var reRegExpChars = /[.*+?^${}()|[\]\/\\]/g, reHasRegExpChars = RegExp(reRegExpChars.source); @@ -44,7 +44,7 @@ function baseToString(value) { * @returns {boolean} Returns `true` if `value` is object-like, else `false`. */ function isObjectLike(value) { - return (value && typeof value == 'object') || false; + return !!value && typeof value == 'object'; } /** Used for native method references. */ @@ -54,9 +54,8 @@ var objectProto = Object.prototype; var fnToString = Function.prototype.toString; /** - * Used to resolve the `toStringTag` of values. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) - * for more details. + * Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) + * of values. */ var objToString = objectProto.toString; @@ -89,12 +88,12 @@ function isNative(value) { if (objToString.call(value) == funcTag) { return reNative.test(fnToString.call(value)); } - return (isObjectLike(value) && reHostCtor.test(value)) || false; + return isObjectLike(value) && reHostCtor.test(value); } /** - * Escapes the `RegExp` special characters "\", "^", "$", ".", "|", "?", "*", - * "+", "(", ")", "[", "]", "{" and "}" in `string`. + * Escapes the `RegExp` special characters "\", "/", "^", "$", ".", "|", "?", + * "*", "+", "(", ")", "[", "]", "{" and "}" in `string`. * * @static * @memberOf _ @@ -104,7 +103,7 @@ function isNative(value) { * @example * * _.escapeRegExp('[lodash](https://lodash.com/)'); - * // => '\[lodash\]\(https://lodash\.com/\)' + * // => '\[lodash\]\(https:\/\/lodash\.com\/\)' */ function escapeRegExp(string) { string = baseToString(string); diff --git a/lodash.isnative/package.json b/lodash.isnative/package.json index 5c797bc32..76d2a7212 100644 --- a/lodash.isnative/package.json +++ b/lodash.isnative/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isnative", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.isNative` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isnumber/LICENSE.txt b/lodash.isnumber/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.isnumber/LICENSE.txt +++ b/lodash.isnumber/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.isnumber/README.md b/lodash.isnumber/README.md index bf4630e0c..6d223f140 100644 --- a/lodash.isnumber/README.md +++ b/lodash.isnumber/README.md @@ -1,4 +1,4 @@ -# lodash.isnumber v3.0.0 +# lodash.isnumber v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isNumber` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isNumber = require('lodash.isnumber'); ``` -See the [documentation](https://lodash.com/docs#isNumber) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.isnumber) for more details. +See the [documentation](https://lodash.com/docs#isNumber) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isnumber) for more details. diff --git a/lodash.isnumber/index.js b/lodash.isnumber/index.js index 07f0cabc2..43e04dccd 100644 --- a/lodash.isnumber/index.js +++ b/lodash.isnumber/index.js @@ -1,11 +1,4 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ +/** `Object#toString` result references. */ /** `Object#toString` result references. */ var numberTag = '[object Number]'; @@ -18,16 +11,15 @@ var numberTag = '[object Number]'; * @returns {boolean} Returns `true` if `value` is object-like, else `false`. */ function isObjectLike(value) { - return (value && typeof value == 'object') || false; + return !!value && typeof value == 'object'; } /** Used for native method references. */ var objectProto = Object.prototype; /** - * Used to resolve the `toStringTag` of values. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) - * for more details. + * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) + * of values. */ var objToString = objectProto.toString; @@ -54,7 +46,7 @@ var objToString = objectProto.toString; * // => false */ function isNumber(value) { - return typeof value == 'number' || (isObjectLike(value) && objToString.call(value) == numberTag) || false; + return typeof value == 'number' || (isObjectLike(value) && objToString.call(value) == numberTag); } module.exports = isNumber; diff --git a/lodash.isnumber/package.json b/lodash.isnumber/package.json index 159cbac9c..c1f7266a0 100644 --- a/lodash.isnumber/package.json +++ b/lodash.isnumber/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isnumber", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.isNumber` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isobject/LICENSE.txt b/lodash.isobject/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.isobject/LICENSE.txt +++ b/lodash.isobject/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.isobject/README.md b/lodash.isobject/README.md index 68b41645c..a136e61be 100644 --- a/lodash.isobject/README.md +++ b/lodash.isobject/README.md @@ -1,4 +1,4 @@ -# lodash.isobject v3.0.0 +# lodash.isobject v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isObject` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isObject = require('lodash.isobject'); ``` -See the [documentation](https://lodash.com/docs#isObject) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.isobject) for more details. +See the [documentation](https://lodash.com/docs#isObject) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isobject) for more details. diff --git a/lodash.isobject/index.js b/lodash.isobject/index.js index f987fce88..7dd6aaa44 100644 --- a/lodash.isobject/index.js +++ b/lodash.isobject/index.js @@ -1,18 +1,16 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ /** - * Checks if `value` is the language type of `Object`. + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * - * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. - * * @static * @memberOf _ * @category Lang @@ -33,7 +31,7 @@ function isObject(value) { // Avoid a V8 JIT bug in Chrome 19-20. // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; - return type == 'function' || (value && type == 'object') || false; + return type == 'function' || (!!value && type == 'object'); } module.exports = isObject; diff --git a/lodash.isobject/package.json b/lodash.isobject/package.json index 5fb883d92..8946a85de 100644 --- a/lodash.isobject/package.json +++ b/lodash.isobject/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isobject", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.isObject` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isplainobject/LICENSE.txt b/lodash.isplainobject/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.isplainobject/LICENSE.txt +++ b/lodash.isplainobject/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.isplainobject/README.md b/lodash.isplainobject/README.md index d5d1c11e5..7744f3ca5 100644 --- a/lodash.isplainobject/README.md +++ b/lodash.isplainobject/README.md @@ -1,4 +1,4 @@ -# lodash.isplainobject v3.0.0 +# lodash.isplainobject v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isPlainObject` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isPlainObject = require('lodash.isplainobject'); ``` -See the [documentation](https://lodash.com/docs#isPlainObject) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.isplainobject) for more details. +See the [documentation](https://lodash.com/docs#isPlainObject) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isplainobject) for more details. diff --git a/lodash.isplainobject/index.js b/lodash.isplainobject/index.js index 229d7282e..4583cd903 100644 --- a/lodash.isplainobject/index.js +++ b/lodash.isplainobject/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -21,7 +21,7 @@ var objectTag = '[object Object]'; * @returns {boolean} Returns `true` if `value` is object-like, else `false`. */ function isObjectLike(value) { - return (value && typeof value == 'object') || false; + return !!value && typeof value == 'object'; } /** Used for native method references. */ @@ -31,9 +31,8 @@ var objectProto = Object.prototype; var hasOwnProperty = objectProto.hasOwnProperty; /** - * Used to resolve the `toStringTag` of values. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) - * for more details. + * Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) + * of values. */ var objToString = objectProto.toString; diff --git a/lodash.isplainobject/package.json b/lodash.isplainobject/package.json index e4eb0d1f5..030809f67 100644 --- a/lodash.isplainobject/package.json +++ b/lodash.isplainobject/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isplainobject", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.isPlainObject` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isregexp/LICENSE.txt b/lodash.isregexp/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.isregexp/LICENSE.txt +++ b/lodash.isregexp/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.isregexp/README.md b/lodash.isregexp/README.md index ca538811e..edf4b9456 100644 --- a/lodash.isregexp/README.md +++ b/lodash.isregexp/README.md @@ -1,4 +1,4 @@ -# lodash.isregexp v3.0.0 +# lodash.isregexp v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isRegExp` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isRegExp = require('lodash.isregexp'); ``` -See the [documentation](https://lodash.com/docs#isRegExp) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.isregexp) for more details. +See the [documentation](https://lodash.com/docs#isRegExp) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isregexp) for more details. diff --git a/lodash.isregexp/index.js b/lodash.isregexp/index.js index 1d43ec335..ce1723c85 100644 --- a/lodash.isregexp/index.js +++ b/lodash.isregexp/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -18,16 +18,15 @@ var regexpTag = '[object RegExp]'; * @returns {boolean} Returns `true` if `value` is object-like, else `false`. */ function isObjectLike(value) { - return (value && typeof value == 'object') || false; + return !!value && typeof value == 'object'; } /** Used for native method references. */ var objectProto = Object.prototype; /** - * Used to resolve the `toStringTag` of values. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) - * for more details. + * Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) + * of values. */ var objToString = objectProto.toString; diff --git a/lodash.isregexp/package.json b/lodash.isregexp/package.json index 5c5c8852c..10f2c50a0 100644 --- a/lodash.isregexp/package.json +++ b/lodash.isregexp/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isregexp", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.isRegExp` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isstring/LICENSE.txt b/lodash.isstring/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.isstring/LICENSE.txt +++ b/lodash.isstring/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.isstring/README.md b/lodash.isstring/README.md index e06535c9d..a904e9b06 100644 --- a/lodash.isstring/README.md +++ b/lodash.isstring/README.md @@ -1,4 +1,4 @@ -# lodash.isstring v3.0.0 +# lodash.isstring v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isString` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isString = require('lodash.isstring'); ``` -See the [documentation](https://lodash.com/docs#isString) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.isstring) for more details. +See the [documentation](https://lodash.com/docs#isString) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isstring) for more details. diff --git a/lodash.isstring/index.js b/lodash.isstring/index.js index 74557f81b..7a57fa1dc 100644 --- a/lodash.isstring/index.js +++ b/lodash.isstring/index.js @@ -1,11 +1,4 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ +/** `Object#toString` result references. */ /** `Object#toString` result references. */ var stringTag = '[object String]'; @@ -18,16 +11,15 @@ var stringTag = '[object String]'; * @returns {boolean} Returns `true` if `value` is object-like, else `false`. */ function isObjectLike(value) { - return (value && typeof value == 'object') || false; + return !!value && typeof value == 'object'; } /** Used for native method references. */ var objectProto = Object.prototype; /** - * Used to resolve the `toStringTag` of values. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) - * for more details. + * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) + * of values. */ var objToString = objectProto.toString; @@ -48,7 +40,7 @@ var objToString = objectProto.toString; * // => false */ function isString(value) { - return typeof value == 'string' || (isObjectLike(value) && objToString.call(value) == stringTag) || false; + return typeof value == 'string' || (isObjectLike(value) && objToString.call(value) == stringTag); } module.exports = isString; diff --git a/lodash.isstring/package.json b/lodash.isstring/package.json index 5ce3ad3c3..ea87300a6 100644 --- a/lodash.isstring/package.json +++ b/lodash.isstring/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isstring", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.isString` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.istypedarray/LICENSE.txt b/lodash.istypedarray/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.istypedarray/LICENSE.txt +++ b/lodash.istypedarray/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.istypedarray/README.md b/lodash.istypedarray/README.md index 41c549280..c91334d43 100644 --- a/lodash.istypedarray/README.md +++ b/lodash.istypedarray/README.md @@ -1,4 +1,4 @@ -# lodash.istypedarray v3.0.0 +# lodash.istypedarray v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isTypedArray` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isTypedArray = require('lodash.istypedarray'); ``` -See the [documentation](https://lodash.com/docs#isTypedArray) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.istypedarray) for more details. +See the [documentation](https://lodash.com/docs#isTypedArray) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.istypedarray) for more details. diff --git a/lodash.istypedarray/index.js b/lodash.istypedarray/index.js index 1a35d56cb..664dce5ed 100644 --- a/lodash.istypedarray/index.js +++ b/lodash.istypedarray/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -56,32 +56,28 @@ typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; * @returns {boolean} Returns `true` if `value` is object-like, else `false`. */ function isObjectLike(value) { - return (value && typeof value == 'object') || false; + return !!value && typeof value == 'object'; } /** Used for native method references. */ var objectProto = Object.prototype; /** - * Used to resolve the `toStringTag` of values. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) - * for more details. + * Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring) + * of values. */ var objToString = objectProto.toString; /** - * Used as the maximum length of an array-like value. - * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) - * for more details. + * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) + * of an array-like value. */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; /** * Checks if `value` is a valid array-like length. * - * **Note:** This function is based on ES `ToLength`. See the - * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength) - * for more details. + * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength). * * @private * @param {*} value The value to check. @@ -108,7 +104,7 @@ function isLength(value) { * // => false */ function isTypedArray(value) { - return (isObjectLike(value) && isLength(value.length) && typedArrayTags[objToString.call(value)]) || false; + return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objToString.call(value)]; } module.exports = isTypedArray; diff --git a/lodash.istypedarray/package.json b/lodash.istypedarray/package.json index e799e6ef8..50cf1ca2c 100644 --- a/lodash.istypedarray/package.json +++ b/lodash.istypedarray/package.json @@ -1,6 +1,6 @@ { "name": "lodash.istypedarray", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.isTypedArray` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.isundefined/LICENSE.txt b/lodash.isundefined/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.isundefined/LICENSE.txt +++ b/lodash.isundefined/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.isundefined/README.md b/lodash.isundefined/README.md index 2fe2203bb..bc294a45b 100644 --- a/lodash.isundefined/README.md +++ b/lodash.isundefined/README.md @@ -1,4 +1,4 @@ -# lodash.isundefined v3.0.0 +# lodash.isundefined v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isUndefined` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var isUndefined = require('lodash.isundefined'); ``` -See the [documentation](https://lodash.com/docs#isUndefined) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.isundefined) for more details. +See the [documentation](https://lodash.com/docs#isUndefined) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isundefined) for more details. diff --git a/lodash.isundefined/index.js b/lodash.isundefined/index.js index 73e48cd35..6f2f69e43 100644 --- a/lodash.isundefined/index.js +++ b/lodash.isundefined/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` + * lodash 3.0.1 (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -11,6 +11,7 @@ * Checks if `value` is `undefined`. * * @static + * @since 0.1.0 * @memberOf _ * @category Lang * @param {*} value The value to check. @@ -24,7 +25,7 @@ * // => false */ function isUndefined(value) { - return typeof value == 'undefined'; + return value === undefined; } module.exports = isUndefined; diff --git a/lodash.isundefined/package.json b/lodash.isundefined/package.json index f5466476b..6c3d0b8fb 100644 --- a/lodash.isundefined/package.json +++ b/lodash.isundefined/package.json @@ -1,6 +1,6 @@ { "name": "lodash.isundefined", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.isUndefined` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.kebabcase/README.md b/lodash.kebabcase/README.md index 7795bfd3c..6c0b019ee 100644 --- a/lodash.kebabcase/README.md +++ b/lodash.kebabcase/README.md @@ -1,4 +1,4 @@ -# lodash.kebabcase v3.0.0 +# lodash.kebabcase v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.kebabCase` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var kebabCase = require('lodash.kebabcase'); ``` -See the [documentation](https://lodash.com/docs#kebabCase) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.kebabcase) for more details. +See the [documentation](https://lodash.com/docs#kebabCase) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.kebabcase) for more details. diff --git a/lodash.kebabcase/index.js b/lodash.kebabcase/index.js index f91e40216..b34b4820d 100644 --- a/lodash.kebabcase/index.js +++ b/lodash.kebabcase/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -9,9 +9,7 @@ var createCompounder = require('lodash._createcompounder'); /** - * Converts `string` to kebab case (a.k.a. spinal case). - * See [Wikipedia](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles) for - * more details. + * Converts `string` to [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles). * * @static * @memberOf _ diff --git a/lodash.kebabcase/package.json b/lodash.kebabcase/package.json index 34a4b2692..dba9c4f38 100644 --- a/lodash.kebabcase/package.json +++ b/lodash.kebabcase/package.json @@ -1,6 +1,6 @@ { "name": "lodash.kebabcase", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.kebabCase` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.keys/README.md b/lodash.keys/README.md index f5aa84623..32a642d11 100644 --- a/lodash.keys/README.md +++ b/lodash.keys/README.md @@ -1,4 +1,4 @@ -# lodash.keys v3.0.0 +# lodash.keys v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.keys` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var keys = require('lodash.keys'); ``` -See the [documentation](https://lodash.com/docs#keys) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.keys) for more details. +See the [documentation](https://lodash.com/docs#keys) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.keys) for more details. diff --git a/lodash.keys/index.js b/lodash.keys/index.js index 9a149b46a..58397edee 100644 --- a/lodash.keys/index.js +++ b/lodash.keys/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -8,15 +8,20 @@ */ var isArguments = require('lodash.isarguments'), isArray = require('lodash.isarray'), - isNative = require('lodash.isnative'), - support = require('lodash.support'); + isNative = require('lodash.isnative'); /** Used for native method references. */ var objectProto = Object.prototype; +/** Used to detect DOM support. */ +var document = (document = global.window) && document.document; + /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; +/** Native method references. */ +var propertyIsEnumerable = objectProto.propertyIsEnumerable; + /* Native method references for those with the same name as other `lodash` methods. */ var nativeKeys = isNative(nativeKeys = Object.keys) && nativeKeys; @@ -27,6 +32,48 @@ var nativeKeys = isNative(nativeKeys = Object.keys) && nativeKeys; */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; +/** + * An object environment feature flags. + * + * @static + * @memberOf _ + * @type Object + */ +var support = {}; + +(function(x) { + + /** + * Detect if the DOM is supported. + * + * @memberOf _.support + * @type boolean + */ + try { + support.dom = document.createDocumentFragment().nodeType === 11; + } catch(e) { + support.dom = false; + } + + /** + * Detect if `arguments` object indexes are non-enumerable. + * + * In Firefox < 4, IE < 9, PhantomJS, and Safari < 5.1 `arguments` object + * indexes are non-enumerable. Chrome < 25 and Node.js < 0.11.0 treat + * `arguments` object indexes as non-enumerable and fail `hasOwnProperty` + * checks for indexes that exceed their function's formal parameters with + * associated values of `0`. + * + * @memberOf _.support + * @type boolean + */ + try { + support.nonEnumArgs = !propertyIsEnumerable.call(arguments, 1); + } catch(e) { + support.nonEnumArgs = true; + } +}(0, 0)); + /** * Checks if `value` is a valid array-like index. * diff --git a/lodash.keys/package.json b/lodash.keys/package.json index e29d15d7d..2b3c8b6e6 100644 --- a/lodash.keys/package.json +++ b/lodash.keys/package.json @@ -1,6 +1,6 @@ { "name": "lodash.keys", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.keys` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -19,7 +19,6 @@ "dependencies": { "lodash.isarguments": "^3.0.0", "lodash.isarray": "^3.0.0", - "lodash.isnative": "^3.0.0", - "lodash.support": "^3.0.0" + "lodash.isnative": "^3.0.0" } } diff --git a/lodash.keysin/README.md b/lodash.keysin/README.md index f816afce3..aa7daa140 100644 --- a/lodash.keysin/README.md +++ b/lodash.keysin/README.md @@ -1,4 +1,4 @@ -# lodash.keysin v3.0.0 +# lodash.keysin v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.keysIn` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var keysIn = require('lodash.keysin'); ``` -See the [documentation](https://lodash.com/docs#keysIn) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.keysin) for more details. +See the [documentation](https://lodash.com/docs#keysIn) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.keysin) for more details. diff --git a/lodash.keysin/index.js b/lodash.keysin/index.js index cb3cdff70..23b5e2fc8 100644 --- a/lodash.keysin/index.js +++ b/lodash.keysin/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -7,15 +7,20 @@ * Available under MIT license */ var isArguments = require('lodash.isarguments'), - isArray = require('lodash.isarray'), - support = require('lodash.support'); + isArray = require('lodash.isarray'); /** Used for native method references. */ var objectProto = Object.prototype; +/** Used to detect DOM support. */ +var document = (document = global.window) && document.document; + /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; +/** Native method references. */ +var propertyIsEnumerable = objectProto.propertyIsEnumerable; + /** * Used as the maximum length of an array-like value. * See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) @@ -23,6 +28,48 @@ var hasOwnProperty = objectProto.hasOwnProperty; */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; +/** + * An object environment feature flags. + * + * @static + * @memberOf _ + * @type Object + */ +var support = {}; + +(function(x) { + + /** + * Detect if the DOM is supported. + * + * @memberOf _.support + * @type boolean + */ + try { + support.dom = document.createDocumentFragment().nodeType === 11; + } catch(e) { + support.dom = false; + } + + /** + * Detect if `arguments` object indexes are non-enumerable. + * + * In Firefox < 4, IE < 9, PhantomJS, and Safari < 5.1 `arguments` object + * indexes are non-enumerable. Chrome < 25 and Node.js < 0.11.0 treat + * `arguments` object indexes as non-enumerable and fail `hasOwnProperty` + * checks for indexes that exceed their function's formal parameters with + * associated values of `0`. + * + * @memberOf _.support + * @type boolean + */ + try { + support.nonEnumArgs = !propertyIsEnumerable.call(arguments, 1); + } catch(e) { + support.nonEnumArgs = true; + } +}(0, 0)); + /** * Checks if `value` is a valid array-like index. * diff --git a/lodash.keysin/package.json b/lodash.keysin/package.json index afe0b5bbd..5aae7060e 100644 --- a/lodash.keysin/package.json +++ b/lodash.keysin/package.json @@ -1,6 +1,6 @@ { "name": "lodash.keysin", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.keysIn` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -18,7 +18,6 @@ "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, "dependencies": { "lodash.isarguments": "^3.0.0", - "lodash.isarray": "^3.0.0", - "lodash.support": "^3.0.0" + "lodash.isarray": "^3.0.0" } } diff --git a/lodash.lastindexof/README.md b/lodash.lastindexof/README.md index e4a68b2d1..05802611d 100644 --- a/lodash.lastindexof/README.md +++ b/lodash.lastindexof/README.md @@ -1,4 +1,4 @@ -# lodash.lastindexof v3.0.0 +# lodash.lastindexof v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.lastIndexOf` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var lastIndexOf = require('lodash.lastindexof'); ``` -See the [documentation](https://lodash.com/docs#lastIndexOf) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.lastindexof) for more details. +See the [documentation](https://lodash.com/docs#lastIndexOf) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.lastindexof) for more details. diff --git a/lodash.lastindexof/index.js b/lodash.lastindexof/index.js index f3066362e..cf9607bfb 100644 --- a/lodash.lastindexof/index.js +++ b/lodash.lastindexof/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -14,13 +14,13 @@ var binaryIndex = require('lodash._binaryindex'); * * @private * @param {Array} array The array to search. - * @param {number} [fromIndex] The index to search from. + * @param {number} fromIndex The index to search from. * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {number} Returns the index of the matched `NaN`, else `-1`. */ function indexOfNaN(array, fromIndex, fromRight) { var length = array.length, - index = fromRight ? (fromIndex || length) : ((fromIndex || 0) - 1); + index = fromIndex + (fromRight ? 0 : -1); while ((fromRight ? index-- : ++index < length)) { var other = array[index]; diff --git a/lodash.lastindexof/package.json b/lodash.lastindexof/package.json index 133977cc8..afbb04cb3 100644 --- a/lodash.lastindexof/package.json +++ b/lodash.lastindexof/package.json @@ -1,6 +1,6 @@ { "name": "lodash.lastindexof", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.lastIndexOf` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.mapvalues/LICENSE.txt b/lodash.mapvalues/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.mapvalues/LICENSE.txt +++ b/lodash.mapvalues/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.mapvalues/README.md b/lodash.mapvalues/README.md index 821947b34..b8135c4bb 100644 --- a/lodash.mapvalues/README.md +++ b/lodash.mapvalues/README.md @@ -1,4 +1,4 @@ -# lodash.mapvalues v3.0.0 +# lodash.mapvalues v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.mapValues` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var mapValues = require('lodash.mapvalues'); ``` -See the [documentation](https://lodash.com/docs#mapValues) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.mapvalues) for more details. +See the [documentation](https://lodash.com/docs#mapValues) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.mapvalues) for more details. diff --git a/lodash.mapvalues/index.js b/lodash.mapvalues/index.js index 30b8d68bb..b84406c40 100644 --- a/lodash.mapvalues/index.js +++ b/lodash.mapvalues/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -23,6 +23,28 @@ function baseForOwn(object, iteratee) { return baseFor(object, iteratee, keys); } +/** + * Creates a function for `_.mapKeys` or `_.mapValues`. + * + * @private + * @param {boolean} [isMapKeys] Specify mapping keys instead of values. + * @returns {Function} Returns the new map function. + */ +function createObjectMapper(isMapKeys) { + return function(object, iteratee, thisArg) { + var result = {}; + iteratee = baseCallback(iteratee, thisArg, 3); + + baseForOwn(object, function(value, key, object) { + var mapped = iteratee(value, key, object); + key = isMapKeys ? mapped : key; + value = isMapKeys ? value : mapped; + result[key] = value; + }); + return result; + }; +} + /** * Creates an object with the same keys as `object` and values generated by * running each own enumerable property of `object` through `iteratee`. The @@ -64,14 +86,6 @@ function baseForOwn(object, iteratee) { * _.mapValues(users, 'age'); * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) */ -function mapValues(object, iteratee, thisArg) { - var result = {}; - iteratee = baseCallback(iteratee, thisArg, 3); - - baseForOwn(object, function(value, key, object) { - result[key] = iteratee(value, key, object); - }); - return result; -} +var mapValues = createObjectMapper(); module.exports = mapValues; diff --git a/lodash.mapvalues/package.json b/lodash.mapvalues/package.json index 6cc59ed65..17d508842 100644 --- a/lodash.mapvalues/package.json +++ b/lodash.mapvalues/package.json @@ -1,6 +1,6 @@ { "name": "lodash.mapvalues", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.mapValues` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.memoize/README.md b/lodash.memoize/README.md index ab4da22c6..5783b1210 100644 --- a/lodash.memoize/README.md +++ b/lodash.memoize/README.md @@ -1,4 +1,4 @@ -# lodash.memoize v3.0.0 +# lodash.memoize v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.memoize` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var memoize = require('lodash.memoize'); ``` -See the [documentation](https://lodash.com/docs#memoize) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.memoize) for more details. +See the [documentation](https://lodash.com/docs#memoize) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.memoize) for more details. diff --git a/lodash.memoize/index.js b/lodash.memoize/index.js index 6e3670ef6..3a9270872 100644 --- a/lodash.memoize/index.js +++ b/lodash.memoize/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 diff --git a/lodash.memoize/package.json b/lodash.memoize/package.json index a1046ad23..ae14238ad 100644 --- a/lodash.memoize/package.json +++ b/lodash.memoize/package.json @@ -1,6 +1,6 @@ { "name": "lodash.memoize", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.memoize` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.merge/README.md b/lodash.merge/README.md index 7db24c433..d3fec31d1 100644 --- a/lodash.merge/README.md +++ b/lodash.merge/README.md @@ -1,4 +1,4 @@ -# lodash.merge v3.0.0 +# lodash.merge v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.merge` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var merge = require('lodash.merge'); ``` -See the [documentation](https://lodash.com/docs#merge) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.merge) for more details. +See the [documentation](https://lodash.com/docs#merge) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.merge) for more details. diff --git a/lodash.merge/index.js b/lodash.merge/index.js index b279f2a5f..32ce185c7 100644 --- a/lodash.merge/index.js +++ b/lodash.merge/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -125,6 +125,9 @@ function baseMergeDeep(object, source, key, mergeFunc, customizer, stackA, stack ? toPlainObject(value) : (isPlainObject(value) ? value : {}); } + else { + isCommon = false; + } } // Add the source value to the stack of traversed objects and associate // it with its merged value. diff --git a/lodash.merge/package.json b/lodash.merge/package.json index a7a4da685..79cee3a7d 100644 --- a/lodash.merge/package.json +++ b/lodash.merge/package.json @@ -1,6 +1,6 @@ { "name": "lodash.merge", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.merge` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.mixin/LICENSE.txt b/lodash.mixin/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.mixin/LICENSE.txt +++ b/lodash.mixin/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.mixin/README.md b/lodash.mixin/README.md index 3fbc36638..c85b76ebe 100644 --- a/lodash.mixin/README.md +++ b/lodash.mixin/README.md @@ -1,4 +1,4 @@ -# lodash.mixin v3.0.0 +# lodash.mixin v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.mixin` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var mixin = require('lodash.mixin'); ``` -See the [documentation](https://lodash.com/docs#mixin) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.mixin) for more details. +See the [documentation](https://lodash.com/docs#mixin) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.mixin) for more details. diff --git a/lodash.mixin/index.js b/lodash.mixin/index.js index 2e356fbe1..d541ae449 100644 --- a/lodash.mixin/index.js +++ b/lodash.mixin/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -106,7 +106,11 @@ function mixin(object, source, options) { var chainAll = this.__chain__; if (chain || chainAll) { var result = object(this.__wrapped__); - (result.__actions__ = arrayCopy(this.__actions__)).push({ 'func': func, 'args': arguments, 'thisArg': object }); + (result.__actions__ = arrayCopy(this.__actions__)).push({ + 'func': func, + 'args': arguments, + 'thisArg': object + }); result.__chain__ = chainAll; return result; } diff --git a/lodash.mixin/package.json b/lodash.mixin/package.json index b4386de10..39788ff57 100644 --- a/lodash.mixin/package.json +++ b/lodash.mixin/package.json @@ -1,6 +1,6 @@ { "name": "lodash.mixin", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.mixin` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.negate/README.md b/lodash.negate/README.md index 5f9b0f1b0..ee212d5bd 100644 --- a/lodash.negate/README.md +++ b/lodash.negate/README.md @@ -1,4 +1,4 @@ -# lodash.negate v3.0.0 +# lodash.negate v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.negate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var negate = require('lodash.negate'); ``` -See the [documentation](https://lodash.com/docs#negate) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.negate) for more details. +See the [documentation](https://lodash.com/docs#negate) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.negate) for more details. diff --git a/lodash.negate/index.js b/lodash.negate/index.js index 759004ff1..65b8ddc49 100644 --- a/lodash.negate/index.js +++ b/lodash.negate/index.js @@ -1,12 +1,11 @@ /** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ -var isFunction = require('lodash.isfunction'); /** Used as the `TypeError` message for "Functions" methods. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -18,9 +17,10 @@ var FUNC_ERROR_TEXT = 'Expected a function'; * * @static * @memberOf _ + * @since 3.0.0 * @category Function * @param {Function} predicate The predicate to negate. - * @returns {Function} Returns the new function. + * @returns {Function} Returns the new negated function. * @example * * function isEven(n) { @@ -31,7 +31,7 @@ var FUNC_ERROR_TEXT = 'Expected a function'; * // => [1, 3, 5] */ function negate(predicate) { - if (!isFunction(predicate)) { + if (typeof predicate != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } return function() { diff --git a/lodash.negate/package.json b/lodash.negate/package.json index 0bd534138..9aacbbe14 100644 --- a/lodash.negate/package.json +++ b/lodash.negate/package.json @@ -1,6 +1,6 @@ { "name": "lodash.negate", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.negate` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -15,8 +15,5 @@ "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, - "dependencies": { - "lodash.isfunction": "^3.0.0" - } + "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } } diff --git a/lodash.noop/LICENSE b/lodash.noop/LICENSE new file mode 100644 index 000000000..b054ca5a3 --- /dev/null +++ b/lodash.noop/LICENSE @@ -0,0 +1,22 @@ +Copyright 2012-2016 The Dojo Foundation +Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash.noop/LICENSE.txt b/lodash.noop/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash.noop/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash.noop/README.md b/lodash.noop/README.md index 0559be470..2319afb1c 100644 --- a/lodash.noop/README.md +++ b/lodash.noop/README.md @@ -1,20 +1,18 @@ -# lodash.noop v3.0.0 +# lodash.noop v3.0.1 -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.noop` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. +The [lodash](https://lodash.com/) method `_.noop` exported as a [Node.js](https://nodejs.org/) module. ## Installation Using npm: - ```bash $ {sudo -H} npm i -g npm $ npm i --save lodash.noop ``` -In Node.js/io.js: - +In Node.js: ```js var noop = require('lodash.noop'); ``` -See the [documentation](https://lodash.com/docs#noop) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.noop) for more details. +See the [documentation](https://lodash.com/docs#noop) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.noop) for more details. diff --git a/lodash.noop/index.js b/lodash.noop/index.js index 78ce0fd7a..f6029d95a 100644 --- a/lodash.noop/index.js +++ b/lodash.noop/index.js @@ -1,25 +1,23 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash (Custom Build) * Build: `lodash modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + * Copyright 2012-2016 The Dojo Foundation + * Based on Underscore.js 1.8.3 + * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ /** - * A no-operation function that returns `undefined` regardless of the - * arguments it receives. + * This method returns `undefined`. * * @static * @memberOf _ + * @since 2.3.0 * @category Util * @example * - * var object = { 'user': 'fred' }; - * - * _.noop(object) === undefined; - * // => true + * _.times(2, _.noop); + * // => [undefined, undefined] */ function noop() { // No operation performed. diff --git a/lodash.noop/package.json b/lodash.noop/package.json index 87f53b533..57738c2eb 100644 --- a/lodash.noop/package.json +++ b/lodash.noop/package.json @@ -1,17 +1,15 @@ { "name": "lodash.noop", - "version": "3.0.0", - "description": "The modern build of lodash’s `_.noop` as a module.", + "version": "3.0.1", + "description": "The lodash method `_.noop` exported as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", "license": "MIT", - "keywords": "lodash, lodash-modularized, stdlib, util", + "keywords": "lodash-modularized, noop", "author": "John-David Dalton (http://allyoucanleet.com/)", "contributors": [ "John-David Dalton (http://allyoucanleet.com/)", - "Benjamin Tan (https://d10.github.io/)", - "Blaine Bublitz (http://www.iceddev.com/)", - "Kit Cambridge (http://kitcambridge.be/)", + "Blaine Bublitz (https://github.com/phated)", "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", diff --git a/lodash.pairs/LICENSE.txt b/lodash.pairs/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.pairs/LICENSE.txt +++ b/lodash.pairs/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.pairs/README.md b/lodash.pairs/README.md index d5fe8d81c..9edbbac4b 100644 --- a/lodash.pairs/README.md +++ b/lodash.pairs/README.md @@ -1,4 +1,4 @@ -# lodash.pairs v3.0.0 +# lodash.pairs v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.pairs` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var pairs = require('lodash.pairs'); ``` -See the [documentation](https://lodash.com/docs#pairs) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.pairs) for more details. +See the [documentation](https://lodash.com/docs#pairs) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.pairs) for more details. diff --git a/lodash.pairs/index.js b/lodash.pairs/index.js index bb696409f..c0c187755 100644 --- a/lodash.pairs/index.js +++ b/lodash.pairs/index.js @@ -1,13 +1,51 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ var keys = require('lodash.keys'); +/** + * Converts `value` to an object if it's not one. + * + * @private + * @param {*} value The value to process. + * @returns {Object} Returns the object. + */ +function toObject(value) { + return isObject(value) ? value : Object(value); +} + +/** + * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. + * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(1); + * // => false + */ +function isObject(value) { + // Avoid a V8 JIT bug in Chrome 19-20. + // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. + var type = typeof value; + return !!value && (type == 'object' || type == 'function'); +} + /** * Creates a two dimensional array of the key-value pairs for `object`, * e.g. `[[key1, value1], [key2, value2]]`. @@ -23,6 +61,8 @@ var keys = require('lodash.keys'); * // => [['barney', 36], ['fred', 40]] (iteration order is not guaranteed) */ function pairs(object) { + object = toObject(object); + var index = -1, props = keys(object), length = props.length, diff --git a/lodash.pairs/package.json b/lodash.pairs/package.json index daaddd89d..acf95a0d6 100644 --- a/lodash.pairs/package.json +++ b/lodash.pairs/package.json @@ -1,6 +1,6 @@ { "name": "lodash.pairs", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.pairs` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.parseint/LICENSE.txt b/lodash.parseint/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.parseint/LICENSE.txt +++ b/lodash.parseint/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.parseint/README.md b/lodash.parseint/README.md index d8e23c398..b5dbcb80a 100644 --- a/lodash.parseint/README.md +++ b/lodash.parseint/README.md @@ -1,4 +1,4 @@ -# lodash.parseint v3.0.0 +# lodash.parseint v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.parseInt` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var parseInt = require('lodash.parseint'); ``` -See the [documentation](https://lodash.com/docs#parseInt) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.parseint) for more details. +See the [documentation](https://lodash.com/docs#parseInt) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.parseint) for more details. diff --git a/lodash.parseint/index.js b/lodash.parseint/index.js index 63a9bbc73..9e08fad6b 100644 --- a/lodash.parseint/index.js +++ b/lodash.parseint/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -10,7 +10,7 @@ var isIterateeCall = require('lodash._isiterateecall'), trim = require('lodash.trim'); /** Used to detect hexadecimal string values. */ -var reHexPrefix = /^0[xX]/; +var reHasHexPrefix = /^0[xX]/; /** Used to detect and test for whitespace. */ var whitespace = ( @@ -68,7 +68,7 @@ if (nativeParseInt(whitespace + '08') != 8) { radix = +radix; } string = trim(string); - return nativeParseInt(string, radix || (reHexPrefix.test(string) ? 16 : 10)); + return nativeParseInt(string, radix || (reHasHexPrefix.test(string) ? 16 : 10)); }; } diff --git a/lodash.parseint/package.json b/lodash.parseint/package.json index 0e8cc2600..a510e8d7b 100644 --- a/lodash.parseint/package.json +++ b/lodash.parseint/package.json @@ -1,6 +1,6 @@ { "name": "lodash.parseint", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.parseInt` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.pluck/README.md b/lodash.pluck/README.md index 52d22af6a..0c0264488 100644 --- a/lodash.pluck/README.md +++ b/lodash.pluck/README.md @@ -1,4 +1,4 @@ -# lodash.pluck v3.0.0 +# lodash.pluck v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.pluck` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var pluck = require('lodash.pluck'); ``` -See the [documentation](https://lodash.com/docs#pluck) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.pluck) for more details. +See the [documentation](https://lodash.com/docs#pluck) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.pluck) for more details. diff --git a/lodash.pluck/index.js b/lodash.pluck/index.js index 386cbde15..ba22aaa44 100644 --- a/lodash.pluck/index.js +++ b/lodash.pluck/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -33,34 +33,7 @@ var baseProperty = require('lodash._baseproperty'), * // => [36, 40] (iteration order is not guaranteed) */ function pluck(collection, key) { - return map(collection, property(key)); -} - -/** - * Creates a function which returns the property value of `key` on a given object. - * - * @static - * @memberOf _ - * @category Utility - * @param {string} key The key of the property to get. - * @returns {Function} Returns the new function. - * @example - * - * var users = [ - * { 'user': 'fred' }, - * { 'user': 'barney' } - * ]; - * - * var getName = _.property('user'); - * - * _.map(users, getName); - * // => ['fred', barney'] - * - * _.pluck(_.sortBy(users, getName), 'user'); - * // => ['barney', 'fred'] - */ -function property(key) { - return baseProperty(key + ''); + return map(collection, baseProperty(key + '')); } module.exports = pluck; diff --git a/lodash.pluck/package.json b/lodash.pluck/package.json index 41d4382a9..e2e51125f 100644 --- a/lodash.pluck/package.json +++ b/lodash.pluck/package.json @@ -1,6 +1,6 @@ { "name": "lodash.pluck", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.pluck` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.pull/README.md b/lodash.pull/README.md index 6f292d79f..ed7a73412 100644 --- a/lodash.pull/README.md +++ b/lodash.pull/README.md @@ -1,4 +1,4 @@ -# lodash.pull v3.0.0 +# lodash.pull v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.pull` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var pull = require('lodash.pull'); ``` -See the [documentation](https://lodash.com/docs#pull) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.pull) for more details. +See the [documentation](https://lodash.com/docs#pull) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.pull) for more details. diff --git a/lodash.pull/index.js b/lodash.pull/index.js index 0a70e43f6..698787fce 100644 --- a/lodash.pull/index.js +++ b/lodash.pull/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -15,14 +15,11 @@ var arrayProto = Array.prototype; var splice = arrayProto.splice; /** - * Removes all provided values from `array` using `SameValueZero` for equality - * comparisons. + * Removes all provided values from `array` using + * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * for equality comparisons. * - * **Notes:** - * - Unlike `_.without`, this method mutates `array`. - * - `SameValueZero` comparisons are like strict equality comparisons, e.g. `===`, - * except that `NaN` matches `NaN`. See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) - * for more details. + * **Note:** Unlike `_.without`, this method mutates `array`. * * @static * @memberOf _ @@ -39,17 +36,19 @@ var splice = arrayProto.splice; * // => [1, 1] */ function pull() { - var array = arguments[0]; + var args = arguments, + array = args[0]; + if (!(array && array.length)) { return array; } var index = 0, indexOf = baseIndexOf, - length = arguments.length; + length = args.length; while (++index < length) { var fromIndex = 0, - value = arguments[index]; + value = args[index]; while ((fromIndex = indexOf(array, value, fromIndex)) > -1) { splice.call(array, fromIndex, 1); diff --git a/lodash.pull/package.json b/lodash.pull/package.json index 7e79db853..5b5bedb87 100644 --- a/lodash.pull/package.json +++ b/lodash.pull/package.json @@ -1,6 +1,6 @@ { "name": "lodash.pull", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.pull` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.random/LICENSE b/lodash.random/LICENSE new file mode 100644 index 000000000..9cd87e5dc --- /dev/null +++ b/lodash.random/LICENSE @@ -0,0 +1,22 @@ +Copyright 2012-2015 The Dojo Foundation +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash.random/LICENSE.txt b/lodash.random/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash.random/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash.random/README.md b/lodash.random/README.md index e90726fca..2ab1c0393 100644 --- a/lodash.random/README.md +++ b/lodash.random/README.md @@ -1,4 +1,4 @@ -# lodash.random v3.0.0 +# lodash.random v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.random` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var random = require('lodash.random'); ``` -See the [documentation](https://lodash.com/docs#random) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.random) for more details. +See the [documentation](https://lodash.com/docs#random) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.random) for more details. diff --git a/lodash.random/index.js b/lodash.random/index.js index 3842ee137..ccf53c71b 100644 --- a/lodash.random/index.js +++ b/lodash.random/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -42,7 +42,7 @@ var nativeMin = Math.min, */ function random(min, max, floating) { if (floating && isIterateeCall(min, max, floating)) { - max = floating = null; + max = floating = undefined; } var noMin = min == null, noMax = max == null; diff --git a/lodash.random/package.json b/lodash.random/package.json index 19961dd8b..d39a39375 100644 --- a/lodash.random/package.json +++ b/lodash.random/package.json @@ -1,6 +1,6 @@ { "name": "lodash.random", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.random` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.range/LICENSE b/lodash.range/LICENSE new file mode 100644 index 000000000..9cd87e5dc --- /dev/null +++ b/lodash.range/LICENSE @@ -0,0 +1,22 @@ +Copyright 2012-2015 The Dojo Foundation +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash.range/LICENSE.txt b/lodash.range/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash.range/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash.range/README.md b/lodash.range/README.md index 62f328a24..9aa703b4b 100644 --- a/lodash.range/README.md +++ b/lodash.range/README.md @@ -1,4 +1,4 @@ -# lodash.range v3.0.0 +# lodash.range v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.range` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var range = require('lodash.range'); ``` -See the [documentation](https://lodash.com/docs#range) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.range) for more details. +See the [documentation](https://lodash.com/docs#range) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.range) for more details. diff --git a/lodash.range/index.js b/lodash.range/index.js index 446edf6ce..07c51b472 100644 --- a/lodash.range/index.js +++ b/lodash.range/index.js @@ -1,22 +1,20 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ var isIterateeCall = require('lodash._isiterateecall'); -/** Native method references. */ -var ceil = Math.ceil; - /* Native method references for those with the same name as other `lodash` methods. */ -var nativeMax = Math.max; +var nativeCeil = Math.ceil, + nativeMax = Math.max; /** * Creates an array of numbers (positive and/or negative) progressing from - * `start` up to, but not including, `end`. If `end` is not specified it is + * `start` up to, but not including, `end`. If `end` is not specified it's * set to `start` with `start` then set to `0`. If `end` is less than `start` * a zero-length range is created unless a negative `step` is specified. * @@ -49,7 +47,7 @@ var nativeMax = Math.max; */ function range(start, end, step) { if (step && isIterateeCall(start, end, step)) { - end = step = null; + end = step = undefined; } start = +start || 0; step = step == null ? 1 : (+step || 0); @@ -63,7 +61,7 @@ function range(start, end, step) { // Use `Array(length)` so engines like Chakra and V8 avoid slower modes. // See https://youtu.be/XAqIpGU8ZZk#t=17m25s for more details. var index = -1, - length = nativeMax(ceil((end - start) / (step || 1)), 0), + length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result = Array(length); while (++index < length) { diff --git a/lodash.range/package.json b/lodash.range/package.json index 93f8a1576..71264d023 100644 --- a/lodash.range/package.json +++ b/lodash.range/package.json @@ -1,6 +1,6 @@ { "name": "lodash.range", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.range` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.reduce/LICENSE.txt b/lodash.reduce/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.reduce/LICENSE.txt +++ b/lodash.reduce/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.reduce/README.md b/lodash.reduce/README.md index e1c9ef226..2d6f33cb1 100644 --- a/lodash.reduce/README.md +++ b/lodash.reduce/README.md @@ -1,4 +1,4 @@ -# lodash.reduce v3.0.0 +# lodash.reduce v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.reduce` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var reduce = require('lodash.reduce'); ``` -See the [documentation](https://lodash.com/docs#reduce) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.reduce) for more details. +See the [documentation](https://lodash.com/docs#reduce) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.reduce) for more details. diff --git a/lodash.reduce/index.js b/lodash.reduce/index.js index 527dbe737..f566fa25b 100644 --- a/lodash.reduce/index.js +++ b/lodash.reduce/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -13,7 +13,7 @@ var baseCallback = require('lodash._basecallback'), /** * A specialized version of `_.reduce` for arrays without support for callback - * shorthands or `this` binding. + * shorthands and `this` binding. * * @private * @param {Array} array The array to iterate over. @@ -36,19 +36,36 @@ function arrayReduce(array, iteratee, accumulator, initFromArray) { return accumulator; } +/** + * Creates a function for `_.reduce` or `_.reduceRight`. + * + * @private + * @param {Function} arrayFunc The function to iterate over an array. + * @param {Function} eachFunc The function to iterate over a collection. + * @returns {Function} Returns the new each function. + */ +function createReduce(arrayFunc, eachFunc) { + return function(collection, iteratee, accumulator, thisArg) { + var initFromArray = arguments.length < 3; + return (typeof iteratee == 'function' && typeof thisArg == 'undefined' && isArray(collection)) + ? arrayFunc(collection, iteratee, accumulator, initFromArray) + : baseReduce(collection, baseCallback(iteratee, thisArg, 4), accumulator, initFromArray, eachFunc); + }; +} + /** * Reduces `collection` to a value which is the accumulated result of running * each element in `collection` through `iteratee`, where each successive * invocation is supplied the return value of the previous. If `accumulator` * is not provided the first element of `collection` is used as the initial - * value. The `iteratee` is bound to `thisArg`and invoked with four arguments; + * value. The `iteratee` is bound to `thisArg` and invoked with four arguments: * (accumulator, value, index|key, collection). * * Many lodash methods are guarded to work as interatees for methods like * `_.reduce`, `_.reduceRight`, and `_.transform`. * * The guarded methods are: - * `assign`, `defaults`, `merge`, and `sortAllBy` + * `assign`, `defaults`, `includes`, `merge`, `sortByAll`, and `sortByOrder` * * @static * @memberOf _ @@ -72,9 +89,6 @@ function arrayReduce(array, iteratee, accumulator, initFromArray) { * }, {}); * // => { 'a': 3, 'b': 6 } (iteration order is not guaranteed) */ -function reduce(collection, iteratee, accumulator, thisArg) { - var func = isArray(collection) ? arrayReduce : baseReduce; - return func(collection, baseCallback(iteratee, thisArg, 4), accumulator, arguments.length < 3, baseEach); -} +var reduce = createReduce(arrayReduce, baseEach); module.exports = reduce; diff --git a/lodash.reduce/package.json b/lodash.reduce/package.json index 7f5fbe1d5..50762cb0d 100644 --- a/lodash.reduce/package.json +++ b/lodash.reduce/package.json @@ -1,6 +1,6 @@ { "name": "lodash.reduce", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.reduce` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.reduceright/LICENSE.txt b/lodash.reduceright/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.reduceright/LICENSE.txt +++ b/lodash.reduceright/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.reduceright/README.md b/lodash.reduceright/README.md index 4444196c8..620a341e4 100644 --- a/lodash.reduceright/README.md +++ b/lodash.reduceright/README.md @@ -1,4 +1,4 @@ -# lodash.reduceright v3.0.0 +# lodash.reduceright v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.reduceRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var reduceRight = require('lodash.reduceright'); ``` -See the [documentation](https://lodash.com/docs#reduceRight) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.reduceright) for more details. +See the [documentation](https://lodash.com/docs#reduceRight) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.reduceright) for more details. diff --git a/lodash.reduceright/index.js b/lodash.reduceright/index.js index 3a3314e2f..f0c91bdf0 100644 --- a/lodash.reduceright/index.js +++ b/lodash.reduceright/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -13,7 +13,7 @@ var baseCallback = require('lodash._basecallback'), /** * A specialized version of `_.reduceRight` for arrays without support for - * callback shorthands or `this` binding. + * callback shorthands and `this` binding. * * @private * @param {Array} array The array to iterate over. @@ -34,6 +34,23 @@ function arrayReduceRight(array, iteratee, accumulator, initFromArray) { return accumulator; } +/** + * Creates a function for `_.reduce` or `_.reduceRight`. + * + * @private + * @param {Function} arrayFunc The function to iterate over an array. + * @param {Function} eachFunc The function to iterate over a collection. + * @returns {Function} Returns the new each function. + */ +function createReduce(arrayFunc, eachFunc) { + return function(collection, iteratee, accumulator, thisArg) { + var initFromArray = arguments.length < 3; + return (typeof iteratee == 'function' && typeof thisArg == 'undefined' && isArray(collection)) + ? arrayFunc(collection, iteratee, accumulator, initFromArray) + : baseReduce(collection, baseCallback(iteratee, thisArg, 4), accumulator, initFromArray, eachFunc); + }; +} + /** * This method is like `_.reduce` except that it iterates over elements of * `collection` from right to left. @@ -56,9 +73,6 @@ function arrayReduceRight(array, iteratee, accumulator, initFromArray) { * }, []); * // => [4, 5, 2, 3, 0, 1] */ -function reduceRight(collection, iteratee, accumulator, thisArg) { - var func = isArray(collection) ? arrayReduceRight : baseReduce; - return func(collection, baseCallback(iteratee, thisArg, 4), accumulator, arguments.length < 3, baseEachRight); -} +var reduceRight = createReduce(arrayReduceRight, baseEachRight); module.exports = reduceRight; diff --git a/lodash.reduceright/package.json b/lodash.reduceright/package.json index 7522cbb8d..d65033483 100644 --- a/lodash.reduceright/package.json +++ b/lodash.reduceright/package.json @@ -1,6 +1,6 @@ { "name": "lodash.reduceright", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.reduceRight` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.reescape/README.md b/lodash.reescape/README.md index a76d62362..63c24b504 100644 --- a/lodash.reescape/README.md +++ b/lodash.reescape/README.md @@ -1,6 +1,6 @@ -# lodash.reescape v3.0.0 +# lodash._reescape v3.0.1 -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.reEscape` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. +The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `reEscape` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. ## Installation @@ -17,4 +17,4 @@ In Node.js/io.js: var reEscape = require('lodash.reescape'); ``` -See the [documentation](https://lodash.com/docs#reEscape) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.reescape) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.reescape) for more details. diff --git a/lodash.reescape/index.js b/lodash.reescape/index.js index 1a3b8cf34..a1f06a103 100644 --- a/lodash.reescape/index.js +++ b/lodash.reescape/index.js @@ -1,13 +1 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** Used to match template delimiters. */ -var reEscape = /<%-([\s\S]+?)%>/g; - -module.exports = reEscape; +module.exports = require('lodash._reescape'); diff --git a/lodash.reescape/package.json b/lodash.reescape/package.json index e8a3e272f..b64564b00 100644 --- a/lodash.reescape/package.json +++ b/lodash.reescape/package.json @@ -1,11 +1,10 @@ { "name": "lodash.reescape", - "version": "3.0.0", - "description": "The modern build of lodash’s `_.reEscape` as a module.", + "version": "3.0.1", + "description": "The modern build of lodash’s internal `reEscape` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", "license": "MIT", - "keywords": "lodash, lodash-modularized, stdlib, util", "author": "John-David Dalton (http://allyoucanleet.com/)", "contributors": [ "John-David Dalton (http://allyoucanleet.com/)", @@ -15,5 +14,8 @@ "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } + "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, + "dependencies": { + "lodash._reescape": "^3.0.0" + } } diff --git a/lodash.reevaluate/README.md b/lodash.reevaluate/README.md index 9fe5d4f35..6b3a7c368 100644 --- a/lodash.reevaluate/README.md +++ b/lodash.reevaluate/README.md @@ -1,6 +1,6 @@ -# lodash.reevaluate v3.0.0 +# lodash._reevaluate v3.0.1 -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.reEvaluate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. +The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `reEvaluate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. ## Installation @@ -17,4 +17,4 @@ In Node.js/io.js: var reEvaluate = require('lodash.reevaluate'); ``` -See the [documentation](https://lodash.com/docs#reEvaluate) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.reevaluate) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.reevaluate) for more details. diff --git a/lodash.reevaluate/index.js b/lodash.reevaluate/index.js index 16d76098d..e94b069b4 100644 --- a/lodash.reevaluate/index.js +++ b/lodash.reevaluate/index.js @@ -1,13 +1 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** Used to match template delimiters. */ -var reEvaluate = /<%([\s\S]+?)%>/g; - -module.exports = reEvaluate; +module.exports = require('lodash._reevaluate'); diff --git a/lodash.reevaluate/package.json b/lodash.reevaluate/package.json index c9712ad2d..8e4b412ec 100644 --- a/lodash.reevaluate/package.json +++ b/lodash.reevaluate/package.json @@ -1,11 +1,10 @@ { "name": "lodash.reevaluate", - "version": "3.0.0", - "description": "The modern build of lodash’s `_.reEvaluate` as a module.", + "version": "3.0.1", + "description": "The modern build of lodash’s internal `reEvaluate` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", "license": "MIT", - "keywords": "lodash, lodash-modularized, stdlib, util", "author": "John-David Dalton (http://allyoucanleet.com/)", "contributors": [ "John-David Dalton (http://allyoucanleet.com/)", @@ -15,5 +14,8 @@ "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } + "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, + "dependencies": { + "lodash._reevaluate": "^3.0.0" + } } diff --git a/lodash.reinterpolate/README.md b/lodash.reinterpolate/README.md index 685fe9ec3..c762c1715 100644 --- a/lodash.reinterpolate/README.md +++ b/lodash.reinterpolate/README.md @@ -1,6 +1,6 @@ -# lodash.reinterpolate v3.0.0 +# lodash._reinterpolate v3.0.1 -The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.reInterpolate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. +The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `reInterpolate` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. ## Installation @@ -17,4 +17,4 @@ In Node.js/io.js: var reInterpolate = require('lodash.reinterpolate'); ``` -See the [documentation](https://lodash.com/docs#reInterpolate) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.reinterpolate) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.reinterpolate) for more details. diff --git a/lodash.reinterpolate/index.js b/lodash.reinterpolate/index.js index 5c06abcf3..6b7b738e2 100644 --- a/lodash.reinterpolate/index.js +++ b/lodash.reinterpolate/index.js @@ -1,13 +1 @@ -/** - * lodash 3.0.0 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ - -/** Used to match template delimiters. */ -var reInterpolate = /<%=([\s\S]+?)%>/g; - -module.exports = reInterpolate; +module.exports = require('lodash._reinterpolate'); diff --git a/lodash.reinterpolate/package.json b/lodash.reinterpolate/package.json index 88f6bc2d8..1c88e54cb 100644 --- a/lodash.reinterpolate/package.json +++ b/lodash.reinterpolate/package.json @@ -1,11 +1,10 @@ { "name": "lodash.reinterpolate", - "version": "3.0.0", - "description": "The modern build of lodash’s `_.reInterpolate` as a module.", + "version": "3.0.1", + "description": "The modern build of lodash’s internal `reInterpolate` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", "license": "MIT", - "keywords": "lodash, lodash-modularized, stdlib, util", "author": "John-David Dalton (http://allyoucanleet.com/)", "contributors": [ "John-David Dalton (http://allyoucanleet.com/)", @@ -15,5 +14,8 @@ "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } + "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, + "dependencies": { + "lodash._reinterpolate": "^3.0.0" + } } diff --git a/lodash.remove/LICENSE.txt b/lodash.remove/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.remove/LICENSE.txt +++ b/lodash.remove/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.remove/README.md b/lodash.remove/README.md index f831e18fe..1cb6ae020 100644 --- a/lodash.remove/README.md +++ b/lodash.remove/README.md @@ -1,4 +1,4 @@ -# lodash.remove v3.0.0 +# lodash.remove v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.remove` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var remove = require('lodash.remove'); ``` -See the [documentation](https://lodash.com/docs#remove) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.remove) for more details. +See the [documentation](https://lodash.com/docs#remove) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.remove) for more details. diff --git a/lodash.remove/index.js b/lodash.remove/index.js index 4df9e94b8..7f440bde3 100644 --- a/lodash.remove/index.js +++ b/lodash.remove/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -14,6 +14,47 @@ var arrayProto = Array.prototype; /** Native method references. */ var splice = arrayProto.splice; +/** + * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) + * of an array-like value. + */ +var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; + +/** + * The base implementation of `_.pullAt` without support for individual + * index arguments and capturing the removed elements. + * + * @private + * @param {Array} array The array to modify. + * @param {number[]} indexes The indexes of elements to remove. + * @returns {Array} Returns `array`. + */ +function basePullAt(array, indexes) { + var length = indexes.length; + while (length--) { + var index = parseFloat(indexes[length]); + if (index != previous && isIndex(index)) { + var previous = index; + splice.call(array, index, 1); + } + } + return array; +} + +/** + * Checks if `value` is a valid array-like index. + * + * @private + * @param {*} value The value to check. + * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. + * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. + */ +function isIndex(value, length) { + value = +value; + length = length == null ? MAX_SAFE_INTEGER : length; + return value > -1 && value % 1 == 0 && value < length; +} + /** * Removes all elements from `array` that `predicate` returns truthy for * and returns an array of the removed elements. The predicate is bound to @@ -54,19 +95,23 @@ var splice = arrayProto.splice; * // => [2, 4] */ function remove(array, predicate, thisArg) { + var result = []; + if (!(array && array.length)) { + return result; + } var index = -1, - length = array ? array.length : 0, - result = []; + indexes = [], + length = array.length; predicate = baseCallback(predicate, thisArg, 3); while (++index < length) { var value = array[index]; if (predicate(value, index, array)) { result.push(value); - splice.call(array, index--, 1); - length--; + indexes.push(index); } } + basePullAt(array, indexes); return result; } diff --git a/lodash.remove/package.json b/lodash.remove/package.json index 1b8294326..4d5285d1b 100644 --- a/lodash.remove/package.json +++ b/lodash.remove/package.json @@ -1,6 +1,6 @@ { "name": "lodash.remove", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.remove` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.repeat/LICENSE b/lodash.repeat/LICENSE new file mode 100644 index 000000000..9cd87e5dc --- /dev/null +++ b/lodash.repeat/LICENSE @@ -0,0 +1,22 @@ +Copyright 2012-2015 The Dojo Foundation +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash.repeat/LICENSE.txt b/lodash.repeat/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash.repeat/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash.repeat/README.md b/lodash.repeat/README.md index d2796e3f7..dec571a33 100644 --- a/lodash.repeat/README.md +++ b/lodash.repeat/README.md @@ -1,4 +1,4 @@ -# lodash.repeat v3.0.0 +# lodash.repeat v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.repeat` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var repeat = require('lodash.repeat'); ``` -See the [documentation](https://lodash.com/docs#repeat) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.repeat) for more details. +See the [documentation](https://lodash.com/docs#repeat) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.repeat) for more details. diff --git a/lodash.repeat/index.js b/lodash.repeat/index.js index 68e100813..367913f56 100644 --- a/lodash.repeat/index.js +++ b/lodash.repeat/index.js @@ -1,18 +1,16 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ var baseToString = require('lodash._basetostring'); -/** Native method references. */ -var floor = Math.floor; - /* Native method references for those with the same name as other `lodash` methods. */ -var nativeIsFinite = global.isFinite; +var nativeFloor = Math.floor, + nativeIsFinite = global.isFinite; /** * Repeats the given string `n` times. @@ -47,7 +45,7 @@ function repeat(string, n) { if (n % 2) { result += string; } - n = floor(n / 2); + n = nativeFloor(n / 2); string += string; } while (n); diff --git a/lodash.repeat/package.json b/lodash.repeat/package.json index 6212fd592..9268878ce 100644 --- a/lodash.repeat/package.json +++ b/lodash.repeat/package.json @@ -1,6 +1,6 @@ { "name": "lodash.repeat", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.repeat` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.size/LICENSE.txt b/lodash.size/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.size/LICENSE.txt +++ b/lodash.size/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.size/README.md b/lodash.size/README.md index 4234e0747..693222926 100644 --- a/lodash.size/README.md +++ b/lodash.size/README.md @@ -1,4 +1,4 @@ -# lodash.size v3.0.0 +# lodash.size v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.size` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var size = require('lodash.size'); ``` -See the [documentation](https://lodash.com/docs#size) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.size) for more details. +See the [documentation](https://lodash.com/docs#size) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.size) for more details. diff --git a/lodash.size/index.js b/lodash.size/index.js index 7deea7176..2df6137be 100644 --- a/lodash.size/index.js +++ b/lodash.size/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -14,6 +14,31 @@ var keys = require('lodash.keys'); */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; +/** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new function. + */ +function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; +} + +/** + * Gets the "length" property value of `object`. + * + * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) + * that affects Safari on at least iOS 8.1-8.3 ARM64. + * + * @private + * @param {Object} object The object to query. + * @returns {*} Returns the "length" value. + */ +var getLength = baseProperty('length'); + /** * Checks if `value` is a valid array-like length. * @@ -48,7 +73,7 @@ function isLength(value) { * // => 7 */ function size(collection) { - var length = collection ? collection.length : 0; + var length = collection ? getLength(collection) : 0; return isLength(length) ? length : keys(collection).length; } diff --git a/lodash.size/package.json b/lodash.size/package.json index 6af333acd..5bc597f89 100644 --- a/lodash.size/package.json +++ b/lodash.size/package.json @@ -1,6 +1,6 @@ { "name": "lodash.size", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.size` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.snakecase/README.md b/lodash.snakecase/README.md index 4212ac5fa..725018111 100644 --- a/lodash.snakecase/README.md +++ b/lodash.snakecase/README.md @@ -1,4 +1,4 @@ -# lodash.snakecase v3.0.0 +# lodash.snakecase v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.snakeCase` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var snakeCase = require('lodash.snakecase'); ``` -See the [documentation](https://lodash.com/docs#snakeCase) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.snakecase) for more details. +See the [documentation](https://lodash.com/docs#snakeCase) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.snakecase) for more details. diff --git a/lodash.snakecase/index.js b/lodash.snakecase/index.js index b7016a0dd..9c92e44bd 100644 --- a/lodash.snakecase/index.js +++ b/lodash.snakecase/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -9,8 +9,7 @@ var createCompounder = require('lodash._createcompounder'); /** - * Converts `string` to snake case. - * See [Wikipedia](https://en.wikipedia.org/wiki/Snake_case) for more details. + * Converts `string` to [snake case](https://en.wikipedia.org/wiki/Snake_case). * * @static * @memberOf _ diff --git a/lodash.snakecase/package.json b/lodash.snakecase/package.json index 06a9269d7..e220d8642 100644 --- a/lodash.snakecase/package.json +++ b/lodash.snakecase/package.json @@ -1,6 +1,6 @@ { "name": "lodash.snakecase", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.snakeCase` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.sortbyall/README.md b/lodash.sortbyall/README.md index 14c0f577a..f1ac42ba7 100644 --- a/lodash.sortbyall/README.md +++ b/lodash.sortbyall/README.md @@ -1,4 +1,4 @@ -# lodash.sortbyall v3.0.0 +# lodash.sortbyall v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.sortByAll` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var sortByAll = require('lodash.sortbyall'); ``` -See the [documentation](https://lodash.com/docs#sortByAll) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.sortbyall) for more details. +See the [documentation](https://lodash.com/docs#sortByAll) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.sortbyall) for more details. diff --git a/lodash.sortbyall/index.js b/lodash.sortbyall/index.js index a4f8b52ee..6456fcb0f 100644 --- a/lodash.sortbyall/index.js +++ b/lodash.sortbyall/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -98,7 +98,7 @@ function sortByAll(collection) { props = baseFlatten(args, false, false, 1), result = isLength(length) ? Array(length) : []; - baseEach(collection, function(value, key, collection) { + baseEach(collection, function(value) { var length = props.length, criteria = Array(length); diff --git a/lodash.sortbyall/package.json b/lodash.sortbyall/package.json index ff0d3c058..2688b0828 100644 --- a/lodash.sortbyall/package.json +++ b/lodash.sortbyall/package.json @@ -1,6 +1,6 @@ { "name": "lodash.sortbyall", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.sortByAll` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.sortedindex/LICENSE.txt b/lodash.sortedindex/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.sortedindex/LICENSE.txt +++ b/lodash.sortedindex/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.sortedindex/README.md b/lodash.sortedindex/README.md index 7dc045d19..1cb24a66d 100644 --- a/lodash.sortedindex/README.md +++ b/lodash.sortedindex/README.md @@ -1,4 +1,4 @@ -# lodash.sortedindex v3.0.0 +# lodash.sortedindex v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.sortedIndex` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var sortedIndex = require('lodash.sortedindex'); ``` -See the [documentation](https://lodash.com/docs#sortedIndex) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.sortedindex) for more details. +See the [documentation](https://lodash.com/docs#sortedIndex) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.sortedindex) for more details. diff --git a/lodash.sortedindex/index.js b/lodash.sortedindex/index.js index 8a69f2c6c..402b5ac55 100644 --- a/lodash.sortedindex/index.js +++ b/lodash.sortedindex/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -10,6 +10,21 @@ var baseCallback = require('lodash._basecallback'), binaryIndex = require('lodash._binaryindex'), binaryIndexBy = require('lodash._binaryindexby'); +/** + * Creates a `_.sortedIndex` or `_.sortedLastIndex` function. + * + * @private + * @param {boolean} [retHighest] Specify returning the highest qualified index. + * @returns {Function} Returns the new index function. + */ +function createSortedIndex(retHighest) { + return function(array, value, iteratee, thisArg) { + return iteratee == null + ? binaryIndex(array, value, retHighest) + : binaryIndexBy(array, value, baseCallback(iteratee, thisArg, 1), retHighest); + }; +} + /** * Uses a binary search to determine the lowest index at which `value` should * be inserted into `array` in order to maintain its sort order. If an iteratee @@ -17,14 +32,14 @@ var baseCallback = require('lodash._basecallback'), * to compute their sort ranking. The iteratee is bound to `thisArg` and * invoked with one argument; (value). * - * If a property name is provided for `predicate` the created `_.property` + * If a property name is provided for `iteratee` the created `_.property` * style callback returns the property value of the given element. * * If a value is also provided for `thisArg` the created `_.matchesProperty` * style callback returns `true` for elements that have a matching property * value, else `false`. * - * If an object is provided for `predicate` the created `_.matches` style + * If an object is provided for `iteratee` the created `_.matches` style * callback returns `true` for elements that have the properties of the given * object, else `false`. * @@ -58,10 +73,6 @@ var baseCallback = require('lodash._basecallback'), * _.sortedIndex([{ 'x': 30 }, { 'x': 50 }], { 'x': 40 }, 'x'); * // => 1 */ -function sortedIndex(array, value, iteratee, thisArg) { - return iteratee == null - ? binaryIndex(array, value) - : binaryIndexBy(array, value, baseCallback(iteratee, thisArg, 1)); -} +var sortedIndex = createSortedIndex(); module.exports = sortedIndex; diff --git a/lodash.sortedindex/package.json b/lodash.sortedindex/package.json index c95f155a2..5eab95535 100644 --- a/lodash.sortedindex/package.json +++ b/lodash.sortedindex/package.json @@ -1,6 +1,6 @@ { "name": "lodash.sortedindex", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.sortedIndex` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.sortedlastindex/LICENSE.txt b/lodash.sortedlastindex/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.sortedlastindex/LICENSE.txt +++ b/lodash.sortedlastindex/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.sortedlastindex/README.md b/lodash.sortedlastindex/README.md index ccbf81d75..076118cfa 100644 --- a/lodash.sortedlastindex/README.md +++ b/lodash.sortedlastindex/README.md @@ -1,4 +1,4 @@ -# lodash.sortedlastindex v3.0.0 +# lodash.sortedlastindex v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.sortedLastIndex` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var sortedLastIndex = require('lodash.sortedlastindex'); ``` -See the [documentation](https://lodash.com/docs#sortedLastIndex) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.sortedlastindex) for more details. +See the [documentation](https://lodash.com/docs#sortedLastIndex) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.sortedlastindex) for more details. diff --git a/lodash.sortedlastindex/index.js b/lodash.sortedlastindex/index.js index 0131c40e4..0e942fa6b 100644 --- a/lodash.sortedlastindex/index.js +++ b/lodash.sortedlastindex/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -10,6 +10,21 @@ var baseCallback = require('lodash._basecallback'), binaryIndex = require('lodash._binaryindex'), binaryIndexBy = require('lodash._binaryindexby'); +/** + * Creates a `_.sortedIndex` or `_.sortedLastIndex` function. + * + * @private + * @param {boolean} [retHighest] Specify returning the highest qualified index. + * @returns {Function} Returns the new index function. + */ +function createSortedIndex(retHighest) { + return function(array, value, iteratee, thisArg) { + return iteratee == null + ? binaryIndex(array, value, retHighest) + : binaryIndexBy(array, value, baseCallback(iteratee, thisArg, 1), retHighest); + }; +} + /** * This method is like `_.sortedIndex` except that it returns the highest * index at which `value` should be inserted into `array` in order to @@ -30,10 +45,6 @@ var baseCallback = require('lodash._basecallback'), * _.sortedLastIndex([4, 4, 5, 5], 5); * // => 4 */ -function sortedLastIndex(array, value, iteratee, thisArg) { - return iteratee == null - ? binaryIndex(array, value, true) - : binaryIndexBy(array, value, baseCallback(iteratee, thisArg, 1), true); -} +var sortedLastIndex = createSortedIndex(true); module.exports = sortedLastIndex; diff --git a/lodash.sortedlastindex/package.json b/lodash.sortedlastindex/package.json index 8292136d5..0defedd07 100644 --- a/lodash.sortedlastindex/package.json +++ b/lodash.sortedlastindex/package.json @@ -1,6 +1,6 @@ { "name": "lodash.sortedlastindex", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.sortedLastIndex` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.startswith/LICENSE.txt b/lodash.startswith/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.startswith/LICENSE.txt +++ b/lodash.startswith/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.startswith/README.md b/lodash.startswith/README.md index 4fecb5cbb..ca80be278 100644 --- a/lodash.startswith/README.md +++ b/lodash.startswith/README.md @@ -1,4 +1,4 @@ -# lodash.startswith v3.0.0 +# lodash.startswith v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.startsWith` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var startsWith = require('lodash.startswith'); ``` -See the [documentation](https://lodash.com/docs#startsWith) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.startswith) for more details. +See the [documentation](https://lodash.com/docs#startsWith) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.startswith) for more details. diff --git a/lodash.startswith/index.js b/lodash.startswith/index.js index 7b0810568..8af538977 100644 --- a/lodash.startswith/index.js +++ b/lodash.startswith/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -34,7 +34,10 @@ var nativeMin = Math.min; */ function startsWith(string, target, position) { string = baseToString(string); - position = position == null ? 0 : nativeMin(position < 0 ? 0 : (+position || 0), string.length); + position = position == null + ? 0 + : nativeMin(position < 0 ? 0 : (+position || 0), string.length); + return string.lastIndexOf(target, position) == position; } diff --git a/lodash.startswith/package.json b/lodash.startswith/package.json index 9678c359b..d4db00a6a 100644 --- a/lodash.startswith/package.json +++ b/lodash.startswith/package.json @@ -1,6 +1,6 @@ { "name": "lodash.startswith", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.startsWith` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.support/LICENSE.txt b/lodash.support/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.support/LICENSE.txt +++ b/lodash.support/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.support/README.md b/lodash.support/README.md index acacffe1f..e1f75ba04 100644 --- a/lodash.support/README.md +++ b/lodash.support/README.md @@ -1,4 +1,4 @@ -# lodash.support v3.0.0 +# lodash.support v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.support` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var support = require('lodash.support'); ``` -See the [documentation](https://lodash.com/docs#support) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.support) for more details. +See the [documentation](https://lodash.com/docs#support) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.support) for more details. diff --git a/lodash.support/index.js b/lodash.support/index.js index f5ff461b5..e2571497f 100644 --- a/lodash.support/index.js +++ b/lodash.support/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -26,6 +26,12 @@ var propertyIsEnumerable = objectProto.propertyIsEnumerable; var support = {}; (function(x) { + var Ctor = function() { this.x = x; }, + object = { '0': x, 'length': x }, + props = []; + + Ctor.prototype = { 'valueOf': x, 'y': x }; + for (var key in new Ctor) { props.push(key); } /** * Detect if the DOM is supported. @@ -45,8 +51,8 @@ var support = {}; * In Firefox < 4, IE < 9, PhantomJS, and Safari < 5.1 `arguments` object * indexes are non-enumerable. Chrome < 25 and Node.js < 0.11.0 treat * `arguments` object indexes as non-enumerable and fail `hasOwnProperty` - * checks for indexes that exceed their function's formal parameters with - * associated values of `0`. + * checks for indexes that exceed the number of function parameters and + * whose associated argument values are `0`. * * @memberOf _.support * @type boolean @@ -56,6 +62,6 @@ var support = {}; } catch(e) { support.nonEnumArgs = true; } -}(0, 0)); +}(1, 0)); module.exports = support; diff --git a/lodash.support/package.json b/lodash.support/package.json index ebf4bbda8..a4875f6ad 100644 --- a/lodash.support/package.json +++ b/lodash.support/package.json @@ -1,6 +1,6 @@ { "name": "lodash.support", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.support` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.takerightwhile/LICENSE.txt b/lodash.takerightwhile/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.takerightwhile/LICENSE.txt +++ b/lodash.takerightwhile/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.takerightwhile/README.md b/lodash.takerightwhile/README.md index 5ef91a298..69195d24a 100644 --- a/lodash.takerightwhile/README.md +++ b/lodash.takerightwhile/README.md @@ -1,4 +1,4 @@ -# lodash.takerightwhile v3.0.0 +# lodash.takerightwhile v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.takeRightWhile` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var takeRightWhile = require('lodash.takerightwhile'); ``` -See the [documentation](https://lodash.com/docs#takeRightWhile) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.takerightwhile) for more details. +See the [documentation](https://lodash.com/docs#takeRightWhile) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.takerightwhile) for more details. diff --git a/lodash.takerightwhile/index.js b/lodash.takerightwhile/index.js index 6854fad4e..0e15953ca 100644 --- a/lodash.takerightwhile/index.js +++ b/lodash.takerightwhile/index.js @@ -1,18 +1,39 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ var baseCallback = require('lodash._basecallback'), baseSlice = require('lodash._baseslice'); +/** + * The base implementation of `_.dropRightWhile`, `_.dropWhile`, `_.takeRightWhile`, + * and `_.takeWhile` without support for callback shorthands and `this` binding. + * + * @private + * @param {Array} array The array to query. + * @param {Function} predicate The function invoked per iteration. + * @param {boolean} [isDrop] Specify dropping elements instead of taking them. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Array} Returns the slice of `array`. + */ +function baseWhile(array, predicate, isDrop, fromRight) { + var length = array.length, + index = fromRight ? length : -1; + + while ((fromRight ? index-- : ++index < length) && predicate(array[index], index, array)) {} + return isDrop + ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length)) + : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index)); +} + /** * Creates a slice of `array` with elements taken from the end. Elements are * taken until `predicate` returns falsey. The predicate is bound to `thisArg` - * and invoked with three arguments; (value, index, array). + * and invoked with three arguments: (value, index, array). * * If a property name is provided for `predicate` the created `_.property` * style callback returns the property value of the given element. @@ -59,13 +80,9 @@ var baseCallback = require('lodash._basecallback'), * // => [] */ function takeRightWhile(array, predicate, thisArg) { - var length = array ? array.length : 0; - if (!length) { - return []; - } - predicate = baseCallback(predicate, thisArg, 3); - while (length-- && predicate(array[length], length, array)) {} - return baseSlice(array, length + 1); + return (array && array.length) + ? baseWhile(array, baseCallback(predicate, thisArg, 3), false, true) + : []; } module.exports = takeRightWhile; diff --git a/lodash.takerightwhile/package.json b/lodash.takerightwhile/package.json index 0d2990d3b..ee5953bf2 100644 --- a/lodash.takerightwhile/package.json +++ b/lodash.takerightwhile/package.json @@ -1,6 +1,6 @@ { "name": "lodash.takerightwhile", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.takeRightWhile` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.takewhile/LICENSE.txt b/lodash.takewhile/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.takewhile/LICENSE.txt +++ b/lodash.takewhile/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.takewhile/README.md b/lodash.takewhile/README.md index 1d305845e..5f5899b67 100644 --- a/lodash.takewhile/README.md +++ b/lodash.takewhile/README.md @@ -1,4 +1,4 @@ -# lodash.takewhile v3.0.0 +# lodash.takewhile v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.takeWhile` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var takeWhile = require('lodash.takewhile'); ``` -See the [documentation](https://lodash.com/docs#takeWhile) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.takewhile) for more details. +See the [documentation](https://lodash.com/docs#takeWhile) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.takewhile) for more details. diff --git a/lodash.takewhile/index.js b/lodash.takewhile/index.js index cba1c8abc..cb2b7480a 100644 --- a/lodash.takewhile/index.js +++ b/lodash.takewhile/index.js @@ -1,18 +1,39 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ var baseCallback = require('lodash._basecallback'), baseSlice = require('lodash._baseslice'); +/** + * The base implementation of `_.dropRightWhile`, `_.dropWhile`, `_.takeRightWhile`, + * and `_.takeWhile` without support for callback shorthands and `this` binding. + * + * @private + * @param {Array} array The array to query. + * @param {Function} predicate The function invoked per iteration. + * @param {boolean} [isDrop] Specify dropping elements instead of taking them. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Array} Returns the slice of `array`. + */ +function baseWhile(array, predicate, isDrop, fromRight) { + var length = array.length, + index = fromRight ? length : -1; + + while ((fromRight ? index-- : ++index < length) && predicate(array[index], index, array)) {} + return isDrop + ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length)) + : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index)); +} + /** * Creates a slice of `array` with elements taken from the beginning. Elements * are taken until `predicate` returns falsey. The predicate is bound to - * `thisArg` and invoked with three arguments; (value, index, array). + * `thisArg` and invoked with three arguments: (value, index, array). * * If a property name is provided for `predicate` the created `_.property` * style callback returns the property value of the given element. @@ -59,14 +80,9 @@ var baseCallback = require('lodash._basecallback'), * // => [] */ function takeWhile(array, predicate, thisArg) { - var length = array ? array.length : 0; - if (!length) { - return []; - } - var index = -1; - predicate = baseCallback(predicate, thisArg, 3); - while (++index < length && predicate(array[index], index, array)) {} - return baseSlice(array, 0, index); + return (array && array.length) + ? baseWhile(array, baseCallback(predicate, thisArg, 3)) + : []; } module.exports = takeWhile; diff --git a/lodash.takewhile/package.json b/lodash.takewhile/package.json index 33e535e02..1eb3ec3a8 100644 --- a/lodash.takewhile/package.json +++ b/lodash.takewhile/package.json @@ -1,6 +1,6 @@ { "name": "lodash.takewhile", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.takeWhile` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.template/README.md b/lodash.template/README.md index 3b721529b..9dabe1f76 100644 --- a/lodash.template/README.md +++ b/lodash.template/README.md @@ -1,4 +1,4 @@ -# lodash.template v3.0.0 +# lodash.template v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.template` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var template = require('lodash.template'); ``` -See the [documentation](https://lodash.com/docs#template) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.template) for more details. +See the [documentation](https://lodash.com/docs#template) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.template) for more details. diff --git a/lodash.template/index.js b/lodash.template/index.js index ca3c3f156..cc90c6a81 100644 --- a/lodash.template/index.js +++ b/lodash.template/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -10,9 +10,9 @@ var baseCopy = require('lodash._basecopy'), baseToString = require('lodash._basetostring'), baseValues = require('lodash._basevalues'), isIterateeCall = require('lodash._isiterateecall'), + reInterpolate = require('lodash._reinterpolate'), isError = require('lodash.iserror'), keys = require('lodash.keys'), - reInterpolate = require('lodash.reinterpolate'), templateSettings = require('lodash.templatesettings'); /** Used to match empty string literals in compiled template source. */ diff --git a/lodash.template/package.json b/lodash.template/package.json index f0c3eb99c..3ffdd5593 100644 --- a/lodash.template/package.json +++ b/lodash.template/package.json @@ -1,6 +1,6 @@ { "name": "lodash.template", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.template` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -21,9 +21,9 @@ "lodash._basetostring": "^3.0.0", "lodash._basevalues": "^3.0.0", "lodash._isiterateecall": "^3.0.0", + "lodash._reinterpolate": "^3.0.0", "lodash.iserror": "^3.0.0", "lodash.keys": "^3.0.0", - "lodash.reinterpolate": "^3.0.0", "lodash.templatesettings": "^3.0.0" } } diff --git a/lodash.templatesettings/README.md b/lodash.templatesettings/README.md index e56f981ce..a07e60308 100644 --- a/lodash.templatesettings/README.md +++ b/lodash.templatesettings/README.md @@ -1,4 +1,4 @@ -# lodash.templatesettings v3.0.0 +# lodash.templatesettings v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.templateSettings` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var templateSettings = require('lodash.templatesettings'); ``` -See the [documentation](https://lodash.com/docs#templateSettings) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.templatesettings) for more details. +See the [documentation](https://lodash.com/docs#templateSettings) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.templatesettings) for more details. diff --git a/lodash.templatesettings/index.js b/lodash.templatesettings/index.js index d1d2e684f..6cc49a6cd 100644 --- a/lodash.templatesettings/index.js +++ b/lodash.templatesettings/index.js @@ -1,15 +1,15 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ -var escape = require('lodash.escape'), - reEscape = require('lodash.reescape'), - reEvaluate = require('lodash.reevaluate'), - reInterpolate = require('lodash.reinterpolate'); +var reEscape = require('lodash._reescape'), + reEvaluate = require('lodash._reevaluate'), + reInterpolate = require('lodash._reinterpolate'), + escape = require('lodash.escape'); /** * By default, the template delimiters used by lodash are like those in diff --git a/lodash.templatesettings/package.json b/lodash.templatesettings/package.json index 6d4c5887c..1f737e8d2 100644 --- a/lodash.templatesettings/package.json +++ b/lodash.templatesettings/package.json @@ -1,6 +1,6 @@ { "name": "lodash.templatesettings", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.templateSettings` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -17,9 +17,9 @@ "repository": "lodash/lodash", "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, "dependencies": { - "lodash.escape": "^3.0.0", - "lodash.reescape": "^3.0.0", - "lodash.reevaluate": "^3.0.0", - "lodash.reinterpolate": "^3.0.0" + "lodash._reescape": "^3.0.0", + "lodash._reevaluate": "^3.0.0", + "lodash._reinterpolate": "^3.0.0", + "lodash.escape": "^3.0.0" } } diff --git a/lodash.throttle/README.md b/lodash.throttle/README.md index e3a27e0f9..4f15501cc 100644 --- a/lodash.throttle/README.md +++ b/lodash.throttle/README.md @@ -1,4 +1,4 @@ -# lodash.throttle v3.0.0 +# lodash.throttle v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.throttle` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var throttle = require('lodash.throttle'); ``` -See the [documentation](https://lodash.com/docs#throttle) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.throttle) for more details. +See the [documentation](https://lodash.com/docs#throttle) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.throttle) for more details. diff --git a/lodash.throttle/index.js b/lodash.throttle/index.js index 81257745f..889659f5d 100644 --- a/lodash.throttle/index.js +++ b/lodash.throttle/index.js @@ -1,13 +1,12 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ -var debounce = require('lodash.debounce'), - isFunction = require('lodash.isfunction'); +var debounce = require('lodash.debounce'); /** Used as the `TypeError` message for "Functions" methods. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -38,7 +37,7 @@ var debounceOptions = { * @memberOf _ * @category Function * @param {Function} func The function to throttle. - * @param {number} wait The number of milliseconds to throttle invocations to. + * @param {number} [wait=0] The number of milliseconds to throttle invocations to. * @param {Object} [options] The options object. * @param {boolean} [options.leading=true] Specify invoking on the leading * edge of the timeout. @@ -51,8 +50,9 @@ var debounceOptions = { * jQuery(window).on('scroll', _.throttle(updatePosition, 100)); * * // invoke `renewToken` when the click event is fired, but not more than once every 5 minutes - * var throttled = _.throttle(renewToken, 300000, { 'trailing': false }) - * jQuery('.interactive').on('click', throttled); + * jQuery('.interactive').on('click', _.throttle(renewToken, 300000, { + * 'trailing': false + * })); * * // cancel a trailing throttled call * jQuery(window).on('popstate', throttled.cancel); @@ -61,7 +61,7 @@ function throttle(func, wait, options) { var leading = true, trailing = true; - if (!isFunction(func)) { + if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } if (options === false) { diff --git a/lodash.throttle/package.json b/lodash.throttle/package.json index 29422fbfa..e57548773 100644 --- a/lodash.throttle/package.json +++ b/lodash.throttle/package.json @@ -1,6 +1,6 @@ { "name": "lodash.throttle", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.throttle` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -17,7 +17,6 @@ "repository": "lodash/lodash", "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, "dependencies": { - "lodash.debounce": "^3.0.0", - "lodash.isfunction": "^3.0.0" + "lodash.debounce": "^3.0.0" } } diff --git a/lodash.times/LICENSE.txt b/lodash.times/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.times/LICENSE.txt +++ b/lodash.times/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.times/README.md b/lodash.times/README.md index 1538c6713..b792c4e04 100644 --- a/lodash.times/README.md +++ b/lodash.times/README.md @@ -1,4 +1,4 @@ -# lodash.times v3.0.0 +# lodash.times v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.times` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var times = require('lodash.times'); ``` -See the [documentation](https://lodash.com/docs#times) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.times) for more details. +See the [documentation](https://lodash.com/docs#times) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.times) for more details. diff --git a/lodash.times/index.js b/lodash.times/index.js index 2b6c31073..c8606e329 100644 --- a/lodash.times/index.js +++ b/lodash.times/index.js @@ -1,13 +1,16 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ var bindCallback = require('lodash._bindcallback'); +/** Native method references. */ +var floor = Math.floor; + /* Native method references for those with the same name as other `lodash` methods. */ var nativeIsFinite = global.isFinite, nativeMin = Math.min; @@ -35,7 +38,7 @@ var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1; * _.times(3, function(n) { * mage.castSpell(n); * }); - * // => invokes `mage.castSpell(n)` three times with `n` of `0`, `1`, and `2` respectively + * // => invokes `mage.castSpell(n)` three times with `n` of `0`, `1`, and `2` * * _.times(3, function(n) { * this.cast(n); @@ -43,7 +46,7 @@ var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1; * // => also invokes `mage.castSpell(n)` three times */ function times(n, iteratee, thisArg) { - n = +n; + n = floor(n); // Exit early to avoid a JSC JIT bug in Safari 8 // where `Array(0)` is treated as `Array(1)`. diff --git a/lodash.times/package.json b/lodash.times/package.json index 4c251b60d..10e22aaea 100644 --- a/lodash.times/package.json +++ b/lodash.times/package.json @@ -1,6 +1,6 @@ { "name": "lodash.times", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.times` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.toarray/LICENSE.txt b/lodash.toarray/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.toarray/LICENSE.txt +++ b/lodash.toarray/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.toarray/README.md b/lodash.toarray/README.md index d5caa46f5..d5cabb980 100644 --- a/lodash.toarray/README.md +++ b/lodash.toarray/README.md @@ -1,4 +1,4 @@ -# lodash.toarray v3.0.0 +# lodash.toarray v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.toArray` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var toArray = require('lodash.toarray'); ``` -See the [documentation](https://lodash.com/docs#toArray) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.toarray) for more details. +See the [documentation](https://lodash.com/docs#toArray) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.toarray) for more details. diff --git a/lodash.toarray/index.js b/lodash.toarray/index.js index 97cc8aa23..9d31024bd 100644 --- a/lodash.toarray/index.js +++ b/lodash.toarray/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -16,6 +16,31 @@ var arrayCopy = require('lodash._arraycopy'), */ var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; +/** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new function. + */ +function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; +} + +/** + * Gets the "length" property value of `object`. + * + * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) + * that affects Safari on at least iOS 8.1-8.3 ARM64. + * + * @private + * @param {Object} object The object to query. + * @returns {*} Returns the "length" value. + */ +var getLength = baseProperty('length'); + /** * Checks if `value` is a valid array-like length. * @@ -45,7 +70,7 @@ function isLength(value) { * // => [2, 3] */ function toArray(value) { - var length = value ? value.length : 0; + var length = value ? getLength(value) : 0; if (!isLength(length)) { return values(value); } diff --git a/lodash.toarray/package.json b/lodash.toarray/package.json index c558d9444..4b74bb79c 100644 --- a/lodash.toarray/package.json +++ b/lodash.toarray/package.json @@ -1,6 +1,6 @@ { "name": "lodash.toarray", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.toArray` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.transform/README.md b/lodash.transform/README.md index 17ec0c6af..0ccb779e6 100644 --- a/lodash.transform/README.md +++ b/lodash.transform/README.md @@ -1,4 +1,4 @@ -# lodash.transform v3.0.0 +# lodash.transform v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.transform` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var transform = require('lodash.transform'); ``` -See the [documentation](https://lodash.com/docs#transform) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.transform) for more details. +See the [documentation](https://lodash.com/docs#transform) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.transform) for more details. diff --git a/lodash.transform/index.js b/lodash.transform/index.js index 34a62985a..a269c9cab 100644 --- a/lodash.transform/index.js +++ b/lodash.transform/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -11,6 +11,7 @@ var arrayEach = require('lodash._arrayeach'), baseCreate = require('lodash._basecreate'), baseFor = require('lodash._basefor'), isArray = require('lodash.isarray'), + isFunction = require('lodash.isfunction'), isTypedArray = require('lodash.istypedarray'), keys = require('lodash.keys'); @@ -74,18 +75,16 @@ function isObject(value) { * @returns {*} Returns the accumulated value. * @example * - * var squares = _.transform([1, 2, 3, 4, 5, 6], function(result, n) { - * n *= n; - * if (n % 2) { - * return result.push(n) < 3; - * } + * _.transform([2, 3, 4], function(result, n) { + * result.push(n *= n); + * return n % 2 == 0; * }); - * // => [1, 9, 25] + * // => [4, 9] * - * var mapped = _.transform({ 'a': 1, 'b': 2, 'c': 3 }, function(result, n, key) { + * _.transform({ 'a': 1, 'b': 2 }, function(result, n, key) { * result[key] = n * 3; * }); - * // => { 'a': 3, 'b': 6, 'c': 9 } + * // => { 'a': 3, 'b': 6 } */ function transform(object, iteratee, accumulator, thisArg) { var isArr = isArray(object) || isTypedArray(object); @@ -97,7 +96,7 @@ function transform(object, iteratee, accumulator, thisArg) { if (isArr) { accumulator = isArray(object) ? new Ctor : []; } else { - accumulator = baseCreate(typeof Ctor == 'function' && Ctor.prototype); + accumulator = baseCreate(isFunction(Ctor) && Ctor.prototype); } } else { accumulator = {}; diff --git a/lodash.transform/package.json b/lodash.transform/package.json index 52c374990..b07d5e038 100644 --- a/lodash.transform/package.json +++ b/lodash.transform/package.json @@ -1,6 +1,6 @@ { "name": "lodash.transform", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.transform` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", @@ -22,6 +22,7 @@ "lodash._basecreate": "^3.0.0", "lodash._basefor": "^3.0.0", "lodash.isarray": "^3.0.0", + "lodash.isfunction": "^3.0.0", "lodash.istypedarray": "^3.0.0", "lodash.keys": "^3.0.0" } diff --git a/lodash.trim/README.md b/lodash.trim/README.md index 731cb0595..c9446fb5e 100644 --- a/lodash.trim/README.md +++ b/lodash.trim/README.md @@ -1,4 +1,4 @@ -# lodash.trim v3.0.0 +# lodash.trim v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.trim` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var trim = require('lodash.trim'); ``` -See the [documentation](https://lodash.com/docs#trim) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.trim) for more details. +See the [documentation](https://lodash.com/docs#trim) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.trim) for more details. diff --git a/lodash.trim/index.js b/lodash.trim/index.js index 32ea0ce68..e001a540d 100644 --- a/lodash.trim/index.js +++ b/lodash.trim/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -32,7 +32,7 @@ var baseToString = require('lodash._basetostring'), * // => 'abc' * * _.map([' foo ', ' bar '], _.trim); - * // => ['foo', 'bar] + * // => ['foo', 'bar'] */ function trim(string, chars, guard) { var value = string; @@ -43,7 +43,7 @@ function trim(string, chars, guard) { if (guard ? isIterateeCall(value, chars, guard) : chars == null) { return string.slice(trimmedLeftIndex(string), trimmedRightIndex(string) + 1); } - chars = baseToString(chars); + chars = (chars + ''); return string.slice(charsLeftIndex(string, chars), charsRightIndex(string, chars) + 1); } diff --git a/lodash.trim/package.json b/lodash.trim/package.json index f60c2c01e..2a41ee73c 100644 --- a/lodash.trim/package.json +++ b/lodash.trim/package.json @@ -1,6 +1,6 @@ { "name": "lodash.trim", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.trim` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.trimleft/README.md b/lodash.trimleft/README.md index ff61bab75..e960e87ef 100644 --- a/lodash.trimleft/README.md +++ b/lodash.trimleft/README.md @@ -1,4 +1,4 @@ -# lodash.trimleft v3.0.0 +# lodash.trimleft v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.trimLeft` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var trimLeft = require('lodash.trimleft'); ``` -See the [documentation](https://lodash.com/docs#trimLeft) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.trimleft) for more details. +See the [documentation](https://lodash.com/docs#trimLeft) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.trimleft) for more details. diff --git a/lodash.trimleft/index.js b/lodash.trimleft/index.js index 37f54fe54..3dcb2ef6c 100644 --- a/lodash.trimleft/index.js +++ b/lodash.trimleft/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -38,7 +38,7 @@ function trimLeft(string, chars, guard) { if (guard ? isIterateeCall(value, chars, guard) : chars == null) { return string.slice(trimmedLeftIndex(string)) } - return string.slice(charsLeftIndex(string, baseToString(chars))); + return string.slice(charsLeftIndex(string, (chars + ''))); } module.exports = trimLeft; diff --git a/lodash.trimleft/package.json b/lodash.trimleft/package.json index eae1ae8e4..dda04609c 100644 --- a/lodash.trimleft/package.json +++ b/lodash.trimleft/package.json @@ -1,6 +1,6 @@ { "name": "lodash.trimleft", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.trimLeft` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.trimright/README.md b/lodash.trimright/README.md index 2b66123fe..d59c6ce8f 100644 --- a/lodash.trimright/README.md +++ b/lodash.trimright/README.md @@ -1,4 +1,4 @@ -# lodash.trimright v3.0.0 +# lodash.trimright v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.trimRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var trimRight = require('lodash.trimright'); ``` -See the [documentation](https://lodash.com/docs#trimRight) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.trimright) for more details. +See the [documentation](https://lodash.com/docs#trimRight) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.trimright) for more details. diff --git a/lodash.trimright/index.js b/lodash.trimright/index.js index 8ae56e22d..6e2b22d63 100644 --- a/lodash.trimright/index.js +++ b/lodash.trimright/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -38,7 +38,7 @@ function trimRight(string, chars, guard) { if (guard ? isIterateeCall(value, chars, guard) : chars == null) { return string.slice(0, trimmedRightIndex(string) + 1) } - return string.slice(0, charsRightIndex(string, baseToString(chars)) + 1); + return string.slice(0, charsRightIndex(string, (chars + '')) + 1); } module.exports = trimRight; diff --git a/lodash.trimright/package.json b/lodash.trimright/package.json index 9fc9b26dc..5e91aa05f 100644 --- a/lodash.trimright/package.json +++ b/lodash.trimright/package.json @@ -1,6 +1,6 @@ { "name": "lodash.trimright", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.trimRight` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.trunc/LICENSE.txt b/lodash.trunc/LICENSE.txt index 17764328c..9cd87e5dc 100644 --- a/lodash.trunc/LICENSE.txt +++ b/lodash.trunc/LICENSE.txt @@ -1,5 +1,5 @@ Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining diff --git a/lodash.trunc/README.md b/lodash.trunc/README.md index 287e85a06..8bf972f7e 100644 --- a/lodash.trunc/README.md +++ b/lodash.trunc/README.md @@ -1,4 +1,4 @@ -# lodash.trunc v3.0.0 +# lodash.trunc v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.trunc` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var trunc = require('lodash.trunc'); ``` -See the [documentation](https://lodash.com/docs#trunc) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.trunc) for more details. +See the [documentation](https://lodash.com/docs#trunc) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.trunc) for more details. diff --git a/lodash.trunc/index.js b/lodash.trunc/index.js index 9e0616dee..cb0486d7c 100644 --- a/lodash.trunc/index.js +++ b/lodash.trunc/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -96,7 +96,7 @@ function trunc(string, options, guard) { if (options != null) { if (isObject(options)) { var separator = 'separator' in options ? options.separator : separator; - length = 'length' in options ? +options.length || 0 : length; + length = 'length' in options ? (+options.length || 0) : length; omission = 'omission' in options ? baseToString(options.omission) : omission; } else { length = +options || 0; diff --git a/lodash.trunc/package.json b/lodash.trunc/package.json index 3c6e6b44e..a4c65a38b 100644 --- a/lodash.trunc/package.json +++ b/lodash.trunc/package.json @@ -1,6 +1,6 @@ { "name": "lodash.trunc", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.trunc` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.union/README.md b/lodash.union/README.md index f3ac7d741..25e8ff485 100644 --- a/lodash.union/README.md +++ b/lodash.union/README.md @@ -1,4 +1,4 @@ -# lodash.union v3.0.0 +# lodash.union v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.union` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var union = require('lodash.union'); ``` -See the [documentation](https://lodash.com/docs#union) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.union) for more details. +See the [documentation](https://lodash.com/docs#union) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.union) for more details. diff --git a/lodash.union/index.js b/lodash.union/index.js index 1990e2bf9..b8c0d48e5 100644 --- a/lodash.union/index.js +++ b/lodash.union/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -29,7 +29,7 @@ var baseFlatten = require('lodash._baseflatten'), * // => [1, 2, 4] */ function union() { - return baseUniq(baseFlatten(arguments, false, true)); + return baseUniq(baseFlatten(arguments, false, true, 0)); } module.exports = union; diff --git a/lodash.union/package.json b/lodash.union/package.json index de5202de0..4c7870065 100644 --- a/lodash.union/package.json +++ b/lodash.union/package.json @@ -1,6 +1,6 @@ { "name": "lodash.union", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.union` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.uniq/README.md b/lodash.uniq/README.md index 8482c27c1..3e55344a9 100644 --- a/lodash.uniq/README.md +++ b/lodash.uniq/README.md @@ -1,4 +1,4 @@ -# lodash.uniq v3.0.0 +# lodash.uniq v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.uniq` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var uniq = require('lodash.uniq'); ``` -See the [documentation](https://lodash.com/docs#uniq) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.uniq) for more details. +See the [documentation](https://lodash.com/docs#uniq) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.uniq) for more details. diff --git a/lodash.uniq/index.js b/lodash.uniq/index.js index 100fbc937..9c4a3bf16 100644 --- a/lodash.uniq/index.js +++ b/lodash.uniq/index.js @@ -1,5 +1,5 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation * Based on Underscore.js 1.7.0 @@ -44,23 +44,22 @@ function sortedUniq(array, iteratee) { * search algorithm for sorted arrays. If an iteratee function is provided it * is invoked for each value in the array to generate the criterion by which * uniqueness is computed. The `iteratee` is bound to `thisArg` and invoked - * with three arguments; (value, index, array). + * with three arguments: (value, index, array). * - * If a property name is provided for `predicate` the created `_.property` + * If a property name is provided for `iteratee` the created `_.property` * style callback returns the property value of the given element. * * If a value is also provided for `thisArg` the created `_.matchesProperty` * style callback returns `true` for elements that have a matching property * value, else `false`. * - * If an object is provided for `predicate` the created `_.matches` style + * If an object is provided for `iteratee` the created `_.matches` style * callback returns `true` for elements that have the properties of the given * object, else `false`. * - * **Note:** `SameValueZero` comparisons are like strict equality comparisons, - * e.g. `===`, except that `NaN` matches `NaN`. See the - * [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) - * for more details. + * **Note:** [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) + * comparisons are like strict equality comparisons, e.g. `===`, except that + * `NaN` matches `NaN`. * * @static * @memberOf _ @@ -81,7 +80,9 @@ function sortedUniq(array, iteratee) { * // => [1, 2] * * // using an iteratee function - * _.uniq([1, 2.5, 1.5, 2], function(n) { return this.floor(n); }, Math); + * _.uniq([1, 2.5, 1.5, 2], function(n) { + * return this.floor(n); + * }, Math); * // => [1, 2.5] * * // using the `_.property` callback shorthand @@ -93,8 +94,7 @@ function uniq(array, isSorted, iteratee, thisArg) { if (!length) { return []; } - // Juggle arguments. - if (typeof isSorted != 'boolean' && isSorted != null) { + if (isSorted != null && typeof isSorted != 'boolean') { thisArg = iteratee; iteratee = isIterateeCall(array, isSorted, thisArg) ? null : isSorted; isSorted = false; diff --git a/lodash.uniq/package.json b/lodash.uniq/package.json index e25342e59..f5bd6eb67 100644 --- a/lodash.uniq/package.json +++ b/lodash.uniq/package.json @@ -1,6 +1,6 @@ { "name": "lodash.uniq", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.uniq` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.words/README.md b/lodash.words/README.md index 17af5ea5e..4ca06c9db 100644 --- a/lodash.words/README.md +++ b/lodash.words/README.md @@ -1,4 +1,4 @@ -# lodash.words v3.0.0 +# lodash.words v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.words` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var words = require('lodash.words'); ``` -See the [documentation](https://lodash.com/docs#words) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.words) for more details. +See the [documentation](https://lodash.com/docs#words) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.words) for more details. diff --git a/lodash.words/index.js b/lodash.words/index.js index 4e05326a5..72f43a055 100644 --- a/lodash.words/index.js +++ b/lodash.words/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.2 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -14,7 +14,7 @@ var reWords = (function() { var upper = '[A-Z\\xc0-\\xd6\\xd8-\\xde]', lower = '[a-z\\xdf-\\xf6\\xf8-\\xff]+'; - return RegExp(upper + '{2,}(?=' + upper + lower + ')|' + upper + '?' + lower + '|' + upper + '+|[0-9]+', 'g'); + return RegExp(upper + '+(?=' + upper + lower + ')|' + upper + '?' + lower + '|' + upper + '+|[0-9]+', 'g'); }()); /** diff --git a/lodash.words/package.json b/lodash.words/package.json index d836cbab0..ea937b3c1 100644 --- a/lodash.words/package.json +++ b/lodash.words/package.json @@ -1,6 +1,6 @@ { "name": "lodash.words", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.words` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg", diff --git a/lodash.wrap/LICENSE b/lodash.wrap/LICENSE new file mode 100644 index 000000000..9cd87e5dc --- /dev/null +++ b/lodash.wrap/LICENSE @@ -0,0 +1,22 @@ +Copyright 2012-2015 The Dojo Foundation +Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash.wrap/LICENSE.txt b/lodash.wrap/LICENSE.txt deleted file mode 100644 index 17764328c..000000000 --- a/lodash.wrap/LICENSE.txt +++ /dev/null @@ -1,22 +0,0 @@ -Copyright 2012-2015 The Dojo Foundation -Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/lodash.wrap/README.md b/lodash.wrap/README.md index 61a8e8fe5..bb7efc09a 100644 --- a/lodash.wrap/README.md +++ b/lodash.wrap/README.md @@ -1,4 +1,4 @@ -# lodash.wrap v3.0.0 +# lodash.wrap v3.0.1 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.wrap` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var wrap = require('lodash.wrap'); ``` -See the [documentation](https://lodash.com/docs#wrap) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.wrap) for more details. +See the [documentation](https://lodash.com/docs#wrap) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.wrap) for more details. diff --git a/lodash.wrap/index.js b/lodash.wrap/index.js index 70ed01c13..5c77d048b 100644 --- a/lodash.wrap/index.js +++ b/lodash.wrap/index.js @@ -1,8 +1,8 @@ /** - * lodash 3.0.0 (Custom Build) + * lodash 3.0.1 (Custom Build) * Build: `lodash modern modularize exports="npm" -o ./` * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.7.0 + * Based on Underscore.js 1.8.3 * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license */ @@ -34,7 +34,7 @@ var PARTIAL_FLAG = 32; */ function wrap(value, wrapper) { wrapper = wrapper == null ? identity : wrapper; - return createWrapper(wrapper, PARTIAL_FLAG, null, [value], []); + return createWrapper(wrapper, PARTIAL_FLAG, undefined, [value], []); } /** diff --git a/lodash.wrap/package.json b/lodash.wrap/package.json index 5567303d5..0e42a212f 100644 --- a/lodash.wrap/package.json +++ b/lodash.wrap/package.json @@ -1,6 +1,6 @@ { "name": "lodash.wrap", - "version": "3.0.0", + "version": "3.0.1", "description": "The modern build of lodash’s `_.wrap` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg",