@axium/server 0.40.0 → 0.40.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/api/admin.js +1 -1
- package/dist/audit.js +1 -1
- package/dist/cli.js +2 -2
- package/dist/config.js +1 -1
- package/dist/database.js +1 -1
- package/dist/db/connection.js +1 -1
- package/dist/db/delta.js +1 -1
- package/dist/db/schema.js +1 -1
- package/dist/io.js +1 -1
- package/dist/linking.js +2 -2
- package/dist/main.js +2 -1
- package/dist/requests.js +1 -1
- package/dist/routes.js +1 -1
- package/dist/serve.js +1 -1
- package/package.json +2 -2
package/dist/api/admin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import client from '@axium/client/package.json' with { type: 'json' };
|
|
2
2
|
import { AuditFilter, Severity, UserAdminChange } from '@axium/core';
|
|
3
|
-
import { debug, errorText, writeJSON } from '
|
|
3
|
+
import { debug, errorText, writeJSON } from 'ioium/node';
|
|
4
4
|
import core from '@axium/core/package.json' with { type: 'json' };
|
|
5
5
|
import { _findPlugin, plugins, PluginUpdate, serverConfigs } from '@axium/core/plugins';
|
|
6
6
|
import { jsonObjectFrom } from 'kysely/helpers/postgres';
|
package/dist/audit.js
CHANGED
|
@@ -4,7 +4,7 @@ import { capitalize, omit } from 'utilium';
|
|
|
4
4
|
import * as z from 'zod';
|
|
5
5
|
import config from './config.js';
|
|
6
6
|
import { database } from './database.js';
|
|
7
|
-
import * as io from '
|
|
7
|
+
import * as io from 'ioium/node';
|
|
8
8
|
const severityFormat = {
|
|
9
9
|
[Severity.Emergency]: ['bgRedBright', 'white', 'underline'],
|
|
10
10
|
[Severity.Alert]: ['bgRedBright', 'white'],
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Supporting code for the CLI. The CLI entry point is main.ts
|
|
2
|
-
import
|
|
2
|
+
import * as io from 'ioium/node';
|
|
3
3
|
import { styleText } from 'node:util';
|
|
4
|
-
import * as db from './database.js';
|
|
5
4
|
import * as z from 'zod';
|
|
5
|
+
import * as db from './database.js';
|
|
6
6
|
export function userText(user, bold = false) {
|
|
7
7
|
const text = `${user.name} <${user.email}> (${user.id})`;
|
|
8
8
|
return bold ? styleText('bold', text) : text;
|
package/dist/config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { serverConfigs, toBaseName } from '@axium/core';
|
|
2
|
-
import * as io from '
|
|
2
|
+
import * as io from 'ioium/node';
|
|
3
3
|
import { loadPlugin } from '@axium/core/node/plugins';
|
|
4
4
|
import { levelText } from 'logzen';
|
|
5
5
|
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
package/dist/database.js
CHANGED
|
@@ -50,7 +50,7 @@ var __disposeResources = (this && this.__disposeResources) || (function (Suppres
|
|
|
50
50
|
var e = new Error(message);
|
|
51
51
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
52
52
|
});
|
|
53
|
-
import * as io from '
|
|
53
|
+
import * as io from 'ioium/node';
|
|
54
54
|
import { plugins } from '@axium/core/plugins';
|
|
55
55
|
import { sql } from 'kysely';
|
|
56
56
|
import { jsonObjectFrom } from 'kysely/helpers/postgres';
|
package/dist/db/connection.js
CHANGED
package/dist/db/delta.js
CHANGED
package/dist/db/schema.js
CHANGED
package/dist/io.js
CHANGED
package/dist/linking.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as io from '
|
|
1
|
+
import * as io from 'ioium/node';
|
|
2
2
|
import { plugins } from '@axium/core/plugins';
|
|
3
3
|
import { existsSync, symlinkSync, unlinkSync, writeFileSync } from 'node:fs';
|
|
4
4
|
import { join, relative, resolve } from 'node:path/posix';
|
|
@@ -55,7 +55,7 @@ export function linkRoutes(options = {}) {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
const hooksBuiltin = `
|
|
58
|
-
import { errorText } from '
|
|
58
|
+
import { errorText } from 'ioium';
|
|
59
59
|
|
|
60
60
|
export function handleError({ error, status }) {
|
|
61
61
|
console.error(error);
|
package/dist/main.js
CHANGED
|
@@ -54,9 +54,10 @@ var __disposeResources = (this && this.__disposeResources) || (function (Suppres
|
|
|
54
54
|
import { apps } from '@axium/core';
|
|
55
55
|
import { AuditFilter, severityNames } from '@axium/core/audit';
|
|
56
56
|
import { formatDateRange } from '@axium/core/format';
|
|
57
|
-
import {
|
|
57
|
+
import { outputDaemonStatus, pluginText } from '@axium/core/node';
|
|
58
58
|
import { _findPlugin, plugins, runIntegrations } from '@axium/core/plugins';
|
|
59
59
|
import { Argument, Option, program } from 'commander';
|
|
60
|
+
import * as io from 'ioium/node';
|
|
60
61
|
import { allLogLevels } from 'logzen';
|
|
61
62
|
import { createWriteStream } from 'node:fs';
|
|
62
63
|
import { access } from 'node:fs/promises';
|
package/dist/requests.js
CHANGED
package/dist/routes.js
CHANGED
package/dist/serve.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { apps } from '@axium/core';
|
|
2
|
-
import { _debugOutput, debug, warn } from '
|
|
2
|
+
import { _debugOutput, debug, warn } from 'ioium/node';
|
|
3
3
|
import { plugins } from '@axium/core/plugins';
|
|
4
4
|
import '@axium/server/api/index';
|
|
5
5
|
import { readFileSync } from 'node:fs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axium/server",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.1",
|
|
4
4
|
"author": "James Prevett <axium@jamespre.dev>",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "individual",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@axium/client": ">=0.20.0",
|
|
51
|
-
"@axium/core": ">=0.
|
|
51
|
+
"@axium/core": ">=0.24.0",
|
|
52
52
|
"kysely": "^0.28.0",
|
|
53
53
|
"utilium": "^2.6.0",
|
|
54
54
|
"zod": "^4.0.5"
|