trtc-electron-sdk
Advanced tools
Comparing version 11.9.606-beta.5 to 11.9.606-beta.6
{ | ||
"name": "trtc-electron-sdk", | ||
"version": "11.9.606-beta.5", | ||
"version": "11.9.606-beta.6", | ||
"description": "trtc electron sdk", | ||
@@ -41,21 +41,21 @@ "main": "./liteav/trtc.js", | ||
"scripts": { | ||
"install": "cross-env-shell npm run download \\\"--INIT_CWD=$INIT_CWD\\\"", | ||
"install": "npm run download ", | ||
"download": "node ./scripts/download.js", | ||
"postinstall": "node ./scripts/postinstall.js", | ||
"dev": "cross-env-shell npm run build && npm run doc && npm run copy:sdk \\\"--INIT_CWD=$INIT_CWD\\\"", | ||
"dev": "npm run build && npm run doc && npm run copy:sdk ", | ||
"copy:sdk": "rimraf ./build && node ./scripts/copy-sdk.js", | ||
"build": "cross-env-shell npm run build:types && npm run build:js && npm run copy:types && npm run copy:sdk \\\"--INIT_CWD=$INIT_CWD\\\"", | ||
"build": "npm run build:types && npm run build:js && npm run copy:types && npm run copy:sdk ", | ||
"build:types": "rimraf ./types && tsc -p dtsconfig.json", | ||
"build:js": "rimraf ./liteav && tsc -p tsconfig.json", | ||
"copy:types": "node ./scripts/copy-types.js", | ||
"watch": "cross-env-shell npm run dev && npm run watch:js \\\"--INIT_CWD=$INIT_CWD\\\"", | ||
"watch": "npm run dev && npm run watch:js ", | ||
"watch:types": "rimraf ./types && tsc --watch -p dtsconfig.json", | ||
"watch:js": "rimraf ./liteav && tsc --watch -p tsconfig.json", | ||
"publish_doc": "node ./scripts/publish-doc.js", | ||
"doc": "cross-env-shell npm run doc:clean && npm run doc:build \\\"--INIT_CWD=$INIT_CWD\\\"", | ||
"doc:build": "cross-env-shell npm run doc:build-zh && npm run doc:build-en \\\"--INIT_CWD=$INIT_CWD\\\"", | ||
"doc": "npm run doc:clean && npm run doc:build ", | ||
"doc:build": "npm run doc:build-zh && npm run doc:build-en ", | ||
"doc:build-zh": "jsdoc -c ./jsdoc/jsdoc_zh.json && node ./jsdoc/fix-doc_zh.js", | ||
"doc:build-en": "jsdoc -c ./jsdoc/jsdoc_en.json && node ./jsdoc/fix-doc_en.js", | ||
"doc:clean": "node ./jsdoc/clean-doc.js", | ||
"prerelease": "cross-env-shell npm run build && npm run doc && node ./scripts/prerelase.js \\\"--INIT_CWD=$INIT_CWD\\\"", | ||
"prerelease": "npm run build && npm run doc && node ./scripts/prerelase.js ", | ||
"publish_npm": "node scripts/publish-npm.js" | ||
@@ -62,0 +62,0 @@ }, |
@@ -52,6 +52,8 @@ /** | ||
let INIT_CWD = process.env["INIT_CWD"]; | ||
// INIT_CWD = INIT_CWD.split("/"); | ||
// INIT_CWD = INIT_CWD.splice(0, INIT_CWD.length - 2); | ||
// const PkgJsonDir = INIT_CWD.join("/") + "/package.json"; | ||
const PkgJsonDir = path.join(INIT_CWD, "package.json"); | ||
const originDir = INIT_CWD + "/package.json"; | ||
INIT_CWD = INIT_CWD.split("/"); | ||
INIT_CWD = INIT_CWD.splice(0, INIT_CWD.length - 2); | ||
let PkgJsonDir = INIT_CWD.join("/") + "/package.json"; | ||
PkgJsonDir = require(PkgJsonDir) ? PkgJsonDir : originDir; | ||
const { trtc_electron } = require(PkgJsonDir); | ||
@@ -58,0 +60,0 @@ console.log( |
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
19480
945819
20