@jetthai/cuora 1.1.366-dev-4 → 1.1.366-dev-5

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.366-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.366-dev-4...v1.1.366-dev-5) (2025-07-29)
6
+
5
7
  ### [1.1.366-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.366-v2api-2...v1.1.366-dev-4) (2025-07-25)
6
8
 
7
9
  ### [1.1.366-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.366-dev-2...v1.1.366-dev-3) (2025-07-18)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.366-dev-4",
3
+ "version": "1.1.366-dev-5",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -234,12 +234,15 @@ export default class Request {
234
234
  return supportedUrl === cleanUrl
235
235
  })
236
236
 
237
- if (isV2Supported) {
237
+ // 如果站點是ZAZA或ZAZAAPP,則不支援V2版本的API
238
+ const supportV2Toggle = ['ZAZA', 'ZAZAAPP'].includes(this.config?.clientId)
239
+
240
+ if (isV2Supported && !supportV2Toggle) {
238
241
  fullURL = fullURL.replace('/v1/', '/v2/')
239
242
  urlName = this._convertUrlToKebabCase(url)
240
- console.log(`*[DEV_ONLY]V2`, 'url:', urlName)
243
+ // console.log(`*[DEV_ONLY]V2`, 'url:', urlName)
241
244
  } else {
242
- console.log(`*[DEV_ONLY]V2-不支援:`, 'url:', urlName)
245
+ // console.log(`*[DEV_ONLY]V2-不支援:`, 'url:', urlName)
243
246
  }
244
247
 
245
248
  if (isFormData) {