yayalong commited on
Commit
5f341ab
·
verified ·
1 Parent(s): 8ebcee5

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +20 -0
  2. WindowsNoEditor/Engine/Binaries/ThirdParty/DbgHelp/dbghelp.dll +3 -0
  3. WindowsNoEditor/Engine/Binaries/ThirdParty/NVIDIA/GeForceNOW/Win64/GfnRuntimeSdk.dll +3 -0
  4. WindowsNoEditor/Engine/Binaries/ThirdParty/NVIDIA/NVaftermath/Win64/GFSDK_Aftermath_Lib.x64.dll +3 -0
  5. WindowsNoEditor/Engine/Binaries/ThirdParty/OpenXR/win64/openxr_loader.dll +3 -0
  6. WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/APEX_ClothingPROFILE_x64.dll +3 -0
  7. WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/APEX_LegacyPROFILE_x64.dll +3 -0
  8. WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/ApexFrameworkPROFILE_x64.dll +3 -0
  9. WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/NvClothPROFILE_x64.dll +3 -0
  10. WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/PhysX3CommonPROFILE_x64.dll +3 -0
  11. WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/PhysX3CookingPROFILE_x64.dll +3 -0
  12. WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/PhysX3PROFILE_x64.dll +3 -0
  13. WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/PxPvdSDKPROFILE_x64.dll +3 -0
  14. WindowsNoEditor/Engine/Binaries/ThirdParty/Vorbis/Win64/VS2015/libvorbis_64.dll +3 -0
  15. WindowsNoEditor/Engine/Binaries/ThirdParty/Windows/XAudio2_9/x64/xaudio2_9redist.dll +3 -0
  16. WindowsNoEditor/Engine/Extras/Redist/en-us/UE4PrereqSetup_x64.exe +3 -0
  17. WindowsNoEditor/House.exe +3 -0
  18. WindowsNoEditor/House/Binaries/Win64/House.exe +3 -0
  19. WindowsNoEditor/House/Binaries/Win64/OpenImageDenoise.dll +3 -0
  20. WindowsNoEditor/House/Binaries/Win64/tbb12.dll +3 -0
  21. WindowsNoEditor/House/Content/Paks/House-WindowsNoEditor.pak +3 -0
  22. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/images/Play.png +3 -0
  23. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/images/favicon-16x16.png +3 -0
  24. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/images/favicon-32x32.png +3 -0
  25. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/images/favicon-96x96.png +3 -0
  26. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/images/favicon.ico +0 -0
  27. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/modules/authentication/db/index.js +2 -0
  28. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/modules/authentication/db/store_password.js +80 -0
  29. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/modules/authentication/db/users.js +35 -0
  30. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/modules/authentication/index.js +4 -0
  31. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/modules/authentication/init.js +109 -0
  32. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/modules/config.js +49 -0
  33. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/modules/httpsClient.js +95 -0
  34. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/modules/logging.js +108 -0
  35. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/package-lock.json +1753 -0
  36. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/package.json +20 -0
  37. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/bash/README.txt +13 -0
  38. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/bash/Start_Common.sh +64 -0
  39. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/bash/Start_SignallingServer.sh +21 -0
  40. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/bash/Start_TURNServer.sh +37 -0
  41. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/bash/Start_WithTURN_SignallingServer.sh +27 -0
  42. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/bash/run_local.sh +9 -0
  43. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/bash/setup.sh +129 -0
  44. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/cmd/README.txt +13 -0
  45. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/cmd/Start_Common.ps1 +75 -0
  46. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/cmd/Start_SignallingServer.ps1 +19 -0
  47. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/cmd/Start_TURNServer.ps1 +37 -0
  48. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/cmd/Start_WithTURN_SignallingServer.ps1 +25 -0
  49. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/cmd/run_local.bat +22 -0
  50. WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/cmd/setup.ps1 +97 -0
.gitattributes CHANGED
@@ -57,3 +57,23 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ WindowsNoEditor/House.exe filter=lfs diff=lfs merge=lfs -text
61
+ WindowsNoEditor/House/Binaries/Win64/House.exe filter=lfs diff=lfs merge=lfs -text
62
+ WindowsNoEditor/Engine/Binaries/ThirdParty/OpenXR/win64/openxr_loader.dll filter=lfs diff=lfs merge=lfs -text
63
+ WindowsNoEditor/Engine/Binaries/ThirdParty/DbgHelp/dbghelp.dll filter=lfs diff=lfs merge=lfs -text
64
+ WindowsNoEditor/Engine/Binaries/ThirdParty/NVIDIA/NVaftermath/Win64/GFSDK_Aftermath_Lib.x64.dll filter=lfs diff=lfs merge=lfs -text
65
+ WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/ApexFrameworkPROFILE_x64.dll filter=lfs diff=lfs merge=lfs -text
66
+ WindowsNoEditor/Engine/Binaries/ThirdParty/NVIDIA/GeForceNOW/Win64/GfnRuntimeSdk.dll filter=lfs diff=lfs merge=lfs -text
67
+ WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/APEX_ClothingPROFILE_x64.dll filter=lfs diff=lfs merge=lfs -text
68
+ WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/PhysX3CookingPROFILE_x64.dll filter=lfs diff=lfs merge=lfs -text
69
+ WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/NvClothPROFILE_x64.dll filter=lfs diff=lfs merge=lfs -text
70
+ WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/PhysX3CommonPROFILE_x64.dll filter=lfs diff=lfs merge=lfs -text
71
+ WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/APEX_LegacyPROFILE_x64.dll filter=lfs diff=lfs merge=lfs -text
72
+ WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/PhysX3PROFILE_x64.dll filter=lfs diff=lfs merge=lfs -text
73
+ WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/PxPvdSDKPROFILE_x64.dll filter=lfs diff=lfs merge=lfs -text
74
+ WindowsNoEditor/Engine/Binaries/ThirdParty/Windows/XAudio2_9/x64/xaudio2_9redist.dll filter=lfs diff=lfs merge=lfs -text
75
+ WindowsNoEditor/Engine/Binaries/ThirdParty/Vorbis/Win64/VS2015/libvorbis_64.dll filter=lfs diff=lfs merge=lfs -text
76
+ WindowsNoEditor/House/Binaries/Win64/tbb12.dll filter=lfs diff=lfs merge=lfs -text
77
+ WindowsNoEditor/Engine/Extras/Redist/en-us/UE4PrereqSetup_x64.exe filter=lfs diff=lfs merge=lfs -text
78
+ WindowsNoEditor/House/Binaries/Win64/OpenImageDenoise.dll filter=lfs diff=lfs merge=lfs -text
79
+ WindowsNoEditor/House/Content/Paks/House-WindowsNoEditor.pak filter=lfs diff=lfs merge=lfs -text
WindowsNoEditor/Engine/Binaries/ThirdParty/DbgHelp/dbghelp.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a02133854ff9f06c3b23a70f8c2a4814b2ed4eef613244b485e3737259ddf9e
3
+ size 1868736
WindowsNoEditor/Engine/Binaries/ThirdParty/NVIDIA/GeForceNOW/Win64/GfnRuntimeSdk.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e741479b13faab35b34a60bd9e8b09791ea57d260a9336b44916e73ba2246d30
3
+ size 3212640
WindowsNoEditor/Engine/Binaries/ThirdParty/NVIDIA/NVaftermath/Win64/GFSDK_Aftermath_Lib.x64.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:516e14af41a91fe960363728965f354aecc06bcdfaef6bcb45dd3537ede09195
3
+ size 1425920
WindowsNoEditor/Engine/Binaries/ThirdParty/OpenXR/win64/openxr_loader.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ae94572256dfd6d7e992a4474797d8cfe14cf3c030b2040a5b91a7d7bdfd8d8
3
+ size 622592
WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/APEX_ClothingPROFILE_x64.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d0bf48f8e20b2876a0924fe23128fed4bfbe7c6263d0b98ede45bedd7486b41
3
+ size 1575936
WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/APEX_LegacyPROFILE_x64.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9841fd409a788d0a8cb38c8e5ce06a5b7192d43a465ccbe0a6714fccdde67b79
3
+ size 4198400
WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/ApexFrameworkPROFILE_x64.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:243e4b82d84f6abfc400aaa8c2cc4fc93f36e670c016bc673f18569eb04d47ec
3
+ size 1382400
WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/NvClothPROFILE_x64.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e62523756094e9a7f83e2b752bd4452401978bb85e180e2efd9a7d8e1c93c851
3
+ size 264704
WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/PhysX3CommonPROFILE_x64.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d0de2d0d5952857acc0234cba8e515cb79ce23569967f0b604ebc2ea70cbd15
3
+ size 2033152
WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/PhysX3CookingPROFILE_x64.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47e6124c9afa2f16ace856f415ee958fcb53109317e7b0191722bdc9c6626507
3
+ size 244736
WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/PhysX3PROFILE_x64.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b69d19c37c2a08b0aa61cf16595dec31935dafa1023cf27a4457cad2b5bc0a1e
3
+ size 3141120
WindowsNoEditor/Engine/Binaries/ThirdParty/PhysX3/Win64/VS2015/PxPvdSDKPROFILE_x64.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a64d533c7486a346470e119111ef98bbe2a38b0d42d22f9c80ee7aec85cb53e3
3
+ size 267776
WindowsNoEditor/Engine/Binaries/ThirdParty/Vorbis/Win64/VS2015/libvorbis_64.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f66dcb5837e9b59c499277fd272b862043356aa9145802cf0a63e00a1bcca59
3
+ size 1714176
WindowsNoEditor/Engine/Binaries/ThirdParty/Windows/XAudio2_9/x64/xaudio2_9redist.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e01f400baa09694cacfd2cfbff0d721c17b56785d2d6e29b6fdd117f70ccc1e
3
+ size 847440
WindowsNoEditor/Engine/Extras/Redist/en-us/UE4PrereqSetup_x64.exe ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:145f4e4d11e76a2612db5ffbfae8f9ab8e4385ff7660802ffd2f473c9dcb2a0d
3
+ size 41033784
WindowsNoEditor/House.exe ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b42fa622dbe0dd1d81aa99e3f7d33365ee6ef989840fcfb62f12d3d5648cb52
3
+ size 144896
WindowsNoEditor/House/Binaries/Win64/House.exe ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e4920b7414dd4a2f31dee537b85c8839506ec70f432fde21617656f5c90f753
3
+ size 175959040
WindowsNoEditor/House/Binaries/Win64/OpenImageDenoise.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11213c268e6c67262d48e7351e1f6c196acbb91a9a1cf059d4d758c34368f08a
3
+ size 49771408
WindowsNoEditor/House/Binaries/Win64/tbb12.dll ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:061f3b283b3e5b24c5ac45772ee19e2f4b24cdacb3ff8ae4f815fe62836e5a45
3
+ size 383856
WindowsNoEditor/House/Content/Paks/House-WindowsNoEditor.pak ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27f3233dbe1025edc6a8af527f42a3b8f4ea1fef8b1eea97b5422ede051be595
3
+ size 2128940159
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/images/Play.png ADDED

Git LFS Details

  • SHA256: 8d6ca52841830d9321b7c776ad9faffef74e0884d8dc3a8777a497d85be60f15
  • Pointer size: 129 Bytes
  • Size of remote file: 4.88 kB
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/images/favicon-16x16.png ADDED

Git LFS Details

  • SHA256: 9e4a1cbe7789046a083d7ca1e261a989b93e344dcedcb5af201d4ecff0d7208d
  • Pointer size: 128 Bytes
  • Size of remote file: 959 Bytes
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/images/favicon-32x32.png ADDED

Git LFS Details

  • SHA256: fdd9a45c02c61017a0fc71ba6b4f7db890a8435718edece567076a52d0e7eaf8
  • Pointer size: 129 Bytes
  • Size of remote file: 2.24 kB
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/images/favicon-96x96.png ADDED

Git LFS Details

  • SHA256: 3f51f3fb508f0d0361b722345974969576daef2c7d3db8f97c4ca8e1ff1a1775
  • Pointer size: 129 Bytes
  • Size of remote file: 5.65 kB
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/images/favicon.ico ADDED
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/modules/authentication/db/index.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ // Copyright Epic Games, Inc. All Rights Reserved.
2
+ exports.users = require('./users');
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/modules/authentication/db/store_password.js ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Copyright Epic Games, Inc. All Rights Reserved.
2
+ //
3
+ // Usage: npm run store_password -- --username <USERNAME> --password <PASSWORD>
4
+ // or from ./modules/authentication/db dir: node store_password.js --username <USERNAME> --password <PASSWORD>
5
+ //
6
+ // --usersFile is an optional parameter that can be used to specify a different location for the users database file
7
+ // use this if running the command from a different working dir. The default location is './users.json'
8
+ // e.g. If running from the SignallingWebServer dir use: --usersFile ./modules/authentication/db/users.json
9
+
10
+ const argv = require('yargs').argv;
11
+ const fs = require('fs');
12
+ const bcrypt = require('bcryptjs');
13
+
14
+ var username, password;
15
+ var usersFile = './users.json'
16
+
17
+ const STORE_PLAINTEXT_PASSWORD = false;
18
+
19
+ try {
20
+ if(typeof argv.username != 'undefined'){
21
+ username = argv.username.toString();
22
+ }
23
+
24
+ if(typeof argv.password != 'undefined'){
25
+ password = argv.password;
26
+ }
27
+
28
+ if(typeof argv.usersFile != 'undefined'){
29
+ usersFile = argv.usersFile;
30
+ }
31
+ } catch (e) {
32
+ console.error(e);
33
+ process.exit(2);
34
+ }
35
+
36
+ if(username && password){
37
+ let existingAccounts = [];
38
+ if (fs.existsSync(usersFile)) {
39
+ console.log(`File '${usersFile}' exists, reading file`)
40
+ var content = fs.readFileSync(usersFile, 'utf8');
41
+ try{
42
+ existingAccounts = JSON.parse(content);
43
+ }
44
+ catch(e){
45
+ console.error(`Existing file '${usersFile}', has invalid JSON: ${e}`);
46
+ }
47
+ }
48
+
49
+ var existingUser = existingAccounts.find( u => u.username == username)
50
+ if(existingUser){
51
+ console.log(`User '${username}', already exists, updating password`)
52
+ existingUser.passwordHash = generatePasswordHash(password)
53
+ if(STORE_PLAINTEXT_PASSWORD)
54
+ existingUser.password = password;
55
+ else if (existingUser.password)
56
+ delete existingUser.password;
57
+
58
+ } else {
59
+ console.log(`Adding new user '${username}'`)
60
+ let newUser = {
61
+ id: existingAccounts.length + 1,
62
+ username: username,
63
+ passwordHash: generatePasswordHash(password)
64
+ }
65
+ if(STORE_PLAINTEXT_PASSWORD)
66
+ newUser.password = password;
67
+
68
+ existingAccounts.push(newUser);
69
+ }
70
+
71
+ console.log(`Writing updated users to '${usersFile}'`);
72
+ var newContent = JSON.stringify(existingAccounts);
73
+ fs.writeFileSync(usersFile, newContent);
74
+ } else {
75
+ console.log(`Please pass in both username (${username}) and password (${password}) please`);
76
+ }
77
+
78
+ function generatePasswordHash(pass){
79
+ return bcrypt.hashSync(pass, 12)
80
+ }
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/modules/authentication/db/users.js ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Copyright Epic Games, Inc. All Rights Reserved.
2
+ const fs = require('fs');
3
+ const path = require('path');
4
+
5
+ // Read in users from file
6
+ let records = [];
7
+ let usersFile = path.join(__dirname, './users.json');
8
+ if (fs.existsSync(usersFile)) {
9
+ console.log(`Reading users from '${usersFile}'`)
10
+ var content = fs.readFileSync(usersFile, 'utf8');
11
+ try {
12
+ records = JSON.parse(content);
13
+ } catch(e) {
14
+ console.log(`ERROR: Failed to parse users from file '${usersFile}'`)
15
+ }
16
+ }
17
+
18
+ exports.findById = function(id, cb) {
19
+ var idx = id - 1;
20
+ if (records[idx]) {
21
+ cb(null, records[idx]);
22
+ } else {
23
+ cb(new Error('User ' + id + ' does not exist'));
24
+ }
25
+ }
26
+
27
+ exports.findByUsername = function(username, cb) {
28
+ for (var i = 0, len = records.length; i < len; i++) {
29
+ var record = records[i];
30
+ if (record.username === username) {
31
+ return cb(null, record);
32
+ }
33
+ }
34
+ return cb(null, null);
35
+ }
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/modules/authentication/index.js ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ // Copyright Epic Games, Inc. All Rights Reserved.
2
+ module.exports = {
3
+ init: require('./init')
4
+ }
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/modules/authentication/init.js ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Copyright Epic Games, Inc. All Rights Reserved.
2
+ // Adapted from
3
+ // * https://blog.risingstack.com/node-hero-node-js-authentication-passport-js/
4
+ // * https://github.com/RisingStack/nodehero-authentication/tree/master/app
5
+ // * https://github.com/passport/express-4.x-local-example
6
+
7
+
8
+ const passport = require('passport');
9
+ const session = require('express-session');
10
+ const bcrypt = require('bcryptjs');
11
+ const LocalStrategy = require('passport-local').Strategy;
12
+ const path = require('path');
13
+ const fs = require('fs');
14
+ var db = require('./db');
15
+
16
+ function initPassport (app) {
17
+
18
+ // Generate session secret if it doesn't already exist and save it to file for use next time
19
+ let config = {};
20
+ let configPath = path.join(__dirname, './config.json');
21
+ if (fs.existsSync(configPath)) {
22
+ let content = fs.readFileSync(configPath, 'utf8');
23
+ try {
24
+ config = JSON.parse(content);
25
+ } catch (e) {
26
+ console.log(`Error with config file '${configPath}': ${e}`);
27
+ }
28
+ }
29
+
30
+ if(!config.sessionSecret){
31
+ config.sessionSecret = bcrypt.genSaltSync(12);
32
+ let content = JSON.stringify(config);
33
+ fs.writeFileSync(configPath, content);
34
+ }
35
+
36
+ // Setup session id settings
37
+ app.use(session({
38
+ secret: config.sessionSecret,
39
+ resave: false,
40
+ saveUninitialized: false,
41
+ cookie: {
42
+ secure: true,
43
+ maxAge: 24 * 60 * 60 * 1000 /* 1 day */
44
+ //maxAge: 5 * 1000 /* 5 seconds */
45
+ }
46
+ }));
47
+
48
+ app.use(passport.initialize());
49
+ app.use(passport.session());
50
+
51
+ passport.serializeUser(function(user, cb) {
52
+ cb(null, user.id);
53
+ });
54
+
55
+ passport.deserializeUser(function(id, cb) {
56
+ db.users.findById(id, function (err, user) {
57
+ if (err) { return cb(err); }
58
+ cb(null, user);
59
+ });
60
+ });
61
+
62
+ console.log('Setting up auth');
63
+ passport.use(new LocalStrategy(
64
+ (username, password, callback) => {
65
+ db.users.findByUsername(username, (err, user) => {
66
+ if (err) {
67
+ console.log(`Unable to login '${username}', error ${err}`);
68
+ return callback(err);
69
+ }
70
+
71
+ // User not found
72
+ if (!user) {
73
+ console.log(`User '${username}' not found`);
74
+ return callback(null, false);
75
+ }
76
+
77
+ // Always use hashed passwords and fixed time comparison
78
+ bcrypt.compare(password, user.passwordHash, (err, isValid) => {
79
+ if (err) {
80
+ console.log(`Error comparing password for user '${username}': ${err}`);
81
+ return callback(err);
82
+ }
83
+ if (!isValid) {
84
+ console.log(`Password incorrect for user '${username}'`)
85
+ return callback(null, false);
86
+ }
87
+
88
+ console.log(`User '${username}' logged in`);
89
+ return callback(null, user);
90
+ });
91
+ })
92
+ }
93
+ ));
94
+
95
+ passport.authenticationMiddleware = function authenticationMiddleware (redirectUrl) {
96
+ return function (req, res, next) {
97
+ if (req.isAuthenticated()) {
98
+ return next();
99
+ }
100
+
101
+ // Set redirectTo property so that user can be redirected back there after logging in
102
+ //console.log(`Original request path '${req.originalUrl}'`);
103
+ req.session.redirectTo = req.originalUrl;
104
+ res.redirect(redirectUrl);
105
+ }
106
+ }
107
+ }
108
+
109
+ module.exports = initPassport;
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/modules/config.js ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Copyright Epic Games, Inc. All Rights Reserved.
2
+
3
+ //-- Provides configuration information from file and combines it with default values and command line arguments --//
4
+ //-- Hierachy of values: Default Values < Config File < Command Line arguments --//
5
+
6
+ const fs = require('fs');
7
+ const path = require('path');
8
+ const argv = require('yargs').argv;
9
+
10
+ function initConfig(configFile, defaultConfig){
11
+ defaultConfig = defaultConfig || {};
12
+
13
+ // Using object spread syntax: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#Spread_in_object_literals
14
+ let config = {...defaultConfig};
15
+ try{
16
+ let configData = fs.readFileSync(configFile, 'UTF8');
17
+ fileConfig = JSON.parse(configData);
18
+ config = {...config, ...fileConfig}
19
+ // Update config file with any additional defaults (does not override existing values if default has changed)
20
+ fs.writeFileSync(configFile, JSON.stringify(config, null, '\t'), 'UTF8');
21
+ } catch(err) {
22
+ if (err.code === 'ENOENT') {
23
+ console.log("No config file found, writing defaults to log file " + configFile);
24
+ fs.writeFileSync(configFile, JSON.stringify(config, null, '\t'), 'UTF8');
25
+ } else if (err instanceof SyntaxError) {
26
+ console.log(`ERROR: Invalid JSON in ${configFile}, ignoring file config, ${err}`)
27
+ } else {
28
+ console.log(`ERROR: ${err}`);
29
+ }
30
+ }
31
+
32
+ try{
33
+ //Make a copy of the command line args and remove the unneccessary ones
34
+ //The _ value is an array of any elements without a key
35
+ let commandLineConfig = {...argv}
36
+ delete commandLineConfig._;
37
+ delete commandLineConfig.help;
38
+ delete commandLineConfig.version;
39
+ delete commandLineConfig['$0'];
40
+ config = {...config, ...commandLineConfig}
41
+ } catch(err) {
42
+ console.log(`ERROR: ${err}`);
43
+ }
44
+ return config;
45
+ }
46
+
47
+ module.exports = {
48
+ init: initConfig
49
+ }
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/modules/httpsClient.js ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Copyright Epic Games, Inc. All Rights Reserved.
2
+ var querystring = require('querystring')
3
+ const https = require('https');
4
+ const assert = require('assert');
5
+
6
+ function cleanUrl(aUrl){
7
+ let url = aUrl;
8
+ if(url.startsWith("https://"))
9
+ url = url.substring("https://".length);
10
+
11
+ return url
12
+ }
13
+
14
+ function createOptions(requestType, url){
15
+ let index = url.indexOf('/');
16
+
17
+ let urlParts = url.split('/', 2)
18
+
19
+ return {
20
+ hostname: (index === -1) ? url.substring(0) : url.substring(0, index),
21
+ port: 443,
22
+ path: (index === -1) ? '' : url.substring(index),
23
+ method: requestType,
24
+ timeout: 30000,
25
+ };
26
+ }
27
+
28
+ function makeHttpsCall(options, aCallback, aError){
29
+ //console.log(JSON.stringify(options));
30
+ const req = https.request(options, function(response){
31
+ let data = '';
32
+
33
+ //console.log('statusCode:', response.statusCode);
34
+ //console.log('headers:', response.headers);
35
+
36
+ // A chunk of data has been received.
37
+ response.on('data', (chunk) => {
38
+ data += chunk;
39
+ });
40
+
41
+ // The whole response has been received. Print out the result.
42
+ response.on('end', () => {
43
+ if(typeof aCallback != "undefined")
44
+ aCallback(response, data);
45
+ });
46
+ });
47
+
48
+ req.on('timeout', function () {
49
+ console.log("Request timed out. " + (options.timeout / 1000) + " seconds expired");
50
+
51
+ // Source: https://github.com/nodejs/node/blob/master/test/parallel/test-http-client-timeout-option.js#L27
52
+ req.destroy();
53
+ });
54
+
55
+ req.on("error", (err) => {
56
+ if(typeof aError != "undefined") {
57
+ aError(err);
58
+ } else {
59
+ console.log("Error: " + err.message);
60
+ }
61
+ });
62
+
63
+ return req;
64
+ }
65
+
66
+ module.exports = class HttpClient {
67
+ get(aUrl, aCallback, aError) {
68
+ let url = cleanUrl(aUrl);
69
+
70
+ let options = createOptions('GET', url);
71
+
72
+ const req = makeHttpsCall(options, aCallback, aError);
73
+
74
+ req.end();
75
+ }
76
+
77
+ post(aUrl, body, aCallback, aError) {
78
+ let url = cleanUrl(aUrl);
79
+
80
+ let options = createOptions('POST', url);
81
+
82
+ let postBody = querystring.stringify(body);
83
+
84
+ //Add extra options for POST request type
85
+ options.headers = {
86
+ 'Content-Type': 'application/x-www-form-urlencoded',
87
+ 'Content-Length': postBody.length
88
+ };
89
+
90
+ const req = makeHttpsCall(options, aCallback, aError);
91
+
92
+ req.write(postBody);
93
+ req.end();
94
+ }
95
+ }
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/modules/logging.js ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Copyright Epic Games, Inc. All Rights Reserved.
2
+
3
+ const fs = require('fs');
4
+ const { Console } = require('console');
5
+
6
+ var loggers=[];
7
+ var logFunctions=[];
8
+ var logColorFunctions=[];
9
+
10
+ console.log = function(msg, ...args) {
11
+ logFunctions.forEach((logFunction) => {
12
+ logFunction(msg, ...args);
13
+ });
14
+ }
15
+
16
+ console.logColor = function(color, msg, ...args) {
17
+ logColorFunctions.forEach((logColorFunction) => {
18
+ logColorFunction(color, msg, ...args);
19
+ });
20
+ }
21
+
22
+ const AllAttributesOff = '\x1b[0m';
23
+ const BoldOn = '\x1b[1m';
24
+ const Black = '\x1b[30m';
25
+ const Red = '\x1b[31m';
26
+ const Green = '\x1b[32m';
27
+ const Yellow = '\x1b[33m';
28
+ const Blue = '\x1b[34m';
29
+ const Magenta = '\x1b[35m';
30
+ const Cyan = '\x1b[36m';
31
+ const White = '\x1b[37m';
32
+
33
+ /**
34
+ * Pad the start of the given number with zeros so it takes up the number of digits.
35
+ * e.g. zeroPad(5, 3) = '005' and zeroPad(23, 2) = '23'.
36
+ */
37
+ function zeroPad(number, digits) {
38
+ let string = number.toString();
39
+ while (string.length < digits) {
40
+ string = '0' + string;
41
+ }
42
+ return string;
43
+ }
44
+
45
+ /**
46
+ * Create a string of the form 'YEAR.MONTH.DATE.HOURS.MINUTES.SECONDS'.
47
+ */
48
+ function dateTimeToString() {
49
+ let date = new Date();
50
+ return `${date.getFullYear()}.${zeroPad(date.getMonth(), 2)}.${zeroPad(date.getDate(), 2)}.${zeroPad(date.getHours(), 2)}.${zeroPad(date.getMinutes(), 2)}.${zeroPad(date.getSeconds(), 2)}`;
51
+ }
52
+
53
+ /**
54
+ * Create a string of the form 'HOURS.MINUTES.SECONDS.MILLISECONDS'.
55
+ */
56
+ function timeToString() {
57
+ let date = new Date();
58
+ return `${zeroPad(date.getHours(), 2)}:${zeroPad(date.getMinutes(), 2)}:${zeroPad(date.getSeconds(), 2)}.${zeroPad(date.getMilliseconds(), 3)}`;
59
+ }
60
+
61
+ function RegisterFileLogger(path) {
62
+ if(path == null)
63
+ path = './';
64
+
65
+ if (!fs.existsSync(path))
66
+ fs.mkdirSync(path);
67
+
68
+ var output = fs.createWriteStream(`./logs/${dateTimeToString()}.log`);
69
+ var fileLogger = new Console(output);
70
+ logFunctions.push(function(msg, ...args) {
71
+ fileLogger.log(`${timeToString()} ${msg}`, ...args);
72
+ });
73
+
74
+ logColorFunctions.push(function(color, msg, ...args) {
75
+ fileLogger.log(`${timeToString()} ${msg}`, ...args);
76
+ });
77
+ loggers.push(fileLogger);
78
+ }
79
+
80
+ function RegisterConsoleLogger() {
81
+ var consoleLogger = new Console(process.stdout, process.stderr)
82
+ logFunctions.push(function(msg, ...args) {
83
+ consoleLogger.log(`${timeToString()} ${msg}`, ...args);
84
+ });
85
+
86
+ logColorFunctions.push(function(color, msg, ...args) {
87
+ consoleLogger.log(`${BoldOn}${color}${timeToString()} ${msg}${AllAttributesOff}`, ...args);
88
+ });
89
+ loggers.push(consoleLogger);
90
+ }
91
+
92
+ module.exports = {
93
+ //Functions
94
+ RegisterFileLogger,
95
+ RegisterConsoleLogger,
96
+
97
+ //Variables
98
+ AllAttributesOff,
99
+ BoldOn,
100
+ Black,
101
+ Red,
102
+ Green,
103
+ Yellow,
104
+ Blue,
105
+ Magenta,
106
+ Cyan,
107
+ White
108
+ }
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/package-lock.json ADDED
@@ -0,0 +1,1753 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cirrus-webserver",
3
+ "version": "0.0.1",
4
+ "lockfileVersion": 2,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "cirrus-webserver",
9
+ "version": "0.0.1",
10
+ "dependencies": {
11
+ "bcryptjs": "^2.4.3",
12
+ "express": "^4.16.2",
13
+ "express-session": "^1.15.6",
14
+ "helmet": "^3.21.3",
15
+ "passport": "^0.4.0",
16
+ "passport-local": "^1.0.0",
17
+ "ws": "^7.1.2",
18
+ "y18n": "^5.0.5",
19
+ "yargs": "^15.3.0"
20
+ }
21
+ },
22
+ "node_modules/accepts": {
23
+ "version": "1.3.4",
24
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.4.tgz",
25
+ "integrity": "sha1-hiRnWMfdbSGmR0/whKR0DsBesh8=",
26
+ "dependencies": {
27
+ "mime-types": "~2.1.16",
28
+ "negotiator": "0.6.1"
29
+ },
30
+ "engines": {
31
+ "node": ">= 0.6"
32
+ }
33
+ },
34
+ "node_modules/ansi-regex": {
35
+ "version": "5.0.0",
36
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz",
37
+ "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==",
38
+ "engines": {
39
+ "node": ">=8"
40
+ }
41
+ },
42
+ "node_modules/ansi-styles": {
43
+ "version": "4.3.0",
44
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
45
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
46
+ "dependencies": {
47
+ "color-convert": "^2.0.1"
48
+ },
49
+ "engines": {
50
+ "node": ">=8"
51
+ }
52
+ },
53
+ "node_modules/array-flatten": {
54
+ "version": "1.1.1",
55
+ "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
56
+ "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
57
+ },
58
+ "node_modules/async-limiter": {
59
+ "version": "1.0.1",
60
+ "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz",
61
+ "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ=="
62
+ },
63
+ "node_modules/bcryptjs": {
64
+ "version": "2.4.3",
65
+ "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.4.3.tgz",
66
+ "integrity": "sha1-mrVie5PmBiH/fNrF2pczAn3x0Ms="
67
+ },
68
+ "node_modules/body-parser": {
69
+ "version": "1.18.2",
70
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.2.tgz",
71
+ "integrity": "sha1-h2eKGdhLR9hZuDGZvVm84iKxBFQ=",
72
+ "dependencies": {
73
+ "bytes": "3.0.0",
74
+ "content-type": "~1.0.4",
75
+ "debug": "2.6.9",
76
+ "depd": "~1.1.1",
77
+ "http-errors": "~1.6.2",
78
+ "iconv-lite": "0.4.19",
79
+ "on-finished": "~2.3.0",
80
+ "qs": "6.5.1",
81
+ "raw-body": "2.3.2",
82
+ "type-is": "~1.6.15"
83
+ },
84
+ "engines": {
85
+ "node": ">= 0.8"
86
+ }
87
+ },
88
+ "node_modules/body-parser/node_modules/debug": {
89
+ "version": "2.6.9",
90
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
91
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
92
+ "dependencies": {
93
+ "ms": "2.0.0"
94
+ }
95
+ },
96
+ "node_modules/body-parser/node_modules/ms": {
97
+ "version": "2.0.0",
98
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
99
+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
100
+ },
101
+ "node_modules/body-parser/node_modules/qs": {
102
+ "version": "6.5.1",
103
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz",
104
+ "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==",
105
+ "engines": {
106
+ "node": ">=0.6"
107
+ }
108
+ },
109
+ "node_modules/bowser": {
110
+ "version": "2.9.0",
111
+ "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.9.0.tgz",
112
+ "integrity": "sha512-2ld76tuLBNFekRgmJfT2+3j5MIrP6bFict8WAIT3beq+srz1gcKNAdNKMqHqauQt63NmAa88HfP1/Ypa9Er3HA=="
113
+ },
114
+ "node_modules/bytes": {
115
+ "version": "3.0.0",
116
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz",
117
+ "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=",
118
+ "engines": {
119
+ "node": ">= 0.8"
120
+ }
121
+ },
122
+ "node_modules/camelcase": {
123
+ "version": "5.3.1",
124
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
125
+ "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
126
+ "engines": {
127
+ "node": ">=6"
128
+ }
129
+ },
130
+ "node_modules/camelize": {
131
+ "version": "1.0.0",
132
+ "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz",
133
+ "integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs="
134
+ },
135
+ "node_modules/cliui": {
136
+ "version": "6.0.0",
137
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz",
138
+ "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==",
139
+ "dependencies": {
140
+ "string-width": "^4.2.0",
141
+ "strip-ansi": "^6.0.0",
142
+ "wrap-ansi": "^6.2.0"
143
+ }
144
+ },
145
+ "node_modules/color-convert": {
146
+ "version": "2.0.1",
147
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
148
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
149
+ "dependencies": {
150
+ "color-name": "~1.1.4"
151
+ },
152
+ "engines": {
153
+ "node": ">=7.0.0"
154
+ }
155
+ },
156
+ "node_modules/color-name": {
157
+ "version": "1.1.4",
158
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
159
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
160
+ },
161
+ "node_modules/content-disposition": {
162
+ "version": "0.5.2",
163
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz",
164
+ "integrity": "sha1-DPaLud318r55YcOoUXjLhdunjLQ=",
165
+ "engines": {
166
+ "node": ">= 0.6"
167
+ }
168
+ },
169
+ "node_modules/content-security-policy-builder": {
170
+ "version": "2.1.0",
171
+ "resolved": "https://registry.npmjs.org/content-security-policy-builder/-/content-security-policy-builder-2.1.0.tgz",
172
+ "integrity": "sha512-/MtLWhJVvJNkA9dVLAp6fg9LxD2gfI6R2Fi1hPmfjYXSahJJzcfvoeDOxSyp4NvxMuwWv3WMssE9o31DoULHrQ==",
173
+ "engines": {
174
+ "node": ">=4.0.0"
175
+ }
176
+ },
177
+ "node_modules/content-type": {
178
+ "version": "1.0.4",
179
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
180
+ "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==",
181
+ "engines": {
182
+ "node": ">= 0.6"
183
+ }
184
+ },
185
+ "node_modules/cookie": {
186
+ "version": "0.3.1",
187
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz",
188
+ "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=",
189
+ "engines": {
190
+ "node": ">= 0.6"
191
+ }
192
+ },
193
+ "node_modules/cookie-signature": {
194
+ "version": "1.0.6",
195
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
196
+ "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
197
+ },
198
+ "node_modules/crc": {
199
+ "version": "3.4.4",
200
+ "resolved": "https://registry.npmjs.org/crc/-/crc-3.4.4.tgz",
201
+ "integrity": "sha1-naHpgOO9RPxck79as9ozeNheRms="
202
+ },
203
+ "node_modules/dasherize": {
204
+ "version": "2.0.0",
205
+ "resolved": "https://registry.npmjs.org/dasherize/-/dasherize-2.0.0.tgz",
206
+ "integrity": "sha1-bYCcnNDPe7iVLYD8hPoT1H3bEwg="
207
+ },
208
+ "node_modules/debug": {
209
+ "version": "2.6.9",
210
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
211
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
212
+ "dependencies": {
213
+ "ms": "2.0.0"
214
+ }
215
+ },
216
+ "node_modules/decamelize": {
217
+ "version": "1.2.0",
218
+ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
219
+ "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=",
220
+ "engines": {
221
+ "node": ">=0.10.0"
222
+ }
223
+ },
224
+ "node_modules/depd": {
225
+ "version": "1.1.1",
226
+ "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz",
227
+ "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=",
228
+ "engines": {
229
+ "node": ">= 0.6"
230
+ }
231
+ },
232
+ "node_modules/destroy": {
233
+ "version": "1.0.4",
234
+ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
235
+ "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
236
+ },
237
+ "node_modules/dont-sniff-mimetype": {
238
+ "version": "1.1.0",
239
+ "resolved": "https://registry.npmjs.org/dont-sniff-mimetype/-/dont-sniff-mimetype-1.1.0.tgz",
240
+ "integrity": "sha512-ZjI4zqTaxveH2/tTlzS1wFp+7ncxNZaIEWYg3lzZRHkKf5zPT/MnEG6WL0BhHMJUabkh8GeU5NL5j+rEUCb7Ug==",
241
+ "engines": {
242
+ "node": ">=4.0.0"
243
+ }
244
+ },
245
+ "node_modules/ee-first": {
246
+ "version": "1.1.1",
247
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
248
+ "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
249
+ },
250
+ "node_modules/emoji-regex": {
251
+ "version": "8.0.0",
252
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
253
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
254
+ },
255
+ "node_modules/encodeurl": {
256
+ "version": "1.0.1",
257
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.1.tgz",
258
+ "integrity": "sha1-eePVhlU0aQn+bw9Fpd5oEDspTSA=",
259
+ "engines": {
260
+ "node": ">= 0.8"
261
+ }
262
+ },
263
+ "node_modules/escape-html": {
264
+ "version": "1.0.3",
265
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
266
+ "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="
267
+ },
268
+ "node_modules/etag": {
269
+ "version": "1.8.1",
270
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
271
+ "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=",
272
+ "engines": {
273
+ "node": ">= 0.6"
274
+ }
275
+ },
276
+ "node_modules/express": {
277
+ "version": "4.16.2",
278
+ "resolved": "https://registry.npmjs.org/express/-/express-4.16.2.tgz",
279
+ "integrity": "sha1-41xt/i1kt9ygpc1PIXgb4ymeB2w=",
280
+ "dependencies": {
281
+ "accepts": "~1.3.4",
282
+ "array-flatten": "1.1.1",
283
+ "body-parser": "1.18.2",
284
+ "content-disposition": "0.5.2",
285
+ "content-type": "~1.0.4",
286
+ "cookie": "0.3.1",
287
+ "cookie-signature": "1.0.6",
288
+ "debug": "2.6.9",
289
+ "depd": "~1.1.1",
290
+ "encodeurl": "~1.0.1",
291
+ "escape-html": "~1.0.3",
292
+ "etag": "~1.8.1",
293
+ "finalhandler": "1.1.0",
294
+ "fresh": "0.5.2",
295
+ "merge-descriptors": "1.0.1",
296
+ "methods": "~1.1.2",
297
+ "on-finished": "~2.3.0",
298
+ "parseurl": "~1.3.2",
299
+ "path-to-regexp": "0.1.7",
300
+ "proxy-addr": "~2.0.2",
301
+ "qs": "6.5.1",
302
+ "range-parser": "~1.2.0",
303
+ "safe-buffer": "5.1.1",
304
+ "send": "0.16.1",
305
+ "serve-static": "1.13.1",
306
+ "setprototypeof": "1.1.0",
307
+ "statuses": "~1.3.1",
308
+ "type-is": "~1.6.15",
309
+ "utils-merge": "1.0.1",
310
+ "vary": "~1.1.2"
311
+ },
312
+ "engines": {
313
+ "node": ">= 0.10.0"
314
+ }
315
+ },
316
+ "node_modules/express-session": {
317
+ "version": "1.15.6",
318
+ "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.15.6.tgz",
319
+ "integrity": "sha512-r0nrHTCYtAMrFwZ0kBzZEXa1vtPVrw0dKvGSrKP4dahwBQ1BJpF2/y1Pp4sCD/0kvxV4zZeclyvfmw0B4RMJQA==",
320
+ "dependencies": {
321
+ "cookie": "0.3.1",
322
+ "cookie-signature": "1.0.6",
323
+ "crc": "3.4.4",
324
+ "debug": "2.6.9",
325
+ "depd": "~1.1.1",
326
+ "on-headers": "~1.0.1",
327
+ "parseurl": "~1.3.2",
328
+ "uid-safe": "~2.1.5",
329
+ "utils-merge": "1.0.1"
330
+ },
331
+ "engines": {
332
+ "node": ">= 0.8.0"
333
+ }
334
+ },
335
+ "node_modules/express/node_modules/setprototypeof": {
336
+ "version": "1.1.0",
337
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz",
338
+ "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ=="
339
+ },
340
+ "node_modules/feature-policy": {
341
+ "version": "0.3.0",
342
+ "resolved": "https://registry.npmjs.org/feature-policy/-/feature-policy-0.3.0.tgz",
343
+ "integrity": "sha512-ZtijOTFN7TzCujt1fnNhfWPFPSHeZkesff9AXZj+UEjYBynWNUIYpC87Ve4wHzyexQsImicLu7WsC2LHq7/xrQ==",
344
+ "engines": {
345
+ "node": ">=4.0.0"
346
+ }
347
+ },
348
+ "node_modules/finalhandler": {
349
+ "version": "1.1.0",
350
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.0.tgz",
351
+ "integrity": "sha1-zgtoVbRYU+eRsvzGgARtiCU91/U=",
352
+ "dependencies": {
353
+ "debug": "2.6.9",
354
+ "encodeurl": "~1.0.1",
355
+ "escape-html": "~1.0.3",
356
+ "on-finished": "~2.3.0",
357
+ "parseurl": "~1.3.2",
358
+ "statuses": "~1.3.1",
359
+ "unpipe": "~1.0.0"
360
+ },
361
+ "engines": {
362
+ "node": ">= 0.8"
363
+ }
364
+ },
365
+ "node_modules/find-up": {
366
+ "version": "4.1.0",
367
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
368
+ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
369
+ "dependencies": {
370
+ "locate-path": "^5.0.0",
371
+ "path-exists": "^4.0.0"
372
+ },
373
+ "engines": {
374
+ "node": ">=8"
375
+ }
376
+ },
377
+ "node_modules/forwarded": {
378
+ "version": "0.1.2",
379
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz",
380
+ "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=",
381
+ "engines": {
382
+ "node": ">= 0.6"
383
+ }
384
+ },
385
+ "node_modules/fresh": {
386
+ "version": "0.5.2",
387
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
388
+ "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=",
389
+ "engines": {
390
+ "node": ">= 0.6"
391
+ }
392
+ },
393
+ "node_modules/get-caller-file": {
394
+ "version": "2.0.5",
395
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
396
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
397
+ "engines": {
398
+ "node": "6.* || 8.* || >= 10.*"
399
+ }
400
+ },
401
+ "node_modules/helmet": {
402
+ "version": "3.23.3",
403
+ "resolved": "https://registry.npmjs.org/helmet/-/helmet-3.23.3.tgz",
404
+ "integrity": "sha512-U3MeYdzPJQhtvqAVBPntVgAvNSOJyagwZwyKsFdyRa8TV3pOKVFljalPOCxbw5Wwf2kncGhmP0qHjyazIdNdSA==",
405
+ "dependencies": {
406
+ "depd": "2.0.0",
407
+ "dont-sniff-mimetype": "1.1.0",
408
+ "feature-policy": "0.3.0",
409
+ "helmet-crossdomain": "0.4.0",
410
+ "helmet-csp": "2.10.0",
411
+ "hide-powered-by": "1.1.0",
412
+ "hpkp": "2.0.0",
413
+ "hsts": "2.2.0",
414
+ "nocache": "2.1.0",
415
+ "referrer-policy": "1.2.0",
416
+ "x-xss-protection": "1.3.0"
417
+ },
418
+ "engines": {
419
+ "node": ">=4.0.0"
420
+ }
421
+ },
422
+ "node_modules/helmet-crossdomain": {
423
+ "version": "0.4.0",
424
+ "resolved": "https://registry.npmjs.org/helmet-crossdomain/-/helmet-crossdomain-0.4.0.tgz",
425
+ "integrity": "sha512-AB4DTykRw3HCOxovD1nPR16hllrVImeFp5VBV9/twj66lJ2nU75DP8FPL0/Jp4jj79JhTfG+pFI2MD02kWJ+fA==",
426
+ "engines": {
427
+ "node": ">=4.0.0"
428
+ }
429
+ },
430
+ "node_modules/helmet-csp": {
431
+ "version": "2.10.0",
432
+ "resolved": "https://registry.npmjs.org/helmet-csp/-/helmet-csp-2.10.0.tgz",
433
+ "integrity": "sha512-Rz953ZNEFk8sT2XvewXkYN0Ho4GEZdjAZy4stjiEQV3eN7GDxg1QKmYggH7otDyIA7uGA6XnUMVSgeJwbR5X+w==",
434
+ "dependencies": {
435
+ "bowser": "2.9.0",
436
+ "camelize": "1.0.0",
437
+ "content-security-policy-builder": "2.1.0",
438
+ "dasherize": "2.0.0"
439
+ },
440
+ "engines": {
441
+ "node": ">=4.0.0"
442
+ }
443
+ },
444
+ "node_modules/helmet/node_modules/depd": {
445
+ "version": "2.0.0",
446
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
447
+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
448
+ "engines": {
449
+ "node": ">= 0.8"
450
+ }
451
+ },
452
+ "node_modules/hide-powered-by": {
453
+ "version": "1.1.0",
454
+ "resolved": "https://registry.npmjs.org/hide-powered-by/-/hide-powered-by-1.1.0.tgz",
455
+ "integrity": "sha512-Io1zA2yOA1YJslkr+AJlWSf2yWFkKjvkcL9Ni1XSUqnGLr/qRQe2UI3Cn/J9MsJht7yEVCe0SscY1HgVMujbgg==",
456
+ "engines": {
457
+ "node": ">=4.0.0"
458
+ }
459
+ },
460
+ "node_modules/hpkp": {
461
+ "version": "2.0.0",
462
+ "resolved": "https://registry.npmjs.org/hpkp/-/hpkp-2.0.0.tgz",
463
+ "integrity": "sha1-EOFCJk52IVpdMMROxD3mTe5tFnI="
464
+ },
465
+ "node_modules/hsts": {
466
+ "version": "2.2.0",
467
+ "resolved": "https://registry.npmjs.org/hsts/-/hsts-2.2.0.tgz",
468
+ "integrity": "sha512-ToaTnQ2TbJkochoVcdXYm4HOCliNozlviNsg+X2XQLQvZNI/kCHR9rZxVYpJB3UPcHz80PgxRyWQ7PdU1r+VBQ==",
469
+ "dependencies": {
470
+ "depd": "2.0.0"
471
+ },
472
+ "engines": {
473
+ "node": ">=4.0.0"
474
+ }
475
+ },
476
+ "node_modules/hsts/node_modules/depd": {
477
+ "version": "2.0.0",
478
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
479
+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
480
+ "engines": {
481
+ "node": ">= 0.8"
482
+ }
483
+ },
484
+ "node_modules/http-errors": {
485
+ "version": "1.6.2",
486
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.2.tgz",
487
+ "integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=",
488
+ "dependencies": {
489
+ "depd": "1.1.1",
490
+ "inherits": "2.0.3",
491
+ "setprototypeof": "1.0.3",
492
+ "statuses": ">= 1.3.1 < 2"
493
+ },
494
+ "engines": {
495
+ "node": ">= 0.6"
496
+ }
497
+ },
498
+ "node_modules/iconv-lite": {
499
+ "version": "0.4.19",
500
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz",
501
+ "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==",
502
+ "engines": {
503
+ "node": ">=0.10.0"
504
+ }
505
+ },
506
+ "node_modules/inherits": {
507
+ "version": "2.0.3",
508
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
509
+ "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
510
+ },
511
+ "node_modules/ipaddr.js": {
512
+ "version": "1.5.2",
513
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.5.2.tgz",
514
+ "integrity": "sha1-1LUFvemUaYfM8PxY2QEP+WB+P6A=",
515
+ "engines": {
516
+ "node": ">= 0.10"
517
+ }
518
+ },
519
+ "node_modules/is-fullwidth-code-point": {
520
+ "version": "3.0.0",
521
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
522
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
523
+ "engines": {
524
+ "node": ">=8"
525
+ }
526
+ },
527
+ "node_modules/locate-path": {
528
+ "version": "5.0.0",
529
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
530
+ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
531
+ "dependencies": {
532
+ "p-locate": "^4.1.0"
533
+ },
534
+ "engines": {
535
+ "node": ">=8"
536
+ }
537
+ },
538
+ "node_modules/media-typer": {
539
+ "version": "0.3.0",
540
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
541
+ "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=",
542
+ "engines": {
543
+ "node": ">= 0.6"
544
+ }
545
+ },
546
+ "node_modules/merge-descriptors": {
547
+ "version": "1.0.1",
548
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
549
+ "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E="
550
+ },
551
+ "node_modules/methods": {
552
+ "version": "1.1.2",
553
+ "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
554
+ "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=",
555
+ "engines": {
556
+ "node": ">= 0.6"
557
+ }
558
+ },
559
+ "node_modules/mime": {
560
+ "version": "1.4.1",
561
+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz",
562
+ "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==",
563
+ "bin": {
564
+ "mime": "cli.js"
565
+ }
566
+ },
567
+ "node_modules/mime-db": {
568
+ "version": "1.30.0",
569
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.30.0.tgz",
570
+ "integrity": "sha1-dMZD2i3Z1qRTmZY0ZbJtXKfXHwE=",
571
+ "engines": {
572
+ "node": ">= 0.6"
573
+ }
574
+ },
575
+ "node_modules/mime-types": {
576
+ "version": "2.1.17",
577
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.17.tgz",
578
+ "integrity": "sha1-Cdejk/A+mVp5+K+Fe3Cp4KsWVXo=",
579
+ "dependencies": {
580
+ "mime-db": "~1.30.0"
581
+ },
582
+ "engines": {
583
+ "node": ">= 0.6"
584
+ }
585
+ },
586
+ "node_modules/ms": {
587
+ "version": "2.0.0",
588
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
589
+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
590
+ },
591
+ "node_modules/negotiator": {
592
+ "version": "0.6.1",
593
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz",
594
+ "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=",
595
+ "engines": {
596
+ "node": ">= 0.6"
597
+ }
598
+ },
599
+ "node_modules/nocache": {
600
+ "version": "2.1.0",
601
+ "resolved": "https://registry.npmjs.org/nocache/-/nocache-2.1.0.tgz",
602
+ "integrity": "sha512-0L9FvHG3nfnnmaEQPjT9xhfN4ISk0A8/2j4M37Np4mcDesJjHgEUfgPhdCyZuFI954tjokaIj/A3NdpFNdEh4Q==",
603
+ "engines": {
604
+ "node": ">=4.0.0"
605
+ }
606
+ },
607
+ "node_modules/on-finished": {
608
+ "version": "2.3.0",
609
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
610
+ "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=",
611
+ "dependencies": {
612
+ "ee-first": "1.1.1"
613
+ },
614
+ "engines": {
615
+ "node": ">= 0.8"
616
+ }
617
+ },
618
+ "node_modules/on-headers": {
619
+ "version": "1.0.1",
620
+ "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz",
621
+ "integrity": "sha1-ko9dD0cNSTQmUepnlLCFfBAGk/c=",
622
+ "engines": {
623
+ "node": ">= 0.8"
624
+ }
625
+ },
626
+ "node_modules/p-limit": {
627
+ "version": "2.3.0",
628
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
629
+ "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
630
+ "dependencies": {
631
+ "p-try": "^2.0.0"
632
+ },
633
+ "engines": {
634
+ "node": ">=6"
635
+ }
636
+ },
637
+ "node_modules/p-locate": {
638
+ "version": "4.1.0",
639
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
640
+ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
641
+ "dependencies": {
642
+ "p-limit": "^2.2.0"
643
+ },
644
+ "engines": {
645
+ "node": ">=8"
646
+ }
647
+ },
648
+ "node_modules/p-try": {
649
+ "version": "2.2.0",
650
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
651
+ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
652
+ "engines": {
653
+ "node": ">=6"
654
+ }
655
+ },
656
+ "node_modules/parseurl": {
657
+ "version": "1.3.2",
658
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz",
659
+ "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M=",
660
+ "engines": {
661
+ "node": ">= 0.8"
662
+ }
663
+ },
664
+ "node_modules/passport": {
665
+ "version": "0.4.0",
666
+ "resolved": "https://registry.npmjs.org/passport/-/passport-0.4.0.tgz",
667
+ "integrity": "sha1-xQlWkTR71a07XhgCOMORTRbwWBE=",
668
+ "dependencies": {
669
+ "passport-strategy": "1.x.x",
670
+ "pause": "0.0.1"
671
+ },
672
+ "engines": {
673
+ "node": ">= 0.4.0"
674
+ }
675
+ },
676
+ "node_modules/passport-local": {
677
+ "version": "1.0.0",
678
+ "resolved": "https://registry.npmjs.org/passport-local/-/passport-local-1.0.0.tgz",
679
+ "integrity": "sha1-H+YyaMkudWBmJkN+O5BmYsFbpu4=",
680
+ "dependencies": {
681
+ "passport-strategy": "1.x.x"
682
+ },
683
+ "engines": {
684
+ "node": ">= 0.4.0"
685
+ }
686
+ },
687
+ "node_modules/passport-strategy": {
688
+ "version": "1.0.0",
689
+ "resolved": "https://registry.npmjs.org/passport-strategy/-/passport-strategy-1.0.0.tgz",
690
+ "integrity": "sha1-tVOaqPwiWj0a0XlHbd8ja0QPUuQ=",
691
+ "engines": {
692
+ "node": ">= 0.4.0"
693
+ }
694
+ },
695
+ "node_modules/path-exists": {
696
+ "version": "4.0.0",
697
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
698
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
699
+ "engines": {
700
+ "node": ">=8"
701
+ }
702
+ },
703
+ "node_modules/path-to-regexp": {
704
+ "version": "0.1.7",
705
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
706
+ "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="
707
+ },
708
+ "node_modules/pause": {
709
+ "version": "0.0.1",
710
+ "resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz",
711
+ "integrity": "sha1-HUCLP9t2kjuVQ9lvtMnf1TXZy10="
712
+ },
713
+ "node_modules/proxy-addr": {
714
+ "version": "2.0.2",
715
+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.2.tgz",
716
+ "integrity": "sha1-ZXFQT0e7mI7IGAJT+F3X4UlSvew=",
717
+ "dependencies": {
718
+ "forwarded": "~0.1.2",
719
+ "ipaddr.js": "1.5.2"
720
+ },
721
+ "engines": {
722
+ "node": ">= 0.10"
723
+ }
724
+ },
725
+ "node_modules/qs": {
726
+ "version": "6.5.1",
727
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz",
728
+ "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==",
729
+ "engines": {
730
+ "node": ">=0.6"
731
+ }
732
+ },
733
+ "node_modules/random-bytes": {
734
+ "version": "1.0.0",
735
+ "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz",
736
+ "integrity": "sha1-T2ih3Arli9P7lYSMMDJNt11kNgs=",
737
+ "engines": {
738
+ "node": ">= 0.8"
739
+ }
740
+ },
741
+ "node_modules/range-parser": {
742
+ "version": "1.2.0",
743
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz",
744
+ "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=",
745
+ "engines": {
746
+ "node": ">= 0.6"
747
+ }
748
+ },
749
+ "node_modules/raw-body": {
750
+ "version": "2.3.2",
751
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.2.tgz",
752
+ "integrity": "sha1-vNYMd9Prk83gBQKVw/N5OJvIj4k=",
753
+ "dependencies": {
754
+ "bytes": "3.0.0",
755
+ "http-errors": "1.6.2",
756
+ "iconv-lite": "0.4.19",
757
+ "unpipe": "1.0.0"
758
+ },
759
+ "engines": {
760
+ "node": ">= 0.8"
761
+ }
762
+ },
763
+ "node_modules/referrer-policy": {
764
+ "version": "1.2.0",
765
+ "resolved": "https://registry.npmjs.org/referrer-policy/-/referrer-policy-1.2.0.tgz",
766
+ "integrity": "sha512-LgQJIuS6nAy1Jd88DCQRemyE3mS+ispwlqMk3b0yjZ257fI1v9c+/p6SD5gP5FGyXUIgrNOAfmyioHwZtYv2VA==",
767
+ "engines": {
768
+ "node": ">=4.0.0"
769
+ }
770
+ },
771
+ "node_modules/require-directory": {
772
+ "version": "2.1.1",
773
+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
774
+ "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=",
775
+ "engines": {
776
+ "node": ">=0.10.0"
777
+ }
778
+ },
779
+ "node_modules/require-main-filename": {
780
+ "version": "2.0.0",
781
+ "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz",
782
+ "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg=="
783
+ },
784
+ "node_modules/safe-buffer": {
785
+ "version": "5.1.1",
786
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz",
787
+ "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg=="
788
+ },
789
+ "node_modules/send": {
790
+ "version": "0.16.1",
791
+ "resolved": "https://registry.npmjs.org/send/-/send-0.16.1.tgz",
792
+ "integrity": "sha512-ElCLJdJIKPk6ux/Hocwhk7NFHpI3pVm/IZOYWqUmoxcgeyM+MpxHHKhb8QmlJDX1pU6WrgaHBkVNm73Sv7uc2A==",
793
+ "dependencies": {
794
+ "debug": "2.6.9",
795
+ "depd": "~1.1.1",
796
+ "destroy": "~1.0.4",
797
+ "encodeurl": "~1.0.1",
798
+ "escape-html": "~1.0.3",
799
+ "etag": "~1.8.1",
800
+ "fresh": "0.5.2",
801
+ "http-errors": "~1.6.2",
802
+ "mime": "1.4.1",
803
+ "ms": "2.0.0",
804
+ "on-finished": "~2.3.0",
805
+ "range-parser": "~1.2.0",
806
+ "statuses": "~1.3.1"
807
+ },
808
+ "engines": {
809
+ "node": ">= 0.8.0"
810
+ }
811
+ },
812
+ "node_modules/serve-static": {
813
+ "version": "1.13.1",
814
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.1.tgz",
815
+ "integrity": "sha512-hSMUZrsPa/I09VYFJwa627JJkNs0NrfL1Uzuup+GqHfToR2KcsXFymXSV90hoyw3M+msjFuQly+YzIH/q0MGlQ==",
816
+ "dependencies": {
817
+ "encodeurl": "~1.0.1",
818
+ "escape-html": "~1.0.3",
819
+ "parseurl": "~1.3.2",
820
+ "send": "0.16.1"
821
+ },
822
+ "engines": {
823
+ "node": ">= 0.8.0"
824
+ }
825
+ },
826
+ "node_modules/set-blocking": {
827
+ "version": "2.0.0",
828
+ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
829
+ "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc="
830
+ },
831
+ "node_modules/setprototypeof": {
832
+ "version": "1.0.3",
833
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz",
834
+ "integrity": "sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ="
835
+ },
836
+ "node_modules/statuses": {
837
+ "version": "1.3.1",
838
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz",
839
+ "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4=",
840
+ "engines": {
841
+ "node": ">= 0.6"
842
+ }
843
+ },
844
+ "node_modules/string-width": {
845
+ "version": "4.2.2",
846
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz",
847
+ "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==",
848
+ "dependencies": {
849
+ "emoji-regex": "^8.0.0",
850
+ "is-fullwidth-code-point": "^3.0.0",
851
+ "strip-ansi": "^6.0.0"
852
+ },
853
+ "engines": {
854
+ "node": ">=8"
855
+ }
856
+ },
857
+ "node_modules/strip-ansi": {
858
+ "version": "6.0.0",
859
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
860
+ "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
861
+ "dependencies": {
862
+ "ansi-regex": "^5.0.0"
863
+ },
864
+ "engines": {
865
+ "node": ">=8"
866
+ }
867
+ },
868
+ "node_modules/type-is": {
869
+ "version": "1.6.15",
870
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.15.tgz",
871
+ "integrity": "sha1-yrEPtJCeRByChC6v4a1kbIGARBA=",
872
+ "dependencies": {
873
+ "media-typer": "0.3.0",
874
+ "mime-types": "~2.1.15"
875
+ },
876
+ "engines": {
877
+ "node": ">= 0.6"
878
+ }
879
+ },
880
+ "node_modules/uid-safe": {
881
+ "version": "2.1.5",
882
+ "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz",
883
+ "integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==",
884
+ "dependencies": {
885
+ "random-bytes": "~1.0.0"
886
+ },
887
+ "engines": {
888
+ "node": ">= 0.8"
889
+ }
890
+ },
891
+ "node_modules/unpipe": {
892
+ "version": "1.0.0",
893
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
894
+ "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=",
895
+ "engines": {
896
+ "node": ">= 0.8"
897
+ }
898
+ },
899
+ "node_modules/utils-merge": {
900
+ "version": "1.0.1",
901
+ "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
902
+ "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=",
903
+ "engines": {
904
+ "node": ">= 0.4.0"
905
+ }
906
+ },
907
+ "node_modules/vary": {
908
+ "version": "1.1.2",
909
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
910
+ "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=",
911
+ "engines": {
912
+ "node": ">= 0.8"
913
+ }
914
+ },
915
+ "node_modules/which-module": {
916
+ "version": "2.0.0",
917
+ "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
918
+ "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho="
919
+ },
920
+ "node_modules/wrap-ansi": {
921
+ "version": "6.2.0",
922
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
923
+ "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",
924
+ "dependencies": {
925
+ "ansi-styles": "^4.0.0",
926
+ "string-width": "^4.1.0",
927
+ "strip-ansi": "^6.0.0"
928
+ },
929
+ "engines": {
930
+ "node": ">=8"
931
+ }
932
+ },
933
+ "node_modules/ws": {
934
+ "version": "7.1.2",
935
+ "resolved": "https://registry.npmjs.org/ws/-/ws-7.1.2.tgz",
936
+ "integrity": "sha512-gftXq3XI81cJCgkUiAVixA0raD9IVmXqsylCrjRygw4+UOOGzPoxnQ6r/CnVL9i+mDncJo94tSkyrtuuQVBmrg==",
937
+ "dependencies": {
938
+ "async-limiter": "^1.0.0"
939
+ }
940
+ },
941
+ "node_modules/x-xss-protection": {
942
+ "version": "1.3.0",
943
+ "resolved": "https://registry.npmjs.org/x-xss-protection/-/x-xss-protection-1.3.0.tgz",
944
+ "integrity": "sha512-kpyBI9TlVipZO4diReZMAHWtS0MMa/7Kgx8hwG/EuZLiA6sg4Ah/4TRdASHhRRN3boobzcYgFRUFSgHRge6Qhg==",
945
+ "engines": {
946
+ "node": ">=4.0.0"
947
+ }
948
+ },
949
+ "node_modules/y18n": {
950
+ "version": "5.0.8",
951
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
952
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
953
+ "engines": {
954
+ "node": ">=10"
955
+ }
956
+ },
957
+ "node_modules/yargs": {
958
+ "version": "15.4.1",
959
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz",
960
+ "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==",
961
+ "dependencies": {
962
+ "cliui": "^6.0.0",
963
+ "decamelize": "^1.2.0",
964
+ "find-up": "^4.1.0",
965
+ "get-caller-file": "^2.0.1",
966
+ "require-directory": "^2.1.1",
967
+ "require-main-filename": "^2.0.0",
968
+ "set-blocking": "^2.0.0",
969
+ "string-width": "^4.2.0",
970
+ "which-module": "^2.0.0",
971
+ "y18n": "^4.0.0",
972
+ "yargs-parser": "^18.1.2"
973
+ },
974
+ "engines": {
975
+ "node": ">=8"
976
+ }
977
+ },
978
+ "node_modules/yargs-parser": {
979
+ "version": "18.1.3",
980
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz",
981
+ "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==",
982
+ "dependencies": {
983
+ "camelcase": "^5.0.0",
984
+ "decamelize": "^1.2.0"
985
+ },
986
+ "engines": {
987
+ "node": ">=6"
988
+ }
989
+ },
990
+ "node_modules/yargs/node_modules/y18n": {
991
+ "version": "4.0.3",
992
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz",
993
+ "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ=="
994
+ }
995
+ },
996
+ "dependencies": {
997
+ "accepts": {
998
+ "version": "1.3.4",
999
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.4.tgz",
1000
+ "integrity": "sha1-hiRnWMfdbSGmR0/whKR0DsBesh8=",
1001
+ "requires": {
1002
+ "mime-types": "~2.1.16",
1003
+ "negotiator": "0.6.1"
1004
+ }
1005
+ },
1006
+ "ansi-regex": {
1007
+ "version": "5.0.0",
1008
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz",
1009
+ "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg=="
1010
+ },
1011
+ "ansi-styles": {
1012
+ "version": "4.3.0",
1013
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
1014
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
1015
+ "requires": {
1016
+ "color-convert": "^2.0.1"
1017
+ }
1018
+ },
1019
+ "array-flatten": {
1020
+ "version": "1.1.1",
1021
+ "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
1022
+ "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
1023
+ },
1024
+ "async-limiter": {
1025
+ "version": "1.0.1",
1026
+ "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz",
1027
+ "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ=="
1028
+ },
1029
+ "bcryptjs": {
1030
+ "version": "2.4.3",
1031
+ "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.4.3.tgz",
1032
+ "integrity": "sha1-mrVie5PmBiH/fNrF2pczAn3x0Ms="
1033
+ },
1034
+ "body-parser": {
1035
+ "version": "1.18.2",
1036
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.2.tgz",
1037
+ "integrity": "sha1-h2eKGdhLR9hZuDGZvVm84iKxBFQ=",
1038
+ "requires": {
1039
+ "bytes": "3.0.0",
1040
+ "content-type": "~1.0.4",
1041
+ "debug": "2.6.9",
1042
+ "depd": "~1.1.1",
1043
+ "http-errors": "~1.6.2",
1044
+ "iconv-lite": "0.4.19",
1045
+ "on-finished": "~2.3.0",
1046
+ "qs": "6.5.1",
1047
+ "raw-body": "2.3.2",
1048
+ "type-is": "~1.6.15"
1049
+ },
1050
+ "dependencies": {
1051
+ "debug": {
1052
+ "version": "2.6.9",
1053
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
1054
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
1055
+ "requires": {
1056
+ "ms": "2.0.0"
1057
+ }
1058
+ },
1059
+ "ms": {
1060
+ "version": "2.0.0",
1061
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
1062
+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
1063
+ },
1064
+ "qs": {
1065
+ "version": "6.5.1",
1066
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz",
1067
+ "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A=="
1068
+ }
1069
+ }
1070
+ },
1071
+ "bowser": {
1072
+ "version": "2.9.0",
1073
+ "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.9.0.tgz",
1074
+ "integrity": "sha512-2ld76tuLBNFekRgmJfT2+3j5MIrP6bFict8WAIT3beq+srz1gcKNAdNKMqHqauQt63NmAa88HfP1/Ypa9Er3HA=="
1075
+ },
1076
+ "bytes": {
1077
+ "version": "3.0.0",
1078
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz",
1079
+ "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg="
1080
+ },
1081
+ "camelcase": {
1082
+ "version": "5.3.1",
1083
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
1084
+ "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg=="
1085
+ },
1086
+ "camelize": {
1087
+ "version": "1.0.0",
1088
+ "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz",
1089
+ "integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs="
1090
+ },
1091
+ "cliui": {
1092
+ "version": "6.0.0",
1093
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz",
1094
+ "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==",
1095
+ "requires": {
1096
+ "string-width": "^4.2.0",
1097
+ "strip-ansi": "^6.0.0",
1098
+ "wrap-ansi": "^6.2.0"
1099
+ }
1100
+ },
1101
+ "color-convert": {
1102
+ "version": "2.0.1",
1103
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
1104
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
1105
+ "requires": {
1106
+ "color-name": "~1.1.4"
1107
+ }
1108
+ },
1109
+ "color-name": {
1110
+ "version": "1.1.4",
1111
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
1112
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
1113
+ },
1114
+ "content-disposition": {
1115
+ "version": "0.5.2",
1116
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz",
1117
+ "integrity": "sha1-DPaLud318r55YcOoUXjLhdunjLQ="
1118
+ },
1119
+ "content-security-policy-builder": {
1120
+ "version": "2.1.0",
1121
+ "resolved": "https://registry.npmjs.org/content-security-policy-builder/-/content-security-policy-builder-2.1.0.tgz",
1122
+ "integrity": "sha512-/MtLWhJVvJNkA9dVLAp6fg9LxD2gfI6R2Fi1hPmfjYXSahJJzcfvoeDOxSyp4NvxMuwWv3WMssE9o31DoULHrQ=="
1123
+ },
1124
+ "content-type": {
1125
+ "version": "1.0.4",
1126
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
1127
+ "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA=="
1128
+ },
1129
+ "cookie": {
1130
+ "version": "0.3.1",
1131
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz",
1132
+ "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s="
1133
+ },
1134
+ "cookie-signature": {
1135
+ "version": "1.0.6",
1136
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
1137
+ "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
1138
+ },
1139
+ "crc": {
1140
+ "version": "3.4.4",
1141
+ "resolved": "https://registry.npmjs.org/crc/-/crc-3.4.4.tgz",
1142
+ "integrity": "sha1-naHpgOO9RPxck79as9ozeNheRms="
1143
+ },
1144
+ "dasherize": {
1145
+ "version": "2.0.0",
1146
+ "resolved": "https://registry.npmjs.org/dasherize/-/dasherize-2.0.0.tgz",
1147
+ "integrity": "sha1-bYCcnNDPe7iVLYD8hPoT1H3bEwg="
1148
+ },
1149
+ "debug": {
1150
+ "version": "2.6.9",
1151
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
1152
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
1153
+ "requires": {
1154
+ "ms": "2.0.0"
1155
+ }
1156
+ },
1157
+ "decamelize": {
1158
+ "version": "1.2.0",
1159
+ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
1160
+ "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA="
1161
+ },
1162
+ "depd": {
1163
+ "version": "1.1.1",
1164
+ "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz",
1165
+ "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k="
1166
+ },
1167
+ "destroy": {
1168
+ "version": "1.0.4",
1169
+ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
1170
+ "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
1171
+ },
1172
+ "dont-sniff-mimetype": {
1173
+ "version": "1.1.0",
1174
+ "resolved": "https://registry.npmjs.org/dont-sniff-mimetype/-/dont-sniff-mimetype-1.1.0.tgz",
1175
+ "integrity": "sha512-ZjI4zqTaxveH2/tTlzS1wFp+7ncxNZaIEWYg3lzZRHkKf5zPT/MnEG6WL0BhHMJUabkh8GeU5NL5j+rEUCb7Ug=="
1176
+ },
1177
+ "ee-first": {
1178
+ "version": "1.1.1",
1179
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
1180
+ "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
1181
+ },
1182
+ "emoji-regex": {
1183
+ "version": "8.0.0",
1184
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
1185
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
1186
+ },
1187
+ "encodeurl": {
1188
+ "version": "1.0.1",
1189
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.1.tgz",
1190
+ "integrity": "sha1-eePVhlU0aQn+bw9Fpd5oEDspTSA="
1191
+ },
1192
+ "escape-html": {
1193
+ "version": "1.0.3",
1194
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
1195
+ "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="
1196
+ },
1197
+ "etag": {
1198
+ "version": "1.8.1",
1199
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
1200
+ "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc="
1201
+ },
1202
+ "express": {
1203
+ "version": "4.16.2",
1204
+ "resolved": "https://registry.npmjs.org/express/-/express-4.16.2.tgz",
1205
+ "integrity": "sha1-41xt/i1kt9ygpc1PIXgb4ymeB2w=",
1206
+ "requires": {
1207
+ "accepts": "~1.3.4",
1208
+ "array-flatten": "1.1.1",
1209
+ "body-parser": "1.18.2",
1210
+ "content-disposition": "0.5.2",
1211
+ "content-type": "~1.0.4",
1212
+ "cookie": "0.3.1",
1213
+ "cookie-signature": "1.0.6",
1214
+ "debug": "2.6.9",
1215
+ "depd": "~1.1.1",
1216
+ "encodeurl": "~1.0.1",
1217
+ "escape-html": "~1.0.3",
1218
+ "etag": "~1.8.1",
1219
+ "finalhandler": "1.1.0",
1220
+ "fresh": "0.5.2",
1221
+ "merge-descriptors": "1.0.1",
1222
+ "methods": "~1.1.2",
1223
+ "on-finished": "~2.3.0",
1224
+ "parseurl": "~1.3.2",
1225
+ "path-to-regexp": "0.1.7",
1226
+ "proxy-addr": "~2.0.2",
1227
+ "qs": "6.5.1",
1228
+ "range-parser": "~1.2.0",
1229
+ "safe-buffer": "5.1.1",
1230
+ "send": "0.16.1",
1231
+ "serve-static": "1.13.1",
1232
+ "setprototypeof": "1.1.0",
1233
+ "statuses": "~1.3.1",
1234
+ "type-is": "~1.6.15",
1235
+ "utils-merge": "1.0.1",
1236
+ "vary": "~1.1.2"
1237
+ },
1238
+ "dependencies": {
1239
+ "setprototypeof": {
1240
+ "version": "1.1.0",
1241
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz",
1242
+ "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ=="
1243
+ }
1244
+ }
1245
+ },
1246
+ "express-session": {
1247
+ "version": "1.15.6",
1248
+ "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.15.6.tgz",
1249
+ "integrity": "sha512-r0nrHTCYtAMrFwZ0kBzZEXa1vtPVrw0dKvGSrKP4dahwBQ1BJpF2/y1Pp4sCD/0kvxV4zZeclyvfmw0B4RMJQA==",
1250
+ "requires": {
1251
+ "cookie": "0.3.1",
1252
+ "cookie-signature": "1.0.6",
1253
+ "crc": "3.4.4",
1254
+ "debug": "2.6.9",
1255
+ "depd": "~1.1.1",
1256
+ "on-headers": "~1.0.1",
1257
+ "parseurl": "~1.3.2",
1258
+ "uid-safe": "~2.1.5",
1259
+ "utils-merge": "1.0.1"
1260
+ }
1261
+ },
1262
+ "feature-policy": {
1263
+ "version": "0.3.0",
1264
+ "resolved": "https://registry.npmjs.org/feature-policy/-/feature-policy-0.3.0.tgz",
1265
+ "integrity": "sha512-ZtijOTFN7TzCujt1fnNhfWPFPSHeZkesff9AXZj+UEjYBynWNUIYpC87Ve4wHzyexQsImicLu7WsC2LHq7/xrQ=="
1266
+ },
1267
+ "finalhandler": {
1268
+ "version": "1.1.0",
1269
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.0.tgz",
1270
+ "integrity": "sha1-zgtoVbRYU+eRsvzGgARtiCU91/U=",
1271
+ "requires": {
1272
+ "debug": "2.6.9",
1273
+ "encodeurl": "~1.0.1",
1274
+ "escape-html": "~1.0.3",
1275
+ "on-finished": "~2.3.0",
1276
+ "parseurl": "~1.3.2",
1277
+ "statuses": "~1.3.1",
1278
+ "unpipe": "~1.0.0"
1279
+ }
1280
+ },
1281
+ "find-up": {
1282
+ "version": "4.1.0",
1283
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
1284
+ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
1285
+ "requires": {
1286
+ "locate-path": "^5.0.0",
1287
+ "path-exists": "^4.0.0"
1288
+ }
1289
+ },
1290
+ "forwarded": {
1291
+ "version": "0.1.2",
1292
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz",
1293
+ "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ="
1294
+ },
1295
+ "fresh": {
1296
+ "version": "0.5.2",
1297
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
1298
+ "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac="
1299
+ },
1300
+ "get-caller-file": {
1301
+ "version": "2.0.5",
1302
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
1303
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="
1304
+ },
1305
+ "helmet": {
1306
+ "version": "3.23.3",
1307
+ "resolved": "https://registry.npmjs.org/helmet/-/helmet-3.23.3.tgz",
1308
+ "integrity": "sha512-U3MeYdzPJQhtvqAVBPntVgAvNSOJyagwZwyKsFdyRa8TV3pOKVFljalPOCxbw5Wwf2kncGhmP0qHjyazIdNdSA==",
1309
+ "requires": {
1310
+ "depd": "2.0.0",
1311
+ "dont-sniff-mimetype": "1.1.0",
1312
+ "feature-policy": "0.3.0",
1313
+ "helmet-crossdomain": "0.4.0",
1314
+ "helmet-csp": "2.10.0",
1315
+ "hide-powered-by": "1.1.0",
1316
+ "hpkp": "2.0.0",
1317
+ "hsts": "2.2.0",
1318
+ "nocache": "2.1.0",
1319
+ "referrer-policy": "1.2.0",
1320
+ "x-xss-protection": "1.3.0"
1321
+ },
1322
+ "dependencies": {
1323
+ "depd": {
1324
+ "version": "2.0.0",
1325
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
1326
+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw=="
1327
+ }
1328
+ }
1329
+ },
1330
+ "helmet-crossdomain": {
1331
+ "version": "0.4.0",
1332
+ "resolved": "https://registry.npmjs.org/helmet-crossdomain/-/helmet-crossdomain-0.4.0.tgz",
1333
+ "integrity": "sha512-AB4DTykRw3HCOxovD1nPR16hllrVImeFp5VBV9/twj66lJ2nU75DP8FPL0/Jp4jj79JhTfG+pFI2MD02kWJ+fA=="
1334
+ },
1335
+ "helmet-csp": {
1336
+ "version": "2.10.0",
1337
+ "resolved": "https://registry.npmjs.org/helmet-csp/-/helmet-csp-2.10.0.tgz",
1338
+ "integrity": "sha512-Rz953ZNEFk8sT2XvewXkYN0Ho4GEZdjAZy4stjiEQV3eN7GDxg1QKmYggH7otDyIA7uGA6XnUMVSgeJwbR5X+w==",
1339
+ "requires": {
1340
+ "bowser": "2.9.0",
1341
+ "camelize": "1.0.0",
1342
+ "content-security-policy-builder": "2.1.0",
1343
+ "dasherize": "2.0.0"
1344
+ }
1345
+ },
1346
+ "hide-powered-by": {
1347
+ "version": "1.1.0",
1348
+ "resolved": "https://registry.npmjs.org/hide-powered-by/-/hide-powered-by-1.1.0.tgz",
1349
+ "integrity": "sha512-Io1zA2yOA1YJslkr+AJlWSf2yWFkKjvkcL9Ni1XSUqnGLr/qRQe2UI3Cn/J9MsJht7yEVCe0SscY1HgVMujbgg=="
1350
+ },
1351
+ "hpkp": {
1352
+ "version": "2.0.0",
1353
+ "resolved": "https://registry.npmjs.org/hpkp/-/hpkp-2.0.0.tgz",
1354
+ "integrity": "sha1-EOFCJk52IVpdMMROxD3mTe5tFnI="
1355
+ },
1356
+ "hsts": {
1357
+ "version": "2.2.0",
1358
+ "resolved": "https://registry.npmjs.org/hsts/-/hsts-2.2.0.tgz",
1359
+ "integrity": "sha512-ToaTnQ2TbJkochoVcdXYm4HOCliNozlviNsg+X2XQLQvZNI/kCHR9rZxVYpJB3UPcHz80PgxRyWQ7PdU1r+VBQ==",
1360
+ "requires": {
1361
+ "depd": "2.0.0"
1362
+ },
1363
+ "dependencies": {
1364
+ "depd": {
1365
+ "version": "2.0.0",
1366
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
1367
+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw=="
1368
+ }
1369
+ }
1370
+ },
1371
+ "http-errors": {
1372
+ "version": "1.6.2",
1373
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.2.tgz",
1374
+ "integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=",
1375
+ "requires": {
1376
+ "depd": "1.1.1",
1377
+ "inherits": "2.0.3",
1378
+ "setprototypeof": "1.0.3",
1379
+ "statuses": ">= 1.3.1 < 2"
1380
+ }
1381
+ },
1382
+ "iconv-lite": {
1383
+ "version": "0.4.19",
1384
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz",
1385
+ "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ=="
1386
+ },
1387
+ "inherits": {
1388
+ "version": "2.0.3",
1389
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
1390
+ "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
1391
+ },
1392
+ "ipaddr.js": {
1393
+ "version": "1.5.2",
1394
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.5.2.tgz",
1395
+ "integrity": "sha1-1LUFvemUaYfM8PxY2QEP+WB+P6A="
1396
+ },
1397
+ "is-fullwidth-code-point": {
1398
+ "version": "3.0.0",
1399
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
1400
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="
1401
+ },
1402
+ "locate-path": {
1403
+ "version": "5.0.0",
1404
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
1405
+ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
1406
+ "requires": {
1407
+ "p-locate": "^4.1.0"
1408
+ }
1409
+ },
1410
+ "media-typer": {
1411
+ "version": "0.3.0",
1412
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
1413
+ "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g="
1414
+ },
1415
+ "merge-descriptors": {
1416
+ "version": "1.0.1",
1417
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
1418
+ "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E="
1419
+ },
1420
+ "methods": {
1421
+ "version": "1.1.2",
1422
+ "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
1423
+ "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4="
1424
+ },
1425
+ "mime": {
1426
+ "version": "1.4.1",
1427
+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz",
1428
+ "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ=="
1429
+ },
1430
+ "mime-db": {
1431
+ "version": "1.30.0",
1432
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.30.0.tgz",
1433
+ "integrity": "sha1-dMZD2i3Z1qRTmZY0ZbJtXKfXHwE="
1434
+ },
1435
+ "mime-types": {
1436
+ "version": "2.1.17",
1437
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.17.tgz",
1438
+ "integrity": "sha1-Cdejk/A+mVp5+K+Fe3Cp4KsWVXo=",
1439
+ "requires": {
1440
+ "mime-db": "~1.30.0"
1441
+ }
1442
+ },
1443
+ "ms": {
1444
+ "version": "2.0.0",
1445
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
1446
+ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
1447
+ },
1448
+ "negotiator": {
1449
+ "version": "0.6.1",
1450
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz",
1451
+ "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk="
1452
+ },
1453
+ "nocache": {
1454
+ "version": "2.1.0",
1455
+ "resolved": "https://registry.npmjs.org/nocache/-/nocache-2.1.0.tgz",
1456
+ "integrity": "sha512-0L9FvHG3nfnnmaEQPjT9xhfN4ISk0A8/2j4M37Np4mcDesJjHgEUfgPhdCyZuFI954tjokaIj/A3NdpFNdEh4Q=="
1457
+ },
1458
+ "on-finished": {
1459
+ "version": "2.3.0",
1460
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
1461
+ "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=",
1462
+ "requires": {
1463
+ "ee-first": "1.1.1"
1464
+ }
1465
+ },
1466
+ "on-headers": {
1467
+ "version": "1.0.1",
1468
+ "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz",
1469
+ "integrity": "sha1-ko9dD0cNSTQmUepnlLCFfBAGk/c="
1470
+ },
1471
+ "p-limit": {
1472
+ "version": "2.3.0",
1473
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
1474
+ "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
1475
+ "requires": {
1476
+ "p-try": "^2.0.0"
1477
+ }
1478
+ },
1479
+ "p-locate": {
1480
+ "version": "4.1.0",
1481
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
1482
+ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
1483
+ "requires": {
1484
+ "p-limit": "^2.2.0"
1485
+ }
1486
+ },
1487
+ "p-try": {
1488
+ "version": "2.2.0",
1489
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
1490
+ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ=="
1491
+ },
1492
+ "parseurl": {
1493
+ "version": "1.3.2",
1494
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz",
1495
+ "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M="
1496
+ },
1497
+ "passport": {
1498
+ "version": "0.4.0",
1499
+ "resolved": "https://registry.npmjs.org/passport/-/passport-0.4.0.tgz",
1500
+ "integrity": "sha1-xQlWkTR71a07XhgCOMORTRbwWBE=",
1501
+ "requires": {
1502
+ "passport-strategy": "1.x.x",
1503
+ "pause": "0.0.1"
1504
+ }
1505
+ },
1506
+ "passport-local": {
1507
+ "version": "1.0.0",
1508
+ "resolved": "https://registry.npmjs.org/passport-local/-/passport-local-1.0.0.tgz",
1509
+ "integrity": "sha1-H+YyaMkudWBmJkN+O5BmYsFbpu4=",
1510
+ "requires": {
1511
+ "passport-strategy": "1.x.x"
1512
+ }
1513
+ },
1514
+ "passport-strategy": {
1515
+ "version": "1.0.0",
1516
+ "resolved": "https://registry.npmjs.org/passport-strategy/-/passport-strategy-1.0.0.tgz",
1517
+ "integrity": "sha1-tVOaqPwiWj0a0XlHbd8ja0QPUuQ="
1518
+ },
1519
+ "path-exists": {
1520
+ "version": "4.0.0",
1521
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
1522
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="
1523
+ },
1524
+ "path-to-regexp": {
1525
+ "version": "0.1.7",
1526
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
1527
+ "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="
1528
+ },
1529
+ "pause": {
1530
+ "version": "0.0.1",
1531
+ "resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz",
1532
+ "integrity": "sha1-HUCLP9t2kjuVQ9lvtMnf1TXZy10="
1533
+ },
1534
+ "proxy-addr": {
1535
+ "version": "2.0.2",
1536
+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.2.tgz",
1537
+ "integrity": "sha1-ZXFQT0e7mI7IGAJT+F3X4UlSvew=",
1538
+ "requires": {
1539
+ "forwarded": "~0.1.2",
1540
+ "ipaddr.js": "1.5.2"
1541
+ }
1542
+ },
1543
+ "qs": {
1544
+ "version": "6.5.1",
1545
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz",
1546
+ "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A=="
1547
+ },
1548
+ "random-bytes": {
1549
+ "version": "1.0.0",
1550
+ "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz",
1551
+ "integrity": "sha1-T2ih3Arli9P7lYSMMDJNt11kNgs="
1552
+ },
1553
+ "range-parser": {
1554
+ "version": "1.2.0",
1555
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz",
1556
+ "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4="
1557
+ },
1558
+ "raw-body": {
1559
+ "version": "2.3.2",
1560
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.2.tgz",
1561
+ "integrity": "sha1-vNYMd9Prk83gBQKVw/N5OJvIj4k=",
1562
+ "requires": {
1563
+ "bytes": "3.0.0",
1564
+ "http-errors": "1.6.2",
1565
+ "iconv-lite": "0.4.19",
1566
+ "unpipe": "1.0.0"
1567
+ }
1568
+ },
1569
+ "referrer-policy": {
1570
+ "version": "1.2.0",
1571
+ "resolved": "https://registry.npmjs.org/referrer-policy/-/referrer-policy-1.2.0.tgz",
1572
+ "integrity": "sha512-LgQJIuS6nAy1Jd88DCQRemyE3mS+ispwlqMk3b0yjZ257fI1v9c+/p6SD5gP5FGyXUIgrNOAfmyioHwZtYv2VA=="
1573
+ },
1574
+ "require-directory": {
1575
+ "version": "2.1.1",
1576
+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
1577
+ "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I="
1578
+ },
1579
+ "require-main-filename": {
1580
+ "version": "2.0.0",
1581
+ "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz",
1582
+ "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg=="
1583
+ },
1584
+ "safe-buffer": {
1585
+ "version": "5.1.1",
1586
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz",
1587
+ "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg=="
1588
+ },
1589
+ "send": {
1590
+ "version": "0.16.1",
1591
+ "resolved": "https://registry.npmjs.org/send/-/send-0.16.1.tgz",
1592
+ "integrity": "sha512-ElCLJdJIKPk6ux/Hocwhk7NFHpI3pVm/IZOYWqUmoxcgeyM+MpxHHKhb8QmlJDX1pU6WrgaHBkVNm73Sv7uc2A==",
1593
+ "requires": {
1594
+ "debug": "2.6.9",
1595
+ "depd": "~1.1.1",
1596
+ "destroy": "~1.0.4",
1597
+ "encodeurl": "~1.0.1",
1598
+ "escape-html": "~1.0.3",
1599
+ "etag": "~1.8.1",
1600
+ "fresh": "0.5.2",
1601
+ "http-errors": "~1.6.2",
1602
+ "mime": "1.4.1",
1603
+ "ms": "2.0.0",
1604
+ "on-finished": "~2.3.0",
1605
+ "range-parser": "~1.2.0",
1606
+ "statuses": "~1.3.1"
1607
+ }
1608
+ },
1609
+ "serve-static": {
1610
+ "version": "1.13.1",
1611
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.1.tgz",
1612
+ "integrity": "sha512-hSMUZrsPa/I09VYFJwa627JJkNs0NrfL1Uzuup+GqHfToR2KcsXFymXSV90hoyw3M+msjFuQly+YzIH/q0MGlQ==",
1613
+ "requires": {
1614
+ "encodeurl": "~1.0.1",
1615
+ "escape-html": "~1.0.3",
1616
+ "parseurl": "~1.3.2",
1617
+ "send": "0.16.1"
1618
+ }
1619
+ },
1620
+ "set-blocking": {
1621
+ "version": "2.0.0",
1622
+ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
1623
+ "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc="
1624
+ },
1625
+ "setprototypeof": {
1626
+ "version": "1.0.3",
1627
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz",
1628
+ "integrity": "sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ="
1629
+ },
1630
+ "statuses": {
1631
+ "version": "1.3.1",
1632
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz",
1633
+ "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4="
1634
+ },
1635
+ "string-width": {
1636
+ "version": "4.2.2",
1637
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz",
1638
+ "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==",
1639
+ "requires": {
1640
+ "emoji-regex": "^8.0.0",
1641
+ "is-fullwidth-code-point": "^3.0.0",
1642
+ "strip-ansi": "^6.0.0"
1643
+ }
1644
+ },
1645
+ "strip-ansi": {
1646
+ "version": "6.0.0",
1647
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
1648
+ "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
1649
+ "requires": {
1650
+ "ansi-regex": "^5.0.0"
1651
+ }
1652
+ },
1653
+ "type-is": {
1654
+ "version": "1.6.15",
1655
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.15.tgz",
1656
+ "integrity": "sha1-yrEPtJCeRByChC6v4a1kbIGARBA=",
1657
+ "requires": {
1658
+ "media-typer": "0.3.0",
1659
+ "mime-types": "~2.1.15"
1660
+ }
1661
+ },
1662
+ "uid-safe": {
1663
+ "version": "2.1.5",
1664
+ "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz",
1665
+ "integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==",
1666
+ "requires": {
1667
+ "random-bytes": "~1.0.0"
1668
+ }
1669
+ },
1670
+ "unpipe": {
1671
+ "version": "1.0.0",
1672
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
1673
+ "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw="
1674
+ },
1675
+ "utils-merge": {
1676
+ "version": "1.0.1",
1677
+ "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
1678
+ "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM="
1679
+ },
1680
+ "vary": {
1681
+ "version": "1.1.2",
1682
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
1683
+ "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw="
1684
+ },
1685
+ "which-module": {
1686
+ "version": "2.0.0",
1687
+ "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
1688
+ "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho="
1689
+ },
1690
+ "wrap-ansi": {
1691
+ "version": "6.2.0",
1692
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
1693
+ "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",
1694
+ "requires": {
1695
+ "ansi-styles": "^4.0.0",
1696
+ "string-width": "^4.1.0",
1697
+ "strip-ansi": "^6.0.0"
1698
+ }
1699
+ },
1700
+ "ws": {
1701
+ "version": "7.1.2",
1702
+ "resolved": "https://registry.npmjs.org/ws/-/ws-7.1.2.tgz",
1703
+ "integrity": "sha512-gftXq3XI81cJCgkUiAVixA0raD9IVmXqsylCrjRygw4+UOOGzPoxnQ6r/CnVL9i+mDncJo94tSkyrtuuQVBmrg==",
1704
+ "requires": {
1705
+ "async-limiter": "^1.0.0"
1706
+ }
1707
+ },
1708
+ "x-xss-protection": {
1709
+ "version": "1.3.0",
1710
+ "resolved": "https://registry.npmjs.org/x-xss-protection/-/x-xss-protection-1.3.0.tgz",
1711
+ "integrity": "sha512-kpyBI9TlVipZO4diReZMAHWtS0MMa/7Kgx8hwG/EuZLiA6sg4Ah/4TRdASHhRRN3boobzcYgFRUFSgHRge6Qhg=="
1712
+ },
1713
+ "y18n": {
1714
+ "version": "5.0.8",
1715
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
1716
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA=="
1717
+ },
1718
+ "yargs": {
1719
+ "version": "15.4.1",
1720
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz",
1721
+ "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==",
1722
+ "requires": {
1723
+ "cliui": "^6.0.0",
1724
+ "decamelize": "^1.2.0",
1725
+ "find-up": "^4.1.0",
1726
+ "get-caller-file": "^2.0.1",
1727
+ "require-directory": "^2.1.1",
1728
+ "require-main-filename": "^2.0.0",
1729
+ "set-blocking": "^2.0.0",
1730
+ "string-width": "^4.2.0",
1731
+ "which-module": "^2.0.0",
1732
+ "y18n": "^4.0.0",
1733
+ "yargs-parser": "^18.1.2"
1734
+ },
1735
+ "dependencies": {
1736
+ "y18n": {
1737
+ "version": "4.0.3",
1738
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz",
1739
+ "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ=="
1740
+ }
1741
+ }
1742
+ },
1743
+ "yargs-parser": {
1744
+ "version": "18.1.3",
1745
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz",
1746
+ "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==",
1747
+ "requires": {
1748
+ "camelcase": "^5.0.0",
1749
+ "decamelize": "^1.2.0"
1750
+ }
1751
+ }
1752
+ }
1753
+ }
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/package.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cirrus-webserver",
3
+ "version": "0.0.1",
4
+ "description": "cirrus web server",
5
+ "scripts": {
6
+ "store_password": "node ./modules/authentication/db/store_password.js --usersFile=./modules/authentication/db/users.json",
7
+ "start": "npm install && node cirrus.js"
8
+ },
9
+ "dependencies": {
10
+ "bcryptjs": "^2.4.3",
11
+ "express": "^4.16.2",
12
+ "express-session": "^1.15.6",
13
+ "helmet": "^3.21.3",
14
+ "passport": "^0.4.0",
15
+ "passport-local": "^1.0.0",
16
+ "ws": "^7.1.2",
17
+ "y18n": "^5.0.5",
18
+ "yargs": "^15.3.0"
19
+ }
20
+ }
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/bash/README.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ How to use files in this directory:
2
+ - Make sure that all of your dependencies are installed. Use ./setup.sh what will install whatever is missing as long as you are on a supported operating system. Please note that setup.sh is called from every script designed to run
3
+
4
+ - Run a local instance of the Cirrus server by using the ./run_local.sh script
5
+
6
+ - Use the following scripts to run locally or in your cloud instance:
7
+ - Start_SignallingServer.sh - Start only the Signalling (STUN) server
8
+ - Start_TURNServer.sh - Start only the TURN server
9
+ - Start_WithTURN_SignallingServer.sh - Start a TURN server and the Cirrus server together
10
+ - The Start_Common.sh file contains shared functions for other Start_.sh scripts and it is not supposed to run alone
11
+
12
+ - Please note that scripts intended to run need to be executable: $ chmod +x *.sh will do that job.
13
+ - The local/cloud Start_*.sh shell scripts can be invoked with the --help command line option to see how those can be configured. The following options can be supplied: --publicip, --turn, --stun. Please read the --help
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/bash/Start_Common.sh ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Copyright Epic Games, Inc. All Rights Reserved.
3
+
4
+ function print_usage {
5
+ echo "
6
+ Usage:
7
+ ${0} [--help] [--publicip <IP Address>] [--turn <turn server>] [--stun <stun server>] [cirrus options...]
8
+ Where:
9
+ --help will print this message and stop this script.
10
+ --publicip is used to define public ip address (using default port) for turn server, syntax: --publicip ; it is used for
11
+ default value: Retrieved from 'curl https://api.ipify.org' or if unsuccessful then set to 127.0.0.1. It is the IP address of the Cirrus server and the default IP address of the TURN server
12
+ --turn defines what TURN server to be used, syntax: --turn 127.0.0.1:19303
13
+ default value: as above, IP address downloaded from https://api.ipify.org; in case if download failure it is set to 127.0.0.1
14
+ --stun defined what STUN server to be used, syntax: --stun stun.l.google.com:19302
15
+ default value as above
16
+ Other options: stored and passed to the Cirrus server. All parameters printed once the script values are set.
17
+ Command line options might be omitted to run with defaults and it is a good practice to omit specific ones when just starting the TURN or the STUN server alone, not the whole set of scripts.
18
+ "
19
+ exit 1
20
+ }
21
+
22
+ function print_parameters {
23
+ echo ""
24
+ echo "${0} is running with the following parameters:"
25
+ echo "--------------------------------------"
26
+ if [[ -n "${stunserver}" ]]; then echo "STUN server : ${stunserver}" ; fi
27
+ if [[ -n "${turnserver}" ]]; then echo "TURN server : ${turnserver}" ; fi
28
+ echo "Public IP address : ${publicip}"
29
+ echo "Cirrus server command line arguments: ${cirruscmd}"
30
+ echo ""
31
+ }
32
+
33
+ function set_start_default_values {
34
+ # publicip and cirruscmd are always needed
35
+ publicip=$(curl -s https://api.ipify.org > /dev/null)
36
+ if [[ -z $publicip ]]; then
37
+ publicip="127.0.0.1"
38
+ fi
39
+ cirruscmd=""
40
+
41
+ if [ "$1" = "y" ]; then
42
+ turnserver="${publicip}:19303"
43
+ fi
44
+
45
+ if [ "$2" = "y" ]; then
46
+ stunserver="stun.l.google.com:19302"
47
+ fi
48
+ }
49
+
50
+ function use_args {
51
+ while(($#)) ; do
52
+ case "$1" in
53
+ --stun ) stunserver="$2"; shift 2;;
54
+ --turn ) turnserver="$2"; shift 2;;
55
+ --publicip ) publicip="$2"; turnserver="${publicip}:19303"; shift 2;;
56
+ --help ) print_usage;;
57
+ * ) echo "Unknown command, adding to cirrus command line: $1"; cirruscmd+=" $1"; shift;;
58
+ esac
59
+ done
60
+ }
61
+
62
+ function call_setup_sh {
63
+ bash "setup.sh"
64
+ }
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/bash/Start_SignallingServer.sh ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Copyright Epic Games, Inc. All Rights Reserved.
3
+
4
+ source Start_Common.sh
5
+
6
+ set_start_default_values "n" "y" # Only STUN server defaults
7
+ use_args "$@"
8
+ call_setup_sh
9
+ print_parameters
10
+
11
+ peerconnectionoptions="{\"iceServers\":[{\"urls\":[\"stun:${stunserver}\"]}]}"
12
+
13
+ process="node"
14
+ arguments="cirrus --peerConnectionOptions=\"${peerconnectionoptions}\" --publicIp=${publicip}"
15
+ # Add arguments passed to script to arguments for executable
16
+ arguments+=" ${cirruscmd}"
17
+
18
+ pushd ../..
19
+ echo "Running: $process $arguments"
20
+ sudo $process $arguments
21
+ popd
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/bash/Start_TURNServer.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Copyright Epic Games, Inc. All Rights Reserved.
3
+
4
+ source Start_Common.sh
5
+
6
+ set_start_default_values "y" "n" # TURN server defaults only
7
+ use_args "$@"
8
+ call_setup_sh
9
+ print_parameters
10
+
11
+ localip=$(hostname -I | awk '{print $1}')
12
+ echo "Private IP: $localip"
13
+
14
+ turnport="${turnserver##*:}"
15
+ echo "TURN port: ${turnport}"
16
+ echo ""
17
+
18
+ pushd "$( dirname "${BASH_SOURCE[0]}" )"
19
+ bash Install_CoTurn.sh
20
+
21
+ # Hmm, plain text
22
+ turnusername="PixelStreamingUser"
23
+ turnpassword="AnotherTURNintheroad"
24
+ realm="PixelStreaming"
25
+ process="turnserver"
26
+ arguments="-p ${turnport} -r $realm -X $publicip -E $localip -L $localip --no-cli --no-tls --no-dtls --pidfile /var/run/turnserver.pid -f -a -v -n -u ${turnusername}:${turnpassword}"
27
+
28
+ # Add arguments passed to script to arguments for executable
29
+ arguments+=" ${cirruscmd}"
30
+
31
+ pushd ../..
32
+ echo "Running: $process $arguments"
33
+ # pause
34
+ sudo $process $arguments &
35
+ popd
36
+
37
+ popd
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/bash/Start_WithTURN_SignallingServer.sh ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Copyright Epic Games, Inc. All Rights Reserved.
3
+
4
+ source Start_Common.sh
5
+
6
+ set_start_default_values "y" "y" # Set both TURN and STUN server defaults
7
+ use_args "$@"
8
+ call_setup_sh
9
+ print_parameters
10
+
11
+ pushd "$( dirname "${BASH_SOURCE[0]}" )"
12
+
13
+ bash Start_TURNServer.sh --turn "${turnserver}"
14
+
15
+ peerconnectionoptions="{\"iceServers\":[{\"urls\":[\"stun:$stunserver\",\"turn:$turnserver\"],\"username\":\"PixelStreamingUser\",\"credential\":\"AnotherTURNintheroad\"}]}"
16
+
17
+ process="node"
18
+ arguments="cirrus --peerConnectionOptions=\"$peerconnectionoptions\" --publicIp=$publicip"
19
+ # Add arguments passed to script to arguments for executable
20
+ arguments+=" ${cirruscmd}"
21
+
22
+ pushd ../..
23
+ echo "Running: $process $arguments"
24
+ sudo $process $arguments
25
+ popd
26
+
27
+ popd
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/bash/run_local.sh ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Copyright Epic Games, Inc. All Rights Reserved.
3
+
4
+ pushd "$( dirname "${BASH_SOURCE[0]}" )"
5
+ bash setup.sh
6
+ pushd ../..
7
+ sudo node cirrus.js
8
+ popd
9
+ popd
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/bash/setup.sh ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Copyright Epic Games, Inc. All Rights Reserved.
3
+
4
+ # Azure specific fix to allow installing NodeJS from NodeSource
5
+ if test -f "/etc/apt/sources.list.d/azure-cli.list"; then
6
+ sudo touch /etc/apt/sources.list.d/nodesource.list
7
+ sudo touch /usr/share/keyrings/nodesource.gpg
8
+ sudo chmod 644 /etc/apt/sources.list.d/nodesource.list
9
+ sudo chmod 644 /usr/share/keyrings/nodesource.gpg
10
+ sudo chmod 644 /etc/apt/sources.list.d/azure-cli.list
11
+ fi
12
+
13
+ declare -A Packages
14
+ num_rows=6
15
+ num_cols=8
16
+
17
+ # Versions are from current working release versions
18
+ # No version for turnserver at the moment, see below why:
19
+ # https://github.com/coturn/coturn/issues/680
20
+ # https://github.com/coturn/coturn/issues/843
21
+ #
22
+ # Structure for installation preparation; please note | in "how to install" -> installer will split the command
23
+ # Need install Package name Version min/any how to get version how to install
24
+ Packages[1,1]="y"
25
+ Packages[1,2]="TURN server"
26
+ Packages[1,3]=""
27
+ Packages[1,4]="any"
28
+ Packages[1,5]="turnserver"
29
+ Packages[1,6]="sudo apt-get install -y coturn"
30
+ Packages[2,1]="y"
31
+ Packages[2,2]="node"
32
+ Packages[2,3]="v10.19.0"
33
+ Packages[2,4]="min"
34
+ Packages[2,5]="node --version"
35
+ Packages[2,6]="curl -fsSL https://deb.nodesource.com/setup_12.x | sudo -E bash - && sudo apt-get install -y nodejs"
36
+ Packages[3,1]="y"
37
+ Packages[3,2]="npm"
38
+ Packages[3,3]="8.1.2"
39
+ Packages[3,4]="min"
40
+ Packages[3,5]="npm --version"
41
+ Packages[3,6]="sudo npm install -g npm | sudo npm cache clean -f | sudo npm install -g npm@latest"
42
+ Packages[4,1]="y"
43
+ Packages[4,2]="express fw"
44
+ Packages[4,3]="4.17.1"
45
+ Packages[4,4]="min"
46
+ Packages[4,5]="sudo npm show express version"
47
+ Packages[4,6]="sudo npm install express -f"
48
+ Packages[5,1]="y"
49
+ Packages[5,2]="STUN server"
50
+ Packages[5,3]="0.0.1"
51
+ Packages[5,4]="min"
52
+ Packages[5,5]="sudo npm show cirrus-webserver version"
53
+ Packages[5,6]="sudo npm install cirrus-webserver -f"
54
+ Packages[6,1]="y"
55
+ Packages[6,2]="JSON jq"
56
+ Packages[6,3]="1.6"
57
+ Packages[6,4]="min"
58
+ Packages[6,5]="jq --version"
59
+ Packages[6,6]="sudo apt-get install -y jq"
60
+ Packages[7,1]="y"
61
+ Packages[7,2]="vulkan-utils"
62
+ Packages[7,3]="1.2.131"
63
+ Packages[7,4]="min"
64
+ Packages[7,5]="sudo apt show vulkan-utils 2>/dev/null | grep Version"
65
+ Packages[7,6]="sudo apt-get install -y vulkan-utils"
66
+ Packages[8,1]="y"
67
+ Packages[8,2]="pulseaudio"
68
+ Packages[8,3]="13.99"
69
+ Packages[8,4]="min"
70
+ Packages[8,5]="pulseaudio --version"
71
+ Packages[8,6]="sudo apt-get install -y pulseaudio"
72
+
73
+ # Install npm packages at the correct place
74
+ pushd ../.. 2&>1
75
+
76
+ # Check what to install
77
+ for ((i=1;i<=num_cols;i++)) do
78
+ printf "Checking for %-12s ..." "${Packages[$i,2]}"
79
+ if [ "${Packages[$i,4]}" = "any" ]; then
80
+ printf " any version ... "
81
+ IsInstalled=$(command -v "${Packages[$i,5]}")
82
+ if [ -z "$IsInstalled" ]; then
83
+ printf " not found marked for installation\n"
84
+ else
85
+ printf " found no install needed %s\n" "${IsInstalled}"
86
+ Packages[$i,1]="n"
87
+ fi
88
+ elif [ "${Packages[$i,4]}" = "min" ]; then
89
+ printf " minimum version: %-15s" "${Packages[$i,3]}"
90
+ Wanted=$(echo "${Packages[$i,3]}" | sed -E 's/[^0-9.]//g')
91
+ Installed=$(eval "${Packages[$i,5]}" 2>/dev/null)
92
+ if [ -z "${Installed}" ]; then
93
+ printf "not found an installed version\n"
94
+ else
95
+ printf "found version: %-20s" "${Installed}"
96
+ Current=$(echo "${Installed}" | sed -E 's/[^0-9.]//g')
97
+ if [ "${Current}" == "${Wanted}" ]; then
98
+ Packages[$i,1]="n"
99
+ printf " no install needed\n"
100
+ else
101
+ Newer=$(printf "%s\n%s" "${Wanted}" "${Current}" | sort -r | head -n 1)
102
+ if [ "${Current}" != "${Newer}" ]; then
103
+ printf " old, marked for installation\n"
104
+ else
105
+ printf " new, no installation\n"
106
+ Packages[$i,1]="n"
107
+ fi
108
+ fi
109
+ fi
110
+ else
111
+ printf "Code error, please check Packages setup for %s %s\n" "${Packages[$i,2]}"
112
+ exit
113
+ fi
114
+ done
115
+
116
+ # Do the installation
117
+ for ((i=1;i<=num_cols;i++)) do
118
+ if [ "${Packages[$i,1]}" != "n" ]; then
119
+ if [[ "${Packages[$i,6]}" == :* ]]; then
120
+ printf "Will not install %s because %s" "${Packages[$i,2]}" "${Packages[$i,6]}"
121
+ else
122
+ printf "Executing command: %s" "${Packages[$i,6]}"
123
+ eval "${Packages[$i,6]}"
124
+ fi
125
+ fi
126
+ done
127
+
128
+ # Reverse ../.. location
129
+ popd
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/cmd/README.txt ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ How to use files in this directory:
2
+ - Files with .ps1 extension can be run with PowerShell[.exe] in Windows. Powershell needs to be started as Administrator to run setup.ps1 so it can run installation / installation check steps
3
+ - Make sure that all of your dependencies are installed. Use .\setup.ps1 what will install whatever is missing as long as you are on a supported operating system
4
+
5
+ - Run a local instance of the Cirrus server by using the .\run_local.ps1 script
6
+
7
+ - Use the following scripts to run locally or in your cloud instance:
8
+ - Start_SignallingServer.ps1 - Start only the Signalling (STUN) server
9
+ - Start_TURNServer.ps1 - Start only the TURN server
10
+ - Start_WithTURN_SignallingServer.ps1 - Start a TURN server and the Cirrus server together
11
+ - The Start_Common.ps1 file contains shared functions for other Start_*.ps1 scripts and it is not supposed to run alone
12
+
13
+ - The local/cloud Start_*.ps1 powershell scripts can be invoked with the --help command line option to see how those can be configured. The following options can be supplied: --publicip, --turn, --stun. Please read the --help
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/cmd/Start_Common.ps1 ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 1998-2021 Epic Games, Inc. All Rights Reserved.
2
+
3
+ # Do setup as a common task, it is smart and will not reinstall if not required.
4
+ . "$PSScriptRoot\setup.ps1"
5
+
6
+ $global:ScriptName = $MyInvocation.MyCommand.Name
7
+ $global:PublicIP = $null
8
+ $global:StunServer = $null
9
+ $global:TurnServer = $null
10
+ $global:CirrusCmd = $null
11
+
12
+ function print_usage {
13
+ echo "
14
+ Usage (in MS Windows Power Shell):
15
+ $global:ScriptName [--help] [--publicip <IP Address>] [--turn <turn server>] [--stun <stun server>] [cirrus options...]
16
+ Where:
17
+ --help will print this message and stop this script.
18
+ --publicip is used to define public ip address (using default port) for turn server, syntax: --publicip ; it is used for
19
+ default value: Retrieved from 'curl https://api.ipify.org' or if unsuccessful then set to 127.0.0.1. It is the IP address of the Cirrus server and the default IP address of the TURN server
20
+ --turn defines what TURN server to be used, syntax: --turn 127.0.0.1:19303
21
+ default value: as above, IP address downloaded from https://api.ipify.org; in case if download failure it is set to 127.0.0.1
22
+ --stun defined what STUN server to be used, syntax: --stun stun.l.google.com:19302
23
+ default value as above
24
+ Other options: stored and passed to the Cirrus server. All parameters printed once the script values are set.
25
+ Command line options might be omitted to run with defaults and it is a good practice to omit specific ones when just starting the TURN or the STUN server alone, not the whole set of scripts.
26
+ "
27
+ exit 1
28
+ }
29
+
30
+ function print_parameters {
31
+ echo ""
32
+ echo "$scriptname is running with the following parameters:"
33
+ echo "--------------------------------------"
34
+ if ($global:StunServer -ne $null) { echo "STUN server : $global:StunServer" }
35
+ if ($global:TurnServer -ne $null) { echo "TURN server : $global:TurnServer" }
36
+ echo "Public IP address : $global:PublicIP"
37
+ echo "Cirrus server command line arguments: $global:CirrusCmd"
38
+ echo ""
39
+ }
40
+
41
+ function set_start_default_values($SetTurnServerVar, $SetStunServerVar) {
42
+ # publicip and cirruscmd are always needed
43
+ $global:publicip = Invoke-WebRequest -Uri "https://api.ipify.org" -UseBasicParsing
44
+ if ($global:PublicIP -ne $null -Or $global:PublicIP.length -eq 0) {
45
+ $global:PublicIP = "127.0.0.1"
46
+ }
47
+ $global:cirruscmd = ""
48
+
49
+ if ($SetTurnServerVar -eq "y") {
50
+ $global:TurnServer = $global:PublicIP + ":19303"
51
+ }
52
+ if ($SetStunServerVar -eq "y") {
53
+ $global:StunServer = "stun.l.google.com:19302"
54
+ }
55
+ }
56
+
57
+ function use_args($arg) {
58
+ $CmdArgs = $arg -split (" ")
59
+ while($CmdArgs.count -gt 0) {
60
+ $Cmd, $CmdArgs = $CmdArgs
61
+ if ($Cmd -eq "--stun") {
62
+ $global:StunServer, $CmdArgs = $CmdArgs
63
+ } elseif ($Cmd -eq "--turn") {
64
+ $global:TurnServer, $CmdArgs = $CmdArgs
65
+ } elseif ($Cmd -eq "--publicip") {
66
+ $global:PublicIP, $CmdArgs = $CmdArgs
67
+ $global:TurnServer = $global:publicip + ":19303"
68
+ } elseif ($Cmd -eq "--help") {
69
+ print_usage
70
+ } else {
71
+ echo "Unknown command, adding to cirrus command line: $Cmd"
72
+ $global:CirrusCmd += " $Cmd"
73
+ }
74
+ }
75
+ }
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/cmd/Start_SignallingServer.ps1 ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 1998-2021 Epic Games, Inc. All Rights Reserved.
2
+
3
+ . "$PSScriptRoot\Start_Common.ps1"
4
+
5
+ set_start_default_values "n" "y" # Set both TURN and STUN server defaults
6
+ use_args($args)
7
+ print_parameters
8
+
9
+ $peerConnectionOptions = "{ \""iceServers\"": [{\""urls\"": [\""stun:" + $global:StunServer + "\""]}] }"
10
+
11
+ $ProcessExe = "node.exe"
12
+ $Arguments = @("cirrus", "--peerConnectionOptions=""$peerConnectionOptions""", "--publicIp=$global:PublicIp")
13
+ # Add arguments passed to script to Arguments for executable
14
+ $Arguments += $global:CirrusCmd
15
+
16
+ Push-Location $PSScriptRoot\..\..\
17
+ Write-Output "Running: $ProcessExe $Arguments"
18
+ Start-Process -FilePath $ProcessExe -ArgumentList "$Arguments" -Wait -NoNewWindow
19
+ Pop-Location
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/cmd/Start_TURNServer.ps1 ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 1998-2021 Epic Games, Inc. All Rights Reserved.
2
+
3
+ . "$PSScriptRoot\Start_Common.ps1"
4
+
5
+ set_start_default_values "y" "n" # Set both TURN and STUN server defaults
6
+ use_args($args)
7
+ print_parameters
8
+ #$LocalIp = Invoke-WebRequest -Uri "http://169.254.169.254/latest/meta-data/local-ipv4"
9
+ $LocalIP = hostname.exe
10
+ Write-Output "Private IP: $LocalIp"
11
+
12
+ $TurnPort="19303"
13
+ $Pos = $global:TurnServer.LastIndexOf(":")
14
+ if ($Pos -ne -1) {
15
+ $TurnPort = $global:TurnServer.Substring($Pos+ 1)
16
+ }
17
+ echo "TURN port: ${turnport}"
18
+ echo ""
19
+
20
+ Push-Location $PSScriptRoot
21
+
22
+ $TurnUsername = "PixelStreamingUser"
23
+ $TurnPassword = "AnotherTURNintheroad"
24
+ $Realm = "PixelStreaming"
25
+ $ProcessExe = "turnserver.exe"
26
+ $Arguments = "-p $TurnPort -r $Realm -X $PublicIP -E $LocalIP -L $LocalIP --no-cli --no-tls --no-dtls --pidfile `"C:\coturn.pid`" -f -a -v -n -u $TurnUsername`:$TurnPassword"
27
+
28
+ # Add arguments passed to script to Arguments for executable
29
+ $Arguments += $args
30
+
31
+ Push-Location $PSScriptRoot\coturn\
32
+ Write-Output "Running: $ProcessExe $Arguments"
33
+ # pause
34
+ Start-Process -FilePath $ProcessExe -ArgumentList $Arguments -NoNewWindow
35
+ Pop-Location
36
+
37
+ Pop-Location
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/cmd/Start_WithTURN_SignallingServer.ps1 ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 1998-2021 Epic Games, Inc. All Rights Reserved.
2
+
3
+ . "$PSScriptRoot\Start_Common.ps1"
4
+
5
+ set_start_default_values "y" "y" # Set both TURN and STUN server defaults
6
+ use_args($args)
7
+ print_parameters
8
+
9
+ Push-Location $PSScriptRoot
10
+
11
+ Start-Process -FilePath "PowerShell" -ArgumentList ".\Start_TURNServer.ps1 --turn $global:TurnServer" -WorkingDirectory "$PSScriptRoot"
12
+
13
+ $peerConnectionOptions = "{ \""iceServers\"": [{\""urls\"": [\""stun:" + $global:StunServer + "\"",\""turn:" + $global:TurnServer + "\""], \""username\"": \""PixelStreamingUser\"", \""credential\"": \""AnotherTURNintheroad\""}] }"
14
+
15
+ $ProcessExe = "node.exe"
16
+ $Arguments = @("cirrus", "--peerConnectionOptions=""$peerConnectionOptions""", "--publicIp=$global:PublicIp")
17
+ # Add arguments passed to script to Arguments for executable
18
+ $Arguments += $args
19
+
20
+ Push-Location $PSScriptRoot\..\..\
21
+ Write-Output "Running: $ProcessExe $Arguments"
22
+ Start-Process -FilePath $ProcessExe -ArgumentList $Arguments -Wait -NoNewWindow
23
+ Pop-Location
24
+
25
+ Pop-Location
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/cmd/run_local.bat ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ :: Copyright Epic Games, Inc. All Rights Reserved.
2
+ @echo off
3
+ if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
4
+
5
+ pushd "%~dp0"
6
+
7
+ title Cirrus
8
+
9
+ pushd ..\..
10
+
11
+ ::Install required deps
12
+ call powershell -command "%~dp0\setup.ps1"
13
+
14
+ ::Run node server
15
+ ::If running with frontend web server and accessing outside of localhost pass in --publicIp=<ip_of_machine>
16
+ node cirrus %*
17
+
18
+ popd
19
+
20
+ popd
21
+
22
+ pause
WindowsNoEditor/Samples/PixelStreaming/WebServers/SignallingWebServer/platform_scripts/cmd/setup.ps1 ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright Epic Games, Inc. All Rights Reserved.
2
+
3
+ # Unclear if we need this?
4
+ # Set-ExecutionPolicy Bypass -Scope Process -Force
5
+
6
+ # Versions are from current working release versions
7
+ #
8
+ # Structure for installation preparation; please note | in "how to install" -> installer will split the command
9
+ # Need install Package name Version min/any how to get version how to install path to be added
10
+ $Packages = @(@("y", "chocolatey", "0.11.3", "min", "choco --version", "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 | Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | choco upgrade chocolatey"),
11
+ @("y", "node", "v17.0.1","min", "node --version", "choco install nodejs -y -x -f"),
12
+ @("y", "npm", "8.1.2", "min", "npm --version", "npm install -g npm -f")
13
+ )
14
+
15
+ # Install npm packages at the correct place
16
+ Push-Location $PSScriptRoot\..\..\
17
+
18
+ # Check what to install
19
+ foreach ($Item in $Packages) {
20
+ Write-Host "Checking for " $Item[1].padRight(12) " ..." -NoNewLine
21
+ if ($Item[3] -eq "any") {
22
+ Write-Host " any version ... " -NoNewLine
23
+ $IsInstalled = Get-Command $Item[4] -ErrorAction SilentlyContinue
24
+ if ($IsInstalled -eq $null) {
25
+ Write-Host " not found marked for installation"
26
+ } else {
27
+ Write-Host " found no install needed"
28
+ $Item[0] = "n"
29
+ }
30
+ } elseif ($item[3] -eq "min") {
31
+ Write-Host " minimum version: " $Item[2].padRight(12) -NoNewLine
32
+ $Wanted = $Item[2] -replace "[^0-9.]"
33
+ $Installed = Invoke-Expression -Command $Item[4] 2>&1
34
+ if ($Installed -eq $null) {
35
+ Write-Host " not found an installed version" $Item[4]
36
+ } else {
37
+ Write-Host " found version: " $Installed.padRight(15) -NoNewLine
38
+ $Current = $Installed -replace "[^0-9.]"
39
+ if ([System.Version]$Current -lt [System.Version]$Wanted) {
40
+ Write-Host "old marked for installation"
41
+ } else {
42
+ $item[0] = "n"
43
+ Write-Host "no install needed"
44
+ }
45
+ }
46
+ } else {
47
+ Write-Host "Code error, please check Packages setup for " $Item[1]
48
+ exit
49
+ }
50
+ }
51
+
52
+ # Do the installation
53
+ foreach ($Item in $Packages) {
54
+ if ($Item[0] -eq "n") {
55
+ continue;
56
+ }
57
+ if ($Item[5].Substring(0, 1) -eq ":") {
58
+ Write-Host "Will not install " $Item[1] " because " $Item[5]
59
+ } else {
60
+ $HasPipe = $Item[5].indexOf("|")
61
+ if ($HasPipe) {
62
+ $Arr = $Item[5].Split("|");
63
+ foreach($InstallExe in $Arr) {
64
+ $InstallExe = $InstallExe.trim()
65
+ Invoke-Expression $InstallExe
66
+ }
67
+ } else {
68
+ Invoke-Expression -Command $Item[5]
69
+ }
70
+ $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
71
+ }
72
+ }
73
+
74
+ # Install Cirrus
75
+ npm install
76
+
77
+ # Reverse ..\.. location
78
+ Pop-Location
79
+
80
+ # Put us in the cmd scripts folder
81
+ Push-Location $PSScriptRoot
82
+
83
+ # Install CoTURN
84
+ Write-Host "Checking for Coturn..." -NoNewLine
85
+ if (-not(Test-Path -Path coturn/turnserver.exe -PathType Leaf)) {
86
+ Write-Host " ...installing... " -NoNewLine
87
+ curl -o ./turnserver.zip https://github.com/mcottontensor/coturn/releases/download/v4.5.2-windows/turnserver.zip
88
+ Expand-Archive -Path ./turnserver.zip -DestinationPath ./coturn
89
+ Remove-Item -Path ./turnserver.zip
90
+ Write-Host " ...done. "
91
+ }
92
+ else {
93
+ Write-Host " ...found."
94
+ }
95
+
96
+ # Reverse location
97
+ Pop-Location