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

@adminjs/cloud-cli

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adminjs/cloud-cli - npm Package Compare versions

Comparing version 1.2.0-dev.6 to 1.2.0-dev.7

15

lib/commands/create.js

@@ -62,15 +62,4 @@ import fs from 'fs';

const replaceValueInEnvFile = (localPath, key, value) => {
const envFile = path.join(localPath, '_env');
if (!fs.existsSync(envFile)) {
createEnvFile(envFile, `${key}=${value}`);
}
else {
const data = fs.readFileSync(envFile, 'utf8').split(os.EOL);
const target = data.indexOf(data.find((line) => line.match(new RegExp(key))));
data.splice(target, 1, `${key}=${value}`);
fs.writeFileSync(envFile, data.join(os.EOL), { encoding: 'utf8', flag: 'w' });
}
fs.rename(envFile, path.join(localPath, '.env'), () => {
console.log('\nFile .env modified successfully!\n');
});
const envFile = path.join(localPath, '.env');
createEnvFile(envFile, `${key}=${value}`);
if (fs.readFileSync(envFile, 'utf8').toString() === (`${key}=${value}`)) {

@@ -77,0 +66,0 @@ console.log(`Database connection string has been updated successfully. \n\n

2

package.json
{
"name": "@adminjs/cloud-cli",
"version": "1.2.0-dev.6",
"version": "1.2.0-dev.7",
"type": "module",

@@ -5,0 +5,0 @@ "description": "",

@@ -83,14 +83,4 @@ import fs from 'fs';

const replaceValueInEnvFile = (localPath: string, key: string, value: string): void => {
const envFile = path.join(localPath, '_env');
if (!fs.existsSync(envFile)) {
createEnvFile(envFile, `${key}=${value}`);
} else {
const data = fs.readFileSync(envFile, 'utf8').split(os.EOL);
const target = data.indexOf(data.find((line) => line.match(new RegExp(key))));
data.splice(target, 1, `${key}=${value}`);
fs.writeFileSync(envFile, data.join(os.EOL), { encoding: 'utf8', flag: 'w' });
}
fs.rename(envFile, path.join(localPath, '.env'), () => {
console.log('\nFile .env modified successfully!\n');
});
const envFile = path.join(localPath, '.env');
createEnvFile(envFile, `${key}=${value}`);
if (fs.readFileSync(envFile, 'utf8').toString() === (`${key}=${value}`)) {

@@ -97,0 +87,0 @@ console.log(`Database connection string has been updated successfully. \n\n

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