Skip to content

Commit e1d0894

Browse files
committed
Merge branch 'master' into gitlaura-cancel-cloud-install
2 parents f68500b + d4acdb7 commit e1d0894

93 files changed

Lines changed: 211 additions & 213 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ build/*
1111
node_modules/*
1212
npm-debug.log
1313
tmp/*
14+
third_party/typings

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
"socks5-http-client": "^1.0.2",
6363
"ssh2": "0.4.12",
6464
"ssh2-streams": "0.0.18",
65-
"tsd": "^0.6.5",
6665
"tslint": "^3.3.0",
6766
"typescript": "~1.8.2",
67+
"typings": "^0.7.12",
6868
"yargs": "^3.0.4"
6969
},
7070
"scripts": {

setup.cmd

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if "%1" NEQ "third_party" if "%1" NEQ "clean" (
4343
%~1
4444
goto:eof
4545

46-
:: On Windows, npm, bower, tsd, and grunt are batch files
46+
:: On Windows, npm, bower, typings, and grunt are batch files
4747
:: So we have to explicitly call then with "call"
4848
:: These also happen to be the commands that we want to assert,
4949
:: or exit on failure for, so there is an additional "exit /b"
@@ -72,13 +72,10 @@ goto:eof
7272
call :runCmd "copy build\dev\uproxy-lib\build-tools\*.js build\tools\"
7373
goto:eof
7474

75-
:: Note: The "tsd reinstall" command seems to create a third_party/third_party folder
76-
:: on Windows, so we manually delete this after
7775
:thirdParty
7876
call :runAndAssertCmdArgs "%NPM_BIN_DIR%bower" install --allow-root
7977
call :runCmd "mkdir build\third_party"
80-
call :runAndAssertCmdArgs "%NPM_BIN_DIR%tsd" reinstall --config .\third_party\tsd.json
81-
call :runCmd "rmdir third_party\third_party /s /q"
78+
call :runAndAssertCmdArgs cd third_party; "%NPM_BIN_DIR%tsd" reinstall --config .\third_party\tsd.json; cd ..
8279
call :runCmd "robocopy third_party\ build\third_party\ /s /e > nul 2>&1"
8380
call :runCmd "mkdir build\third_party\freedom-pgp-e2e"
8481
call :runCmd "copy node_modules\freedom-pgp-e2e\dist build\third_party\freedom-pgp-e2e\"

setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function thirdParty ()
3939
{
4040
runAndAssertCmd "$NPM_BIN_DIR/bower install --allow-root --config.interactive=false"
4141
runAndAssertCmd "mkdir -p build/third_party"
42-
runAndAssertCmd "$NPM_BIN_DIR/tsd reinstall --config ./third_party/tsd.json"
42+
runAndAssertCmd "pushd third_party && $NPM_BIN_DIR/typings install && popd"
4343
runAndAssertCmd "cp -r third_party/* build/third_party/"
4444
runAndAssertCmd "mkdir -p build/third_party/freedom-pgp-e2e"
4545
runAndAssertCmd "cp -r node_modules/freedom-pgp-e2e/dist build/third_party/freedom-pgp-e2e/"

src/aqm/aqm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference path='../../../third_party/typings/es6-promise/es6-promise.d.ts' />
1+
/// <reference path='../../../third_party/typings/browser.d.ts' />
22

33
import logging = require('../logging/logging');
44

src/arraybuffers/arraybuffers.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference path='../../../third_party/typings/jasmine/jasmine.d.ts' />
1+
/// <reference path='../../../third_party/typings/browser.d.ts' />
22

33
import arraybuffers = require('./arraybuffers');
44

src/arraybuffers/arraybuffers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference path='../../../third_party/typings/node/node.d.ts' />
1+
/// <reference path='../../../third_party/typings/browser.d.ts' />
22

33
// Byte-wise equality check of array buffers by comparison of each byte's
44
// value.

src/benchmark/benchmark.core-env.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// benchmark.ts benchmarks the proxy. It should be running on localhost:9999
22

3-
/// <reference path='../../../third_party/typings/es6-promise/es6-promise.d.ts' />
4-
/// <reference path='../../../third_party/typings/request/request.d.ts' />
5-
//// <reference path='../../../third_party/typings/node/node.d.ts' />
3+
/// <reference path='../../../third_party/typings/browser.d.ts' />
64

75
import request = require('request');
86
import util = require('util');

src/bridge/bridge.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
/// <reference path='../../../third_party/typings/es6-promise/es6-promise.d.ts' />
2-
/// <reference path='../../../third_party/typings/jasmine/jasmine.d.ts' />
1+
/// <reference path='../../../third_party/typings/browser.d.ts' />
32

43
import freedomMocker = require('../freedom/mocks/mock-freedom-in-module-env');
5-
import mockFreedomRtcPeerConnection = require('../freedom/mocks/mock-rtcpeerconnection');
4+
declare var freedom: freedom.FreedomInModuleEnv;
65
freedom = freedomMocker.makeMockFreedomInModuleEnv({
76
'core.rtcpeerconnection': () => { return new mockFreedomRtcPeerConnection(); }
87
});
98

109
import bridge = require('./bridge');
1110
import datachannel = require('../webrtc/datachannel');
1211
import handler = require('../handler/queue');
12+
import mockFreedomRtcPeerConnection = require('../freedom/mocks/mock-rtcpeerconnection');
1313
import peerconnection = require('../webrtc/peerconnection');
1414
import peerconnection_types = require('../webrtc/signals');
1515

src/bridge/bridge.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/// <reference path='../../../third_party/typings/es6-promise/es6-promise.d.ts' />
2-
/// <reference path='../../../third_party/typings/freedom/freedom-module-env.d.ts' />
1+
/// <reference path='../../../third_party/typings/browser.d.ts' />
32

43
import churn = require('../churn/churn');
54
import churn_types = require('../churn/churn.types');
@@ -8,6 +7,8 @@ import logging = require('../logging/logging');
87
import peerconnection = require('../webrtc/peerconnection');
98
import peerconnection_types = require('../webrtc/signals');
109

10+
declare const freedom: freedom.FreedomInModuleEnv;
11+
1112
var log :logging.Log = new logging.Log('bridge');
1213

1314
////////

0 commit comments

Comments
 (0)