[Pkg-javascript-commits] [ltx] 141/469: name main library file node-xmpp.js
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:01:16 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository ltx.
commit 83a761181e21692f980833679fcae7bc430b05dc
Author: Astro <astro at spaceboyz.net>
Date: Fri Sep 10 04:08:13 2010 +0200
name main library file node-xmpp.js
---
examples/echo_bot.js | 2 +-
examples/echo_component.js | 2 +-
examples/echo_server.js | 2 +-
examples/probe_server.js | 2 +-
examples/send_message.js | 3 +--
examples/send_message_component.js | 3 +--
lib/{xmpp.js => node-xmpp.js} | 0
lib/xmpp.js | 15 +++------------
8 files changed, 9 insertions(+), 20 deletions(-)
diff --git a/examples/echo_bot.js b/examples/echo_bot.js
index 77eeb99..5c55c36 100644
--- a/examples/echo_bot.js
+++ b/examples/echo_bot.js
@@ -2,7 +2,7 @@
* Echo Bot - the XMPP Hello World
**/
var sys = require('sys');
-var xmpp = require('../lib/xmpp');
+var xmpp = require('../lib/node-xmpp');
var argv = process.argv;
if (argv.length != 4) {
diff --git a/examples/echo_component.js b/examples/echo_component.js
index b40f288..45583ce 100644
--- a/examples/echo_component.js
+++ b/examples/echo_component.js
@@ -2,7 +2,7 @@
* Echo Component - the XMPP Hello World
**/
var sys = require('sys');
-var xmpp = require('../lib/xmpp');
+var xmpp = require('../lib/node-xmpp');
var argv = process.argv;
if (argv.length != 6) {
diff --git a/examples/echo_server.js b/examples/echo_server.js
index 1a24b49..b6f5402 100644
--- a/examples/echo_server.js
+++ b/examples/echo_server.js
@@ -1,4 +1,4 @@
-var xmpp = require('../lib/xmpp');
+var xmpp = require('../lib/node-xmpp');
var r = new xmpp.Router();
r.register('codetu.be', function(stanza) {
diff --git a/examples/probe_server.js b/examples/probe_server.js
index 82fae6b..bde02b9 100644
--- a/examples/probe_server.js
+++ b/examples/probe_server.js
@@ -2,7 +2,7 @@
* This example establishes some s2s connections over time. It is a
* router test. You must modify it!
*/
-var xmpp = require('../lib/xmpp');
+var xmpp = require('../lib/node-xmpp');
var MY_JID = 'codetu.be';
var r = new xmpp.Router();
diff --git a/examples/send_message.js b/examples/send_message.js
index 79ca2ea..219e3a7 100644
--- a/examples/send_message.js
+++ b/examples/send_message.js
@@ -1,6 +1,5 @@
-require.paths.push('../lib');
var sys = require('sys');
-var xmpp = require('xmpp');
+var xmpp = require('../lib/node-xmpp');
var argv = process.argv;
if (argv.length < 6) {
diff --git a/examples/send_message_component.js b/examples/send_message_component.js
index a2d82f9..ae2b66a 100644
--- a/examples/send_message_component.js
+++ b/examples/send_message_component.js
@@ -1,6 +1,5 @@
-require.paths.push('../lib');
var sys = require('sys');
-var xmpp = require('xmpp');
+var xmpp = require('../lib/node-xmpp');
var argv = process.argv;
if (argv.length < 6) {
diff --git a/lib/xmpp.js b/lib/node-xmpp.js
similarity index 100%
copy from lib/xmpp.js
copy to lib/node-xmpp.js
diff --git a/lib/xmpp.js b/lib/xmpp.js
index d63fc36..a0d5e5e 100644
--- a/lib/xmpp.js
+++ b/lib/xmpp.js
@@ -1,12 +1,3 @@
-var Client = require('./xmpp/client').Client;
-var Component = require('./xmpp/component').Component;
-var JID = require('./xmpp/jid').JID;
-var XML = require('./xmpp/xml');
-var Router = require('./xmpp/router');
-
-exports.Client = Client;
-exports.Component = Component;
-exports.JID = JID;
-exports.XML = XML;
-exports.Element = XML.Element;
-exports.Router = Router.Router;
+var node_xmpp = require('./node-xmpp');
+for(var k in node_xmpp)
+ exports[k] = node_xmpp[k];
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git
More information about the Pkg-javascript-commits
mailing list