@artsy/cohesion
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -0,1 +1,13 @@ | ||
# v0.2.3 (Wed Apr 22 2020) | ||
#### 🐛 Bug Fix | ||
- Auth events use triggerSeconds [#21](https://github.com/artsy/cohesion/pull/21) ([@eessex](https://github.com/eessex)) | ||
#### Authors: 1 | ||
- Eve Essex ([@eessex](https://github.com/eessex)) | ||
--- | ||
# v0.2.2 (Tue Apr 21 2020) | ||
@@ -2,0 +14,0 @@ |
@@ -12,5 +12,5 @@ import { CreatedAccount } from "../../Schema/Event"; | ||
* service: AuthService.email | ||
* trigger: "timed" | ||
* triggerSeconds: 3 | ||
* }) | ||
*/ | ||
export declare const createdAccount: ({ authRedirect, contextModule, intent, service, trigger, }: AccountArgs) => CreatedAccount; | ||
export declare const createdAccount: ({ authRedirect, contextModule, intent, service, triggerSeconds, }: AccountArgs) => CreatedAccount; |
@@ -19,3 +19,3 @@ "use strict"; | ||
* service: AuthService.email | ||
* trigger: "timed" | ||
* triggerSeconds: 3 | ||
* }) | ||
@@ -28,3 +28,3 @@ */ | ||
service, | ||
trigger | ||
triggerSeconds | ||
}) => { | ||
@@ -37,3 +37,3 @@ return { | ||
service, | ||
trigger: trigger || "click" | ||
trigger: triggerSeconds && "timed" || "click" | ||
}; | ||
@@ -40,0 +40,0 @@ }; |
@@ -12,5 +12,5 @@ import { SuccessfullyLoggedIn } from "../../Schema/Event"; | ||
* service: AuthService.email | ||
* trigger: "timed" | ||
* triggerSeconds: 3 | ||
* }) | ||
*/ | ||
export declare const successfullyLoggedIn: ({ authRedirect, contextModule, intent, service, trigger, }: AccountArgs) => SuccessfullyLoggedIn; | ||
export declare const successfullyLoggedIn: ({ authRedirect, contextModule, intent, service, triggerSeconds, }: AccountArgs) => SuccessfullyLoggedIn; |
@@ -19,3 +19,3 @@ "use strict"; | ||
* service: AuthService.email | ||
* trigger: "timed" | ||
* triggerSeconds: 3 | ||
* }) | ||
@@ -28,3 +28,3 @@ */ | ||
service, | ||
trigger | ||
triggerSeconds | ||
}) => { | ||
@@ -37,3 +37,3 @@ return { | ||
service, | ||
trigger: trigger || "click" | ||
trigger: triggerSeconds && "timed" || "click" | ||
}; | ||
@@ -40,0 +40,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import { AuthContextModule, AuthIntent, AuthTrigger } from "../../Schema"; | ||
import { AuthContextModule, AuthIntent } from "../../Schema"; | ||
import { AuthService } from "../../Schema/Authentication"; | ||
@@ -7,4 +7,4 @@ export interface AccountArgs { | ||
intent: AuthIntent; | ||
trigger?: AuthTrigger; | ||
triggerSeconds?: number; | ||
service: AuthService; | ||
} |
{ | ||
"name": "@artsy/cohesion", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Analytics schema and library helpers", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29142