-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added EVENTS endpoint that emits a 'ready' event immediately after initialisation * version bump * fixed stale cache bug when IMPORTing * update deps
- Loading branch information
1 parent
dadba8e
commit d63d809
Showing
11 changed files
with
83 additions
and
23 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
dist/search-index-esm-5.0.0.js → dist/search-index-esm-5.1.3.js
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export const packageVersion = "5.0.0" | ||
export const packageVersion = "5.1.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import test from 'tape' | ||
import { SearchIndex } from 'search-index' | ||
|
||
const sandbox = 'test/sandbox/' | ||
const indexName = sandbox + 'EVENTS' | ||
const global = {} | ||
|
||
test('create a search index and listen to the "ready" event', t => { | ||
t.plan(2) | ||
t.ok((global[indexName] = new SearchIndex({ name: indexName })), !undefined) | ||
global[indexName].EVENTS.on('ready', () => t.pass('ready event emitted')) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters