🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

@better-auth/core

Package Overview
Dependencies
Maintainers
2
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@better-auth/core - npm Package Compare versions

Comparing version
1.6.17
to
1.6.18
+1
-1
dist/context/global.mjs

@@ -5,3 +5,3 @@ //#region src/context/global.ts

const __context = {};
const __betterAuthVersion = "1.6.17";
const __betterAuthVersion = "1.6.18";
/**

@@ -8,0 +8,0 @@ * We store context instance in the globalThis.

@@ -5,3 +5,3 @@ import { ATTR_HTTP_RESPONSE_STATUS_CODE } from "./attributes.mjs";

const INSTRUMENTATION_SCOPE = "better-auth";
const INSTRUMENTATION_VERSION = "1.6.17";
const INSTRUMENTATION_VERSION = "1.6.18";
/**

@@ -8,0 +8,0 @@ * Better-auth uses `throw ctx.redirect(url)` for flow control (e.g. OAuth

import { LiteralString } from "./helper.mjs";
import { BetterAuthPlugin } from "./plugin.mjs";
import { BetterAuthOptions } from "./init-options.mjs";

@@ -8,2 +7,13 @@ import { BetterFetch, BetterFetchOption, BetterFetchPlugin } from "@better-fetch/fetch";

//#region src/types/plugin-client.d.ts
type InferableServerPlugin = {
id?: LiteralString | undefined;
endpoints?: Record<string, unknown> | undefined;
schema?: Record<string, {
fields: Record<string, unknown>;
}> | undefined;
$ERROR_CODES?: Record<string, {
readonly code: string;
message: string;
}> | undefined;
};
interface ClientStore {

@@ -75,3 +85,3 @@ notify: (signal: string) => void;

*/
$InferServerPlugin?: BetterAuthPlugin | undefined;
$InferServerPlugin?: InferableServerPlugin | undefined;
/**

@@ -78,0 +88,0 @@ * Custom actions

{
"name": "@better-auth/core",
"version": "1.6.17",
"version": "1.6.18",
"description": "The most comprehensive authentication framework for TypeScript.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -9,4 +9,18 @@ import type {

import type { BetterAuthOptions } from "./init-options";
import type { BetterAuthPlugin } from "./plugin";
type InferableServerPlugin = {
id?: LiteralString | undefined;
endpoints?: Record<string, unknown> | undefined;
schema?: Record<string, { fields: Record<string, unknown> }> | undefined;
$ERROR_CODES?:
| Record<
string,
{
readonly code: string;
message: string;
}
>
| undefined;
};
export interface ClientStore {

@@ -88,3 +102,3 @@ notify: (signal: string) => void;

*/
$InferServerPlugin?: BetterAuthPlugin | undefined;
$InferServerPlugin?: InferableServerPlugin | undefined;
/**

@@ -91,0 +105,0 @@ * Custom actions