discogs-marketplace-api-nodejs 1.9.2 → 1.10.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.
- package/README.MD +4 -52
- package/dist/interfaces/input.interface.d.ts +0 -7
- package/dist/marketplace.d.ts +1 -11
- package/dist/marketplace.js +70 -127
- package/package.json +25 -26
package/README.MD
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
# Discogs Marketplace API NodeJS
|
|
1
|
+
# Discogs Marketplace API NodeJS
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/discogs-marketplace-api-nodejs)  [](https://github.com/KirianCaumes/Discogs-Marketplace-API-NodeJS/blob/master/LICENSE) [](https://www.paypal.me/KirianCaumes)
|
|
2
4
|
|
|
3
5
|
Another (better ?) NodeJs library to fetch data from Discogs marketplace. 💿
|
|
4
6
|
|
|
5
7
|
## 📂 Installation (with npm)
|
|
6
8
|
|
|
7
|
-
This library works with two different `strategies` to scrape data: with a classic HTTP fetch request (Axios) or by creating a new instance of a browser (Playwright). Take a look at the "[About strategies](#-about-strategies)" chapter to learn more.
|
|
8
|
-
|
|
9
9
|
Run the following command in your project:
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
npm
|
|
13
|
-
|
|
14
|
-
# Or to avoid installing Playwright
|
|
15
|
-
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm install discogs-marketplace-api-nodejs
|
|
12
|
+
npm i discogs-marketplace-api-nodejs
|
|
16
13
|
```
|
|
17
14
|
|
|
18
15
|
## ▶️ Quick Start
|
|
@@ -107,31 +104,6 @@ const result = await DiscogsMarketplace.search({
|
|
|
107
104
|
})
|
|
108
105
|
```
|
|
109
106
|
|
|
110
|
-
## 🤠 About strategies
|
|
111
|
-
|
|
112
|
-
> Which `strategy` should I choose?
|
|
113
|
-
|
|
114
|
-
This project provides two ways to scrape data:
|
|
115
|
-
|
|
116
|
-
- `fetch` (default): Get the result with a classic HTTP fetch request (Axios).
|
|
117
|
-
- For the moment, this is the simplest and fastest solution to choose.
|
|
118
|
-
- `browser`: Get the result by creating a new instance of a browser (Playwright) to scrape the page.
|
|
119
|
-
- This can help bypass Cloudflare (or other) protection for some cases.
|
|
120
|
-
- Slightly slower than `fetch` (see [benchmarks](https://github.com/KirianCaumes/Discogs-Marketplace-API-NodeJS/releases/tag/v1.8.1))
|
|
121
|
-
|
|
122
|
-
**Both strategies will give you the exact same result.**
|
|
123
|
-
|
|
124
|
-
I choose to maintain this two solutions, because over time Discogs is changing: one day they activated a protection that prevented a `fetch` solution from working, so I implemented to `browser` solution. But a few days later, they disabled that protection and the original solution became the best again.
|
|
125
|
-
|
|
126
|
-
With both strategies, you are free to choose the one that suits you!
|
|
127
|
-
|
|
128
|
-
```js
|
|
129
|
-
const result = await DiscogsMarketplace.search({
|
|
130
|
-
// ...
|
|
131
|
-
strategy: 'fetch' // or 'browser'
|
|
132
|
-
})
|
|
133
|
-
```
|
|
134
|
-
|
|
135
107
|
## 📃 Data format
|
|
136
108
|
|
|
137
109
|
You can provide parameters to `DiscogsMarketplace.search` function according to this interface:
|
|
@@ -228,12 +200,6 @@ interface InputInterface {
|
|
|
228
200
|
* Default to `en`.
|
|
229
201
|
*/
|
|
230
202
|
lang?: LangType
|
|
231
|
-
/**
|
|
232
|
-
* Strategy to scrape data:
|
|
233
|
-
* - `fetch` (default): Get the result with a classic HTTP fetch request (Axios).
|
|
234
|
-
* - `browser`: Get the result by creating a new instance of a browser (Playwright) to scrape the page. This can help bypass Cloudflare (or other) protection for some cases.
|
|
235
|
-
*/
|
|
236
|
-
strategy?: 'fetch' | 'browser'
|
|
237
203
|
}
|
|
238
204
|
```
|
|
239
205
|
|
|
@@ -328,20 +294,6 @@ You can open a pull request with your new additions.
|
|
|
328
294
|
|
|
329
295
|
## 🐛 Known issues/problems
|
|
330
296
|
|
|
331
|
-
### Linkedom
|
|
332
|
-
|
|
333
|
-
If you are using this library on a Typescript project, you might encounter issues with `linkedom`.
|
|
334
|
-
|
|
335
|
-
To fix it, use this in command line: `--skipLibCheck` or add that in you `tsconfig.json`:
|
|
336
|
-
|
|
337
|
-
```json
|
|
338
|
-
{
|
|
339
|
-
"compilerOptions": {
|
|
340
|
-
"skipLibCheck": true
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
```
|
|
344
|
-
|
|
345
297
|
### Playwright
|
|
346
298
|
|
|
347
299
|
Install system dependencies:
|
|
@@ -97,12 +97,5 @@ interface InputInterface {
|
|
|
97
97
|
* Default to `en`.
|
|
98
98
|
*/
|
|
99
99
|
lang?: LangType;
|
|
100
|
-
/**
|
|
101
|
-
* Strategy to scrape data:
|
|
102
|
-
* - `fetch` (default): Get the result with a classic HTTP fetch request (Axios).
|
|
103
|
-
* - `browser`: Get the result by creating a new instance of a browser (Playwright) to scrape the page.
|
|
104
|
-
* This can help bypass Cloudflare (or other) protection for some cases.
|
|
105
|
-
*/
|
|
106
|
-
strategy?: 'fetch' | 'browser';
|
|
107
100
|
}
|
|
108
101
|
export default InputInterface;
|
package/dist/marketplace.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export default abstract class Marketplace {
|
|
|
7
7
|
* Search elements on discogs
|
|
8
8
|
* @returns Items found
|
|
9
9
|
*/
|
|
10
|
-
static search({ searchType, searchValue, currency, genre, style, format, formatDescription, condition, year, years, isAudioSample, isMakeAnOfferOnly, from, seller, sort, limit, page, lang,
|
|
10
|
+
static search({ searchType, searchValue, currency, genre, style, format, formatDescription, condition, year, years, isAudioSample, isMakeAnOfferOnly, from, seller, sort, limit, page, lang, }: InputInterface): Promise<OutputSuccessInterface>;
|
|
11
11
|
/**
|
|
12
12
|
* Generate URL to be parsed
|
|
13
13
|
* @returns Url
|
|
@@ -19,16 +19,6 @@ export default abstract class Marketplace {
|
|
|
19
19
|
* @returns Url
|
|
20
20
|
*/
|
|
21
21
|
private static serializeParams;
|
|
22
|
-
/**
|
|
23
|
-
* Get result with a classic HTTP fetch request (Axios)
|
|
24
|
-
* @param url Url
|
|
25
|
-
*/
|
|
26
|
-
private static getResultWithFetch;
|
|
27
|
-
/**
|
|
28
|
-
* Get result by creating a new instance of a navigator (Playwright) to crawl the page
|
|
29
|
-
* @param url Url
|
|
30
|
-
*/
|
|
31
|
-
private static getResultWithBrowser;
|
|
32
22
|
/**
|
|
33
23
|
* Parse HTML to clean result
|
|
34
24
|
* @returns Items found
|
package/dist/marketplace.js
CHANGED
|
@@ -5,8 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const user_agents_1 = __importDefault(require("user-agents"));
|
|
7
7
|
const playwright_chromium_1 = require("playwright-chromium");
|
|
8
|
-
const linkedom_1 = require("linkedom");
|
|
9
|
-
const axios_1 = __importDefault(require("axios"));
|
|
10
8
|
const data_1 = require("./data/index.js");
|
|
11
9
|
/**
|
|
12
10
|
* Discogs Marketplace
|
|
@@ -16,7 +14,7 @@ class Marketplace {
|
|
|
16
14
|
* Search elements on discogs
|
|
17
15
|
* @returns Items found
|
|
18
16
|
*/
|
|
19
|
-
static async search({ searchType = 'q', searchValue = undefined, currency = undefined, genre = undefined, style = [], format = [], formatDescription = [], condition = [], year = undefined, years = undefined, isAudioSample = false, isMakeAnOfferOnly = false, from = undefined, seller = undefined, sort = 'Listed Newest', limit = 25, page = 1, lang = 'en',
|
|
17
|
+
static async search({ searchType = 'q', searchValue = undefined, currency = undefined, genre = undefined, style = [], format = [], formatDescription = [], condition = [], year = undefined, years = undefined, isAudioSample = false, isMakeAnOfferOnly = false, from = undefined, seller = undefined, sort = 'Listed Newest', limit = 25, page = 1, lang = 'en', }) {
|
|
20
18
|
try {
|
|
21
19
|
/** Url to call */
|
|
22
20
|
const url = [
|
|
@@ -40,23 +38,72 @@ class Marketplace {
|
|
|
40
38
|
sort,
|
|
41
39
|
}),
|
|
42
40
|
].join('?');
|
|
43
|
-
/**
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
41
|
+
/** Init browser */
|
|
42
|
+
const browser = await playwright_chromium_1.chromium.launch({
|
|
43
|
+
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-gl-drawing-for-tests'],
|
|
44
|
+
});
|
|
45
|
+
/** Init context */
|
|
46
|
+
const browserContext = await browser.newContext({
|
|
47
|
+
userAgent: new user_agents_1.default({ platform: 'Win32' }).toString(),
|
|
48
|
+
extraHTTPHeaders: {
|
|
49
|
+
'X-PJAX': 'true',
|
|
50
|
+
},
|
|
51
|
+
javaScriptEnabled: false,
|
|
52
|
+
});
|
|
53
|
+
/** Init page */
|
|
54
|
+
const browserPage = await browserContext.newPage();
|
|
55
|
+
/** Block useless resources */
|
|
56
|
+
await browserPage.route('**/*', route => [
|
|
57
|
+
'stylesheet',
|
|
58
|
+
'image',
|
|
59
|
+
'media',
|
|
60
|
+
'font',
|
|
61
|
+
'script',
|
|
62
|
+
'texttrack',
|
|
63
|
+
'xhr',
|
|
64
|
+
'fetch',
|
|
65
|
+
'eventsource',
|
|
66
|
+
'websocket',
|
|
67
|
+
'manifest',
|
|
68
|
+
'other',
|
|
69
|
+
].includes(route.request().resourceType())
|
|
70
|
+
? route.abort()
|
|
71
|
+
: route.continue());
|
|
72
|
+
/** Init page */
|
|
73
|
+
const response = await browserPage.goto(url, { waitUntil: 'domcontentloaded' });
|
|
74
|
+
/** Status code from the page */
|
|
75
|
+
const status = (response === null || response === void 0 ? void 0 : response.status()) || 500;
|
|
76
|
+
// See current issue: https://github.com/evanw/esbuild/issues/2605
|
|
77
|
+
// eslint-disable-next-line no-underscore-dangle, @typescript-eslint/no-explicit-any, no-return-assign
|
|
78
|
+
await browserPage.evaluate(() => { var _a; var _b; return ((_a = (_b = window).__name) !== null && _a !== void 0 ? _a : (_b.__name = (func) => func)); });
|
|
79
|
+
/** If error, reject */
|
|
80
|
+
if (status >= 400) {
|
|
81
|
+
// eslint-disable-next-line @typescript-eslint/no-throw-literal
|
|
82
|
+
throw {
|
|
83
|
+
message: (await browserPage.evaluate(() => { var _a, _b; return (_b = (_a = document === null || document === void 0 ? void 0 : document.querySelector('h1 + p')) === null || _a === void 0 ? void 0 : _a.innerHTML) === null || _b === void 0 ? void 0 : _b.trim(); })) || 'An error occurred',
|
|
84
|
+
code: status,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/** Url generated by browser */
|
|
88
|
+
const urlGenerated = browserPage.url();
|
|
89
|
+
/**
|
|
90
|
+
* Result from scraping.
|
|
91
|
+
* Scraping inside Playwright is faster (x2) compare to exporting HTML outside and parsing it with another library.
|
|
92
|
+
*/
|
|
93
|
+
const result = await browserPage.evaluate(this.getResult, {
|
|
94
|
+
input: {
|
|
95
|
+
page,
|
|
96
|
+
limit,
|
|
97
|
+
searchValue,
|
|
98
|
+
searchType,
|
|
99
|
+
},
|
|
100
|
+
urlGenerated,
|
|
101
|
+
CURRENCIES: data_1.CURRENCIES,
|
|
102
|
+
COUNTRIES: data_1.COUNTRIES,
|
|
103
|
+
});
|
|
104
|
+
/** Close context/browser */
|
|
105
|
+
await browserContext.close();
|
|
106
|
+
await browser.close();
|
|
60
107
|
return result;
|
|
61
108
|
}
|
|
62
109
|
catch (error) {
|
|
@@ -120,115 +167,11 @@ class Marketplace {
|
|
|
120
167
|
}
|
|
121
168
|
return param.join('&');
|
|
122
169
|
}
|
|
123
|
-
/**
|
|
124
|
-
* Get result with a classic HTTP fetch request (Axios)
|
|
125
|
-
* @param url Url
|
|
126
|
-
*/
|
|
127
|
-
static async getResultWithFetch({ input: { page, limit, searchValue, searchType }, dependencies: { url }, }) {
|
|
128
|
-
var _a, _b, _c;
|
|
129
|
-
const { data: bodyHTML, status } = await axios_1.default.get(url, {
|
|
130
|
-
headers: {
|
|
131
|
-
// cspell: disable-next-line
|
|
132
|
-
'X-PJAX': 'true',
|
|
133
|
-
'User-Agent': new user_agents_1.default({ platform: 'Win32' }).toString(),
|
|
134
|
-
},
|
|
135
|
-
});
|
|
136
|
-
/** Generate document */
|
|
137
|
-
const { document } = (0, linkedom_1.parseHTML)(bodyHTML);
|
|
138
|
-
/** If error, reject */
|
|
139
|
-
if (status >= 400) {
|
|
140
|
-
// eslint-disable-next-line @typescript-eslint/no-throw-literal
|
|
141
|
-
throw {
|
|
142
|
-
message: (_c = (_b = (_a = document === null || document === void 0 ? void 0 : document.querySelector('h1 + p')) === null || _a === void 0 ? void 0 : _a.innerHTML) === null || _b === void 0 ? void 0 : _b.trim()) !== null && _c !== void 0 ? _c : 'An error occurred',
|
|
143
|
-
code: status,
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
const result = this.getResult({
|
|
147
|
-
input: { page, limit, searchValue, searchType },
|
|
148
|
-
dependencies: { urlGenerated: url, CURRENCIES: data_1.CURRENCIES, COUNTRIES: data_1.COUNTRIES },
|
|
149
|
-
document,
|
|
150
|
-
});
|
|
151
|
-
return result;
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Get result by creating a new instance of a navigator (Playwright) to crawl the page
|
|
155
|
-
* @param url Url
|
|
156
|
-
*/
|
|
157
|
-
static async getResultWithBrowser({ input: { page, limit, searchValue, searchType }, dependencies: { url }, }) {
|
|
158
|
-
var _a;
|
|
159
|
-
/** Init browser */
|
|
160
|
-
const browser = await playwright_chromium_1.chromium.launch({
|
|
161
|
-
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-gl-drawing-for-tests'],
|
|
162
|
-
});
|
|
163
|
-
/** Init context */
|
|
164
|
-
const browserContext = await browser.newContext({
|
|
165
|
-
userAgent: new user_agents_1.default({ platform: 'Win32' }).toString(),
|
|
166
|
-
extraHTTPHeaders: {
|
|
167
|
-
'X-PJAX': 'true',
|
|
168
|
-
},
|
|
169
|
-
javaScriptEnabled: false,
|
|
170
|
-
});
|
|
171
|
-
/** Init page */
|
|
172
|
-
const browserPage = await browserContext.newPage();
|
|
173
|
-
/** Block useless resources */
|
|
174
|
-
await browserPage.route('**/*', route => [
|
|
175
|
-
'stylesheet',
|
|
176
|
-
'image',
|
|
177
|
-
'media',
|
|
178
|
-
'font',
|
|
179
|
-
'script',
|
|
180
|
-
'texttrack',
|
|
181
|
-
'xhr',
|
|
182
|
-
'fetch',
|
|
183
|
-
'eventsource',
|
|
184
|
-
'websocket',
|
|
185
|
-
'manifest',
|
|
186
|
-
'other',
|
|
187
|
-
].includes(route.request().resourceType())
|
|
188
|
-
? route.abort()
|
|
189
|
-
: route.continue());
|
|
190
|
-
/** Init page */
|
|
191
|
-
const response = await browserPage.goto(url, { waitUntil: 'domcontentloaded' });
|
|
192
|
-
/** Status code from the page */
|
|
193
|
-
const status = (response === null || response === void 0 ? void 0 : response.status()) || 500;
|
|
194
|
-
/** If error, reject */
|
|
195
|
-
if (status >= 400) {
|
|
196
|
-
// eslint-disable-next-line @typescript-eslint/no-throw-literal
|
|
197
|
-
throw {
|
|
198
|
-
message: (_a = (await browserPage.evaluate(() => { var _a, _b; return (_b = (_a = document === null || document === void 0 ? void 0 : document.querySelector('h1 + p')) === null || _a === void 0 ? void 0 : _a.innerHTML) === null || _b === void 0 ? void 0 : _b.trim(); }))) !== null && _a !== void 0 ? _a : 'An error occurred',
|
|
199
|
-
code: status,
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
/** Url generated by browser */
|
|
203
|
-
const urlGenerated = browserPage.url();
|
|
204
|
-
/**
|
|
205
|
-
* Result from scraping.
|
|
206
|
-
* Scraping inside Playwright is faster (x2) compare to exporting HTML outside and parsing it with another library.
|
|
207
|
-
*/
|
|
208
|
-
const result = await browserPage.evaluate(this.getResult, {
|
|
209
|
-
input: {
|
|
210
|
-
page,
|
|
211
|
-
limit,
|
|
212
|
-
searchValue,
|
|
213
|
-
searchType,
|
|
214
|
-
},
|
|
215
|
-
dependencies: {
|
|
216
|
-
urlGenerated,
|
|
217
|
-
CURRENCIES: data_1.CURRENCIES,
|
|
218
|
-
COUNTRIES: data_1.COUNTRIES,
|
|
219
|
-
},
|
|
220
|
-
});
|
|
221
|
-
/** Close context/browser */
|
|
222
|
-
await browserContext.close();
|
|
223
|
-
await browser.close();
|
|
224
|
-
return result;
|
|
225
|
-
}
|
|
226
170
|
/**
|
|
227
171
|
* Parse HTML to clean result
|
|
228
172
|
* @returns Items found
|
|
229
173
|
*/
|
|
230
|
-
static getResult({ input: { page, limit, searchValue, searchType },
|
|
231
|
-
}) {
|
|
174
|
+
static getResult({ input: { page, limit, searchValue, searchType }, urlGenerated, CURRENCIES, COUNTRIES, }) {
|
|
232
175
|
var _a, _b, _c, _d, _e;
|
|
233
176
|
/**
|
|
234
177
|
* Function to convert currency to ISO name
|
|
@@ -277,10 +220,10 @@ class Marketplace {
|
|
|
277
220
|
original: originalTitle !== null && originalTitle !== void 0 ? originalTitle : '',
|
|
278
221
|
artist: (_10 = originalTitle === null || originalTitle === void 0 ? void 0 : originalTitle.substring(0, firstIndexOfDash)) !== null && _10 !== void 0 ? _10 : '',
|
|
279
222
|
item: firstIndexOfDash > -1 && lastIndexOfParenthesis > -1
|
|
280
|
-
? (_11 = originalTitle === null || originalTitle === void 0 ? void 0 : originalTitle.substring(firstIndexOfDash + 3, lastIndexOfParenthesis)) !== null && _11 !== void 0 ? _11 : ''
|
|
223
|
+
? ((_11 = originalTitle === null || originalTitle === void 0 ? void 0 : originalTitle.substring(firstIndexOfDash + 3, lastIndexOfParenthesis)) !== null && _11 !== void 0 ? _11 : '')
|
|
281
224
|
: '',
|
|
282
225
|
formats: lastIndexOfParenthesis > -1
|
|
283
|
-
? (_13 = (_12 = originalTitle === null || originalTitle === void 0 ? void 0 : originalTitle.substring(lastIndexOfParenthesis + 2, originalTitle.length - 1)) === null || _12 === void 0 ? void 0 : _12.split(', ')) !== null && _13 !== void 0 ? _13 : []
|
|
226
|
+
? ((_13 = (_12 = originalTitle === null || originalTitle === void 0 ? void 0 : originalTitle.substring(lastIndexOfParenthesis + 2, originalTitle.length - 1)) === null || _12 === void 0 ? void 0 : _12.split(', ')) !== null && _13 !== void 0 ? _13 : [])
|
|
284
227
|
: [],
|
|
285
228
|
},
|
|
286
229
|
url: `https://www.discogs.com${(_14 = el
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "discogs-marketplace-api-nodejs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Another (better ?) NodeJs library to fetch data from Discogs marketplace",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"discogs",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"author": "KirianCaumes",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"scripts": {
|
|
19
|
-
"prepare": "husky
|
|
19
|
+
"prepare": "husky && npm run build",
|
|
20
20
|
"prebuild": "rimraf dist",
|
|
21
21
|
"build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
|
22
|
-
"start:dev": "
|
|
23
|
-
"test": "
|
|
22
|
+
"start:dev": "node --import tsx --watch ./src/index.ts",
|
|
23
|
+
"test": "node --import tsx --test ./test/*.test.ts",
|
|
24
24
|
"eslint:fix": "eslint src test --ext .ts,.js --fix",
|
|
25
25
|
"eslint": "eslint src test --ext .ts,.js",
|
|
26
26
|
"prettier": "prettier --check .",
|
|
@@ -33,36 +33,35 @@
|
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=16.0.0"
|
|
35
35
|
},
|
|
36
|
+
"funding": [
|
|
37
|
+
{
|
|
38
|
+
"type": "paypal",
|
|
39
|
+
"url": "https://www.paypal.me/KirianCaumes"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
36
42
|
"dependencies": {
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"playwright-chromium": "^1.42.1",
|
|
40
|
-
"user-agents": "^1.1.149"
|
|
43
|
+
"playwright-chromium": "^1.45.2",
|
|
44
|
+
"user-agents": "^1.1.271"
|
|
41
45
|
},
|
|
42
46
|
"devDependencies": {
|
|
43
|
-
"@types/
|
|
44
|
-
"@types/node": "^20.11.30",
|
|
47
|
+
"@types/node": "^20.14.11",
|
|
45
48
|
"@types/user-agents": "^1.0.4",
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
47
|
-
"@typescript-eslint/parser": "^7.
|
|
48
|
-
"cspell": "^8.
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "^7.16.1",
|
|
50
|
+
"@typescript-eslint/parser": "^7.16.1",
|
|
51
|
+
"cspell": "^8.11.0",
|
|
49
52
|
"eslint": "^8.57.0",
|
|
50
53
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
51
54
|
"eslint-config-airbnb-typescript": "^18.0.0",
|
|
52
55
|
"eslint-config-prettier": "^9.1.0",
|
|
53
|
-
"eslint-import-resolver-typescript": "^3.6.1",
|
|
54
56
|
"eslint-plugin-import": "^2.29.1",
|
|
55
|
-
"eslint-plugin-jsdoc": "^48.
|
|
56
|
-
"husky": "^9.
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"tsc-alias": "^1.8.8",
|
|
65
|
-
"tsconfig-paths": "^4.2.0",
|
|
66
|
-
"typescript": "^5.4.3"
|
|
57
|
+
"eslint-plugin-jsdoc": "^48.8.3",
|
|
58
|
+
"husky": "^9.1.1",
|
|
59
|
+
"knip": "^5.26.0",
|
|
60
|
+
"lint-staged": "^15.2.7",
|
|
61
|
+
"prettier": "^3.3.3",
|
|
62
|
+
"rimraf": "^6.0.1",
|
|
63
|
+
"tsc-alias": "^1.8.10",
|
|
64
|
+
"tsx": "^4.16.2",
|
|
65
|
+
"typescript": "^5.5.3"
|
|
67
66
|
}
|
|
68
67
|
}
|