mediasoup 3.12.13 → 3.12.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,7 +90,7 @@ class Worker extends EnhancedEventEmitter_1.EnhancedEventEmitter {
90
90
  // options
91
91
  {
92
92
  env: {
93
- MEDIASOUP_VERSION: '3.12.13',
93
+ MEDIASOUP_VERSION: '3.12.15',
94
94
  // Let the worker process inherit all environment variables, useful
95
95
  // if a custom and not in the path GCC is used so the user can set
96
96
  // LD_LIBRARY_PATH environment variable for runtime.
@@ -10,7 +10,7 @@ export { types };
10
10
  /**
11
11
  * Expose mediasoup version.
12
12
  */
13
- export declare const version = "3.12.13";
13
+ export declare const version = "3.12.15";
14
14
  /**
15
15
  * Expose parseScalabilityMode() function.
16
16
  */
package/node/lib/index.js CHANGED
@@ -12,7 +12,7 @@ exports.types = types;
12
12
  /**
13
13
  * Expose mediasoup version.
14
14
  */
15
- exports.version = '3.12.13';
15
+ exports.version = '3.12.15';
16
16
  /**
17
17
  * Expose parseScalabilityMode() function.
18
18
  */
package/npm-scripts.mjs CHANGED
@@ -418,21 +418,36 @@ function installMsysMake()
418
418
  {
419
419
  logInfo('installMsysMake()');
420
420
 
421
- let res = spawnSync('where', [ 'python3.exe' ]);
421
+ let pythonPath;
422
422
 
423
- if (res.status !== 0)
423
+ // If PYTHON environment variable is given, use it.
424
+ if (process.env.PYTHON)
424
425
  {
425
- res = spawnSync('where', [ 'python.exe' ]);
426
+ pythonPath = process.env.PYTHON;
427
+ }
428
+ // Otherwise ensure python3.exe is available in the PATH.
429
+ else
430
+ {
431
+ let res = spawnSync('where', [ 'python3.exe' ]);
426
432
 
427
433
  if (res.status !== 0)
428
434
  {
429
- logError('`installMsysMake() | cannot find Python executable');
435
+ res = spawnSync('where', [ 'python.exe' ]);
430
436
 
431
- exitWithError();
437
+ if (res.status !== 0)
438
+ {
439
+ logError('`installMsysMake() | cannot find Python executable');
440
+
441
+ exitWithError();
442
+ }
432
443
  }
444
+
445
+ pythonPath = String(res.stdout).trim();
433
446
  }
434
447
 
435
- executeCmd(`${String(res.stdout).trim()} worker\\scripts\\getmake.py`);
448
+ const dir = path.resolve('worker/out/msys');
449
+
450
+ executeCmd(`${pythonPath} worker\\scripts\\getmake.py --dir="${dir}"`);
436
451
  }
437
452
 
438
453
  function ensureDir(dir)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediasoup",
3
- "version": "3.12.13",
3
+ "version": "3.12.15",
4
4
  "description": "Cutting Edge WebRTC Video Conferencing",
5
5
  "contributors": [
6
6
  "Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
@@ -95,17 +95,17 @@
95
95
  "uuid": "^9.0.1"
96
96
  },
97
97
  "devDependencies": {
98
- "@octokit/rest": "^20.0.1",
99
- "@types/debug": "^4.1.8",
100
- "@types/jest": "^29.5.5",
101
- "@types/node": "^20.6.3",
102
- "@types/uuid": "^9.0.4",
103
- "@typescript-eslint/eslint-plugin": "^6.7.2",
104
- "@typescript-eslint/parser": "^6.7.2",
105
- "eslint": "^8.49.0",
106
- "eslint-plugin-jest": "^27.4.0",
98
+ "@octokit/rest": "^20.0.2",
99
+ "@types/debug": "^4.1.10",
100
+ "@types/jest": "^29.5.6",
101
+ "@types/node": "^20.8.7",
102
+ "@types/uuid": "^9.0.6",
103
+ "@typescript-eslint/eslint-plugin": "^6.8.0",
104
+ "@typescript-eslint/parser": "^6.8.0",
105
+ "eslint": "^8.51.0",
106
+ "eslint-plugin-jest": "^27.4.2",
107
107
  "jest": "^29.7.0",
108
- "marked": "^9.0.3",
108
+ "marked": "^9.1.2",
109
109
  "open-cli": "^7.2.0",
110
110
  "pick-port": "^1.0.1",
111
111
  "sctp": "^1.0.0",
@@ -1,10 +1,21 @@
1
- import io, hashlib, tarfile, urllib.request
1
+ import argparse, io, hashlib, tarfile, urllib.request
2
+
3
+ argParser = argparse.ArgumentParser()
4
+
5
+ argParser.add_argument(
6
+ '--dir',
7
+ type=str,
8
+ required=True,
9
+ help='absolute path of the directoy in which fetched content will be placed'
10
+ )
11
+
12
+ args = argParser.parse_args()
2
13
 
3
14
  def get(url, digest):
4
15
  data = urllib.request.urlopen(url).read()
5
16
  assert hashlib.sha256(data).hexdigest() == digest
6
17
  tar = tarfile.open(fileobj=io.BytesIO(data))
7
- tar.extractall('worker/out/msys')
18
+ tar.extractall(args.dir)
8
19
  tar.close()
9
20
 
10
21
  get('https://sourceforge.net/projects/mingw/files/MSYS/Base/msys-core/msys-1.0.19-1/msysCORE-1.0.19-1-msys-1.0.19-bin.tar.xz/download', '8c4157d739a460f85563bc4451e9f1bbd42b13c4f63770d43b9f45a781f07858')