@enformik/auth 0.1.0 → 0.1.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.
package/dist/auth.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type AuthConfig, type AuthOptions, type AuthUser, type SiteConfig } from './types';
1
+ import { type AuthConfig, type AuthOptions, type AuthUser, type SiteConfig } from './types.js';
2
2
  export interface Auth {
3
3
  /** Okunan site yapılandırması (`auth` bloğu doludur; yoksa `createAuth` zaten `not_configured` verir). */
4
4
  readonly config: SiteConfig & {
package/dist/auth.js CHANGED
@@ -1,5 +1,5 @@
1
- import { challengeFor, randomString } from './pkce';
2
- import { EnformikAuthError } from './types';
1
+ import { challengeFor, randomString } from './pkce.js';
2
+ import { EnformikAuthError } from './types.js';
3
3
  const PENDING_KEY = 'enformik.auth.pending';
4
4
  const TOKENS_KEY = 'enformik.auth.tokens';
5
5
  const LEEWAY_MS = 30_000; // süresi dolmadan 30 sn önce yenile
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { createAuth } from './auth';
2
- export type { Auth } from './auth';
3
- export { EnformikAuthError } from './types';
4
- export type { AuthConfig, AuthErrorCode, AuthOptions, AuthUser, KeyValueStorage, SiteConfig } from './types';
1
+ export { createAuth } from './auth.js';
2
+ export type { Auth } from './auth.js';
3
+ export { EnformikAuthError } from './types.js';
4
+ export type { AuthConfig, AuthErrorCode, AuthOptions, AuthUser, KeyValueStorage, SiteConfig } from './types.js';
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { createAuth } from './auth';
2
- export { EnformikAuthError } from './types';
1
+ export { createAuth } from './auth.js';
2
+ export { EnformikAuthError } from './types.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enformik/auth",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Enformik web sitesi girişi: tarayıcı için OIDC yetkilendirme kodu + PKCE istemcisi (sıfır bağımlılık).",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -24,7 +24,8 @@
24
24
  "build": "tsc -p tsconfig.build.json",
25
25
  "typecheck": "tsc -p tsconfig.json --noEmit",
26
26
  "test": "vitest run",
27
- "prepublishOnly": "npm run build && npm test"
27
+ "prepublishOnly": "npm run build && npm test && npm run smoke",
28
+ "smoke": "node --input-type=module -e \"const m = await import('./dist/index.js'); if (typeof m.createAuth !== 'function') throw new Error('createAuth yok')\""
28
29
  },
29
30
  "devDependencies": {
30
31
  "@types/node": "^22.10.0",