stat18ion 0.0.2 → 0.1.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 +2 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,10 +18,9 @@ import { init } from 'stat18ion';
|
|
|
18
18
|
|
|
19
19
|
init({
|
|
20
20
|
siteId: 'YOUR_SITE_ID',
|
|
21
|
-
// Optional: defaults to
|
|
21
|
+
// Optional: defaults to Stat18ion SaaS endpoint
|
|
22
22
|
// endpoint: 'https://api.your-domain.com/api/event',
|
|
23
|
-
|
|
24
|
-
// debug: false
|
|
23
|
+
debug: false
|
|
25
24
|
});
|
|
26
25
|
```
|
|
27
26
|
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Analytics = exports.init = void 0;
|
|
4
4
|
let config = {
|
|
5
5
|
siteId: '',
|
|
6
|
-
endpoint: '', //
|
|
6
|
+
endpoint: 'https://stats.hashboard.in/api/event', // SaaS default (Replace with your actual domain)
|
|
7
7
|
};
|
|
8
8
|
const log = (message, ...args) => {
|
|
9
9
|
if (config.debug) {
|