multporn-api-sdk 0.1.1 → 0.1.3

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/package.json CHANGED
@@ -1,38 +1,63 @@
1
1
  {
2
2
  "name": "multporn-api-sdk",
3
- "version": "0.1.1",
4
- "description": "Unofficial Multporn HTML scraping SDK Node. Typed, with retries/timeouts.",
3
+ "version": "0.1.3",
4
+ "description": "Unofficial Multporn HTML scraping SDK for Node/Web and React Native (Expo). Typed, with retries/timeouts.",
5
5
  "license": "MIT",
6
6
  "author": "Maks1mio",
7
7
  "type": "module",
8
- "main": "./dist/index.cjs",
9
- "module": "./dist/index.js",
10
- "types": "./dist/index.d.ts",
11
8
  "publishConfig": { "access": "public" },
9
+
10
+ "main": "./dist/node/index.cjs",
11
+ "module": "./dist/node/index.js",
12
+ "types": "./dist/types/index.d.ts",
13
+
12
14
  "exports": {
13
15
  ".": {
14
- "types": "./dist/index.d.ts",
15
- "import": "./dist/index.js",
16
- "require": "./dist/index.cjs"
16
+ "react-native": {
17
+ "types": "./dist/types/index.d.ts",
18
+ "import": "./dist/rn/index.js"
19
+ },
20
+ "browser": {
21
+ "types": "./dist/types/index.d.ts",
22
+ "import": "./dist/browser/index.js"
23
+ },
24
+ "import": {
25
+ "types": "./dist/types/index.d.ts",
26
+ "default": "./dist/node/index.js"
27
+ },
28
+ "require": {
29
+ "types": "./dist/types/index.d.ts",
30
+ "default": "./dist/node/index.cjs"
31
+ },
32
+ "default": "./dist/node/index.js"
17
33
  },
18
34
  "./package.json": "./package.json"
19
35
  },
36
+
20
37
  "sideEffects": false,
38
+
21
39
  "engines": {
22
40
  "node": ">=18"
23
41
  },
42
+
24
43
  "scripts": {
25
- "start": "node examples/server/index.mjs",
26
- "build": "tsup",
44
+ "start": "node examples/dev-server.mjs",
45
+ "clean": "rimraf dist",
46
+ "build": "tsup --config tsup.config.ts",
47
+ "pack": "npm pack",
48
+ "yarn:publish": "yarn publish --access public",
49
+ "npm:publish": "npm publish --access public",
27
50
  "prepare": "npm run build",
28
51
  "test": "vitest run",
29
52
  "dev:test": "vitest",
30
53
  "lint": "eslint . --ext .ts",
31
54
  "format": "prettier --write ."
32
55
  },
56
+
33
57
  "files": [
34
58
  "dist"
35
59
  ],
60
+
36
61
  "repository": {
37
62
  "type": "git",
38
63
  "url": "git+https://github.com/Maks1mio/multporn-api-sdk.git"
@@ -41,13 +66,14 @@
41
66
  "url": "https://github.com/Maks1mio/multporn-api-sdk/issues"
42
67
  },
43
68
  "homepage": "https://github.com/Maks1mio/multporn-api-sdk#readme",
69
+
44
70
  "dependencies": {
45
- "cheerio": "^1.0.0-rc.12",
71
+ "advanced-html-parser": "^2.2.2",
72
+ "cheerio": "^1.0.0",
46
73
  "fast-xml-parser": "^5.3.0",
47
- "morgan": "^1.10.1",
48
- "swagger-ui-express": "^5.0.1",
49
74
  "zod": "^3.23.8"
50
75
  },
76
+
51
77
  "devDependencies": {
52
78
  "@types/node": "^22.7.5",
53
79
  "compression": "^1.8.1",
@@ -55,7 +81,10 @@
55
81
  "eslint": "^9.13.0",
56
82
  "eslint-config-prettier": "^9.1.0",
57
83
  "express": "^5.1.0",
84
+ "morgan": "^1.10.1",
58
85
  "prettier": "^3.3.3",
86
+ "rimraf": "^6.0.1",
87
+ "swagger-ui-express": "^5.0.1",
59
88
  "tsup": "^8.2.4",
60
89
  "tsx": "^4.20.6",
61
90
  "typescript": "^5.6.3",