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

@lwc/errors

Package Overview
Dependencies
Maintainers
14
Versions
787
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwc/errors - npm Package Compare versions

Comparing version 6.0.0 to 6.1.0

5

dist/compiler/error-info/compiler.d.ts
import { DiagnosticLevel } from '../../shared/types';
/**
* TODO [W-5678919]: implement script to determine the next available error code
* In the meantime, reference and the update the value at src/compiler/error-info/index.ts
*/
export declare const GENERIC_COMPILER_ERROR: {

@@ -10,2 +6,3 @@ code: number;

level: DiagnosticLevel;
url: string;
};

@@ -12,0 +9,0 @@ export declare const CompilerValidationErrors: {

2

dist/compiler/error-info/index.d.ts
/**
* Next error code: 1199
* Next error code: 1201
*/

@@ -4,0 +4,0 @@ export * from './compiler';

import { DiagnosticLevel } from '../../shared/types';
/**
* TODO [W-5678919]: implement script to determine the next available error code
* In the meantime, reference and the update the value at src/compiler/error-info/index.ts
*/
export declare const LWCClassErrors: {

@@ -165,2 +161,14 @@ INVALID_DYNAMIC_IMPORT_SOURCE_STRICT: {

};
COMPUTED_PROPERTY_CANNOT_BE_TEMPLATE_LITERAL: {
code: number;
message: string;
level: DiagnosticLevel;
url: string;
};
COMPUTED_PROPERTY_MUST_BE_CONSTANT_OR_LITERAL: {
code: number;
message: string;
level: DiagnosticLevel;
url: string;
};
};
import { DiagnosticLevel } from '../../shared/types';
/**
* TODO [W-5678919]: implement script to determine the next available error code
* In the meantime, reference and the update the value at src/compiler/error-info/index.ts
*/
export declare const TemplateErrors: {

@@ -505,2 +501,3 @@ INVALID_TEMPLATE: {

level: DiagnosticLevel;
url: string;
};

@@ -507,0 +504,0 @@ LWC_REF_INVALID_ELEMENT: {

/**
* Copyright (C) 2023 salesforce.com, inc.
* Copyright (c) 2024 Salesforce, Inc.
*/

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

/*
* Copyright (c) 2018, salesforce.com, inc.
* Copyright (c) 2024, Salesforce, Inc.
* All rights reserved.

@@ -121,5 +121,4 @@ * SPDX-License-Identifier: MIT

*/
/**
* TODO [W-5678919]: implement script to determine the next available error code
* In the meantime, reference and the update the value at src/compiler/error-info/index.ts
/*
* For the next available error code, reference (and update!) the value in ./index.ts
*/

@@ -130,2 +129,3 @@ const GENERIC_COMPILER_ERROR = {

level: exports.DiagnosticLevel.Error,
url: '',
};

@@ -296,3 +296,3 @@ const CompilerValidationErrors = {

/*
* Copyright (c) 2018, salesforce.com, inc.
* Copyright (c) 2024, Salesforce, Inc.
* All rights reserved.

@@ -302,5 +302,4 @@ * SPDX-License-Identifier: MIT

*/
/**
* TODO [W-5678919]: implement script to determine the next available error code
* In the meantime, reference and the update the value at src/compiler/error-info/index.ts
/*
* For the next available error code, reference (and update!) the value in ./index.ts
*/

@@ -466,6 +465,18 @@ const LWCClassErrors = {

},
COMPUTED_PROPERTY_CANNOT_BE_TEMPLATE_LITERAL: {
code: 1199,
message: 'Cannot use a template literal as a computed property key. Instead, use a string or extract the value to a constant.',
level: exports.DiagnosticLevel.Error,
url: '',
},
COMPUTED_PROPERTY_MUST_BE_CONSTANT_OR_LITERAL: {
code: 1200,
message: 'Computed property in @wire config must be a constant or primitive literal.',
level: exports.DiagnosticLevel.Error,
url: '',
},
};
/*
* Copyright (c) 2018, salesforce.com, inc.
* Copyright (c) 2024, Salesforce, Inc.
* All rights reserved.

@@ -475,5 +486,4 @@ * SPDX-License-Identifier: MIT

*/
/**
* TODO [W-5678919]: implement script to determine the next available error code
* In the meantime, reference and the update the value at src/compiler/error-info/index.ts
/*
* For the next available error code, reference (and update!) the value in ./index.ts
*/

@@ -990,2 +1000,3 @@ const TemplateErrors = {

level: exports.DiagnosticLevel.Error,
url: '',
},

@@ -1374,3 +1385,3 @@ LWC_REF_INVALID_ELEMENT: {

exports.normalizeToDiagnostic = normalizeToDiagnostic;
/** version: 6.0.0 */
/** version: 6.1.0 */
//# sourceMappingURL=index.cjs.js.map
/**
* Copyright (C) 2023 salesforce.com, inc.
* Copyright (c) 2024 Salesforce, Inc.
*/

@@ -111,3 +111,3 @@ /*

/*
* Copyright (c) 2018, salesforce.com, inc.
* Copyright (c) 2024, Salesforce, Inc.
* All rights reserved.

@@ -117,5 +117,4 @@ * SPDX-License-Identifier: MIT

*/
/**
* TODO [W-5678919]: implement script to determine the next available error code
* In the meantime, reference and the update the value at src/compiler/error-info/index.ts
/*
* For the next available error code, reference (and update!) the value in ./index.ts
*/

@@ -126,2 +125,3 @@ const GENERIC_COMPILER_ERROR = {

level: DiagnosticLevel.Error,
url: '',
};

@@ -292,3 +292,3 @@ const CompilerValidationErrors = {

/*
* Copyright (c) 2018, salesforce.com, inc.
* Copyright (c) 2024, Salesforce, Inc.
* All rights reserved.

@@ -298,5 +298,4 @@ * SPDX-License-Identifier: MIT

*/
/**
* TODO [W-5678919]: implement script to determine the next available error code
* In the meantime, reference and the update the value at src/compiler/error-info/index.ts
/*
* For the next available error code, reference (and update!) the value in ./index.ts
*/

@@ -462,6 +461,18 @@ const LWCClassErrors = {

},
COMPUTED_PROPERTY_CANNOT_BE_TEMPLATE_LITERAL: {
code: 1199,
message: 'Cannot use a template literal as a computed property key. Instead, use a string or extract the value to a constant.',
level: DiagnosticLevel.Error,
url: '',
},
COMPUTED_PROPERTY_MUST_BE_CONSTANT_OR_LITERAL: {
code: 1200,
message: 'Computed property in @wire config must be a constant or primitive literal.',
level: DiagnosticLevel.Error,
url: '',
},
};
/*
* Copyright (c) 2018, salesforce.com, inc.
* Copyright (c) 2024, Salesforce, Inc.
* All rights reserved.

@@ -471,5 +482,4 @@ * SPDX-License-Identifier: MIT

*/
/**
* TODO [W-5678919]: implement script to determine the next available error code
* In the meantime, reference and the update the value at src/compiler/error-info/index.ts
/*
* For the next available error code, reference (and update!) the value in ./index.ts
*/

@@ -986,2 +996,3 @@ const TemplateErrors = {

level: DiagnosticLevel.Error,
url: '',
},

@@ -1356,3 +1367,3 @@ LWC_REF_INVALID_ELEMENT: {

export { CompilerError, CompilerMetrics, CompilerValidationErrors, DecoratorErrors, DiagnosticLevel, GENERIC_COMPILER_ERROR, LWCClassErrors, ModuleResolutionErrors, ParserDiagnostics, TemplateErrors, TransformerErrors, generateCompilerDiagnostic, generateCompilerError, generateErrorMessage, invariant, normalizeToCompilerError, normalizeToDiagnostic };
/** version: 6.0.0 */
/** version: 6.1.0 */
//# sourceMappingURL=index.js.map

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

"name": "@lwc/errors",
"version": "6.0.0",
"version": "6.1.0",
"description": "LWC Error Utilities",

@@ -10,0 +10,0 @@ "keywords": [

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