@content-app/cli
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -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({ |
{ | ||
"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", |
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
@contentlayer/cli |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5791
84
1