Skip to content

Commit

Permalink
Merge pull request #17 from regisrex/pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
pacifiquem committed Oct 1, 2023
2 parents bf9a619 + 3c04525 commit e13efa5
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/interfaces/json.interface.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Full text search algorithm
* ----
* By [@pacifiquem](https://github.com/pacifiquem) and [@regisrex](https://github.com/regisrex)
*/

export interface ParsedJSON {
index: number
value: string
Expand Down
7 changes: 7 additions & 0 deletions src/lib/parser.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Full text search algorithm
* ----
* By [@pacifiquem](https://github.com/pacifiquem) and [@regisrex](https://github.com/regisrex)
*/


import { isArray, isJSON } from "valdie";
import { ParsedJSON } from "../interfaces/json.interface";
import { InvalidJSON } from "../utils/errors";
Expand Down
6 changes: 6 additions & 0 deletions src/lib/search.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Full text search algorithm
* ----
* By [@pacifiquem](https://github.com/pacifiquem) and [@regisrex](https://github.com/regisrex)
*/

import { ParsedJSON } from "../interfaces/json.interface";
import parser from "./parser";

Expand Down
6 changes: 6 additions & 0 deletions src/utils/errors.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Full text search algorithm
* ----
* By [@pacifiquem](https://github.com/pacifiquem) and [@regisrex](https://github.com/regisrex)
*/

export class InvalidJSON extends Error {
constructor(message: string) {
super(message)
Expand Down
6 changes: 6 additions & 0 deletions src/utils/testDATA.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Full text search algorithm
* ----
* By [@pacifiquem](https://github.com/pacifiquem) and [@regisrex](https://github.com/regisrex)
*/

import { ParsedJSON } from "../interfaces/json.interface"

export const validJsonObject = [{
Expand Down
7 changes: 7 additions & 0 deletions test/parser.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Full text search algorithm
* ----
* By [@pacifiquem](https://github.com/pacifiquem) and [@regisrex](https://github.com/regisrex)
*/


import { describe, expect, it } from 'vitest';
import parser from "../src/lib/parser";
import { InvalidJSON } from '../src/utils/errors';
Expand Down
7 changes: 7 additions & 0 deletions test/search.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Full text search algorithm
* ----
* By [@pacifiquem](https://github.com/pacifiquem) and [@regisrex](https://github.com/regisrex)
*/


import { describe, expect, it } from 'vitest';
import search from '../src/lib/search';

Expand Down

0 comments on commit e13efa5

Please sign in to comment.