auth 1.7.0-beta.4 → 1.7.0-beta.5
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/api.mjs +1 -0
- package/dist/index.mjs +4 -0
- package/package.json +5 -5
package/dist/api.mjs
CHANGED
|
@@ -438,6 +438,7 @@ const generatePrismaSchema = async ({ adapter, options, file }) => {
|
|
|
438
438
|
if (provider === "mongodb") fieldBuilder.attribute(`map("_id")`);
|
|
439
439
|
}
|
|
440
440
|
if (attr.unique) builder.model(modelName).blockAttribute(`unique([${fieldName}])`);
|
|
441
|
+
if ((attr.type === "string[]" || attr.type === "number[]") && provider !== "sqlite" && provider !== "mysql" && attr.defaultValue === void 0) fieldBuilder.attribute("default([])");
|
|
441
442
|
if (attr.defaultValue !== void 0) {
|
|
442
443
|
if (Array.isArray(attr.defaultValue)) {
|
|
443
444
|
if (attr.type === "json") {
|
package/dist/index.mjs
CHANGED
|
@@ -1672,6 +1672,7 @@ const generatePrismaSchema = async ({ adapter, options, file }) => {
|
|
|
1672
1672
|
if (provider === "mongodb") fieldBuilder.attribute(`map("_id")`);
|
|
1673
1673
|
}
|
|
1674
1674
|
if (attr.unique) builder.model(modelName).blockAttribute(`unique([${fieldName}])`);
|
|
1675
|
+
if ((attr.type === "string[]" || attr.type === "number[]") && provider !== "sqlite" && provider !== "mysql" && attr.defaultValue === void 0) fieldBuilder.attribute("default([])");
|
|
1675
1676
|
if (attr.defaultValue !== void 0) {
|
|
1676
1677
|
if (Array.isArray(attr.defaultValue)) {
|
|
1677
1678
|
if (attr.type === "json") {
|
|
@@ -2109,6 +2110,8 @@ function sanitizeBetterAuthConfig(config) {
|
|
|
2109
2110
|
const sanitized = JSON.parse(JSON.stringify(config));
|
|
2110
2111
|
const sensitiveKeys = [
|
|
2111
2112
|
"secret",
|
|
2113
|
+
"secrets",
|
|
2114
|
+
"secretKey",
|
|
2112
2115
|
"clientSecret",
|
|
2113
2116
|
"clientId",
|
|
2114
2117
|
"authToken",
|
|
@@ -2162,6 +2165,7 @@ function sanitizeBetterAuthConfig(config) {
|
|
|
2162
2165
|
const lowerSensitiveKey = sensitiveKey.toLowerCase();
|
|
2163
2166
|
return lowerKey === lowerSensitiveKey || lowerKey.endsWith(lowerSensitiveKey);
|
|
2164
2167
|
})) if (typeof value === "string" && value.length > 0) result[key] = "[REDACTED]";
|
|
2168
|
+
else if (Array.isArray(value)) result[key] = "[REDACTED]";
|
|
2165
2169
|
else if (typeof value === "object" && value !== null) result[key] = redactSensitive(value, key);
|
|
2166
2170
|
else result[key] = value;
|
|
2167
2171
|
else result[key] = redactSensitive(value, key);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auth",
|
|
3
|
-
"version": "1.7.0-beta.
|
|
3
|
+
"version": "1.7.0-beta.5",
|
|
4
4
|
"description": "The CLI for Better Auth",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"semver": "^7.7.4",
|
|
62
62
|
"yocto-spinner": "^0.2.3",
|
|
63
63
|
"zod": "^4.3.6",
|
|
64
|
-
"@better-auth/core": "1.7.0-beta.
|
|
65
|
-
"@better-auth/telemetry": "1.7.0-beta.
|
|
66
|
-
"better-auth": "1.7.0-beta.
|
|
64
|
+
"@better-auth/core": "1.7.0-beta.5",
|
|
65
|
+
"@better-auth/telemetry": "1.7.0-beta.5",
|
|
66
|
+
"better-auth": "1.7.0-beta.5"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/better-sqlite3": "^7.6.13",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"tsx": "^4.21.0",
|
|
76
76
|
"type-fest": "^5.4.4",
|
|
77
77
|
"typescript": "^5.9.3",
|
|
78
|
-
"@better-auth/passkey": "1.7.0-beta.
|
|
78
|
+
"@better-auth/passkey": "1.7.0-beta.5"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"build": "tsdown",
|