1.1.3 • Published 2 years ago
@tomorrow-catcher/browser v1.1.3
@tomorrow-catcher/browser
the browser'SDK of the tomorrow-catcher'SDK
Install
Using npm:
$ npm install --save @tomorrow-catcher/browser
or using yarn:
$ yarn add @tomorrow-catcher/browser
or using pnpm:
$ pnpm add @tomorrow-catcher/browser
Usage
Options
key
Type: string
Default:
the app unique key
expireDate
Type: number
Default: 0
the log expire date,the log will upload when the expireDate was setting 0.one step is millisecond.
reportUrl
Type: string
Default: ''
the log upload api url.
handlersList
Type: 'error' | 'unhandledrejection' | 'fetch' | 'xhr' | 'sourceLoad' | 'lag'[]
Default: []
the errors handler list
handlersOpts
Type: {lag:{threshold: number,second: number}}
Default: null
the errors handler options
sdkVersion
Type: string
Default: ${current SDK'version}
the extra sdk'version