Comparing version 0.1.2 to 0.1.3
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Minijanus = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
/** Whether to log information about incoming and outgoing Janus signals. **/ | ||
var verbose = false; | ||
/** | ||
@@ -91,3 +94,5 @@ * Represents a handle to a single Janus plugin on a Janus session. Each WebRTC connection to the Janus server will be | ||
JanusSession.prototype.receive = function(signal) { | ||
console.debug("Incoming Janus signal: ", signal); | ||
if (verbose) { | ||
console.debug("Incoming Janus signal: ", signal); | ||
} | ||
if (signal.transaction != null) { | ||
@@ -114,3 +119,5 @@ var handlers = this.txns[signal.transaction]; | ||
JanusSession.prototype.send = function(signal) { | ||
console.debug("Outgoing Janus signal: ", signal); | ||
if (verbose) { | ||
console.debug("Outgoing Janus signal: ", signal); | ||
} | ||
signal = Object.assign({ | ||
@@ -149,3 +156,4 @@ session_id: this.id, | ||
JanusPluginHandle, | ||
JanusSession | ||
JanusSession, | ||
verbose | ||
}; | ||
@@ -152,0 +160,0 @@ |
@@ -0,1 +1,4 @@ | ||
/** Whether to log information about incoming and outgoing Janus signals. **/ | ||
var verbose = false; | ||
/** | ||
@@ -90,3 +93,5 @@ * Represents a handle to a single Janus plugin on a Janus session. Each WebRTC connection to the Janus server will be | ||
JanusSession.prototype.receive = function(signal) { | ||
console.debug("Incoming Janus signal: ", signal); | ||
if (verbose) { | ||
console.debug("Incoming Janus signal: ", signal); | ||
} | ||
if (signal.transaction != null) { | ||
@@ -113,3 +118,5 @@ var handlers = this.txns[signal.transaction]; | ||
JanusSession.prototype.send = function(signal) { | ||
console.debug("Outgoing Janus signal: ", signal); | ||
if (verbose) { | ||
console.debug("Outgoing Janus signal: ", signal); | ||
} | ||
signal = Object.assign({ | ||
@@ -148,3 +155,4 @@ session_id: this.id, | ||
JanusPluginHandle, | ||
JanusSession | ||
JanusSession, | ||
verbose | ||
}; |
{ | ||
"name": "minijanus", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Really simple and minimal wrapper for talking to the Janus signalling API.", | ||
@@ -5,0 +5,0 @@ "main": "minijanus.js", |
66176
321