@signalapp/ringrtc 2.34.1 → 2.34.4
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/dist/acknowledgments.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signalapp/ringrtc",
|
|
3
|
-
"version": "2.34.
|
|
3
|
+
"version": "2.34.4",
|
|
4
4
|
"description": "Signal Messenger voice and video calling library.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,11 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
"config": {
|
|
26
26
|
"prebuildUrl": "https://build-artifacts.signal.org/libraries/ringrtc-desktop-build-v${npm_package_version}.tar.gz",
|
|
27
|
-
"prebuildChecksum": "
|
|
27
|
+
"prebuildChecksum": "8c94d3dfb6b79167d8a7be3361426d5421c4816d5158ef9507cd051dbd4d75f6"
|
|
28
28
|
},
|
|
29
29
|
"author": "",
|
|
30
30
|
"license": "AGPL-3.0-only",
|
|
31
31
|
"dependencies": {
|
|
32
|
+
"https-proxy-agent": "7.0.1",
|
|
32
33
|
"tar": "^6.1.0"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
/* eslint-disable no-console */
|
|
7
7
|
|
|
8
8
|
const https = require('https');
|
|
9
|
+
const { HttpsProxyAgent } = require('https-proxy-agent');
|
|
9
10
|
const fs = require('fs');
|
|
10
11
|
const path = require('path');
|
|
11
12
|
const crypto = require('crypto');
|
|
@@ -51,7 +52,11 @@ async function downloadIfNeeded() {
|
|
|
51
52
|
function download() {
|
|
52
53
|
console.log(`downloading ${URL}`);
|
|
53
54
|
return new Promise((resolve, reject) => {
|
|
54
|
-
|
|
55
|
+
let options = {};
|
|
56
|
+
if (process.env.HTTPS_PROXY != undefined) {
|
|
57
|
+
options.agent = new HttpsProxyAgent(process.env.HTTPS_PROXY);
|
|
58
|
+
}
|
|
59
|
+
https.get(URL, options, async res => {
|
|
55
60
|
try {
|
|
56
61
|
const out = fs.createWriteStream(tmpFile);
|
|
57
62
|
|