@quranjs/api 1.1.4 → 1.2.0

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
- import { ChapterRecitation, VerseRecitation, ChapterId, HizbNumber, JuzNumber, Language, PageNumber, Pagination, RubNumber, VerseKey, VerseRecitationField } from '@/types';
1
+ import { ChapterRecitation, VerseRecitation, ChapterId, HizbNumber, JuzNumber, Language, PageNumber, Pagination, RubNumber, VerseKey, VerseRecitationField } from '../../types';
2
2
  declare const audio: {
3
3
  findAllChapterRecitations: (reciterId: string, options?: Partial<{
4
4
  language: Language;
@@ -1,4 +1,4 @@
1
- import { Chapter, ChapterId, ChapterInfo, Language } from '@/types';
1
+ import { Chapter, ChapterId, ChapterInfo, Language } from '../../types';
2
2
  declare const chapters: {
3
3
  findAll: (options?: Partial<{
4
4
  language: Language;
@@ -1,4 +1,4 @@
1
- import { Juz } from '@/types';
1
+ import { Juz } from '../../types';
2
2
  declare const juzs: {
3
3
  findAll: () => Promise<Juz[]>;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { ChapterInfoResource, ChapterReciterResource, Language, LanguageResource, RecitationResource, RecitationStylesResource, TafsirResource, TranslationResource, VerseMediaResource } from '@/types';
1
+ import { ChapterInfoResource, ChapterReciterResource, Language, LanguageResource, RecitationResource, RecitationStylesResource, TafsirResource, TranslationResource, VerseMediaResource } from '../../types';
2
2
  declare const resources: {
3
3
  findAllRecitations: (options?: Partial<{
4
4
  language: Language;
@@ -1,4 +1,4 @@
1
- import { Language } from '@/types';
1
+ import { Language } from '../../types';
2
2
  declare const searchApi: {
3
3
  search: (q: string, options?: Partial<{
4
4
  language: Language;
@@ -14,8 +14,8 @@ declare const searchApi: {
14
14
  verse_id: number;
15
15
  text: string;
16
16
  highlighted: string;
17
- words: import("@/types").Word[];
18
- translations: import("@/types").Translation[];
17
+ words: import("../../types").Word[];
18
+ translations: import("../../types").Translation[];
19
19
  }[] | undefined;
20
20
  }>;
21
21
  };
@@ -1,4 +1,4 @@
1
- import { ChapterId, JuzNumber, Language, PageNumber, TranslationField, Verse, VerseField, VerseKey, WordField } from '@/types';
1
+ import { ChapterId, JuzNumber, Language, PageNumber, TranslationField, Verse, VerseField, VerseKey, WordField } from '../../types';
2
2
  declare const verses: {
3
3
  findByKey: (key: VerseKey, options?: Partial<{
4
4
  language: Language;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "1.1.4",
8
+ "version": "1.2.0",
9
9
  "license": "MIT",
10
10
  "main": "dist/index.js",
11
11
  "typings": "dist/index.d.ts",
@@ -25,8 +25,6 @@
25
25
  "analyze": "size-limit --why"
26
26
  },
27
27
  "devDependencies": {
28
- "@rollup/plugin-alias": "^3.1.9",
29
- "@rollup/plugin-node-resolve": "^13.1.3",
30
28
  "@size-limit/preset-small-lib": "^7.0.8",
31
29
  "@types/humps": "^2.0.1",
32
30
  "dts-cli": "^1.4.0",
@@ -1,7 +1,7 @@
1
1
  import fetch from 'cross-fetch';
2
2
  import { camelizeKeys, decamelizeKeys } from 'humps';
3
- import stringify from '@/utils/qs-stringify';
4
- import { removeBeginningSlash } from '@/utils/misc';
3
+ import stringify from '../../utils/qs-stringify';
4
+ import { removeBeginningSlash } from '../../utils/misc';
5
5
 
6
6
  export const API_BASE_URL = 'https://api.quran.com/api/v4/';
7
7
 
@@ -10,7 +10,7 @@ import {
10
10
  RubNumber,
11
11
  VerseKey,
12
12
  VerseRecitationField,
13
- } from '@/types';
13
+ } from '../../types';
14
14
  import { decamelize } from 'humps';
15
15
  import Utils from '../utils';
16
16
  import { fetcher } from './_fetcher';
@@ -1,4 +1,4 @@
1
- import { Chapter, ChapterId, ChapterInfo, Language } from '@/types';
1
+ import { Chapter, ChapterId, ChapterInfo, Language } from '../../types';
2
2
  import { fetcher } from './_fetcher';
3
3
  import Utils from '../utils';
4
4
 
@@ -1,4 +1,4 @@
1
- import { Juz } from '@/types';
1
+ import { Juz } from '../../types';
2
2
  import { fetcher } from './_fetcher';
3
3
 
4
4
  /**
@@ -11,7 +11,7 @@ import {
11
11
  // TranslationInfoResource,
12
12
  TranslationResource,
13
13
  VerseMediaResource,
14
- } from '@/types';
14
+ } from '../../types';
15
15
  import { fetcher } from './_fetcher';
16
16
 
17
17
  type GetResourcesOptions = Partial<{
@@ -1,4 +1,4 @@
1
- import { Language, SearchResponse } from '@/types';
1
+ import { Language, SearchResponse } from '../../types';
2
2
  import { fetcher } from './_fetcher';
3
3
 
4
4
  type SearchOptions = Partial<{
@@ -10,7 +10,7 @@ import {
10
10
  VerseField,
11
11
  VerseKey,
12
12
  WordField,
13
- } from '@/types';
13
+ } from '../../types';
14
14
  import { decamelize } from 'humps';
15
15
  import Utils from '../utils';
16
16
  import { fetcher } from './_fetcher';