Skip to content

Commit 60c10f0

Browse files
committed
fix: upgrade dependencies
1 parent 08ace07 commit 60c10f0

File tree

4 files changed

+1700
-1896
lines changed

4 files changed

+1700
-1896
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"homepage": "https://github.com/SimenB/add-asset-html-webpack-plugin#readme",
4040
"dependencies": {
41-
"globby": "^8.0.0",
41+
"globby": "^9.0.0",
4242
"micromatch": "^3.1.3",
4343
"p-each-series": "^1.0.0"
4444
},
@@ -48,7 +48,7 @@
4848
"@babel/plugin-transform-modules-commonjs": "^7.0.0",
4949
"@babel/preset-env": "^7.0.0",
5050
"babel-core": "^7.0.0-bridge.0",
51-
"babel-jest": "^23.6.0",
51+
"babel-jest": "^24.0.0",
5252
"babel-plugin-add-module-exports": "^1.0.0",
5353
"classnames": "^2.2.5",
5454
"del-cli": "^1.1.0",
@@ -57,7 +57,7 @@
5757
"eslint_d": "^7.1.0",
5858
"html-webpack-plugin": "^4.0.0-0",
5959
"husky": "^1.0.1",
60-
"jest": "^23.6.0",
60+
"jest": "^24.0.0",
6161
"jest-watch-typeahead": "^0.2.0",
6262
"licensor": "^4.0.0",
6363
"lint-staged": "^7.0.0",

src/utils.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@ export async function handleUrl(assets) {
4141
const globbyAssets = [];
4242
const normalAssets = [];
4343
// if filepath is null or undefined, just bubble up.
44-
assets.forEach(
45-
asset =>
46-
asset.filepath && globby.hasMagic(asset.filepath)
47-
? globbyAssets.push(asset)
48-
: normalAssets.push(asset),
44+
assets.forEach(asset =>
45+
asset.filepath && globby.hasMagic(asset.filepath)
46+
? globbyAssets.push(asset)
47+
: normalAssets.push(asset),
4948
);
5049
const ret = [];
5150
await Promise.all(

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ test('should used passed in publicPath', async () => {
7979
});
8080

8181
// TODO: No idea what this does, actually... Coverage currently hits it, but the logic is untested.
82-
test.skip('should handle missing `publicPath`', () => {});
82+
test.todo('should handle missing `publicPath`');
8383

8484
test('should add file missing "/" to public path', async () => {
8585
const compilation = { options: { output: { publicPath: 'vendor' } } };

0 commit comments

Comments
 (0)