Skip to content

Commit 0efb3c9

Browse files
committed
Update faye-websocket and websocket-driver to fix security issue
Fix #275
1 parent a0f6afb commit 0efb3c9

File tree

5 files changed

+76
-3
lines changed

5 files changed

+76
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
node_modules
33
lib/*.js
44
*~
5-
package-lock.json
5+
sockjs-protocol

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ Makefile
44
src
55
examples
66
tests
7+
scripts
78
*~

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
}
1818
],
1919
"dependencies": {
20-
"faye-websocket": "^0.10.0",
20+
"faye-websocket": "^0.11.3",
2121
"uuid": "^3.4.0",
22-
"websocket-driver": "0.6.5"
22+
"websocket-driver": "^0.7.4"
2323
},
2424
"devDependencies": {
2525
"coffeescript": "^1.12.7"

scripts/test.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
rm -rf sockjs-protocol
6+
git clone --depth=1 https://github.com/sockjs/sockjs-protocol.git
7+
cd sockjs-protocol
8+
make test_deps pycco_deps
9+
cd ..
10+
node tests/test_server/server.js &
11+
SRVPID=$!
12+
sleep 1
13+
14+
set +e
15+
16+
cd sockjs-protocol
17+
./venv/bin/python sockjs-protocol.py
18+
PASSED=$?
19+
kill $SRVPID
20+
exit $PASSED

0 commit comments

Comments
 (0)