diff --git a/.gitignore b/.gitignore index 684fdbb..0788fbd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules package-lock.json cookie.txt +*.swp diff --git a/autogenerator.py b/autogenerator.py index 913e1ad..3a67446 100644 --- a/autogenerator.py +++ b/autogenerator.py @@ -110,6 +110,7 @@ def make_javascript_file(): else: code.code = [] code.write('//This file is autogenerated. See modules.json and autogenerator.py for details\n\n') + code.write('const fetch = require("node-fetch");\n\n') code.write('/*\n') code.indent() code.write(javascript_file_name + '\n\n') diff --git a/javascript-got/opensearch.js b/javascript-got/opensearch.js new file mode 100644 index 0000000..b0dee2a --- /dev/null +++ b/javascript-got/opensearch.js @@ -0,0 +1,40 @@ + +const got = require("got"); + +/* + opensearch.js + + MediaWiki API Demos + Demo of `Opensearch` module: Search the wiki and obtain + results in an OpenSearch (http://www.opensearch.org) format + + MIT License +*/ + +var url = "https://en.wikipedia.org/w/api.php"; + + +async function opensearch(url, searchTerm) { + + var params = { + action: "opensearch", + search: searchTerm, + limit: "5", + namespace: "0", + format: "json" + }; + + try { + + const response = await got(url, { + searchParams: params + }).json() + + console.log( response ); + } catch( error ) { + console.log( error.response.body ); + } +} + + +opensearch(url, "Hampi"); diff --git a/javascript/all_messages.js b/javascript/all_messages.js index d6cfded..8c9562b 100644 --- a/javascript/all_messages.js +++ b/javascript/all_messages.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* all_messages.js diff --git a/javascript/check_token.js b/javascript/check_token.js index 9c14e97..2269ee2 100644 --- a/javascript/check_token.js +++ b/javascript/check_token.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* check_token.js diff --git a/javascript/compare.js b/javascript/compare.js index 3e4c865..72a5beb 100644 --- a/javascript/compare.js +++ b/javascript/compare.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* compare.js diff --git a/javascript/duplicate_files.js b/javascript/duplicate_files.js index 0c2a6a4..f430384 100644 --- a/javascript/duplicate_files.js +++ b/javascript/duplicate_files.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* duplicate_files.js diff --git a/javascript/expand_templates.js b/javascript/expand_templates.js index 36b60dc..02c128f 100644 --- a/javascript/expand_templates.js +++ b/javascript/expand_templates.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* expand_templates.js diff --git a/javascript/file_archive.js b/javascript/file_archive.js index 39cc0ed..e8929e0 100644 --- a/javascript/file_archive.js +++ b/javascript/file_archive.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* file_archive.js diff --git a/javascript/file_repo_info.js b/javascript/file_repo_info.js index 070ff4d..4cb9f32 100644 --- a/javascript/file_repo_info.js +++ b/javascript/file_repo_info.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* file_repo_info.js diff --git a/javascript/filearchive.js b/javascript/filearchive.js index d2b2add..cc73412 100644 --- a/javascript/filearchive.js +++ b/javascript/filearchive.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* filearchive.js diff --git a/javascript/general_site_info.js b/javascript/general_site_info.js index f193c17..ab5be91 100644 --- a/javascript/general_site_info.js +++ b/javascript/general_site_info.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* general_site_info.js diff --git a/javascript/geocoordinates.js b/javascript/geocoordinates.js index 5447534..a56600f 100644 --- a/javascript/geocoordinates.js +++ b/javascript/geocoordinates.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* geocoordinates.js diff --git a/javascript/geoimagesearch.js b/javascript/geoimagesearch.js index 5fa65d3..d258ad4 100644 --- a/javascript/geoimagesearch.js +++ b/javascript/geoimagesearch.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* geoimagesearch.js diff --git a/javascript/geosearch.js b/javascript/geosearch.js index 2597b8e..9842d36 100644 --- a/javascript/geosearch.js +++ b/javascript/geosearch.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* geosearch.js diff --git a/javascript/get_allcategories.js b/javascript/get_allcategories.js index a6e2fef..f3859a5 100644 --- a/javascript/get_allcategories.js +++ b/javascript/get_allcategories.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_allcategories.js diff --git a/javascript/get_alldeletedrevs.js b/javascript/get_alldeletedrevs.js index c7c7102..2ec19cd 100644 --- a/javascript/get_alldeletedrevs.js +++ b/javascript/get_alldeletedrevs.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_alldeletedrevs.js diff --git a/javascript/get_allfileusages.js b/javascript/get_allfileusages.js index cd876a8..9acb01f 100644 --- a/javascript/get_allfileusages.js +++ b/javascript/get_allfileusages.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_allfileusages.js diff --git a/javascript/get_allimages_by_date.js b/javascript/get_allimages_by_date.js index 09d29e1..7abb1d9 100644 --- a/javascript/get_allimages_by_date.js +++ b/javascript/get_allimages_by_date.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_allimages_by_date.js diff --git a/javascript/get_allimages_by_name.js b/javascript/get_allimages_by_name.js index 458ee8a..b6f8b89 100644 --- a/javascript/get_allimages_by_name.js +++ b/javascript/get_allimages_by_name.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_allimages_by_name.js diff --git a/javascript/get_alllinks.js b/javascript/get_alllinks.js index 8988e1f..9c8602a 100644 --- a/javascript/get_alllinks.js +++ b/javascript/get_alllinks.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_alllinks.js diff --git a/javascript/get_allpages.js b/javascript/get_allpages.js index 04e688e..4b8a654 100644 --- a/javascript/get_allpages.js +++ b/javascript/get_allpages.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_allpages.js diff --git a/javascript/get_allredirects.js b/javascript/get_allredirects.js index e659c97..d7ca2cb 100644 --- a/javascript/get_allredirects.js +++ b/javascript/get_allredirects.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_allredirects.js diff --git a/javascript/get_allrevisions.js b/javascript/get_allrevisions.js index 504600e..de19e67 100644 --- a/javascript/get_allrevisions.js +++ b/javascript/get_allrevisions.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_allrevisions.js diff --git a/javascript/get_alltransclusions.js b/javascript/get_alltransclusions.js index 0eb83ac..9491855 100644 --- a/javascript/get_alltransclusions.js +++ b/javascript/get_alltransclusions.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_alltransclusions.js diff --git a/javascript/get_allusers.js b/javascript/get_allusers.js index b6ca249..37933bd 100644 --- a/javascript/get_allusers.js +++ b/javascript/get_allusers.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_allusers.js diff --git a/javascript/get_backlinks.js b/javascript/get_backlinks.js index aec1106..d8505df 100644 --- a/javascript/get_backlinks.js +++ b/javascript/get_backlinks.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_backlinks.js diff --git a/javascript/get_blocked_users.js b/javascript/get_blocked_users.js index b687753..ed5fa42 100644 --- a/javascript/get_blocked_users.js +++ b/javascript/get_blocked_users.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_blocked_users.js diff --git a/javascript/get_categories.js b/javascript/get_categories.js index 35fd5dc..0e15b85 100644 --- a/javascript/get_categories.js +++ b/javascript/get_categories.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_categories.js diff --git a/javascript/get_category_info.js b/javascript/get_category_info.js index 8cb0668..756e0de 100644 --- a/javascript/get_category_info.js +++ b/javascript/get_category_info.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_category_items.js diff --git a/javascript/get_category_items.js b/javascript/get_category_items.js index 085d8ab..faf8132 100644 --- a/javascript/get_category_items.js +++ b/javascript/get_category_items.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_category_items.js diff --git a/javascript/get_contributors.js b/javascript/get_contributors.js index 11d12eb..15dc212 100644 --- a/javascript/get_contributors.js +++ b/javascript/get_contributors.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_contributors.js diff --git a/javascript/get_embedded_pages.js b/javascript/get_embedded_pages.js index 4f51dad..831f0b5 100644 --- a/javascript/get_embedded_pages.js +++ b/javascript/get_embedded_pages.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_embedded_pages.js diff --git a/javascript/get_extlinks.js b/javascript/get_extlinks.js index 9aea86b..4a6da35 100644 --- a/javascript/get_extlinks.js +++ b/javascript/get_extlinks.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* get_extlinks.js diff --git a/javascript/get_exturlusage.js b/javascript/get_exturlusage.js index 2506bd5..82e5446 100644 --- a/javascript/get_exturlusage.js +++ b/javascript/get_exturlusage.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_exturlusage.js diff --git a/javascript/get_feed_recent_changes.js b/javascript/get_feed_recent_changes.js index f6149e3..0e36d91 100644 --- a/javascript/get_feed_recent_changes.js +++ b/javascript/get_feed_recent_changes.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* get_feed_recent_changes.js diff --git a/javascript/get_file_usage.js b/javascript/get_file_usage.js index d06a2ab..459f4ed 100644 --- a/javascript/get_file_usage.js +++ b/javascript/get_file_usage.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* get_file_usage.js diff --git a/javascript/get_filtered_page_revisions.js b/javascript/get_filtered_page_revisions.js index 65669e8..e3dd9fc 100644 --- a/javascript/get_filtered_page_revisions.js +++ b/javascript/get_filtered_page_revisions.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_filtered_page_revisions.js diff --git a/javascript/get_help.js b/javascript/get_help.js index 56baee6..33b8fb6 100644 --- a/javascript/get_help.js +++ b/javascript/get_help.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* get_help.js diff --git a/javascript/get_imageinfo.js b/javascript/get_imageinfo.js index 657e95a..60f1320 100644 --- a/javascript/get_imageinfo.js +++ b/javascript/get_imageinfo.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_imageinfo.js diff --git a/javascript/get_imageusage.js b/javascript/get_imageusage.js index 70fe826..afca494 100644 --- a/javascript/get_imageusage.js +++ b/javascript/get_imageusage.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_imageusage.js diff --git a/javascript/get_info.js b/javascript/get_info.js index 9764b44..e02e7c8 100644 --- a/javascript/get_info.js +++ b/javascript/get_info.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_info.js diff --git a/javascript/get_iwlinks.js b/javascript/get_iwlinks.js index 01ea7bf..0ad3d98 100644 --- a/javascript/get_iwlinks.js +++ b/javascript/get_iwlinks.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_iwlinks.js diff --git a/javascript/get_links.js b/javascript/get_links.js index f74260c..d3f29ce 100644 --- a/javascript/get_links.js +++ b/javascript/get_links.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_links.js diff --git a/javascript/get_logevents.js b/javascript/get_logevents.js index 5660218..a8cf5ea 100644 --- a/javascript/get_logevents.js +++ b/javascript/get_logevents.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_logevents.js diff --git a/javascript/get_page_images.js b/javascript/get_page_images.js index 6043842..9b4842f 100644 --- a/javascript/get_page_images.js +++ b/javascript/get_page_images.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_page_images.js diff --git a/javascript/get_pagepropnames.js b/javascript/get_pagepropnames.js index c654dfe..b04f8e8 100644 --- a/javascript/get_pagepropnames.js +++ b/javascript/get_pagepropnames.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_pagepropnames.js diff --git a/javascript/get_pages_revisions.js b/javascript/get_pages_revisions.js index df18858..2ef5b86 100644 --- a/javascript/get_pages_revisions.js +++ b/javascript/get_pages_revisions.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_pages_revisions.js diff --git a/javascript/get_pageswithprop.js b/javascript/get_pageswithprop.js index 17519d1..dcf938a 100644 --- a/javascript/get_pageswithprop.js +++ b/javascript/get_pageswithprop.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_pageswithprops.js diff --git a/javascript/get_protectedtitles.js b/javascript/get_protectedtitles.js index f9a4224..416c330 100644 --- a/javascript/get_protectedtitles.js +++ b/javascript/get_protectedtitles.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_protectedtitles.js diff --git a/javascript/get_querypage_list.js b/javascript/get_querypage_list.js index 0f67649..2f08929 100644 --- a/javascript/get_querypage_list.js +++ b/javascript/get_querypage_list.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_querypage_list.js diff --git a/javascript/get_random.js b/javascript/get_random.js index 792ef6f..0d74533 100644 --- a/javascript/get_random.js +++ b/javascript/get_random.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_random.js diff --git a/javascript/get_recent_category_items.js b/javascript/get_recent_category_items.js index 932f5f7..24ef2f1 100644 --- a/javascript/get_recent_category_items.js +++ b/javascript/get_recent_category_items.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_recent_category_items.js diff --git a/javascript/get_recent_changes.js b/javascript/get_recent_changes.js index a76a036..da417d8 100644 --- a/javascript/get_recent_changes.js +++ b/javascript/get_recent_changes.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_recent_changes.js diff --git a/javascript/get_red_links.js b/javascript/get_red_links.js index b336338..d794fff 100644 --- a/javascript/get_red_links.js +++ b/javascript/get_red_links.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_red_links.js diff --git a/javascript/get_redirects.js b/javascript/get_redirects.js index 353ab4c..90c4ce4 100644 --- a/javascript/get_redirects.js +++ b/javascript/get_redirects.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_redirects.js diff --git a/javascript/get_subcategories.js b/javascript/get_subcategories.js index 88d7fb7..6023692 100644 --- a/javascript/get_subcategories.js +++ b/javascript/get_subcategories.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_subcategories.js diff --git a/javascript/get_tags.js b/javascript/get_tags.js index fb3cd39..03cd0cb 100644 --- a/javascript/get_tags.js +++ b/javascript/get_tags.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_tags.js diff --git a/javascript/get_transcluded_in.js b/javascript/get_transcluded_in.js index af1220c..875eda9 100644 --- a/javascript/get_transcluded_in.js +++ b/javascript/get_transcluded_in.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* get_transcluded_in.js diff --git a/javascript/get_user_contributions_feed.js b/javascript/get_user_contributions_feed.js index 36c3dd1..e3d6400 100644 --- a/javascript/get_user_contributions_feed.js +++ b/javascript/get_user_contributions_feed.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* get_user_contributions_feed.js diff --git a/javascript/get_user_watchlist_feed.js b/javascript/get_user_watchlist_feed.js index 3b07d38..e061870 100644 --- a/javascript/get_user_watchlist_feed.js +++ b/javascript/get_user_watchlist_feed.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* get_user_watchlist_feed.js diff --git a/javascript/get_usercontribs.js b/javascript/get_usercontribs.js index 9695021..29e4994 100644 --- a/javascript/get_usercontribs.js +++ b/javascript/get_usercontribs.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_usercontribs.js diff --git a/javascript/get_users.js b/javascript/get_users.js index 6ce742d..aca572f 100644 --- a/javascript/get_users.js +++ b/javascript/get_users.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* get_users.js diff --git a/javascript/iwbacklinks.js b/javascript/iwbacklinks.js index e54ffe0..f0cbeb5 100644 --- a/javascript/iwbacklinks.js +++ b/javascript/iwbacklinks.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* iwbacklinks.js diff --git a/javascript/langbacklinks.js b/javascript/langbacklinks.js index f103f65..01a07cb 100644 --- a/javascript/langbacklinks.js +++ b/javascript/langbacklinks.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* langbacklinks.js diff --git a/javascript/langlinks.js b/javascript/langlinks.js index 4ae90c6..7f495a7 100644 --- a/javascript/langlinks.js +++ b/javascript/langlinks.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* langlinks.js diff --git a/javascript/languagesearch.js b/javascript/languagesearch.js index 084a245..9f5ddb7 100644 --- a/javascript/languagesearch.js +++ b/javascript/languagesearch.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* languagesearch.js diff --git a/javascript/linkshere.js b/javascript/linkshere.js index cfe4cca..4efefba 100644 --- a/javascript/linkshere.js +++ b/javascript/linkshere.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* linkshere.js diff --git a/javascript/main_module.js b/javascript/main_module.js index bcfc03b..6957c25 100644 --- a/javascript/main_module.js +++ b/javascript/main_module.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* main_module.js diff --git a/javascript/opensearch.js b/javascript/opensearch.js index 8df7212..c7aff5c 100644 --- a/javascript/opensearch.js +++ b/javascript/opensearch.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* opensearch.js diff --git a/javascript/pageprops.js b/javascript/pageprops.js index 2187b39..9bea8e4 100644 --- a/javascript/pageprops.js +++ b/javascript/pageprops.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* pageprops.js diff --git a/javascript/paraminfo.js b/javascript/paraminfo.js index 1900edd..7cd9c93 100644 --- a/javascript/paraminfo.js +++ b/javascript/paraminfo.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* paraminfo.js diff --git a/javascript/parse.js b/javascript/parse.js index e1cd235..dc1ccd6 100644 --- a/javascript/parse.js +++ b/javascript/parse.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* parse.js diff --git a/javascript/prefixsearch.js b/javascript/prefixsearch.js index daed61d..ff12604 100644 --- a/javascript/prefixsearch.js +++ b/javascript/prefixsearch.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* prefixsearch.js diff --git a/javascript/rsd.js b/javascript/rsd.js index 6dfcf91..3850333 100644 --- a/javascript/rsd.js +++ b/javascript/rsd.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* rsd.js diff --git a/javascript/search.js b/javascript/search.js index 453a39b..a78532e 100644 --- a/javascript/search.js +++ b/javascript/search.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require('node-fetch'); + /* search.js diff --git a/javascript/templates.js b/javascript/templates.js index 34025c3..700eaba 100644 --- a/javascript/templates.js +++ b/javascript/templates.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* templates.js diff --git a/javascript/userinfo.js b/javascript/userinfo.js index 01d0177..080feb8 100644 --- a/javascript/userinfo.js +++ b/javascript/userinfo.js @@ -1,5 +1,7 @@ //This file is autogenerated. See modules.json and autogenerator.py for details +const fetch = require("node-fetch"); + /* userinfo.js