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

prismic-cli

Package Overview
Dependencies
Maintainers
4
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prismic-cli - npm Package Compare versions

Comparing version 3.3.2 to 3.4.0

2

bin/communication.js

@@ -31,3 +31,3 @@ 'use strict';

return new _promise2.default(function (resolve, reject) {
_request2.default.post(url, options, function (err, xhr, body) {
_request2.default.post(url, options, function (err, xhr) {
if (err) {

@@ -34,0 +34,0 @@ reject(xhr.statusCode);

@@ -309,2 +309,3 @@ #!/usr/bin/env node

var command = arr.command;
var firstArg = null;

@@ -311,0 +312,0 @@ if (arr.argv.length > 0 && arr.argv[0].indexOf('--') !== 0) {

@@ -553,3 +553,5 @@ 'use strict';

if (folder) {
queryValidateCLI(base, domain).catch(function () {}); // Required to prevent query error uncaught if onboarding not available in the writing room
queryValidateCLI(base, domain).catch(function () {
// Required to prevent query error uncaught if onboarding not available in the writing room
});
_helpers2.default.UI.display('Running npm install...');

@@ -556,0 +558,0 @@ var devnull = isWin ? 'NUL' : '/dev/null';

@@ -57,3 +57,5 @@ 'use strict';

if (err) {
var errors = JSON.parse(err).errors;
var _JSON$parse = JSON.parse(err),
errors = _JSON$parse.errors;
_helpers2.default.UI.displayErrors(errors);

@@ -60,0 +62,0 @@ }

@@ -14,3 +14,3 @@ import request from 'request';

return new Promise((resolve, reject) => {
request.post(url, options, (err, xhr, body) => {
request.post(url, options, (err, xhr) => {
if (err) {

@@ -17,0 +17,0 @@ reject(xhr.statusCode);

@@ -158,3 +158,3 @@ #!/usr/bin/env node

const arr = commandLineCommands(validCommands);
const command = arr.command;
const { command } = arr;
let firstArg = null;

@@ -165,4 +165,3 @@ if (arr.argv.length > 0 && arr.argv[0].indexOf('--') !== 0) {

const args = parseArguments(arr.argv);
configuration.getAll()
.then((config) => {
configuration.getAll().then((config) => {
switch (command) {

@@ -185,4 +184,3 @@ case 'login':

case 'quickstart':
Helpers.Prismic.templates()
.then((templates) => {
Helpers.Prismic.templates().then((templates) => {
const t = templates.find(tmpl => tmpl.isQuickstart === true);

@@ -189,0 +187,0 @@ if (t) {

@@ -245,4 +245,5 @@ import path from 'path';

if (folder) {
queryValidateCLI(base, domain)
.catch(() => {}); // Required to prevent query error uncaught if onboarding not available in the writing room
queryValidateCLI(base, domain).catch(() => {
// Required to prevent query error uncaught if onboarding not available in the writing room
});
Helpers.UI.display('Running npm install...');

@@ -249,0 +250,0 @@ const devnull = isWin ? 'NUL' : '/dev/null';

@@ -32,13 +32,12 @@ import inquirer from 'inquirer';

function run() {
return prompt()
.then((answers) => {
return prompt().then((answers) => {
query(base, answers.email, answers.password)
.then(() => resolve())
.catch((err) => {
if (err) {
const errors = JSON.parse(err).errors;
Helpers.UI.displayErrors(errors);
}
run();
});
.then(() => resolve())
.catch((err) => {
if (err) {
const { errors } = JSON.parse(err);
Helpers.UI.displayErrors(errors);
}
run();
});
});

@@ -45,0 +44,0 @@ }

@@ -5,3 +5,3 @@ {

"name": "prismic-cli",
"version": "3.3.2",
"version": "3.4.0",
"description": "Command line to bootstrap prismic projects.",

@@ -22,9 +22,9 @@ "scripts": {

"adm-zip": "~0.4.7",
"babel-runtime": "~6.23.0",
"babel-runtime": "~6.26.0",
"command-line-commands": "~2.0.0",
"command-line-usage": "~4.0.0",
"inquirer": "~3.0.6",
"inquirer": "~3.3.0",
"lodash": "~4.17.4",
"prismic.io": "~3.5.5",
"request": "~2.81.0",
"request": "~2.83.0",
"shelljs": "~0.7.7",

@@ -34,15 +34,15 @@ "tmp": "~0.0.31"

"devDependencies": {
"babel-cli": "~6.24.0",
"babel-cli": "~6.26.0",
"babel-core": "^6.24.0",
"babel-eslint": "~7.2.1",
"babel-eslint": "~8.0.1",
"babel-plugin-syntax-async-functions": "~6.13.0",
"babel-plugin-transform-regenerator": "~6.22.0",
"babel-plugin-transform-regenerator": "~6.26.0",
"babel-plugin-transform-runtime": "~6.23.0",
"babel-polyfill": "~6.13.0",
"babel-polyfill": "~6.26.0",
"babel-preset-es2015": "~6.24.0",
"babel-watch": "~2.0.6",
"eslint": "~3.18.0",
"eslint-config-airbnb-base": "~11.1.0",
"eslint-plugin-import": "~2.2.0",
"tape": "~4.6.3",
"eslint": "~4.8.0",
"eslint-config-airbnb-base": "~12.0.2",
"eslint-plugin-import": "~2.7.0",
"tape": "~4.8.0",
"tape-spawn": "~1.4.2"

@@ -49,0 +49,0 @@ },

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