@lwc/errors
Advanced tools
@@ -6,166 +6,178 @@ import { DiagnosticLevel } from '../../shared/types'; | ||
| level: DiagnosticLevel; | ||
| strictLevel: DiagnosticLevel; | ||
| url: string; | ||
| }; | ||
| export declare const CompilerValidationErrors: { | ||
| INVALID_COMPAT_PROPERTY: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_COMPAT_PROPERTY: { | ||
| readonly code: 1013; | ||
| readonly message: "Expected a boolean for outputConfig.compat, received \"{0}\"."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_ENV_ENTRY_VALUE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_ENV_ENTRY_VALUE: { | ||
| readonly code: 1014; | ||
| readonly message: "Expected a string for outputConfig.env[\"{0}\"], received \"{1}\"."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_ENV_PROPERTY: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_ENV_PROPERTY: { | ||
| readonly code: 1015; | ||
| readonly message: "Expected an object for outputConfig.env, received \"{0}\"."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_FILES_PROPERTY: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_FILES_PROPERTY: { | ||
| readonly code: 1016; | ||
| readonly message: "Expected an object with files to be compiled."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_NAME_PROPERTY: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_NAME_PROPERTY: { | ||
| readonly code: 1018; | ||
| readonly message: "Expected a string for name, received \"{0}\"."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_NAMESPACE_PROPERTY: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_NAMESPACE_PROPERTY: { | ||
| readonly code: 1019; | ||
| readonly message: "Expected a string for namespace, received \"{0}\"."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_SOURCEMAP_PROPERTY: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_SOURCEMAP_PROPERTY: { | ||
| readonly code: 1021; | ||
| readonly message: "Expected a boolean value or 'inline' for outputConfig.sourcemap, received \"{0}\"."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| MISSING_OPTIONS_OBJECT: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly MISSING_OPTIONS_OBJECT: { | ||
| readonly code: 1023; | ||
| readonly message: "Expected options object, received \"{0}\"."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| UNEXPECTED_FILE_CONTENT: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly UNEXPECTED_FILE_CONTENT: { | ||
| readonly code: 1024; | ||
| readonly message: "Unexpected file content for \"{0}\". Expected a string, received \"{1}\"."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| UNKNOWN_ENV_ENTRY_KEY: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly UNKNOWN_ENV_ENTRY_KEY: { | ||
| readonly code: 1025; | ||
| readonly message: "Unknown entry \"{0}\" in outputConfig.env."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| }; | ||
| export declare const ModuleResolutionErrors: { | ||
| MODULE_RESOLUTION_ERROR: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly MODULE_RESOLUTION_ERROR: { | ||
| readonly code: 1002; | ||
| readonly message: "Error in module resolution: {0}"; | ||
| readonly level: DiagnosticLevel.Warning; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| IMPORTEE_RESOLUTION_FAILED: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly IMPORTEE_RESOLUTION_FAILED: { | ||
| readonly code: 1010; | ||
| readonly message: "Failed to resolve entry for module \"{0}\"."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| IMPORTEE_RESOLUTION_FROM_IMPORTER_FAILED: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly IMPORTEE_RESOLUTION_FROM_IMPORTER_FAILED: { | ||
| readonly code: 1011; | ||
| readonly message: "Failed to resolve import \"{0}\" from \"{1}\". Please add \"{2}\" file to the component folder."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| NONEXISTENT_FILE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly NONEXISTENT_FILE: { | ||
| readonly code: 1004; | ||
| readonly message: "No such file {0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| FOLDER_NAME_STARTS_WITH_CAPITAL_LETTER: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly FOLDER_NAME_STARTS_WITH_CAPITAL_LETTER: { | ||
| readonly code: 1116; | ||
| readonly message: "Illegal folder name \"{0}\". The folder name must start with a lowercase character: \"{1}\"."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| FOLDER_AND_FILE_NAME_CASE_MISMATCH: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly FOLDER_AND_FILE_NAME_CASE_MISMATCH: { | ||
| readonly code: 1117; | ||
| readonly message: "Failed to resolve \"{0}\". The file name must case match the component folder name \"{1}\"."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| IMPORT_AND_FILE_NAME_CASE_MISMATCH: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly IMPORT_AND_FILE_NAME_CASE_MISMATCH: { | ||
| readonly code: 1118; | ||
| readonly message: "Failed to resolve \"{0}\" from \"{1}\". Did you mean \"{2}\"?"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| RELATIVE_DYNAMIC_IMPORT: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly RELATIVE_DYNAMIC_IMPORT: { | ||
| readonly code: 1120; | ||
| readonly message: "Illegal usage of the dynamic import syntax with a relative path."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| }; | ||
| export declare const TransformerErrors: { | ||
| CSS_TRANSFORMER_ERROR: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly CSS_TRANSFORMER_ERROR: { | ||
| readonly code: 1009; | ||
| readonly message: "{0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| CSS_IN_HTML_ERROR: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly CSS_IN_HTML_ERROR: { | ||
| readonly code: 1026; | ||
| readonly message: "An error occurred parsing inline CSS. {0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| HTML_TRANSFORMER_ERROR: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly HTML_TRANSFORMER_ERROR: { | ||
| readonly code: 1008; | ||
| readonly message: "{0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_ID: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_ID: { | ||
| readonly code: 1027; | ||
| readonly message: "Expect a string for id. Received {0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_SOURCE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_SOURCE: { | ||
| readonly code: 1006; | ||
| readonly message: "Expect a string for source. Received {0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| JS_TRANSFORMER_ERROR: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly JS_TRANSFORMER_ERROR: { | ||
| readonly code: 1007; | ||
| readonly message: "{0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| NO_AVAILABLE_TRANSFORMER: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly NO_AVAILABLE_TRANSFORMER: { | ||
| readonly code: 1005; | ||
| readonly message: "No available transformer for \"{0}\""; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| JS_TRANSFORMER_DECORATOR_ERROR: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly JS_TRANSFORMER_DECORATOR_ERROR: { | ||
| readonly code: 1198; | ||
| readonly message: "Decorators like @api, @track, and @wire are only supported in LightningElement classes. {0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=compiler.d.ts.map |
| import { DiagnosticLevel } from '../../shared/types'; | ||
| export declare const LWCClassErrors: { | ||
| INVALID_DYNAMIC_IMPORT_SOURCE_STRICT: { | ||
| code: number; | ||
| message: string; | ||
| url: string; | ||
| level: DiagnosticLevel; | ||
| readonly INVALID_DYNAMIC_IMPORT_SOURCE_STRICT: { | ||
| readonly code: 1121; | ||
| readonly message: "Invalid import. The argument \"{0}\" must be a stringLiteral for dynamic imports when strict mode is enabled."; | ||
| readonly url: ""; | ||
| readonly level: DiagnosticLevel.Error; | ||
| }; | ||
@@ -9,0 +9,0 @@ }; |
| import { DiagnosticLevel } from '../../shared/types'; | ||
| export declare const TemplateErrors: { | ||
| INVALID_TEMPLATE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_TEMPLATE: { | ||
| readonly code: 1003; | ||
| readonly message: "Invalid template"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| OPTIONS_MUST_BE_OBJECT: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly OPTIONS_MUST_BE_OBJECT: { | ||
| readonly code: 1028; | ||
| readonly message: "Compiler options must be an object"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| UNKNOWN_IF_MODIFIER: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly UNKNOWN_IF_MODIFIER: { | ||
| readonly code: 1029; | ||
| readonly message: "Unknown if modifier {0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| UNKNOWN_OPTION_PROPERTY: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly UNKNOWN_OPTION_PROPERTY: { | ||
| readonly code: 1030; | ||
| readonly message: "Unknown option property {0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| DUPLICATE_ELEMENT_ENTRY: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly DUPLICATE_ELEMENT_ENTRY: { | ||
| readonly code: 1150; | ||
| readonly message: "customRendererConfig contains duplicate entry for {0} element tag"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| CUSTOM_ELEMENT_TAG_DISALLOWED: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly CUSTOM_ELEMENT_TAG_DISALLOWED: { | ||
| readonly code: 1151; | ||
| readonly message: "customRendererConfig should not contain a custom element tag, but found {0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| }; | ||
| export declare const ParserDiagnostics: { | ||
| AMBIGUOUS_ATTRIBUTE_VALUE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly AMBIGUOUS_ATTRIBUTE_VALUE: { | ||
| readonly code: 1034; | ||
| readonly message: string; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| AMBIGUOUS_ATTRIBUTE_VALUE_STRING: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly AMBIGUOUS_ATTRIBUTE_VALUE_STRING: { | ||
| readonly code: 1035; | ||
| readonly message: "Ambiguous attribute value {0}. If you want to make it a string you should escape it {1}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| BOOLEAN_ATTRIBUTE_FALSE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly BOOLEAN_ATTRIBUTE_FALSE: { | ||
| readonly code: 1036; | ||
| readonly message: string; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| BOOLEAN_ATTRIBUTE_TRUE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly BOOLEAN_ATTRIBUTE_TRUE: { | ||
| readonly code: 1037; | ||
| readonly message: string; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| COMPUTED_PROPERTY_ACCESS_NOT_ALLOWED: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly COMPUTED_PROPERTY_ACCESS_NOT_ALLOWED: { | ||
| readonly code: 1038; | ||
| readonly message: "Template expression doesn't allow computed property access"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| DIRECTIVE_SHOULD_BE_EXPRESSION: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly DIRECTIVE_SHOULD_BE_EXPRESSION: { | ||
| readonly code: 1039; | ||
| readonly message: "{0} directive is expected to be an expression"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_ID_ATTRIBUTE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_ID_ATTRIBUTE: { | ||
| readonly code: 1040; | ||
| readonly message: "Invalid id value \"{0}\". Id values must not contain any whitespace."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_STATIC_ID_IN_ITERATION: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_STATIC_ID_IN_ITERATION: { | ||
| readonly code: 1041; | ||
| readonly message: "Static id values are not allowed in iterators. Id values must be unique within a template and must therefore be computed with an expression."; | ||
| readonly level: DiagnosticLevel.Warning; | ||
| readonly url: ""; | ||
| }; | ||
| DUPLICATE_ID_FOUND: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly DUPLICATE_ID_FOUND: { | ||
| readonly code: 1042; | ||
| readonly message: "Duplicate id value \"{0}\" detected. Id values must be unique within a template."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| EVENT_HANDLER_SHOULD_BE_EXPRESSION: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly EVENT_HANDLER_SHOULD_BE_EXPRESSION: { | ||
| readonly code: 1043; | ||
| readonly message: "Event handler should be an expression"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| FOR_EACH_AND_FOR_ITEM_DIRECTIVES_SHOULD_BE_TOGETHER: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly FOR_EACH_AND_FOR_ITEM_DIRECTIVES_SHOULD_BE_TOGETHER: { | ||
| readonly code: 1044; | ||
| readonly message: "for:each and for:item directives should be associated together."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| FOR_EACH_DIRECTIVE_SHOULD_BE_EXPRESSION: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly FOR_EACH_DIRECTIVE_SHOULD_BE_EXPRESSION: { | ||
| readonly code: 1045; | ||
| readonly message: "for:each directive is expected to be a expression."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| FOR_INDEX_DIRECTIVE_SHOULD_BE_STRING: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly FOR_INDEX_DIRECTIVE_SHOULD_BE_STRING: { | ||
| readonly code: 1046; | ||
| readonly message: "for:index directive is expected to be a string."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| FOR_ITEM_DIRECTIVE_SHOULD_BE_STRING: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly FOR_ITEM_DIRECTIVE_SHOULD_BE_STRING: { | ||
| readonly code: 1047; | ||
| readonly message: "for:item directive is expected to be a string."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| FORBIDDEN_IFRAME_SRCDOC_ATTRIBUTE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly FORBIDDEN_IFRAME_SRCDOC_ATTRIBUTE: { | ||
| readonly code: 1048; | ||
| readonly message: "srcdoc attribute is disallowed on <iframe> for security reasons"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| FORBIDDEN_SVG_NAMESPACE_IN_TEMPLATE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly FORBIDDEN_SVG_NAMESPACE_IN_TEMPLATE: { | ||
| readonly code: 1049; | ||
| readonly message: "Forbidden svg namespace tag found in template: '<{0}>' tag is not allowed within <svg>"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| FORBIDDEN_MATHML_NAMESPACE_IN_TEMPLATE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly FORBIDDEN_MATHML_NAMESPACE_IN_TEMPLATE: { | ||
| readonly code: 1050; | ||
| readonly message: "Forbidden MathML namespace tag found in template: '<{0}>' tag is not allowed within <math>"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| FORBIDDEN_TAG_ON_TEMPLATE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly FORBIDDEN_TAG_ON_TEMPLATE: { | ||
| readonly code: 1051; | ||
| readonly message: "Forbidden tag found in template: '<{0}>' tag is not allowed."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| GENERIC_PARSING_ERROR: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly GENERIC_PARSING_ERROR: { | ||
| readonly code: 1052; | ||
| readonly message: "Error parsing attribute: {0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| IDENTIFIER_PARSING_ERROR: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly IDENTIFIER_PARSING_ERROR: { | ||
| readonly code: 1053; | ||
| readonly message: "Error parsing identifier: {0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| IF_DIRECTIVE_SHOULD_BE_EXPRESSION: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly IF_DIRECTIVE_SHOULD_BE_EXPRESSION: { | ||
| readonly code: 1054; | ||
| readonly message: "If directive should be an expression"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_ATTRIBUTE_CASE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_ATTRIBUTE_CASE: { | ||
| readonly code: 1055; | ||
| readonly message: "{0} is not valid attribute for {1}. All attributes name should be all lowercase."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_EVENT_NAME: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_EVENT_NAME: { | ||
| readonly code: 1056; | ||
| readonly message: "Invalid event type \"{0}\". Event type must begin with a lower-case alphabetic character and contain only lower-case alphabetic characters, underscores, and numeric characters"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_HTML_ATTRIBUTE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_HTML_ATTRIBUTE: { | ||
| readonly code: 1057; | ||
| readonly message: "{0} is not valid attribute for {1}. For more information refer to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/{1}"; | ||
| readonly level: DiagnosticLevel.Warning; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_HTML_SYNTAX: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_HTML_SYNTAX: { | ||
| readonly code: 1058; | ||
| readonly message: string; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_IDENTIFIER: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_IDENTIFIER: { | ||
| readonly code: 1059; | ||
| readonly message: "{0} is not a valid identifier"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_NODE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_NODE: { | ||
| readonly code: 1060; | ||
| readonly message: "Template expression doesn't allow {0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_TABINDEX_ATTRIBUTE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_TABINDEX_ATTRIBUTE: { | ||
| readonly code: 1061; | ||
| readonly message: "The attribute \"tabindex\" can only be set to \"0\" or \"-1\"."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| DEPRECATED_IS_ATTRIBUTE_CANNOT_BE_EXPRESSION: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly DEPRECATED_IS_ATTRIBUTE_CANNOT_BE_EXPRESSION: { | ||
| readonly code: 1062; | ||
| readonly message: "\"is\" attribute value can't be an expression"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| IS_ATTRIBUTE_NOT_SUPPORTED: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly IS_ATTRIBUTE_NOT_SUPPORTED: { | ||
| readonly code: 1063; | ||
| readonly message: "\"is\" attribute is disallowed"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| KEY_ATTRIBUTE_SHOULD_BE_EXPRESSION: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly KEY_ATTRIBUTE_SHOULD_BE_EXPRESSION: { | ||
| readonly code: 1064; | ||
| readonly message: "Key attribute value should be an expression"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| KEY_SHOULDNT_REFERENCE_FOR_EACH_INDEX: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly KEY_SHOULDNT_REFERENCE_FOR_EACH_INDEX: { | ||
| readonly code: 1065; | ||
| readonly message: "Invalid key value for element <{0}>. Key cannot reference for:each index {1}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| KEY_SHOULDNT_REFERENCE_ITERATOR_INDEX: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly KEY_SHOULDNT_REFERENCE_ITERATOR_INDEX: { | ||
| readonly code: 1066; | ||
| readonly message: "Invalid key value for element <{0}>. Key cannot reference iterator index"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| MISSING_KEY_IN_ITERATOR: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly MISSING_KEY_IN_ITERATOR: { | ||
| readonly code: 1071; | ||
| readonly message: "Missing key for element <{0}> inside of iterator. Elements within iterators must have a unique, computed key value."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| MISSING_ROOT_TEMPLATE_TAG: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly MISSING_ROOT_TEMPLATE_TAG: { | ||
| readonly code: 1072; | ||
| readonly message: "Missing root template tag"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| MODIFYING_ITERATORS_NOT_ALLOWED: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly MODIFYING_ITERATORS_NOT_ALLOWED: { | ||
| readonly code: 1073; | ||
| readonly message: "Template expression doesn't allow to modify iterators"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| MULTIPLE_EXPRESSIONS: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly MULTIPLE_EXPRESSIONS: { | ||
| readonly code: 1074; | ||
| readonly message: "Multiple expressions found"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| MULTIPLE_ROOTS_FOUND: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly MULTIPLE_ROOTS_FOUND: { | ||
| readonly code: 1075; | ||
| readonly message: "Multiple roots found"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| NAME_ON_SLOT_CANNOT_BE_EXPRESSION: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly NAME_ON_SLOT_CANNOT_BE_EXPRESSION: { | ||
| readonly code: 1076; | ||
| readonly message: "Name attribute on slot tag can't be an expression."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| NO_DIRECTIVE_FOUND_ON_TEMPLATE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly NO_DIRECTIVE_FOUND_ON_TEMPLATE: { | ||
| readonly code: 1077; | ||
| readonly message: "Invalid template tag. A directive is expected to be associated with the template tag."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| NO_MATCHING_CLOSING_TAGS: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly NO_MATCHING_CLOSING_TAGS: { | ||
| readonly code: 1078; | ||
| readonly message: "<{0}> has no matching closing tag."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| ROOT_TAG_SHOULD_BE_TEMPLATE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly ROOT_TAG_SHOULD_BE_TEMPLATE: { | ||
| readonly code: 1079; | ||
| readonly message: "Expected root tag to be template, found {0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| ROOT_TEMPLATE_HAS_UNKNOWN_ATTRIBUTES: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly ROOT_TEMPLATE_HAS_UNKNOWN_ATTRIBUTES: { | ||
| readonly code: 1080; | ||
| readonly message: "Root template has unknown or disallowed attributes: {0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| SLOT_TAG_CANNOT_HAVE_DIRECTIVES: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly SLOT_TAG_CANNOT_HAVE_DIRECTIVES: { | ||
| readonly code: 1082; | ||
| readonly message: "<slot> tag can't be associated with {0} template directives."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| TEMPLATE_EXPRESSION_PARSING_ERROR: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly TEMPLATE_EXPRESSION_PARSING_ERROR: { | ||
| readonly code: 1083; | ||
| readonly message: "Error parsing template expression: {0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly strictLevel: DiagnosticLevel.Fatal; | ||
| readonly url: ""; | ||
| }; | ||
| UNEXPECTED_IF_MODIFIER: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly UNEXPECTED_IF_MODIFIER: { | ||
| readonly code: 1084; | ||
| readonly message: "Unexpected if modifier {0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_DOM_INVALID_VALUE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_DOM_INVALID_VALUE: { | ||
| readonly code: 1085; | ||
| readonly message: "Invalid value for \"lwc:dom\". 'lwc:dom' can only be set to {0}"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_DOM_INVALID_CONTENTS: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_DOM_INVALID_CONTENTS: { | ||
| readonly code: 1086; | ||
| readonly message: "Invalid contents for element with \"lwc:dom\". Element must be empty"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_DOM_INVALID_CUSTOM_ELEMENT: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_DOM_INVALID_CUSTOM_ELEMENT: { | ||
| readonly code: 1087; | ||
| readonly message: "Invalid directive \"lwc:dom\" on element {0}. \"lwc:dom\" cannot be added to a custom element"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_DOM_INVALID_SLOT_ELEMENT: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_DOM_INVALID_SLOT_ELEMENT: { | ||
| readonly code: 1088; | ||
| readonly message: "Invalid directive \"lwc:dom\" on <slot>.. \"lwc:dom\" cannot be added to a <slot>"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| STYLE_TAG_NOT_ALLOWED_IN_TEMPLATE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly STYLE_TAG_NOT_ALLOWED_IN_TEMPLATE: { | ||
| readonly code: 1122; | ||
| readonly message: "The <style> element is disallowed inside the template. Please add css rules into '.css' file of your component bundle."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| UNKNOWN_HTML_TAG_IN_TEMPLATE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly UNKNOWN_HTML_TAG_IN_TEMPLATE: { | ||
| readonly code: 1123; | ||
| readonly message: "Unknown html tag '<{0}>'. For more information refer to https://developer.mozilla.org/en-US/docs/Web/HTML/Element and https://developer.mozilla.org/en-US/docs/Web/SVG/Element"; | ||
| readonly level: DiagnosticLevel.Warning; | ||
| readonly url: ""; | ||
| }; | ||
| ATTRIBUTE_NAME_STARTS_WITH_INVALID_CHARACTER: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly ATTRIBUTE_NAME_STARTS_WITH_INVALID_CHARACTER: { | ||
| readonly code: 1124; | ||
| readonly message: "{0} is not valid attribute for {1}. Attribute name must start with an underscore, dollar sign, or an optional hyphen character followed by an alphabetic character."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| ATTRIBUTE_NAME_MUST_END_WITH_ALPHA_NUMERIC_CHARACTER: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly ATTRIBUTE_NAME_MUST_END_WITH_ALPHA_NUMERIC_CHARACTER: { | ||
| readonly code: 1125; | ||
| readonly message: "{0} is not valid attribute for {1}. Attribute name must end with alpha-numeric character."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| UNKNOWN_LWC_DIRECTIVE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly UNKNOWN_LWC_DIRECTIVE: { | ||
| readonly code: 1127; | ||
| readonly message: "Invalid directive \"{0}\" on element {1}."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_OPTS_LWC_DYNAMIC: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_OPTS_LWC_DYNAMIC: { | ||
| readonly code: 1128; | ||
| readonly message: "Invalid lwc:dynamic usage. The LWC dynamic directive must be enabled in order to use this feature."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_LWC_DYNAMIC_ON_NATIVE_ELEMENT: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_LWC_DYNAMIC_ON_NATIVE_ELEMENT: { | ||
| readonly code: 1129; | ||
| readonly message: "Invalid lwc:dynamic usage on element \"{0}\". This directive can only be used in a custom element."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_LWC_DYNAMIC_LITERAL_PROP: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_LWC_DYNAMIC_LITERAL_PROP: { | ||
| readonly code: 1130; | ||
| readonly message: "Invalid lwc:dynamic usage on element \"{0}\". The directive binding must be an expression."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_RENDER_MODE_INVALID_VALUE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_RENDER_MODE_INVALID_VALUE: { | ||
| readonly code: 1133; | ||
| readonly message: "Invalid value for \"lwc:render-mode\". 'lwc:render-mode' can only be set to \"shadow\", or \"light\""; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_LIGHT_SLOT_INVALID_ATTRIBUTES: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_LIGHT_SLOT_INVALID_ATTRIBUTES: { | ||
| readonly code: 1134; | ||
| readonly message: "Invalid attribute(s) '{0}' on slot. Slots in Light DOM templates (which have 'lwc:render-mode' directive) can only have [{1}] attributes"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_DOM_INVALID_IN_LIGHT_DOM: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_DOM_INVALID_IN_LIGHT_DOM: { | ||
| readonly code: 1135; | ||
| readonly message: "Invalid directive 'lwc:dom' on element {0}. 'lwc:dom' is not necessary in Light DOM components."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_FOR_EACH_WITH_ITERATOR: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_FOR_EACH_WITH_ITERATOR: { | ||
| readonly code: 1136; | ||
| readonly message: "Invalid usage for 'for:each' and '{0}' directives on the same element."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| NO_DUPLICATE_SLOTS: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly NO_DUPLICATE_SLOTS: { | ||
| readonly code: 1137; | ||
| readonly message: "Invalid duplicate slot ({0})."; | ||
| readonly level: DiagnosticLevel.Warning; | ||
| readonly url: ""; | ||
| }; | ||
| NO_SLOTS_IN_ITERATOR: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly NO_SLOTS_IN_ITERATOR: { | ||
| readonly code: 1138; | ||
| readonly message: "Invalid slot ({0}). A slot cannot appear inside of an iterator."; | ||
| readonly level: DiagnosticLevel.Warning; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_LIGHT_SLOT_INVALID_EVENT_LISTENER: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_LIGHT_SLOT_INVALID_EVENT_LISTENER: { | ||
| readonly code: 1139; | ||
| readonly message: "Invalid event listener '{0}' on slot. Slots in Light DOM templates cannot have event listeners."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_INNER_HTML_INVALID_CUSTOM_ELEMENT: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_INNER_HTML_INVALID_CUSTOM_ELEMENT: { | ||
| readonly code: 1140; | ||
| readonly message: "Invalid lwc:inner-html usage on element \"{0}\". The directive can't be used on a custom element or special LWC managed elements denoted with lwc:*."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_INNER_HTML_INVALID_ELEMENT: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_INNER_HTML_INVALID_ELEMENT: { | ||
| readonly code: 1141; | ||
| readonly message: "Invalid lwc:inner-html usage on element \"{0}\". The directive can't be used on a slot or a template element."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_INNER_HTML_INVALID_CONTENTS: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_INNER_HTML_INVALID_CONTENTS: { | ||
| readonly code: 1142; | ||
| readonly message: "Invalid lwc:inner-html usage on element \"{0}\". The directive can't be used on an element with content."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_INNER_HTML_INVALID_VALUE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_INNER_HTML_INVALID_VALUE: { | ||
| readonly code: 1143; | ||
| readonly message: "Invalid lwc:inner-html usage on element \"{0}\". The directive binding can only be an expression or a string."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_HTML_RECOVERY: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_HTML_RECOVERY: { | ||
| readonly code: 1144; | ||
| readonly message: "Invalid HTML detected, \"<{0}>\" was automatically inserted within \"<{1}>\"; the compiled template may not match the template source."; | ||
| readonly level: DiagnosticLevel.Warning; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_TEMPLATE_ATTRIBUTE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_TEMPLATE_ATTRIBUTE: { | ||
| readonly code: 1145; | ||
| readonly message: string; | ||
| readonly level: DiagnosticLevel.Warning; | ||
| readonly url: ""; | ||
| }; | ||
| PRESERVE_COMMENTS_MUST_BE_BOOLEAN: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly PRESERVE_COMMENTS_MUST_BE_BOOLEAN: { | ||
| readonly code: 1146; | ||
| readonly message: "lwc:preserve-comments must be a boolean attribute."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| DUPLICATE_ATTR_PROP_TRANSFORM: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly DUPLICATE_ATTR_PROP_TRANSFORM: { | ||
| readonly code: 1147; | ||
| readonly message: "Found multiple HTML attributes mapping to the same JavaScript property. \"{0}\" and \"{1}\" both map to \"{2}\"."; | ||
| readonly level: DiagnosticLevel.Warning; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_HTML_SYNTAX_WARNING: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_HTML_SYNTAX_WARNING: { | ||
| readonly code: 1148; | ||
| readonly message: string; | ||
| readonly level: DiagnosticLevel.Warning; | ||
| readonly url: ""; | ||
| }; | ||
| KEY_SHOULD_BE_IN_ITERATION: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly KEY_SHOULD_BE_IN_ITERATION: { | ||
| readonly code: 1149; | ||
| readonly message: "Invalid key attribute on element <{0}>. The key attribute should be applied to an element with for:each or iterator:*, or to a direct child of a <template> element with for:each or iterator:*. This key will be ignored, and may throw an error in future versions of LWC."; | ||
| readonly level: DiagnosticLevel.Warning; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_TEMPLATE_WARNING: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_TEMPLATE_WARNING: { | ||
| readonly code: 1153; | ||
| readonly message: string; | ||
| readonly level: DiagnosticLevel.Warning; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_LWC_SPREAD_LITERAL_PROP: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_LWC_SPREAD_LITERAL_PROP: { | ||
| readonly code: 1155; | ||
| readonly message: "Invalid lwc:spread usage on element \"{0}\". The directive binding must be an expression."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_REF_INVALID_ELEMENT: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_REF_INVALID_ELEMENT: { | ||
| readonly code: 1156; | ||
| readonly message: "Invalid lwc:ref usage on element \"{0}\". The directive can't be used on a slot or a template element."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_REF_INVALID_VALUE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_REF_INVALID_VALUE: { | ||
| readonly code: 1157; | ||
| readonly message: "Invalid lwc:ref usage on element \"{0}\". The directive binding must be a non-empty string."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_REF_INVALID_LOCATION_INSIDE_ITERATION: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_REF_INVALID_LOCATION_INSIDE_ITERATION: { | ||
| readonly code: 1158; | ||
| readonly message: "Invalid lwc:ref usage on element \"{0}\". lwc:ref cannot be used inside for:each or an iterator."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| IF_BLOCK_DIRECTIVE_SHOULD_BE_EXPRESSION: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly IF_BLOCK_DIRECTIVE_SHOULD_BE_EXPRESSION: { | ||
| readonly code: 1159; | ||
| readonly message: "lwc:if directive value should be an expression"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| ELSEIF_BLOCK_DIRECTIVE_SHOULD_BE_EXPRESSION: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly ELSEIF_BLOCK_DIRECTIVE_SHOULD_BE_EXPRESSION: { | ||
| readonly code: 1160; | ||
| readonly message: "lwc:elseif directive value should be an expression"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| ELSE_BLOCK_DIRECTIVE_CANNOT_HAVE_VALUE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly ELSE_BLOCK_DIRECTIVE_CANNOT_HAVE_VALUE: { | ||
| readonly code: 1161; | ||
| readonly message: "lwc:else directive cannot have a value"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_IF_BLOCK_DIRECTIVE_WITH_CONDITIONAL: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_IF_BLOCK_DIRECTIVE_WITH_CONDITIONAL: { | ||
| readonly code: 1162; | ||
| readonly message: "Invalid usage of 'lwc:if' and '{0}' directives on the same element."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_ELSEIF_BLOCK_DIRECTIVE_WITH_CONDITIONAL: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_ELSEIF_BLOCK_DIRECTIVE_WITH_CONDITIONAL: { | ||
| readonly code: 1163; | ||
| readonly message: "Invalid usage of 'lwc:elseif' and '{0}' directives on the same element."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_ELSE_BLOCK_DIRECTIVE_WITH_CONDITIONAL: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_ELSE_BLOCK_DIRECTIVE_WITH_CONDITIONAL: { | ||
| readonly code: 1164; | ||
| readonly message: "Invalid usage of 'lwc:else' and '{0}' directives on the same element."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_IF_SCOPE_NOT_FOUND: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_IF_SCOPE_NOT_FOUND: { | ||
| readonly code: 1165; | ||
| readonly message: "'{0}' directive must be used immediately after an element with 'lwc:if' or 'lwc:elseif'. No such element found."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_IF_CANNOT_BE_USED_WITH_IF_DIRECTIVE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_IF_CANNOT_BE_USED_WITH_IF_DIRECTIVE: { | ||
| readonly code: 1166; | ||
| readonly message: "'{0}' directive cannot be used with 'lwc:if', 'lwc:elseif', or 'lwc:else directives on the same element."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| SCOPED_SLOT_BIND_IN_LIGHT_DOM_ONLY: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly SCOPED_SLOT_BIND_IN_LIGHT_DOM_ONLY: { | ||
| readonly code: 1169; | ||
| readonly message: "Invalid lwc:slot-bind usage on <slot> element. Scoped slots usage is allowed in Light DOM templates only."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_LWC_SLOT_BIND_LITERAL_PROP: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_LWC_SLOT_BIND_LITERAL_PROP: { | ||
| readonly code: 1170; | ||
| readonly message: "Invalid lwc:slot-bind usage on element {0}. The directive binding must be an expression."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_LWC_SLOT_BIND_NON_SLOT_ELEMENT: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_LWC_SLOT_BIND_NON_SLOT_ELEMENT: { | ||
| readonly code: 1171; | ||
| readonly message: "Invalid lwc:slot-bind usage on element {0}. The directive can be used on a <slot> element only."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| NO_DUPLICATE_SCOPED_SLOT: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly NO_DUPLICATE_SCOPED_SLOT: { | ||
| readonly code: 1172; | ||
| readonly message: "Invalid duplicate scoped slots ({0})"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| NO_MIXED_SLOT_TYPES: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly NO_MIXED_SLOT_TYPES: { | ||
| readonly code: 1173; | ||
| readonly message: "Mixing slot types disallowed for same ({0}) slot."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| SLOT_DATA_VALUE_SHOULD_BE_STRING: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly SLOT_DATA_VALUE_SHOULD_BE_STRING: { | ||
| readonly code: 1174; | ||
| readonly message: "lwc:slot-data attribute value is expected to be a string."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| SCOPED_SLOT_DATA_ON_TEMPLATE_ONLY: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly SCOPED_SLOT_DATA_ON_TEMPLATE_ONLY: { | ||
| readonly code: 1176; | ||
| readonly message: "lwc:slot-data directive can be used on <template> elements only."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| NON_ELEMENT_SCOPED_SLOT_CONTENT: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly NON_ELEMENT_SCOPED_SLOT_CONTENT: { | ||
| readonly code: 1177; | ||
| readonly message: "<template> tag with lwc:slot-data directive cannot contain a comment or text node as a direct child."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_PARENT_OF_LWC_SLOT_DATA: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_PARENT_OF_LWC_SLOT_DATA: { | ||
| readonly code: 1178; | ||
| readonly message: "<template> tag with lwc:slot-data directive must be the direct child of a custom element."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| SCOPED_SLOTDATA_CANNOT_BE_COMBINED_WITH_OTHER_DIRECTIVE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly SCOPED_SLOTDATA_CANNOT_BE_COMBINED_WITH_OTHER_DIRECTIVE: { | ||
| readonly code: 1179; | ||
| readonly message: "lwc:slot-data directive cannot be combined with other directives on the same <template> tag."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_LWC_EXTERNAL_ON_NON_CUSTOM_ELEMENT: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_LWC_EXTERNAL_ON_NON_CUSTOM_ELEMENT: { | ||
| readonly code: 1180; | ||
| readonly message: "Invalid lwc:external directive usage: {0}. This directive can only be used on custom elements."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_LWC_EXTERNAL_VALUE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_LWC_EXTERNAL_VALUE: { | ||
| readonly code: 1181; | ||
| readonly message: "Invalid lwc:external directive usage: {0}. This directive is a boolean attribute and should not have a value."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| SINGLE_IF_DIRECTIVE_ALLOWED: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly SINGLE_IF_DIRECTIVE_ALLOWED: { | ||
| readonly code: 1182; | ||
| readonly message: "Multiple if: directives found on '{0}'. Only one if: directive is allowed; the rest are ignored."; | ||
| readonly level: DiagnosticLevel.Warning; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_COMPONENT_TAG_WITHOUT_IS_DIRECTIVE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_COMPONENT_TAG_WITHOUT_IS_DIRECTIVE: { | ||
| readonly code: 1183; | ||
| readonly message: "<lwc:component> must have an 'lwc:is' attribute."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| UNSUPPORTED_LWC_TAG_NAME: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly UNSUPPORTED_LWC_TAG_NAME: { | ||
| readonly code: 1184; | ||
| readonly message: "{0} is not a special LWC tag name and will be treated as an HTML element."; | ||
| readonly level: DiagnosticLevel.Warning; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_LWC_IS_DIRECTIVE_VALUE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_LWC_IS_DIRECTIVE_VALUE: { | ||
| readonly code: 1185; | ||
| readonly message: "Invalid lwc:is usage for value {0}. The value assigned to lwc:is must be an expression."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| LWC_IS_INVALID_ELEMENT: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly LWC_IS_INVALID_ELEMENT: { | ||
| readonly code: 1186; | ||
| readonly message: "Invalid lwc:is usage for element {0}. The directive can only be used with <lwc:component>"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| DEPRECATED_LWC_DYNAMIC_ATTRIBUTE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly DEPRECATED_LWC_DYNAMIC_ATTRIBUTE: { | ||
| readonly code: 1187; | ||
| readonly message: "The lwc:dynamic directive is deprecated and will be removed in a future release. Please use lwc:is instead."; | ||
| readonly level: DiagnosticLevel.Warning; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_OPTS_LWC_ENABLE_DYNAMIC_COMPONENTS: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_OPTS_LWC_ENABLE_DYNAMIC_COMPONENTS: { | ||
| readonly code: 1188; | ||
| readonly message: "Invalid dynamic components usage, lwc:component and lwc:is can only be used when dynamic components have been enabled."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_EXPR_ARROW_FN_PARAM: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_EXPR_ARROW_FN_PARAM: { | ||
| readonly code: 1189; | ||
| readonly message: "Template expression doesn't allow {0} in arrow function params."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_EXPR_STATEMENTS_PROHIBITED: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_EXPR_STATEMENTS_PROHIBITED: { | ||
| readonly code: 1190; | ||
| readonly message: "Statements are disallowed in template expressions."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_EXPR_MUTATION_OUTSIDE_ARROW: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_EXPR_MUTATION_OUTSIDE_ARROW: { | ||
| readonly code: 1191; | ||
| readonly message: "Field mutations are only permitted within arrow functions."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_EXPR_DELETE_OP: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_EXPR_DELETE_OP: { | ||
| readonly code: 1192; | ||
| readonly message: "Use of the delete operator is prohibited within template expressions."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_EXPR_ARROW_FN_BODY: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_EXPR_ARROW_FN_BODY: { | ||
| readonly code: 1193; | ||
| readonly message: "The body of arrow functions in template expressions must be an expression."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_EXPR_ARROW_FN_KIND: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_EXPR_ARROW_FN_KIND: { | ||
| readonly code: 1194; | ||
| readonly message: "Arrow functions in template expressions cannot be {0}."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_EXPR_EARLY_STAGE_FEATURE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_EXPR_EARLY_STAGE_FEATURE: { | ||
| readonly code: 1195; | ||
| readonly message: "Early-stage JS features are disallowed in template expressions."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_EXPR_PROHIBITED_NODE_TYPE: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_EXPR_PROHIBITED_NODE_TYPE: { | ||
| readonly code: 1196; | ||
| readonly message: "Use of {0} is disallowed within template expressions."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_EXPR_COMMENTS_DISALLOWED: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_EXPR_COMMENTS_DISALLOWED: { | ||
| readonly code: 1197; | ||
| readonly message: "Use of comments is disallowed within template expressions."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| IGNORED_SLOT_ATTRIBUTE_IN_CHILD: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly IGNORED_SLOT_ATTRIBUTE_IN_CHILD: { | ||
| readonly code: 1201; | ||
| readonly message: "The slot attribute in {0} will be ignored due to its ancestor {1}. It must be a direct child of the containing component."; | ||
| readonly level: DiagnosticLevel.Warning; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_LWC_ON_ELEMENT: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_LWC_ON_ELEMENT: { | ||
| readonly code: 1203; | ||
| readonly message: "Invalid lwc:on usage on element \"{0}\". The directive can't be used on a template element."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_LWC_ON_LITERAL_PROP: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_LWC_ON_LITERAL_PROP: { | ||
| readonly code: 1204; | ||
| readonly message: "Invalid lwc:on usage on element \"{0}\". The directive binding must be an expression."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_LWC_ON_WITH_DECLARATIVE_LISTENERS: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_LWC_ON_WITH_DECLARATIVE_LISTENERS: { | ||
| readonly code: 1205; | ||
| readonly message: "Invalid lwc:on usage on element \"{0}\". It is not permitted to use declarative event listeners alongside lwc:on"; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_LWC_ON_OPTS: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_LWC_ON_OPTS: { | ||
| readonly code: 1206; | ||
| readonly message: "Invalid lwc:on usage. The `lwc:on` directive must be enabled in order to use this feature."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| COMPUTED_PROPERTY_ACCESS_NOT_ALLOWED_CTE_UNQUOTED: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly COMPUTED_PROPERTY_ACCESS_NOT_ALLOWED_CTE_UNQUOTED: { | ||
| readonly code: 1207; | ||
| readonly message: "Template expression doesn't allow computed property access unless the expression is surrounded by quotes: \"{0}\""; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_NODE_CTE_UNQUOTED: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_NODE_CTE_UNQUOTED: { | ||
| readonly code: 1208; | ||
| readonly message: "Template expression doesn't allow {0} unless the expression is surrounded by quotes: \"{1}\""; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| COMPUTED_PROPERTY_ACCESS_NOT_ALLOWED_CTE_API_VERSION: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly COMPUTED_PROPERTY_ACCESS_NOT_ALLOWED_CTE_API_VERSION: { | ||
| readonly code: 1209; | ||
| readonly message: "Template expression doesn't allow computed property access. The current component API version ({1}) is insufficient and must be increased to at least {2} for this type of expression."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| INVALID_NODE_CTE_API_VERSION: { | ||
| code: number; | ||
| message: string; | ||
| level: DiagnosticLevel; | ||
| url: string; | ||
| readonly INVALID_NODE_CTE_API_VERSION: { | ||
| readonly code: 1210; | ||
| readonly message: "Template expression doesn't allow {0}. The current component API version ({1}) is insufficient and must be increased to at least {2} for this type of expression."; | ||
| readonly level: DiagnosticLevel.Error; | ||
| readonly url: ""; | ||
| }; | ||
| }; | ||
| //# sourceMappingURL=template-transform.d.ts.map |
@@ -25,3 +25,3 @@ import { CompilerError } from './utils'; | ||
| */ | ||
| export declare function generateCompilerDiagnostic(errorInfo: LWCErrorInfo, config?: ErrorConfig): CompilerDiagnostic; | ||
| export declare function generateCompilerDiagnostic(errorInfo: LWCErrorInfo, config?: ErrorConfig, useStrictErrorOverride?: boolean): CompilerDiagnostic; | ||
| /** | ||
@@ -35,3 +35,3 @@ * Generates a compiler error. This function is used to look up the specified errorInfo | ||
| */ | ||
| export declare function generateCompilerError(errorInfo: LWCErrorInfo, config?: ErrorConfig): CompilerError; | ||
| export declare function generateCompilerError(errorInfo: LWCErrorInfo, config?: ErrorConfig, useStrictErrorOverride?: boolean): CompilerError; | ||
| /** | ||
@@ -52,3 +52,3 @@ * Validates that the provided condition is truthy. | ||
| */ | ||
| export declare function normalizeToCompilerError(errorInfo: LWCErrorInfo, error: any, origin?: CompilerDiagnosticOrigin): CompilerError; | ||
| export declare function normalizeToCompilerError(fallbackErrorInfo: LWCErrorInfo, error: any, origin?: CompilerDiagnosticOrigin, useStrictErrorOverride?: boolean): CompilerError; | ||
| /** | ||
@@ -61,3 +61,3 @@ * Normalizes a received error into a CompilerDiagnostic. Adds any provided additional origin info. | ||
| */ | ||
| export declare function normalizeToDiagnostic(errorInfo: LWCErrorInfo, error: any, origin?: CompilerDiagnosticOrigin): CompilerDiagnostic; | ||
| export declare function normalizeToDiagnostic(errorInfo: LWCErrorInfo, error: any, origin?: CompilerDiagnosticOrigin, useStrictErrorOverride?: boolean): CompilerDiagnostic; | ||
| //# sourceMappingURL=errors.d.ts.map |
@@ -19,3 +19,3 @@ import { DiagnosticLevel } from '../shared/types'; | ||
| level: DiagnosticLevel; | ||
| constructor(code: number, message: string, filename?: string, location?: Location); | ||
| constructor(code: number, message: string, filename?: string, location?: Location, level?: DiagnosticLevel); | ||
| static from(diagnostic: CompilerDiagnostic, origin?: CompilerDiagnosticOrigin): CompilerError; | ||
@@ -22,0 +22,0 @@ toDiagnostic(): CompilerDiagnostic; |
+47
-14
@@ -52,8 +52,8 @@ /** | ||
| class CompilerError extends Error { | ||
| constructor(code, message, filename, location) { | ||
| constructor(code, message, filename, location, level = exports.DiagnosticLevel.Error) { | ||
| super(message); | ||
| this.level = exports.DiagnosticLevel.Error; | ||
| this.code = code; | ||
| this.filename = filename; | ||
| this.location = location; | ||
| this.level = level; | ||
| } | ||
@@ -153,2 +153,3 @@ static from(diagnostic, origin) { | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -223,2 +224,3 @@ }; | ||
| level: exports.DiagnosticLevel.Warning, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -230,2 +232,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -237,2 +240,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -244,2 +248,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -277,2 +282,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -284,2 +290,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -291,2 +298,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -298,2 +306,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -305,2 +314,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -312,2 +322,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -319,2 +330,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -526,2 +538,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -679,2 +692,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -686,2 +700,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -718,2 +733,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -779,2 +795,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -798,2 +815,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -817,2 +835,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -824,2 +843,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -844,2 +864,3 @@ }, | ||
| level: exports.DiagnosticLevel.Error, | ||
| strictLevel: exports.DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -1386,3 +1407,3 @@ }, | ||
| */ | ||
| function generateCompilerDiagnostic(errorInfo, config) { | ||
| function generateCompilerDiagnostic(errorInfo, config, useStrictErrorOverride = false) { | ||
| const message = generateErrorMessage(errorInfo, config && config.messageArgs); | ||
@@ -1392,3 +1413,3 @@ const diagnostic = { | ||
| message, | ||
| level: errorInfo.level, | ||
| level: getEffectiveErrorLevel(errorInfo, useStrictErrorOverride), | ||
| }; | ||
@@ -1409,5 +1430,6 @@ if (config && config.origin) { | ||
| */ | ||
| function generateCompilerError(errorInfo, config) { | ||
| function generateCompilerError(errorInfo, config, useStrictErrorOverride = false) { | ||
| const message = generateErrorMessage(errorInfo, config && config.messageArgs); | ||
| const error = new CompilerError(errorInfo.code, message); | ||
| const level = getEffectiveErrorLevel(errorInfo, useStrictErrorOverride); | ||
| const error = new CompilerError(errorInfo.code, message, undefined, undefined, level); | ||
| if (config) { | ||
@@ -1440,3 +1462,3 @@ error.filename = getFilename(config.origin); | ||
| */ | ||
| function normalizeToCompilerError(errorInfo, error, origin) { | ||
| function normalizeToCompilerError(fallbackErrorInfo, error, origin, useStrictErrorOverride = false) { | ||
| if (error instanceof CompilerError) { | ||
@@ -1449,4 +1471,4 @@ if (origin) { | ||
| } | ||
| const { code, message, filename, location } = convertErrorToDiagnostic(error, errorInfo, origin); | ||
| const compilerError = new CompilerError(code, `${error.name}: ${message}`, filename, location); | ||
| const { code, message, filename, location, level } = convertErrorToDiagnostic(error, fallbackErrorInfo, origin, useStrictErrorOverride); | ||
| const compilerError = new CompilerError(code, `${error.name}: ${message}`, filename, location, level); | ||
| compilerError.stack = error.stack; | ||
@@ -1456,2 +1478,13 @@ return compilerError; | ||
| /** | ||
| * Determines the effective error level based on strict mode override settings. | ||
| * @param errorInfo The error information containing level and strictLevel properties | ||
| * @param useStrictErrorOverride Whether to use strict error level override | ||
| * @returns The effective diagnostic level to use | ||
| */ | ||
| function getEffectiveErrorLevel(errorInfo, useStrictErrorOverride) { | ||
| return useStrictErrorOverride && errorInfo.strictLevel !== undefined | ||
| ? errorInfo.strictLevel | ||
| : errorInfo.level; | ||
| } | ||
| /** | ||
| * Normalizes a received error into a CompilerDiagnostic. Adds any provided additional origin info. | ||
@@ -1463,3 +1496,3 @@ * @param errorInfo The object holding the error metadata. | ||
| */ | ||
| function normalizeToDiagnostic(errorInfo, error, origin) { | ||
| function normalizeToDiagnostic(errorInfo, error, origin, useStrictErrorOverride = false) { | ||
| if (error instanceof CompilerError) { | ||
@@ -1473,5 +1506,5 @@ const diagnostic = error.toDiagnostic(); | ||
| } | ||
| return convertErrorToDiagnostic(error, errorInfo, origin); | ||
| return convertErrorToDiagnostic(error, errorInfo, origin, useStrictErrorOverride); | ||
| } | ||
| function convertErrorToDiagnostic(error, fallbackErrorInfo, origin) { | ||
| function convertErrorToDiagnostic(error, fallbackErrorInfo, origin, useStrictErrorOverride = false) { | ||
| const code = getCodeFromError(error) || fallbackErrorInfo.code; | ||
@@ -1481,3 +1514,3 @@ const message = error.lwcCode | ||
| : generateErrorMessage(fallbackErrorInfo, [error.message]); | ||
| const level = error.level || fallbackErrorInfo.level; | ||
| const level = getEffectiveErrorLevel('level' in error ? error : fallbackErrorInfo, useStrictErrorOverride); | ||
| const filename = getFilename(origin, error); | ||
@@ -1516,3 +1549,3 @@ const location = getLocation(origin, error); | ||
| exports.normalizeToDiagnostic = normalizeToDiagnostic; | ||
| /** version: 8.22.6 */ | ||
| /** version: 8.23.0 */ | ||
| //# sourceMappingURL=index.cjs.js.map |
+47
-14
@@ -48,8 +48,8 @@ /** | ||
| class CompilerError extends Error { | ||
| constructor(code, message, filename, location) { | ||
| constructor(code, message, filename, location, level = DiagnosticLevel.Error) { | ||
| super(message); | ||
| this.level = DiagnosticLevel.Error; | ||
| this.code = code; | ||
| this.filename = filename; | ||
| this.location = location; | ||
| this.level = level; | ||
| } | ||
@@ -149,2 +149,3 @@ static from(diagnostic, origin) { | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -219,2 +220,3 @@ }; | ||
| level: DiagnosticLevel.Warning, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -226,2 +228,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -233,2 +236,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -240,2 +244,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -273,2 +278,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -280,2 +286,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -287,2 +294,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -294,2 +302,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -301,2 +310,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -308,2 +318,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -315,2 +326,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -522,2 +534,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -675,2 +688,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -682,2 +696,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -714,2 +729,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -775,2 +791,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -794,2 +811,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -813,2 +831,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -820,2 +839,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -840,2 +860,3 @@ }, | ||
| level: DiagnosticLevel.Error, | ||
| strictLevel: DiagnosticLevel.Fatal, | ||
| url: '', | ||
@@ -1382,3 +1403,3 @@ }, | ||
| */ | ||
| function generateCompilerDiagnostic(errorInfo, config) { | ||
| function generateCompilerDiagnostic(errorInfo, config, useStrictErrorOverride = false) { | ||
| const message = generateErrorMessage(errorInfo, config && config.messageArgs); | ||
@@ -1388,3 +1409,3 @@ const diagnostic = { | ||
| message, | ||
| level: errorInfo.level, | ||
| level: getEffectiveErrorLevel(errorInfo, useStrictErrorOverride), | ||
| }; | ||
@@ -1405,5 +1426,6 @@ if (config && config.origin) { | ||
| */ | ||
| function generateCompilerError(errorInfo, config) { | ||
| function generateCompilerError(errorInfo, config, useStrictErrorOverride = false) { | ||
| const message = generateErrorMessage(errorInfo, config && config.messageArgs); | ||
| const error = new CompilerError(errorInfo.code, message); | ||
| const level = getEffectiveErrorLevel(errorInfo, useStrictErrorOverride); | ||
| const error = new CompilerError(errorInfo.code, message, undefined, undefined, level); | ||
| if (config) { | ||
@@ -1436,3 +1458,3 @@ error.filename = getFilename(config.origin); | ||
| */ | ||
| function normalizeToCompilerError(errorInfo, error, origin) { | ||
| function normalizeToCompilerError(fallbackErrorInfo, error, origin, useStrictErrorOverride = false) { | ||
| if (error instanceof CompilerError) { | ||
@@ -1445,4 +1467,4 @@ if (origin) { | ||
| } | ||
| const { code, message, filename, location } = convertErrorToDiagnostic(error, errorInfo, origin); | ||
| const compilerError = new CompilerError(code, `${error.name}: ${message}`, filename, location); | ||
| const { code, message, filename, location, level } = convertErrorToDiagnostic(error, fallbackErrorInfo, origin, useStrictErrorOverride); | ||
| const compilerError = new CompilerError(code, `${error.name}: ${message}`, filename, location, level); | ||
| compilerError.stack = error.stack; | ||
@@ -1452,2 +1474,13 @@ return compilerError; | ||
| /** | ||
| * Determines the effective error level based on strict mode override settings. | ||
| * @param errorInfo The error information containing level and strictLevel properties | ||
| * @param useStrictErrorOverride Whether to use strict error level override | ||
| * @returns The effective diagnostic level to use | ||
| */ | ||
| function getEffectiveErrorLevel(errorInfo, useStrictErrorOverride) { | ||
| return useStrictErrorOverride && errorInfo.strictLevel !== undefined | ||
| ? errorInfo.strictLevel | ||
| : errorInfo.level; | ||
| } | ||
| /** | ||
| * Normalizes a received error into a CompilerDiagnostic. Adds any provided additional origin info. | ||
@@ -1459,3 +1492,3 @@ * @param errorInfo The object holding the error metadata. | ||
| */ | ||
| function normalizeToDiagnostic(errorInfo, error, origin) { | ||
| function normalizeToDiagnostic(errorInfo, error, origin, useStrictErrorOverride = false) { | ||
| if (error instanceof CompilerError) { | ||
@@ -1469,5 +1502,5 @@ const diagnostic = error.toDiagnostic(); | ||
| } | ||
| return convertErrorToDiagnostic(error, errorInfo, origin); | ||
| return convertErrorToDiagnostic(error, errorInfo, origin, useStrictErrorOverride); | ||
| } | ||
| function convertErrorToDiagnostic(error, fallbackErrorInfo, origin) { | ||
| function convertErrorToDiagnostic(error, fallbackErrorInfo, origin, useStrictErrorOverride = false) { | ||
| const code = getCodeFromError(error) || fallbackErrorInfo.code; | ||
@@ -1477,3 +1510,3 @@ const message = error.lwcCode | ||
| : generateErrorMessage(fallbackErrorInfo, [error.message]); | ||
| const level = error.level || fallbackErrorInfo.level; | ||
| const level = getEffectiveErrorLevel('level' in error ? error : fallbackErrorInfo, useStrictErrorOverride); | ||
| const filename = getFilename(origin, error); | ||
@@ -1497,3 +1530,3 @@ const location = getLocation(origin, error); | ||
| export { CompilerError, CompilerMetrics, CompilerValidationErrors, DecoratorErrors, DiagnosticLevel, GENERIC_COMPILER_ERROR, LWCClassErrors, ModuleResolutionErrors, ParserDiagnostics, SsrCompilerErrors, TemplateErrors, TransformerErrors, generateCompilerDiagnostic, generateCompilerError, generateErrorMessage, invariant, normalizeToCompilerError, normalizeToDiagnostic }; | ||
| /** version: 8.22.6 */ | ||
| /** version: 8.23.0 */ | ||
| //# sourceMappingURL=index.js.map |
@@ -16,2 +16,3 @@ export declare enum DiagnosticLevel { | ||
| url?: string; | ||
| strictLevel?: DiagnosticLevel; | ||
| } | ||
@@ -18,0 +19,0 @@ export interface Location { |
+1
-1
@@ -7,3 +7,3 @@ { | ||
| "name": "@lwc/errors", | ||
| "version": "8.22.6", | ||
| "version": "8.23.0", | ||
| "description": "LWC Error Utilities", | ||
@@ -10,0 +10,0 @@ "keywords": [ |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
177631
14.77%4320
2.08%11
266.67%