@webiny/error
Advanced tools
Comparing version 0.0.0-unstable.9e825fd5fb to 0.0.0-unstable.a9593f74dd
10
Error.js
"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") { | ||
@@ -34,2 +32,4 @@ // super(messageOrOptions); - use after TS 4.6 | ||
} | ||
exports.default = WError; | ||
exports.default = WError; | ||
//# sourceMappingURL=Error.js.map |
@@ -16,2 +16,4 @@ "use strict"; | ||
var _default = _Error.default; | ||
exports.default = _default; | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@webiny/error", | ||
"version": "0.0.0-unstable.9e825fd5fb", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/webiny/webiny-js.git" | ||
}, | ||
"description": "A simple multi-database client.", | ||
"license": "MIT", | ||
"publishConfig": { | ||
"access": "public", | ||
"directory": "dist" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.19.3", | ||
"@babel/core": "^7.19.3", | ||
"@webiny/cli": "^0.0.0-unstable.9e825fd5fb", | ||
"@webiny/project-utils": "^0.0.0-unstable.9e825fd5fb", | ||
"rimraf": "^3.0.2", | ||
"ttypescript": "^1.5.15", | ||
"typescript": "4.7.4" | ||
}, | ||
"scripts": { | ||
"build": "yarn webiny run build", | ||
"watch": "yarn webiny run watch" | ||
}, | ||
"gitHead": "9e825fd5fb3c021691acbaee6c5fd925f5f5de4d" | ||
"name": "@webiny/error", | ||
"version": "0.0.0-unstable.a9593f74dd", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/webiny/webiny-js.git" | ||
}, | ||
"description": "A simple multi-database client.", | ||
"license": "MIT", | ||
"publishConfig": { | ||
"access": "public", | ||
"directory": "dist" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "7.22.6", | ||
"@babel/core": "7.22.8", | ||
"@webiny/cli": "0.0.0-unstable.a9593f74dd", | ||
"@webiny/project-utils": "0.0.0-unstable.a9593f74dd", | ||
"rimraf": "3.0.2", | ||
"ttypescript": "1.5.15", | ||
"typescript": "4.7.4" | ||
}, | ||
"scripts": { | ||
"build": "yarn webiny run build", | ||
"watch": "yarn webiny run watch" | ||
}, | ||
"gitHead": "a9593f74ddf9ce93263eadb0ddc0807ed343f5ee" | ||
} |
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
7338