Socket
Socket
Sign inDemoInstall

@juzi/whatsapp-web.js

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@juzi/whatsapp-web.js - npm Package Compare versions

Comparing version 1.16.5 to 1.16.6

2

index.d.ts

@@ -310,3 +310,3 @@

/** Puppeteer launch options. View docs here: https://github.com/puppeteer/puppeteer/ */
puppeteer?: puppeteer.LaunchOptions & puppeteer.BrowserLaunchArgumentOptions & puppeteer.BrowserConnectOptions
puppeteer?: puppeteer.PuppeteerNodeLaunchOptions & puppeteer.ConnectOptions
/** Determines how to save and restore sessions. Will use LegacySessionAuth if options.session is set. Otherwise, NoAuth will be used. */

@@ -313,0 +313,0 @@ authStrategy?: AuthStrategy,

{
"name": "@juzi/whatsapp-web.js",
"version": "1.16.5",
"version": "1.16.6",
"description": "Library for interacting with the WhatsApp Web API ",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -1,2 +0,2 @@

[![npm](https://img.shields.io/npm/v/whatsapp-web.js.svg)](https://www.npmjs.com/package/whatsapp-web.js) [![Depfu](https://badges.depfu.com/badges/4a65a0de96ece65fdf39e294e0c8dcba/overview.svg)](https://depfu.com/github/pedroslopez/whatsapp-web.js?project_id=9765) ![WhatsApp_Web 2.2208.7](https://img.shields.io/badge/WhatsApp_Web-2.2208.7-brightgreen.svg) [![Discord Chat](https://img.shields.io/discord/698610475432411196.svg?logo=discord)](https://discord.gg/H7DqQs4)
[![npm](https://img.shields.io/npm/v/whatsapp-web.js.svg)](https://www.npmjs.com/package/whatsapp-web.js) [![Depfu](https://badges.depfu.com/badges/4a65a0de96ece65fdf39e294e0c8dcba/overview.svg)](https://depfu.com/github/pedroslopez/whatsapp-web.js?project_id=9765) ![WhatsApp_Web 2.2212.8](https://img.shields.io/badge/WhatsApp_Web-2.2212.8-brightgreen.svg) [![Discord Chat](https://img.shields.io/discord/698610475432411196.svg?logo=discord)](https://discord.gg/H7DqQs4)

@@ -3,0 +3,0 @@ # whatsapp-web.js

@@ -54,3 +54,3 @@ 'use strict';

const isMD = await this.client.pupPage.evaluate(() => {
return window.Store.Features.features.MD_BACKEND;
return window.Store.MDBackend;
});

@@ -73,2 +73,2 @@

module.exports = LegacySessionAuth;
module.exports = LegacySessionAuth;

@@ -751,3 +751,3 @@ 'use strict';

if(window.Store.Features.features.MD_BACKEND) {
if(window.Store.MDBackend) {
// TODO

@@ -896,15 +896,11 @@ return false;

const profilePic = await this.pupPage.evaluate(async contactId => {
let asyncPic;
if (window.Store.Features.features.MD_BACKEND) {
try {
const chatWid = window.Store.WidFactory.createWid(contactId);
asyncPic = await window.Store.getProfilePicFull(chatWid).catch(() => {
return undefined;
});
} else {
asyncPic = await window.Store.Wap.profilePicFind(contactId).catch(() => {
return undefined;
});
return await window.Store.ProfilePic.profilePicFind(chatWid);
} catch (err) {
if(err.name === 'ServerStatusCodeError') return undefined;
throw err;
}
return asyncPic;
}, contactId);
return profilePic ? profilePic.eurl : undefined;

@@ -1019,3 +1015,3 @@ }

const participantWIDs = participantIds.map(p => window.Store.WidFactory.createWid(p));
const id = window.Store.genId();
const id = window.Store.MsgKey.newId();
const res = await window.Store.GroupUtils.sendCreateGroup(name, participantWIDs, undefined, id);

@@ -1022,0 +1018,0 @@ return res;

@@ -46,3 +46,3 @@ 'use strict';

*/
this.chatId = typeof (data.to) === 'object' ? data.to._serialized : data.to;
this.chatId = typeof (data.id.remote) === 'object' ? data.id.remote._serialized : data.id.remote;

@@ -49,0 +49,0 @@ /**

@@ -16,3 +16,4 @@ 'use strict';

window.Store.DownloadManager = window.mR.findModule('downloadManager')[0].downloadManager;
window.Store.Features = window.mR.findModule('FEATURE_CHANGE_EVENT')[0].GK;
window.Store.MDBackend = window.mR.findModule('isMDBackend')[0].isMDBackend();
window.Store.Features = window.mR.findModule('FEATURE_CHANGE_EVENT')[0].LegacyPhoneFeatures;
window.Store.GroupMetadata = window.mR.findModule((module) => module.default && module.default.handlePendingInvite)[0].default;

@@ -44,3 +45,3 @@ window.Store.Invite = window.mR.findModule('sendJoinGroupViaInvite')[0];

window.Store.WidFactory = window.mR.findModule('createWid')[0];
window.Store.getProfilePicFull = window.mR.findModule('profilePicFind')[0].profilePicFind;
window.Store.ProfilePic = window.mR.findModule('profilePicResync')[0];
window.Store.PresenceUtils = window.mR.findModule('sendPresenceAvailable')[0];

@@ -164,3 +165,3 @@ window.Store.ChatState = window.mR.findModule('sendChatStateComposing')[0];

// Not supported yet by WhatsApp Web on MD
if(!window.Store.Features.features.MD_BACKEND) {
if(!window.Store.MDBackend) {
const link = window.Store.Validators.findLink(content);

@@ -217,3 +218,3 @@ if (link) {

const meUser = window.Store.User.getMaybeMeUser();
const isMD = window.Store.Features.features.MD_BACKEND;
const isMD = window.Store.MDBackend;

@@ -519,3 +520,3 @@ const newMsgId = new window.Store.MsgKey({

window.WWebJS.sendChatstate = async (state, chatId) => {
if (window.Store.Features.features.MD_BACKEND) {
if (window.Store.MDBackend) {
chatId = window.Store.WidFactory.createWid(chatId);

@@ -522,0 +523,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc