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 11.8.0 to 12.0.0

4

package.json
{
"name": "@lwc/jest-shared",
"version": "11.8.0",
"version": "12.0.0",
"description": "Shared internal code for LWC Jest packages",

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

},
"gitHead": "69fdc0c8ed1fe3522fab01049b305cf5b5b2d0f1"
"gitHead": "35157d2926c57b287a3bfa77c895733e0a03a9fa"
}

@@ -20,5 +20,37 @@ const knownScopedCssFiles = new Set();

const knownScopeTokens = new Set();
/**
* Indicate that this string is a scope token (used by LWC for style scoping).
* @param str - scope token string
*/
function addKnownScopeToken(str) {
// attributes in the HTML namespace are case-insensitive, so we treat everything as lowercase
knownScopeTokens.add(str.toLowerCase());
}
/**
* Check if this string is a known scope token
* @param str - string to check
* @returns {boolean} - true if it's a known scope token
*/
function isKnownScopeToken(str) {
// attributes in the HTML namespace are case-insensitive, so we treat everything as lowercase
return knownScopeTokens.has(str.toLowerCase());
}
/**
* Get all known scope tokens
@returns {string[]} - list of known scope tokens
*/
function getKnownScopeTokens() {
return [...knownScopeTokens];
}
module.exports = {
addKnownScopedCssFile,
isKnownScopedCssFile
isKnownScopedCssFile,
addKnownScopeToken,
isKnownScopeToken,
getKnownScopeTokens,
};
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