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

@lwc/metadata

Package Overview
Dependencies
Maintainers
14
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwc/metadata - npm Package Compare versions

Comparing version 2.21.0 to 2.22.0-0

2

dist/bundle-metadata.js

@@ -78,3 +78,3 @@ 'use strict';

} */
const version = '2.21.0';
const version = '2.22.0-0';
function collectBundleMetadata(config) {

@@ -81,0 +81,0 @@ // validateBundleConfig(config);

@@ -105,10 +105,3 @@ 'use strict';

const { startTag } = astElement.location;
const imgTagLocation = {
startLine: startTag.startLine,
startColumn: startTag.startColumn,
endLine: startTag.endLine,
endColumn: startTag.endColumn,
start: startTag.start,
end: startTag.end,
};
const imgTagLocation = lwcSourceLocationToKomaci(startTag);
if (attrValue) {

@@ -169,3 +162,3 @@ if (attrValue.type === 'Literal') {

};
container.location = astNode.directiveLocation;
container.location = lwcSourceLocationToKomaci(astNode.directiveLocation);
}

@@ -196,3 +189,3 @@ if (astNode.type === 'Element') {

iterator: astNode.item.name,
location: astNode.directiveLocation,
location: lwcSourceLocationToKomaci(astNode.directiveLocation),
};

@@ -210,3 +203,3 @@ iterationInfo = {

iterator: astNode.iterator.name,
location: astNode.directiveLocation,
location: lwcSourceLocationToKomaci(astNode.directiveLocation),
};

@@ -238,2 +231,3 @@ iterationInfo = {

properties,
location: lwcSourceLocationToKomaci(astComponent.location),
};

@@ -378,4 +372,13 @@ const keyDirective = astComponent.directives.find(isKeyDirective);

}
// Convert a lwc formatted SourceLocation to komaci schema
function lwcSourceLocationToKomaci(lwcSourceLocation) {
return {
startLine: lwcSourceLocation.startLine,
startColumn: lwcSourceLocation.startColumn,
endLine: lwcSourceLocation.endLine,
endColumn: lwcSourceLocation.endColumn,
};
}
exports.generateKomaciDocFromTemplate = generateKomaciDocFromTemplate;
//# sourceMappingURL=analyzeTemplateFile.js.map
{
"name": "@lwc/metadata",
"version": "2.21.0",
"version": "2.22.0-0",
"description": "Extract metadata about Lightning Web Components modules. This software is provided as-is with no support provided.",

@@ -25,5 +25,5 @@ "main": "dist/index.js",

"peerDependencies": {
"@lwc/sfdc-compiler-utils": "2.21.0",
"@lwc/errors": "~2.21.0",
"@lwc/template-compiler": "~2.21.0"
"@lwc/sfdc-compiler-utils": "2.22.0-0",
"@lwc/errors": "~2.22.0",
"@lwc/template-compiler": "~2.22.0"
},

@@ -30,0 +30,0 @@ "devDependencies": {

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