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

contentful-cli

Package Overview
Dependencies
Maintainers
3
Versions
809
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contentful-cli - npm Package Compare versions

Comparing version 3.1.2 to 3.1.3

6

dist/lib/cmds/space_cmds/seed.js

@@ -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",

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