mirror of
https://github.com/acamarata/dayjs-hijri-plus.git
synced 2026-07-02 19:50:39 +00:00
add opt-in telemetry via @acamarata/telemetry (off by default)
This commit is contained in:
parent
33ec33fbc0
commit
cd1ba283b1
3 changed files with 20 additions and 0 deletions
8
TELEMETRY.md
Normal file
8
TELEMETRY.md
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# Telemetry Disclosure
|
||||||
|
|
||||||
|
This package supports opt-in anonymous usage telemetry via [`@acamarata/telemetry`](https://github.com/acamarata/telemetry).
|
||||||
|
|
||||||
|
Telemetry is **off by default**. No data is sent unless you set `ACAMARATA_TELEMETRY=1`.
|
||||||
|
|
||||||
|
Full disclosure (what is sent, where it goes, how to disable):
|
||||||
|
[github.com/acamarata/telemetry/blob/main/TELEMETRY.md](https://github.com/acamarata/telemetry/blob/main/TELEMETRY.md)
|
||||||
|
|
@ -61,6 +61,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@acamarata/eslint-config": "^0.1.0",
|
"@acamarata/eslint-config": "^0.1.0",
|
||||||
"@acamarata/prettier-config": "^0.1.0",
|
"@acamarata/prettier-config": "^0.1.0",
|
||||||
|
"@acamarata/telemetry": "^0.1.0",
|
||||||
"@acamarata/tsconfig": "^0.1.0",
|
"@acamarata/tsconfig": "^0.1.0",
|
||||||
"@eslint/js": "^10.0.1",
|
"@eslint/js": "^10.0.1",
|
||||||
"@types/node": "^25.3.5",
|
"@types/node": "^25.3.5",
|
||||||
|
|
|
||||||
11
src/index.ts
11
src/index.ts
|
|
@ -303,3 +303,14 @@ export type { CalendarEngine } from "hijri-core";
|
||||||
* listCalendars(); // ['uaq', 'fcna', 'my-cal']
|
* listCalendars(); // ['uaq', 'fcna', 'my-cal']
|
||||||
*/
|
*/
|
||||||
export { registerCalendar, getCalendar, listCalendars } from "hijri-core";
|
export { registerCalendar, getCalendar, listCalendars } from "hijri-core";
|
||||||
|
|
||||||
|
// ── Opt-in anonymous telemetry ────────────────────────────────────────────────
|
||||||
|
// Off by default. Enable: ACAMARATA_TELEMETRY=1
|
||||||
|
// What is sent + how to disable: https://github.com/acamarata/telemetry/blob/main/TELEMETRY.md
|
||||||
|
import('@acamarata/telemetry')
|
||||||
|
.then(({ track }) =>
|
||||||
|
track('load', { package: 'dayjs-hijri-plus', version: '1.0.4' }),
|
||||||
|
)
|
||||||
|
.catch(() => {
|
||||||
|
// telemetry not installed or disabled — that's fine
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue