Skip to content

Commit b107767

Browse files
committed
Using object-assign polyfill
1 parent 156d76a commit b107767

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ var fs = require('fs'),
1212
https = require('https'),
1313
path = require('path'),
1414
connected = require('connected'),
15-
errs = require('errs');
15+
errs = require('errs'),
16+
assign = require('object-assign');
1617

1718
var CIPHERS = [
1819
'ECDHE-RSA-AES256-SHA384',
@@ -143,7 +144,7 @@ module.exports = function createServers(options, listening) {
143144
ca = [ca];
144145
}
145146

146-
var finalHttpsOptions = Object.assign({}, ssl, {
147+
var finalHttpsOptions = assign({}, ssl, {
147148
//
148149
// Load default SSL key, cert and ca(s).
149150
//

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"homepage": "https://github.com/indexzero/create-servers",
2424
"dependencies": {
2525
"connected": "~0.0.2",
26-
"errs": "~0.3.0"
26+
"errs": "~0.3.0",
27+
"object-assign": "^4.1.0"
2728
},
2829
"devDependencies": {
2930
"sinon": "^1.17.4",

0 commit comments

Comments
 (0)