From d828a621007e35732624e96041f23af6b276328e Mon Sep 17 00:00:00 2001 From: GreLI Date: Sun, 22 Oct 2017 22:29:15 +0300 Subject: [PATCH] Bump dependencies and minor fix for inlineStyles --- lib/css-tools.js | 2 +- package.json | 26 ++++++++++++-------------- plugins/inlineStyles.js | 8 ++++---- test/plugins/inlineStyles.14.svg | 7 ++++++- 4 files changed, 23 insertions(+), 20 deletions(-) diff --git a/lib/css-tools.js b/lib/css-tools.js index e054f6bb2..4b1e77fbe 100644 --- a/lib/css-tools.js +++ b/lib/css-tools.js @@ -23,7 +23,7 @@ function flattenToSelectors(cssAst) { var atrule = this.atrule; var rule = node; - node.selector.children.each(function(selectorNode, selectorItem) { + node.prelude.children.each(function(selectorNode, selectorItem) { var selector = { item: selectorItem, atrule: atrule, diff --git a/package.json b/package.json index 343d77a31..2e29d1d8d 100644 --- a/package.json +++ b/package.json @@ -48,28 +48,26 @@ "jshint": "jshint --show-non-errors ." }, "dependencies": { - "coa": "~1.0.1", + "coa": "~2.0.0", "colors": "~1.1.2", - "css-select": "^1.3.0-rc0", - "css-select-base-adapter": "^0.1.0", - "css-tree": "1.0.0-alpha22", - "csso": "^3.0.1", - "js-yaml": "~3.7.0", - "mkdirp": "~0.5.1", + "css-select": "~1.3.0-rc0", + "css-select-base-adapter": "~0.1.0", + "css-tree": "~1.0.0-alpha25", + "csso": "^3.3.1", + "js-yaml": "~3.10.0", "object.values": "^1.0.4", - "sax": "~1.2.1", - "stable": "^0.1.5", - "whet.extend": "~0.9.9", + "sax": "~1.2.4", + "stable": "~0.1.6", "util.promisify": "~1.0.0" }, "devDependencies": { - "coveralls": "~2.11.14", - "fs-extra": "~4.0.1", + "coveralls": "~3.0.0", + "fs-extra": "~4.0.2", "istanbul": "~0.4.5", - "mocha": "~3.2.0", + "mocha": "~4.0.1", "mocha-istanbul": "~0.3.0", "mock-stdin": "~0.3.1", - "should": "11.2.0" + "should": "~13.1.2" }, "engines": { "node": ">=4.0.0" diff --git a/plugins/inlineStyles.js b/plugins/inlineStyles.js index 13d9c6161..d3fe62fd9 100644 --- a/plugins/inlineStyles.js +++ b/plugins/inlineStyles.js @@ -69,7 +69,7 @@ exports.fn = function(document, opts) { parseCustomProperty: false }); } catch (parseError) { - console.warn('Warning: Parse error of styles of + + @@@