Skip to content

Commit

Permalink
Update to mediasoup@3.13.16
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jan 10, 2024
1 parent 7c6dffc commit cef8494
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mafalda-sfu/scalabilitymodes",
"version": "0.0.1",
"version": "3.13.16",
"description": "Scalability modes parsing function extracted from Mediasoup",
"main": "lib/scalabilityModes.js",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions src/scalabilityModes.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export type ScalabilityMode = {
spatialLayers: number;
temporalLayers: number;
ksvc: boolean;
};
export declare function parse(scalabilityMode?: string): ScalabilityMode;
//# sourceMappingURL=scalabilityModes.d.ts.map
1 change: 1 addition & 0 deletions src/scalabilityModes.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions src/scalabilityModes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parse = void 0;
const ScalabilityModeRegex = new RegExp('^[LS]([1-9]\\d{0,1})T([1-9]\\d{0,1})(_KEY)?');
function parse(scalabilityMode) {
const match = ScalabilityModeRegex.exec(scalabilityMode || '');
if (match) {
return {
spatialLayers: Number(match[1]),
temporalLayers: Number(match[2]),
ksvc: Boolean(match[3]),
};
}
else {
return {
spatialLayers: 1,
temporalLayers: 1,
ksvc: false,
};
}
}
exports.parse = parse;
16 changes: 11 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"compileOnSave": true,
"compilerOptions":
{
"lib": [ "es2018" ],
"target": "es2018",
"compilerOptions": {
"lib": ["es2021"],
"target": "esnext",
"module": "commonjs",
"moduleResolution": "node",
"strict": true,
"outDir": "lib",
"declaration": true,
"declarationMap": true
},
"include": [ "." ]
"include": ["src"],
"watchOptions": {
"watchFile": "useFsEvents",
"watchDirectory": "useFsEvents",
"fallbackPolling": "dynamicPriority",
"synchronousWatchDirectory": true
}
}

0 comments on commit cef8494

Please sign in to comment.