@quranjs/api 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- export declare const versesMaping: {
1
+ export declare const versesMapping: {
2
2
  '1': number;
3
3
  '2': number;
4
4
  '3': number;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "1.5.0",
8
+ "version": "1.5.1",
9
9
  "license": "MIT",
10
10
  "main": "dist/index.js",
11
11
  "typings": "dist/index.d.ts",
package/src/sdk/utils.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // this maps chapterNumber to verseCount
2
- export const versesMaping = {
2
+ export const versesMapping = {
3
3
  '1': 7,
4
4
  '2': 286,
5
5
  '3': 200,
@@ -211,7 +211,7 @@ const isValidVerseKey = (key: string) => {
211
211
  if (!chapterId || !verseId || !isValidChapterId(chapterId)) return false;
212
212
 
213
213
  const parsedVerse = Number(verseId);
214
- const verseCount = (versesMaping as any)[chapterId];
214
+ const verseCount = (versesMapping as any)[chapterId];
215
215
  if (!parsedVerse || parsedVerse <= 0 || parsedVerse > verseCount)
216
216
  return false;
217
217