@hamak/auth 0.6.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/api/api/auth-service.d.ts +3 -3
  2. package/dist/api/api/index.d.ts +1 -1
  3. package/dist/api/api/index.js +1 -1
  4. package/dist/api/index.d.ts +3 -3
  5. package/dist/api/index.js +3 -3
  6. package/dist/api/tokens/index.d.ts +1 -1
  7. package/dist/api/tokens/index.js +1 -1
  8. package/dist/api/types/auth-result.d.ts +1 -1
  9. package/dist/api/types/index.d.ts +4 -4
  10. package/dist/api/types/index.js +4 -4
  11. package/dist/impl/index.d.ts +8 -8
  12. package/dist/impl/index.js +8 -8
  13. package/dist/impl/plugin/auth-plugin-factory.d.ts +1 -1
  14. package/dist/impl/plugin/auth-plugin-factory.js +8 -8
  15. package/dist/impl/plugin/index.d.ts +1 -1
  16. package/dist/impl/plugin/index.js +1 -1
  17. package/dist/impl/services/AuthService.d.ts +2 -2
  18. package/dist/impl/services/index.d.ts +1 -1
  19. package/dist/impl/services/index.js +1 -1
  20. package/dist/impl/storage/LocalTokenStorage.d.ts +2 -2
  21. package/dist/impl/storage/MemoryTokenStorage.d.ts +2 -2
  22. package/dist/impl/storage/SessionTokenStorage.d.ts +2 -2
  23. package/dist/impl/storage/index.d.ts +5 -5
  24. package/dist/impl/storage/index.js +6 -6
  25. package/dist/impl/store/auth-reducer.d.ts +1 -1
  26. package/dist/impl/store/index.d.ts +1 -1
  27. package/dist/impl/store/index.js +1 -1
  28. package/dist/impl/strategies/KeycloakStrategy.d.ts +2 -2
  29. package/dist/impl/strategies/KeycloakStrategy.js +2 -2
  30. package/dist/impl/strategies/OAuth2Strategy.d.ts +2 -2
  31. package/dist/impl/strategies/OAuth2Strategy.js +1 -1
  32. package/dist/impl/strategies/PasswordStrategy.d.ts +2 -2
  33. package/dist/impl/strategies/StrategyRegistry.d.ts +1 -1
  34. package/dist/impl/strategies/index.d.ts +4 -4
  35. package/dist/impl/strategies/index.js +4 -4
  36. package/dist/impl/utils/index.d.ts +2 -2
  37. package/dist/impl/utils/index.js +2 -2
  38. package/dist/impl/utils/jwt.d.ts +1 -1
  39. package/dist/index.d.ts +1 -1
  40. package/dist/index.js +1 -1
  41. package/dist/spi/guards/AuthGuard.d.ts +1 -1
  42. package/dist/spi/guards/index.d.ts +1 -1
  43. package/dist/spi/guards/index.js +1 -1
  44. package/dist/spi/index.d.ts +4 -4
  45. package/dist/spi/index.js +4 -4
  46. package/dist/spi/storage/ITokenStorage.d.ts +1 -1
  47. package/dist/spi/storage/index.d.ts +1 -1
  48. package/dist/spi/storage/index.js +1 -1
  49. package/dist/spi/strategies/IAuthStrategy.d.ts +1 -1
  50. package/dist/spi/strategies/IStrategyRegistry.d.ts +1 -1
  51. package/dist/spi/strategies/index.d.ts +2 -2
  52. package/dist/spi/strategies/index.js +2 -2
  53. package/package.json +8 -4
@@ -2,9 +2,9 @@
2
2
  * Auth Service Interface
3
3
  * Core authentication service contract
4
4
  */
5
- import type { User } from '../types/user';
6
- import type { LoginCredentials, OAuthCallbackParams } from '../types/credentials';
7
- import type { AuthResult, AuthStateCallback } from '../types/auth-result';
5
+ import type { User } from '../types/user.js';
6
+ import type { LoginCredentials, OAuthCallbackParams } from '../types/credentials.js';
7
+ import type { AuthResult, AuthStateCallback } from '../types/auth-result.js';
8
8
  /**
9
9
  * Main authentication service interface
10
10
  *
@@ -1,2 +1,2 @@
1
- export * from './auth-service';
1
+ export * from './auth-service.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- export * from './auth-service';
1
+ export * from './auth-service.js';
@@ -4,7 +4,7 @@
4
4
  * Pure interfaces and types for the pluggable authentication system.
5
5
  * This layer contains no implementation - only contracts.
6
6
  */
7
- export * from './tokens';
8
- export * from './types';
9
- export * from './api';
7
+ export * from './tokens/index.js';
8
+ export * from './types/index.js';
9
+ export * from './api/index.js';
10
10
  //# sourceMappingURL=index.d.ts.map
package/dist/api/index.js CHANGED
@@ -5,8 +5,8 @@
5
5
  * This layer contains no implementation - only contracts.
6
6
  */
7
7
  // Service tokens
8
- export * from './tokens';
8
+ export * from './tokens/index.js';
9
9
  // Type definitions
10
- export * from './types';
10
+ export * from './types/index.js';
11
11
  // API interfaces
12
- export * from './api';
12
+ export * from './api/index.js';
@@ -1,2 +1,2 @@
1
- export * from './service-tokens';
1
+ export * from './service-tokens.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- export * from './service-tokens';
1
+ export * from './service-tokens.js';
@@ -2,7 +2,7 @@
2
2
  * Auth Result Types
3
3
  * Types for authentication operation results
4
4
  */
5
- import type { User } from './user';
5
+ import type { User } from './user.js';
6
6
  /**
7
7
  * Error codes for authentication failures
8
8
  */
@@ -1,5 +1,5 @@
1
- export * from './user';
2
- export * from './credentials';
3
- export * from './auth-result';
4
- export * from './config';
1
+ export * from './user.js';
2
+ export * from './credentials.js';
3
+ export * from './auth-result.js';
4
+ export * from './config.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './user';
2
- export * from './credentials';
3
- export * from './auth-result';
4
- export * from './config';
1
+ export * from './user.js';
2
+ export * from './credentials.js';
3
+ export * from './auth-result.js';
4
+ export * from './config.js';
@@ -4,12 +4,12 @@
4
4
  * Core implementation of the authentication system.
5
5
  * Provides strategies, services, and plugin integration.
6
6
  */
7
- export * from '../api';
8
- export * from '../spi';
9
- export * from './plugin';
10
- export * from './services';
11
- export * from './strategies';
12
- export * from './storage';
13
- export * from './store';
14
- export * from './utils';
7
+ export * from '../api/index.js';
8
+ export * from '../spi/index.js';
9
+ export * from './plugin/index.js';
10
+ export * from './services/index.js';
11
+ export * from './strategies/index.js';
12
+ export * from './storage/index.js';
13
+ export * from './store/index.js';
14
+ export * from './utils/index.js';
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -5,17 +5,17 @@
5
5
  * Provides strategies, services, and plugin integration.
6
6
  */
7
7
  // Re-export API and SPI types for convenience
8
- export * from '../api';
9
- export * from '../spi';
8
+ export * from '../api/index.js';
9
+ export * from '../spi/index.js';
10
10
  // Plugin factory
11
- export * from './plugin';
11
+ export * from './plugin/index.js';
12
12
  // Services
13
- export * from './services';
13
+ export * from './services/index.js';
14
14
  // Strategies
15
- export * from './strategies';
15
+ export * from './strategies/index.js';
16
16
  // Storage
17
- export * from './storage';
17
+ export * from './storage/index.js';
18
18
  // Store
19
- export * from './store';
19
+ export * from './store/index.js';
20
20
  // Utilities
21
- export * from './utils';
21
+ export * from './utils/index.js';
@@ -3,7 +3,7 @@
3
3
  * Creates the authentication plugin for the microkernel
4
4
  */
5
5
  import type { PluginModule } from '@hamak/microkernel-spi';
6
- import type { AuthPluginConfig, IAuthService } from '../../api';
6
+ import type { AuthPluginConfig, IAuthService } from '../../api/index.js';
7
7
  /**
8
8
  * Create the auth plugin
9
9
  *
@@ -2,14 +2,14 @@
2
2
  * Auth Plugin Factory
3
3
  * Creates the authentication plugin for the microkernel
4
4
  */
5
- import { AUTH_SERVICE_TOKEN, AUTH_STRATEGY_REGISTRY_TOKEN, TOKEN_STORAGE_TOKEN } from '../../api';
6
- import { AuthService } from '../services/AuthService';
7
- import { StrategyRegistry } from '../strategies/StrategyRegistry';
8
- import { PasswordStrategy } from '../strategies/PasswordStrategy';
9
- import { OAuth2Strategy } from '../strategies/OAuth2Strategy';
10
- import { KeycloakStrategy } from '../strategies/KeycloakStrategy';
11
- import { createTokenStorage } from '../storage';
12
- import { authReducer } from '../store/auth-reducer';
5
+ import { AUTH_SERVICE_TOKEN, AUTH_STRATEGY_REGISTRY_TOKEN, TOKEN_STORAGE_TOKEN } from '../../api/index.js';
6
+ import { AuthService } from '../services/AuthService.js';
7
+ import { StrategyRegistry } from '../strategies/StrategyRegistry.js';
8
+ import { PasswordStrategy } from '../strategies/PasswordStrategy.js';
9
+ import { OAuth2Strategy } from '../strategies/OAuth2Strategy.js';
10
+ import { KeycloakStrategy } from '../strategies/KeycloakStrategy.js';
11
+ import { createTokenStorage } from '../storage/index.js';
12
+ import { authReducer } from '../store/auth-reducer.js';
13
13
  /**
14
14
  * Store extensions registry token (from ui-store)
15
15
  */
@@ -1,2 +1,2 @@
1
- export * from './auth-plugin-factory';
1
+ export * from './auth-plugin-factory.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- export * from './auth-plugin-factory';
1
+ export * from './auth-plugin-factory.js';
@@ -2,8 +2,8 @@
2
2
  * Auth Service Implementation
3
3
  * Core authentication service that orchestrates strategies and storage
4
4
  */
5
- import type { AuthResult, AuthStateCallback, IAuthService, LoginCredentials, OAuthCallbackParams, User } from '../../api';
6
- import type { IStrategyRegistry, ITokenStorage } from '../../spi';
5
+ import type { AuthResult, AuthStateCallback, IAuthService, LoginCredentials, OAuthCallbackParams, User } from '../../api/index.js';
6
+ import type { IStrategyRegistry, ITokenStorage } from '../../spi/index.js';
7
7
  /**
8
8
  * Auth service implementation
9
9
  *
@@ -1,2 +1,2 @@
1
- export * from './AuthService';
1
+ export * from './AuthService.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- export * from './AuthService';
1
+ export * from './AuthService.js';
@@ -2,8 +2,8 @@
2
2
  * Local Storage Token Storage Implementation
3
3
  * Persists tokens using browser localStorage
4
4
  */
5
- import type { User } from '../../api';
6
- import type { ITokenStorage, StoredTokens, TokenStorageConfig } from '../../spi';
5
+ import type { User } from '../../api/index.js';
6
+ import type { ITokenStorage, StoredTokens, TokenStorageConfig } from '../../spi/index.js';
7
7
  /**
8
8
  * Token storage implementation using localStorage
9
9
  */
@@ -2,8 +2,8 @@
2
2
  * Memory Token Storage Implementation
3
3
  * Stores tokens in memory (cleared on page refresh)
4
4
  */
5
- import type { User } from '../../api';
6
- import type { ITokenStorage, StoredTokens } from '../../spi';
5
+ import type { User } from '../../api/index.js';
6
+ import type { ITokenStorage, StoredTokens } from '../../spi/index.js';
7
7
  /**
8
8
  * Token storage implementation using in-memory storage
9
9
  * Tokens are cleared when the page is refreshed
@@ -2,8 +2,8 @@
2
2
  * Session Storage Token Storage Implementation
3
3
  * Persists tokens using browser sessionStorage (cleared when tab closes)
4
4
  */
5
- import type { User } from '../../api';
6
- import type { ITokenStorage, StoredTokens, TokenStorageConfig } from '../../spi';
5
+ import type { User } from '../../api/index.js';
6
+ import type { ITokenStorage, StoredTokens, TokenStorageConfig } from '../../spi/index.js';
7
7
  /**
8
8
  * Token storage implementation using sessionStorage
9
9
  * Tokens are cleared when the browser tab is closed
@@ -1,8 +1,8 @@
1
- export * from './LocalTokenStorage';
2
- export * from './SessionTokenStorage';
3
- export * from './MemoryTokenStorage';
4
- import type { TokenStorageType } from '../../api';
5
- import type { ITokenStorage, TokenStorageConfig } from '../../spi';
1
+ export * from './LocalTokenStorage.js';
2
+ export * from './SessionTokenStorage.js';
3
+ export * from './MemoryTokenStorage.js';
4
+ import type { TokenStorageType } from '../../api/index.js';
5
+ import type { ITokenStorage, TokenStorageConfig } from '../../spi/index.js';
6
6
  /**
7
7
  * Factory function to create a token storage based on type
8
8
  */
@@ -1,9 +1,9 @@
1
- export * from './LocalTokenStorage';
2
- export * from './SessionTokenStorage';
3
- export * from './MemoryTokenStorage';
4
- import { LocalTokenStorage } from './LocalTokenStorage';
5
- import { SessionTokenStorage } from './SessionTokenStorage';
6
- import { MemoryTokenStorage } from './MemoryTokenStorage';
1
+ export * from './LocalTokenStorage.js';
2
+ export * from './SessionTokenStorage.js';
3
+ export * from './MemoryTokenStorage.js';
4
+ import { LocalTokenStorage } from './LocalTokenStorage.js';
5
+ import { SessionTokenStorage } from './SessionTokenStorage.js';
6
+ import { MemoryTokenStorage } from './MemoryTokenStorage.js';
7
7
  /**
8
8
  * Factory function to create a token storage based on type
9
9
  */
@@ -2,7 +2,7 @@
2
2
  * Auth Redux Reducer
3
3
  * State management for authentication
4
4
  */
5
- import type { AuthError, User } from '../../api';
5
+ import type { AuthError, User } from '../../api/index.js';
6
6
  /**
7
7
  * Auth state shape
8
8
  */
@@ -1,2 +1,2 @@
1
- export * from './auth-reducer';
1
+ export * from './auth-reducer.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- export * from './auth-reducer';
1
+ export * from './auth-reducer.js';
@@ -2,8 +2,8 @@
2
2
  * Keycloak Authentication Strategy
3
3
  * Implements authentication with Keycloak identity provider
4
4
  */
5
- import type { AuthResult, KeycloakStrategyConfig, LoginCredentials, OAuthCallbackParams, User } from '../../api';
6
- import type { IDirectAuthStrategy, IOAuthStrategy, IHttpClient } from '../../spi';
5
+ import type { AuthResult, KeycloakStrategyConfig, LoginCredentials, OAuthCallbackParams, User } from '../../api/index.js';
6
+ import type { IDirectAuthStrategy, IOAuthStrategy, IHttpClient } from '../../spi/index.js';
7
7
  /**
8
8
  * Keycloak authentication strategy
9
9
  *
@@ -2,8 +2,8 @@
2
2
  * Keycloak Authentication Strategy
3
3
  * Implements authentication with Keycloak identity provider
4
4
  */
5
- import { OAuth2Strategy } from './OAuth2Strategy';
6
- import { extractUserFromJWT } from '../utils/jwt';
5
+ import { OAuth2Strategy } from './OAuth2Strategy.js';
6
+ import { extractUserFromJWT } from '../utils/jwt.js';
7
7
  /**
8
8
  * Keycloak authentication strategy
9
9
  *
@@ -2,8 +2,8 @@
2
2
  * OAuth2 Authentication Strategy
3
3
  * Implements OAuth2 Authorization Code flow with PKCE
4
4
  */
5
- import type { AuthResult, LoginCredentials, OAuth2StrategyConfig, OAuthCallbackParams } from '../../api';
6
- import type { IOAuthStrategy, IHttpClient } from '../../spi';
5
+ import type { AuthResult, LoginCredentials, OAuth2StrategyConfig, OAuthCallbackParams } from '../../api/index.js';
6
+ import type { IOAuthStrategy, IHttpClient } from '../../spi/index.js';
7
7
  /**
8
8
  * OAuth2 authentication strategy
9
9
  *
@@ -2,7 +2,7 @@
2
2
  * OAuth2 Authentication Strategy
3
3
  * Implements OAuth2 Authorization Code flow with PKCE
4
4
  */
5
- import { generateState, generateCodeVerifier, generateCodeChallenge, storePKCEState, retrievePKCEState, clearPKCEState } from '../utils/pkce';
5
+ import { generateState, generateCodeVerifier, generateCodeChallenge, storePKCEState, retrievePKCEState, clearPKCEState } from '../utils/pkce.js';
6
6
  /**
7
7
  * OAuth2 authentication strategy
8
8
  *
@@ -2,8 +2,8 @@
2
2
  * Password Authentication Strategy
3
3
  * Implements username/password based authentication
4
4
  */
5
- import type { AuthResult, LoginCredentials, PasswordStrategyConfig } from '../../api';
6
- import type { IAuthStrategy, IHttpClient } from '../../spi';
5
+ import type { AuthResult, LoginCredentials, PasswordStrategyConfig } from '../../api/index.js';
6
+ import type { IAuthStrategy, IHttpClient } from '../../spi/index.js';
7
7
  /**
8
8
  * Password-based authentication strategy
9
9
  *
@@ -2,7 +2,7 @@
2
2
  * Strategy Registry Implementation
3
3
  * Registry for managing multiple authentication strategies
4
4
  */
5
- import type { IAuthStrategy, IOAuthStrategy, IStrategyRegistry } from '../../spi';
5
+ import type { IAuthStrategy, IOAuthStrategy, IStrategyRegistry } from '../../spi/index.js';
6
6
  /**
7
7
  * Default implementation of the strategy registry
8
8
  */
@@ -1,5 +1,5 @@
1
- export * from './PasswordStrategy';
2
- export * from './OAuth2Strategy';
3
- export * from './KeycloakStrategy';
4
- export * from './StrategyRegistry';
1
+ export * from './PasswordStrategy.js';
2
+ export * from './OAuth2Strategy.js';
3
+ export * from './KeycloakStrategy.js';
4
+ export * from './StrategyRegistry.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './PasswordStrategy';
2
- export * from './OAuth2Strategy';
3
- export * from './KeycloakStrategy';
4
- export * from './StrategyRegistry';
1
+ export * from './PasswordStrategy.js';
2
+ export * from './OAuth2Strategy.js';
3
+ export * from './KeycloakStrategy.js';
4
+ export * from './StrategyRegistry.js';
@@ -1,3 +1,3 @@
1
- export * from './pkce';
2
- export * from './jwt';
1
+ export * from './pkce.js';
2
+ export * from './jwt.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export * from './pkce';
2
- export * from './jwt';
1
+ export * from './pkce.js';
2
+ export * from './jwt.js';
@@ -2,7 +2,7 @@
2
2
  * JWT Utilities
3
3
  * Utilities for parsing and validating JWT tokens
4
4
  */
5
- import type { User } from '../../api';
5
+ import type { User } from '../../api/index.js';
6
6
  /**
7
7
  * Standard JWT payload claims
8
8
  */
package/dist/index.d.ts CHANGED
@@ -8,5 +8,5 @@
8
8
  * import type { IAuthService } from '@hamak/auth/api';
9
9
  * import type { ITokenStorage } from '@hamak/auth/spi';
10
10
  */
11
- export * from './impl';
11
+ export * from './impl/index.js';
12
12
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -8,4 +8,4 @@
8
8
  * import type { IAuthService } from '@hamak/auth/api';
9
9
  * import type { ITokenStorage } from '@hamak/auth/spi';
10
10
  */
11
- export * from './impl';
11
+ export * from './impl/index.js';
@@ -2,7 +2,7 @@
2
2
  * Auth Guard Interface
3
3
  * Navigation guards for protected routes
4
4
  */
5
- import type { IAuthService, User } from '../../api';
5
+ import type { IAuthService, User } from '../../api/index.js';
6
6
  /**
7
7
  * Route metadata that can be used for auth decisions
8
8
  */
@@ -1,2 +1,2 @@
1
- export * from './AuthGuard';
1
+ export * from './AuthGuard.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- export * from './AuthGuard';
1
+ export * from './AuthGuard.js';
@@ -5,8 +5,8 @@
5
5
  * Contains extension points for implementing custom strategies,
6
6
  * storage providers, and guards.
7
7
  */
8
- export * from '../api';
9
- export * from './strategies';
10
- export * from './storage';
11
- export * from './guards';
8
+ export * from '../api/index.js';
9
+ export * from './strategies/index.js';
10
+ export * from './storage/index.js';
11
+ export * from './guards/index.js';
12
12
  //# sourceMappingURL=index.d.ts.map
package/dist/spi/index.js CHANGED
@@ -6,10 +6,10 @@
6
6
  * storage providers, and guards.
7
7
  */
8
8
  // Re-export API types for convenience
9
- export * from '../api';
9
+ export * from '../api/index.js';
10
10
  // Strategy interfaces
11
- export * from './strategies';
11
+ export * from './strategies/index.js';
12
12
  // Storage interfaces
13
- export * from './storage';
13
+ export * from './storage/index.js';
14
14
  // Guard interfaces
15
- export * from './guards';
15
+ export * from './guards/index.js';
@@ -2,7 +2,7 @@
2
2
  * Token Storage Interface
3
3
  * Abstraction for persisting authentication tokens
4
4
  */
5
- import type { User } from '../../api';
5
+ import type { User } from '../../api/index.js';
6
6
  /**
7
7
  * Stored token data structure
8
8
  */
@@ -1,2 +1,2 @@
1
- export * from './ITokenStorage';
1
+ export * from './ITokenStorage.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- export * from './ITokenStorage';
1
+ export * from './ITokenStorage.js';
@@ -2,7 +2,7 @@
2
2
  * Auth Strategy Interface
3
3
  * Base interface for all authentication strategy implementations
4
4
  */
5
- import type { AuthResult, AuthStrategyType, LoginCredentials, OAuthCallbackParams, User } from '../../api';
5
+ import type { AuthResult, AuthStrategyType, LoginCredentials, OAuthCallbackParams, User } from '../../api/index.js';
6
6
  /**
7
7
  * HTTP client interface for making auth requests
8
8
  * This abstraction allows strategies to work with any HTTP client
@@ -2,7 +2,7 @@
2
2
  * Strategy Registry Interface
3
3
  * Registry for managing multiple authentication strategies
4
4
  */
5
- import type { IAuthStrategy, IOAuthStrategy } from './IAuthStrategy';
5
+ import type { IAuthStrategy, IOAuthStrategy } from './IAuthStrategy.js';
6
6
  /**
7
7
  * Registry for authentication strategies
8
8
  *
@@ -1,3 +1,3 @@
1
- export * from './IAuthStrategy';
2
- export * from './IStrategyRegistry';
1
+ export * from './IAuthStrategy.js';
2
+ export * from './IStrategyRegistry.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export * from './IAuthStrategy';
2
- export * from './IStrategyRegistry';
1
+ export * from './IAuthStrategy.js';
2
+ export * from './IStrategyRegistry.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hamak/auth",
3
- "version": "0.6.0",
3
+ "version": "0.7.1",
4
4
  "description": "Auth - Complete authentication plugin with password, OAuth2, and Keycloak support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,8 +21,12 @@
21
21
  },
22
22
  "typesVersions": {
23
23
  "*": {
24
- "api": ["./dist/api/index.d.ts"],
25
- "spi": ["./dist/spi/index.d.ts"]
24
+ "api": [
25
+ "./dist/api/index.d.ts"
26
+ ],
27
+ "spi": [
28
+ "./dist/spi/index.d.ts"
29
+ ]
26
30
  }
27
31
  },
28
32
  "files": [
@@ -37,7 +41,7 @@
37
41
  "access": "public"
38
42
  },
39
43
  "scripts": {
40
- "build": "tsc -p tsconfig.lib.json",
44
+ "build": "tsc -p tsconfig.lib.json && node ../../scripts/fix-esm-extensions.mjs ./dist",
41
45
  "clean": "rm -rf dist",
42
46
  "test": "vitest run",
43
47
  "test:watch": "vitest"