Skip to content

Commit

Permalink
Trying fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KirianCaumes committed Apr 19, 2021
1 parent 5de060a commit 46601ea
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ interface IItem {
price: {
base: string | null | undefined,
shipping: string | null | undefined,
from: string | null | undefined
from: string | null | undefined,
isoFrom: string | null | undefined,
},
community: {
have: number | null | undefined,
Expand Down
3 changes: 2 additions & 1 deletion lib/interface/IItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export default interface IItem {
price: {
base: string | null | undefined,
shipping: string | null | undefined,
from: string | null | undefined
from: string | null | undefined,
isoFrom: string | null | undefined,
},
community: {
have: number | null | undefined,
Expand Down
3 changes: 2 additions & 1 deletion lib/marketplace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ export default class Marketplace implements IInput {
price: {
base: this._convertDevise(el.querySelector('.price')?.textContent?.replace(/\s+/g, " ")?.replace(/,/, '.')!),
shipping: isNaN(parseFloat(shipping)) ? null : shipping,
from: (EFromIso as any)[country] ?? country ?? ""
from: country,
isoFrom: (EFromIso as any)[country] ?? country ?? ""
},
community: {
have: isNaN(have) ? null : have,
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discogs-marketplace-api-nodejs",
"version": "1.2.3",
"version": "1.2.5",
"description": "Another (better ?) NodeJs library to fetch data from Discog's marketplace",
"keywords": [
"discogs",
Expand All @@ -19,7 +19,7 @@
"start": "nodemon -r tsconfig-paths/register ./lib/index.ts",
"build": "ttsc",
"test": "jest",
"prepublish": "npm run build"
"prepare": "npm run build"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 46601ea

Please sign in to comment.