diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c88936..c1c7055 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -128,7 +128,7 @@ jobs: run: | # eslint for linting # - remove on Node.js < 10 - if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 6 ]]; then + if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 8 ]]; then node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \ grep -E '^eslint(-|$)' | \ sort -r | \ diff --git a/package.json b/package.json index 5f06a10..26d514b 100644 --- a/package.json +++ b/package.json @@ -16,12 +16,12 @@ }, "devDependencies": { "deep-equal": "1.0.1", - "eslint": "5.16.0", - "eslint-config-standard": "12.0.0", - "eslint-plugin-import": "2.14.0", + "eslint": "6.8.0", + "eslint-config-standard": "13.0.1", + "eslint-plugin-import": "2.25.2", "eslint-plugin-markdown": "1.0.0-rc.1", - "eslint-plugin-node": "7.0.1", - "eslint-plugin-promise": "4.0.1", + "eslint-plugin-node": "11.1.0", + "eslint-plugin-promise": "4.3.1", "eslint-plugin-standard": "4.0.0", "istanbul": "0.4.5", "mocha": "6.2.3" diff --git a/test/test.js b/test/test.js index 3f469cc..d45ee7f 100644 --- a/test/test.js +++ b/test/test.js @@ -336,36 +336,36 @@ describe('contentDisposition.parse(string)', function () { it('should parse UTF-8 extended parameter value', function () { deepEqual(contentDisposition.parse('attachment; filename*=UTF-8\'\'%E2%82%AC%20rates.pdf'), { type: 'attachment', - parameters: { 'filename': '€ rates.pdf' } + parameters: { filename: '€ rates.pdf' } }) }) it('should parse UTF-8 extended parameter value', function () { deepEqual(contentDisposition.parse('attachment; filename*=UTF-8\'\'%E2%82%AC%20rates.pdf'), { type: 'attachment', - parameters: { 'filename': '€ rates.pdf' } + parameters: { filename: '€ rates.pdf' } }) deepEqual(contentDisposition.parse('attachment; filename*=UTF-8\'\'%E4%20rates.pdf'), { type: 'attachment', - parameters: { 'filename': '\ufffd rates.pdf' } + parameters: { filename: '\ufffd rates.pdf' } }) }) it('should parse ISO-8859-1 extended parameter value', function () { deepEqual(contentDisposition.parse('attachment; filename*=ISO-8859-1\'\'%A3%20rates.pdf'), { type: 'attachment', - parameters: { 'filename': '£ rates.pdf' } + parameters: { filename: '£ rates.pdf' } }) deepEqual(contentDisposition.parse('attachment; filename*=ISO-8859-1\'\'%82%20rates.pdf'), { type: 'attachment', - parameters: { 'filename': '? rates.pdf' } + parameters: { filename: '? rates.pdf' } }) }) it('should not be case-sensitive for charser', function () { deepEqual(contentDisposition.parse('attachment; filename*=utf-8\'\'%E2%82%AC%20rates.pdf'), { type: 'attachment', - parameters: { 'filename': '€ rates.pdf' } + parameters: { filename: '€ rates.pdf' } }) }) @@ -377,18 +377,18 @@ describe('contentDisposition.parse(string)', function () { it('should parse with embedded language', function () { deepEqual(contentDisposition.parse('attachment; filename*=UTF-8\'en\'%E2%82%AC%20rates.pdf'), { type: 'attachment', - parameters: { 'filename': '€ rates.pdf' } + parameters: { filename: '€ rates.pdf' } }) }) it('should prefer extended parameter value', function () { deepEqual(contentDisposition.parse('attachment; filename="EURO rates.pdf"; filename*=UTF-8\'\'%E2%82%AC%20rates.pdf'), { type: 'attachment', - parameters: { 'filename': '€ rates.pdf' } + parameters: { filename: '€ rates.pdf' } }) deepEqual(contentDisposition.parse('attachment; filename*=UTF-8\'\'%E2%82%AC%20rates.pdf; filename="EURO rates.pdf"'), { type: 'attachment', - parameters: { 'filename': '€ rates.pdf' } + parameters: { filename: '€ rates.pdf' } }) }) })