Skip to content

Commit

Permalink
remove object-assign dependency, it is not used, move react to peerDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
fiskus committed Dec 30, 2015
1 parent 0daf96d commit 332bec0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
3 changes: 0 additions & 3 deletions lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ function getRange (start, end) {
return output;
}

var assignObject = Object.assign || require('object-assign');

function forEachInObject (obj, func) {
var keys = Object.keys(obj);
var keysLength = keys.length;
Expand All @@ -51,7 +49,6 @@ function forEachInObject (obj, func) {
}

module.exports = {
assignObject,
forEachInObject,
getClassName,
getRange
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
"phantomjs": "^1.9.18"
},
"dependencies": {
"moment": "^2.10.6",
"object-assign": "^4.0.1",
"moment": "^2.10.6"
},
"peerDependencies": {
"react": "^0.14",
"react-dom": "^0.14.0"
},
Expand Down
9 changes: 0 additions & 9 deletions specs/helpers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,6 @@ describe('Helpers', function () {
expect(H.getRange(3, 6)).toEqual([3, 4, 5, 6]);
});

it('assignObject', function () {
// jscs:disable requirePaddingNewLinesInObjects
expect(H.assignObject({a: 1}, {b: 2}, {c: 3})).toEqual({
a: 1,
b: 2,
c: 3
});
});

it('forEachInObject', function () {
var obj = {
a: 1,
Expand Down

0 comments on commit 332bec0

Please sign in to comment.