onecore 0.0.24 → 0.0.25

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onecore",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "onecore",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
package/src/index.ts CHANGED
@@ -92,7 +92,7 @@ export class ViewManager<T, ID> implements ViewService<T, ID> {
92
92
  return (this.repo.all ? this.repo.all() : Promise.resolve([]));
93
93
  }
94
94
  load(id: ID, ctx?: any): Promise<T | null> {
95
- return this.repo.load(id, ctx);;
95
+ return this.repo.load(id, ctx);
96
96
  }
97
97
  exist(id: ID, ctx?: any): Promise<boolean> {
98
98
  return (this.repo.exist ? this.repo.exist(id, ctx) : Promise.resolve(false));
@@ -108,10 +108,10 @@ export class GenericManager<T, ID> extends ViewManager<T, ID> implements Generic
108
108
  this.delete = this.delete.bind(this);
109
109
  }
110
110
  insert(obj: T, ctx?: any): Promise<number> {
111
- return this.repository.insert(obj, ctx);;
111
+ return this.repository.insert(obj, ctx);
112
112
  }
113
113
  update(obj: T, ctx?: any): Promise<number> {
114
- return this.repository.update(obj, ctx);;
114
+ return this.repository.update(obj, ctx);
115
115
  }
116
116
  patch(obj: T, ctx?: any): Promise<number> {
117
117
  return (this.repository.patch ? this.repository.patch(obj, ctx) : Promise.resolve(-1));