[submodule:extensions] Breaking change: rename module to library

This commit is contained in:
Faisal Salman
2024-11-10 08:15:39 +07:00
parent 19e5d322e2
commit 3b3361fe53
8 changed files with 23 additions and 23 deletions

View File

@@ -20,7 +20,7 @@ const EMAIL = 'email';
const FETCHER = 'fetcher';
const INAPP = 'inapp';
const MEDIAPLAYER = 'mediaplayer';
const MODULE = 'module';
const LIBRARY = 'library';
//////////////////////
// COMMAND LINE APPS
@@ -332,14 +332,14 @@ const MediaPlayers = Object.freeze({
]
});
////////////////////////
// MODULES / LIBRARIES
///////////////////////
/////////////
// LIBRARIES
//////////////
const Modules = Object.freeze({
const Libraries = Object.freeze({
browser : [
// Axios/jsdom/Scrapy
[/\b(axios|jsdom|scrapy)\/([\w\.]+)/i], [NAME, VERSION, [TYPE, MODULE]]
[/\b(axios|jsdom|scrapy)\/([\w\.]+)/i], [NAME, VERSION, [TYPE, LIBRARY]]
]
});
@@ -352,7 +352,7 @@ const Bots = Object.freeze({
...CLIs.browser,
...Crawlers.browser,
...Fetchers.browser,
...Modules.browser
...Libraries.browser
]
});
@@ -364,6 +364,6 @@ module.exports = {
Emails,
Fetchers,
InApps,
MediaPlayers,
Modules
Libraries,
MediaPlayers
};