Compare commits

...

2 Commits
2.0.0 ... 2.0.1

Author SHA1 Message Date
Damien Arrachequesne
832b8fc6d9 [chore] Release 2.0.1 2017-05-09 01:40:46 +02:00
Damien Arrachequesne
a0056904c1 [fix] Update path of client file (#2934) 2017-05-09 01:36:40 +02:00
3 changed files with 8 additions and 4 deletions

View File

@@ -1,4 +1,9 @@
2.0.1 / 2017-05-09
===================
* [fix] Update path of client file (#2934)
2.0.0 / 2017-05-09
===================

View File

@@ -109,7 +109,7 @@ Server.prototype.serveClient = function(v){
return require.resolve(file);
};
if (v && !clientSource) {
clientSource = read(resolvePath( 'socket.io-client/dist/socket.io.min.js'), 'utf-8');
clientSource = read(resolvePath( 'socket.io-client/dist/socket.io.js'), 'utf-8');
try {
clientSourceMap = read(resolvePath( 'socket.io-client/dist/socket.io.js.map'), 'utf-8');
} catch(err) {
@@ -323,7 +323,6 @@ Server.prototype.serve = function(req, res){
debug('serve client source');
res.setHeader('Content-Type', 'application/javascript');
res.setHeader('ETag', expectedEtag);
res.setHeader('X-SourceMap', 'socket.io.js.map');
res.writeHead(200);
res.end(clientSource);
};

View File

@@ -1,6 +1,6 @@
{
"name": "socket.io",
"version": "2.0.0",
"version": "2.0.1",
"description": "node.js realtime framework server",
"keywords": [
"realtime",
@@ -28,7 +28,7 @@
"engine.io": "~3.1.0",
"object-assign": "~4.1.1",
"socket.io-adapter": "~1.1.0",
"socket.io-client": "2.0.0",
"socket.io-client": "2.0.1",
"socket.io-parser": "~3.1.1"
},
"devDependencies": {