larapi 0.0.2 → 0.0.3

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/lib/Core.d.ts CHANGED
@@ -14,7 +14,7 @@ declare abstract class Core {
14
14
  private getCache;
15
15
  setHost(host: string): void;
16
16
  private setCache;
17
- private deleteCacheGroup;
17
+ deleteCacheGroup(group: string): void;
18
18
  private deleteCache;
19
19
  setInitData(data: TGroupsData): void;
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "larapi",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "API client for laravel",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
package/src/Core.ts CHANGED
@@ -198,7 +198,7 @@ abstract class Core {
198
198
  };
199
199
  }
200
200
 
201
- private deleteCacheGroup(group: string): void {
201
+ public deleteCacheGroup(group: string): void {
202
202
  for(const key in this.cache) {
203
203
  if (this.cache[key].group === group) {
204
204
  delete this.cache[key];