Skip to content

Commit 9f03146

Browse files
committed
Object.assign not available in 0.1x releases
1 parent b36c51a commit 9f03146

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

lib/store.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@ function MemoryStore () {
6262
},
6363
update: {
6464
value: function (path, data, cb) {
65-
Object.assign(routes[path], data);
65+
for (var key in data) {
66+
if (data.hasOwnProperty(key)) {
67+
routes[path][key] = data[key];
68+
}
69+
}
70+
6671
this.notify(cb);
6772
}
6873
},

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"files": [
2727
"index.js",
2828
"lib/configproxy.js",
29+
"lib/store.js",
2930
"lib/trie.js",
3031
"lib/error/*.html",
3132
"bin/configurable-http-proxy"

test/jasmine.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"spec_dir": "test",
33
"stopSpecOnExpectationFailure": false,
4-
"random": false,
54
"spec_files": ["*spec.js"]
65
}

0 commit comments

Comments
 (0)