discogs-marketplace-api-nodejs 1.3.5 → 1.3.6

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
@@ -202,6 +202,20 @@ interface IOutputError {
202
202
  }
203
203
  ```
204
204
 
205
+ ## How to contribute
206
+
207
+ There is a devcontainer on that project already configured, feel free to use it.
208
+
209
+ You can install dependecies with:
210
+
211
+ ```sh
212
+ npm i
213
+ ```
214
+
215
+ And then create a new file that import `DiscogsMarketplace` and run query to try your updates.
216
+
217
+ Finally, you can open a pull request with your new additions.
218
+
205
219
  ## Know issues
206
220
 
207
221
  If you are using this librairie on a Typescript project, you might encounter issues with `linkedom`.
@@ -215,3 +229,5 @@ To fix it, use this in command line: `--skipLibCheck` or add that in you `tsconf
215
229
  }
216
230
  }
217
231
  ```
232
+
233
+ If you found another one, feel free to open an issue.
@@ -113,7 +113,7 @@ class Marketplace {
113
113
  /** Get url */
114
114
  this.url = page.url();
115
115
  /** Get HTML */
116
- const bodyHTML = yield page.evaluate(() => { var _a; return (_a = document.querySelector('table.table_block')) === null || _a === void 0 ? void 0 : _a.outerHTML; });
116
+ const bodyHTML = yield page.evaluate(() => { var _a; return (_a = document.getElementById('page_content')) === null || _a === void 0 ? void 0 : _a.outerHTML; });
117
117
  /** Close browser */
118
118
  yield browser.close();
119
119
  /** If error, reject */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discogs-marketplace-api-nodejs",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "Another (better ?) NodeJs library to fetch data from Discog's marketplace",
5
5
  "keywords": [
6
6
  "discogs",
@@ -27,24 +27,24 @@
27
27
  "types": "dist/index.d.ts",
28
28
  "dependencies": {
29
29
  "linkedom": "^0.13.0",
30
- "playwright-chromium": "^1.17.1",
30
+ "playwright-chromium": "^1.17.2",
31
31
  "ts-node": "^10.4.0",
32
32
  "tsconfig-paths": "^3.12.0",
33
- "user-agents": "^1.0.889"
33
+ "user-agents": "^1.0.899"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/jest": "^27.4.0",
37
- "@types/node": "^17.0.8",
37
+ "@types/node": "^17.0.9",
38
38
  "@types/puppeteer": "^5.4.4",
39
39
  "@types/user-agents": "^1.0.2",
40
- "@typescript-eslint/eslint-plugin": "^5.9.0",
41
- "@typescript-eslint/parser": "^5.9.0",
42
- "eslint": "^8.6.0",
40
+ "@typescript-eslint/eslint-plugin": "^5.10.0",
41
+ "@typescript-eslint/parser": "^5.10.0",
42
+ "eslint": "^8.7.0",
43
43
  "eslint-config-airbnb-base": "^15.0.0",
44
44
  "eslint-config-airbnb-typescript": "^16.1.0",
45
45
  "eslint-plugin-import": "^2.25.4",
46
46
  "jest": "^27.4.7",
47
- "ts-jest": "^27.1.2",
47
+ "ts-jest": "^27.1.3",
48
48
  "ttypescript": "^1.5.13",
49
49
  "typescript": "^4.5.4",
50
50
  "typescript-transform-paths": "^3.3.1"