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

@ahi40/common

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ahi40/common - npm Package Compare versions

Comparing version 1.0.24 to 1.0.25

2

build/errors/not-authorized-error.js

@@ -22,3 +22,3 @@ "use strict";

var _this = _super.call(this, 'Not Authorized.') || this;
_this.statusCode = 401;
_this.statusCode = 409;
Object.setPrototypeOf(_this, NotAuthorizedError.prototype);

@@ -25,0 +25,0 @@ return _this;

@@ -22,3 +22,4 @@ "use strict";

var _this = _super.call(this, 'Token expired.') || this;
_this.statusCode = 401;
_this.statusCode = 408;
console.log('token expired handler');
Object.setPrototypeOf(_this, TokenExpiredCustomError.prototype);

@@ -25,0 +26,0 @@ return _this;

@@ -6,3 +6,5 @@ "use strict";

exports.requireAuth = function (req, res, next) {
console.log('run rq');
if (!req.currentUser) {
console.log('no user set');
throw new not_authorized_error_1.NotAuthorizedError();

@@ -9,0 +11,0 @@ }

{
"name": "@ahi40/common",
"version": "1.0.24",
"version": "1.0.25",
"description": "",

@@ -5,0 +5,0 @@ "main": "./build/index.js",

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