Skip to content

Commit

Permalink
chore(lyra): prepares for release 0.0.1-beta-8
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleriva committed Jul 12, 2022
1 parent 43a96c1 commit ca01571
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lyra",
"version": "1.0.0",
"version": "1.1.0",
"description": "",
"main": "index.js",
"workspaces": [
Expand Down Expand Up @@ -51,4 +51,4 @@
]
}
}
}
}
3 changes: 3 additions & 0 deletions packages/examples/with-react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ import Unocss from "unocss/vite";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), Unocss({})],
build: {
target: ["es2020"],
},
});
2 changes: 1 addition & 1 deletion packages/lyra/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nearform/lyra",
"description": "Fast, in-memory, full-text search engine",
"version": "0.0.1-beta-7",
"version": "0.0.1-beta-8",
"author": {
"name": "Michele Riva",
"email": "[email protected]",
Expand Down
5 changes: 4 additions & 1 deletion packages/lyra/src/lyra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ export class Lyra {
}
}

async search(params: SearchParams, language: Language = this.defaultLanguage): SearchResult {
async search(
params: SearchParams,
language: Language = this.defaultLanguage
): SearchResult {
const tokens = tokenize(params.term, language).values();
const indices = this.getIndices(params.properties);
const { limit = 10, offset = 0 } = params;
Expand Down

0 comments on commit ca01571

Please sign in to comment.