@app-connect/cli
Advanced tools
+4
-7
@@ -10,4 +10,3 @@ const fs = require('fs'); | ||
| const TEMPLATE_REPO = 'https://github.com/ringcentral/rc-unified-crm-extension'; | ||
| const TEMPLATE_BRANCH = 'stable'; | ||
| const TEMPLATE_BETA_BRANCH = 'beta'; | ||
| const TEMPLATE_BRANCH = 'main'; | ||
| const TEMPLATE_PATH = 'packages/template'; | ||
@@ -80,7 +79,5 @@ | ||
| fs.mkdirSync(fullPath, { recursive: true }); | ||
| const templateBranch = options.beta ? TEMPLATE_BETA_BRANCH : TEMPLATE_BRANCH; | ||
| // Download template from GitHub | ||
| const archiveUrl = `${TEMPLATE_REPO}/archive/refs/heads/${templateBranch}.tar.gz`; | ||
| const archiveUrl = `${TEMPLATE_REPO}/archive/refs/heads/${TEMPLATE_BRANCH}.tar.gz`; | ||
| const tempArchivePath = path.join(fullPath, 'template.tar.gz'); | ||
@@ -102,3 +99,3 @@ | ||
| // Move template files to project root | ||
| const extractedDir = path.join(fullPath, `rc-unified-crm-extension-${templateBranch}`, TEMPLATE_PATH); | ||
| const extractedDir = path.join(fullPath, `rc-unified-crm-extension-${TEMPLATE_BRANCH}`, TEMPLATE_PATH); | ||
| const files = fs.readdirSync(extractedDir); | ||
@@ -118,3 +115,3 @@ | ||
| // Clean up | ||
| fs.rmSync(path.join(fullPath, `rc-unified-crm-extension-${templateBranch}`), { recursive: true, force: true }); | ||
| fs.rmSync(path.join(fullPath, `rc-unified-crm-extension-${TEMPLATE_BRANCH}`), { recursive: true, force: true }); | ||
| fs.unlinkSync(tempArchivePath); | ||
@@ -121,0 +118,0 @@ |
+1
-1
| { | ||
| "name": "@app-connect/cli", | ||
| "version": "0.1.1", | ||
| "version": "0.1.2", | ||
| "description": "CLI for RingCentral App Connect", | ||
@@ -5,0 +5,0 @@ "bin": { |
+4
-4
@@ -58,12 +58,12 @@ # RingCentral App Connect CLI | ||
| # Create a new project with custom name | ||
| npx @app-connect/cli init my-crm-adapter | ||
| npx @app-connect/cli init my-crm-connector | ||
| # Force overwrite existing directory | ||
| npx @app-connect/cli init my-crm-adapter --force | ||
| npx @app-connect/cli init my-crm-connector --force | ||
| # Auto-install deps and copy env (default behavior) | ||
| npx @app-connect/cli init my-crm-adapter | ||
| npx @app-connect/cli init my-crm-connector | ||
| # Do everything and start the dev server | ||
| npx @app-connect/cli init my-crm-adapter -s | ||
| npx @app-connect/cli init my-crm-connector -s | ||
| ``` | ||
@@ -70,0 +70,0 @@ |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
17647
-0.63%302
-0.66%