fix: keep authz server modules out of browser bundles
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@wrnexus/auth",
|
||||
"version": "0.8.15",
|
||||
"version": "0.8.16",
|
||||
"description": "Complete authentication, account security, MFA, passkeys, recovery, devices, risk, and audit system for WRNexusJS.",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
import { resolveAuthSchemas, type AuthSchemaOverrides, type AuthSchemaSet } from "../validation.ts";
|
||||
import type { AuthSessionVerificationHandler } from "../types.ts";
|
||||
import { completeAuth, startAuth, type OAuthProvider } from "@wrnexus/oauth";
|
||||
import { assignDefaultAuthzRoles } from "@wrnexus/authz";
|
||||
import { assignDefaultAuthzRoles } from "@wrnexus/authz/defaults";
|
||||
|
||||
function text(value: unknown): string {
|
||||
return typeof value === "string" ? value : value == null ? "" : String(value);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@wrnexus/authz",
|
||||
"version": "0.8.12",
|
||||
"version": "0.8.13",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
@@ -8,6 +8,7 @@
|
||||
".": "./src/index.ts",
|
||||
"./db": "./src/db.ts",
|
||||
"./plugin": "./src/plugin.ts",
|
||||
"./defaults": "./src/defaults.ts",
|
||||
"./runtime-middleware": "./src/runtime-middleware.ts",
|
||||
"./runtime-memory-middleware": "./src/runtime-memory-middleware.ts"
|
||||
},
|
||||
|
||||
@@ -172,7 +172,3 @@ export type {
|
||||
} from "./types.ts";
|
||||
export type { AuthorizeDecisionOptions } from "./advanced.ts";
|
||||
export { generatePermissionTypes } from "./codegen.ts";
|
||||
export { authzPlugin } from "./plugin.ts";
|
||||
export type { AuthzConfig } from "./plugin.ts";
|
||||
export { assignDefaultAuthzRoles, setDefaultAuthzRoles } from "./defaults.ts";
|
||||
export type { AuthzIdentityEvent } from "./defaults.ts";
|
||||
|
||||
Reference in New Issue
Block a user