chore(): generate docs
This commit is contained in:
parent
2dbcf8ab5d
commit
28a2d3630c
76 changed files with 890 additions and 313 deletions
|
|
@ -4,7 +4,7 @@
|
|||
<head>
|
||||
<meta name="generator" content="JSDoc 3.6.11">
|
||||
<meta charset="utf-8">
|
||||
<title>whatsapp-web.js 1.34.1 » Source: util/Injected/Store.js</title>
|
||||
<title>whatsapp-web.js 1.34.2 » Source: util/Injected/Store.js</title>
|
||||
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Karla:400,400i,700,700i" type="text/css">
|
||||
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Noto+Serif:400,400i,700,700i" type="text/css">
|
||||
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
|
||||
<div id="jsdoc-navbar-container">
|
||||
<div id="jsdoc-navbar-content">
|
||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>34.<wbr>1</a>
|
||||
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>34.<wbr>2</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
@ -128,12 +128,13 @@ exports.ExposeStore = () => {
|
|||
window.Store.HistorySync = window.require('WAWebSendNonMessageDataRequest');
|
||||
window.Store.AddonReactionTable = window.require('WAWebAddonReactionTableMode').reactionTableMode;
|
||||
window.Store.AddonPollVoteTable = window.require('WAWebAddonPollVoteTableMode').pollVoteTableMode;
|
||||
window.Store.PinnedMsgUtils = window.require('WAWebPinInChatSchema');
|
||||
window.Store.ChatGetters = window.require('WAWebChatGetters');
|
||||
window.Store.PinnedMsgUtils = window.require('WAWebSendPinMessageAction');
|
||||
window.Store.UploadUtils = window.require('WAWebUploadManager');
|
||||
window.Store.WAWebStreamModel = window.require('WAWebStreamModel');
|
||||
window.Store.FindOrCreateChat = window.require('WAWebFindChatAction');
|
||||
window.Store.CustomerNoteUtils = window.require('WAWebNoteAction');
|
||||
window.Store.BusinessGatingUtils = window.require('WAWebBizGatingUtils');
|
||||
window.Store.PollsVotesSchema = require('WAWebPollsVotesSchema');
|
||||
|
||||
window.Store.Settings = {
|
||||
...window.require('WAWebUserPrefsGeneral'),
|
||||
|
|
@ -147,6 +148,10 @@ exports.ExposeStore = () => {
|
|||
window.Store.ForwardUtils = {
|
||||
...window.require('WAWebChatForwardMessage')
|
||||
};
|
||||
window.Store.PinnedMsgUtils = {
|
||||
...window.require('WAWebPinInChatSchema'),
|
||||
...window.require('WAWebSendPinMessageAction')
|
||||
};
|
||||
window.Store.ScheduledEventMsgUtils = {
|
||||
...window.require('WAWebGenerateEventCallLink'),
|
||||
...window.require('WAWebSendEventEditMsgAction'),
|
||||
|
|
@ -242,25 +247,37 @@ exports.ExposeStore = () => {
|
|||
* @param {Function} callback Modified function
|
||||
*/
|
||||
window.injectToFunction = (target, callback) => {
|
||||
let module = window.require(target.module);
|
||||
try {
|
||||
let module = window.require(target.module);
|
||||
if (!module) return;
|
||||
|
||||
if (!module) return;
|
||||
|
||||
const path = target.function.split('.');
|
||||
const funcName = path.pop();
|
||||
for (const key of path) {
|
||||
module = module[key];
|
||||
const path = target.function.split('.');
|
||||
const funcName = path.pop();
|
||||
|
||||
for (const key of path) {
|
||||
if (!module[key]) return;
|
||||
module = module[key];
|
||||
}
|
||||
|
||||
const originalFunction = module[funcName];
|
||||
if (typeof originalFunction !== 'function') return;
|
||||
|
||||
module[funcName] = (...args) => {
|
||||
try {
|
||||
return callback(originalFunction, ...args);
|
||||
} catch {
|
||||
return originalFunction(...args);
|
||||
}
|
||||
};
|
||||
|
||||
} catch {
|
||||
return;
|
||||
}
|
||||
|
||||
const originalFunction = module[funcName];
|
||||
module[funcName] = (...args) => callback(originalFunction, ...args);
|
||||
};
|
||||
|
||||
window.injectToFunction({ module: 'WAWebBackendJobsCommon', function: 'mediaTypeFromProtobuf' }, (func, ...args) => { const [proto] = args; return proto.locationMessage ? null : func(...args); });
|
||||
|
||||
window.injectToFunction({ module: 'WAWebE2EProtoUtils', function: 'typeAttributeFromProtobuf' }, (func, ...args) => { const [proto] = args; return proto.locationMessage || proto.groupInviteMessage ? 'text' : func(...args); });
|
||||
|
||||
window.injectToFunction({ module: 'WAWebLid1X1MigrationGating', function: 'Lid1X1MigrationUtils.isLidMigrated' }, () => false);
|
||||
};
|
||||
</code></pre>
|
||||
</article>
|
||||
|
|
@ -272,7 +289,7 @@ exports.ExposeStore = () => {
|
|||
<footer id="jsdoc-footer" class="jsdoc-footer">
|
||||
<div id="jsdoc-footer-container">
|
||||
<p>
|
||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on September 10, 2025.
|
||||
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.11 on November 6, 2025.
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
|||
Loading…
Reference in a new issue