New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

trtc-electron-sdk

Package Overview
Dependencies
Maintainers
4
Versions
556
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trtc-electron-sdk - npm Package Compare versions

Comparing version 11.9.606-beta.12 to 11.9.606-beta.13

2

package.json
{
"name": "trtc-electron-sdk",
"version": "11.9.606-beta.12",
"version": "11.9.606-beta.13",
"description": "trtc electron sdk",

@@ -5,0 +5,0 @@ "main": "./liteav/trtc.js",

@@ -50,20 +50,18 @@ /**

let INIT_CWD = process.env["INIT_CWD"];
let rootDirIndex = 0;
let splitSymbol = "/";
if (process.platform === "win32") {
INIT_CWD = INIT_CWD.split("\\");
rootDirIndex = INIT_CWD.findIndex((item) => item === "node_modules");
PkgJsonDir =
INIT_CWD.splice(0, rootDirIndex).join("\\\\") + "\\\\package.json";
} else {
INIT_CWD = INIT_CWD.split("/");
rootDirIndex = INIT_CWD.findIndex((item) => item === "node_modules");
PkgJsonDir = INIT_CWD.splice(0, rootDirIndex).join("/") + "/package.json";
splitSymbol = "\\";
}
INIT_CWD = INIT_CWD.split(splitSymbol);
let rootDirIndex = INIT_CWD.findIndex((item) => item === "node_modules");
PkgJsonDir =
INIT_CWD.splice(0, rootDirIndex).join(splitSymbol) +
`${splitSymbol}package.json`;
const { trtc_electron } = require(PkgJsonDir);
const logObject = {
INIT_CWD,
PkgJsonDir,
trtc_electron,
};
console.log("log", logObject);
fs.writeFile("./log.txt", JSON.stringify(logObject), (err) => {

@@ -70,0 +68,0 @@ throw err;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc