@axium/server 0.0.7 → 0.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/server",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "author": "James Prevett <axium@jamespre.dev> (https://jamespre.dev)",
5
5
  "funding": {
6
6
  "type": "individual",
@@ -34,12 +34,11 @@
34
34
  "build": "tsc"
35
35
  },
36
36
  "peerDependencies": {
37
- "@axium/core": ">=0.0.1"
37
+ "@axium/core": ">=0.0.2"
38
38
  },
39
39
  "dependencies": {
40
40
  "@auth/core": "^0.38.0",
41
41
  "@auth/kysely-adapter": "^1.8.0",
42
- "@auth/sveltekit": "^1.8.0",
43
42
  "@types/pg": "^8.11.11",
44
43
  "bcryptjs": "^3.0.2",
45
44
  "commander": "^13.1.0",
@@ -48,7 +47,10 @@
48
47
  "pg": "^8.14.1",
49
48
  "utilium": "^2.2.3"
50
49
  },
51
- "devDependencies": {
50
+ "optionalDependencies": {
51
+ "@auth/sveltekit": "^1.8.0",
52
+ "@simplewebauthn/browser": "^13.1.0",
53
+ "@simplewebauthn/server": "^13.1.1",
52
54
  "@sveltejs/adapter-node": "^5.2.12",
53
55
  "@sveltejs/kit": "^2.20.2",
54
56
  "@vitejs/plugin-basic-ssl": "^2.0.0",
package/web/auth.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { SvelteKitAuth } from '@auth/sveltekit';
2
2
  import { createWriteStream } from 'node:fs';
3
3
  import { join } from 'node:path/posix';
4
- import { getConfig } from '../src/auth.js';
5
- import { loadDefaults as loadDefaultConfigs } from '../src/config.js';
6
- import { findDir, logger } from '../src/io.js';
4
+ import { getConfig } from '../dist/auth.js';
5
+ import { loadDefaults as loadDefaultConfigs } from '../dist/config.js';
6
+ import { findDir, logger } from '../dist/io.js';
7
7
  import { allLogLevels } from 'logzen';
8
8
 
9
9
  logger.attach(createWriteStream(join(findDir(false), 'server.log')), { output: allLogLevels });
package/web/index.ts CHANGED
@@ -1,2 +1 @@
1
- export * from './auth.js';
2
1
  export { default as Icon } from './lib/Icon.svelte';
@@ -1,5 +1,5 @@
1
1
  import { redirect } from '@sveltejs/kit';
2
- import { adapter } from '../../src/auth.js';
2
+ import { adapter } from '../../dist/auth.js';
3
3
  import type { PageServerLoadEvent } from './$types';
4
4
 
5
5
  export async function load(event: PageServerLoadEvent) {
@@ -1,6 +1,6 @@
1
1
  import { fail, redirect, type Actions } from '@sveltejs/kit';
2
- import { adapter } from '../../../../src/auth';
3
2
  import * as z from 'zod';
3
+ import { adapter } from '../../../../dist/auth.js';
4
4
  import type { PageServerLoadEvent } from './$types';
5
5
 
6
6
  export async function load(event: PageServerLoadEvent) {
@@ -1,6 +1,6 @@
1
1
  import { Name } from '@axium/core/schemas';
2
2
  import { fail, redirect, type Actions } from '@sveltejs/kit';
3
- import { adapter } from '../../../../src/auth';
3
+ import { adapter } from '../../../../dist/auth.js';
4
4
  import type { PageServerLoadEvent } from './$types';
5
5
 
6
6
  export async function load(event: PageServerLoadEvent) {
@@ -1,7 +1,7 @@
1
1
  import { Registration } from '@axium/core/schemas';
2
2
  import { fail, redirect } from '@sveltejs/kit';
3
- import * as auth from '../../../src/auth.js';
4
- import * as config from '../../../src/config.js';
3
+ import * as auth from '../../../dist/auth.js';
4
+ import * as config from '../../../dist/config.js';
5
5
  import type { Actions } from './$types';
6
6
 
7
7
  export function load() {