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

@lwc/errors

Package Overview
Dependencies
Maintainers
11
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 0.33.25 to 0.33.26

LICENSE

6

dist/commonjs/compiler/error-info/compiler.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const types_1 = require("../../shared/types");

@@ -4,0 +10,0 @@ /**

"use strict";
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
/**

@@ -3,0 +9,0 @@ * TODO: W-5678919 - implement script to determine the next available error code

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const types_1 = require("../../shared/types");

@@ -4,0 +10,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const types_1 = require("../../shared/types");

@@ -4,0 +10,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const types_1 = require("../../shared/types");

@@ -4,0 +10,0 @@ /**

@@ -6,2 +6,8 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const utils_1 = require("../shared/utils");

@@ -8,0 +14,0 @@ const utils_2 = require("./utils");

12

dist/commonjs/compiler/utils.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const types_1 = require("../shared/types");

@@ -16,3 +22,7 @@ class CompilerError extends Error {

const location = getLocation(origin, diagnostic);
return new CompilerError(code, message, filename, location);
const compilerError = new CompilerError(code, message, filename, location);
// The stack here is misleading and doesn't point to the cause of the original error message
// TODO: W-5712064 - Enhance diagnostics with useful stack trace and source code
compilerError.stack = undefined;
return compilerError;
}

@@ -19,0 +29,0 @@ toDiagnostic() {

@@ -6,4 +6,10 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
__export(require("./compiler/errors"));
__export(require("./shared/types"));
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
var DiagnosticLevel;

@@ -4,0 +10,0 @@ (function (DiagnosticLevel) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const templateRegex = /\{([0-9]+)\}/g;

@@ -4,0 +10,0 @@ function templateString(template, args) {

@@ -0,1 +1,7 @@

/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const BASE_CONFIG = require('../../../scripts/jest/base.config');

@@ -2,0 +8,0 @@

4

package.json
{
"name": "@lwc/errors",
"version": "0.33.25",
"version": "0.33.26",
"description": "LWC Error Utilities",

@@ -20,3 +20,3 @@ "main": "dist/commonjs/index.js",

},
"gitHead": "04dbd20c2c5fc74233e05cfb6b0fa3c7dccbe4d2"
"gitHead": "a0aeb8fc483eda250255ac45da5f9358ffbdb517"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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