wyzie-lib 2.2.6 → 2.2.8
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.
- package/LICENSE +6 -6
- package/README.md +9 -9
- package/lib/main.amd.js +29 -0
- package/lib/main.cjs +29 -0
- package/lib/main.d.ts +112 -0
- package/lib/main.iife.js +29 -0
- package/lib/main.js +30 -1
- package/lib/main.umd.cjs +29 -0
- package/package.json +76 -76
package/LICENSE
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
Copyright 2024 Bad Developer
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
|
|
5
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
-
|
|
1
|
+
Copyright 2024 Bad Developer
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
7
|
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<a href="https://sub.wyzie.ru/">
|
|
3
|
-
<img src="https://i.postimg.cc/L5ppKYC5/cclogo.png" height="120">
|
|
4
|
-
<h1 align="center">Wyzie Lib</h1>
|
|
5
|
-
</a>
|
|
6
|
-
</p>
|
|
7
|
-
|
|
8
|
-
Wyzie Lib is a package made for easily implementing [Wyzie Subs](https://sub.wyzie.ru) into your
|
|
9
|
-
project without all the fuss. [Read the docs](https://docs.wyzie.ru/subs/usage/package).
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://sub.wyzie.ru/">
|
|
3
|
+
<img src="https://i.postimg.cc/L5ppKYC5/cclogo.png" height="120">
|
|
4
|
+
<h1 align="center">Wyzie Lib</h1>
|
|
5
|
+
</a>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
Wyzie Lib is a package made for easily implementing [Wyzie Subs](https://sub.wyzie.ru) into your
|
|
9
|
+
project without all the fuss. [Read the docs](https://docs.wyzie.ru/subs/usage/package).
|
package/lib/main.amd.js
CHANGED
|
@@ -110,8 +110,37 @@ ${textLines.join("\n")}
|
|
|
110
110
|
throw error;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
+
async function searchTmdb(query, language = "en-US") {
|
|
114
|
+
const url = new URL(`${config.baseUrl}/api/tmdb/search`);
|
|
115
|
+
url.searchParams.append("q", query);
|
|
116
|
+
url.searchParams.append("language", language);
|
|
117
|
+
const response = await fetch(url.toString());
|
|
118
|
+
if (!response.ok) {
|
|
119
|
+
throw new Error(`Failed to search TMDB: ${response.status}`);
|
|
120
|
+
}
|
|
121
|
+
return response.json();
|
|
122
|
+
}
|
|
123
|
+
async function getTvDetails(id) {
|
|
124
|
+
const url = `${config.baseUrl}/api/tmdb/tv/${id}`;
|
|
125
|
+
const response = await fetch(url);
|
|
126
|
+
if (!response.ok) {
|
|
127
|
+
throw new Error(`Failed to fetch TV details: ${response.status}`);
|
|
128
|
+
}
|
|
129
|
+
return response.json();
|
|
130
|
+
}
|
|
131
|
+
async function getSeasonDetails(id, season) {
|
|
132
|
+
const url = `${config.baseUrl}/api/tmdb/tv/${id}/${season}`;
|
|
133
|
+
const response = await fetch(url);
|
|
134
|
+
if (!response.ok) {
|
|
135
|
+
throw new Error(`Failed to fetch season details: ${response.status}`);
|
|
136
|
+
}
|
|
137
|
+
return response.json();
|
|
138
|
+
}
|
|
113
139
|
exports.configure = configure;
|
|
140
|
+
exports.getSeasonDetails = getSeasonDetails;
|
|
141
|
+
exports.getTvDetails = getTvDetails;
|
|
114
142
|
exports.parseToVTT = parseToVTT;
|
|
115
143
|
exports.searchSubtitles = searchSubtitles;
|
|
144
|
+
exports.searchTmdb = searchTmdb;
|
|
116
145
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
117
146
|
});
|
package/lib/main.cjs
CHANGED
|
@@ -110,6 +110,35 @@ ${textLines.join("\n")}
|
|
|
110
110
|
throw error;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
+
async function searchTmdb(query, language = "en-US") {
|
|
114
|
+
const url = new URL(`${config.baseUrl}/api/tmdb/search`);
|
|
115
|
+
url.searchParams.append("q", query);
|
|
116
|
+
url.searchParams.append("language", language);
|
|
117
|
+
const response = await fetch(url.toString());
|
|
118
|
+
if (!response.ok) {
|
|
119
|
+
throw new Error(`Failed to search TMDB: ${response.status}`);
|
|
120
|
+
}
|
|
121
|
+
return response.json();
|
|
122
|
+
}
|
|
123
|
+
async function getTvDetails(id) {
|
|
124
|
+
const url = `${config.baseUrl}/api/tmdb/tv/${id}`;
|
|
125
|
+
const response = await fetch(url);
|
|
126
|
+
if (!response.ok) {
|
|
127
|
+
throw new Error(`Failed to fetch TV details: ${response.status}`);
|
|
128
|
+
}
|
|
129
|
+
return response.json();
|
|
130
|
+
}
|
|
131
|
+
async function getSeasonDetails(id, season) {
|
|
132
|
+
const url = `${config.baseUrl}/api/tmdb/tv/${id}/${season}`;
|
|
133
|
+
const response = await fetch(url);
|
|
134
|
+
if (!response.ok) {
|
|
135
|
+
throw new Error(`Failed to fetch season details: ${response.status}`);
|
|
136
|
+
}
|
|
137
|
+
return response.json();
|
|
138
|
+
}
|
|
113
139
|
exports.configure = configure;
|
|
140
|
+
exports.getSeasonDetails = getSeasonDetails;
|
|
141
|
+
exports.getTvDetails = getTvDetails;
|
|
114
142
|
exports.parseToVTT = parseToVTT;
|
|
115
143
|
exports.searchSubtitles = searchSubtitles;
|
|
144
|
+
exports.searchTmdb = searchTmdb;
|
package/lib/main.d.ts
CHANGED
|
@@ -14,6 +14,42 @@ export declare type ConfigurationOptions = {
|
|
|
14
14
|
*/
|
|
15
15
|
export declare function configure(options: ConfigurationOptions): void;
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Details of a TV Episode.
|
|
19
|
+
*/
|
|
20
|
+
export declare type EpisodeDetails = {
|
|
21
|
+
air_date?: string;
|
|
22
|
+
episode_number: number;
|
|
23
|
+
id: number;
|
|
24
|
+
name: string;
|
|
25
|
+
overview?: string;
|
|
26
|
+
production_code?: string;
|
|
27
|
+
runtime?: number | null;
|
|
28
|
+
season_number: number;
|
|
29
|
+
show_id?: number;
|
|
30
|
+
still_path?: string | null;
|
|
31
|
+
vote_average?: number;
|
|
32
|
+
vote_count?: number;
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Fetches details for a specific season of a TV show from TMDB.
|
|
38
|
+
*
|
|
39
|
+
* @param {number} id - The TMDB ID of the TV show.
|
|
40
|
+
* @param {number} season - The season number.
|
|
41
|
+
* @returns {Promise<SeasonDetails>} A promise that resolves to the season details.
|
|
42
|
+
*/
|
|
43
|
+
export declare function getSeasonDetails(id: number, season: number): Promise<SeasonDetails>;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Fetches details for a TV show from TMDB.
|
|
47
|
+
*
|
|
48
|
+
* @param {number} id - The TMDB ID of the TV show.
|
|
49
|
+
* @returns {Promise<TvDetails>} A promise that resolves to the TV show details.
|
|
50
|
+
*/
|
|
51
|
+
export declare function getTvDetails(id: number): Promise<TvDetails>;
|
|
52
|
+
|
|
17
53
|
/**
|
|
18
54
|
* Parses subtitle content from a URL to VTT format.
|
|
19
55
|
*
|
|
@@ -43,6 +79,10 @@ export declare type QueryParams = {
|
|
|
43
79
|
hi?: boolean;
|
|
44
80
|
/** The source where the subtitle will be scraped from. */
|
|
45
81
|
source?: string;
|
|
82
|
+
/** Filter by specific release group or name. */
|
|
83
|
+
release?: string;
|
|
84
|
+
/** Filter by filename. */
|
|
85
|
+
filename?: string;
|
|
46
86
|
};
|
|
47
87
|
|
|
48
88
|
/**
|
|
@@ -79,6 +119,10 @@ export declare type SearchSubtitlesParams = (
|
|
|
79
119
|
hi?: boolean;
|
|
80
120
|
/** The source where the subtitle will be scraped. Accepts a single value or a list. */
|
|
81
121
|
source?: string | string[];
|
|
122
|
+
/** Filter by specific release group or name. */
|
|
123
|
+
release?: string | string[];
|
|
124
|
+
/** Filter by filename. */
|
|
125
|
+
filename?: string | string[];
|
|
82
126
|
/** Additional parameters that can be used for filtering or other purposes. */
|
|
83
127
|
[key: string]: any;
|
|
84
128
|
} & (
|
|
@@ -93,6 +137,38 @@ export declare type SearchSubtitlesParams = (
|
|
|
93
137
|
episode?: never;
|
|
94
138
|
});
|
|
95
139
|
|
|
140
|
+
/**
|
|
141
|
+
* Searches TMDB for movies or TV shows.
|
|
142
|
+
*
|
|
143
|
+
* @param {string} query - The search query.
|
|
144
|
+
* @param {string} [language] - Optional language code (default: en-US).
|
|
145
|
+
* @returns {Promise<TmdbSearchResult[]>} A promise that resolves to an array of TMDB search results.
|
|
146
|
+
*/
|
|
147
|
+
export declare function searchTmdb(query: string, language?: string): Promise<TmdbSearchResult[]>;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Details of a specific TV Season.
|
|
151
|
+
*/
|
|
152
|
+
export declare type SeasonDetails = {
|
|
153
|
+
episodes: EpisodeDetails[];
|
|
154
|
+
season_number: number;
|
|
155
|
+
id: string;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Summary of a TV season.
|
|
160
|
+
*/
|
|
161
|
+
export declare type SeasonSummary = {
|
|
162
|
+
air_date?: string;
|
|
163
|
+
episode_count?: number;
|
|
164
|
+
id: number;
|
|
165
|
+
name: string;
|
|
166
|
+
overview?: string;
|
|
167
|
+
poster_path?: string | null;
|
|
168
|
+
season_number: number;
|
|
169
|
+
vote_average?: number;
|
|
170
|
+
};
|
|
171
|
+
|
|
96
172
|
/**
|
|
97
173
|
* Data structure representing a single subtitle object.
|
|
98
174
|
*/
|
|
@@ -117,6 +193,42 @@ export declare type SubtitleData = {
|
|
|
117
193
|
language: string;
|
|
118
194
|
/** The subtitle's source (ex: subdl, subf2m, opensubtitles). */
|
|
119
195
|
source?: string | string[];
|
|
196
|
+
/** The release name of the subtitle. */
|
|
197
|
+
release?: string;
|
|
198
|
+
/** List of releases compatible with this subtitle. */
|
|
199
|
+
releases?: string[];
|
|
200
|
+
/** The original filename of the subtitle. */
|
|
201
|
+
fileName?: string;
|
|
202
|
+
/** The origin of the subtitle (e.g. DVD, WEB, BluRay). */
|
|
203
|
+
origin?: string;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Result object from a TMDB search.
|
|
208
|
+
*/
|
|
209
|
+
export declare type TmdbSearchResult = {
|
|
210
|
+
id: number;
|
|
211
|
+
media_type: string;
|
|
212
|
+
title?: string;
|
|
213
|
+
name?: string;
|
|
214
|
+
original_title?: string;
|
|
215
|
+
original_name?: string;
|
|
216
|
+
overview?: string;
|
|
217
|
+
release_date?: string;
|
|
218
|
+
first_air_date?: string;
|
|
219
|
+
poster_path?: string | null;
|
|
220
|
+
backdrop_path?: string | null;
|
|
221
|
+
popularity?: number;
|
|
222
|
+
vote_average?: number;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Details of a TV Show.
|
|
227
|
+
*/
|
|
228
|
+
export declare type TvDetails = {
|
|
229
|
+
seasons: SeasonSummary[];
|
|
230
|
+
name: string;
|
|
231
|
+
id: number;
|
|
120
232
|
};
|
|
121
233
|
|
|
122
234
|
export { }
|
package/lib/main.iife.js
CHANGED
|
@@ -110,9 +110,38 @@ ${textLines.join("\n")}
|
|
|
110
110
|
throw error;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
+
async function searchTmdb(query, language = "en-US") {
|
|
114
|
+
const url = new URL(`${config.baseUrl}/api/tmdb/search`);
|
|
115
|
+
url.searchParams.append("q", query);
|
|
116
|
+
url.searchParams.append("language", language);
|
|
117
|
+
const response = await fetch(url.toString());
|
|
118
|
+
if (!response.ok) {
|
|
119
|
+
throw new Error(`Failed to search TMDB: ${response.status}`);
|
|
120
|
+
}
|
|
121
|
+
return response.json();
|
|
122
|
+
}
|
|
123
|
+
async function getTvDetails(id) {
|
|
124
|
+
const url = `${config.baseUrl}/api/tmdb/tv/${id}`;
|
|
125
|
+
const response = await fetch(url);
|
|
126
|
+
if (!response.ok) {
|
|
127
|
+
throw new Error(`Failed to fetch TV details: ${response.status}`);
|
|
128
|
+
}
|
|
129
|
+
return response.json();
|
|
130
|
+
}
|
|
131
|
+
async function getSeasonDetails(id, season) {
|
|
132
|
+
const url = `${config.baseUrl}/api/tmdb/tv/${id}/${season}`;
|
|
133
|
+
const response = await fetch(url);
|
|
134
|
+
if (!response.ok) {
|
|
135
|
+
throw new Error(`Failed to fetch season details: ${response.status}`);
|
|
136
|
+
}
|
|
137
|
+
return response.json();
|
|
138
|
+
}
|
|
113
139
|
exports.configure = configure;
|
|
140
|
+
exports.getSeasonDetails = getSeasonDetails;
|
|
141
|
+
exports.getTvDetails = getTvDetails;
|
|
114
142
|
exports.parseToVTT = parseToVTT;
|
|
115
143
|
exports.searchSubtitles = searchSubtitles;
|
|
144
|
+
exports.searchTmdb = searchTmdb;
|
|
116
145
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
117
146
|
return exports;
|
|
118
147
|
}({});
|
package/lib/main.js
CHANGED
|
@@ -108,8 +108,37 @@ ${textLines.join("\n")}
|
|
|
108
108
|
throw error;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
+
async function searchTmdb(query, language = "en-US") {
|
|
112
|
+
const url = new URL(`${config.baseUrl}/api/tmdb/search`);
|
|
113
|
+
url.searchParams.append("q", query);
|
|
114
|
+
url.searchParams.append("language", language);
|
|
115
|
+
const response = await fetch(url.toString());
|
|
116
|
+
if (!response.ok) {
|
|
117
|
+
throw new Error(`Failed to search TMDB: ${response.status}`);
|
|
118
|
+
}
|
|
119
|
+
return response.json();
|
|
120
|
+
}
|
|
121
|
+
async function getTvDetails(id) {
|
|
122
|
+
const url = `${config.baseUrl}/api/tmdb/tv/${id}`;
|
|
123
|
+
const response = await fetch(url);
|
|
124
|
+
if (!response.ok) {
|
|
125
|
+
throw new Error(`Failed to fetch TV details: ${response.status}`);
|
|
126
|
+
}
|
|
127
|
+
return response.json();
|
|
128
|
+
}
|
|
129
|
+
async function getSeasonDetails(id, season) {
|
|
130
|
+
const url = `${config.baseUrl}/api/tmdb/tv/${id}/${season}`;
|
|
131
|
+
const response = await fetch(url);
|
|
132
|
+
if (!response.ok) {
|
|
133
|
+
throw new Error(`Failed to fetch season details: ${response.status}`);
|
|
134
|
+
}
|
|
135
|
+
return response.json();
|
|
136
|
+
}
|
|
111
137
|
export {
|
|
112
138
|
configure,
|
|
139
|
+
getSeasonDetails,
|
|
140
|
+
getTvDetails,
|
|
113
141
|
parseToVTT,
|
|
114
|
-
searchSubtitles
|
|
142
|
+
searchSubtitles,
|
|
143
|
+
searchTmdb
|
|
115
144
|
};
|
package/lib/main.umd.cjs
CHANGED
|
@@ -112,8 +112,37 @@ ${textLines.join("\n")}
|
|
|
112
112
|
throw error;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
+
async function searchTmdb(query, language = "en-US") {
|
|
116
|
+
const url = new URL(`${config.baseUrl}/api/tmdb/search`);
|
|
117
|
+
url.searchParams.append("q", query);
|
|
118
|
+
url.searchParams.append("language", language);
|
|
119
|
+
const response = await fetch(url.toString());
|
|
120
|
+
if (!response.ok) {
|
|
121
|
+
throw new Error(`Failed to search TMDB: ${response.status}`);
|
|
122
|
+
}
|
|
123
|
+
return response.json();
|
|
124
|
+
}
|
|
125
|
+
async function getTvDetails(id) {
|
|
126
|
+
const url = `${config.baseUrl}/api/tmdb/tv/${id}`;
|
|
127
|
+
const response = await fetch(url);
|
|
128
|
+
if (!response.ok) {
|
|
129
|
+
throw new Error(`Failed to fetch TV details: ${response.status}`);
|
|
130
|
+
}
|
|
131
|
+
return response.json();
|
|
132
|
+
}
|
|
133
|
+
async function getSeasonDetails(id, season) {
|
|
134
|
+
const url = `${config.baseUrl}/api/tmdb/tv/${id}/${season}`;
|
|
135
|
+
const response = await fetch(url);
|
|
136
|
+
if (!response.ok) {
|
|
137
|
+
throw new Error(`Failed to fetch season details: ${response.status}`);
|
|
138
|
+
}
|
|
139
|
+
return response.json();
|
|
140
|
+
}
|
|
115
141
|
exports2.configure = configure;
|
|
142
|
+
exports2.getSeasonDetails = getSeasonDetails;
|
|
143
|
+
exports2.getTvDetails = getTvDetails;
|
|
116
144
|
exports2.parseToVTT = parseToVTT;
|
|
117
145
|
exports2.searchSubtitles = searchSubtitles;
|
|
146
|
+
exports2.searchTmdb = searchTmdb;
|
|
118
147
|
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
119
148
|
});
|
package/package.json
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "wyzie-lib",
|
|
3
|
-
"version": "2.2.
|
|
4
|
-
"icon": "https://i.postimg.cc/L5ppKYC5/cclogo.png",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"wyzie-subs",
|
|
8
|
-
"wyzie subs",
|
|
9
|
-
"wyzie api",
|
|
10
|
-
"subtitle",
|
|
11
|
-
"search",
|
|
12
|
-
"library",
|
|
13
|
-
"typescript",
|
|
14
|
-
"vite",
|
|
15
|
-
"fast",
|
|
16
|
-
"scraper",
|
|
17
|
-
"subtitle scraper",
|
|
18
|
-
"open subtitles"
|
|
19
|
-
],
|
|
20
|
-
"type": "module",
|
|
21
|
-
"main": "./lib/main.js",
|
|
22
|
-
"types": "./lib/main.d.ts",
|
|
23
|
-
"files": [
|
|
24
|
-
"./lib"
|
|
25
|
-
],
|
|
26
|
-
"exports": {
|
|
27
|
-
".": {
|
|
28
|
-
"import": {
|
|
29
|
-
"types": "./lib/main.d.ts",
|
|
30
|
-
"default": "./lib/main.js"
|
|
31
|
-
},
|
|
32
|
-
"require": {
|
|
33
|
-
"types": "./lib/main.d.ts",
|
|
34
|
-
"default": "./lib/main.cjs"
|
|
35
|
-
},
|
|
36
|
-
"umd": {
|
|
37
|
-
"types": "./lib/main.d.ts",
|
|
38
|
-
"default": "./lib/main.umd.cjs"
|
|
39
|
-
},
|
|
40
|
-
"es": {
|
|
41
|
-
"types": "./lib/main.d.ts",
|
|
42
|
-
"default": "./lib/main.js"
|
|
43
|
-
},
|
|
44
|
-
"cjs": {
|
|
45
|
-
"types": "./lib/main.d.ts",
|
|
46
|
-
"default": "./lib/main.cjs"
|
|
47
|
-
},
|
|
48
|
-
"iife": {
|
|
49
|
-
"types": "./lib/main.d.ts",
|
|
50
|
-
"default": "./lib/main.iife.js"
|
|
51
|
-
},
|
|
52
|
-
"amd": {
|
|
53
|
-
"types": "./lib/main.d.ts",
|
|
54
|
-
"default": "./lib/main.amd.js"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"repository": {
|
|
59
|
-
"type": "git",
|
|
60
|
-
"url": "git+https://github.com/itzcozi/wyzie-lib.git"
|
|
61
|
-
},
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
},
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "wyzie-lib",
|
|
3
|
+
"version": "2.2.8",
|
|
4
|
+
"icon": "https://i.postimg.cc/L5ppKYC5/cclogo.png",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"wyzie-subs",
|
|
8
|
+
"wyzie subs",
|
|
9
|
+
"wyzie api",
|
|
10
|
+
"subtitle",
|
|
11
|
+
"search",
|
|
12
|
+
"library",
|
|
13
|
+
"typescript",
|
|
14
|
+
"vite",
|
|
15
|
+
"fast",
|
|
16
|
+
"scraper",
|
|
17
|
+
"subtitle scraper",
|
|
18
|
+
"open subtitles"
|
|
19
|
+
],
|
|
20
|
+
"type": "module",
|
|
21
|
+
"main": "./lib/main.js",
|
|
22
|
+
"types": "./lib/main.d.ts",
|
|
23
|
+
"files": [
|
|
24
|
+
"./lib"
|
|
25
|
+
],
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"import": {
|
|
29
|
+
"types": "./lib/main.d.ts",
|
|
30
|
+
"default": "./lib/main.js"
|
|
31
|
+
},
|
|
32
|
+
"require": {
|
|
33
|
+
"types": "./lib/main.d.ts",
|
|
34
|
+
"default": "./lib/main.cjs"
|
|
35
|
+
},
|
|
36
|
+
"umd": {
|
|
37
|
+
"types": "./lib/main.d.ts",
|
|
38
|
+
"default": "./lib/main.umd.cjs"
|
|
39
|
+
},
|
|
40
|
+
"es": {
|
|
41
|
+
"types": "./lib/main.d.ts",
|
|
42
|
+
"default": "./lib/main.js"
|
|
43
|
+
},
|
|
44
|
+
"cjs": {
|
|
45
|
+
"types": "./lib/main.d.ts",
|
|
46
|
+
"default": "./lib/main.cjs"
|
|
47
|
+
},
|
|
48
|
+
"iife": {
|
|
49
|
+
"types": "./lib/main.d.ts",
|
|
50
|
+
"default": "./lib/main.iife.js"
|
|
51
|
+
},
|
|
52
|
+
"amd": {
|
|
53
|
+
"types": "./lib/main.d.ts",
|
|
54
|
+
"default": "./lib/main.amd.js"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"repository": {
|
|
59
|
+
"type": "git",
|
|
60
|
+
"url": "git+https://github.com/itzcozi/wyzie-lib.git"
|
|
61
|
+
},
|
|
62
|
+
"scripts": {
|
|
63
|
+
"dev": "vite",
|
|
64
|
+
"build": "vite build && tsc",
|
|
65
|
+
"test": "npx vitest",
|
|
66
|
+
"format": "prettier --log-level warn --write \"{src/**/*.{ts},*.{ts,js,html,css,json,md,xml}}\"",
|
|
67
|
+
"preview": "vite preview"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"prettier": "^3.7.4",
|
|
71
|
+
"typescript": "^5.9.3",
|
|
72
|
+
"vite": "^4.5.14",
|
|
73
|
+
"vite-plugin-dts": "^4.5.4",
|
|
74
|
+
"vitest": "^2.1.9"
|
|
75
|
+
}
|
|
76
|
+
}
|