@databuddy/sdk 1.3.0 → 1.4.0
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 +1 -1
- package/dist/Databuddy.js +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +26 -26
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ All options are type-safe and documented in `DatabuddyConfig`:
|
|
|
61
61
|
| `clientId` | string | — | **Required.** Your Databuddy project client ID. |
|
|
62
62
|
| `clientSecret` | string | — | (Advanced) For server-side use only. |
|
|
63
63
|
| `apiUrl` | string | `https://api.databuddy.cc` | Custom API endpoint. |
|
|
64
|
-
| `scriptUrl` | string | `https://
|
|
64
|
+
| `scriptUrl` | string | `https://cdn.databuddy.cc/databuddy.js` | Custom script URL. |
|
|
65
65
|
| `sdk` | string | `web` | SDK name. Only override for custom builds. |
|
|
66
66
|
| `sdkVersion` | string | *auto* | SDK version. Defaults to package version. |
|
|
67
67
|
| `disabled` | boolean | `false` | Disable all tracking. |
|
package/dist/Databuddy.js
CHANGED
|
@@ -15,7 +15,7 @@ export function Databuddy(props) {
|
|
|
15
15
|
if (document.querySelector('script[data-databuddy-injected]'))
|
|
16
16
|
return;
|
|
17
17
|
const script = document.createElement('script');
|
|
18
|
-
script.src = props.scriptUrl || 'https://
|
|
18
|
+
script.src = props.scriptUrl || 'https://cdn.databuddy.cc/databuddy.js';
|
|
19
19
|
script.async = true;
|
|
20
20
|
script.crossOrigin = 'anonymous';
|
|
21
21
|
script.setAttribute('data-databuddy-injected', 'true');
|
package/dist/types.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export interface DatabuddyConfig {
|
|
|
21
21
|
apiUrl?: string;
|
|
22
22
|
/**
|
|
23
23
|
* Custom script URL for the Databuddy browser bundle.
|
|
24
|
-
* Default: 'https://
|
|
24
|
+
* Default: 'https://cdn.databuddy.cc/databuddy.js'
|
|
25
25
|
*/
|
|
26
26
|
scriptUrl?: string;
|
|
27
27
|
/**
|
package/package.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@databuddy/sdk",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"private": false,
|
|
5
|
-
"description": "Official Databuddy Analytics SDK",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": "./dist/index.js"
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"dist"
|
|
12
|
-
],
|
|
13
|
-
"keywords": [
|
|
14
|
-
"analytics",
|
|
15
|
-
"tracking",
|
|
16
|
-
"databuddy",
|
|
17
|
-
"sdk"
|
|
18
|
-
],
|
|
19
|
-
"scripts": {
|
|
20
|
-
"build": "tsc --project tsconfig.json"
|
|
21
|
-
},
|
|
22
|
-
"license": "MIT",
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"@types/node": "^20.0.0",
|
|
25
|
-
"typescript": "^5.0.0"
|
|
26
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@databuddy/sdk",
|
|
3
|
+
"version": "1.4.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Official Databuddy Analytics SDK",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"keywords": [
|
|
14
|
+
"analytics",
|
|
15
|
+
"tracking",
|
|
16
|
+
"databuddy",
|
|
17
|
+
"sdk"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsc --project tsconfig.json"
|
|
21
|
+
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/node": "^20.0.0",
|
|
25
|
+
"typescript": "^5.0.0"
|
|
26
|
+
}
|
|
27
27
|
}
|