@error-reporting/core 0.1.0 → 0.2.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/index.d.ts CHANGED
@@ -27,7 +27,7 @@ export interface CaptureContext {
27
27
  requestId?: string
28
28
  }
29
29
 
30
- export function createReportOptions(options: Options, runtime: string): {
30
+ export function CreateReportOptions(options: Options, runtime: string): {
31
31
  dsn: string
32
32
  environment: string | undefined
33
33
  release: string | undefined
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@error-reporting/core",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Shared configuration for Error Reporting Platform JavaScript SDKs",
5
5
  "type": "module",
6
6
  "exports": { ".": { "types": "./index.d.ts", "default": "./src/index.js" } },
package/src/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * @param {import('../index.d.ts').Options} options SDK 初始化配置。
3
3
  * @param {string} runtime 调用方运行环境。
4
4
  */
5
- export function createReportOptions(options, runtime) {
5
+ export function CreateReportOptions(options, runtime) {
6
6
  const { dsn, environment, release, service, beforeReport } = options
7
7
 
8
8
  if (!dsn?.trim()) {