mkfashion-sdk 2.4.1 → 2.4.2

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.1",
3
+ "version": "2.4.2",
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
@@ -252,7 +252,7 @@ const mkfashion = {
252
252
  this._log('Verificando disponibilidade', { projectId: resolved, identifier })
253
253
 
254
254
  try {
255
- const url = `${this.apiUrl}/availability/${resolved}/${encodeURIComponent(identifier).replace(/\./g, '%2E')}`
255
+ const url = `${this.apiUrl}/availability/${resolved}?sku=${encodeURIComponent(identifier)}`
256
256
  const response = await fetch(url)
257
257
 
258
258
  if (!response.ok) {