Auto-commit 2026-04-29 16:31

This commit is contained in:
2026-04-29 16:31:27 -04:00
parent e8687bb6b2
commit 0495ee5bd2
19691 changed files with 3272886 additions and 138 deletions

3
node_modules/next-auth/utils/detect-origin.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
/** Extract the origin from the environment */
export declare function detectOrigin(forwardedHost: any, protocol: any): string | undefined;
//# sourceMappingURL=detect-origin.d.ts.map

1
node_modules/next-auth/utils/detect-origin.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"detect-origin.d.ts","sourceRoot":"","sources":["../src/utils/detect-origin.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,wBAAgB,YAAY,CAAC,aAAa,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,sBAO7D"}

11
node_modules/next-auth/utils/detect-origin.js generated vendored Normal file
View File

@@ -0,0 +1,11 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.detectOrigin = detectOrigin;
function detectOrigin(forwardedHost, protocol) {
var _process$env$VERCEL;
if ((_process$env$VERCEL = process.env.VERCEL) !== null && _process$env$VERCEL !== void 0 ? _process$env$VERCEL : process.env.AUTH_TRUST_HOST) return `${protocol === "http" ? "http" : "https"}://${forwardedHost}`;
return process.env.NEXTAUTH_URL;
}

30
node_modules/next-auth/utils/logger.d.ts generated vendored Normal file
View File

@@ -0,0 +1,30 @@
export declare type WarningCode = "NEXTAUTH_URL" | "NO_SECRET" | "TWITTER_OAUTH_2_BETA" | "DEBUG_ENABLED";
/**
* Override any of the methods, and the rest will use the default logger.
*
* [Documentation](https://next-auth.js.org/configuration/options#logger)
*/
export interface LoggerInstance extends Record<string, Function> {
warn: (code: WarningCode) => void;
error: (code: string,
/**
* Either an instance of (JSON serializable) Error
* or an object that contains some debug information.
* (Error is still available through `metadata.error`)
*/
metadata: Error | {
error: Error;
[key: string]: unknown;
}) => void;
debug: (code: string, metadata: unknown) => void;
}
declare const _logger: LoggerInstance;
/**
* Override the built-in logger with user's implementation.
* Any `undefined` level will use the default logger.
*/
export declare function setLogger(newLogger?: Partial<LoggerInstance>, debug?: boolean): void;
export default _logger;
/** Serializes client-side log messages and sends them to the server */
export declare function proxyLogger(logger?: LoggerInstance, basePath?: string): LoggerInstance;
//# sourceMappingURL=logger.d.ts.map

1
node_modules/next-auth/utils/logger.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/utils/logger.ts"],"names":[],"mappings":"AAqBA,oBAAY,WAAW,GACnB,cAAc,GACd,WAAW,GACX,sBAAsB,GACtB,eAAe,CAAA;AAEnB;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC;IAC9D,IAAI,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAA;IACjC,KAAK,EAAE,CACL,IAAI,EAAE,MAAM;IACZ;;;;OAIG;IACH,QAAQ,EAAE,KAAK,GAAG;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,KACvD,IAAI,CAAA;IACT,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;CACjD;AAED,QAAA,MAAM,OAAO,EAAE,cAmBd,CAAA;AAED;;;GAGG;AACH,wBAAgB,SAAS,CACvB,SAAS,GAAE,OAAO,CAAC,cAAc,CAAM,EACvC,KAAK,CAAC,EAAE,OAAO,QAQhB;AAED,eAAe,OAAO,CAAA;AAEtB,uEAAuE;AACvE,wBAAgB,WAAW,CACzB,MAAM,GAAE,cAAwB,EAChC,QAAQ,CAAC,EAAE,MAAM,GAChB,cAAc,CA2BhB"}

113
node_modules/next-auth/utils/logger.js generated vendored Normal file
View File

@@ -0,0 +1,113 @@
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
exports.proxyLogger = proxyLogger;
exports.setLogger = setLogger;
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
var _errors = require("../core/errors");
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function formatError(o) {
if (o instanceof Error && !(o instanceof _errors.UnknownError)) {
return {
message: o.message,
stack: o.stack,
name: o.name
};
}
if (hasErrorProperty(o)) {
var _o$message;
o.error = formatError(o.error);
o.message = (_o$message = o.message) !== null && _o$message !== void 0 ? _o$message : o.error.message;
}
return o;
}
function hasErrorProperty(x) {
return !!(x !== null && x !== void 0 && x.error);
}
var _logger = {
error: function error(code, metadata) {
metadata = formatError(metadata);
console.error("[next-auth][error][".concat(code, "]"), "\nhttps://next-auth.js.org/errors#".concat(code.toLowerCase()), metadata.message, metadata);
},
warn: function warn(code) {
console.warn("[next-auth][warn][".concat(code, "]"), "\nhttps://next-auth.js.org/warnings#".concat(code.toLowerCase()));
},
debug: function debug(code, metadata) {
console.log("[next-auth][debug][".concat(code, "]"), metadata);
}
};
function setLogger() {
var newLogger = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var debug = arguments.length > 1 ? arguments[1] : undefined;
if (!debug) _logger.debug = function () {};
if (newLogger.error) _logger.error = newLogger.error;
if (newLogger.warn) _logger.warn = newLogger.warn;
if (newLogger.debug) _logger.debug = newLogger.debug;
}
var _default = exports.default = _logger;
function proxyLogger() {
var logger = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _logger;
var basePath = arguments.length > 1 ? arguments[1] : undefined;
try {
if (typeof window === "undefined") {
return logger;
}
var clientLogger = {};
var _loop = function _loop(level) {
clientLogger[level] = function () {
var _ref = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(code, metadata) {
var url, body;
return _regenerator.default.wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_logger[level](code, metadata);
if (level === "error") {
metadata = formatError(metadata);
}
;
metadata.client = true;
url = "".concat(basePath, "/_log");
body = new URLSearchParams(_objectSpread({
level: level,
code: code
}, metadata));
if (!navigator.sendBeacon) {
_context.next = 8;
break;
}
return _context.abrupt("return", navigator.sendBeacon(url, body));
case 8:
_context.next = 10;
return fetch(url, {
method: "POST",
body: body,
keepalive: true
});
case 10:
return _context.abrupt("return", _context.sent);
case 11:
case "end":
return _context.stop();
}
}, _callee);
}));
return function (_x, _x2) {
return _ref.apply(this, arguments);
};
}();
};
for (var level in logger) {
_loop(level);
}
return clientLogger;
} catch (_unused) {
return _logger;
}
}

3
node_modules/next-auth/utils/merge.d.ts generated vendored Normal file
View File

@@ -0,0 +1,3 @@
/** Deep merge two objects */
export declare function merge(target: any, ...sources: any[]): any;
//# sourceMappingURL=merge.d.ts.map

1
node_modules/next-auth/utils/merge.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../src/utils/merge.ts"],"names":[],"mappings":"AAOA,6BAA6B;AAC7B,wBAAgB,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,EAAE,GAAG,GAAG,CAgBzD"}

28
node_modules/next-auth/utils/merge.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.merge = merge;
function isObject(item) {
return item && typeof item === "object" && !Array.isArray(item);
}
function merge(target, ...sources) {
if (!sources.length) return target;
const source = sources.shift();
if (isObject(target) && isObject(source)) {
for (const key in source) {
if (isObject(source[key])) {
if (!target[key]) Object.assign(target, {
[key]: {}
});
merge(target[key], source[key]);
} else {
Object.assign(target, {
[key]: source[key]
});
}
}
}
return merge(target, ...sources);
}

15
node_modules/next-auth/utils/parse-url.d.ts generated vendored Normal file
View File

@@ -0,0 +1,15 @@
export interface InternalUrl {
/** @default "http://localhost:3000" */
origin: string;
/** @default "localhost:3000" */
host: string;
/** @default "/api/auth" */
path: string;
/** @default "http://localhost:3000/api/auth" */
base: string;
/** @default "http://localhost:3000/api/auth" */
toString: () => string;
}
/** Returns an `URL` like object to make requests/redirects from server-side */
export default function parseUrl(url?: string): InternalUrl;
//# sourceMappingURL=parse-url.d.ts.map

1
node_modules/next-auth/utils/parse-url.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"parse-url.d.ts","sourceRoot":"","sources":["../src/utils/parse-url.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,uCAAuC;IACvC,MAAM,EAAE,MAAM,CAAA;IACd,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAA;IACZ,gDAAgD;IAChD,QAAQ,EAAE,MAAM,MAAM,CAAA;CACvB;AAED,+EAA+E;AAC/E,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,WAAW,CAqB1D"}

23
node_modules/next-auth/utils/parse-url.js generated vendored Normal file
View File

@@ -0,0 +1,23 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = parseUrl;
function parseUrl(url) {
var _url2;
const defaultUrl = new URL("http://localhost:3000/api/auth");
if (url && !url.startsWith("http")) {
url = `https://${url}`;
}
const _url = new URL((_url2 = url) !== null && _url2 !== void 0 ? _url2 : defaultUrl);
const path = (_url.pathname === "/" ? defaultUrl.pathname : _url.pathname).replace(/\/$/, "");
const base = `${_url.origin}${path}`;
return {
origin: _url.origin,
host: _url.host,
path,
base,
toString: () => base
};
}