File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
src/lib/samples/simple-socks-node Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -692,6 +692,15 @@ gruntConfig = {
692692 pathsFromDevBuild : [' lib/simple-socks' , ' lib/churn-pipe' , ' lib/loggingprovider' ]
693693 pathsFromThirdPartyBuild : [' freedom-port-control' ]
694694 localDestPath : ' lib/samples/simple-socks-firefoxapp/data/'
695+ libsForSimpleSocksNode :
696+ Rule .copyLibs
697+ npmLibNames : [' freedom-for-node' ]
698+ pathsFromDevBuild : [' lib/simple-socks' , ' lib/churn-pipe' , ' lib/loggingprovider' ]
699+ pathsFromThirdPartyBuild : [
700+ ' uproxy-obfuscators'
701+ ' freedom-port-control'
702+ ]
703+ localDestPath : ' lib/samples/simple-socks-node/'
695704
696705 libsForSimpleChatChromeApp :
697706 Rule .copyLibs
@@ -1068,6 +1077,7 @@ taskManager.add 'simpleSocks', [
10681077 ' browserify:simpleSocksFreedomModule'
10691078 ' copy:libsForSimpleSocksChromeApp'
10701079 ' copy:libsForSimpleSocksFirefoxApp'
1080+ ' copy:libsForSimpleSocksNode'
10711081]
10721082
10731083taskManager .add ' uprobe' , [
Original file line number Diff line number Diff line change 1+ var freedom = require ( 'freedom-for-node' ) ;
2+
3+ freedom . freedom ( './lib/simple-socks/freedom-module.json' , {
4+ 'logger' : './lib/loggingprovider/freedom-module.json' ,
5+ 'debug' : 'debug'
6+ } ) . then ( function ( moduleFactory ) {
7+ moduleFactory ( ) ;
8+ } , function ( e ) {
9+ console . error ( 'could not load freedomjs module: ' + e . message ) ;
10+ } ) ;
You can’t perform that action at this time.
0 commit comments