New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@app-connect/cli

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@app-connect/cli - npm Package Compare versions

Comparing version
0.1.1
to
0.1.2
+4
-7
lib/init.js

@@ -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 @@

{
"name": "@app-connect/cli",
"version": "0.1.1",
"version": "0.1.2",
"description": "CLI for RingCentral App Connect",

@@ -5,0 +5,0 @@ "bin": {

@@ -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 @@