@tinacms/cli 2.6.0 → 2.6.1
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 +5 -5
- package/package.json +8 -10
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Cli, Builtins } from "clipanion";
|
|
3
3
|
|
|
4
4
|
// package.json
|
|
5
|
-
var version = "2.6.
|
|
5
|
+
var version = "2.6.1";
|
|
6
6
|
|
|
7
7
|
// src/next/commands/dev-command/index.ts
|
|
8
8
|
import path12 from "path";
|
|
@@ -5210,7 +5210,7 @@ var chooseDatabaseAdapter = async ({
|
|
|
5210
5210
|
};
|
|
5211
5211
|
|
|
5212
5212
|
// src/cmds/init/prompts/authProvider.ts
|
|
5213
|
-
import
|
|
5213
|
+
import { randomBytes } from "node:crypto";
|
|
5214
5214
|
import prompts5 from "prompts";
|
|
5215
5215
|
var supportedAuthProviders = {
|
|
5216
5216
|
other: {
|
|
@@ -5265,7 +5265,7 @@ var authProviderUpdateConfig = {
|
|
|
5265
5265
|
name: "nextAuthSecret",
|
|
5266
5266
|
type: "text",
|
|
5267
5267
|
message: `What is the NextAuth.js Secret? (Hit enter to use a randomly generated secret)`,
|
|
5268
|
-
initial: process.env.NEXTAUTH_SECRET ||
|
|
5268
|
+
initial: process.env.NEXTAUTH_SECRET || randomBytes(16).toString("hex")
|
|
5269
5269
|
}
|
|
5270
5270
|
]);
|
|
5271
5271
|
config2.envVars.push({
|
|
@@ -5654,10 +5654,10 @@ var stringifyLabelWithField = (label) => {
|
|
|
5654
5654
|
var isForestrySafeString = (value) => !/[\x00\r\n]/.test(value);
|
|
5655
5655
|
|
|
5656
5656
|
// src/cmds/forestry-migrate/util/codeTransformer.ts
|
|
5657
|
-
import
|
|
5657
|
+
import crypto2 from "crypto";
|
|
5658
5658
|
import { format } from "prettier";
|
|
5659
5659
|
import TsParser from "prettier/parser-typescript.js";
|
|
5660
|
-
var INTERNAL_NONCE =
|
|
5660
|
+
var INTERNAL_NONCE = crypto2.randomBytes(16).toString("hex");
|
|
5661
5661
|
var MARKER_OPEN = `__TINA_INTERNAL_${INTERNAL_NONCE}__:::`;
|
|
5662
5662
|
var MARKER_CLOSE = `:::__TINA_INTERNAL_${INTERNAL_NONCE}__`;
|
|
5663
5663
|
var MARKER_REGEX = new RegExp(`"${MARKER_OPEN}(.*?)${MARKER_CLOSE}"`, "g");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.6.
|
|
4
|
+
"version": "2.6.1",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
"@types/clear": "0.1.0",
|
|
31
31
|
"@types/cli-spinner": "^0.2.3",
|
|
32
32
|
"@types/cors": "2.8.5",
|
|
33
|
-
"@types/crypto-js": "^4.2.2",
|
|
34
33
|
"@types/express": "^4.17.21",
|
|
35
34
|
"@types/figlet": "1.2.0",
|
|
36
35
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -46,7 +45,7 @@
|
|
|
46
45
|
"mongodb-level": "^0.0.4",
|
|
47
46
|
"sqlite-level": "^2.1.0",
|
|
48
47
|
"ts-jest": "^29.2.5",
|
|
49
|
-
"@tinacms/scripts": "1.6.
|
|
48
|
+
"@tinacms/scripts": "1.6.4"
|
|
50
49
|
},
|
|
51
50
|
"dependencies": {
|
|
52
51
|
"@graphql-codegen/core": "^6.2.0",
|
|
@@ -72,12 +71,11 @@
|
|
|
72
71
|
"cli-spinner": "^0.2.10",
|
|
73
72
|
"clipanion": "^3.2.1",
|
|
74
73
|
"cors": "^2.8.5",
|
|
75
|
-
"crypto-js": "^4.2.0",
|
|
76
74
|
"dotenv": "^16.4.7",
|
|
77
75
|
"esbuild": "^0.28.1",
|
|
78
76
|
"fs-extra": "^11.3.0",
|
|
79
77
|
"graphql": "15.8.0",
|
|
80
|
-
"js-yaml": "^4.1
|
|
78
|
+
"js-yaml": "^4.3.1",
|
|
81
79
|
"many-level": "^2.0.0",
|
|
82
80
|
"memory-level": "^1.0.0",
|
|
83
81
|
"minimatch": "^5.1.6",
|
|
@@ -93,12 +91,12 @@
|
|
|
93
91
|
"vite": "^6.4.3",
|
|
94
92
|
"yup": "^1.6.1",
|
|
95
93
|
"zod": "^3.24.2",
|
|
96
|
-
"@tinacms/
|
|
97
|
-
"@tinacms/graphql": "^2.4.
|
|
94
|
+
"@tinacms/metrics": "^2.1.2",
|
|
95
|
+
"@tinacms/graphql": "^2.4.10",
|
|
98
96
|
"@tinacms/schema-tools": "^2.9.0",
|
|
99
|
-
"
|
|
100
|
-
"@tinacms/
|
|
101
|
-
"tinacms": "^
|
|
97
|
+
"tinacms": "^3.12.1",
|
|
98
|
+
"@tinacms/app": "^2.5.12",
|
|
99
|
+
"@tinacms/search": "^1.2.24"
|
|
102
100
|
},
|
|
103
101
|
"publishConfig": {
|
|
104
102
|
"registry": "https://registry.npmjs.org"
|