Socket
Socket
Sign inDemoInstall

@ag04/kanban-api

Package Overview
Dependencies
99
Maintainers
4
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.8 to 1.1.9

4

dist/api/users.js

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

return _context2.abrupt('return', { error: 'user with username \'' + input.username + '\' doesn\'t exist' });
throw 'user with username \'' + input.username + '\' doesn\'t exist';

@@ -111,3 +111,3 @@ case 5:

return _context2.abrupt('return', { error: 'incorrect credentials' });
throw 'incorrect credentials';

@@ -114,0 +114,0 @@ case 10:

{
"name": "@ag04/kanban-api",
"version": "1.1.8",
"version": "1.1.9",
"description": "Kanban API",

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

@@ -224,3 +224,3 @@ {

"key": "token",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7ImlkIjoiYTExMzliOGItMjA1OS00NmI4LTlhZGYtY2U0N2ZmNWQyNDdjIiwidXNlcm5hbWUiOiJzdGV2ZSJ9LCJpYXQiOjE1MjA4NjI5MDF9.CPh7MAaFwoPbWqKYmKa0jdU56QhwJg40n7WKdLYLPzA",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImExMTM5YjhiLTIwNTktNDZiOC05YWRmLWNlNDdmZjVkMjQ3YyIsInVzZXJuYW1lIjoic3RldmUiLCJpYXQiOjE1MzIwOTAyMjl9.l0DC8QLn2BU58t0EfK9SPCWkPmX0sn8hw7Wcv1jdehE",
"type": "string"

@@ -227,0 +227,0 @@ }

@@ -51,3 +51,3 @@ import Joi from 'joi';

if(!user) {
return { error: `user with username '${input.username}' doesn't exist` };
throw `user with username '${input.username}' doesn't exist`;
}

@@ -57,3 +57,3 @@ // Assert input password

if(!isPasswordCorrect) {
return { error: 'incorrect credentials' };
throw 'incorrect credentials';
}

@@ -60,0 +60,0 @@ const token = createTokenForUser(user);

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc