Skip to content

Commit

Permalink
chore: build dist
Browse files Browse the repository at this point in the history
  • Loading branch information
pemrouz committed Sep 15, 2016
1 parent b9913a9 commit 6cc8603
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ var normalize = function normalize(ripple) {

if (!req.name) return next((0, _values2.default)(ripple.resources).map(normalize(ripple)));

if (!resource) return Promise.resolve([404, err('cannot find ' + req.name)]);
// if (!resource)
// return Promise.resolve([404, err(`cannot find ${req.name}`)])

if (!req.type) req = {
name: req.name,
Expand Down Expand Up @@ -233,7 +234,10 @@ var headers = function headers(ripple) {

var io = function io(opts) {
/* istanbul ignore next */
var r = !_client2.default ? require('socket.io')(opts.server || opts) : window.io ? window.io({ transports: ['websocket', 'polling'] }) : _is2.default.fn(require('socket.io-client')) ? require('socket.io-client')({ transports: ['websocket', 'polling'] }) : { on: _noop2.default, emit: _noop2.default };
var transports = _client2.default && document.currentScript && document.currentScript.getAttribute('transports') && document.currentScript.getAttribute('transports').split(',') || undefined;

/* istanbul ignore next */
var r = !_client2.default ? require('socket.io')(opts.server || opts) : window.io ? window.io({ transports: transports }) : _is2.default.fn(require('socket.io-client')) ? require('socket.io-client')({ transports: transports }) : { on: _noop2.default, emit: _noop2.default };
/* istanbul ignore next */
r.use = r.use || _noop2.default;
return r;
Expand Down

0 comments on commit 6cc8603

Please sign in to comment.