Skip to content

Commit

Permalink
deps: remove object-assign
Browse files Browse the repository at this point in the history
  • Loading branch information
bjohansebas committed Dec 6, 2024
1 parent 4e8e083 commit 97662fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ var Negotiator = require('negotiator')
var Buffer = require('safe-buffer').Buffer
var bytes = require('bytes')
var compressible = require('compressible')
var objectAssign = require('object-assign')
var debug = require('debug')('compression')
var onHeaders = require('on-headers')
var vary = require('vary')
Expand Down Expand Up @@ -57,9 +56,11 @@ var encodingSupported = ['*', 'gzip', 'deflate', 'identity', 'br']

function compression (options) {
var opts = options || {}
var optsBrotli = objectAssign({}, opts.brotli)
var optsBrotli = {}

if (hasBrotliSupport) {
Object.assign(optsBrotli, opts.brotli)

var brotliParams = {}
brotliParams[zlib.constants.BROTLI_PARAM_QUALITY] = 4

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"compressible": "~2.0.18",
"debug": "2.6.9",
"negotiator": "~0.6.4",
"object-assign": "~4.1.1",
"on-headers": "~1.0.2",
"safe-buffer": "5.2.1",
"vary": "~1.1.2"
Expand Down

0 comments on commit 97662fd

Please sign in to comment.