Skip to content

Commit 1c23824

Browse files
authored
Merge pull request #4 from overleaf/bg-npm-audit
fixes for npm audit
2 parents 60e7aa9 + 1737761 commit 1c23824

File tree

6 files changed

+67
-42
lines changed

6 files changed

+67
-42
lines changed

History.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
0.9.17-overleaf-4 / 2022-10-21
2+
==============================
3+
4+
* Overleaf: no code changes in dist library, npm audit fixes
5+
and fix to builder.js.
6+
17
0.9.17-overleaf-3 / 2020-08-13
28
==============================
39

bin/builder.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,10 @@ if (!module.parent){
279279
builder(args.length ? args : false, { minify:false }, function (err, content) {
280280
if (err) return console.error(err);
281281

282-
fs.write(
282+
fs.writeSync(
283283
fs.openSync(__dirname + '/../dist/socket.io.js', 'w')
284284
, content
285285
, 0
286-
, 'utf8'
287286
);
288287
console.log('Successfully generated the development build: socket.io.js');
289288
});
@@ -292,11 +291,10 @@ if (!module.parent){
292291
builder(args.length ? args : false, function (err, content) {
293292
if (err) return console.error(err);
294293

295-
fs.write(
294+
fs.writeSync(
296295
fs.openSync(__dirname + '/../dist/socket.io.min.js', 'w')
297296
, content
298297
, 0
299-
, 'utf8'
300298
);
301299
console.log('Successfully generated the production build: socket.io.min.js');
302300
});

dist/socket.io.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Socket.IO.js build:0.9.17-overleaf-3, development. Copyright(c) 2011 LearnBoost <[email protected]> MIT Licensed */
1+
/*! Socket.IO.js build:0.9.17-overleaf-4, development. Copyright(c) 2011 LearnBoost <[email protected]> MIT Licensed */
22

33
var io = ('undefined' === typeof module ? {} : module.exports);
44
(function() {
@@ -25,7 +25,7 @@ var io = ('undefined' === typeof module ? {} : module.exports);
2525
* @api public
2626
*/
2727

28-
io.version = '0.9.17-overleaf-3';
28+
io.version = '0.9.17-overleaf-4';
2929

3030
/**
3131
* Protocol implemented.

dist/socket.io.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/io.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* @api public
2222
*/
2323

24-
io.version = '0.9.17-overleaf-3';
24+
io.version = '0.9.17-overleaf-4';
2525

2626
/**
2727
* Protocol implemented.

package.json

Lines changed: 54 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,56 @@
11
{
2-
"name": "socket.io-client"
3-
, "description": "Socket.IO client for the browser and node.js"
4-
, "version": "0.9.17-overleaf-3"
5-
, "main" : "./lib/io.js"
6-
, "browserify": "./dist/socket.io.js"
7-
, "homepage": "http://socket.io"
8-
, "keywords": ["websocket", "socket", "realtime", "socket.io", "comet", "ajax"]
9-
, "author": "Guillermo Rauch <[email protected]>"
10-
, "contributors": [
11-
{ "name": "Guillermo Rauch", "email": "[email protected]" }
12-
, { "name": "Arnout Kazemier", "email": "[email protected]" }
13-
, { "name": "Vladimir Dronnikov", "email": "[email protected]" }
14-
, { "name": "Einar Otto Stangvik", "email": "[email protected]" }
15-
]
16-
, "repository": {
17-
"type": "git"
18-
, "url": "https://github.com/LearnBoost/socket.io-client.git"
2+
"name": "socket.io-client",
3+
"description": "Socket.IO client for the browser and node.js",
4+
"version": "0.9.17-overleaf-4",
5+
"main": "./lib/io.js",
6+
"browserify": "./dist/socket.io.js",
7+
"homepage": "http://socket.io",
8+
"keywords": [
9+
"websocket",
10+
"socket",
11+
"realtime",
12+
"socket.io",
13+
"comet",
14+
"ajax"
15+
],
16+
"author": "Guillermo Rauch <[email protected]>",
17+
"contributors": [
18+
{
19+
"name": "Guillermo Rauch",
20+
"email": "[email protected]"
21+
},
22+
{
23+
"name": "Arnout Kazemier",
24+
"email": "[email protected]"
25+
},
26+
{
27+
"name": "Vladimir Dronnikov",
28+
"email": "[email protected]"
29+
},
30+
{
31+
"name": "Einar Otto Stangvik",
32+
"email": "[email protected]"
33+
}
34+
],
35+
"repository": {
36+
"type": "git",
37+
"url": "https://github.com/LearnBoost/socket.io-client.git"
38+
},
39+
"dependencies": {
40+
"ws": "^1.1.5",
41+
"xmlhttprequest": "^1.8.0"
42+
},
43+
"devDependencies": {
44+
"active-x-obfuscator": "0.0.1",
45+
"express": "2.5.x",
46+
"expresso": "*",
47+
"jade": "*",
48+
"should": "*",
49+
"socket.io": "0.9.17",
50+
"stylus": "*",
51+
"uglify-js": "^3.17.3"
52+
},
53+
"engines": {
54+
"node": ">= 0.4.0"
1955
}
20-
, "dependencies": {
21-
"uglify-js": "1.2.5"
22-
, "ws": "0.4.x"
23-
, "xmlhttprequest": "1.4.2"
24-
, "active-x-obfuscator": "0.0.1"
25-
}
26-
, "devDependencies": {
27-
"expresso": "*"
28-
, "express": "2.5.x"
29-
, "jade": "*"
30-
, "stylus": "*"
31-
, "socket.io": "0.9.17"
32-
, "should": "*"
33-
}
34-
, "engines": { "node": ">= 0.4.0" }
35-
}
56+
}

0 commit comments

Comments
 (0)