@lrnwebcomponents/anchor-behaviors
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -63,21 +63,3 @@ const gulp = require("gulp"); | ||
} | ||
let styleRegex = /\/\*[\s]*LIST SHARED STYLES BELOW[\s]*((?:(?:\w+)[\s,]*)*)\*\//g, | ||
styleArray = | ||
cssResult.match(styleRegex) && | ||
cssResult.match(styleRegex).length > 0 | ||
? cssResult | ||
.match(styleRegex)[0] | ||
.replace(styleRegex, "$1") | ||
.match(/(\w+)[\s,]*/g) | ||
: []; | ||
sharedStyles = | ||
styleArray && styleArray.length > 0 | ||
? styleArray.map(style => | ||
style.replace( | ||
/(\w+)[\s,]*/g, | ||
` | ||
$1` | ||
) | ||
) | ||
: ``; | ||
cssResult = stripCssComments(cssResult).trim(); | ||
@@ -90,3 +72,9 @@ let litResult = | ||
static get styles() { | ||
return [${sharedStyles ? `${sharedStyles},` : ``} | ||
return [ | ||
${ | ||
packageJson.wcfactory.sharedStyles && | ||
packageJson.wcfactory.sharedStyles.length > 0 | ||
? `${packageJson.wcfactory.sharedStyles.join(",")},` | ||
: `` | ||
} | ||
css\` | ||
@@ -93,0 +81,0 @@ ${cssResult} |
@@ -17,5 +17,6 @@ { | ||
"hax": "src/anchor-behaviors-hax.json" | ||
} | ||
}, | ||
"sharedStyles": [] | ||
}, | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "handles anchors and params in the url", | ||
@@ -35,5 +36,5 @@ "repository": { | ||
"build": "../../node_modules/.bin/gulp && ../../node_modules/.bin/rollup -c && ../../node_modules/.bin/prettier --ignore-path ../../.prettierignore --write '**/*.{js,json}' && wca analyze \"**/*.js\" --format vscode --outFile vscode-html-custom-data.json", | ||
"dev": "concurrently --kill-others \"yarn run watch\" \"yarn run serve\"", | ||
"dev": "../../node_modules/.bin/concurrently --kill-others \"yarn run watch\" \"yarn run serve\"", | ||
"watch": "../../node_modules/.bin/gulp dev", | ||
"serve": "polymer serve --npm --module-resolution=node --open", | ||
"serve": "../../node_modules/.bin/es-dev-server -c ../../es-dev-server.config.js", | ||
"lighthouse": "../../node_modules/.bin/gulp lighthouse" | ||
@@ -70,3 +71,3 @@ }, | ||
], | ||
"gitHead": "d3bc01d12a0d042ba1fdb4f0dda36cfa5824047f" | ||
"gitHead": "27af689f6d96197fba00cc508a953cdd008f21b1" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45247
459