diff --git a/biblejs-name-converter b/biblejs-name-converter deleted file mode 160000 index fecced8..0000000 --- a/biblejs-name-converter +++ /dev/null @@ -1 +0,0 @@ -Subproject commit fecced89886af3cdc60ce1a61c9e24aa39e62ed7 diff --git a/package.json b/package.json index 236f39b..024dc76 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ }, "dependencies": { "ackee-tracker": "^5.1.0", + "bible-reference-toolkit": "^2.0.8", "flagsmith-nodejs": "^3.1.1" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 33606ec..8b705f9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,9 @@ dependencies: ackee-tracker: specifier: ^5.1.0 version: 5.1.0 + bible-reference-toolkit: + specifier: ^2.0.8 + version: 2.0.8 flagsmith-nodejs: specifier: ^3.1.1 version: 3.1.1 @@ -1370,6 +1373,16 @@ packages: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} dev: false + /bible-book-names-intl@2.0.9: + resolution: {integrity: sha512-l9w0Angr2/lQYQKwnH1OJ2+zivihxFPDK+DVryrrTmbPLE2ZCfc+2fIKsXUhhw9Um1TIaUTOmJFJ6avwpNjtwQ==} + dev: false + + /bible-reference-toolkit@2.0.8: + resolution: {integrity: sha512-G9vN+2cn2wf2euVUbSQBkljZRRexb+5Z8hlPh8ouimjOF+K4DfPvulbr/ThiVlP8K79tg/vMkvU11RasJSt94Q==} + dependencies: + bible-book-names-intl: 2.0.9 + dev: false + /big-integer@1.6.51: resolution: {integrity: sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==} engines: {node: '>=0.6'} diff --git a/src/provider/BollyLifeProvider.ts b/src/provider/BollyLifeProvider.ts index 714f4f8..a503443 100644 --- a/src/provider/BollyLifeProvider.ts +++ b/src/provider/BollyLifeProvider.ts @@ -1,8 +1,9 @@ import { IVerse } from '../interfaces/IVerse' import { IBibleVersion } from '../interfaces/IBibleVersion' import { BaseBibleAPIProvider } from './BaseBibleAPIProvider' -import { Reference } from '../../biblejs-name-converter' +import * as Tool from 'bible-reference-toolkit/' +const { Reference } = Tool export class BollyLifeProvider extends BaseBibleAPIProvider { //private _verseApiUrl: string; // we do not support get verse api yet, but the api supported it private _chapterApiUrl: string diff --git a/src/utils/getSuggestionsFromQuery.ts b/src/utils/getSuggestionsFromQuery.ts index 096f21b..5eee32b 100644 --- a/src/utils/getSuggestionsFromQuery.ts +++ b/src/utils/getSuggestionsFromQuery.ts @@ -1,7 +1,9 @@ import { BibleReferencePluginSettings } from '../data/constants' import { VerseSuggesting } from '../verse/VerseSuggesting' import { BOOK_REG } from './regs' -import { Reference } from '../../biblejs-name-converter' +import * as Tool from 'bible-reference-toolkit/' + +const { Reference } = Tool /** * Get suggestions from string query