@azuro-org/images-generator 1.1.1 → 1.1.2

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.
@@ -3,7 +3,7 @@ type OnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>
3
3
  [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
4
4
  }[Keys];
5
5
  export type Props = {
6
- title: 'USDT' | 'XDAI';
6
+ title: string;
7
7
  data: {
8
8
  totalOdds: string | number;
9
9
  asset: string;
@@ -157,7 +157,7 @@
157
157
  <div class="item">
158
158
  <div class="value">
159
159
  <div>{payoutValue} {asset}</div>
160
- <div class="assetIcon assetIcon-{asset}"></div>
160
+ <div class="assetIcon assetIcon-{assetIcon}"></div>
161
161
  </div>
162
162
  <div class="label">{payoutLabel}</div>
163
163
  </div>
@@ -18,7 +18,8 @@ import {_ as __awaiter,a as __generator,g as getFile,b as getBase64Image}from'..
18
18
  .replace('{totalOdds}', String(totalOdds))
19
19
  .replace('{payoutValue}', String(payout || possiblePayout))
20
20
  .replace('{payoutLabel}', payout ? 'Winning' : 'Possible win')
21
- .replace(/\{asset}/g, asset.toUpperCase())];
21
+ .replace('{asset}', asset)
22
+ .replace('{assetIcon}', asset.toUpperCase())];
22
23
  });
23
24
  }); }
24
25
  };export{template as default};
@@ -3,7 +3,7 @@ type OnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>
3
3
  [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
4
4
  }[Keys];
5
5
  export type Props = {
6
- title: 'USDT' | 'XDAI';
6
+ title: string;
7
7
  data: {
8
8
  totalOdds: string | number;
9
9
  asset: string;
@@ -157,7 +157,7 @@
157
157
  <div class="item">
158
158
  <div class="value">
159
159
  <div>{payoutValue} {asset}</div>
160
- <div class="assetIcon assetIcon-{asset}"></div>
160
+ <div class="assetIcon assetIcon-{assetIcon}"></div>
161
161
  </div>
162
162
  <div class="label">{payoutLabel}</div>
163
163
  </div>
@@ -18,7 +18,8 @@
18
18
  .replace('{totalOdds}', String(totalOdds))
19
19
  .replace('{payoutValue}', String(payout || possiblePayout))
20
20
  .replace('{payoutLabel}', payout ? 'Winning' : 'Possible win')
21
- .replace(/\{asset}/g, asset.toUpperCase())];
21
+ .replace('{asset}', asset)
22
+ .replace('{assetIcon}', asset.toUpperCase())];
22
23
  });
23
24
  }); }
24
25
  };module.exports=template;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azuro-org/images-generator",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "license": "ISC",
5
5
  "engines": {
6
6
  "node": ">=16.15.1",