nextemos 3.7.0 → 3.7.1

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.
@@ -14,5 +14,6 @@ interface IThumbImage {
14
14
  declare const cdn: {
15
15
  url: string;
16
16
  thumbImage: (props: IThumbImage) => string;
17
+ getFile: (path?: string) => string;
17
18
  };
18
19
  export default cdn;
@@ -18,6 +18,10 @@ const cdn = {
18
18
  default:
19
19
  return thumborImageProcessor(props); // Varsayılan olarak Thumbor işlemcisi kullanılıyor
20
20
  }
21
+ },
22
+ // CDN'deki dosyayı linkini getiren fonksiyon
23
+ getFile: function name(path = '') {
24
+ return `${this.url}/${path}`;
21
25
  }
22
26
  };
23
27
  // Değerin geçerli olup olmadığını kontrol eden ve string olarak döndüren yardımcı fonksiyon
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "3.7.0",
3
+ "version": "3.7.1",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",