Skip to content

Commit e39e45b

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

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

lib/store.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ function MemoryStore () {
6262
},
6363
update: {
6464
value: function (path, data, cb) {
65-
Object.assign(routes[path], data);
65+
for (var key in data) {
66+
routes[path][key] = data[key];
67+
}
68+
6669
this.notify(cb);
6770
}
6871
},

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)