fix: keep authz server modules out of browser bundles
This commit is contained in:
@@ -235,7 +235,7 @@
|
|||||||
},
|
},
|
||||||
"packages/auth": {
|
"packages/auth": {
|
||||||
"name": "@wrnexus/auth",
|
"name": "@wrnexus/auth",
|
||||||
"version": "0.8.15",
|
"version": "0.8.16",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@wrnexus/authz": "workspace:*",
|
"@wrnexus/authz": "workspace:*",
|
||||||
"@wrnexus/captcha": "workspace:*",
|
"@wrnexus/captcha": "workspace:*",
|
||||||
@@ -257,7 +257,7 @@
|
|||||||
},
|
},
|
||||||
"packages/authz": {
|
"packages/authz": {
|
||||||
"name": "@wrnexus/authz",
|
"name": "@wrnexus/authz",
|
||||||
"version": "0.8.12",
|
"version": "0.8.13",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@wrnexus/core": "workspace:*",
|
"@wrnexus/core": "workspace:*",
|
||||||
"@wrnexus/db": "workspace:*",
|
"@wrnexus/db": "workspace:*",
|
||||||
|
|||||||
@@ -472,8 +472,6 @@
|
|||||||
"AuthzAuditEvent",
|
"AuthzAuditEvent",
|
||||||
"AuthzAuditSink",
|
"AuthzAuditSink",
|
||||||
"AuthzCatalog",
|
"AuthzCatalog",
|
||||||
"AuthzConfig",
|
|
||||||
"AuthzIdentityEvent",
|
|
||||||
"AuthzModule",
|
"AuthzModule",
|
||||||
"AuthzResolver",
|
"AuthzResolver",
|
||||||
"AuthzResolverOptions",
|
"AuthzResolverOptions",
|
||||||
@@ -499,12 +497,10 @@
|
|||||||
"allow",
|
"allow",
|
||||||
"any",
|
"any",
|
||||||
"anyDecision",
|
"anyDecision",
|
||||||
"assignDefaultAuthzRoles",
|
|
||||||
"attr",
|
"attr",
|
||||||
"authorize",
|
"authorize",
|
||||||
"authorizeDecision",
|
"authorizeDecision",
|
||||||
"authzMiddleware",
|
"authzMiddleware",
|
||||||
"authzPlugin",
|
|
||||||
"cachedPermissionStore",
|
"cachedPermissionStore",
|
||||||
"can",
|
"can",
|
||||||
"consoleAuditSink",
|
"consoleAuditSink",
|
||||||
@@ -536,14 +532,19 @@
|
|||||||
"requireRole",
|
"requireRole",
|
||||||
"safeRecord",
|
"safeRecord",
|
||||||
"scopeKey",
|
"scopeKey",
|
||||||
"setAuthzCatalog",
|
"setAuthzCatalog"
|
||||||
"setDefaultAuthzRoles"
|
|
||||||
],
|
],
|
||||||
"./db": [
|
"./db": [
|
||||||
"authzMigrationSql",
|
"authzMigrationSql",
|
||||||
"dbPermissionStore",
|
"dbPermissionStore",
|
||||||
"ensureAuthzTables"
|
"ensureAuthzTables"
|
||||||
],
|
],
|
||||||
|
"./defaults": [
|
||||||
|
"AuthzIdentityEvent",
|
||||||
|
"assignDefaultAuthzRoles",
|
||||||
|
"setDefaultAuthzRoleStore",
|
||||||
|
"setDefaultAuthzRoles"
|
||||||
|
],
|
||||||
"./plugin": [
|
"./plugin": [
|
||||||
"AuthzConfig",
|
"AuthzConfig",
|
||||||
"authzPlugin",
|
"authzPlugin",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/auth",
|
"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.",
|
"description": "Complete authentication, account security, MFA, passkeys, recovery, devices, risk, and audit system for WRNexusJS.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
import { resolveAuthSchemas, type AuthSchemaOverrides, type AuthSchemaSet } from "../validation.ts";
|
import { resolveAuthSchemas, type AuthSchemaOverrides, type AuthSchemaSet } from "../validation.ts";
|
||||||
import type { AuthSessionVerificationHandler } from "../types.ts";
|
import type { AuthSessionVerificationHandler } from "../types.ts";
|
||||||
import { completeAuth, startAuth, type OAuthProvider } from "@wrnexus/oauth";
|
import { completeAuth, startAuth, type OAuthProvider } from "@wrnexus/oauth";
|
||||||
import { assignDefaultAuthzRoles } from "@wrnexus/authz";
|
import { assignDefaultAuthzRoles } from "@wrnexus/authz/defaults";
|
||||||
|
|
||||||
function text(value: unknown): string {
|
function text(value: unknown): string {
|
||||||
return typeof value === "string" ? value : value == null ? "" : String(value);
|
return typeof value === "string" ? value : value == null ? "" : String(value);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@wrnexus/authz",
|
"name": "@wrnexus/authz",
|
||||||
"version": "0.8.12",
|
"version": "0.8.13",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./db": "./src/db.ts",
|
"./db": "./src/db.ts",
|
||||||
"./plugin": "./src/plugin.ts",
|
"./plugin": "./src/plugin.ts",
|
||||||
|
"./defaults": "./src/defaults.ts",
|
||||||
"./runtime-middleware": "./src/runtime-middleware.ts",
|
"./runtime-middleware": "./src/runtime-middleware.ts",
|
||||||
"./runtime-memory-middleware": "./src/runtime-memory-middleware.ts"
|
"./runtime-memory-middleware": "./src/runtime-memory-middleware.ts"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -172,7 +172,3 @@ export type {
|
|||||||
} from "./types.ts";
|
} from "./types.ts";
|
||||||
export type { AuthorizeDecisionOptions } from "./advanced.ts";
|
export type { AuthorizeDecisionOptions } from "./advanced.ts";
|
||||||
export { generatePermissionTypes } from "./codegen.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