@fixefy/fixefy-ui-utils 0.2.53 → 0.2.54

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.
@@ -8,10 +8,10 @@ Object.defineProperty(exports, "imageLoader", {
8
8
  return imageLoader;
9
9
  }
10
10
  });
11
- const imageLoader = ({ src, path })=>{
11
+ const imageLoader = ({ src })=>{
12
12
  const transformedSrc = src.split('/');
13
13
  const new_item = transformedSrc[transformedSrc.length - 1].split(/(?=[A-Z])/).join('_').toLowerCase();
14
14
  transformedSrc.splice(transformedSrc.length - 1, 1, new_item);
15
15
  const url = transformedSrc.join('/');
16
- return path ? `${path}/${url}` : `${process.env.NEXT_PUBLIC_ASSET_URL}/${url}`;
16
+ return `${process.env.NEXT_PUBLIC_ASSET_URL}/${url}`;
17
17
  };
package/package.json CHANGED
@@ -56,5 +56,5 @@
56
56
  "require": "./dist/index.js"
57
57
  }
58
58
  },
59
- "version": "0.2.53"
59
+ "version": "0.2.54"
60
60
  }