mkfashion-sdk 2.3.9 → 2.4.0

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/index.html CHANGED
@@ -13,7 +13,7 @@
13
13
  <script>
14
14
  (function() {
15
15
  var projectid = '698c806c1d3129430f15ddde';
16
- var identifier = '1183C102.751';
16
+ var identifier = '8964289003742';
17
17
 
18
18
  function initMkFashion() {
19
19
  mkfashion.addToCart(function(payload) {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mkfashion-sdk",
3
- "version": "2.3.9",
3
+ "version": "2.4.0",
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
@@ -67,7 +67,7 @@ const mkfashion = {
67
67
 
68
68
  const raw = options.projectId || options.projectid || options.store
69
69
  const projectId = this._resolveProjectId(raw)
70
- const identifier = options.identifier || options.sku
70
+ const identifier = (options.identifier || options.sku || '').trim()
71
71
 
72
72
  if (!projectId) {
73
73
  console.error('[mKFashion] projectId e obrigatorio')
Binary file