| Version | Supported |
|---|---|
| 0.1.x | ✅ |
OneLightSystem OLS takes the security of this package seriously.
If you discover a security vulnerability, please report it responsibly:
- Do NOT open a public GitHub issue.
- Email the OLS security team via the contact form at https://www.olsme.com/Contact.
- Include:
- Description of the vulnerability
- Steps to reproduce
- Potential impact
- Suggested fix (if any)
We aim to acknowledge reports within 48 hours and provide a fix or mitigation within 7 days for critical issues.
This policy applies to:
- The
@olsystem/lt-lhnpm package (all published code indist/) - Vanilla JS widgets (
ols-lighttime-widget,ols-calendar-widget,calendar-orb,solar-day-arc) - React hook and core logic (
useLightTime,getLightHour,getLightDay) - All TypeScript source and built outputs
- No
eval()ornew Function()— fully CSP-friendly - No inline style injection via JavaScript — the package does not ship widget
.cssfiles; consumers provide any required CSS - Input validation — Zod schemas enforce Light Time format and coordinate bounds
- No network calls — purely computational (no fetch, XHR, WebSocket, etc.)
- Zero secrets or tokens — requires no credentials or environment variables
- Strict TypeScript — compiled with
strict: trueandnoUncheckedIndexedAccess - Minimal dependencies — only
zodas runtime dependency (~13 KB)
This package is designed to work under strict CSP headers:
Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self';No unsafe-inline or unsafe-eval is required.
OneLightSystem OLS · olsme.com