@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 +1 -1
- package/package.json +1 -1
- package/src/index.js +1 -1
package/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export interface CaptureContext {
|
|
|
27
27
|
requestId?: string
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export function
|
|
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
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
|
|
5
|
+
export function CreateReportOptions(options, runtime) {
|
|
6
6
|
const { dsn, environment, release, service, beforeReport } = options
|
|
7
7
|
|
|
8
8
|
if (!dsn?.trim()) {
|