提交 2584ae44 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Update NPM devs and add brackets in C++

上级 6c984ae6
...@@ -20,15 +20,15 @@ ...@@ -20,15 +20,15 @@
"@types/jest": "^29.5.0", "@types/jest": "^29.5.0",
"@types/node": "^18.15.11", "@types/node": "^18.15.11",
"@types/uuid": "^9.0.1", "@types/uuid": "^9.0.1",
"@typescript-eslint/eslint-plugin": "^5.57.0", "@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.0", "@typescript-eslint/parser": "^5.57.1",
"eslint": "^8.37.0", "eslint": "^8.37.0",
"eslint-plugin-jest": "^27.2.1", "eslint-plugin-jest": "^27.2.1",
"jest": "^29.5.0", "jest": "^29.5.0",
"open-cli": "^7.2.0", "open-cli": "^7.2.0",
"pick-port": "^1.0.1", "pick-port": "^1.0.1",
"sctp": "^1.0.0", "sctp": "^1.0.0",
"ts-jest": "^29.0.5", "ts-jest": "^29.1.0",
"tsc-watch": "^6.0.0", "tsc-watch": "^6.0.0",
"typescript": "^5.0.3" "typescript": "^5.0.3"
}, },
...@@ -1392,15 +1392,15 @@ ...@@ -1392,15 +1392,15 @@
"dev": true "dev": true
}, },
"node_modules/@typescript-eslint/eslint-plugin": { "node_modules/@typescript-eslint/eslint-plugin": {
"version": "5.57.0", "version": "5.57.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.57.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.57.1.tgz",
"integrity": "sha512-itag0qpN6q2UMM6Xgk6xoHa0D0/P+M17THnr4SVgqn9Rgam5k/He33MA7/D7QoJcdMxHFyX7U9imaBonAX/6qA==", "integrity": "sha512-1MeobQkQ9tztuleT3v72XmY0XuKXVXusAhryoLuU5YZ+mXoYKZP9SQ7Flulh1NX4DTjpGTc2b/eMu4u7M7dhnQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@eslint-community/regexpp": "^4.4.0", "@eslint-community/regexpp": "^4.4.0",
"@typescript-eslint/scope-manager": "5.57.0", "@typescript-eslint/scope-manager": "5.57.1",
"@typescript-eslint/type-utils": "5.57.0", "@typescript-eslint/type-utils": "5.57.1",
"@typescript-eslint/utils": "5.57.0", "@typescript-eslint/utils": "5.57.1",
"debug": "^4.3.4", "debug": "^4.3.4",
"grapheme-splitter": "^1.0.4", "grapheme-splitter": "^1.0.4",
"ignore": "^5.2.0", "ignore": "^5.2.0",
...@@ -1426,14 +1426,14 @@ ...@@ -1426,14 +1426,14 @@
} }
}, },
"node_modules/@typescript-eslint/parser": { "node_modules/@typescript-eslint/parser": {
"version": "5.57.0", "version": "5.57.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.57.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.57.1.tgz",
"integrity": "sha512-orrduvpWYkgLCyAdNtR1QIWovcNZlEm6yL8nwH/eTxWLd8gsP+25pdLHYzL2QdkqrieaDwLpytHqycncv0woUQ==", "integrity": "sha512-hlA0BLeVSA/wBPKdPGxoVr9Pp6GutGoY380FEhbVi0Ph4WNe8kLvqIRx76RSQt1lynZKfrXKs0/XeEk4zZycuA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@typescript-eslint/scope-manager": "5.57.0", "@typescript-eslint/scope-manager": "5.57.1",
"@typescript-eslint/types": "5.57.0", "@typescript-eslint/types": "5.57.1",
"@typescript-eslint/typescript-estree": "5.57.0", "@typescript-eslint/typescript-estree": "5.57.1",
"debug": "^4.3.4" "debug": "^4.3.4"
}, },
"engines": { "engines": {
...@@ -1453,13 +1453,13 @@ ...@@ -1453,13 +1453,13 @@
} }
}, },
"node_modules/@typescript-eslint/scope-manager": { "node_modules/@typescript-eslint/scope-manager": {
"version": "5.57.0", "version": "5.57.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.57.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.57.1.tgz",
"integrity": "sha512-NANBNOQvllPlizl9LatX8+MHi7bx7WGIWYjPHDmQe5Si/0YEYfxSljJpoTyTWFTgRy3X8gLYSE4xQ2U+aCozSw==", "integrity": "sha512-N/RrBwEUKMIYxSKl0oDK5sFVHd6VI7p9K5MyUlVYAY6dyNb/wHUqndkTd3XhpGlXgnQsBkRZuu4f9kAHghvgPw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@typescript-eslint/types": "5.57.0", "@typescript-eslint/types": "5.57.1",
"@typescript-eslint/visitor-keys": "5.57.0" "@typescript-eslint/visitor-keys": "5.57.1"
}, },
"engines": { "engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0" "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
...@@ -1470,13 +1470,13 @@ ...@@ -1470,13 +1470,13 @@
} }
}, },
"node_modules/@typescript-eslint/type-utils": { "node_modules/@typescript-eslint/type-utils": {
"version": "5.57.0", "version": "5.57.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.57.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.57.1.tgz",
"integrity": "sha512-kxXoq9zOTbvqzLbdNKy1yFrxLC6GDJFE2Yuo3KqSwTmDOFjUGeWSakgoXT864WcK5/NAJkkONCiKb1ddsqhLXQ==", "integrity": "sha512-/RIPQyx60Pt6ga86hKXesXkJ2WOS4UemFrmmq/7eOyiYjYv/MUSHPlkhU6k9T9W1ytnTJueqASW+wOmW4KrViw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@typescript-eslint/typescript-estree": "5.57.0", "@typescript-eslint/typescript-estree": "5.57.1",
"@typescript-eslint/utils": "5.57.0", "@typescript-eslint/utils": "5.57.1",
"debug": "^4.3.4", "debug": "^4.3.4",
"tsutils": "^3.21.0" "tsutils": "^3.21.0"
}, },
...@@ -1497,9 +1497,9 @@ ...@@ -1497,9 +1497,9 @@
} }
}, },
"node_modules/@typescript-eslint/types": { "node_modules/@typescript-eslint/types": {
"version": "5.57.0", "version": "5.57.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.57.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.57.1.tgz",
"integrity": "sha512-mxsod+aZRSyLT+jiqHw1KK6xrANm19/+VFALVFP5qa/aiJnlP38qpyaTd0fEKhWvQk6YeNZ5LGwI1pDpBRBhtQ==", "integrity": "sha512-bSs4LOgyV3bJ08F5RDqO2KXqg3WAdwHCu06zOqcQ6vqbTJizyBhuh1o1ImC69X4bV2g1OJxbH71PJqiO7Y1RuA==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0" "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
...@@ -1510,13 +1510,13 @@ ...@@ -1510,13 +1510,13 @@
} }
}, },
"node_modules/@typescript-eslint/typescript-estree": { "node_modules/@typescript-eslint/typescript-estree": {
"version": "5.57.0", "version": "5.57.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.57.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.57.1.tgz",
"integrity": "sha512-LTzQ23TV82KpO8HPnWuxM2V7ieXW8O142I7hQTxWIHDcCEIjtkat6H96PFkYBQqGFLW/G/eVVOB9Z8rcvdY/Vw==", "integrity": "sha512-A2MZqD8gNT0qHKbk2wRspg7cHbCDCk2tcqt6ScCFLr5Ru8cn+TCfM786DjPhqwseiS+PrYwcXht5ztpEQ6TFTw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@typescript-eslint/types": "5.57.0", "@typescript-eslint/types": "5.57.1",
"@typescript-eslint/visitor-keys": "5.57.0", "@typescript-eslint/visitor-keys": "5.57.1",
"debug": "^4.3.4", "debug": "^4.3.4",
"globby": "^11.1.0", "globby": "^11.1.0",
"is-glob": "^4.0.3", "is-glob": "^4.0.3",
...@@ -1537,17 +1537,17 @@ ...@@ -1537,17 +1537,17 @@
} }
}, },
"node_modules/@typescript-eslint/utils": { "node_modules/@typescript-eslint/utils": {
"version": "5.57.0", "version": "5.57.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.57.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.57.1.tgz",
"integrity": "sha512-ps/4WohXV7C+LTSgAL5CApxvxbMkl9B9AUZRtnEFonpIxZDIT7wC1xfvuJONMidrkB9scs4zhtRyIwHh4+18kw==", "integrity": "sha512-kN6vzzf9NkEtawECqze6v99LtmDiUJCVpvieTFA1uL7/jDghiJGubGZ5csicYHU1Xoqb3oH/R5cN5df6W41Nfg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/eslint-utils": "^4.2.0",
"@types/json-schema": "^7.0.9", "@types/json-schema": "^7.0.9",
"@types/semver": "^7.3.12", "@types/semver": "^7.3.12",
"@typescript-eslint/scope-manager": "5.57.0", "@typescript-eslint/scope-manager": "5.57.1",
"@typescript-eslint/types": "5.57.0", "@typescript-eslint/types": "5.57.1",
"@typescript-eslint/typescript-estree": "5.57.0", "@typescript-eslint/typescript-estree": "5.57.1",
"eslint-scope": "^5.1.1", "eslint-scope": "^5.1.1",
"semver": "^7.3.7" "semver": "^7.3.7"
}, },
...@@ -1563,12 +1563,12 @@ ...@@ -1563,12 +1563,12 @@
} }
}, },
"node_modules/@typescript-eslint/visitor-keys": { "node_modules/@typescript-eslint/visitor-keys": {
"version": "5.57.0", "version": "5.57.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.57.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.57.1.tgz",
"integrity": "sha512-ery2g3k0hv5BLiKpPuwYt9KBkAp2ugT6VvyShXdLOkax895EC55sP0Tx5L0fZaQueiK3fBLvHVvEl3jFS5ia+g==", "integrity": "sha512-RjQrAniDU0CEk5r7iphkm731zKlFiUjvcBS2yHAg8WWqFMCaCrD0rKEVOMUyMMcbGPZ0bPp56srkGWrgfZqLRA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@typescript-eslint/types": "5.57.0", "@typescript-eslint/types": "5.57.1",
"eslint-visitor-keys": "^3.3.0" "eslint-visitor-keys": "^3.3.0"
}, },
"engines": { "engines": {
...@@ -5690,9 +5690,9 @@ ...@@ -5690,9 +5690,9 @@
} }
}, },
"node_modules/ts-jest": { "node_modules/ts-jest": {
"version": "29.0.5", "version": "29.1.0",
"resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.0.5.tgz", "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.0.tgz",
"integrity": "sha512-PL3UciSgIpQ7f6XjVOmbi96vmDHUqAyqDr8YxzopDqX3kfgYtX1cuNeBjP+L9sFXi6nzsGGA6R3fP3DDDJyrxA==", "integrity": "sha512-ZhNr7Z4PcYa+JjMl62ir+zPiNJfXJN6E8hSLnaUKhOgqcn8vb3e537cpkd0FuAfRK3sR1LSqM1MOhliXNgOFPA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"bs-logger": "0.x", "bs-logger": "0.x",
...@@ -5715,7 +5715,7 @@ ...@@ -5715,7 +5715,7 @@
"@jest/types": "^29.0.0", "@jest/types": "^29.0.0",
"babel-jest": "^29.0.0", "babel-jest": "^29.0.0",
"jest": "^29.0.0", "jest": "^29.0.0",
"typescript": ">=4.3" "typescript": ">=4.3 <6"
}, },
"peerDependenciesMeta": { "peerDependenciesMeta": {
"@babel/core": { "@babel/core": {
...@@ -7177,15 +7177,15 @@ ...@@ -7177,15 +7177,15 @@
"dev": true "dev": true
}, },
"@typescript-eslint/eslint-plugin": { "@typescript-eslint/eslint-plugin": {
"version": "5.57.0", "version": "5.57.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.57.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.57.1.tgz",
"integrity": "sha512-itag0qpN6q2UMM6Xgk6xoHa0D0/P+M17THnr4SVgqn9Rgam5k/He33MA7/D7QoJcdMxHFyX7U9imaBonAX/6qA==", "integrity": "sha512-1MeobQkQ9tztuleT3v72XmY0XuKXVXusAhryoLuU5YZ+mXoYKZP9SQ7Flulh1NX4DTjpGTc2b/eMu4u7M7dhnQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"@eslint-community/regexpp": "^4.4.0", "@eslint-community/regexpp": "^4.4.0",
"@typescript-eslint/scope-manager": "5.57.0", "@typescript-eslint/scope-manager": "5.57.1",
"@typescript-eslint/type-utils": "5.57.0", "@typescript-eslint/type-utils": "5.57.1",
"@typescript-eslint/utils": "5.57.0", "@typescript-eslint/utils": "5.57.1",
"debug": "^4.3.4", "debug": "^4.3.4",
"grapheme-splitter": "^1.0.4", "grapheme-splitter": "^1.0.4",
"ignore": "^5.2.0", "ignore": "^5.2.0",
...@@ -7195,53 +7195,53 @@ ...@@ -7195,53 +7195,53 @@
} }
}, },
"@typescript-eslint/parser": { "@typescript-eslint/parser": {
"version": "5.57.0", "version": "5.57.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.57.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.57.1.tgz",
"integrity": "sha512-orrduvpWYkgLCyAdNtR1QIWovcNZlEm6yL8nwH/eTxWLd8gsP+25pdLHYzL2QdkqrieaDwLpytHqycncv0woUQ==", "integrity": "sha512-hlA0BLeVSA/wBPKdPGxoVr9Pp6GutGoY380FEhbVi0Ph4WNe8kLvqIRx76RSQt1lynZKfrXKs0/XeEk4zZycuA==",
"dev": true, "dev": true,
"requires": { "requires": {
"@typescript-eslint/scope-manager": "5.57.0", "@typescript-eslint/scope-manager": "5.57.1",
"@typescript-eslint/types": "5.57.0", "@typescript-eslint/types": "5.57.1",
"@typescript-eslint/typescript-estree": "5.57.0", "@typescript-eslint/typescript-estree": "5.57.1",
"debug": "^4.3.4" "debug": "^4.3.4"
} }
}, },
"@typescript-eslint/scope-manager": { "@typescript-eslint/scope-manager": {
"version": "5.57.0", "version": "5.57.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.57.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.57.1.tgz",
"integrity": "sha512-NANBNOQvllPlizl9LatX8+MHi7bx7WGIWYjPHDmQe5Si/0YEYfxSljJpoTyTWFTgRy3X8gLYSE4xQ2U+aCozSw==", "integrity": "sha512-N/RrBwEUKMIYxSKl0oDK5sFVHd6VI7p9K5MyUlVYAY6dyNb/wHUqndkTd3XhpGlXgnQsBkRZuu4f9kAHghvgPw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@typescript-eslint/types": "5.57.0", "@typescript-eslint/types": "5.57.1",
"@typescript-eslint/visitor-keys": "5.57.0" "@typescript-eslint/visitor-keys": "5.57.1"
} }
}, },
"@typescript-eslint/type-utils": { "@typescript-eslint/type-utils": {
"version": "5.57.0", "version": "5.57.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.57.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.57.1.tgz",
"integrity": "sha512-kxXoq9zOTbvqzLbdNKy1yFrxLC6GDJFE2Yuo3KqSwTmDOFjUGeWSakgoXT864WcK5/NAJkkONCiKb1ddsqhLXQ==", "integrity": "sha512-/RIPQyx60Pt6ga86hKXesXkJ2WOS4UemFrmmq/7eOyiYjYv/MUSHPlkhU6k9T9W1ytnTJueqASW+wOmW4KrViw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@typescript-eslint/typescript-estree": "5.57.0", "@typescript-eslint/typescript-estree": "5.57.1",
"@typescript-eslint/utils": "5.57.0", "@typescript-eslint/utils": "5.57.1",
"debug": "^4.3.4", "debug": "^4.3.4",
"tsutils": "^3.21.0" "tsutils": "^3.21.0"
} }
}, },
"@typescript-eslint/types": { "@typescript-eslint/types": {
"version": "5.57.0", "version": "5.57.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.57.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.57.1.tgz",
"integrity": "sha512-mxsod+aZRSyLT+jiqHw1KK6xrANm19/+VFALVFP5qa/aiJnlP38qpyaTd0fEKhWvQk6YeNZ5LGwI1pDpBRBhtQ==", "integrity": "sha512-bSs4LOgyV3bJ08F5RDqO2KXqg3WAdwHCu06zOqcQ6vqbTJizyBhuh1o1ImC69X4bV2g1OJxbH71PJqiO7Y1RuA==",
"dev": true "dev": true
}, },
"@typescript-eslint/typescript-estree": { "@typescript-eslint/typescript-estree": {
"version": "5.57.0", "version": "5.57.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.57.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.57.1.tgz",
"integrity": "sha512-LTzQ23TV82KpO8HPnWuxM2V7ieXW8O142I7hQTxWIHDcCEIjtkat6H96PFkYBQqGFLW/G/eVVOB9Z8rcvdY/Vw==", "integrity": "sha512-A2MZqD8gNT0qHKbk2wRspg7cHbCDCk2tcqt6ScCFLr5Ru8cn+TCfM786DjPhqwseiS+PrYwcXht5ztpEQ6TFTw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@typescript-eslint/types": "5.57.0", "@typescript-eslint/types": "5.57.1",
"@typescript-eslint/visitor-keys": "5.57.0", "@typescript-eslint/visitor-keys": "5.57.1",
"debug": "^4.3.4", "debug": "^4.3.4",
"globby": "^11.1.0", "globby": "^11.1.0",
"is-glob": "^4.0.3", "is-glob": "^4.0.3",
...@@ -7250,28 +7250,28 @@ ...@@ -7250,28 +7250,28 @@
} }
}, },
"@typescript-eslint/utils": { "@typescript-eslint/utils": {
"version": "5.57.0", "version": "5.57.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.57.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.57.1.tgz",
"integrity": "sha512-ps/4WohXV7C+LTSgAL5CApxvxbMkl9B9AUZRtnEFonpIxZDIT7wC1xfvuJONMidrkB9scs4zhtRyIwHh4+18kw==", "integrity": "sha512-kN6vzzf9NkEtawECqze6v99LtmDiUJCVpvieTFA1uL7/jDghiJGubGZ5csicYHU1Xoqb3oH/R5cN5df6W41Nfg==",
"dev": true, "dev": true,
"requires": { "requires": {
"@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/eslint-utils": "^4.2.0",
"@types/json-schema": "^7.0.9", "@types/json-schema": "^7.0.9",
"@types/semver": "^7.3.12", "@types/semver": "^7.3.12",
"@typescript-eslint/scope-manager": "5.57.0", "@typescript-eslint/scope-manager": "5.57.1",
"@typescript-eslint/types": "5.57.0", "@typescript-eslint/types": "5.57.1",
"@typescript-eslint/typescript-estree": "5.57.0", "@typescript-eslint/typescript-estree": "5.57.1",
"eslint-scope": "^5.1.1", "eslint-scope": "^5.1.1",
"semver": "^7.3.7" "semver": "^7.3.7"
} }
}, },
"@typescript-eslint/visitor-keys": { "@typescript-eslint/visitor-keys": {
"version": "5.57.0", "version": "5.57.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.57.0.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.57.1.tgz",
"integrity": "sha512-ery2g3k0hv5BLiKpPuwYt9KBkAp2ugT6VvyShXdLOkax895EC55sP0Tx5L0fZaQueiK3fBLvHVvEl3jFS5ia+g==", "integrity": "sha512-RjQrAniDU0CEk5r7iphkm731zKlFiUjvcBS2yHAg8WWqFMCaCrD0rKEVOMUyMMcbGPZ0bPp56srkGWrgfZqLRA==",
"dev": true, "dev": true,
"requires": { "requires": {
"@typescript-eslint/types": "5.57.0", "@typescript-eslint/types": "5.57.1",
"eslint-visitor-keys": "^3.3.0" "eslint-visitor-keys": "^3.3.0"
} }
}, },
...@@ -10231,9 +10231,9 @@ ...@@ -10231,9 +10231,9 @@
"dev": true "dev": true
}, },
"ts-jest": { "ts-jest": {
"version": "29.0.5", "version": "29.1.0",
"resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.0.5.tgz", "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.0.tgz",
"integrity": "sha512-PL3UciSgIpQ7f6XjVOmbi96vmDHUqAyqDr8YxzopDqX3kfgYtX1cuNeBjP+L9sFXi6nzsGGA6R3fP3DDDJyrxA==", "integrity": "sha512-ZhNr7Z4PcYa+JjMl62ir+zPiNJfXJN6E8hSLnaUKhOgqcn8vb3e537cpkd0FuAfRK3sR1LSqM1MOhliXNgOFPA==",
"dev": true, "dev": true,
"requires": { "requires": {
"bs-logger": "0.x", "bs-logger": "0.x",
......
...@@ -95,15 +95,15 @@ ...@@ -95,15 +95,15 @@
"@types/jest": "^29.5.0", "@types/jest": "^29.5.0",
"@types/node": "^18.15.11", "@types/node": "^18.15.11",
"@types/uuid": "^9.0.1", "@types/uuid": "^9.0.1",
"@typescript-eslint/eslint-plugin": "^5.57.0", "@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.0", "@typescript-eslint/parser": "^5.57.1",
"eslint": "^8.37.0", "eslint": "^8.37.0",
"eslint-plugin-jest": "^27.2.1", "eslint-plugin-jest": "^27.2.1",
"jest": "^29.5.0", "jest": "^29.5.0",
"open-cli": "^7.2.0", "open-cli": "^7.2.0",
"pick-port": "^1.0.1", "pick-port": "^1.0.1",
"sctp": "^1.0.0", "sctp": "^1.0.0",
"ts-jest": "^29.0.5", "ts-jest": "^29.1.0",
"tsc-watch": "^6.0.0", "tsc-watch": "^6.0.0",
"typescript": "^5.0.3" "typescript": "^5.0.3"
} }
......
...@@ -215,17 +215,20 @@ namespace RTC ...@@ -215,17 +215,20 @@ namespace RTC
MS_TRACE(); MS_TRACE();
// Update packet loss history. // Update packet loss history.
const size_t expected_packets = feedback->GetPacketStatusCount(); const size_t expectedPackets = feedback->GetPacketStatusCount();
size_t lost_packets = 0; size_t lostPackets = 0;
for (const auto& result : feedback->GetPacketResults()) for (const auto& result : feedback->GetPacketResults())
{ {
if (!result.received) if (!result.received)
lost_packets += 1; {
lostPackets += 1;
}
} }
if (expected_packets > 0) if (expectedPackets > 0)
{ {
this->UpdatePacketLoss(static_cast<double>(lost_packets) / expected_packets); this->UpdatePacketLoss(static_cast<double>(lostPackets) / expectedPackets);
} }
if (this->rtpTransportControllerSend == nullptr) if (this->rtpTransportControllerSend == nullptr)
...@@ -240,7 +243,9 @@ namespace RTC ...@@ -240,7 +243,9 @@ namespace RTC
{ {
// Add the score into the histogram. // Add the score into the histogram.
if (this->packetLossHistory.size() == PacketLossHistogramLength) if (this->packetLossHistory.size() == PacketLossHistogramLength)
{
this->packetLossHistory.pop_front(); this->packetLossHistory.pop_front();
}
this->packetLossHistory.push_back(packetLoss); this->packetLossHistory.push_back(packetLoss);
...@@ -307,9 +312,13 @@ namespace RTC ...@@ -307,9 +312,13 @@ namespace RTC
// Manage it via trending and increase it a bit to avoid immediate oscillations. // Manage it via trending and increase it a bit to avoid immediate oscillations.
#ifdef USE_TREND_CALCULATOR #ifdef USE_TREND_CALCULATOR
if (!force) if (!force)
{
this->desiredBitrateTrend.Update(desiredBitrate, nowMs); this->desiredBitrateTrend.Update(desiredBitrate, nowMs);
}
else else
{
this->desiredBitrateTrend.ForceUpdate(desiredBitrate, nowMs); this->desiredBitrateTrend.ForceUpdate(desiredBitrate, nowMs);
}
#endif #endif
this->bitrates.desiredBitrate = desiredBitrate; this->bitrates.desiredBitrate = desiredBitrate;
...@@ -516,9 +525,13 @@ namespace RTC ...@@ -516,9 +525,13 @@ namespace RTC
// Update availableBitrate. // Update availableBitrate.
// NOTE: Just in case. // NOTE: Just in case.
if (targetTransferRate.target_rate.bps() > std::numeric_limits<uint32_t>::max()) if (targetTransferRate.target_rate.bps() > std::numeric_limits<uint32_t>::max())
{
this->bitrates.availableBitrate = std::numeric_limits<uint32_t>::max(); this->bitrates.availableBitrate = std::numeric_limits<uint32_t>::max();
}
else else
{
this->bitrates.availableBitrate = static_cast<uint32_t>(targetTransferRate.target_rate.bps()); this->bitrates.availableBitrate = static_cast<uint32_t>(targetTransferRate.target_rate.bps());
}
MS_DEBUG_DEV("new available bitrate:%" PRIu32, this->bitrates.availableBitrate); MS_DEBUG_DEV("new available bitrate:%" PRIu32, this->bitrates.availableBitrate);
......
...@@ -120,7 +120,9 @@ namespace RTC ...@@ -120,7 +120,9 @@ namespace RTC
uint16_t wideSeqNumber; uint16_t wideSeqNumber;
if (!packet->ReadTransportWideCc01(wideSeqNumber)) if (!packet->ReadTransportWideCc01(wideSeqNumber))
{
break; break;
}
// Update the RTCP media SSRC of the ongoing Transport-CC Feedback packet. // Update the RTCP media SSRC of the ongoing Transport-CC Feedback packet.
this->transportCcFeedbackSenderSsrc = 0u; this->transportCcFeedbackSenderSsrc = 0u;
...@@ -186,7 +188,9 @@ namespace RTC ...@@ -186,7 +188,9 @@ namespace RTC
uint32_t absSendTime; uint32_t absSendTime;
if (!packet->ReadAbsSendTime(absSendTime)) if (!packet->ReadAbsSendTime(absSendTime))
{
break; break;
}
// NOTE: nowMs is uint64_t but we need to "convert" it to int64_t before // NOTE: nowMs is uint64_t but we need to "convert" it to int64_t before
// we give it to libwebrtc lib (althought this is implicit in the // we give it to libwebrtc lib (althought this is implicit in the
...@@ -222,7 +226,9 @@ namespace RTC ...@@ -222,7 +226,9 @@ namespace RTC
MS_TRACE(); MS_TRACE();
if (!this->transportCcFeedbackPacket->IsSerializable()) if (!this->transportCcFeedbackPacket->IsSerializable())
{
return; return;
}
auto latestWideSeqNumber = this->transportCcFeedbackPacket->GetLatestSequenceNumber(); auto latestWideSeqNumber = this->transportCcFeedbackPacket->GetLatestSequenceNumber();
auto latestTimestamp = this->transportCcFeedbackPacket->GetLatestTimestamp(); auto latestTimestamp = this->transportCcFeedbackPacket->GetLatestTimestamp();
...@@ -232,17 +238,20 @@ namespace RTC ...@@ -232,17 +238,20 @@ namespace RTC
this, this->transportCcFeedbackPacket.get()); this, this->transportCcFeedbackPacket.get());
// Update packet loss history. // Update packet loss history.
const size_t expected_packets = this->transportCcFeedbackPacket->GetPacketStatusCount(); const size_t expectedPackets = this->transportCcFeedbackPacket->GetPacketStatusCount();
size_t lost_packets = 0; size_t lostPackets = 0;
for (const auto& result : this->transportCcFeedbackPacket->GetPacketResults()) for (const auto& result : this->transportCcFeedbackPacket->GetPacketResults())
{ {
if (!result.received) if (!result.received)
lost_packets += 1; {
lostPackets += 1;
}
} }
if (expected_packets > 0) if (expectedPackets > 0)
{ {
this->UpdatePacketLoss(static_cast<double>(lost_packets) / expected_packets); this->UpdatePacketLoss(static_cast<double>(lostPackets) / expectedPackets);
} }
// Create a new feedback packet. // Create a new feedback packet.
...@@ -268,7 +277,9 @@ namespace RTC ...@@ -268,7 +277,9 @@ namespace RTC
// May fix unlimitedRembCounter. // May fix unlimitedRembCounter.
if (this->unlimitedRembCounter > 0u && this->maxIncomingBitrate != 0u) if (this->unlimitedRembCounter > 0u && this->maxIncomingBitrate != 0u)
{
this->unlimitedRembCounter = 0u; this->unlimitedRembCounter = 0u;
}
// In case this is the first unlimited REMB packet, send it fast. // In case this is the first unlimited REMB packet, send it fast.
// clang-format off // clang-format off
...@@ -298,15 +309,19 @@ namespace RTC ...@@ -298,15 +309,19 @@ namespace RTC
this->limitationRembSentAtMs = nowMs; this->limitationRembSentAtMs = nowMs;
if (this->unlimitedRembCounter > 0u) if (this->unlimitedRembCounter > 0u)
{
this->unlimitedRembCounter--; this->unlimitedRembCounter--;
} }
} }
}
void TransportCongestionControlServer::UpdatePacketLoss(double packetLoss) void TransportCongestionControlServer::UpdatePacketLoss(double packetLoss)
{ {
// Add the score into the histogram. // Add the score into the histogram.
if (this->packetLossHistory.size() == PacketLossHistogramLength) if (this->packetLossHistory.size() == PacketLossHistogramLength)
{
this->packetLossHistory.pop_front(); this->packetLossHistory.pop_front();
}
this->packetLossHistory.push_back(packetLoss); this->packetLossHistory.push_back(packetLoss);
...@@ -337,7 +352,9 @@ namespace RTC ...@@ -337,7 +352,9 @@ namespace RTC
// Limit announced bitrate if requested via API. // Limit announced bitrate if requested via API.
if (this->maxIncomingBitrate != 0u) if (this->maxIncomingBitrate != 0u)
{
availableBitrate = std::min(availableBitrate, this->maxIncomingBitrate); availableBitrate = std::min(availableBitrate, this->maxIncomingBitrate);
}
#if MS_LOG_DEV_LEVEL == 3 #if MS_LOG_DEV_LEVEL == 3
std::ostringstream ssrcsStream; std::ostringstream ssrcsStream;
...@@ -369,6 +386,8 @@ namespace RTC ...@@ -369,6 +386,8 @@ namespace RTC
MS_TRACE(); MS_TRACE();
if (timer == this->transportCcFeedbackSendPeriodicTimer) if (timer == this->transportCcFeedbackSendPeriodicTimer)
{
SendTransportCcFeedback(); SendTransportCcFeedback();
} }
}
} // namespace RTC } // namespace RTC
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论