nextemos 3.7.9 → 3.8.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.
@@ -21,7 +21,7 @@ const cdn = {
21
21
  },
22
22
  // CDN'deki dosyayı linkini getiren fonksiyon
23
23
  getFile: function name(path = '') {
24
- return `${this.url}/${path}`;
24
+ return `${this.url}/${encodeURI(path)}`;
25
25
  }
26
26
  };
27
27
  // Değerin geçerli olup olmadığını kontrol eden ve string olarak döndüren yardımcı fonksiyon
@@ -47,7 +47,7 @@ const huaweiImageProcessor = (props) => {
47
47
  if ((_e = props.options) === null || _e === void 0 ? void 0 : _e.backColor)
48
48
  thumbUrl.push((_f = props.options) === null || _f === void 0 ? void 0 : _f.backColor);
49
49
  // Görüntü yolu ekleniyor
50
- thumbUrl.push(props.path);
50
+ thumbUrl.push(encodeURI(props.path));
51
51
  // Sonuç olarak oluşturulan URL döndürülüyor
52
52
  return thumbUrl.join('/');
53
53
  };
@@ -89,7 +89,7 @@ const thumborImageProcessor = (props) => {
89
89
  if (source)
90
90
  thumbUrl.push(source);
91
91
  // Görüntü yolu ekleniyor
92
- thumbUrl.push(props.path);
92
+ thumbUrl.push(encodeURI(props.path));
93
93
  // Sonuç olarak oluşturulan URL döndürülüyor
94
94
  return thumbUrl.join('/');
95
95
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "3.7.9",
3
+ "version": "3.8.0",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",