Skip to content

Commit

Permalink
refactor: replace deprecated import
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Mar 19, 2024
1 parent 28e2c15 commit dfb4180
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Inject, Injectable } from '@angular/core'
import { FpjsClient, GetOptions } from '@fingerprintjs/fingerprintjs-pro-spa'
import { FpjsClient, FingerprintJSPro } from '@fingerprintjs/fingerprintjs-pro-spa'
import { FINGERPTINTJS_PRO_ANGULAR_SETTINGS_TOKEN } from './tokens/fingerprintjs-pro-angular-settings-token'
import { IFingerprintjsProSettings } from './interfaces/i-fingerprintjs-pro-settings'
import { packageVersion } from './version'
Expand Down Expand Up @@ -53,7 +53,10 @@ export class FingerprintjsProAngularService {
this.fingerprintJsClient = new FpjsClient(clientOptions)
this.fingerprintJsClientInitPromise = this.fingerprintJsClient.init()
}
async getVisitorData<TExtended extends boolean>(options?: GetOptions<TExtended>, ignoreCache?: boolean) {
async getVisitorData<TExtended extends boolean>(
options?: FingerprintJSPro.GetOptions<TExtended>,
ignoreCache?: boolean
) {
await this.fingerprintJsClientInitPromise
return this.fingerprintJsClient.getVisitorData(options, ignoreCache)
}
Expand Down

0 comments on commit dfb4180

Please sign in to comment.