@signalapp/ringrtc 2.36.0 → 2.37.1

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.
@@ -669,7 +669,7 @@ For more information on this, and how to apply and follow the GNU AGPL, see
669
669
 
670
670
  ```
671
671
 
672
- ## libsignal-core 0.1.0, partial-default-derive 0.1.0, regex-aot 0.1.0, ringrtc 2.36.0
672
+ ## libsignal-core 0.1.0, partial-default-derive 0.1.0, regex-aot 0.1.0, ringrtc 2.37.1
673
673
 
674
674
  ```
675
675
  GNU AFFERO GENERAL PUBLIC LICENSE
@@ -411,11 +411,11 @@ export declare class RemoteDeviceState {
411
411
  presenting: boolean | undefined;
412
412
  sharingScreen: boolean | undefined;
413
413
  videoAspectRatio: number | undefined;
414
- addedTime: string | undefined;
415
- speakerTime: string | undefined;
414
+ addedTime: string;
415
+ speakerTime: string;
416
416
  forwardingVideo: boolean | undefined;
417
417
  isHigherResolutionPending: boolean;
418
- constructor(demuxId: number, userId: Buffer, mediaKeysReceived: boolean);
418
+ constructor(demuxId: number, userId: Buffer, addedTime: string, speakerTime: string, mediaKeysReceived: boolean);
419
419
  }
420
420
  export declare class GroupMemberInfo {
421
421
  userId: Buffer;
@@ -1400,11 +1400,13 @@ class LocalDeviceState {
1400
1400
  exports.LocalDeviceState = LocalDeviceState;
1401
1401
  // All remote devices in a group call and their associated state.
1402
1402
  class RemoteDeviceState {
1403
- constructor(demuxId, userId, mediaKeysReceived) {
1403
+ constructor(demuxId, userId, addedTime, speakerTime, mediaKeysReceived) {
1404
1404
  this.demuxId = demuxId;
1405
1405
  this.userId = userId;
1406
1406
  this.mediaKeysReceived = mediaKeysReceived;
1407
1407
  this.audioLevel = 0;
1408
+ this.addedTime = addedTime;
1409
+ this.speakerTime = speakerTime;
1408
1410
  this.isHigherResolutionPending = false;
1409
1411
  }
1410
1412
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalapp/ringrtc",
3
- "version": "2.36.0",
3
+ "version": "2.37.1",
4
4
  "description": "Signal Messenger voice and video calling library.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "config": {
27
27
  "prebuildUrl": "https://build-artifacts.signal.org/libraries/ringrtc-desktop-build-v${npm_package_version}.tar.gz",
28
- "prebuildChecksum": "048a7ed95d0f56646a000e265eddbcbad00c3806381ab4442cff2d7c44dfdcdb"
28
+ "prebuildChecksum": "1989bca57d789e1ba65c7e7a4d0900bdfd8e3f8b01ff9d6d438ac3417d11d8f8"
29
29
  },
30
30
  "author": "",
31
31
  "license": "AGPL-3.0-only",
@@ -15,11 +15,30 @@ const { Transform } = require('stream');
15
15
  const { pipeline } = require('stream/promises');
16
16
 
17
17
  const VERSION = process.env.npm_package_version;
18
- const URL = process.env.npm_package_config_prebuildUrl.replace(
18
+
19
+ let config;
20
+
21
+ // When installing from the registry, `npm` doesn't set `npm_package_config_*`
22
+ // environment variables. However, unlike `yarn`, `npm` always provides a path
23
+ // to the `package.json` so we can read `config` from it.
24
+ if (process.env.npm_package_json) {
25
+ const json = fs.readFileSync(process.env.npm_package_json, {
26
+ encoding: 'utf8',
27
+ });
28
+
29
+ ({ config } = JSON.parse(json));
30
+ } else {
31
+ config = {
32
+ prebuildUrl: process.env.npm_package_config_prebuildUrl,
33
+ prebuildChecksum: process.env.npm_package_config_prebuildChecksum,
34
+ };
35
+ }
36
+
37
+ const URL = config.prebuildUrl.replace(
19
38
  '${npm_package_version}', // eslint-disable-line no-template-curly-in-string
20
39
  VERSION
21
40
  );
22
- const HASH = process.env.npm_package_config_prebuildChecksum;
41
+ const HASH = config.prebuildChecksum;
23
42
 
24
43
  const tmpFile = path.join(__dirname, 'unverified-prebuild.tmp');
25
44
  const finalFile = path.join(__dirname, 'prebuild.tar.gz');