@b3dotfun/sdk 0.0.20-alpha.1 → 0.0.20-alpha.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/dist/cjs/anyspend/react/components/AnySpendFingerprintWrapper.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/AnySpendFingerprintWrapper.js +2 -5
- package/dist/esm/anyspend/react/components/AnySpendFingerprintWrapper.d.ts +1 -1
- package/dist/esm/anyspend/react/components/AnySpendFingerprintWrapper.js +2 -5
- package/dist/types/anyspend/react/components/AnySpendFingerprintWrapper.d.ts +1 -1
- package/package.json +1 -1
- package/src/anyspend/react/components/AnySpendFingerprintWrapper.tsx +4 -8
|
@@ -13,5 +13,5 @@ interface AnySpendFingerprintWrapperProps {
|
|
|
13
13
|
* This prevents unnecessary fingerprinting of users who don't interact with AnySpend.
|
|
14
14
|
*/
|
|
15
15
|
export declare function AnySpendFingerprintWrapper({ children, fingerprint }: AnySpendFingerprintWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare function getFingerprintConfig(): FingerprintConfig
|
|
16
|
+
export declare function getFingerprintConfig(): FingerprintConfig;
|
|
17
17
|
export {};
|
|
@@ -26,14 +26,11 @@ function AnySpendFingerprintWrapper({ children, fingerprint }) {
|
|
|
26
26
|
: undefined,
|
|
27
27
|
}, children: children }));
|
|
28
28
|
}
|
|
29
|
+
const defaultApiKey = "80EnsS6POsxPAR9xGxmN";
|
|
29
30
|
// Helper function to get fingerprint config from environment variables
|
|
30
31
|
function getFingerprintConfig() {
|
|
31
|
-
const apiKey = process.env.NEXT_PUBLIC_FINGERPRINT_API_KEY;
|
|
32
|
-
if (!apiKey) {
|
|
33
|
-
return undefined;
|
|
34
|
-
}
|
|
35
32
|
return {
|
|
36
|
-
apiKey,
|
|
33
|
+
apiKey: process.env.NEXT_PUBLIC_FINGERPRINT_API_KEY || defaultApiKey,
|
|
37
34
|
endpoint: process.env.NEXT_PUBLIC_FINGERPRINT_ENDPOINT,
|
|
38
35
|
scriptUrlPattern: process.env.NEXT_PUBLIC_FINGERPRINT_SCRIPT_URL,
|
|
39
36
|
};
|
|
@@ -13,5 +13,5 @@ interface AnySpendFingerprintWrapperProps {
|
|
|
13
13
|
* This prevents unnecessary fingerprinting of users who don't interact with AnySpend.
|
|
14
14
|
*/
|
|
15
15
|
export declare function AnySpendFingerprintWrapper({ children, fingerprint }: AnySpendFingerprintWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare function getFingerprintConfig(): FingerprintConfig
|
|
16
|
+
export declare function getFingerprintConfig(): FingerprintConfig;
|
|
17
17
|
export {};
|
|
@@ -22,14 +22,11 @@ export function AnySpendFingerprintWrapper({ children, fingerprint }) {
|
|
|
22
22
|
: undefined,
|
|
23
23
|
}, children: children }));
|
|
24
24
|
}
|
|
25
|
+
const defaultApiKey = "80EnsS6POsxPAR9xGxmN";
|
|
25
26
|
// Helper function to get fingerprint config from environment variables
|
|
26
27
|
export function getFingerprintConfig() {
|
|
27
|
-
const apiKey = process.env.NEXT_PUBLIC_FINGERPRINT_API_KEY;
|
|
28
|
-
if (!apiKey) {
|
|
29
|
-
return undefined;
|
|
30
|
-
}
|
|
31
28
|
return {
|
|
32
|
-
apiKey,
|
|
29
|
+
apiKey: process.env.NEXT_PUBLIC_FINGERPRINT_API_KEY || defaultApiKey,
|
|
33
30
|
endpoint: process.env.NEXT_PUBLIC_FINGERPRINT_ENDPOINT,
|
|
34
31
|
scriptUrlPattern: process.env.NEXT_PUBLIC_FINGERPRINT_SCRIPT_URL,
|
|
35
32
|
};
|
|
@@ -13,5 +13,5 @@ interface AnySpendFingerprintWrapperProps {
|
|
|
13
13
|
* This prevents unnecessary fingerprinting of users who don't interact with AnySpend.
|
|
14
14
|
*/
|
|
15
15
|
export declare function AnySpendFingerprintWrapper({ children, fingerprint }: AnySpendFingerprintWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare function getFingerprintConfig(): FingerprintConfig
|
|
16
|
+
export declare function getFingerprintConfig(): FingerprintConfig;
|
|
17
17
|
export {};
|
package/package.json
CHANGED
|
@@ -44,16 +44,12 @@ export function AnySpendFingerprintWrapper({ children, fingerprint }: AnySpendFi
|
|
|
44
44
|
);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
export function getFingerprintConfig(): FingerprintConfig | undefined {
|
|
49
|
-
const apiKey = process.env.NEXT_PUBLIC_FINGERPRINT_API_KEY;
|
|
50
|
-
|
|
51
|
-
if (!apiKey) {
|
|
52
|
-
return undefined;
|
|
53
|
-
}
|
|
47
|
+
const defaultApiKey = "80EnsS6POsxPAR9xGxmN";
|
|
54
48
|
|
|
49
|
+
// Helper function to get fingerprint config from environment variables
|
|
50
|
+
export function getFingerprintConfig(): FingerprintConfig {
|
|
55
51
|
return {
|
|
56
|
-
apiKey,
|
|
52
|
+
apiKey: process.env.NEXT_PUBLIC_FINGERPRINT_API_KEY || defaultApiKey,
|
|
57
53
|
endpoint: process.env.NEXT_PUBLIC_FINGERPRINT_ENDPOINT,
|
|
58
54
|
scriptUrlPattern: process.env.NEXT_PUBLIC_FINGERPRINT_SCRIPT_URL,
|
|
59
55
|
};
|