Skip to content

Commit

Permalink
Move lib to src
Browse files Browse the repository at this point in the history
  • Loading branch information
legastero committed Nov 5, 2018
1 parent fa61902 commit 17985fa
Show file tree
Hide file tree
Showing 67 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -79,7 +79,7 @@
"xmpp"
],
"license": "MIT",
"main": "index.js",
"main": "./lib/index.js",
"repository": {
"type": "git",
"url": "https://github.com/legastero/stanza.io.git"
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions index.js → src/index.js
Expand Up @@ -3,12 +3,12 @@
exports.VERSION = '__STANZAIO_VERSION__';

exports.JID = require('xmpp-jid').JID;
exports.Client = require('./lib/client');
exports.Client = require('./client');


exports.createClient = function (opts) {
var client = new exports.Client(opts);
client.use(require('./lib/plugins'));
client.use(require('./plugins'));

return client;
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/connection.js
@@ -1,7 +1,7 @@
'use strict';

var test = require('tape');
var stanza = require('../index');
var stanza = require('../src');


test('Connect using WebSocket', function (t) {
Expand Down
2 changes: 1 addition & 1 deletion test/hostmeta.js
Expand Up @@ -3,7 +3,7 @@
var test = require('tape');
var JXT = require('jxt').createRegistry();

var HostMeta = require('../lib/plugins/hostmeta');
var HostMeta = require('../src/plugins/hostmeta');


var xml = '<?xml version="1.0" encoding="UTF-8"?>' +
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Expand Up @@ -5,7 +5,7 @@ const Pkg = require('./package.json');


module.exports = {
entry: './index.js',
entry: './src/index.js',

output: {
filename: 'stanzaio.bundle.js',
Expand Down

0 comments on commit 17985fa

Please sign in to comment.