wyzie-lib 1.0.2 → 1.0.4

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.
Files changed (3) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +16 -2
  3. package/package.json +25 -7
package/LICENSE ADDED
@@ -0,0 +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
+
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,4 +1,9 @@
1
- # Wyzie Lib
1
+ <p align="center">
2
+ <a href="https://www.npmjs.com/package/wyzie-lib">
3
+ <img src="https://i.postimg.cc/L5ppKYC5/cclogo.png" height="120">
4
+ <h1 align="center">Wyzie Lib</h1>
5
+ </a>
6
+ </p>
2
7
  Wyzie Lib is a package made for easily implementing [Wyzie Subs](https://subs.wyzie.ru) into your project without all the fuss.
3
8
 
4
9
  ## Features
@@ -18,11 +23,20 @@ pnpm install wyzie-lib
18
23
 
19
24
  ## Usage
20
25
  ```ts
21
- import { type SubtitleData, searchSubtitles } from 'wyzie-lib';
26
+ import { type SubtitleData, searchSubtitles } from "wyzie-lib";
22
27
 
23
28
  const data: SubtitleData[] = await searchSubtitles({ tmdb_id: 286217, language: "en" });
24
29
  console.log(data[0].id);
25
30
  ```
31
+ or
32
+ ```ts
33
+ import wyzieLib from "wyzie-lib";
34
+
35
+ const { searchSubtitles } = wyzieLib;
36
+ const data = await searchSubtitles({ tmdb_id: 286217, language: "en" });
37
+ console.log(data[0].id);
38
+ ```
39
+
26
40
 
27
41
  <sup>
28
42
  Created by <a href="https://github.com/itzcozi" alt="github" title="itzCozi on Github">BadDeveloper</a> with 💙
package/package.json CHANGED
@@ -1,12 +1,31 @@
1
1
  {
2
2
  "name": "wyzie-lib",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
+ "keywords": [
5
+ "wyzie-subs",
6
+ "wyzie subs",
7
+ "subtitle",
8
+ "search",
9
+ "library",
10
+ "typescript",
11
+ "vite",
12
+ "fast",
13
+ "scraper",
14
+ "subtitle scraper"
15
+ ],
4
16
  "main": "dist/wyzie-lib.umd.js",
5
17
  "module": "dist/wyzie-lib.es.js",
6
- "types": "dist/index.d.ts",
7
18
  "files": [
8
- "dist"
19
+ "dist",
20
+ "dist/types"
9
21
  ],
22
+ "exports": {
23
+ ".": {
24
+ "import": "./dist/wyzie-lib.es.js",
25
+ "require": "./dist/wyzie-lib.umd.js"
26
+ },
27
+ "./*": "./dist/*"
28
+ },
10
29
  "devDependencies": {
11
30
  "@eslint/js": "^9.10.0",
12
31
  "eslint": "^9.10.0",
@@ -14,13 +33,12 @@
14
33
  "eslint-plugin-prettier": "^5.2.1",
15
34
  "globals": "^15.9.0",
16
35
  "prettier": "^3.3.3",
17
- "typescript": "^5.5.3",
18
- "typescript-eslint": "^8.5.0",
19
- "vite": "^5.4.1"
36
+ "typescript": "^5.6.2",
37
+ "vite": "^4.0.0"
20
38
  },
21
39
  "scripts": {
22
40
  "dev": "vite",
23
- "build": "vite build",
41
+ "build": "vite build && tsc",
24
42
  "lint": "eslint src",
25
43
  "lint:fix": "eslint --fix src",
26
44
  "format": "prettier --log-level warn --write \"src/**/*.{tsx,ts}\"",