@afilimax/core 0.4.0 → 0.4.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.
package/README.md CHANGED
@@ -102,7 +102,7 @@ class MyProvider extends AffiliateProvider<CustomOptions> {
102
102
  domains = ["loja-exemplo.com.br"]
103
103
 
104
104
  // Implementação obrigatória para gerar o link
105
- createAffiliateUrl = async (url: string) => {
105
+ async createAffiliateUrl(url: string) {
106
106
  return `https://link-afiliado.com?id=${this.options.trackingId}&url=${url}`
107
107
  }
108
108
  }
@@ -4,5 +4,5 @@ export declare abstract class AffiliateProvider<TOptions> {
4
4
  constructor(options: TOptions);
5
5
  abstract name: string;
6
6
  supportsUrl(url: string): boolean;
7
- abstract createAffiliateUrl: (url: string) => Promise<string>;
7
+ abstract createAffiliateUrl(url: string): Promise<string>;
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afilimax/core",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "type": "commonjs",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",