mediawiki-api-js
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -21,3 +21,3 @@ const request = require("request-promise"); | ||
return response; | ||
}); | ||
}).catch(error => console.log(error)); | ||
}; |
@@ -25,3 +25,3 @@ const api = require("./api"); | ||
return next; | ||
}); | ||
}).catch(error => console.log(error)); | ||
}; | ||
@@ -28,0 +28,0 @@ |
@@ -28,3 +28,3 @@ const api = require("./api"); | ||
return result.query.pages[page.pageid].extract; | ||
}); | ||
}).catch(error => console.log(error)); | ||
}; | ||
@@ -47,3 +47,3 @@ | ||
return result.query.pages[page.pageid].extract; | ||
}); | ||
}).catch(error => console.log(error)); | ||
}; | ||
@@ -65,3 +65,3 @@ | ||
return result.query.pages[page.pageid].extlinks.map(link => link["*"]); | ||
}); | ||
}).catch(error => console.log(error)); | ||
}; | ||
@@ -82,3 +82,3 @@ | ||
return result.query.pages[page.pageid].categories.map(category => category.title); | ||
}); | ||
}).catch(error => console.log(error)); | ||
}; | ||
@@ -85,0 +85,0 @@ |
@@ -53,3 +53,3 @@ const api = require("./api"); | ||
}; | ||
}); | ||
}).catch(error => console.log(error)); | ||
}; | ||
@@ -70,3 +70,3 @@ | ||
ppprop: "disambiguation" | ||
}).then(handlePage); | ||
}).then(handlePage).catch(error => console.log(error)); | ||
}; | ||
@@ -87,3 +87,3 @@ | ||
ppprop: "disambiguation" | ||
}).then(handlePage); | ||
}).then(handlePage).catch(error => console.log(error)); | ||
}; | ||
@@ -90,0 +90,0 @@ |
{ | ||
"name": "mediawiki-api-js", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"author": "Alistair O'Brien <johnyob132@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Wrapper for MediaWiki API", |
@@ -1,4 +0,4 @@ | ||
MediaWiki-JS | ||
MediaWiki-API-JS | ||
============ | ||
Node.js wrapper for the MediaWiki API |
7557