@flareapp/core 2.2.0 → 2.3.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 +4 -1
- package/dist/index.cjs +1152 -0
- package/dist/index.d.cts +544 -0
- package/dist/index.d.mts +544 -0
- package/dist/index.mjs +1104 -0
- package/package.json +4 -1
- package/.oxlintrc.json +0 -7
- package/.release-it.json +0 -13
- package/CHANGELOG.md +0 -16
- package/src/Flare.ts +0 -543
- package/src/Scope.ts +0 -96
- package/src/api/Api.ts +0 -35
- package/src/api/index.ts +0 -1
- package/src/env/index.ts +0 -14
- package/src/index.ts +0 -41
- package/src/stacktrace/NullFileReader.ts +0 -28
- package/src/stacktrace/createStackTrace.ts +0 -74
- package/src/stacktrace/fileReader.ts +0 -96
- package/src/stacktrace/index.ts +0 -4
- package/src/types.ts +0 -81
- package/src/util/assert.ts +0 -9
- package/src/util/assertKey.ts +0 -11
- package/src/util/convertToError.ts +0 -22
- package/src/util/extractCode.ts +0 -11
- package/src/util/flatJsonStringify.ts +0 -45
- package/src/util/glowsToEvents.ts +0 -16
- package/src/util/index.ts +0 -8
- package/src/util/now.ts +0 -3
- package/src/util/redactUrl.ts +0 -83
- package/tests/api.test.ts +0 -95
- package/tests/configure.test.ts +0 -16
- package/tests/contextCollector.test.ts +0 -37
- package/tests/convertToError.test.ts +0 -95
- package/tests/createStackTrace.test.ts +0 -54
- package/tests/extractCode.test.ts +0 -30
- package/tests/fileReader.test.ts +0 -51
- package/tests/flatJsonStringify.test.ts +0 -31
- package/tests/flush.test.ts +0 -47
- package/tests/glows.test.ts +0 -47
- package/tests/glowsToEvents.test.ts +0 -41
- package/tests/helpers/FakeApi.ts +0 -20
- package/tests/helpers/index.ts +0 -1
- package/tests/hooks.test.ts +0 -123
- package/tests/light.test.ts +0 -25
- package/tests/nullFileReader.test.ts +0 -11
- package/tests/publicExports.test.ts +0 -17
- package/tests/redactUrl.test.ts +0 -151
- package/tests/report.test.ts +0 -146
- package/tests/sampleRate.test.ts +0 -88
- package/tests/scope.test.ts +0 -64
- package/tests/setEntryPoint.test.ts +0 -79
- package/tests/setFramework.test.ts +0 -48
- package/tests/setSdkInfo.test.ts +0 -62
- package/tsconfig.json +0 -4
- package/vitest.config.ts +0 -17
package/README.md
CHANGED
|
@@ -12,9 +12,12 @@ the official SDKs use.
|
|
|
12
12
|
|
|
13
13
|
- `Flare` — the core class. Takes three optional injection points: `ScopeProvider`,
|
|
14
14
|
`ContextCollector`, `FileReader`.
|
|
15
|
+
- `Logger` — structured logging (`flare.logger`). Eight syslog levels, opt-in via
|
|
16
|
+
`enableLogs`; owns the log buffer, batching policy, and OTel envelope. A
|
|
17
|
+
`FlushScheduler` seam is injected per platform.
|
|
15
18
|
- `Scope`, `GlobalScopeProvider`, `ScopeProvider` — per-call mutable state.
|
|
16
19
|
- `FileReader`, `NullFileReader` — source-snippet reading abstraction.
|
|
17
|
-
- `Api` — the HTTP client used to send reports.
|
|
20
|
+
- `Api` — the HTTP client used to send reports and logs.
|
|
18
21
|
- Types: `Config`, `Report`, `Attributes`, `Glow`, `StackFrame`, etc.
|
|
19
22
|
- Util: `redactUrlQuery`, `resolveDenylist`, `convertToError`, `DEFAULT_URL_DENYLIST`.
|
|
20
23
|
|