Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
de87e314c0 | |||
cddd1163ec |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartfuzzy",
|
"name": "@pushrocks/smartfuzzy",
|
||||||
"version": "1.1.2",
|
"version": "1.1.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@pushrocks/smartfuzzy",
|
"name": "@pushrocks/smartfuzzy",
|
||||||
"version": "1.1.2",
|
"version": "1.1.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartpromise": "^3.1.6",
|
"@pushrocks/smartpromise": "^3.1.6",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartfuzzy",
|
"name": "@pushrocks/smartfuzzy",
|
||||||
"version": "1.1.2",
|
"version": "1.1.3",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "fuzzy match strings against word dictionaries/arrays",
|
"description": "fuzzy match strings against word dictionaries/arrays",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
@ -28,6 +28,7 @@ tap.test('should sort objects', async () => {
|
|||||||
|
|
||||||
const result = await testArticleSearch.search('USA');
|
const result = await testArticleSearch.search('USA');
|
||||||
console.log(result);
|
console.log(result);
|
||||||
|
console.log(result[0].matches)
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.start();
|
tap.start();
|
||||||
|
@ -54,6 +54,7 @@ export class ArticleSearch {
|
|||||||
weight: 1,
|
weight: 1,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
includeMatches: true
|
||||||
});
|
});
|
||||||
this.readyDeferred.resolve();
|
this.readyDeferred.resolve();
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user