Skip to content

Commit 7ddc2a2

Browse files
authored
update dependencies (#57)
1 parent 33efa16 commit 7ddc2a2

File tree

11 files changed

+833
-1253
lines changed

11 files changed

+833
-1253
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: node_js
22
node_js:
33
- '8'
4-
- '9'
54
- '10'
5+
- '12'

package-lock.json

Lines changed: 814 additions & 1231 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"author": "Bart Veneman",
4242
"license": "MIT",
4343
"dependencies": {
44-
"@projectwallace/css-analyzer": "^2.4.0",
44+
"@projectwallace/css-analyzer": "^2.5.1",
4545
"get-stdin": "^7.0.0",
4646
"got": "^9.6.0",
4747
"import-jsx": "^2.0.0",
@@ -54,13 +54,13 @@
5454
"update-notifier": "^3.0.0"
5555
},
5656
"devDependencies": {
57-
"ava": "^1.4.1",
57+
"ava": "^2.1.0",
5858
"eslint-config-xo-react": "^0.19.0",
59-
"eslint-plugin-react": "^7.13.0",
60-
"eslint-plugin-react-hooks": "^1.6.0",
61-
"execa": "^1.0.0",
62-
"prettier": "^1.17.1",
63-
"semver": "^6.1.0",
59+
"eslint-plugin-react": "^7.14.2",
60+
"eslint-plugin-react-hooks": "^1.6.1",
61+
"execa": "^2.0.0",
62+
"prettier": "^1.18.2",
63+
"semver": "^6.1.2",
6464
"xo": "^0.24.0"
6565
},
6666
"xo": {

test/no-options/snapshots/spec.js.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,10 @@ Generated by [AVA](https://ava.li).
88

99
> Snapshot 1
1010
11-
`Command failed: ./src/cli.js a{color red}␊
12-
SyntaxError: Unknown word at line 1, column 3:␊
11+
`SyntaxError: Unknown word at line 1, column 3:␊
1312
1413
> 1 | a{color red}␊
15-
| ^␊
16-
17-
`
14+
| ^`
1815

1916
## it shows a table with stats if no options are passed and CSS is passed as argument
2017

-22 Bytes
Binary file not shown.

test/no-options/spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ test.skip('it shows a table of stats if a valid url is passed', async t => {
4242
/* eslint-enable ava/no-skip-test */
4343

4444
test('it exits with a non-zero exit code on invalid CSS', async t => {
45-
const {code, message} = await t.throwsAsync(
45+
const {exitCode, stderr} = await t.throwsAsync(
4646
// Intentional CSS Syntax Error
4747
execa('./src/cli.js', ['a{color red}'])
4848
)
4949

50-
t.is(code, 1)
51-
t.snapshot(message)
52-
t.true(message.includes('SyntaxError: Unknown word at line 1, column 3:'))
50+
t.is(exitCode, 1)
51+
t.snapshot(stderr)
52+
t.true(stderr.includes('SyntaxError: Unknown word at line 1, column 3:'))
5353
})

test/option-format/snapshots/spec.js.md

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.
66 Bytes
Binary file not shown.
21 Bytes
Binary file not shown.

test/options-format-and-verbose/snapshots/spec.js.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Snapshot report for `test/options-format-and-compact/spec.js`
1+
# Snapshot report for `test/options-format-and-verbose/spec.js`
22

33
The actual snapshot is saved in `spec.js.snap`.
44

@@ -8,7 +8,7 @@ Generated by [AVA](https://ava.li).
88

99
> Snapshot 1
1010
11-
'{"stylesheets.size":3,"stylesheets.filesize.uncompressed.totalBytes":3,"stylesheets.filesize.compressed.gzip.totalBytes":23,"stylesheets.filesize.compressed.gzip.compressionRatio":-6.666666666666667,"stylesheets.filesize.compressed.brotli.totalBytes":7,"stylesheets.filesize.compressed.brotli.compressionRatio":-1.3333333333333335,"stylesheets.simplicity":1,"stylesheets.cohesion.average":0,"stylesheets.cohesion.min.count":0,"stylesheets.cohesion.min.value":null,"stylesheets.browserhacks.total":0,"stylesheets.browserhacks.totalUnique":0,"atrules.charsets.total":0,"atrules.charsets.unique":[],"atrules.charsets.totalUnique":0,"atrules.documents.total":0,"atrules.documents.unique":[],"atrules.documents.totalUnique":0,"atrules.fontfaces.total":0,"atrules.fontfaces.unique":[],"atrules.fontfaces.totalUnique":0,"atrules.imports.total":0,"atrules.imports.unique":[],"atrules.imports.totalUnique":0,"atrules.keyframes.total":0,"atrules.keyframes.unique":[],"atrules.keyframes.totalUnique":0,"atrules.keyframes.prefixed.total":0,"atrules.keyframes.prefixed.unique":[],"atrules.keyframes.prefixed.totalUnique":0,"atrules.keyframes.prefixed.share":0,"atrules.mediaqueries.total":0,"atrules.mediaqueries.unique":[],"atrules.mediaqueries.totalUnique":0,"atrules.mediaqueries.browserhacks.total":0,"atrules.mediaqueries.browserhacks.unique":[],"atrules.mediaqueries.browserhacks.totalUnique":0,"atrules.namespaces.total":0,"atrules.namespaces.unique":[],"atrules.namespaces.totalUnique":0,"atrules.pages.total":0,"atrules.pages.unique":[],"atrules.pages.totalUnique":0,"atrules.supports.total":0,"atrules.supports.unique":[],"atrules.supports.totalUnique":0,"atrules.supports.browserhacks.total":0,"atrules.supports.browserhacks.unique":[],"atrules.supports.browserhacks.totalUnique":0,"rules.total":1,"rules.empty.total":1,"rules.selectors.min":1,"rules.selectors.max":1,"rules.selectors.average":1,"rules.selectors.minimum.count":1,"rules.selectors.minimum.value":["a"],"rules.selectors.maximum.count":1,"rules.selectors.maximum.value":["a"],"selectors.total":1,"selectors.totalUnique":1,"selectors.js.total":0,"selectors.js.unique":[],"selectors.js.totalUnique":0,"selectors.id.total":0,"selectors.id.unique":[],"selectors.id.totalUnique":0,"selectors.universal.total":0,"selectors.universal.unique":[],"selectors.universal.totalUnique":0,"selectors.accessibility.total":0,"selectors.accessibility.unique":[],"selectors.accessibility.totalUnique":0,"selectors.specificity.top":[{"value":"a","specificity":{"a":0,"b":0,"c":0,"d":1}}],"selectors.identifiers.average":1,"selectors.identifiers.max.value":"a","selectors.identifiers.max.count":1,"selectors.identifiers.top":[{"value":"a","count":1}],"selectors.browserhacks.total":0,"selectors.browserhacks.unique":[],"selectors.browserhacks.totalUnique":0,"declarations.total":0,"declarations.totalUnique":0,"declarations.importants.total":0,"declarations.importants.share":0,"properties.total":0,"properties.unique":[],"properties.totalUnique":0,"properties.prefixed.total":0,"properties.prefixed.unique":[],"properties.prefixed.totalUnique":0,"properties.prefixed.share":0,"properties.browserhacks.total":0,"properties.browserhacks.unique":[],"properties.browserhacks.totalUnique":0,"values.total":0,"values.prefixed.total":0,"values.prefixed.unique":[],"values.prefixed.totalUnique":0,"values.prefixed.share":0,"values.fontsizes.total":0,"values.fontsizes.unique":[],"values.fontsizes.totalUnique":0,"values.fontfamilies.total":0,"values.fontfamilies.unique":[],"values.fontfamilies.totalUnique":0,"values.colors.total":0,"values.colors.unique":[],"values.colors.totalUnique":0,"values.colors.duplicates.unique":[],"values.colors.duplicates.totalUnique":0,"values.colors.duplicates.total":0,"values.browserhacks.total":0,"values.browserhacks.unique":[],"values.browserhacks.totalUnique":0,"values.boxshadows.total":0,"values.boxshadows.unique":[],"values.boxshadows.totalUnique":0,"values.zindexes.total":0,"values.zindexes.unique":[],"values.zindexes.totalUnique":0}'
11+
'{"stylesheets.size":3,"stylesheets.filesize.uncompressed.totalBytes":3,"stylesheets.filesize.compressed.gzip.totalBytes":23,"stylesheets.filesize.compressed.gzip.compressionRatio":-6.666666666666667,"stylesheets.filesize.compressed.brotli.totalBytes":7,"stylesheets.filesize.compressed.brotli.compressionRatio":-1.3333333333333335,"stylesheets.simplicity":1,"stylesheets.cohesion.average":0,"stylesheets.cohesion.min.count":0,"stylesheets.cohesion.min.value":null,"stylesheets.browserhacks.total":0,"stylesheets.browserhacks.totalUnique":0,"stylesheets.linesOfCode.total":1,"stylesheets.linesOfCode.sourceLinesOfCode.total":1,"atrules.charsets.total":0,"atrules.charsets.unique":[],"atrules.charsets.totalUnique":0,"atrules.documents.total":0,"atrules.documents.unique":[],"atrules.documents.totalUnique":0,"atrules.fontfaces.total":0,"atrules.fontfaces.unique":[],"atrules.fontfaces.totalUnique":0,"atrules.imports.total":0,"atrules.imports.unique":[],"atrules.imports.totalUnique":0,"atrules.keyframes.total":0,"atrules.keyframes.unique":[],"atrules.keyframes.totalUnique":0,"atrules.keyframes.prefixed.total":0,"atrules.keyframes.prefixed.unique":[],"atrules.keyframes.prefixed.totalUnique":0,"atrules.keyframes.prefixed.share":0,"atrules.mediaqueries.total":0,"atrules.mediaqueries.unique":[],"atrules.mediaqueries.totalUnique":0,"atrules.mediaqueries.browserhacks.total":0,"atrules.mediaqueries.browserhacks.unique":[],"atrules.mediaqueries.browserhacks.totalUnique":0,"atrules.namespaces.total":0,"atrules.namespaces.unique":[],"atrules.namespaces.totalUnique":0,"atrules.pages.total":0,"atrules.pages.unique":[],"atrules.pages.totalUnique":0,"atrules.supports.total":0,"atrules.supports.unique":[],"atrules.supports.totalUnique":0,"atrules.supports.browserhacks.total":0,"atrules.supports.browserhacks.unique":[],"atrules.supports.browserhacks.totalUnique":0,"rules.total":1,"rules.empty.total":1,"rules.selectors.min":1,"rules.selectors.max":1,"rules.selectors.average":1,"rules.selectors.minimum.count":1,"rules.selectors.minimum.value":["a"],"rules.selectors.maximum.count":1,"rules.selectors.maximum.value":["a"],"selectors.total":1,"selectors.totalUnique":1,"selectors.js.total":0,"selectors.js.unique":[],"selectors.js.totalUnique":0,"selectors.id.total":0,"selectors.id.unique":[],"selectors.id.totalUnique":0,"selectors.universal.total":0,"selectors.universal.unique":[],"selectors.universal.totalUnique":0,"selectors.accessibility.total":0,"selectors.accessibility.unique":[],"selectors.accessibility.totalUnique":0,"selectors.specificity.top":[{"value":"a","specificity":{"a":0,"b":0,"c":0,"d":1}}],"selectors.identifiers.average":1,"selectors.identifiers.max.value":"a","selectors.identifiers.max.count":1,"selectors.identifiers.top":[{"value":"a","count":1}],"selectors.complexity.max.value":1,"selectors.complexity.max.selectors":[{"value":"a","count":1}],"selectors.complexity.max.count":1,"selectors.complexity.average":1,"selectors.complexity.sum":1,"selectors.complexity.unique":[{"value":1,"count":1}],"selectors.complexity.totalUnique":1,"selectors.browserhacks.total":0,"selectors.browserhacks.unique":[],"selectors.browserhacks.totalUnique":0,"declarations.total":0,"declarations.totalUnique":0,"declarations.importants.total":0,"declarations.importants.share":0,"properties.total":0,"properties.unique":[],"properties.totalUnique":0,"properties.prefixed.total":0,"properties.prefixed.unique":[],"properties.prefixed.totalUnique":0,"properties.prefixed.share":0,"properties.browserhacks.total":0,"properties.browserhacks.unique":[],"properties.browserhacks.totalUnique":0,"values.total":0,"values.prefixed.total":0,"values.prefixed.unique":[],"values.prefixed.totalUnique":0,"values.prefixed.share":0,"values.fontsizes.total":0,"values.fontsizes.unique":[],"values.fontsizes.totalUnique":0,"values.fontfamilies.total":0,"values.fontfamilies.unique":[],"values.fontfamilies.totalUnique":0,"values.colors.total":0,"values.colors.unique":[],"values.colors.totalUnique":0,"values.colors.duplicates.unique":[],"values.colors.duplicates.totalUnique":0,"values.colors.duplicates.total":0,"values.browserhacks.total":0,"values.browserhacks.unique":[],"values.browserhacks.totalUnique":0,"values.boxshadows.total":0,"values.boxshadows.unique":[],"values.boxshadows.totalUnique":0,"values.zindexes.total":0,"values.zindexes.unique":[],"values.zindexes.totalUnique":0}'
1212

1313
## it shows verbose pretty output when the --format=pretty and --verbose options are passed
1414

0 commit comments

Comments
 (0)