Skip to content

Commit 379af58

Browse files
committed
object-assign polyfill
1 parent a0e126c commit 379af58

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"mocha": "^2.2.5"
3131
},
3232
"dependencies": {
33+
"object-assign": "^4.1.0",
3334
"reduce-reducers": "^0.1.0"
3435
}
3536
}

src/createAPIAction.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const objectAssign = require('object-assign');
12

23
/**
34
* Returns the endpoint based on HTTP Verb
@@ -71,10 +72,9 @@ export default function createAPIAction(type, method, endpoint, actionCreator, m
7172

7273
if (typeof metaCreator === 'function') {
7374
action.meta = metaCreator(action.payload);
74-
7575
}
7676

77-
action.meta = Object.assign({}, action.meta, {
77+
action.meta = objectAssign({}, action.meta, {
7878
api: true,
7979
endpoint: finalEndpoint,
8080
method,

0 commit comments

Comments
 (0)