gotgcalls-server
Advanced tools
Comparing version 0.0.0-rc.14 to 0.0.0-rc.15
{ | ||
"name": "gotgcalls-server", | ||
"version": "0.0.0-rc.14", | ||
"version": "0.0.0-rc.15", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "bin": "dist/index.js", |
@@ -11,7 +11,15 @@ #!/usr/bin/env node | ||
connection.handle("stream", async ({ params }) => { | ||
accessSync(params.file, constants.R_OK); | ||
await call.stream(params.file); | ||
return true; | ||
}); | ||
connection.handle( | ||
"stream", | ||
async ({ params }: { params: { audio?: string; video?: string } }) => { | ||
if (params.audio) { | ||
accessSync(params.audio, constants.R_OK); | ||
} | ||
if (params.video) { | ||
accessSync(params.video, constants.R_OK); | ||
} | ||
await call.stream(params); | ||
return true; | ||
} | ||
); | ||
@@ -18,0 +26,0 @@ connection.handle("mute", () => call.mute()); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
1
14471
9
237