mkfashion-sdk 2.4.0 → 2.4.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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mkfashion-sdk",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "SDK para integrar o provador virtual mKFashion com suporte a Wake Commerce",
5
5
  "main": "src/mkfashion.js",
6
6
  "scripts": {
package/src/mkfashion.js CHANGED
@@ -247,6 +247,7 @@ const mkfashion = {
247
247
  return Promise.reject(new Error('identifier e obrigatorio'))
248
248
  }
249
249
 
250
+ identifier = String(identifier).trim()
250
251
  const resolved = this._resolveProjectId(projectId)
251
252
  this._log('Verificando disponibilidade', { projectId: resolved, identifier })
252
253
 
@@ -322,6 +323,8 @@ const mkfashion = {
322
323
  return Promise.reject(new Error('identifier e obrigatorio'))
323
324
  }
324
325
 
326
+ identifier = String(identifier).trim()
327
+
325
328
  // Retorna do cache se disponível (evita chamada API após add_to_cart)
326
329
  if (this._lastCartProductData?.product) {
327
330
  const cached = this._lastCartProductData