From dfb4180f817ac74ceea0f5d2b007929efaf4c395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20=C5=BBydek?= Date: Tue, 19 Mar 2024 13:08:45 +0900 Subject: [PATCH] refactor: replace deprecated import --- .../src/lib/fingerprintjs-pro-angular.service.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/projects/fingerprintjs-pro-angular/src/lib/fingerprintjs-pro-angular.service.ts b/projects/fingerprintjs-pro-angular/src/lib/fingerprintjs-pro-angular.service.ts index 18f4398..3ab02ec 100644 --- a/projects/fingerprintjs-pro-angular/src/lib/fingerprintjs-pro-angular.service.ts +++ b/projects/fingerprintjs-pro-angular/src/lib/fingerprintjs-pro-angular.service.ts @@ -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' @@ -53,7 +53,10 @@ export class FingerprintjsProAngularService { this.fingerprintJsClient = new FpjsClient(clientOptions) this.fingerprintJsClientInitPromise = this.fingerprintJsClient.init() } - async getVisitorData(options?: GetOptions, ignoreCache?: boolean) { + async getVisitorData( + options?: FingerprintJSPro.GetOptions, + ignoreCache?: boolean + ) { await this.fingerprintJsClientInitPromise return this.fingerprintJsClient.getVisitorData(options, ignoreCache) }