hylekit 1.0.4 → 1.0.5

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.
@@ -27,24 +27,14 @@ module.exports = __toCommonJS(client_exports);
27
27
  // src/client/sveltekit.ts
28
28
  var import_svelte = require("better-auth/svelte");
29
29
  var authClient = (0, import_svelte.createAuthClient)();
30
- var client = {
31
- ...authClient,
32
- /**
33
- * Alias for signIn.
34
- */
35
- login: authClient.signIn
36
- };
30
+ var client = authClient;
31
+ client.login = authClient.signIn;
37
32
 
38
33
  // src/client/nextjs.ts
39
34
  var import_react = require("better-auth/react");
40
35
  var authClient2 = (0, import_react.createAuthClient)();
41
- var client2 = {
42
- ...authClient2,
43
- /**
44
- * Alias for signIn.
45
- */
46
- login: authClient2.signIn
47
- };
36
+ var client2 = authClient2;
37
+ client2.login = authClient2.signIn;
48
38
 
49
39
  // src/client/index.ts
50
40
  var client3 = {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/client/index.ts","../../src/client/sveltekit.ts","../../src/client/nextjs.ts"],"sourcesContent":["import { client as svelteKitClient } from \"./sveltekit\";\nimport { client as nextJsClient } from \"./nextjs\";\n\n// Client-side adapters (safe to use on client)\nexport const client = {\n sveltekit: svelteKitClient,\n nextjs: nextJsClient\n};\n\n// Shared types\nexport type {\n SessionResult,\n SessionData,\n UserInfo,\n Session,\n User,\n} from \"./types\";\n","import { createAuthClient } from \"better-auth/svelte\";\nexport type { SessionResult, UserInfo, SessionData } from \"./types\";\n\n// Initialize the Better Auth Client (for browser/client-side use)\nconst authClient = createAuthClient();\n\n/**\n * Client-side Auth instance.\n * Use this in your Svelte components and client-side logic.\n * This is safe to use on the client as it doesn't contain secrets.\n */\nexport const client = {\n ...authClient,\n /**\n * Alias for signIn.\n */\n login: authClient.signIn\n};\n","import { createAuthClient } from \"better-auth/react\";\nexport type { SessionResult, UserInfo, SessionData } from \"./types\";\n\n// Initialize the Better Auth Client (for browser/client-side use)\nconst authClient = createAuthClient();\n\n/**\n * Client-side Auth instance.\n * Use this in your Next.js client components.\n * This is safe to use on the client as it doesn't contain secrets.\n */\nexport const client = {\n ...authClient,\n /**\n * Alias for signIn.\n */\n login: authClient.signIn\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,gBAAAA;AAAA;AAAA;;;ACAA,oBAAiC;AAIjC,IAAM,iBAAa,gCAAiB;AAO7B,IAAM,SAAS;AAAA,EAClB,GAAG;AAAA;AAAA;AAAA;AAAA,EAIH,OAAO,WAAW;AACtB;;;ACjBA,mBAAiC;AAIjC,IAAMC,kBAAa,+BAAiB;AAO7B,IAAMC,UAAS;AAAA,EAClB,GAAGD;AAAA;AAAA;AAAA;AAAA,EAIH,OAAOA,YAAW;AACtB;;;AFbO,IAAME,UAAS;AAAA,EAClB,WAAW;AAAA,EACX,QAAQA;AACZ;","names":["client","authClient","client","client"]}
1
+ {"version":3,"sources":["../../src/client/index.ts","../../src/client/sveltekit.ts","../../src/client/nextjs.ts"],"sourcesContent":["import { client as svelteKitClient } from \"./sveltekit\";\nimport { client as nextJsClient } from \"./nextjs\";\n\n// Client-side adapters (safe to use on client)\nexport const client = {\n sveltekit: svelteKitClient,\n nextjs: nextJsClient\n};\n\n// Shared types\nexport type {\n SessionResult,\n SessionData,\n UserInfo,\n Session,\n User,\n} from \"./types\";\n","import { createAuthClient } from \"better-auth/svelte\";\nexport type { SessionResult, UserInfo, SessionData } from \"./types\";\n\n// Initialize the Better Auth Client (for browser/client-side use)\nconst authClient = createAuthClient();\n\n/**\n * Client-side Auth instance.\n * Use this in your Svelte components and client-side logic.\n */\nexport const client = authClient as typeof authClient & { login: typeof authClient.signIn };\nclient.login = authClient.signIn;\n","import { createAuthClient } from \"better-auth/react\";\nexport type { SessionResult, UserInfo, SessionData } from \"./types\";\n\n// Initialize the Better Auth Client (for browser/client-side use)\nconst authClient = createAuthClient();\n\n/**\n * Client-side Auth instance.\n * Use this in your Next.js client components.\n */\nexport const client = authClient as typeof authClient & { login: typeof authClient.signIn };\nclient.login = authClient.signIn;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,gBAAAA;AAAA;AAAA;;;ACAA,oBAAiC;AAIjC,IAAM,iBAAa,gCAAiB;AAM7B,IAAM,SAAS;AACtB,OAAO,QAAQ,WAAW;;;ACX1B,mBAAiC;AAIjC,IAAMC,kBAAa,+BAAiB;AAM7B,IAAMC,UAASD;AACtBC,QAAO,QAAQD,YAAW;;;AFPnB,IAAME,UAAS;AAAA,EAClB,WAAW;AAAA,EACX,QAAQA;AACZ;","names":["client","authClient","client","client"]}