Skip to content

Commit

Permalink
chore(deps): update (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi authored Oct 9, 2020
1 parent 6915c1b commit 152698f
Show file tree
Hide file tree
Showing 14 changed files with 736 additions and 738 deletions.
1,146 changes: 572 additions & 574 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"dependencies": {
"cacache": "^15.0.5",
"find-cache-dir": "^3.3.1",
"schema-utils": "^2.7.1",
"schema-utils": "^3.0.0",
"serialize-javascript": "^5.0.1",
"webpack-sources": "^1.4.3"
},
Expand All @@ -56,16 +56,16 @@
"@gfx/zopfli": "^1.0.15",
"@webpack-contrib/defaults": "^6.3.0",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
"babel-jest": "^26.3.0",
"babel-jest": "^26.5.2",
"cross-env": "^7.0.2",
"del": "^5.1.0",
"del": "^6.0.0",
"del-cli": "^3.0.1",
"eslint": "^7.9.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.22.0",
"file-loader": "^6.1.0",
"eslint": "^7.10.0",
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-import": "^2.22.1",
"file-loader": "^6.1.1",
"husky": "^4.3.0",
"jest": "^26.4.2",
"jest": "^26.5.2",
"lint-staged": "^10.4.0",
"memfs": "^3.2.0",
"npm-run-all": "^4.1.5",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import webpack, {
ModuleFilenameHelpers,
version as webpackVersion,
} from 'webpack';
import validateOptions from 'schema-utils';
import { validate } from 'schema-utils';
import serialize from 'serialize-javascript';

import schema from './options.json';
Expand All @@ -21,7 +21,7 @@ const { RawSource } =

class CompressionPlugin {
constructor(options = {}) {
validateOptions(schema, options, {
validate(schema, options, {
name: 'Compression Plugin',
baseDataPath: 'options',
});
Expand Down
86 changes: 43 additions & 43 deletions test/__snapshots__/CompressionPlugin.test.js.snap.webpack5
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,19 @@ Array [
393,
],
Array [
"async.async.27b6ff8858c766f77f7c.js",
"async.async.d1b531c50fe64d803595.js",
265,
],
Array [
"async.async.27b6ff8858c766f77f7c.js.gz",
"async.async.d1b531c50fe64d803595.js.gz",
179,
],
Array [
"main.1dbd2c97402fe5e0aff0.js",
"main.3ed4c27a6135732feb25.js",
16477,
],
Array [
"main.1dbd2c97402fe5e0aff0.js.gz",
"main.3ed4c27a6135732feb25.js.gz",
3926,
],
]
Expand Down Expand Up @@ -441,19 +441,19 @@ Array [
393,
],
Array [
"async.async.1c2911c7c819fc826fb7.js",
"async.async.99e57b92178c984aefdd.js",
265,
],
Array [
"async.async.1c2911c7c819fc826fb7.js.gz",
"async.async.99e57b92178c984aefdd.js.gz",
179,
],
Array [
"main.549e08e1b71de97c7e36.js",
"main.57df66b21fd8eebca594.js",
16477,
],
Array [
"main.549e08e1b71de97c7e36.js.gz",
"main.57df66b21fd8eebca594.js.gz",
3926,
],
]
Expand All @@ -474,19 +474,19 @@ Array [
393,
],
Array [
"async.async.1c2911c7c819fc826fb7.js",
"async.async.99e57b92178c984aefdd.js",
265,
],
Array [
"async.async.1c2911c7c819fc826fb7.js.gz",
"async.async.99e57b92178c984aefdd.js.gz",
179,
],
Array [
"main.549e08e1b71de97c7e36.js",
"main.57df66b21fd8eebca594.js",
16477,
],
Array [
"main.549e08e1b71de97c7e36.js.gz",
"main.57df66b21fd8eebca594.js.gz",
3926,
],
]
Expand Down Expand Up @@ -540,10 +540,10 @@ Array [
},
],
Array [
"async.async.js?ver=931a10b06a9f000536b2",
"async.async.js?ver=65943692495e907c9625",
265,
Object {
"fullhash": "931a10b06a9f000536b2",
"fullhash": "65943692495e907c9625",
"immutable": true,
"related": Object {
"gziped": "async.async.js.gz",
Expand Down Expand Up @@ -572,18 +572,18 @@ Array [
],
Array [
"main.js.gz",
3947,
3950,
Object {
"compressed": true,
"immutable": true,
"size": 3947,
"size": 3950,
},
],
Array [
"main.js?var=931a10b06a9f000536b2",
"main.js?var=65943692495e907c9625",
16633,
Object {
"fullhash": "931a10b06a9f000536b2",
"fullhash": "65943692495e907c9625",
"immutable": true,
"related": Object {
"gziped": "main.js.gz",
Expand Down Expand Up @@ -630,30 +630,30 @@ Array [
],
Array [
"async.async.js.gz",
233,
234,
Object {
"compressed": true,
"immutable": true,
"size": 233,
"size": 234,
},
],
Array [
"async.async.js.map?ver=2b96998c4528126e8d99",
"async.async.js.map?ver=f41f7203ba0954c3d6fd",
116,
Object {
"development": true,
"size": 116,
},
],
Array [
"async.async.js?ver=2b96998c4528126e8d99",
"async.async.js?ver=f41f7203ba0954c3d6fd",
330,
Object {
"fullhash": "2b96998c4528126e8d99",
"fullhash": "f41f7203ba0954c3d6fd",
"immutable": true,
"related": Object {
"gziped": "async.async.js.gz",
"sourceMap": "async.async.js.map?ver=2b96998c4528126e8d99",
"sourceMap": "async.async.js.map?ver=f41f7203ba0954c3d6fd",
},
"size": 330,
},
Expand All @@ -679,23 +679,23 @@ Array [
],
Array [
"main.js.gz",
3983,
3982,
Object {
"compressed": true,
"immutable": true,
"size": 3983,
"size": 3982,
},
],
Array [
"main.js.map.gz",
3956,
3955,
Object {
"compressed": true,
"size": 3956,
"size": 3955,
},
],
Array [
"main.js.map?var=2b96998c4528126e8d99",
"main.js.map?var=f41f7203ba0954c3d6fd",
12430,
Object {
"development": true,
Expand All @@ -706,14 +706,14 @@ Array [
},
],
Array [
"main.js?var=2b96998c4528126e8d99",
"main.js?var=f41f7203ba0954c3d6fd",
16694,
Object {
"fullhash": "2b96998c4528126e8d99",
"fullhash": "f41f7203ba0954c3d6fd",
"immutable": true,
"related": Object {
"gziped": "main.js.gz",
"sourceMap": "main.js.map?var=2b96998c4528126e8d99",
"sourceMap": "main.js.map?var=f41f7203ba0954c3d6fd",
},
"size": 16694,
},
Expand Down Expand Up @@ -844,10 +844,10 @@ Array [
},
],
Array [
"async.async.js?ver=2b96998c4528126e8d99",
"async.async.js?ver=f41f7203ba0954c3d6fd",
265,
Object {
"fullhash": "2b96998c4528126e8d99",
"fullhash": "f41f7203ba0954c3d6fd",
"immutable": true,
"related": Object {
"brotliCompressed": "async.async.js.br",
Expand All @@ -860,11 +860,11 @@ Array [
],
Array [
"main.js.br",
3436,
3446,
Object {
"compressed": true,
"immutable": true,
"size": 3436,
"size": 3446,
},
],
Array [
Expand All @@ -887,18 +887,18 @@ Array [
],
Array [
"main.js.gz",
3953,
3951,
Object {
"compressed": true,
"immutable": true,
"size": 3953,
"size": 3951,
},
],
Array [
"main.js?var=2b96998c4528126e8d99",
"main.js?var=f41f7203ba0954c3d6fd",
16636,
Object {
"fullhash": "2b96998c4528126e8d99",
"fullhash": "f41f7203ba0954c3d6fd",
"immutable": true,
"related": Object {
"brotliCompressed": "main.js.br",
Expand Down Expand Up @@ -935,15 +935,15 @@ Array [
179,
],
Array [
"async.async.js?ver=2b96998c4528126e8d99",
"async.async.js?ver=f41f7203ba0954c3d6fd",
265,
],
Array [
"main.js.gz",
3953,
3951,
],
Array [
"main.js?var=2b96998c4528126e8d99",
"main.js?var=f41f7203ba0954c3d6fd",
16636,
],
]
Expand Down
20 changes: 10 additions & 10 deletions test/__snapshots__/algorithm.test.js.snap.webpack5
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ Array [
393,
],
Array [
"async.async.1c2911c7c819fc826fb7.js",
"async.async.99e57b92178c984aefdd.js",
265,
],
Array [
"async.async.1c2911c7c819fc826fb7.js.gz",
"async.async.99e57b92178c984aefdd.js.gz",
179,
],
Array [
"main.549e08e1b71de97c7e36.js",
"main.57df66b21fd8eebca594.js",
16477,
],
Array [
"main.549e08e1b71de97c7e36.js.gz",
"main.57df66b21fd8eebca594.js.gz",
3926,
],
]
Expand Down Expand Up @@ -62,19 +62,19 @@ Array [
672,
],
Array [
"async.async.1c2911c7c819fc826fb7.js",
"async.async.99e57b92178c984aefdd.js",
265,
],
Array [
"async.async.1c2911c7c819fc826fb7.js.gz",
"async.async.99e57b92178c984aefdd.js.gz",
265,
],
Array [
"main.549e08e1b71de97c7e36.js",
"main.57df66b21fd8eebca594.js",
16477,
],
Array [
"main.549e08e1b71de97c7e36.js.gz",
"main.57df66b21fd8eebca594.js.gz",
16477,
],
]
Expand Down Expand Up @@ -103,11 +103,11 @@ Array [
672,
],
Array [
"async.async.1c2911c7c819fc826fb7.js",
"async.async.99e57b92178c984aefdd.js",
265,
],
Array [
"main.549e08e1b71de97c7e36.js",
"main.57df66b21fd8eebca594.js",
16477,
],
]
Expand Down
Loading

0 comments on commit 152698f

Please sign in to comment.