diff --git a/CHANGELOG.md b/CHANGELOG.md index b1b9f12..6e7baf0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +## [1.2.1] 2018-05-14 + +- Fix missing `static` on Core.getIndices + ## [1.2.0] 2018-05-14 - Added index stored + getIndices to retrieve all indexed classes diff --git a/package.json b/package.json index a6bf41b..e81ef78 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gojob/ts-elasticsearch", - "version": "1.2.0", + "version": "1.2.1", "license": "MIT", "description": "Elasticsearch decorated by TypeScript", "main": "./dist/index.js", diff --git a/src/lib/core.test.ts b/src/lib/core.test.ts index 3157427..8dd445d 100644 --- a/src/lib/core.test.ts +++ b/src/lib/core.test.ts @@ -307,7 +307,7 @@ describe('getIndices', () => { const spy = jest.spyOn(IndexStore, 'getAll'); spy.mockReturnValue(indices); - expect(core.getIndices()).toBe(indices); + expect(Core.getIndices()).toBe(indices); expect(spy).toHaveBeenCalledTimes(1); spy.mockRestore(); diff --git a/src/lib/core.ts b/src/lib/core.ts index e98c1b7..3646786 100644 --- a/src/lib/core.ts +++ b/src/lib/core.ts @@ -161,7 +161,7 @@ export class Core { /** * Return all Indexed classes */ - getIndices(): AnyClass[] { + static getIndices(): AnyClass[] { return IndexStore.getAll(); }