@webiny/error
Advanced tools
Comparing version 5.39.0-beta.1 to 5.39.0-beta.2
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -8,9 +7,8 @@ value: true | ||
exports.default = void 0; | ||
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
class WError extends Error { | ||
code = null; | ||
data = null; | ||
constructor(messageOrOptions, code, data) { | ||
// TODO in TS 4.6 we can move that into if statements | ||
super(typeof messageOrOptions === "string" ? messageOrOptions : messageOrOptions.message); | ||
(0, _defineProperty2.default)(this, "code", null); | ||
(0, _defineProperty2.default)(this, "data", null); | ||
if (typeof messageOrOptions === "string") { | ||
@@ -17,0 +15,0 @@ // super(messageOrOptions); - use after TS 4.6 |
{ | ||
"name": "@webiny/error", | ||
"version": "5.39.0-beta.1", | ||
"version": "5.39.0-beta.2", | ||
"main": "index.js", | ||
@@ -19,4 +19,4 @@ "types": "index.d.ts", | ||
"@babel/core": "7.22.8", | ||
"@webiny/cli": "5.39.0-beta.1", | ||
"@webiny/project-utils": "5.39.0-beta.1", | ||
"@webiny/cli": "5.39.0-beta.2", | ||
"@webiny/project-utils": "5.39.0-beta.2", | ||
"rimraf": "3.0.2", | ||
@@ -30,3 +30,3 @@ "ttypescript": "1.5.15", | ||
}, | ||
"gitHead": "a22d4ab9fbb4ad35106687cbe17b51a84afd4976" | ||
"gitHead": "193039382160557448f23f43685f29136f58f87a" | ||
} |
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
7302
60