nextemos 3.7.8 → 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
  };
@@ -64,7 +64,7 @@ export interface IProduct {
64
64
  channelProperties?: ChannelProperty[];
65
65
  types?: Type[];
66
66
  barcodes?: Barcode[];
67
- documents?: Document[];
67
+ documents?: IDocument[];
68
68
  vendors?: Vendor[];
69
69
  attributeGroupMappings?: AttributeGroupMapping[];
70
70
  }
@@ -176,7 +176,7 @@ export interface StockTypeValue {
176
176
  id: number;
177
177
  externalId: number;
178
178
  }
179
- export interface Document {
179
+ export interface IDocument {
180
180
  id: number;
181
181
  name: string;
182
182
  filePath: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "3.7.8",
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",