@claspo/renderer 18.9.0-sp6 → 18.9.0-sp7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claspo/renderer",
3
- "version": "18.9.0-sp6",
3
+ "version": "18.9.0-sp7",
4
4
  "scripts": {
5
5
  "dev": " tsc --project tsconfig.json --watch",
6
6
  "build": "rm -rf out && tsc --project tsconfig.json && npm run minify",
@@ -2,6 +2,9 @@ import PrizePool from "./PrizePool";
2
2
  export default class PrizePoolFactory {
3
3
  httpClient: any;
4
4
  configService: any;
5
+ pools: Map<string, PrizePool>;
5
6
  constructor(httpClient: any, configService: any);
6
7
  get(config: any): PrizePool;
8
+ _sharedId(config: any): any;
9
+ _build(config: any): PrizePool;
7
10
  }
@@ -1 +1 @@
1
- import PrizePool from"./PrizePool";export default class PrizePoolFactory{constructor(t,o){this.httpClient=t,this.configService=o}get(t){return new PrizePool(t,this.httpClient,this.configService)}}
1
+ import PrizePool from"./PrizePool";export default class PrizePoolFactory{constructor(t,i){this.httpClient=t,this.configService=i,this.pools=new Map}get(t){const i=this._sharedId(t);return i?(this.pools.has(i)||this.pools.set(i,this._build(t)),this.pools.get(i)):this._build(t)}_sharedId(t){return!!(null==t?void 0:t.id)&&!t.options&&"FIXED"!==t.model?t.id:null}_build(t){return new PrizePool(t,this.httpClient,this.configService)}}