wyzie-lib 2.2.0 → 2.2.2

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/README.md CHANGED
@@ -6,4 +6,4 @@
6
6
  </p>
7
7
 
8
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 [here](https://docs.wyzie.ru/subs/usage/package).
9
+ project without all the fuss. [Read the docs](https://docs.wyzie.ru/subs/usage/package).
package/lib/main.amd.js CHANGED
@@ -15,9 +15,9 @@ define(["exports"], function(exports) {
15
15
  id: String(tmdb_id || imdb_id),
16
16
  season,
17
17
  episode,
18
- encoding,
19
- language,
20
- format,
18
+ encoding: Array.isArray(encoding) ? encoding.join(",") : encoding,
19
+ language: Array.isArray(language) ? language.join(",") : language,
20
+ format: Array.isArray(format) ? format.join(",") : format,
21
21
  hi
22
22
  };
23
23
  Object.entries(queryParams).forEach(([key, value]) => {
package/lib/main.cjs CHANGED
@@ -15,9 +15,9 @@ async function constructUrl({
15
15
  id: String(tmdb_id || imdb_id),
16
16
  season,
17
17
  episode,
18
- encoding,
19
- language,
20
- format,
18
+ encoding: Array.isArray(encoding) ? encoding.join(",") : encoding,
19
+ language: Array.isArray(language) ? language.join(",") : language,
20
+ format: Array.isArray(format) ? format.join(",") : format,
21
21
  hi
22
22
  };
23
23
  Object.entries(queryParams).forEach(([key, value]) => {
package/lib/main.d.ts CHANGED
@@ -51,12 +51,12 @@ export declare type SearchSubtitlesParams = (
51
51
  imdb_id: string;
52
52
  tmdb_id?: never;
53
53
  }) & {
54
- /** ISO 3166 code of the subtitle desired. */
55
- language?: string;
56
- /** The subtitle file's character encoding. */
57
- encoding?: string;
58
- /** Which subtitle file format you want. */
59
- format?: string;
54
+ /** ISO 3166 code or codes of the subtitle desired. */
55
+ language?: string | string[];
56
+ /** The subtitle file's character encoding or encodings. */
57
+ encoding?: string | string[];
58
+ /** Which subtitle file format(s) you want. */
59
+ format?: string | string[];
60
60
  /** Determines if you get hearing impaired subtitles. */
61
61
  hi?: boolean;
62
62
  } & (
package/lib/main.iife.js CHANGED
@@ -15,9 +15,9 @@ var main = function(exports) {
15
15
  id: String(tmdb_id || imdb_id),
16
16
  season,
17
17
  episode,
18
- encoding,
19
- language,
20
- format,
18
+ encoding: Array.isArray(encoding) ? encoding.join(",") : encoding,
19
+ language: Array.isArray(language) ? language.join(",") : language,
20
+ format: Array.isArray(format) ? format.join(",") : format,
21
21
  hi
22
22
  };
23
23
  Object.entries(queryParams).forEach(([key, value]) => {
package/lib/main.js CHANGED
@@ -13,9 +13,9 @@ async function constructUrl({
13
13
  id: String(tmdb_id || imdb_id),
14
14
  season,
15
15
  episode,
16
- encoding,
17
- language,
18
- format,
16
+ encoding: Array.isArray(encoding) ? encoding.join(",") : encoding,
17
+ language: Array.isArray(language) ? language.join(",") : language,
18
+ format: Array.isArray(format) ? format.join(",") : format,
19
19
  hi
20
20
  };
21
21
  Object.entries(queryParams).forEach(([key, value]) => {
package/lib/main.umd.cjs CHANGED
@@ -17,9 +17,9 @@
17
17
  id: String(tmdb_id || imdb_id),
18
18
  season,
19
19
  episode,
20
- encoding,
21
- language,
22
- format,
20
+ encoding: Array.isArray(encoding) ? encoding.join(",") : encoding,
21
+ language: Array.isArray(language) ? language.join(",") : language,
22
+ format: Array.isArray(format) ? format.join(",") : format,
23
23
  hi
24
24
  };
25
25
  Object.entries(queryParams).forEach(([key, value]) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wyzie-lib",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "icon": "https://i.postimg.cc/L5ppKYC5/cclogo.png",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -61,12 +61,13 @@
61
61
  },
62
62
  "devDependencies": {
63
63
  "prettier": "^3.5.3",
64
- "typescript": "^5.8.2",
65
- "vite": "^4.5.9",
64
+ "typescript": "^5.8.3",
65
+ "vite": "^4.5.14",
66
66
  "vite-plugin-dts": "^4.5.3",
67
67
  "vitest": "^2.1.9"
68
68
  },
69
69
  "scripts": {
70
+ "dev": "vite",
70
71
  "build": "vite build && tsc",
71
72
  "test": "npx vitest",
72
73
  "format": "prettier --log-level warn --write \"{src/**/*.{ts},*.{ts,js,html,css,json,md,xml}}\"",