@ag04/kanban-api
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -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); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
37498
1