[Pkg-javascript-commits] [sockjs-client] 165/350: Don't create unnecessary eventsource driver file

tonnerre at ancient-solutions.com tonnerre at ancient-solutions.com
Fri Aug 5 01:04:05 UTC 2016


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.

commit 5a13d7b8766841ec2debbe2e70ed8ca256e525be
Author: Bryce Kahle <bkahle at gmail.com>
Date:   Fri Oct 17 14:39:18 2014 -0400

    Don't create unnecessary eventsource driver file
---
 lib/transport/driver/eventsource.js   | 1 -
 lib/transport/receiver/eventsource.js | 2 +-
 package.json                          | 1 +
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/transport/driver/eventsource.js b/lib/transport/driver/eventsource.js
deleted file mode 100644
index 6c8d649..0000000
--- a/lib/transport/driver/eventsource.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('eventsource');
diff --git a/lib/transport/receiver/eventsource.js b/lib/transport/receiver/eventsource.js
index 728a9f9..6ac372b 100644
--- a/lib/transport/receiver/eventsource.js
+++ b/lib/transport/receiver/eventsource.js
@@ -3,7 +3,7 @@
 var util = require('util')
   , EventEmitter = require('events').EventEmitter
   , debug = require('debug')('sockjs-client:receiver:eventsource')
-  , EventSourceDriver = require('../driver/eventsource')
+  , EventSourceDriver = require('eventsource')
   ;
 
 function EventSourceReceiver(url) {
diff --git a/package.json b/package.json
index ab42eed..6081d97 100644
--- a/package.json
+++ b/package.json
@@ -6,6 +6,7 @@
   "browser": {
     "./lib/transport/driver/websocket.js": "./lib/transport/browser/websocket.js",
     "./lib/transport/driver/eventsource.js": "./lib/transport/browser/eventsource.js",
+    "eventsource": "./lib/transport/browser/eventsource.js",
     "./lib/transport/driver/xhr.js": "./lib/transport/browser/abstract-xhr.js",
     "crypto": "./lib/utils/browser-crypto.js"
   },

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list