Skip to content

Commit

Permalink
chore(deps): update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 6, 2019
1 parent 1b03b6b commit e9b5394
Show file tree
Hide file tree
Showing 7 changed files with 1,186 additions and 918 deletions.
1,913 changes: 1,089 additions & 824 deletions package-lock.json

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions package.json
Expand Up @@ -38,40 +38,40 @@
},
"dependencies": {
"cacache": "^13.0.1",
"find-cache-dir": "^3.0.0",
"find-cache-dir": "^3.1.0",
"jest-worker": "^24.9.0",
"schema-utils": "^2.5.0",
"serialize-javascript": "^2.1.0",
"schema-utils": "^2.6.1",
"serialize-javascript": "^2.1.1",
"source-map": "^0.6.1",
"terser": "^4.3.9",
"terser": "^4.4.2",
"webpack-sources": "^1.4.3"
},
"devDependencies": {
"@babel/cli": "^7.6.4",
"@babel/core": "^7.6.4",
"@babel/preset-env": "^7.6.3",
"@commitlint/cli": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0",
"@babel/cli": "^7.7.4",
"@babel/core": "^7.7.4",
"@babel/preset-env": "^7.7.4",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@webpack-contrib/defaults": "^5.0.2",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
"babel-jest": "^24.9.0",
"commitlint-azure-pipelines-cli": "^1.0.2",
"cross-env": "^6.0.3",
"del": "^5.1.0",
"del-cli": "^3.0.0",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint": "^6.7.2",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-import": "^2.18.2",
"husky": "^3.0.9",
"husky": "^3.1.0",
"jest": "^24.9.0",
"jest-junit": "^8.0.0",
"lint-staged": "^9.4.2",
"jest-junit": "^10.0.0",
"lint-staged": "^9.5.0",
"memory-fs": "^0.5.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"standard-version": "^7.0.0",
"uglify-js": "^3.6.3",
"webpack": "^4.41.0"
"prettier": "^1.19.1",
"standard-version": "^7.0.1",
"uglify-js": "^3.7.1",
"webpack": "^4.41.2"
},
"keywords": [
"uglify",
Expand Down
5 changes: 4 additions & 1 deletion src/TaskRunner.js
Expand Up @@ -63,7 +63,10 @@ export default class TaskRunner {
serialize(task.cacheKeys),
JSON.stringify(result)
)
.then(() => result, () => result);
.then(
() => result,
() => result
);
}

return result;
Expand Down
8 changes: 4 additions & 4 deletions test/TerserPlugin.test.js
Expand Up @@ -310,7 +310,7 @@ describe('TerserPlugin', () => {
otherErrorWithLineAndCol,
'test.js',
TerserPlugin.buildSourceMap(rawSourceMap),
new RequestShortener('http://example.com/www/js/')
new RequestShortener('/example.com/www/js/')
)
).toMatchSnapshot();

Expand Down Expand Up @@ -342,15 +342,15 @@ describe('TerserPlugin', () => {
'Warning [test.js:1,1]',
'test.js',
TerserPlugin.buildSourceMap(rawSourceMap),
new RequestShortener('http://example.com/www/js/')
new RequestShortener('/example.com/www/js/')
)
).toMatchSnapshot();
expect(
TerserPlugin.buildWarning(
'Warning [test.js:1,1]',
'test.js',
TerserPlugin.buildSourceMap(rawSourceMap),
new RequestShortener('http://example.com/www/js/'),
new RequestShortener('/example.com/www/js/'),
() => true
)
).toMatchSnapshot();
Expand All @@ -359,7 +359,7 @@ describe('TerserPlugin', () => {
'Warning [test.js:1,1]',
'test.js',
TerserPlugin.buildSourceMap(rawSourceMap),
new RequestShortener('http://example.com/www/js/'),
new RequestShortener('/example.com/www/js/'),
() => false
)
).toMatchSnapshot();
Expand Down
6 changes: 3 additions & 3 deletions test/__snapshots__/TerserPlugin.test.js.snap
Expand Up @@ -12,7 +12,7 @@ Message [test.js:1,1]]

exports[`TerserPlugin buildError method 3`] = `
[Error: test.js from Terser
Message [./one.js:1,1][test.js:1,1]]
Message [http://example.com/www/js/one.js:1,1][test.js:1,1]]
`;

exports[`TerserPlugin buildError method 4`] = `
Expand Down Expand Up @@ -62,9 +62,9 @@ exports[`TerserPlugin buildWarning method 2`] = `"Terser Plugin: Warning [test.j

exports[`TerserPlugin buildWarning method 3`] = `"Terser Plugin: Warning [test.js:1,1]"`;

exports[`TerserPlugin buildWarning method 4`] = `"Terser Plugin: Warning [./one.js:1,1]"`;
exports[`TerserPlugin buildWarning method 4`] = `"Terser Plugin: Warning [http://example.com/www/js/one.js:1,1]"`;

exports[`TerserPlugin buildWarning method 5`] = `"Terser Plugin: Warning [./one.js:1,1]"`;
exports[`TerserPlugin buildWarning method 5`] = `"Terser Plugin: Warning [http://example.com/www/js/one.js:1,1]"`;

exports[`TerserPlugin buildWarning method 6`] = `null`;

Expand Down

0 comments on commit e9b5394

Please sign in to comment.