@tinacms/cli 1.6.5 → 1.6.7
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.
|
@@ -152,9 +152,9 @@ export declare const parseSections: ({ val }: {
|
|
|
152
152
|
exclude?: string;
|
|
153
153
|
type?: "heading" | "document" | "directory" | "jekyll-pages" | "jekyll-posts";
|
|
154
154
|
match?: string;
|
|
155
|
+
path?: string;
|
|
155
156
|
templates?: string[];
|
|
156
157
|
label?: string;
|
|
157
|
-
path?: string;
|
|
158
158
|
create?: "none" | "all" | "documents";
|
|
159
159
|
new_doc_ext?: string;
|
|
160
160
|
read_only?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
31
31
|
var import_clipanion8 = require("clipanion");
|
|
32
32
|
|
|
33
33
|
// package.json
|
|
34
|
-
var version = "1.6.
|
|
34
|
+
var version = "1.6.6";
|
|
35
35
|
|
|
36
36
|
// src/next/commands/dev-command/index.ts
|
|
37
37
|
var import_clipanion2 = require("clipanion");
|
|
@@ -975,7 +975,11 @@ var createConfig = async ({
|
|
|
975
975
|
const alias = {
|
|
976
976
|
TINA_IMPORT: configManager.prebuildFilePath,
|
|
977
977
|
SCHEMA_IMPORT: configManager.generatedGraphQLJSONPath,
|
|
978
|
-
STATIC_MEDIA_IMPORT: staticMediaPath
|
|
978
|
+
STATIC_MEDIA_IMPORT: staticMediaPath,
|
|
979
|
+
crypto: import_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts"),
|
|
980
|
+
fs: import_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts"),
|
|
981
|
+
os: import_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts"),
|
|
982
|
+
path: import_path2.default.join(configManager.spaRootPath, "src", "dummy-client.ts")
|
|
979
983
|
};
|
|
980
984
|
if (configManager.shouldSkipSDK()) {
|
|
981
985
|
alias["CLIENT_IMPORT"] = import_path2.default.join(
|
|
@@ -2525,7 +2529,6 @@ DevCommand.usage = import_clipanion2.Command.Usage({
|
|
|
2525
2529
|
});
|
|
2526
2530
|
|
|
2527
2531
|
// src/next/commands/build-command/index.ts
|
|
2528
|
-
var import_node_fetch2 = __toESM(require("node-fetch"));
|
|
2529
2532
|
var import_clipanion3 = require("clipanion");
|
|
2530
2533
|
var import_progress2 = __toESM(require("progress"));
|
|
2531
2534
|
var import_fs_extra7 = __toESM(require("fs-extra"));
|
|
@@ -2577,7 +2580,6 @@ var import_core2 = require("@graphql-inspector/core");
|
|
|
2577
2580
|
// src/next/commands/build-command/waitForDB.ts
|
|
2578
2581
|
var import_progress = __toESM(require("progress"));
|
|
2579
2582
|
var import_schema_tools = require("@tinacms/schema-tools");
|
|
2580
|
-
var import_node_fetch = __toESM(require("node-fetch"));
|
|
2581
2583
|
|
|
2582
2584
|
// src/utils/sleep.ts
|
|
2583
2585
|
function timeout(ms) {
|
|
@@ -2621,12 +2623,12 @@ var waitForDB = async (config2, apiUrl, previewName, verbose) => {
|
|
|
2621
2623
|
if (verbose) {
|
|
2622
2624
|
logger.info(logText("Polling for status..."));
|
|
2623
2625
|
}
|
|
2624
|
-
const headers = new
|
|
2626
|
+
const headers = new Headers();
|
|
2625
2627
|
headers.append("Content-Type", "application/json");
|
|
2626
2628
|
if (token) {
|
|
2627
2629
|
headers.append("X-API-KEY", token);
|
|
2628
2630
|
}
|
|
2629
|
-
const response = await (
|
|
2631
|
+
const response = await fetch(
|
|
2630
2632
|
`https://${host}/db/${clientId}/status/${previewName || branch}`,
|
|
2631
2633
|
{
|
|
2632
2634
|
method: "GET",
|
|
@@ -3148,13 +3150,13 @@ BuildCommand.usage = import_clipanion3.Command.Usage({
|
|
|
3148
3150
|
description: `Build the CMS and autogenerated modules for usage with Tina Cloud`
|
|
3149
3151
|
});
|
|
3150
3152
|
async function request(args) {
|
|
3151
|
-
const headers = new
|
|
3153
|
+
const headers = new Headers();
|
|
3152
3154
|
if (args.token) {
|
|
3153
3155
|
headers.append("X-API-KEY", args.token);
|
|
3154
3156
|
}
|
|
3155
3157
|
headers.append("Content-Type", "application/json");
|
|
3156
3158
|
const url = args == null ? void 0 : args.url;
|
|
3157
|
-
const res = await (
|
|
3159
|
+
const res = await fetch(url, {
|
|
3158
3160
|
method: args.method || "GET",
|
|
3159
3161
|
headers,
|
|
3160
3162
|
redirect: "follow"
|
|
@@ -3192,13 +3194,16 @@ var fetchRemoteGraphqlSchema = async ({
|
|
|
3192
3194
|
url,
|
|
3193
3195
|
token
|
|
3194
3196
|
}) => {
|
|
3195
|
-
const headers = new
|
|
3197
|
+
const headers = new Headers();
|
|
3196
3198
|
if (token) {
|
|
3197
3199
|
headers.append("X-API-KEY", token);
|
|
3198
3200
|
}
|
|
3199
|
-
const body = JSON.stringify({
|
|
3201
|
+
const body = JSON.stringify({
|
|
3202
|
+
query: (0, import_graphql12.getIntrospectionQuery)(),
|
|
3203
|
+
variables: {}
|
|
3204
|
+
});
|
|
3200
3205
|
headers.append("Content-Type", "application/json");
|
|
3201
|
-
const res = await (
|
|
3206
|
+
const res = await fetch(url, {
|
|
3202
3207
|
method: "POST",
|
|
3203
3208
|
headers,
|
|
3204
3209
|
body
|
package/dist/server/server.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import http from 'http';
|
|
5
|
+
export declare const gqlServer: (database: any, verbose: boolean) => Promise<http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/cli",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.7",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/prompts": "^2.0.13",
|
|
39
39
|
"@types/yup": "^0.29.11",
|
|
40
40
|
"jest": "^29.5.0",
|
|
41
|
-
"@tinacms/scripts": "1.2.
|
|
41
|
+
"@tinacms/scripts": "1.2.2"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@graphql-codegen/core": "^2.1.0",
|
|
@@ -73,7 +73,6 @@
|
|
|
73
73
|
"many-level": "^2.0.0",
|
|
74
74
|
"memory-level": "^1.0.0",
|
|
75
75
|
"minimatch": "^5.1.2",
|
|
76
|
-
"node-fetch": "2",
|
|
77
76
|
"normalize-path": "^3.0.0",
|
|
78
77
|
"prettier": "^2.2.1",
|
|
79
78
|
"progress": "^2.0.3",
|
|
@@ -81,16 +80,16 @@
|
|
|
81
80
|
"readable-stream": "^4.3.0",
|
|
82
81
|
"tailwindcss": "^3.4.4",
|
|
83
82
|
"typanion": "3.13.0",
|
|
84
|
-
"typescript": "^5.
|
|
83
|
+
"typescript": "^5.6.2",
|
|
85
84
|
"vite": "^4.3.9",
|
|
86
85
|
"yup": "^0.32.9",
|
|
87
86
|
"zod": "^3.14.3",
|
|
88
|
-
"@tinacms/app": "2.1.
|
|
89
|
-
"@tinacms/graphql": "1.5.
|
|
90
|
-
"@tinacms/metrics": "1.0.
|
|
91
|
-
"@tinacms/schema-tools": "1.6.
|
|
92
|
-
"@tinacms/search": "1.0.
|
|
93
|
-
"tinacms": "2.2.
|
|
87
|
+
"@tinacms/app": "2.1.7",
|
|
88
|
+
"@tinacms/graphql": "1.5.3",
|
|
89
|
+
"@tinacms/metrics": "1.0.6",
|
|
90
|
+
"@tinacms/schema-tools": "1.6.3",
|
|
91
|
+
"@tinacms/search": "1.0.30",
|
|
92
|
+
"tinacms": "2.2.7"
|
|
94
93
|
},
|
|
95
94
|
"publishConfig": {
|
|
96
95
|
"registry": "https://registry.npmjs.org"
|