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

create-payload-app

Package Overview
Dependencies
Maintainers
0
Versions
531
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-payload-app - npm Package Compare versions

Comparing version 3.16.0 to 3.16.1-canary.9004205

9

dist/lib/manage-env-files.js

@@ -42,2 +42,3 @@ import fs from 'fs-extra';

const { cliArgs, databaseType, databaseUri, payloadSecret, projectDir, template } = args;
const debugFlag = cliArgs['--debug'];
if (cliArgs['--dry-run']) {

@@ -60,3 +61,5 @@ debug(`DRY RUN: Environment files managed`);

await fs.writeFile(envExamplePath, updatedExampleContents.trimEnd() + '\n');
debug(`.env.example file successfully updated`);
if (debugFlag) {
debug(`.env.example file successfully updated`);
}
} else {

@@ -70,3 +73,5 @@ updatedExampleContents = `# Added by Payload\nDATABASE_URI=your-connection-string-here\nPAYLOAD_SECRET=YOUR_SECRET_HERE\n`;

await fs.writeFile(envPath, `# Added by Payload\n${envContent.trimEnd()}\n`);
debug(`.env file successfully created or updated`);
if (debugFlag) {
debug(`.env file successfully created or updated`);
}
} catch (err) {

@@ -73,0 +78,0 @@ error('Unable to manage environment files');

@@ -29,3 +29,3 @@ /* eslint-disable no-console */ import chalk from 'chalk';

-t {underline template_name} Choose specific template
-e {underline example_name} Choose specific exmaple
-e {underline example_name} Choose specific example

@@ -32,0 +32,0 @@ {dim Available templates: ${formatTemplates(validTemplates)}}

{
"name": "create-payload-app",
"version": "3.16.0",
"version": "3.16.1-canary.9004205",
"homepage": "https://payloadcms.com",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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