wiki-starlight-api 1.0.0 → 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wiki-starlight-api",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Lightweight zero-dependency Wikipedia API client for Node.js",
5
5
  "type": "module",
6
6
  "main": "wiki-starlight-api.mjs",
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Internal helper for API requests
3
3
  */
4
+ const BASE_URL = "https://en.wikipedia.org/w/api.php";
4
5
  async function request(params) {
5
6
  const url = new URL(BASE_URL);
6
7
  params.format = "json";