@stone-wpp/ofc 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -30
- package/lib/Signal/lid-mapping.js +9 -1
- package/lib/Socket/group-protection.d.ts +146 -0
- package/lib/Socket/group-protection.js +571 -0
- package/lib/Socket/index.d.ts +1 -1
- package/lib/Socket/index.js +3 -1
- package/lib/Socket/messages-recv.js +47 -28
- package/lib/Socket/messages-send.js +10 -5
- package/lib/Socket/socket.js +7 -1
- package/lib/Socket/stone-call-audio.js +118 -0
- package/lib/Socket/stone-call-keys.js +96 -0
- package/lib/Socket/stone-call-signaling.js +127 -0
- package/lib/Socket/stone-calls.d.ts +76 -0
- package/lib/Socket/stone-calls.js +311 -0
- package/lib/Socket/stone-features.d.ts +13 -0
- package/lib/Socket/stone-features.js +85 -0
- package/lib/Socket/stone-pairing-state.js +7 -0
- package/lib/Socket/stone-voip-bridge.js +263 -0
- package/lib/Socket/stone-voip-codec.js +33 -0
- package/lib/Socket/stone-voip-group.js +112 -0
- package/lib/Socket/stone-voip-identity.js +26 -0
- package/lib/Socket/stone-voip-offer-audit.js +49 -0
- package/lib/Socket/stone-voip-transport.js +44 -0
- package/lib/Types/Events.d.ts +55 -0
- package/lib/Utils/messages-media.js +15 -1
- package/lib/Utils/validate-connection.js +2 -0
- package/package.json +20 -4
- package/lib/Socket/chats.js.bak +0 -1198
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stone-wpp/ofc",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.7",
|
|
5
5
|
"description": "Stone WPP — biblioteca modular para WhatsApp em Node.js: conexão, mensagens, grupos, canais, armazenamento e extensões",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"stone-wpp",
|
|
@@ -26,15 +26,23 @@
|
|
|
26
26
|
"Protocol/**/*",
|
|
27
27
|
"engine-requirements.js",
|
|
28
28
|
"README.md",
|
|
29
|
-
"LICENSE"
|
|
29
|
+
"LICENSE",
|
|
30
|
+
"!lib/**/*.test.mjs",
|
|
31
|
+
"!lib/Socket/vox.mjs",
|
|
32
|
+
"!lib/**/*.bak"
|
|
30
33
|
],
|
|
31
34
|
"scripts": {
|
|
32
|
-
"preinstall": "node ./engine-requirements.js"
|
|
35
|
+
"preinstall": "node ./engine-requirements.js",
|
|
36
|
+
"test": "node --test lib/Socket/stone-calls.test.mjs lib/Socket/group-protection.test.mjs lib/Signal/stability-1.0.7.test.mjs lib/Socket/stone-call-signaling.test.mjs lib/Socket/stone-call-keys.test.mjs lib/Socket/stone-call-audio.test.mjs lib/Socket/stone-pairing-state.test.mjs lib/Socket/stone-voip-bridge.test.mjs lib/Socket/stone-voip-codec.test.mjs lib/Socket/stone-voip-transport.test.mjs lib/Socket/vox.mjs lib/Socket/stone-voip-group.test.mjs lib/Socket/stone-voip-identity.test.mjs lib/Socket/stone-voip-offer-audit.test.mjs",
|
|
37
|
+
"prepublishOnly": "npm test",
|
|
38
|
+
"release:check": "npm test && npm pack --dry-run"
|
|
33
39
|
},
|
|
34
40
|
"dependencies": {
|
|
35
41
|
"@cacheable/node-cache": "^1.4.0",
|
|
36
42
|
"@hapi/boom": "^9.1.3",
|
|
43
|
+
"@zapo-js/voip": "^1.4.0",
|
|
37
44
|
"async-mutex": "^0.5.0",
|
|
45
|
+
"libmlow-wasm-fork": "^0.2.0",
|
|
38
46
|
"libsignal": "^6.0.0",
|
|
39
47
|
"lru-cache": "^11.1.0",
|
|
40
48
|
"music-metadata": "^11.12.3",
|
|
@@ -42,7 +50,8 @@
|
|
|
42
50
|
"pino": "^9.6",
|
|
43
51
|
"protobufjs": "^7.5.6",
|
|
44
52
|
"whatsapp-rust-bridge": "0.5.4",
|
|
45
|
-
"ws": "^8.13.0"
|
|
53
|
+
"ws": "^8.13.0",
|
|
54
|
+
"zapo-js": "^1.0.0"
|
|
46
55
|
},
|
|
47
56
|
"peerDependencies": {
|
|
48
57
|
"audio-decode": "^2.1.3",
|
|
@@ -95,11 +104,18 @@
|
|
|
95
104
|
"node": ">=20.0.0"
|
|
96
105
|
},
|
|
97
106
|
"private": false,
|
|
107
|
+
"publishConfig": {
|
|
108
|
+
"access": "public"
|
|
109
|
+
},
|
|
98
110
|
"repository": {
|
|
99
111
|
"type": "git",
|
|
100
112
|
"url": "git+https://github.com/dylan-Modz/stone-wpp-ofc.git"
|
|
101
113
|
},
|
|
102
114
|
"bugs": {
|
|
103
115
|
"url": "https://github.com/dylan-Modz/stone-wpp-ofc/issues"
|
|
116
|
+
},
|
|
117
|
+
"optionalDependencies": {
|
|
118
|
+
"@roamhq/wrtc": "^0.10.0",
|
|
119
|
+
"ffmpeg-static": "^5.2.0"
|
|
104
120
|
}
|
|
105
121
|
}
|