Comments (6)
Are you still looking for help on this issue? If so, I'd like to pitch in.
I'm not sure what is meant by, "Implementation for this should follow the summary or related method flow". But I'm fine writing tests and using types.
from wikipedia.
Pardon the delay.
I took a look at the return formats from the API and they all looked fairly essential. So I just went ahead and creates types for all of them.
Just made a draft PR, #11. How does it look?
from wikipedia.
Sure, @friendofdog , help with this would be welcome.
You only need to use types and write unit tests, you can ignore the other part
from wikipedia.
Understood, @dopecodez . I wrote tests and a basic implementation. (Pardon me for doing so, I borrowed much from existing tests. First time using Jest.)
As for types, the Wikipedia.org API returns six unique types: 5 kinds of JSON objects or an HTML string. Should I add the missing types to resultTypes.js
or is this a bit overkill?
from wikipedia.
I think it's best to borrow from existing tests.
That's an interesting question, I think we can skip over the types not currently present in the package. We would ideally need to implement the method like mobile-sections
and the rest before we support the same in random.
I will take a detailed look at your changes once you open an MR, @friendofdog , thanks.
from wikipedia.
Looks good, @friendofdog . Lets continue this conversation there.
from wikipedia.
Related Issues (20)
- Failing coverage check on forked Pull Requests HOT 3
- Implement pdf api
- Won't load in a secure context (https) HOT 1
- Implement generate citation data
- Use encodeUriComponent() instead of encodeURI() for better encoding for search params HOT 2
- Incorrect data parsed from Infobox HOT 2
- Implement featured content api
- Stray console.log HOT 3
- Clarity on browser support HOT 5
- CORS error fetching summary in Firefox HOT 7
- Error with proxy HOT 2
- Dropping support for node 10, 12 HOT 4
- Move from node-fetch to got,ky or axios HOT 2
- When I attempt to make multiple requests at once I get a lot of PageErrors (parallel or sequential) even on valid items HOT 1
- Allow customization of USER_AGENT
- How do I pass page url instead of page text? HOT 1
- Error using page() to get infobox() HOT 4
- Ability to get a page from URL, not only the title and pageId HOT 3
- Using `instanceof` to detect a `pageError`
- Invalid infobox value for https://fr.wikipedia.org/wiki/Marseille
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wikipedia.