Socket
Socket
Sign inDemoInstall

@mongosh/errors

Package Overview
Dependencies
0
Maintainers
7
Versions
109
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1-alpha.13 to 0.0.1-alpha.14

8

index.ts

@@ -32,3 +32,11 @@ class MongoshRuntimeError extends Error {

class MongoshWarning extends Error {
constructor(...args) {
super(...args);
this.name = 'MongoshWarning';
}
}
export {
MongoshWarning,
MongoshRuntimeError,

@@ -35,0 +43,0 @@ MongoshInternalError,

5

lib/index.d.ts

@@ -13,2 +13,5 @@ declare class MongoshRuntimeError extends Error {

}
export { MongoshRuntimeError, MongoshInternalError, MongoshInvalidInputError, MongoshUnimplementedError };
declare class MongoshWarning extends Error {
constructor(...args: any[]);
}
export { MongoshWarning, MongoshRuntimeError, MongoshInternalError, MongoshInvalidInputError, MongoshUnimplementedError };

@@ -91,2 +91,16 @@ "use strict";

exports.MongoshInvalidInputError = MongoshInvalidInputError;
var MongoshWarning = (function (_super) {
__extends(MongoshWarning, _super);
function MongoshWarning() {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
var _this = _super.apply(this, __spread(args)) || this;
_this.name = 'MongoshWarning';
return _this;
}
return MongoshWarning;
}(Error));
exports.MongoshWarning = MongoshWarning;
//# sourceMappingURL=index.js.map

4

package.json
{
"name": "@mongosh/errors",
"version": "0.0.1-alpha.13",
"version": "0.0.1-alpha.14",
"description": "MongoDB Shell Errors Package",

@@ -27,3 +27,3 @@ "homepage": "https://github.com/mongodb-js/mongosh",

},
"gitHead": "cbd3d640a1a089fd677f7136e3d80f70bce7633f"
"gitHead": "d505622df7589da25592a1abfe62cb76de702b3b"
}

@@ -21,2 +21,7 @@ # `@mongosh/errors`

#### MongoshWarning(msg)
This error is used to give user a warning about the current execution.
__args:__
- __msg:__ type string. Describes the warning.
#### MongoshUnimplementedError(msg)

@@ -23,0 +28,0 @@ This error is used to API endpoints that are not yet implemented.

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