@trustsig/react 1.2.1 → 1.2.7
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/dist/index.cjs +3 -5
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +3 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -44,10 +44,9 @@ var import_client = require("@trustsig/client");
|
|
|
44
44
|
var TrustSigContext = (0, import_react.createContext)(null);
|
|
45
45
|
var TrustSigProvider = ({
|
|
46
46
|
siteKey,
|
|
47
|
-
endpoint,
|
|
48
|
-
wasmUrl,
|
|
49
47
|
scriptUrl,
|
|
50
48
|
interceptRequests,
|
|
49
|
+
autoScan,
|
|
51
50
|
debug,
|
|
52
51
|
nonce,
|
|
53
52
|
env,
|
|
@@ -59,16 +58,15 @@ var TrustSigProvider = ({
|
|
|
59
58
|
const client = (0, import_react.useMemo)(
|
|
60
59
|
() => new import_client.TrustSigClient({
|
|
61
60
|
siteKey,
|
|
62
|
-
endpoint,
|
|
63
|
-
wasmUrl,
|
|
64
61
|
scriptUrl,
|
|
65
62
|
interceptRequests,
|
|
63
|
+
autoScan,
|
|
66
64
|
debug,
|
|
67
65
|
nonce,
|
|
68
66
|
env,
|
|
69
67
|
customData
|
|
70
68
|
}),
|
|
71
|
-
[siteKey,
|
|
69
|
+
[siteKey, scriptUrl, interceptRequests, autoScan, debug, nonce, env, JSON.stringify(customData)]
|
|
72
70
|
);
|
|
73
71
|
(0, import_react.useEffect)(() => {
|
|
74
72
|
let mounted = true;
|
package/dist/index.d.cts
CHANGED
|
@@ -9,10 +9,9 @@ interface TrustSigContextValue {
|
|
|
9
9
|
}
|
|
10
10
|
interface TrustSigProviderProps {
|
|
11
11
|
siteKey: string;
|
|
12
|
-
endpoint?: string;
|
|
13
|
-
wasmUrl?: string;
|
|
14
12
|
scriptUrl?: string;
|
|
15
13
|
interceptRequests?: boolean;
|
|
14
|
+
autoScan?: boolean;
|
|
16
15
|
debug?: boolean;
|
|
17
16
|
nonce?: string;
|
|
18
17
|
env?: TrustSigEnv;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,10 +9,9 @@ interface TrustSigContextValue {
|
|
|
9
9
|
}
|
|
10
10
|
interface TrustSigProviderProps {
|
|
11
11
|
siteKey: string;
|
|
12
|
-
endpoint?: string;
|
|
13
|
-
wasmUrl?: string;
|
|
14
12
|
scriptUrl?: string;
|
|
15
13
|
interceptRequests?: boolean;
|
|
14
|
+
autoScan?: boolean;
|
|
16
15
|
debug?: boolean;
|
|
17
16
|
nonce?: string;
|
|
18
17
|
env?: TrustSigEnv;
|
package/dist/index.js
CHANGED
|
@@ -7,10 +7,9 @@ import { TrustSigClient } from "@trustsig/client";
|
|
|
7
7
|
var TrustSigContext = createContext(null);
|
|
8
8
|
var TrustSigProvider = ({
|
|
9
9
|
siteKey,
|
|
10
|
-
endpoint,
|
|
11
|
-
wasmUrl,
|
|
12
10
|
scriptUrl,
|
|
13
11
|
interceptRequests,
|
|
12
|
+
autoScan,
|
|
14
13
|
debug,
|
|
15
14
|
nonce,
|
|
16
15
|
env,
|
|
@@ -22,16 +21,15 @@ var TrustSigProvider = ({
|
|
|
22
21
|
const client = useMemo(
|
|
23
22
|
() => new TrustSigClient({
|
|
24
23
|
siteKey,
|
|
25
|
-
endpoint,
|
|
26
|
-
wasmUrl,
|
|
27
24
|
scriptUrl,
|
|
28
25
|
interceptRequests,
|
|
26
|
+
autoScan,
|
|
29
27
|
debug,
|
|
30
28
|
nonce,
|
|
31
29
|
env,
|
|
32
30
|
customData
|
|
33
31
|
}),
|
|
34
|
-
[siteKey,
|
|
32
|
+
[siteKey, scriptUrl, interceptRequests, autoScan, debug, nonce, env, JSON.stringify(customData)]
|
|
35
33
|
);
|
|
36
34
|
useEffect(() => {
|
|
37
35
|
let mounted = true;
|