Merge pull request #258 from XhmikosR/master-deps

Update dependencies.
This commit is contained in:
Ben Zörb 2019-11-09 23:47:09 +01:00 committed by GitHub
commit cb7d83d8fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1733 additions and 248 deletions

1958
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -30,27 +30,26 @@
"url": "https://github.com/bezoerb/inline-critical/issues"
},
"dependencies": {
"chalk": "^2.4.2",
"chalk": "^3.0.0",
"clean-css": "^4.2.1",
"css": "^2.2.4",
"detect-indent": "^6.0.0",
"dom-serializer": "^0.1.1",
"fg-loadcss": "^2.1.0",
"get-stdin": "^7.0.0",
"indent-string": "^4.0.0",
"jsdom": "^15.2.0",
"jsdom": "^15.2.1",
"lodash.defaults": "^4.2.0",
"lodash.escaperegexp": "^4.1.2",
"lodash.isregexp": "^4.0.1",
"lodash.isstring": "^4.0.1",
"meow": "^5.0.0",
"normalize-newline": "^3.0.0",
"postcss": "^7.0.18",
"postcss-discard": "^0.3.2",
"prettier": "^1.18.2",
"postcss": "^7.0.21",
"postcss-discard": "^0.3.3",
"prettier": "^1.19.1",
"reaver": "^2.0.0",
"slash": "^3.0.0",
"uglify-js": "^3.6.4"
"uglify-js": "^3.6.8"
},
"devDependencies": {
"execa": "^1.0.0",

View File

@ -54,10 +54,7 @@ describe('acceptance', () => {
test('Work well with the critical CSS file piped to inline-critical and html file as input', async () => {
const expected = await read('expected/index-inlined-async-final.html');
const {stdout, code} = await pipe(
'fixtures/critical.css',
['test/fixtures/index.html', '--no-minify']
);
const {stdout, code} = await pipe('fixtures/critical.css', ['test/fixtures/index.html', '--no-minify']);
expect(code).toBe(0);
expect(strip(stdout)).toBe(strip(expected));
@ -65,10 +62,7 @@ describe('acceptance', () => {
test('Work well with the html file piped to inline-critical and critical CSS file as input', async () => {
const expected = await read('expected/index-inlined-async-final.html');
const {stdout, code} = await pipe(
'fixtures/index.html',
['test/fixtures/critical.css', '--no-minify']
);
const {stdout, code} = await pipe('fixtures/index.html', ['test/fixtures/critical.css', '--no-minify']);
expect(code).toBe(0);
expect(strip(stdout)).toBe(strip(expected));