New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@lwc/jest-shared

Package Overview
Dependencies
Maintainers
14
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwc/jest-shared - npm Package Compare versions

Comparing version 13.0.0 to 14.0.0-alpha.0

5

package.json
{
"name": "@lwc/jest-shared",
"version": "13.0.0",
"version": "14.0.0-alpha.0",
"description": "Shared internal code for LWC Jest packages",

@@ -22,4 +22,3 @@ "homepage": "https://lwc.dev/",

"node": ">=10"
},
"gitHead": "d66c078d6b4df83f4fb17f6c9cf23e2e5721840a"
}
}

4

src/index.js

@@ -47,5 +47,3 @@ const knownScopedCssFiles = new Set();

// sort from longest to shortest so that `{foo-host}` is fully replaced, not just `{foo}-host`
const regexString = [...knownScopeTokens]
.sort((a, b) => b.length - a.length)
.join('|');
const regexString = [...knownScopeTokens].sort((a, b) => b.length - a.length).join('|');
// attributes in the HTML namespace are case-insensitive, so the regex must be case-insensitive

@@ -52,0 +50,0 @@ return new RegExp(regexString, 'gi');

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