@fingerly/svelte 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/hooks.svelte.js +0 -3
- package/dist/state.svelte.d.ts +1 -8
- package/dist/state.svelte.js +0 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -209,7 +209,6 @@ fingerly.visitorConfidence // number: 0 to 100
|
|
|
209
209
|
fingerly.identifiable // boolean: false when the signals were too thin
|
|
210
210
|
fingerly.duplicate // boolean: answered before; this is the first answer
|
|
211
211
|
fingerly.state // string | null: the server's disposition
|
|
212
|
-
fingerly.reason // string | null: always null (deprecated); your backend reads it on the event
|
|
213
212
|
fingerly.suspectScore // number | null: null when nothing scored it
|
|
214
213
|
fingerly.suspectLevel // string | null: low, medium, high
|
|
215
214
|
fingerly.report // SignalReport | null: every source, with status and timing
|
package/dist/hooks.svelte.js
CHANGED
package/dist/state.svelte.d.ts
CHANGED
|
@@ -19,10 +19,9 @@ import { type ConsentState, type FingerlyClient, type IdentifyResult, type Signa
|
|
|
19
19
|
export interface FingerlyOptions {
|
|
20
20
|
/** The SDK key from the dashboard. A public key is safe in a page. */
|
|
21
21
|
apiKey: string;
|
|
22
|
-
/** Origin of the API. Defaults to production. */
|
|
23
22
|
/** API route version. Defaults to v1. */
|
|
24
23
|
apiVersion?: string;
|
|
25
|
-
|
|
24
|
+
/** Ordered first-party ingestion endpoints. */
|
|
26
25
|
endpoints?: string | readonly string[];
|
|
27
26
|
fallbackToDefaultEndpoint?: boolean;
|
|
28
27
|
/**
|
|
@@ -64,12 +63,6 @@ export interface Fingerly {
|
|
|
64
63
|
readonly duplicate: boolean;
|
|
65
64
|
/** The server's disposition of the check. */
|
|
66
65
|
readonly state: string | null;
|
|
67
|
-
/**
|
|
68
|
-
* @deprecated Always `null`. A browser is no longer told why a check went
|
|
69
|
-
* unscored; your backend reads `reason` on the server-side event read, by
|
|
70
|
-
* `requestId`. Kept so code written against 0.1.0 still compiles.
|
|
71
|
-
*/
|
|
72
|
-
readonly reason: string | null;
|
|
73
66
|
/**
|
|
74
67
|
* The server's score, 0-100, or null when it did not score.
|
|
75
68
|
*
|
package/dist/state.svelte.js
CHANGED
|
@@ -82,7 +82,6 @@ export function createFingerly(options) {
|
|
|
82
82
|
// here would escape every caller's .catch and leave isLoading stuck.
|
|
83
83
|
clientPromise ??= Promise.resolve().then(() => load({
|
|
84
84
|
apiKey: options.apiKey,
|
|
85
|
-
...(options.endpoint === undefined ? {} : { endpoint: options.endpoint }),
|
|
86
85
|
...(options.apiVersion === undefined ? {} : { apiVersion: options.apiVersion }),
|
|
87
86
|
...(options.endpoints === undefined ? {} : { endpoints: options.endpoints }),
|
|
88
87
|
...(options.fallbackToDefaultEndpoint === undefined ? {} : { fallbackToDefaultEndpoint: options.fallbackToDefaultEndpoint }),
|
|
@@ -192,10 +191,6 @@ export function createFingerly(options) {
|
|
|
192
191
|
get state() {
|
|
193
192
|
return checkState;
|
|
194
193
|
},
|
|
195
|
-
get reason() {
|
|
196
|
-
// Deprecated: the server no longer tells a browser. See the interface.
|
|
197
|
-
return null;
|
|
198
|
-
},
|
|
199
194
|
get suspectScore() {
|
|
200
195
|
return suspectScore;
|
|
201
196
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fingerly/svelte",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@fingerly/web-js": "0.1.
|
|
29
|
+
"@fingerly/web-js": "0.1.2"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"svelte": ">=5"
|