discogs-marketplace-api-nodejs 1.6.0 → 1.6.1

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
@@ -114,7 +114,7 @@ const result = await DiscogsMarketplace.search({
114
114
  You can provide parameters to `DiscogsMarketplace.search` function according to this type:
115
115
 
116
116
  ```ts
117
- type InputCommonType = {
117
+ type InputType = {
118
118
  /**
119
119
  * Type of elements to search.
120
120
  * Default to `q`.
@@ -1,3 +1,4 @@
1
+ import type { InputType, OutputSuccessType } from './types/commons/index.js';
1
2
  /**
2
3
  * Discogs Marketplace
3
4
  */
@@ -6,7 +7,7 @@ export default abstract class Marketplace {
6
7
  * Search elements on discogs
7
8
  * @returns Items found
8
9
  */
9
- static search({ searchType, searchValue, currency, genre, style, format, formatDescription, condition, year, years, isAudioSample, isMakeAnOfferOnly, from, seller, sort, limit, page, lang, }: import('./types/commons/index.js').InputType): Promise<import('./types/commons/index.js').OutputSuccessType>;
10
+ static search({ searchType, searchValue, currency, genre, style, format, formatDescription, condition, year, years, isAudioSample, isMakeAnOfferOnly, from, seller, sort, limit, page, lang, }: InputType): Promise<OutputSuccessType>;
10
11
  /**
11
12
  * Generate URL to be parsed
12
13
  * @returns Url
@@ -1,8 +1,8 @@
1
- import { LimitType, GenreType, CurrencyType, FromType, StyleType, FormatType, ConditionType, SortType, LangType, FormatDescriptionType, SearchTypeType } from '../../types/unions/index.js';
1
+ import type { LimitType, GenreType, CurrencyType, FromType, StyleType, FormatType, ConditionType, SortType, LangType, FormatDescriptionType, SearchTypeType } from '../../types/unions/index.js';
2
2
  /**
3
3
  * Element that can be provided by user
4
4
  */
5
- type InputCommonType = {
5
+ type InputType = {
6
6
  /**
7
7
  * Type of elements to search.
8
8
  * Default to `q`.
@@ -92,4 +92,4 @@ type InputCommonType = {
92
92
  */
93
93
  lang?: LangType;
94
94
  };
95
- export default InputCommonType;
95
+ export default InputType;
@@ -1,4 +1,4 @@
1
- import { SearchTypeType } from '../../types/unions/index.js';
1
+ import type { SearchTypeType } from '../../types/unions/index.js';
2
2
  /**
3
3
  * Result provided to user
4
4
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discogs-marketplace-api-nodejs",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Another (better ?) NodeJs library to fetch data from Discog's marketplace",
5
5
  "keywords": [
6
6
  "discogs",
@@ -27,26 +27,29 @@
27
27
  "main": "dist/index.js",
28
28
  "types": "dist/index.d.ts",
29
29
  "dependencies": {
30
- "axios": "^1.3.2",
31
- "linkedom": "^0.14.21",
32
- "user-agents": "^1.0.1288"
30
+ "axios": "^1.3.3",
31
+ "linkedom": "^0.14.22",
32
+ "user-agents": "^1.0.1295"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/jest": "^29.4.0",
36
- "@types/node": "^18.13.0",
36
+ "@types/node": "^18.14.0",
37
37
  "@types/user-agents": "^1.0.2",
38
- "@typescript-eslint/eslint-plugin": "^5.51.0",
39
- "@typescript-eslint/parser": "^5.51.0",
38
+ "@typescript-eslint/eslint-plugin": "^5.53.0",
39
+ "@typescript-eslint/parser": "^5.53.0",
40
40
  "eslint": "^8.34.0",
41
41
  "eslint-config-airbnb-base": "^15.0.0",
42
42
  "eslint-config-airbnb-typescript": "^17.0.0",
43
43
  "eslint-plugin-import": "^2.27.5",
44
- "eslint-plugin-jsdoc": "^39.8.0",
45
- "jest": "^29.4.2",
44
+ "eslint-plugin-jsdoc": "^40.0.0",
45
+ "jest": "^29.4.3",
46
46
  "ts-jest": "^29.0.5",
47
47
  "ts-node": "^10.9.1",
48
48
  "tsc-alias": "^1.8.2",
49
49
  "tsconfig-paths": "^4.1.2",
50
50
  "typescript": "^4.9.5"
51
+ },
52
+ "engines": {
53
+ "node": ">=14.0.0"
51
54
  }
52
55
  }