New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@build-tracker/api-errors

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@build-tracker/api-errors - npm Package Compare versions

Comparing version 1.0.0-beta.0 to 1.0.0-beta.9

11

dist/index.js

@@ -52,2 +52,13 @@ "use strict";

exports.UnimplementedError = UnimplementedError;
var ValidationError = /** @class */ (function (_super) {
__extends(ValidationError, _super);
function ValidationError(field, expected, received) {
var _this = _super.call(this, "\"" + field + "\" expected to receive \"" + expected + "\", but value was \"" + received + "\"") || this;
_this.status = 400;
Object.setPrototypeOf(_this, ValidationError.prototype);
return _this;
}
return ValidationError;
}(Error));
exports.ValidationError = ValidationError;
//# sourceMappingURL=index.js.map

4

package.json
{
"name": "@build-tracker/api-errors",
"version": "1.0.0-beta.0",
"version": "1.0.0-beta.9",
"description": "Build Tracker API errors",

@@ -16,3 +16,3 @@ "author": "Paul Armstrong <paul@spaceyak.com>",

},
"gitHead": "14874c7ee8411950ff8bbf557dcd3c2c71359f8e",
"gitHead": "7864c340fb0cfa9efadf5c26b8dc44882eaea427",
"publishConfig": {

@@ -19,0 +19,0 @@ "access": "public"

@@ -31,1 +31,10 @@ /**

}
export class ValidationError extends Error {
public readonly status = 400;
public constructor(field: string, expected: string, received: string | number | void) {
super(`"${field}" expected to receive "${expected}", but value was "${received}"`);
Object.setPrototypeOf(this, ValidationError.prototype);
}
}

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