connect.io
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -44,3 +44,7 @@ import EventEmitter from 'events'; | ||
const server = new Server( _namespace ); | ||
const server = serversMap[ _namespace ]; | ||
if ( !server ) { | ||
chromePort.disconnect(); | ||
return; | ||
} | ||
const {ports} = server; | ||
@@ -47,0 +51,0 @@ const port = new Port( chromePort ); |
{ | ||
"name": "connect.io", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "chrome.runtime.connect wrapper that using Stock.IO API.", | ||
@@ -35,7 +35,3 @@ "scripts": { | ||
}, | ||
"author": { | ||
"name": "Milk Lee", | ||
"email": "me@limingkai.cn", | ||
"url": "http://www.limingkai.cn/" | ||
}, | ||
"author": "Milk Lee <me@limingkai.cn> (http://www.limingkai.cn/)", | ||
"license": "MIT", | ||
@@ -42,0 +38,0 @@ "bugs": { |
@@ -0,1 +1,4 @@ | ||
const pkg = require( './package.json' ); | ||
const webpack = require( 'webpack' ); | ||
module.exports = { | ||
@@ -22,4 +25,11 @@ entry : './libs/index' , | ||
} , | ||
plugins : [ | ||
new webpack.BannerPlugin( | ||
'connect.js v' + pkg.version + '\n' + | ||
'' + pkg.homepage + '\n' + | ||
'Copyright 2015 ' + pkg.author + '\n' + | ||
'Licensed under ' + pkg.license , { entryOnly : true } ) | ||
] , | ||
watch : true , | ||
devtool : '#source-map' | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
148084
2697