mediawiki-projects-list 4.1.1 → 4.2.0

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/index.d.ts CHANGED
@@ -26,7 +26,7 @@ declare module 'mediawiki-projects-list' {
26
26
  /** Whether the paths include matches of the regex */
27
27
  regexPaths: boolean;
28
28
  /** Wiki farm of the project */
29
- wikiFarm: ("biligame" | "fandom" | "huijiwiki" | "miraheze" | "shoutwiki" | "wiki.gg" | "wikimedia") | null;
29
+ wikiFarm: ("biligame" | "fandom" | "huijiwiki" | "miraheze" | "shoutwiki" | "wiki.gg" | "wikiforge" | "wikimedia") | null;
30
30
  /** List of extensions providing useful API endpoints */
31
31
  extensions: ("Cargo" | "CentralAuth" | "OAuth")[];
32
32
  /** Replacement for spaces in the article URL */
package/index.js CHANGED
@@ -15,7 +15,7 @@ const PROJECTS = require('./projects.json');
15
15
  * @property {string} idString.regex - Regex to match the id string
16
16
  * @property {string[]} idString.scriptPaths - How to turn the group matches of the id string regex into an URL to the script path, index based on group matches
17
17
  * @property {boolean} regexPaths - Whether the paths include matches of the regex
18
- * @property {?("biligame"|"fandom"|"huijiwiki"|"miraheze"|"shoutwiki"|"wiki.gg"|"wikimedia")} wikiFarm - Wiki farm of the project
18
+ * @property {?("biligame"|"fandom"|"huijiwiki"|"miraheze"|"shoutwiki"|"wiki.gg"|"wikiforge"|"wikimedia")} wikiFarm - Wiki farm of the project
19
19
  * @property {("Cargo"|"CentralAuth"|"OAuth")[]} extensions - List of extensions providing useful API endpoints
20
20
  * @property {string} urlSpaceReplacement - Replacement for spaces in the article URL
21
21
  * @property {?string} note - Note about the specific project
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediawiki-projects-list",
3
- "version": "4.1.1",
3
+ "version": "4.2.0",
4
4
  "type": "commonjs",
5
5
  "description": "List of MediaWiki projects for use in discord-wiki-bot",
6
6
  "main": "index.js",
@@ -179,6 +179,7 @@
179
179
  "miraheze",
180
180
  "shoutwiki",
181
181
  "wiki.gg",
182
+ "wikiforge",
182
183
  "wikimedia"
183
184
  ],
184
185
  "default": null
package/projects.json CHANGED
@@ -321,7 +321,7 @@
321
321
  "articlePath": "/wiki/",
322
322
  "scriptPath": "/w/",
323
323
  "fullScriptPath": "https://dcmultiversewiki.com/w/",
324
- "wikiFarm": "miraheze",
324
+ "wikiFarm": "wikiforge",
325
325
  "extensions": [
326
326
  "CentralAuth",
327
327
  "OAuth"
@@ -1903,6 +1903,23 @@
1903
1903
  "scriptPath": "/",
1904
1904
  "fullScriptPath": "https://wikidragonquest.fr/"
1905
1905
  },
1906
+ {
1907
+ "name": "wikiforge.net",
1908
+ "regex": "(([a-z\\d-]{1,50})\\.wikiforge\\.net)",
1909
+ "articlePath": "/wiki/",
1910
+ "scriptPath": "/w/",
1911
+ "idString": {
1912
+ "regex": "([a-z\\d-]{1,50})",
1913
+ "scriptPaths": [
1914
+ "https://$1.wikiforge.net/w/"
1915
+ ]
1916
+ },
1917
+ "wikiFarm": "wikiforge",
1918
+ "extensions": [
1919
+ "CentralAuth",
1920
+ "OAuth"
1921
+ ]
1922
+ },
1906
1923
  {
1907
1924
  "name": "wikihow.com",
1908
1925
  "regex": "((?:www\\.)?wikihow\\.com)",