[Pkg-javascript-commits] [sockjs-client] 137/350: Spacing and eslint.

tonnerre at ancient-solutions.com tonnerre at ancient-solutions.com
Fri Aug 5 01:03:55 UTC 2016


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch upstream
in repository sockjs-client.

commit b628ea49c68a034781f7e46c79ca6284566c3e2d
Author: Bryce Kahle <bkahle at gmail.com>
Date:   Tue Oct 14 12:35:42 2014 -0400

    Spacing and eslint.
---
 .eslintrc                   | 3 ++-
 lib/utils/escape.js         | 4 ++--
 tests/support/sockjs_app.js | 4 ++--
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/.eslintrc b/.eslintrc
index 07dea7d..59c08d6 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -7,7 +7,8 @@
     "consistent-this": [2, "self"],
     "quotes": [1, "single", "avoid-escape"],
     "no-space-before-semi": [0],
-    "no-underscore-dangle": [0]
+    "no-underscore-dangle": [0],
+    "no-mixed-requires": [0]
   },
   "globals": {
     "describe": true,
diff --git a/lib/utils/escape.js b/lib/utils/escape.js
index 857d274..743b9c6 100644
--- a/lib/utils/escape.js
+++ b/lib/utils/escape.js
@@ -27,14 +27,14 @@ var unrollLookup = function(escapable) {
 
 // Quote string, also taking care of unicode characters that browsers
 // often break. Especially, take care of unicode surrogates:
-//    http://en.wikipedia.org/wiki/Mapping_of_Unicode_characters#Surrogates
+// http://en.wikipedia.org/wiki/Mapping_of_Unicode_characters#Surrogates
 module.exports = {
   quote: function(string) {
     var quoted = JSON3.stringify(string);
 
     // In most cases this should be very fast and good enough.
     extraEscapable.lastIndex = 0;
-    if(!extraEscapable.test(quoted)) {
+    if (!extraEscapable.test(quoted)) {
       return quoted;
     }
 
diff --git a/tests/support/sockjs_app.js b/tests/support/sockjs_app.js
index f46cf81..b6dcf34 100644
--- a/tests/support/sockjs_app.js
+++ b/tests/support/sockjs_app.js
@@ -20,10 +20,10 @@ exports.install = function(opts, server) {
 
   var sjs_close = sockjs.createServer(opts);
   sjs_close.on('connection', function(conn) {
-    console.log('    [+] clos open    ' + conn);
+    console.log('    [+] close open    ' + conn);
     conn.close(3000, 'Go away!');
     conn.on('close', function() {
-      console.log('    [-] clos close   ' + conn);
+      console.log('    [-] close close   ' + conn);
     });
   });
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list