Socket
Socket
Sign inDemoInstall

@webiny/error

Package Overview
Dependencies
0
Maintainers
1
Versions
387
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0-unstable.da99e0b846 to 0.0.0-unstable.de38392959

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.da99e0b846",
"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.da99e0b846",
"@webiny/project-utils": "^0.0.0-unstable.da99e0b846",
"rimraf": "^3.0.2",
"ttypescript": "^1.5.15",
"typescript": "4.7.4"
},
"scripts": {
"build": "yarn webiny run build",
"watch": "yarn webiny run watch"
},
"gitHead": "da99e0b8461741d3ae57fdb9d4b2fc7646c1d754"
"name": "@webiny/error",
"version": "0.0.0-unstable.de38392959",
"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.de38392959",
"@webiny/project-utils": "0.0.0-unstable.de38392959",
"rimraf": "3.0.2",
"ttypescript": "1.5.15",
"typescript": "4.7.4"
},
"scripts": {
"build": "yarn webiny run build",
"watch": "yarn webiny run watch"
},
"gitHead": "de38392959f2692d1feb08945a3588cd80e4924c"
}

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc