@jetthai/cuora 1.1.436 → 1.1.437
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 +9 -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.437](https://github.com/jetthai/cuora-module/compare/v1.1.436...v1.1.437) (2026-05-15)
|
|
6
|
+
|
|
5
7
|
### [1.1.436](https://github.com/jetthai/cuora-module/compare/v1.1.435...v1.1.436) (2026-05-15)
|
|
6
8
|
|
|
7
9
|
### [1.1.435](https://github.com/jetthai/cuora-module/compare/v1.1.434...v1.1.435) (2026-05-14)
|
package/package.json
CHANGED
package/src/request/request.js
CHANGED
|
@@ -219,7 +219,15 @@ export default class Request {
|
|
|
219
219
|
(error) => {
|
|
220
220
|
if (error.message === 'Network Error' || error.message === 'Request failed with status code 404') {
|
|
221
221
|
const endpoint = error.config?.url || ''
|
|
222
|
-
|
|
222
|
+
const uidSite = window.$nuxt?.$store?.state?.userInfo?.uid_site || ''
|
|
223
|
+
this.sentry?.captureException(`ERR_998:${error.message}`, {
|
|
224
|
+
extra: {
|
|
225
|
+
endpoint,
|
|
226
|
+
site: this.config.clientId,
|
|
227
|
+
uidSite,
|
|
228
|
+
version: this.config.version,
|
|
229
|
+
},
|
|
230
|
+
})
|
|
223
231
|
return Promise.reject({ code: 'ERR_998', endpoint })
|
|
224
232
|
}
|
|
225
233
|
return Promise.reject(error.response?.data?.error || error)
|