Explorar o código

Publish to NPM

Jairo %!s(int64=7) %!d(string=hai) anos
pai
achega
73d9173c3e
Modificáronse 4 ficheiros con 18 adicións e 18 borrados
  1. 9 9
      dist/peer.js
  2. 0 0
      dist/peer.min.js
  3. 8 8
      lib/peer.js
  4. 1 1
      package.json

+ 9 - 9
dist/peer.js

@@ -1,4 +1,4 @@
-/*! peerjs build:0.3.14, development. Copyright(c) 2013 Michelle Bu <michelle@michellebu.com> */(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){
+/*! peerjs build:0.3.15, development. Copyright(c) 2013 Michelle Bu <michelle@michellebu.com> */(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){
 module.exports.RTCSessionDescription = window.RTCSessionDescription ||
 	window.mozRTCSessionDescription;
 module.exports.RTCPeerConnection = window.RTCPeerConnection ||
@@ -766,13 +766,13 @@ function Peer(id, options) {
       debug: 0, // 1: Errors, 2: Warnings, 3: All logs
       host: util.CLOUD_HOST,
       port: util.CLOUD_PORT,
-      key: "peerjs",
       path: "/",
       token: util.randomToken(),
       config: util.defaultConfig
     },
     options
   );
+  options.key = "peerjs";
   this.options = options;
   // Detect relative URL host.
   if (options.host === "/") {
@@ -812,13 +812,13 @@ function Peer(id, options) {
     return;
   }
   // Ensure valid key
-  if (!util.validateKey(options.key)) {
-    this._delayedAbort(
-      "invalid-key",
-      'API KEY "' + options.key + '" is invalid'
-    );
-    return;
-  }
+  // if (!util.validateKey(options.key)) {
+  //   this._delayedAbort(
+  //     "invalid-key",
+  //     'API KEY "' + options.key + '" is invalid'
+  //   );
+  //   return;
+  // }
   // Ensure not using unsecure cloud server on SSL page
   // if (options.secure && options.host === "0.peerjs.com") {
   //   this._delayedAbort(

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/peer.min.js


+ 8 - 8
lib/peer.js

@@ -27,13 +27,13 @@ function Peer(id, options) {
       debug: 0, // 1: Errors, 2: Warnings, 3: All logs
       host: util.CLOUD_HOST,
       port: util.CLOUD_PORT,
-      key: "peerjs",
       path: "/",
       token: util.randomToken(),
       config: util.defaultConfig
     },
     options
   );
+  options.key = "peerjs";
   this.options = options;
   // Detect relative URL host.
   if (options.host === "/") {
@@ -73,13 +73,13 @@ function Peer(id, options) {
     return;
   }
   // Ensure valid key
-  if (!util.validateKey(options.key)) {
-    this._delayedAbort(
-      "invalid-key",
-      'API KEY "' + options.key + '" is invalid'
-    );
-    return;
-  }
+  // if (!util.validateKey(options.key)) {
+  //   this._delayedAbort(
+  //     "invalid-key",
+  //     'API KEY "' + options.key + '" is invalid'
+  //   );
+  //   return;
+  // }
   // Ensure not using unsecure cloud server on SSL page
   // if (options.secure && options.host === "0.peerjs.com") {
   //   this._delayedAbort(

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "peerjs",
-  "version": "0.3.14",
+  "version": "0.3.16",
   "description": "PeerJS client",
   "main": "./lib/peer.js",
   "repository": {

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio