contentful-cli
Advanced tools
Comparing version 3.1.2 to 3.1.3
@@ -14,3 +14,2 @@ "use strict"; | ||
const spaceImport = require('contentful-import'); | ||
const bfj = require('bfj'); | ||
const { confirmation } = require('../../utils/actions'); | ||
@@ -25,2 +24,3 @@ const { handleAsyncError: handle } = require('../../utils/async'); | ||
const { copyright } = require('../../utils/copyright'); | ||
const { readFileP } = require('../../utils/fs'); | ||
module.exports.command = 'seed'; | ||
@@ -81,3 +81,5 @@ module.exports.desc = | ||
yield getLatestGitHubRelease('contentful/content-models', destination).run(); | ||
const content = yield bfj.read(resolve(destination, template, 'contentful-export.json')); | ||
const contentFile = resolve(destination, template, 'contentful-export.json'); | ||
const contentData = yield readFileP(contentFile, 'utf8'); | ||
const content = JSON.parse(contentData); | ||
log(); | ||
@@ -84,0 +86,0 @@ yield spaceImport({ |
"use strict"; | ||
module.exports = { | ||
noAuthNeeded: [ | ||
'config add', | ||
'config list', | ||
'config remove', | ||
'init', | ||
'login' | ||
], | ||
noAuthNeeded: ['config add', 'config list', 'config remove', 'init', 'login'], | ||
noSpaceIdNeeded: [ | ||
@@ -11,0 +5,0 @@ 'config add', |
{ | ||
"name": "contentful-cli", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "Contentful CLI tool", | ||
@@ -32,3 +32,2 @@ "main": "dist/contentful.js", | ||
"test:e2e": "JEST_SUITE_NAME=\"Unit Tests\" JEST_JUNIT_OUTPUT_NAME=\"e2e-tests.xml\" cross-env jest --testPathPattern=test/e2e --verbose", | ||
"postinstall": "patch-package", | ||
"precommit": "npm run prettier:write && lint-staged", | ||
@@ -86,3 +85,2 @@ "prepush": "jest --changedSince master test/unit/**", | ||
"ast-types": "^0.14.2", | ||
"bfj": "^7.0.2", | ||
"bluebird": "^3.5.0", | ||
@@ -113,3 +111,2 @@ "boxen": "^5.1.2", | ||
"open": "^8.0.5", | ||
"patch-package": "^8.0.0", | ||
"path": "^0.12.7", | ||
@@ -116,0 +113,0 @@ "prettier": "^2.0.2", |
@@ -97,3 +97,3 @@ import open from 'open' | ||
const oAuthURL = getOauthURL(host) | ||
// We open the browser window only on Windows and OSX since this might fail or open the wrong browser on Linux. | ||
@@ -100,0 +100,0 @@ if (['win32', 'darwin'].includes(process.platform)) { |
@@ -5,3 +5,2 @@ const { resolve } = require('path') | ||
const spaceImport = require('contentful-import') | ||
const bfj = require('bfj') | ||
@@ -17,2 +16,3 @@ const { confirmation } = require('../../utils/actions') | ||
const { copyright } = require('../../utils/copyright') | ||
const { readFileP } = require('../../utils/fs') | ||
@@ -99,6 +99,7 @@ module.exports.command = 'seed' | ||
await getLatestGitHubRelease('contentful/content-models', destination).run() | ||
const content = await bfj.read( | ||
resolve(destination, template, 'contentful-export.json') | ||
) | ||
const contentFile = resolve(destination, template, 'contentful-export.json') | ||
const contentData = await readFileP(contentFile, 'utf8') | ||
const content = JSON.parse(contentData) | ||
log() | ||
@@ -105,0 +106,0 @@ await spaceImport({ |
module.exports = { | ||
noAuthNeeded: [ | ||
'config add', | ||
'config list', | ||
'config remove', | ||
'init', | ||
'login' | ||
], | ||
noAuthNeeded: ['config add', 'config list', 'config remove', 'init', 'login'], | ||
noSpaceIdNeeded: [ | ||
@@ -10,0 +4,0 @@ 'config add', |
{ | ||
"name": "contentful-cli", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "Contentful CLI tool", | ||
@@ -32,3 +32,2 @@ "main": "dist/contentful.js", | ||
"test:e2e": "JEST_SUITE_NAME=\"Unit Tests\" JEST_JUNIT_OUTPUT_NAME=\"e2e-tests.xml\" cross-env jest --testPathPattern=test/e2e --verbose", | ||
"postinstall": "patch-package", | ||
"precommit": "npm run prettier:write && lint-staged", | ||
@@ -86,3 +85,2 @@ "prepush": "jest --changedSince master test/unit/**", | ||
"ast-types": "^0.14.2", | ||
"bfj": "^7.0.2", | ||
"bluebird": "^3.5.0", | ||
@@ -113,3 +111,2 @@ "boxen": "^5.1.2", | ||
"open": "^8.0.5", | ||
"patch-package": "^8.0.0", | ||
"path": "^0.12.7", | ||
@@ -116,0 +113,0 @@ "prettier": "^2.0.2", |
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
38
0
480806
11808
- Removedbfj@^7.0.2
- Removedpatch-package@^8.0.0