@webiny/error
Advanced tools
Comparing version 5.38.3 to 5.38.4-beta.0
"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.38.3", | ||
"version": "5.38.4-beta.0", | ||
"main": "index.js", | ||
@@ -19,4 +19,4 @@ "types": "index.d.ts", | ||
"@babel/core": "7.22.8", | ||
"@webiny/cli": "5.38.3", | ||
"@webiny/project-utils": "5.38.3", | ||
"@webiny/cli": "5.38.4-beta.0", | ||
"@webiny/project-utils": "5.38.4-beta.0", | ||
"rimraf": "3.0.2", | ||
@@ -30,3 +30,3 @@ "ttypescript": "1.5.15", | ||
}, | ||
"gitHead": "03e8e42ef2d12c9f73f4395cdad77d07f4cd9e32" | ||
"gitHead": "56afdd84e0fc6608264ec0066ee3d8770859e8d5" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
2