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 CHANGED
@@ -18,10 +18,9 @@ import { init } from 'stat18ion';
18
18
 
19
19
  init({
20
20
  siteId: 'YOUR_SITE_ID',
21
- // Optional: defaults to production endpoint
21
+ // Optional: defaults to Stat18ion SaaS endpoint
22
22
  // endpoint: 'https://api.your-domain.com/api/event',
23
- // Optional: enable logs in console
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: '', // Should be provided via init
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stat18ion",
3
- "version": "0.0.2",
3
+ "version": "0.1.0",
4
4
  "description": "Privacy-first, lightweight analytics tracker for the modern web.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",