@xk2800/nextjs-template 0.7.2-beta.10 → 0.7.2-beta.12
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/components/dashboard/admin/system-settings/system-settings-form.tsx +177 -162
- package/components/dashboard/admin/system-settings/system-settings-section.tsx +4 -2
- package/dist/api/feedback.js +18 -0
- package/dist/api/feedback.js.map +1 -1
- package/dist/api/feedback.mjs +1 -1
- package/dist/api/marketing.js +18 -0
- package/dist/api/marketing.js.map +1 -1
- package/dist/api/marketing.mjs +2 -2
- package/dist/auth/helpers.js +18 -0
- package/dist/auth/helpers.js.map +1 -1
- package/dist/auth/helpers.mjs +2 -2
- package/dist/auth/index.js +18 -0
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/index.mjs +1 -1
- package/dist/{chunk-S23GC776.mjs → chunk-RK2B5AOQ.mjs} +3 -3
- package/dist/{chunk-S23GC776.mjs.map → chunk-RK2B5AOQ.mjs.map} +1 -1
- package/dist/{chunk-IH6CMZIN.mjs → chunk-ZQTI4T2K.mjs} +20 -2
- package/dist/chunk-ZQTI4T2K.mjs.map +1 -0
- package/package.json +1 -1
- package/scripts/check-deps.mjs +3 -1
- package/dist/chunk-IH6CMZIN.mjs.map +0 -1
package/dist/auth/helpers.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { getCurrentSession, hasRole, normalizeCallbackUrl, requireAdminApi, requireAuth, requireRole } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { getCurrentSession, hasRole, normalizeCallbackUrl, requireAdminApi, requireAuth, requireRole } from '../chunk-RK2B5AOQ.mjs';
|
|
2
|
+
import '../chunk-ZQTI4T2K.mjs';
|
|
3
3
|
import '../chunk-ZOQHHFYA.mjs';
|
|
4
4
|
import '../chunk-QDUPSU5O.mjs';
|
|
5
5
|
import '../chunk-NJBRKKLK.mjs';
|
package/dist/auth/index.js
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
var components = require('@react-email/components');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
require('server-only');
|
|
6
|
+
var child_process = require('child_process');
|
|
7
|
+
var fs = require('fs');
|
|
8
|
+
var path = require('path');
|
|
6
9
|
var betterAuth = require('better-auth');
|
|
7
10
|
var drizzle = require('better-auth/adapters/drizzle');
|
|
8
11
|
var cuid2 = require('@paralleldrive/cuid2');
|
|
@@ -1159,6 +1162,21 @@ async function getResend() {
|
|
|
1159
1162
|
config.RESEND_BROADCAST_API_KEY || config.RESEND_API_KEY;
|
|
1160
1163
|
|
|
1161
1164
|
// server/auth.ts
|
|
1165
|
+
function checkDepsOnce() {
|
|
1166
|
+
const flag = globalThis;
|
|
1167
|
+
if (process.env.NODE_ENV !== "development" || flag.__xkDepsChecked) return;
|
|
1168
|
+
flag.__xkDepsChecked = true;
|
|
1169
|
+
const script = path.join(
|
|
1170
|
+
/*turbopackIgnore: true*/
|
|
1171
|
+
process.cwd(),
|
|
1172
|
+
"node_modules/@xk2800/nextjs-template/scripts/check-deps.mjs"
|
|
1173
|
+
);
|
|
1174
|
+
if (!fs.existsSync(script)) return;
|
|
1175
|
+
child_process.execFile(process.execPath, [script], (_err, stdout) => {
|
|
1176
|
+
if (stdout == null ? void 0 : stdout.trim()) console.log(stdout);
|
|
1177
|
+
});
|
|
1178
|
+
}
|
|
1179
|
+
checkDepsOnce();
|
|
1162
1180
|
async function logFailedLogin(ctx, log) {
|
|
1163
1181
|
var _a, _b, _c;
|
|
1164
1182
|
try {
|