@open-wa/wa-automate 4.66.0 → 4.66.4

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ > [!WARNING]
2
+ > By visiting this page you [explicitly agree to the Terms of Service (read here)](https://github.com/open-wa/wa-automate-nodejs/blob/master/tos.md)
3
+
1
4
  <div align="center">
2
5
  <img src="https://raw.githubusercontent.com/open-wa/wa-automate-nodejs/master/resources/hotfix-logo.png" width="128" height="128"/>
3
6
 
@@ -22,9 +25,9 @@
22
25
 
23
26
  <p align="center">
24
27
  <a href="#functions-list">Key Features</a> •
25
- <a href="https://docs.openwa.dev/pages/Getting%20Started/installation.html">Getting Started</a> •
26
- <a href="https://docs.openwa.dev/pages/Getting%20Started/quick-run.html">Easy API</a> •
27
- <a href="https://docs.openwa.dev/classes/api_Client.Client.html">Documentation</a> •
28
+ <a href="https://docs.openwa.dev/docs/get-started/installation">Getting Started</a> •
29
+ <a href="https://docs.openwa.dev/docs/get-started/quick-run">Easy API</a> •
30
+ <a href="https://docs.openwa.dev/docs/api/classes/api_Client.Client">Documentation</a> •
28
31
  <a href="https://openwa.page.link/key">Get a License Key</a> •
29
32
  <a href="#support">Support</a>
30
33
  </p>
@@ -231,6 +231,16 @@ function create(config = {}) {
231
231
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
232
232
  spinner.succeed('Use this easy pre-filled link to report an issue: ' + (0, tools_1.generateGHIssueLink)(config, debugInfo));
233
233
  spinner.info(`Time to injection: ${((0, tools_1.now)() - browserLaunchedTs).toFixed(0)}ms`);
234
+ /**
235
+ * Atempt to avoid invariant violations
236
+ */
237
+ const invariantAviodanceTs = (0, tools_1.now)();
238
+ yield Promise.race([
239
+ waPage.waitForFunction(`(()=>{if(!window.webpackChunkwhatsapp_web_client && window.webpackChunkwhatsapp_web_client.length) return false; return window.webpackChunkwhatsapp_web_client.length > 15})()`, { timeout: 10000 }).catch(() => { }),
240
+ waPage.waitForFunction(`[...document.getElementsByTagName('div')].filter(x=>x.dataset && x.dataset.testid)[0]?.dataset?.testid === 'qrcode'`, { timeout: 10000 }).catch(() => { }),
241
+ waPage.waitForFunction(`document.getElementsByTagName('circle').length===1`, { timeout: 10000 }).catch(() => { }) //qr spinner is present
242
+ ]);
243
+ spinner.info(`Invariant Violation Avoidance: ${((0, tools_1.now)() - invariantAviodanceTs).toFixed(0)}ms`);
234
244
  if (canInjectEarly) {
235
245
  if (attemptingReauth)
236
246
  yield waPage.evaluate(`window.Store = {"Msg": true}`);
@@ -48,7 +48,7 @@ const sensitiveKeys = [
48
48
  /api[-._]?key/i,
49
49
  ];
50
50
  function isSensitiveKey(keyStr) {
51
- if (keyStr) {
51
+ if (keyStr && typeof keyStr == "string") {
52
52
  return sensitiveKeys.some(regex => regex.test(keyStr));
53
53
  }
54
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.66.0",
3
+ "version": "4.66.4",
4
4
  "licenseCheckUrl": "https://funcs.openwa.dev/license-check",
5
5
  "brokenMethodReportUrl": "https://funcs.openwa.dev/report-bm",
6
6
  "patches": "https://cdn.openwa.dev/patches.json",
@@ -105,7 +105,7 @@
105
105
  },
106
106
  "dependencies": {
107
107
  "@brillout/import": "^0.2.1",
108
- "@discordjs/collection": "^1.5.1",
108
+ "@discordjs/collection": "0.8.0",
109
109
  "@open-wa/wa-automate-socket-client": "*",
110
110
  "@open-wa/wa-decrypt": "^4.3.1",
111
111
  "atob": "^2.1.2",
@@ -182,5 +182,8 @@
182
182
  "winston-daily-rotate-file": "^4.5.5",
183
183
  "winston-syslog": "^2.5.0",
184
184
  "xmlbuilder2": "^3.0.2"
185
+ },
186
+ "overrides": {
187
+ "uuid": "^9.0.0"
185
188
  }
186
189
  }
package/tos.md ADDED
@@ -0,0 +1,77 @@
1
+ # open-wa Project Terms of Service (ToS.md)
2
+
3
+ ## 1. Acceptance of Terms
4
+
5
+ By accessing, using, contemplating, or in any way interacting with the open-wa project, its websites, repositories, or any adjacent or non-adjacent internet properties, you, the user, visitor, or contemplator, hereby agree to these Terms of Service (ToS), both in their current form and as they may be amended, modified, expanded, or shrunk in the future, with or without notice.
6
+
7
+ ## 2. Definitions:
8
+
9
+ 'User': Any individual or entity that interacts with the open-wa project in any capacity.
10
+
11
+ 'Project': The open-wa project and any of its associated or non-associated services, features, or components.
12
+
13
+ 'Maintainers': Individuals, both associated and non-associated, contributing to or overseeing the open-wa project, on GitHub or elsewhere.
14
+
15
+ ## 3. Limitation of Liability:
16
+
17
+ **3.1** The Project and its Maintainers shall not be liable for any actions, claims, damages, or any consequences arising from the use of the Project by Users.
18
+
19
+ ## 4. Usage According to License:
20
+
21
+ **4.1** Users of the Project agree to use it strictly in accordance with its license. Failure to do so will result in penalties akin to those outlined in the anti-spam document, including but not limited to financial remuneration and existential cessation.
22
+
23
+ ## 5. Indemnification:
24
+
25
+ **5.1** By accessing or reading this ToS, or any material related to the open-wa project, Users completely indemnify the Project and its Maintainers from any previous agreements, obligations, or understandings.
26
+
27
+ ## 6. Disclaimer of Affiliation:
28
+
29
+ **6.1** The open-wa Project is not affiliated with WhatsApp, Meta, or any other company, it is community project owned by no one person, although may be guided by temporary stewardships.
30
+
31
+ ## 7. Support for Causes:
32
+
33
+ **7.1** By using the Project, Users explicitly express their support for the liberation of Palestine, from the river to the sea.
34
+
35
+ ## 8. Continuation of Agreement:
36
+
37
+ **8.1** Continuation of existence as a sentient being, human or otherwise, is considered as acceptance of these ToS. Ceasing to exist is the only method to rescind this agreement.
38
+
39
+
40
+ ## 9. Universality of Terms:
41
+
42
+ **9.1** These ToS are binding legally, morally, universally, spiritually, religiously, and in all other conceivable manners, until the heat death of the universe.
43
+
44
+ ## 10. Modification of Terms:
45
+
46
+ **10.1** The Project and its Maintainers reserve the right to modify these ToS at any time, with or without notice.
47
+
48
+ ## 11. Severability:
49
+
50
+ **11.1** If any part of these ToS is found to be invalid or unenforceable, the remaining parts will continue to be in full effect.
51
+
52
+ ## 12. Agreement to Contact Terms:
53
+
54
+ **12.1** Contacting info@openwa.dev to rescind acceptance constitutes an agreement to these ToS.
55
+
56
+ ## 13. Governing Law and Jurisdiction:
57
+
58
+ **13.1** These ToS are governed by the whims, fancies, and current mood of the Project Maintainers and are subject to the laws of every jurisdiction, dimension, and reality.
59
+
60
+ ## 14. Clarification of Project Nomenclature:
61
+
62
+ **14.1** For the purpose of clarity and avoidance of any potential misunderstanding, it is hereby explicitly stated and codified within these Terms that the term 'wa' as utilized in the naming convention of the 'open-wa' project is an abbreviation denoting the term 'walrus'. This definition is established irrespective of any possible semantic associations or perceived affiliations with other entities, trademarks, or intellectual properties.
63
+
64
+ ## 15. Legal Protections for the Project:
65
+
66
+ **15.1** Protection under Van Buren v. United States: Users acknowledge that the Project is protected against any claims under the Computer Fraud and Abuse Act (CFAA), as interpreted by the United States Supreme Court in Van Buren v. United States. This ruling clarifies the extent of authorized access, and as such, the Project's actions and operations fall within the scope of permissible use under this interpretation.
67
+
68
+ **15.2** Directive 2009/24/EC of the European Parliament and of the Council: In compliance with Directive 2009/24/EC, the Project asserts its right to engage in the lawful use of computer programs necessary for its functionality, including any actions deemed necessary for correcting errors.
69
+
70
+ **15.3** EU Digital Markets Act Compliance: Given the designation of WhatsApp as a 'gatekeeper' under the EU Digital Markets Act, the Project operates under the regulations and stipulations set forth in this act, particularly concerning digital services and their interoperability within the EU market.
71
+
72
+ **15.4** Digital Right of Interoperability and Deshittification: The Project asserts its digital right to interoperability, both adversarial and cooperative, under the principles of digital freedom and improvement of digital services ('deshittification'). This assertion is in line with the growing recognition of interoperability as a fundamental digital right, facilitating better user experiences and fostering competitive digital environments.
73
+
74
+ ___
75
+
76
+ By continuing to access, use, contemplate, or exist in the same universe as the open-wa project, you hereby acknowledge and agree to these Terms of Service.
77
+