loginllama
Advanced tools
Comparing version 1.2.5 to 1.3.0
# Changelog | ||
## [1.3.0](https://github.com/joshghent/loginllama.js/compare/v1.2.5...v1.3.0) (2023-11-24) | ||
### Features | ||
* add new params for the login check system ([#39](https://github.com/joshghent/loginllama.js/issues/39)) ([51b99ef](https://github.com/joshghent/loginllama.js/commit/51b99efbabfc10b72cb3c556df26c59b153ca970)) | ||
## [1.2.5](https://github.com/joshghent/loginllama.js/compare/v1.2.4...v1.2.5) (2023-10-31) | ||
@@ -4,0 +11,0 @@ |
@@ -50,3 +50,3 @@ import { Request } from "express"; | ||
*/ | ||
check_login({ request, ip_address, user_agent, identity_key, }: { | ||
check_login({ request, ip_address, user_agent, identity_key, email_address, geo_country, geo_city, user_time_of_day, }: { | ||
request?: Request; | ||
@@ -56,3 +56,7 @@ ip_address?: string; | ||
identity_key: string; | ||
email_address?: string; | ||
geo_country?: string; | ||
geo_city?: string; | ||
user_time_of_day?: string; | ||
}): Promise<LoginCheck>; | ||
} |
@@ -58,3 +58,3 @@ "use strict"; | ||
*/ | ||
async check_login({ request, ip_address, user_agent, identity_key, }) { | ||
async check_login({ request, ip_address, user_agent, identity_key, email_address, geo_country, geo_city, user_time_of_day, }) { | ||
if (request) { | ||
@@ -77,2 +77,6 @@ ip_address = request.ip || request.ips[0]; | ||
identity_key, | ||
email_address, | ||
geo_country, | ||
geo_city, | ||
user_time_of_day, | ||
}); | ||
@@ -79,0 +83,0 @@ } |
{ | ||
"name": "loginllama", | ||
"version": "1.2.5", | ||
"version": "1.3.0", | ||
"description": "Loginllama API wrapper", | ||
@@ -5,0 +5,0 @@ "main": "lib/loginllama.js", |
@@ -71,2 +71,6 @@ import Api from "./api"; | ||
identity_key, | ||
email_address, | ||
geo_country, | ||
geo_city, | ||
user_time_of_day, | ||
}: { | ||
@@ -77,2 +81,6 @@ request?: Request; | ||
identity_key: string; | ||
email_address?: string; | ||
geo_country?: string; | ||
geo_city?: string; | ||
user_time_of_day?: string; | ||
}): Promise<LoginCheck> { | ||
@@ -98,4 +106,8 @@ if (request) { | ||
identity_key, | ||
email_address, | ||
geo_country, | ||
geo_city, | ||
user_time_of_day, | ||
}) as Promise<LoginCheck>; | ||
} | ||
} |
70533
613