Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lrnwebcomponents/anchor-behaviors

Package Overview
Dependencies
Maintainers
4
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lrnwebcomponents/anchor-behaviors - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

28

gulpfile.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc