@jetthai/cuora 1.1.477-dev.0 → 1.1.477-dev.1

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 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.477-dev.1](https://github.com/jetthai/cuora-module/compare/v1.1.477-dev.0...v1.1.477-dev.1) (2026-10-16)
6
+
5
7
  ### [1.1.477-dev.0](https://github.com/jetthai/cuora-module/compare/v1.1.477...v1.1.477-dev.0) (2026-10-16)
6
8
 
7
9
  ### [1.1.476-dev.1](https://github.com/jetthai/cuora-module/compare/v1.1.476...v1.1.476-dev.1) (2026-10-14)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.477-dev.0",
3
+ "version": "1.1.477-dev.1",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -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
@@ -208,7 +211,7 @@ export default class Request {
208
211
  const endpoint = error.config?.url || ''
209
212
  // 確實在線才以 warning 等級回報(連線不穩定多為使用者端網路問題,非應用程式錯誤)
210
213
  const isOnline = typeof navigator !== 'undefined' ? navigator.onLine : true
211
- if (isOnline) {
214
+ if (!IS_ERR_998_REPORT_PAUSED && isOnline) {
212
215
  const errData998 = getErr998SentryExtra(this, error.config)
213
216
  const sentryError = new Error(`ERR_998:${error.message}`)
214
217
  sentryError.name = 'ERR_998'