Skip to content

Commit

Permalink
Merge pull request #40 from errorception/drop-node-6
Browse files Browse the repository at this point in the history
Drop Node.js 6 support
  • Loading branch information
rakeshpai committed Sep 30, 2019
2 parents 535ecdc + 3b92a37 commit 27a5338
Show file tree
Hide file tree
Showing 4 changed files with 1,065 additions and 739 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [6, 8.16.1, 10, 12]
node: [8.16.1, 10, 12]
os: [ubuntu-latest, windows-latest]

steps:
Expand All @@ -25,7 +25,7 @@ jobs:
- run: npm --version

- name: Install npm dependencies
run: npm install # switch to `npm ci` when Node.js 6.x is dropped
run: npm ci
env:
CI: true

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const staticify = (root, options) => {
defaultOptions.sendOptions.root = root;
defaultOptions.sendOptions.maxAge = defaultOptions.sendOptions.maxAge || MAX_AGE;

sendOptsNonVersioned = Object.assign({}, defaultOptions.sendOptions);
sendOptsNonVersioned = {...defaultOptions.sendOptions};
sendOptsNonVersioned.maxAge = defaultOptions.maxAgeNonHashed;

return defaultOptions;
Expand Down
Loading

0 comments on commit 27a5338

Please sign in to comment.