fix: keep authz server modules out of browser bundles
This commit is contained in:
@@ -235,7 +235,7 @@
|
||||
},
|
||||
"packages/auth": {
|
||||
"name": "@wrnexus/auth",
|
||||
"version": "0.8.15",
|
||||
"version": "0.8.16",
|
||||
"dependencies": {
|
||||
"@wrnexus/authz": "workspace:*",
|
||||
"@wrnexus/captcha": "workspace:*",
|
||||
@@ -257,7 +257,7 @@
|
||||
},
|
||||
"packages/authz": {
|
||||
"name": "@wrnexus/authz",
|
||||
"version": "0.8.12",
|
||||
"version": "0.8.13",
|
||||
"dependencies": {
|
||||
"@wrnexus/core": "workspace:*",
|
||||
"@wrnexus/db": "workspace:*",
|
||||
|
||||
@@ -472,8 +472,6 @@
|
||||
"AuthzAuditEvent",
|
||||
"AuthzAuditSink",
|
||||
"AuthzCatalog",
|
||||
"AuthzConfig",
|
||||
"AuthzIdentityEvent",
|
||||
"AuthzModule",
|
||||
"AuthzResolver",
|
||||
"AuthzResolverOptions",
|
||||
@@ -499,12 +497,10 @@
|
||||
"allow",
|
||||
"any",
|
||||
"anyDecision",
|
||||
"assignDefaultAuthzRoles",
|
||||
"attr",
|
||||
"authorize",
|
||||
"authorizeDecision",
|
||||
"authzMiddleware",
|
||||
"authzPlugin",
|
||||
"cachedPermissionStore",
|
||||
"can",
|
||||
"consoleAuditSink",
|
||||
@@ -536,14 +532,19 @@
|
||||
"requireRole",
|
||||
"safeRecord",
|
||||
"scopeKey",
|
||||
"setAuthzCatalog",
|
||||
"setDefaultAuthzRoles"
|
||||
"setAuthzCatalog"
|
||||
],
|
||||
"./db": [
|
||||
"authzMigrationSql",
|
||||
"dbPermissionStore",
|
||||
"ensureAuthzTables"
|
||||
],
|
||||
"./defaults": [
|
||||
"AuthzIdentityEvent",
|
||||
"assignDefaultAuthzRoles",
|
||||
"setDefaultAuthzRoleStore",
|
||||
"setDefaultAuthzRoles"
|
||||
],
|
||||
"./plugin": [
|
||||
"AuthzConfig",
|
||||
"authzPlugin",
|
||||
|
||||
@@ -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