@tinacms/cli 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -302,7 +302,7 @@ var commander = __toModule(require("commander"));
|
|
|
302
302
|
|
|
303
303
|
// package.json
|
|
304
304
|
var name = "@tinacms/cli";
|
|
305
|
-
var version = "1.0.
|
|
305
|
+
var version = "1.0.4";
|
|
306
306
|
|
|
307
307
|
// src/cmds/audit/audit.ts
|
|
308
308
|
var import_graphql = __toModule(require("@tinacms/graphql"));
|
|
@@ -2340,14 +2340,19 @@ async function request(args) {
|
|
|
2340
2340
|
body: bodyString,
|
|
2341
2341
|
redirect: "follow"
|
|
2342
2342
|
});
|
|
2343
|
+
const json = await res.json();
|
|
2343
2344
|
if (!res.ok) {
|
|
2344
2345
|
let additionalInfo = "";
|
|
2345
2346
|
if (res.status === 401) {
|
|
2346
2347
|
additionalInfo = "Please check that your client ID, URL and read only token are configured properly.";
|
|
2347
2348
|
}
|
|
2349
|
+
if (json) {
|
|
2350
|
+
additionalInfo += `
|
|
2351
|
+
|
|
2352
|
+
Message from server: ${json.message}`;
|
|
2353
|
+
}
|
|
2348
2354
|
throw new Error(`Server responded with status code ${res.status}, ${res.statusText}. ${additionalInfo ? additionalInfo : ""} Please see our FAQ for more information: https://tina.io/docs/errors/faq/`);
|
|
2349
2355
|
}
|
|
2350
|
-
const json = await res.json();
|
|
2351
2356
|
if (json.errors) {
|
|
2352
2357
|
throw new Error(`Unable to fetch, please see our FAQ for more information: https://tina.io/docs/errors/faq/
|
|
2353
2358
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"@graphql-codegen/visitor-plugin-common": "^2.4.0",
|
|
53
53
|
"@graphql-tools/graphql-file-loader": "^7.2.0",
|
|
54
54
|
"@graphql-tools/load": "^7.3.2",
|
|
55
|
-
"@tinacms/app": "1.0.
|
|
55
|
+
"@tinacms/app": "1.0.3",
|
|
56
56
|
"@tinacms/datalayer": "1.0.0",
|
|
57
|
-
"@tinacms/graphql": "1.0.
|
|
57
|
+
"@tinacms/graphql": "1.0.3",
|
|
58
58
|
"@tinacms/metrics": "1.0.0",
|
|
59
|
-
"@tinacms/schema-tools": "1.0.
|
|
59
|
+
"@tinacms/schema-tools": "1.0.3",
|
|
60
60
|
"add": "^2.0.6",
|
|
61
61
|
"ajv": "^6.12.3",
|
|
62
62
|
"altair-express-middleware": "4.0.6",
|