Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@content-app/cli

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@content-app/cli - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

10

bin/content-app.js

@@ -25,4 +25,2 @@ #!/usr/bin/env node

if (answer.toLowerCase() === 'y') {
console.log(`Loading content types with accessToken: ${accessToken}, spaceId: ${spaceId}, environment: ${environment || 'default'}`);
const finalAccessToken = accessToken || process.env.MANAGEMENT_ACCESS_TOKEN;

@@ -64,10 +62,10 @@ const finalSpaceId = spaceId || process.env.SPACE_ID;

});
rl.question(`Are you sure you want to load the content module ${contentModule} into accessToken: ${accessToken}, spaceId: ${spaceId}, environment: ${environment || 'default'}? (y/n) `, async (answer) => {
rl.question(`Are you sure you want to use this values`, async (answer) => {
if (answer.toLowerCase() === 'y') {
const modulePath = path.join(process.cwd(), 'node_modules', `@content-app/content-module_${contentModule}/install.js`);
const contentModuleInstall = require(modulePath);
const finalAccessToken = accessToken || process.env.MANAGEMENT_ACCESS_TOKEN;
const finalSpaceId = spaceId || process.env.SPACE_ID;
const finalEnvironment = environment || process.env.ENVIRONMENT || 'master' || 'main';
const modulePath = path.join(process.cwd(), 'node_modules', `@content-app/content-module_${contentModule}/install.js`);
const contentModuleInstall = require(modulePath);

@@ -74,0 +72,0 @@ const client = contentful.createClient({

2

package.json
{
"name": "@content-app/cli",
"version": "0.2.1",
"version": "0.2.2",
"description": "Content-app CLI",

@@ -5,0 +5,0 @@ "main": "bin/content-app.js",

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