@lwc/errors
Advanced tools
Comparing version 0.33.25 to 0.33.26
"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"); |
"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 @@ |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81605
35
1880