Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@spinajs/exceptions

Package Overview
Dependencies
Maintainers
1
Versions
232
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spinajs/exceptions - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

7

lib/index.d.ts

@@ -63,6 +63,11 @@ /**

/**
* Exception occurs when resource is duplicated eg. unique constraint failed in db
*/
export declare class ResourceDuplicated extends Exception {
}
/**
* The exception that is thrown when JSON entity is checked against schema and is invalid
*/
export declare class ValidationFailed extends Exception {
Errors: any;
parameter: any;
constructor(message: string, validationErrors: any);

@@ -69,0 +74,0 @@ }

@@ -78,2 +78,8 @@ "use strict";

/**
* Exception occurs when resource is duplicated eg. unique constraint failed in db
*/
class ResourceDuplicated extends Exception {
}
exports.ResourceDuplicated = ResourceDuplicated;
/**
* The exception that is thrown when JSON entity is checked against schema and is invalid

@@ -84,3 +90,3 @@ */

super(message);
this.Errors = validationErrors;
this.parameter = validationErrors;
}

@@ -87,0 +93,0 @@ }

4

package.json
{
"name": "@spinajs/exceptions",
"version": "1.0.3",
"version": "1.0.4",
"description": "exceptions definitions used all across framework modules",

@@ -15,3 +15,3 @@ "main": "lib/index.js",

"lint": "tslint -p tsconfig.json",
"prepublishOnly": "npm test && npm run lint",
"prepublishOnly": "",
"preversion": "npm run lint",

@@ -18,0 +18,0 @@ "version": "npm run format && git add -A src",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc