@jetthai/cuora 1.1.478 → 1.1.479
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/CHANGELOG.md +2 -0
- package/package.json +1 -1
- package/src/request/request.js +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.479](https://github.com/jetthai/cuora-module/compare/v1.1.478...v1.1.479) (2026-10-19)
|
|
6
|
+
|
|
5
7
|
### [1.1.478](https://github.com/jetthai/cuora-module/compare/v1.1.477...v1.1.478) (2026-10-16)
|
|
6
8
|
|
|
7
9
|
### [1.1.477](https://github.com/jetthai/cuora-module/compare/v1.1.476...v1.1.477) (2026-10-16)
|
package/package.json
CHANGED
package/src/request/request.js
CHANGED
|
@@ -2,6 +2,9 @@ import pickBy from 'lodash/pickBy.js'
|
|
|
2
2
|
import storage from '../util/storage.js'
|
|
3
3
|
import { getErr998SentryExtra } from '../util/err998SentryExtra.js'
|
|
4
4
|
|
|
5
|
+
// 暫停 ERR_998 上報:在組裝 Sentry 資料之前就中止,不建立事件;仍照常 reject ERR_998 給呼叫端。恢復時改回 false 即可
|
|
6
|
+
const IS_ERR_998_REPORT_PAUSED = true
|
|
7
|
+
|
|
5
8
|
// const pickBy = require('lodash/pickBy')
|
|
6
9
|
const supportVersion2List = [
|
|
7
10
|
// 04-09 Update
|
|
@@ -224,7 +227,7 @@ export default class Request {
|
|
|
224
227
|
const endpoint = error.config?.url || ''
|
|
225
228
|
// 確實在線才以 warning 等級回報(連線不穩定多為使用者端網路問題,非應用程式錯誤)
|
|
226
229
|
const isOnline = typeof navigator !== 'undefined' ? navigator.onLine : true
|
|
227
|
-
if (isOnline) {
|
|
230
|
+
if (!IS_ERR_998_REPORT_PAUSED && isOnline) {
|
|
228
231
|
const errData998 = getErr998SentryExtra(this, error.config)
|
|
229
232
|
const sentryError = new Error(`ERR_998:${error.message}`)
|
|
230
233
|
sentryError.name = 'ERR_998'
|