Socket
Book a DemoSign in
Socket

@webiny/error

Package Overview
Dependencies
Maintainers
1
Versions
572
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webiny/error - npm Package Compare versions

Comparing version
0.0.0-unstable.df6d94b531
to
0.0.0-unstable.df7a8bb475
+5
-12
Error.js

@@ -1,15 +0,7 @@

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
class WError extends Error {
export default 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") {

@@ -33,2 +25,3 @@ // super(messageOrOptions); - use after TS 4.6

}
exports.default = WError;
//# sourceMappingURL=Error.js.map

@@ -1,3 +0,4 @@

import Error, { ErrorOptions } from "./Error";
import Error, { type ErrorOptions } from "./Error.js";
export { Error as WebinyError };
export default Error;
export { ErrorOptions };
export type { ErrorOptions };

@@ -1,16 +0,5 @@

"use strict";
import Error from "./Error.js";
export { Error as WebinyError };
export default Error;
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "ErrorOptions", {
enumerable: true,
get: function () {
return _Error.ErrorOptions;
}
});
exports.default = void 0;
var _Error = _interopRequireWildcard(require("./Error"));
var _default = _Error.default;
exports.default = _default;
//# sourceMappingURL=index.js.map
{
"name": "@webiny/error",
"version": "0.0.0-unstable.df6d94b531",
"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.df6d94b531",
"@webiny/project-utils": "^0.0.0-unstable.df6d94b531",
"rimraf": "^3.0.2",
"ttypescript": "^1.5.15",
"typescript": "4.7.4"
},
"scripts": {
"build": "yarn webiny run build",
"watch": "yarn webiny run watch"
},
"gitHead": "df6d94b531ed0453caef22c785d42be580c9df96"
"name": "@webiny/error",
"version": "0.0.0-unstable.df7a8bb475",
"type": "module",
"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": {
"@webiny/build-tools": "0.0.0-unstable.df7a8bb475",
"rimraf": "6.1.3",
"typescript": "5.9.3"
},
"gitHead": "df7a8bb4755a1da047f0af8c56bdb649cc81bf7d"
}
# @webiny/error
[![](https://img.shields.io/npm/dw/webiny-data.svg)](https://www.npmjs.com/package/webiny-data)
[![](https://img.shields.io/npm/v/webiny-data.svg)](https://www.npmjs.com/package/webiny-data)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
A set of frequently used data higher order functions.
> [!NOTE]
> This package is part of the [Webiny](https://www.webiny.com) monorepo.
> It’s **included in every Webiny project by default** and is not meant to be used as a standalone package.
For more information, please visit
[the official docs](https://github.com/doitadrian/data).
## Install
```
npm install --save @webiny/error
```
📘 **Documentation:** [https://www.webiny.com/docs](https://www.webiny.com/docs)
Or if you prefer yarn:
```
yarn add @webiny/error
```
---
_This README file is automatically generated during the publish process._

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet