New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@scrypted/client

Package Overview
Dependencies
Maintainers
1
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scrypted/client - npm Package Compare versions

Comparing version 1.0.59 to 1.0.60

15

dist/packages/client/src/index.js

@@ -228,4 +228,6 @@ "use strict";

const connectionManagementId = `connectionManagement-${Math.random()}`;
const updateSessionId = `updateSessionId-${Math.random()}`;
ready.send(JSON.stringify({
pluginId,
updateSessionId,
connectionManagementId,

@@ -290,2 +292,3 @@ }));

ret.params['connectionManagementId'] = connectionManagementId;
ret.params['updateSessionId'] = updateSessionId;
ret.params['browserSignalingSession'] = session;

@@ -370,3 +373,13 @@ (0, rtc_signaling_1.waitPeerIceConnectionClosed)(pc).then(() => ready.close());

console.log('api attached', Date.now() - start);
const { browserSignalingSession, connectionManagementId } = rpcPeer.params;
const { browserSignalingSession, connectionManagementId, updateSessionId } = rpcPeer.params;
if (updateSessionId && browserSignalingSession) {
systemManager.getComponent('plugins').then(async (plugins) => {
const updateSession = await plugins.getHostParam('@scrypted/webrtc', updateSessionId);
if (!updateSession)
return;
updateSession?.(browserSignalingSession);
socket.removeAllListeners();
socket.close();
});
}
const [userStorage, version, rtcConnectionManagement] = await Promise.all([

@@ -373,0 +386,0 @@ rpcPeer.getParam('userStorage'),

2

package.json
{
"name": "@scrypted/client",
"version": "1.0.59",
"version": "1.0.60",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/packages/client/src/index.js",

@@ -1,2 +0,2 @@

import { ScryptedStatic, RTCConnectionManagement } from "@scrypted/types";
import { ScryptedStatic, RTCConnectionManagement, RTCSignalingSession } from "@scrypted/types";
import axios, { AxiosRequestConfig } from 'axios';

@@ -263,4 +263,6 @@ import * as eio from 'engine.io-client';

const connectionManagementId = `connectionManagement-${Math.random()}`;
const updateSessionId = `updateSessionId-${Math.random()}`;
ready.send(JSON.stringify({
pluginId,
updateSessionId,
connectionManagementId,

@@ -335,2 +337,3 @@ }));

ret.params['connectionManagementId'] = connectionManagementId;
ret.params['updateSessionId'] = updateSessionId;
ret.params['browserSignalingSession'] = session;

@@ -430,3 +433,13 @@

const { browserSignalingSession, connectionManagementId } = rpcPeer.params;
const { browserSignalingSession, connectionManagementId, updateSessionId } = rpcPeer.params;
if (updateSessionId && browserSignalingSession) {
systemManager.getComponent('plugins').then(async plugins => {
const updateSession: (session: RTCSignalingSession)=> void = await plugins.getHostParam('@scrypted/webrtc', updateSessionId);
if (!updateSession)
return;
updateSession?.(browserSignalingSession);
socket.removeAllListeners();
socket.close();
});
}

@@ -433,0 +446,0 @@ const [userStorage, version, rtcConnectionManagement] = await Promise.all([

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