Skip to content

Commit

Permalink
chore: add 'use strict' directives
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Aug 7, 2024
1 parent cf4013b commit 63a5ff9
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Agents.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

// Modifications made by Brian White to work with socksv5

'use strict';
var socks = require('../index');

var net = require('net');
Expand Down
1 change: 1 addition & 0 deletions lib/auth/None.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict';
module.exports = function NoneAuthHandlers() {
return {
METHOD: 0x00,
Expand Down
1 change: 1 addition & 0 deletions lib/auth/UserPassword.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict';
var STATE_VERSION = 0,
// server
STATE_ULEN = 1,
Expand Down
1 change: 1 addition & 0 deletions lib/client.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict';
var net = require('net'),
normalizeConnectArgs = normalizeConnectArgs,
dns = require('dns'),
Expand Down
1 change: 1 addition & 0 deletions lib/client.parser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict';
var inherits = require('util').inherits,
EventEmitter = require('events').EventEmitter;

Expand Down
1 change: 1 addition & 0 deletions lib/constants.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict';
exports.CMD = {
CONNECT: 0x01,
BIND: 0x02,
Expand Down
1 change: 1 addition & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict';
var net = require('net'),
dns = require('dns'),
util = require('util'),
Expand Down
1 change: 1 addition & 0 deletions lib/server.parser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict';
var inherits = require('util').inherits,
EventEmitter = require('events').EventEmitter;

Expand Down
1 change: 1 addition & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict';
var net = require('net'),
Address6 = require('ip-address').Address6;

Expand Down
1 change: 1 addition & 0 deletions test/test-client-parser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict';
var Parser = require('../lib/client.parser');

var EventEmitter = require('events').EventEmitter,
Expand Down
3 changes: 2 additions & 1 deletion test/test-client.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict';
var auth = require('../index').auth,
createServer = require('../index').createServer,
connect = require('../index').connect;
Expand Down Expand Up @@ -248,4 +249,4 @@ process.once('exit', function() {
'Only finished ' + (t + 1) + '/' + tests.length + ' tests'));
});

next();
next();
1 change: 1 addition & 0 deletions test/test-server-parser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict';
var Parser = require('../lib/server.parser');

var EventEmitter = require('events').EventEmitter,
Expand Down
1 change: 1 addition & 0 deletions test/test-server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict';
var auth = require('../index').auth,
createServer = require('../index').createServer;
const net = require('net');
Expand Down
1 change: 1 addition & 0 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use strict';
var spawn = require('child_process').spawn,
join = require('path').join;

Expand Down

0 comments on commit 63a5ff9

Please sign in to comment.