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

@lwc/compiler

Package Overview
Dependencies
Maintainers
14
Versions
809
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwc/compiler - npm Package Compare versions

Comparing version 6.1.1 to 6.2.0

32

dist/index.cjs.js

@@ -111,12 +111,25 @@ /**

function normalizeOptions(options) {
const outputConfig = Object.assign(Object.assign({}, DEFAULT_OUTPUT_CONFIG), options.outputConfig);
const outputConfig = {
...DEFAULT_OUTPUT_CONFIG,
...options.outputConfig,
};
const stylesheetConfig = {
customProperties: Object.assign(Object.assign({}, DEFAULT_STYLESHEET_CONFIG.customProperties), (options.stylesheetConfig && options.stylesheetConfig.customProperties)),
customProperties: {
...DEFAULT_STYLESHEET_CONFIG.customProperties,
...(options.stylesheetConfig && options.stylesheetConfig.customProperties),
},
};
const experimentalDynamicComponent = Object.assign(Object.assign({}, DEFAULT_DYNAMIC_IMPORT_CONFIG), options.experimentalDynamicComponent);
const experimentalDynamicComponent = {
...DEFAULT_DYNAMIC_IMPORT_CONFIG,
...options.experimentalDynamicComponent,
};
const apiVersion = shared.getAPIVersionFromNumber(options.apiVersion);
return Object.assign(Object.assign(Object.assign({}, DEFAULT_OPTIONS), options), { stylesheetConfig,
return {
...DEFAULT_OPTIONS,
...options,
stylesheetConfig,
outputConfig,
experimentalDynamicComponent,
apiVersion });
apiVersion,
};
}

@@ -172,3 +185,3 @@

experimentalComplexExpressions, preserveHtmlComments, enableStaticContentOptimization, customRendererConfig, enableDynamicComponents, experimentalDynamicDirective: deprecatedDynamicDirective, instrumentation, namespace, name, apiVersion, } = options;
const experimentalDynamicDirective = deprecatedDynamicDirective !== null && deprecatedDynamicDirective !== void 0 ? deprecatedDynamicDirective : Boolean(experimentalDynamicComponent);
const experimentalDynamicDirective = deprecatedDynamicDirective ?? Boolean(experimentalDynamicComponent);
let result;

@@ -302,3 +315,2 @@ try {

function scriptTransform(code, filename, options) {
var _a;
const { isExplicitImport, experimentalDynamicComponent: dynamicImports, outputConfig: { sourcemap }, enableLightningWebSecurityTransforms, namespace, name, instrumentation, apiVersion, } = options;

@@ -341,3 +353,3 @@ const lwcBabelPluginOptions = {

if (e.code === 'BABEL_TRANSFORM_ERROR' &&
((_a = e.message) === null || _a === void 0 ? void 0 : _a.includes('Decorators are not enabled.')) &&
e.message?.includes('Decorators are not enabled.') &&
/\b(track|api|wire)\b/.test(e.message) // sniff for @track/@api/@wire

@@ -420,3 +432,3 @@ ) {

*/
const version = "6.1.1";
const version = "6.2.0";

@@ -426,3 +438,3 @@ exports.transform = transform;

exports.version = version;
/** version: 6.1.1 */
/** version: 6.2.0 */
//# sourceMappingURL=index.cjs.js.map

@@ -86,12 +86,25 @@ /**

function normalizeOptions(options) {
const outputConfig = Object.assign(Object.assign({}, DEFAULT_OUTPUT_CONFIG), options.outputConfig);
const outputConfig = {
...DEFAULT_OUTPUT_CONFIG,
...options.outputConfig,
};
const stylesheetConfig = {
customProperties: Object.assign(Object.assign({}, DEFAULT_STYLESHEET_CONFIG.customProperties), (options.stylesheetConfig && options.stylesheetConfig.customProperties)),
customProperties: {
...DEFAULT_STYLESHEET_CONFIG.customProperties,
...(options.stylesheetConfig && options.stylesheetConfig.customProperties),
},
};
const experimentalDynamicComponent = Object.assign(Object.assign({}, DEFAULT_DYNAMIC_IMPORT_CONFIG), options.experimentalDynamicComponent);
const experimentalDynamicComponent = {
...DEFAULT_DYNAMIC_IMPORT_CONFIG,
...options.experimentalDynamicComponent,
};
const apiVersion = getAPIVersionFromNumber(options.apiVersion);
return Object.assign(Object.assign(Object.assign({}, DEFAULT_OPTIONS), options), { stylesheetConfig,
return {
...DEFAULT_OPTIONS,
...options,
stylesheetConfig,
outputConfig,
experimentalDynamicComponent,
apiVersion });
apiVersion,
};
}

@@ -147,3 +160,3 @@

experimentalComplexExpressions, preserveHtmlComments, enableStaticContentOptimization, customRendererConfig, enableDynamicComponents, experimentalDynamicDirective: deprecatedDynamicDirective, instrumentation, namespace, name, apiVersion, } = options;
const experimentalDynamicDirective = deprecatedDynamicDirective !== null && deprecatedDynamicDirective !== void 0 ? deprecatedDynamicDirective : Boolean(experimentalDynamicComponent);
const experimentalDynamicDirective = deprecatedDynamicDirective ?? Boolean(experimentalDynamicComponent);
let result;

@@ -277,3 +290,2 @@ try {

function scriptTransform(code, filename, options) {
var _a;
const { isExplicitImport, experimentalDynamicComponent: dynamicImports, outputConfig: { sourcemap }, enableLightningWebSecurityTransforms, namespace, name, instrumentation, apiVersion, } = options;

@@ -316,3 +328,3 @@ const lwcBabelPluginOptions = {

if (e.code === 'BABEL_TRANSFORM_ERROR' &&
((_a = e.message) === null || _a === void 0 ? void 0 : _a.includes('Decorators are not enabled.')) &&
e.message?.includes('Decorators are not enabled.') &&
/\b(track|api|wire)\b/.test(e.message) // sniff for @track/@api/@wire

@@ -395,6 +407,6 @@ ) {

*/
const version = "6.1.1";
const version = "6.2.0";
export { transform, transformSync, version };
/** version: 6.1.1 */
/** version: 6.2.0 */
//# sourceMappingURL=index.js.map

@@ -7,3 +7,3 @@ {

"name": "@lwc/compiler",
"version": "6.1.1",
"version": "6.2.0",
"description": "LWC compiler",

@@ -52,8 +52,8 @@ "keywords": [

"@locker/babel-plugin-transform-unforgeables": "0.20.0",
"@lwc/babel-plugin-component": "6.1.1",
"@lwc/errors": "6.1.1",
"@lwc/shared": "6.1.1",
"@lwc/style-compiler": "6.1.1",
"@lwc/template-compiler": "6.1.1"
"@lwc/babel-plugin-component": "6.2.0",
"@lwc/errors": "6.2.0",
"@lwc/shared": "6.2.0",
"@lwc/style-compiler": "6.2.0",
"@lwc/template-compiler": "6.2.0"
}
}

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