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

@turbasen/auth

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

@turbasen/auth - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

2

lib/AbstractUser.js

@@ -48,3 +48,3 @@ 'use strict';

if (this.penalty > 0) {
redis.hincrby(this.cacheKey, 'remaining', this.penalty);
redis.hincrby(this.cacheKey, 'remaining', -this.penalty);
}

@@ -51,0 +51,0 @@ }

@@ -23,3 +23,3 @@ 'use strict';

isOwner(doc) {
return !!doc.tilbyder && this.provider === doc.tilbyder;
return !!doc.tilbyder && !!this.provider && this.provider === doc.tilbyder;
}

@@ -26,0 +26,0 @@

{
"name": "@turbasen/auth",
"version": "3.0.1",
"version": "3.0.2",
"description": "Authentication middleware used internally at Nasjonal Turbase API",

@@ -5,0 +5,0 @@ "main": "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