prismic-cli
Advanced tools
Comparing version 3.3.2 to 3.4.0
@@ -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 @@ }, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
46569566
9395
0
+ Addedajv@5.5.2(transitive)
+ Addedansi-escapes@3.2.0(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedbabel-runtime@6.26.0(transitive)
+ Addedboom@4.3.15.3.3(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcryptiles@3.2.1(transitive)
+ Addedfast-deep-equal@1.1.0(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.0.3(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedhawk@6.0.2(transitive)
+ Addedhoek@4.3.1(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedinquirer@3.3.0(transitive)
+ Addedjson-schema-traverse@0.3.1(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedregenerator-runtime@0.11.1(transitive)
+ Addedrequest@2.83.0(transitive)
+ Addedrx-lite@4.0.8(transitive)
+ Addedrx-lite-aggregates@4.0.8(transitive)
+ Addedsntp@2.1.0(transitive)
+ Addedsupports-color@5.5.0(transitive)
- Removedajv@4.11.8(transitive)
- Removedansi-escapes@1.4.0(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedassert-plus@0.2.0(transitive)
- Removedaws-sign2@0.6.0(transitive)
- Removedbabel-runtime@6.23.0(transitive)
- Removedboom@2.10.1(transitive)
- Removedcall-bind@1.0.8(transitive)
- Removedcall-bind-apply-helpers@1.0.1(transitive)
- Removedcall-bound@1.0.3(transitive)
- Removedchalk@1.1.3(transitive)
- Removedcryptiles@2.0.5(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddunder-proto@1.0.1(transitive)
- Removedes-define-property@1.0.1(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.1.1(transitive)
- Removedform-data@2.1.4(transitive)
- Removedget-intrinsic@1.2.7(transitive)
- Removedget-proto@1.0.1(transitive)
- Removedgopd@1.2.0(transitive)
- Removedhar-schema@1.0.5(transitive)
- Removedhar-validator@4.2.1(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedhawk@3.1.3(transitive)
- Removedhoek@2.16.3(transitive)
- Removedhttp-signature@1.1.1(transitive)
- Removedinquirer@3.0.6(transitive)
- Removedisarray@2.0.5(transitive)
- Removedjson-stable-stringify@1.2.1(transitive)
- Removedjsonify@0.0.1(transitive)
- Removedmath-intrinsics@1.1.0(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedperformance-now@0.2.0(transitive)
- Removedqs@6.4.1(transitive)
- Removedregenerator-runtime@0.10.5(transitive)
- Removedrequest@2.81.0(transitive)
- Removedrx@4.1.0(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedsntp@1.0.9(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
Updatedbabel-runtime@~6.26.0
Updatedinquirer@~3.3.0
Updatedrequest@~2.83.0