New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

waweb-phi

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

waweb-phi - npm Package Compare versions

Comparing version 0.1.20 to 0.1.21

2

package.json
{
"name": "waweb-phi",
"version": "0.1.20",
"version": "0.1.21",
"description": "control whatsapp web with nodejs",

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

@@ -79,2 +79,3 @@ # WAWEB-phi

## Update
- 26/02/2021 (v0.1.21) fix Update from wa
- 20/11/2020 (v0.1.20) fix Update from wa

@@ -81,0 +82,0 @@ - 27/03/2020 (v0.1.19) Update puppeter to last version, now headless mode can run on linux cli

@@ -15,5 +15,5 @@ 'use strict';

exports.Selectors = {
KEEP_PHONE_CONNECTED_IMG_SELECTOR: '._2ruyW',
QR_CONTAINER_SELECTOR: '._3l6Cf',
QR_VALUE_SELECTOR: '._1yHR2',
KEEP_PHONE_CONNECTED_IMG_SELECTOR: '._3U29Q',
QR_CONTAINER_SELECTOR: '.O1rXL',
QR_VALUE_SELECTOR: '._3jid7',
}

@@ -20,0 +20,0 @@

@@ -14,3 +14,3 @@ /**

let neededObjects = [
{ id: "Store", conditions: (module) => (module.default && module.default.Chat && module.default.Msg) ? module.default : null},
{ id: "Store", conditions: (module) => (module.default && module.default.Chat && module.default.Msg) ? module.default : null },
// { id: "MediaCollection", conditions: (module) => (module.default && module.default.prototype && module.default.prototype.processFiles !== undefined) ? module.default : null },

@@ -35,46 +35,34 @@ { id: "MediaCollection", conditions: (module) => (module.default && module.default.prototype && module.default.prototype.processAttachments) ? module.default : null },

if ((typeof modules[idx] === "object") && (modules[idx] !== null)) {
let first = Object.values(modules[idx])[0];
if ((typeof first === "object") && (first.exports)) {
for (let idx2 in modules[idx]) {
let module = modules(idx2);
if (!module) {
continue;
}
neededObjects.forEach((needObj) => {
if (!needObj.conditions || needObj.foundedModule)
return;
let neededModule = needObj.conditions(module);
if (neededModule !== null) {
foundCount++;
needObj.foundedModule = neededModule;
}
});
if (foundCount == neededObjects.length) {
break;
}
neededObjects.forEach((needObj) => {
if (!needObj.conditions || needObj.foundedModule)
return;
let neededModule = needObj.conditions(modules[idx]);
if (neededModule !== null) {
foundCount++;
needObj.foundedModule = neededModule;
}
});
let neededStore = neededObjects.find((needObj) => needObj.id === "Store");
window.Store = neededStore.foundedModule ? neededStore.foundedModule : {};
neededObjects.splice(neededObjects.indexOf(neededStore), 1);
neededObjects.forEach((needObj) => {
if (needObj.foundedModule) {
window.Store[needObj.id] = needObj.foundedModule;
}
});
window.Store.sendMessage = function (e) {
return window.Store.SendTextMsgToChat(this, ...arguments);
}
if(window.Store.MediaCollection) window.Store.MediaCollection.prototype.processFiles = window.Store.MediaCollection.prototype.processFiles || window.Store.MediaCollection.prototype.processAttachments;
return window.Store;
if (foundCount == neededObjects.length) {
break;
}
}
}
let neededStore = neededObjects.find((needObj) => needObj.id === "Store");
window.Store = neededStore.foundedModule ? neededStore.foundedModule : {};
neededObjects.splice(neededObjects.indexOf(neededStore), 1);
neededObjects.forEach((needObj) => {
if (needObj.foundedModule) {
window.Store[needObj.id] = needObj.foundedModule;
}
});
window.Store.Chat.modelClass.prototype.sendMessage = function (e) {
window.Store.SendTextMsgToChat(this, ...arguments);
}
return window.Store;
}
const parasite = `parasite${Date.now()}`
// webpackJsonp([], { [parasite]: (x, y, z) => getStore(z) }, [parasite]);
if (typeof webpackJsonp === 'function') webpackJsonp([], { [parasite]: (x, y, z) => getStore(z) }, [parasite]);
else webpackJsonp.push([[parasite], { [parasite]: (x, y, z) => getStore(z) }, [[parasite]]]);
else webpackChunkbuild.push([[parasite], {}, function (o, e, t) { let modules = []; for (let idx in o.m) { modules.push(o(idx)); } getStore(modules); }]);
})();

@@ -81,0 +69,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