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

@types/simple-peer

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/simple-peer - npm Package Compare versions

Comparing version 6.1.0 to 6.1.1

15

simple-peer/index.d.ts

@@ -13,3 +13,3 @@ // Type definitions for simple-peer 6.1

declare namespace SimplePeer {
export interface Options {
interface Options {
initiator?: boolean; // set to true if this is the initiating peer

@@ -23,3 +23,3 @@ channelConfig?: {}; // custom webrtc data channel configuration (used by createDataChannel)

reconnectTimer?: boolean | number; // wait __ milliseconds after ICE 'disconnect' for reconnect attempt before emitting 'close'
sdpTransform?: <T extends any>(sdp: T) => T; // function to transform the generated SDP signaling data (for advanced users)
sdpTransform?<T extends any>(sdp: T): T; // function to transform the generated SDP signaling data (for advanced users)
stream?: boolean; // if video/voice is desired, pass stream returned from getUserMedia

@@ -31,3 +31,3 @@ trickle?: boolean; // set to false to disable trickle ICE and get a single 'signal' event (slower)

// https://github.com/feross/simple-peer/tree/v6.1.5#peer--new-simplepeeropts
export interface SimplePeer {
interface SimplePeer {
new (opts?: Options): Instance;

@@ -40,7 +40,7 @@ (opts?: Options): Instance;

export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
export type SimplePeerData = string | Buffer | TypedArray | ArrayBuffer | Blob;
type SimplePeerData = string | Buffer | TypedArray | ArrayBuffer | Blob;
export interface SignalData {
interface SignalData {
sdp?: any;

@@ -50,4 +50,3 @@ candidate?: any;

export interface Instance extends stream.Duplex {
interface Instance extends stream.Duplex {
// https://github.com/feross/simple-peer/tree/v6.1.5#peersignaldata

@@ -54,0 +53,0 @@ signal(data: string | SignalData): void;

{
"name": "@types/simple-peer",
"version": "6.1.0",
"version": "6.1.1",
"description": "TypeScript definitions for simple-peer",
"license": "MIT",
"author": "Tomasz Łaziuk <https://github.com/tlaziuk>",
"contributors": [
{
"name": "Tomasz Łaziuk",
"url": "https://github.com/tlaziuk"
}
],
"main": "",

@@ -17,4 +22,4 @@ "repository": {

"peerDependencies": {},
"typesPublisherContentHash": "708b094c572777a4d51f6475577eeab1df7ef1177f08955609a24a7c7f8f2ce0",
"typesPublisherContentHash": "dd8451dee1bd310a538b58e79d49f32d27b3c49dac988fb9cb4ad5431b61984b",
"typeScriptVersion": "2.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Tue, 17 Jan 2017 21:09:53 GMT
* Last updated: Tue, 28 Mar 2017 19:51:22 GMT
* Dependencies: stream, node

@@ -14,0 +14,0 @@ * Global values: none

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