discogs-marketplace-api-nodejs 1.3.8 → 1.3.9

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
@@ -143,7 +143,7 @@ interface IOutputSuccess {
143
143
  }
144
144
 
145
145
  interface IItem {
146
- itemId: number
146
+ id: number
147
147
  title: {
148
148
  original: string
149
149
  artist: string
@@ -4,7 +4,7 @@ import ECountryName from "../enum/iso/ECountryName";
4
4
  * One item from discogs
5
5
  */
6
6
  export default interface IItem {
7
- itemId: number;
7
+ id: number;
8
8
  title: {
9
9
  original: string;
10
10
  artist: string;
@@ -224,7 +224,7 @@ class Marketplace {
224
224
  const firstIndexOfDash = (_7 = originalTitle === null || originalTitle === void 0 ? void 0 : originalTitle.indexOf(' - ')) !== null && _7 !== void 0 ? _7 : -1;
225
225
  const lastIndexOfParenthesis = (_8 = originalTitle === null || originalTitle === void 0 ? void 0 : originalTitle.lastIndexOf(' (')) !== null && _8 !== void 0 ? _8 : -1;
226
226
  return {
227
- itemId: Number.isNaN(itemId) ? 0 : itemId,
227
+ id: Number.isNaN(itemId) ? 0 : itemId,
228
228
  title: {
229
229
  original: originalTitle !== null && originalTitle !== void 0 ? originalTitle : '',
230
230
  artist: (_9 = originalTitle === null || originalTitle === void 0 ? void 0 : originalTitle.substring(0, firstIndexOfDash)) !== null && _9 !== void 0 ? _9 : '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discogs-marketplace-api-nodejs",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "Another (better ?) NodeJs library to fetch data from Discog's marketplace",
5
5
  "keywords": [
6
6
  "discogs",
@@ -26,26 +26,26 @@
26
26
  "main": "dist/index.js",
27
27
  "types": "dist/index.d.ts",
28
28
  "dependencies": {
29
- "linkedom": "^0.14.2",
30
- "playwright-chromium": "^1.19.2",
31
- "ts-node": "^10.5.0",
32
- "tsconfig-paths": "^3.12.0",
33
- "user-agents": "^1.0.940"
29
+ "linkedom": "^0.14.5",
30
+ "playwright-chromium": "^1.20.1",
31
+ "ts-node": "^10.7.0",
32
+ "tsconfig-paths": "^3.14.1",
33
+ "user-agents": "^1.0.971"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/jest": "^27.4.1",
37
- "@types/node": "^17.0.21",
37
+ "@types/node": "^17.0.23",
38
38
  "@types/user-agents": "^1.0.2",
39
- "@typescript-eslint/eslint-plugin": "^5.12.1",
40
- "@typescript-eslint/parser": "^5.12.1",
41
- "eslint": "^8.10.0",
39
+ "@typescript-eslint/eslint-plugin": "^5.17.0",
40
+ "@typescript-eslint/parser": "^5.17.0",
41
+ "eslint": "^8.12.0",
42
42
  "eslint-config-airbnb-base": "^15.0.0",
43
- "eslint-config-airbnb-typescript": "^16.1.0",
43
+ "eslint-config-airbnb-typescript": "^16.1.4",
44
44
  "eslint-plugin-import": "^2.25.4",
45
45
  "jest": "^27.5.1",
46
- "ts-jest": "^27.1.3",
46
+ "ts-jest": "^27.1.4",
47
47
  "ttypescript": "^1.5.13",
48
- "typescript": "^4.5.5",
48
+ "typescript": "^4.6.3",
49
49
  "typescript-transform-paths": "^3.3.1"
50
50
  }
51
51
  }