Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pushprotocol/restapi

Package Overview
Dependencies
Maintainers
1
Versions
251
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pushprotocol/restapi - npm Package Compare versions

Comparing version 0.0.1-alpha.0 to 0.0.1-alpha.1

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Changelog

## [0.0.1-alpha.1](https://github.com/ethereum-push-notification-service/push-sdk/compare/restapi-0.0.1-alpha.0...restapi-0.0.1-alpha.1) (2023-05-08)
### Bug Fixes
* Merge branch 'alpha' into alpha-deployment ([1223c60](https://github.com/ethereum-push-notification-service/push-sdk/commit/1223c60b0f179b26537992a776155aefffd7b5ef))
* sendVideoNotification and end video call logic ([#367](https://github.com/ethereum-push-notification-service/push-sdk/issues/367)) ([d39c703](https://github.com/ethereum-push-notification-service/push-sdk/commit/d39c703bcda6d332717a5e9b1af6ab574be9d991))
## [0.0.1-alpha.0](https://github.com/ethereum-push-notification-service/push-sdk/compare/restapi-0.0.1-beta.2...restapi-0.0.1-alpha.0) (2023-05-04)

@@ -7,0 +17,0 @@

3

package.json
{
"name": "@pushprotocol/restapi",
"version": "0.0.1-alpha.0",
"version": "0.0.1-alpha.1",
"type": "commonjs",

@@ -19,2 +19,3 @@ "publishConfig": {

"uuid": "^9.0.0",
"react": "17.0.2",
"tslib": "^2.3.0"

@@ -21,0 +22,0 @@ },

@@ -28,3 +28,2 @@ "use strict";

identityType: 2,
hidden: true,
notification: {

@@ -31,0 +30,0 @@ title: 'VideoCall',

@@ -6,2 +6,3 @@ import * as React from 'react';

private chainId;
private pgpPrivateKey;
private env;

@@ -8,0 +9,0 @@ private peerInstance;

@@ -17,2 +17,3 @@ "use strict";

this.chainId = undefined;
this.pgpPrivateKey = null;
this.env = constants_1.default.ENV.PROD;

@@ -98,2 +99,3 @@ // storing the peer instance

this.chainId = chainId;
this.pgpPrivateKey = pgpPrivateKey;
this.env = env;

@@ -169,2 +171,3 @@ return {

this.chainId = chainId;
this.pgpPrivateKey = pgpPrivateKey;
this.env = env;

@@ -198,22 +201,13 @@ return {

}
if (this.videoCallInfo.callStatus === 2 || this.videoCallInfo.callStatus === 1) {
if (!this.signer)
throw new Error('signer not valid');
if (!this.chainId)
throw new Error('chainId not valid');
if (!this.env)
throw new Error('env is not valid');
// for disconnecting during status 1
// send a notif to the other computer signaling status:4
// sendVideoCallNotification(
// { signer: this.signer, chainId: this.chainId },
// {
// senderAddress: this.videoCallInfo.senderAddress,
// recipientAddress: this.videoCallInfo.receiverAddress,
// status: 4,
// chatId: this.videoCallInfo.chatId,
// signalingData: null,
// env: this.env,
// }
// );
if (this.videoCallInfo.callStatus === 1 || this.videoCallInfo.callStatus === 2) {
// for disconnecting during status 1, 2
// send a notif to the other user signaling status=4
(0, sendVideoCallNotification_1.default)({ signer: this.signer, chainId: this.chainId, pgpPrivateKey: this.pgpPrivateKey }, {
senderAddress: this.videoCallInfo.senderAddress,
recipientAddress: this.videoCallInfo.receiverAddress,
status: 4,
chatId: this.videoCallInfo.chatId,
signalingData: null,
env: this.env,
});
window.location.reload();

@@ -220,0 +214,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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