@owlmeans/api-config-server 0.1.18-rc.4 → 0.1.18-rc.40
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/README.md +10 -10
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/api-config-server/SKILL.md +34 -6
- package/build/actions/config.d.ts +2 -3
- package/build/actions/config.d.ts.map +1 -1
- package/build/actions/config.js +4 -34
- package/build/actions/config.js.map +1 -1
- package/build/actions/index.js +2 -2
- package/build/entrypoints.d.ts +3 -0
- package/build/entrypoints.d.ts.map +1 -0
- package/build/entrypoints.js +5 -0
- package/build/entrypoints.js.map +1 -0
- package/build/index.d.ts +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -2
- package/build/index.js.map +1 -1
- package/package.json +5 -5
- package/src/actions/config.ts +7 -48
- package/src/entrypoints.ts +7 -0
- package/src/index.ts +1 -1
- package/build/.gitkeep +0 -0
- package/build/modules.d.ts +0 -3
- package/build/modules.d.ts.map +0 -1
- package/build/modules.js +0 -8
- package/build/modules.js.map +0 -1
- package/src/modules.ts +0 -11
package/README.md
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
# @owlmeans/api-config-server
|
|
2
2
|
|
|
3
|
-
Server-side
|
|
3
|
+
Server-side entrypoint that serves safe configuration values at `GET /assets/config.json`.
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
7
|
- Registers the `API_CONFIG` handler that returns non-sensitive config fields to clients
|
|
8
8
|
- Used alongside `@owlmeans/api-config-client` to push runtime config from server to browser
|
|
9
|
-
- Include
|
|
9
|
+
- Include this package's local bindings in your server entrypoint registration
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
bun add @owlmeans/api-config-server
|
|
14
|
+
bun add @owlmeans/api-config-server@^0.1.18-rc.40
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
19
19
|
```typescript
|
|
20
|
-
import {
|
|
20
|
+
import { entrypoints as apiConfigBindings } from '@owlmeans/api-config-server'
|
|
21
21
|
|
|
22
|
-
// In your server context setup
|
|
23
|
-
context.
|
|
22
|
+
// In your server context setup: this is a local binding list, not a shared declaration tree.
|
|
23
|
+
context.registerEntrypoints([...serverBindings, ...apiConfigBindings])
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
## API
|
|
27
27
|
|
|
28
|
-
### `
|
|
28
|
+
### `entrypoints`
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
Local server bindings for the shared `advertise` protocol (`GET /assets/config.json`).
|
|
31
31
|
|
|
32
32
|
## Related Packages
|
|
33
33
|
|
|
34
|
-
- [`@owlmeans/api-config`](../api-config) — shared types and
|
|
34
|
+
- [`@owlmeans/api-config`](../api-config) — shared types and entrypoint alias
|
|
35
35
|
- [`@owlmeans/api-config-client`](../api-config-client) — client that fetches this endpoint
|
|
36
36
|
|
|
37
37
|
<!-- owlmeans:agent-guidance:start -->
|
|
@@ -42,7 +42,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
|
|
|
42
42
|
your project's skill store (`.agents/skills/`):
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
|
-
npx @owlmeans/agent-skills
|
|
45
|
+
npx @owlmeans/agent-skills@^0.1.18-rc.36
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
The embedded files are version-matched to this package release. Do not edit them
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"package": "@owlmeans/api-config-server",
|
|
4
|
-
"version": "0.1.18-rc.
|
|
5
|
-
"generatedAt": "2026-
|
|
4
|
+
"version": "0.1.18-rc.40",
|
|
5
|
+
"generatedAt": "2026-09-22T22:22:19.437Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: api-config-server
|
|
3
|
-
description: How to use @owlmeans/api-config-server —
|
|
3
|
+
description: How to use @owlmeans/api-config-server — the backend half of the runtime config flow, which answers the api-config endpoint from package-owned allowlist plugins. Auto-invoked when serving API config from a server app or deciding what a backend advertises to its clients.
|
|
4
4
|
user-invocable: false
|
|
5
5
|
---
|
|
6
6
|
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
@@ -8,21 +8,49 @@ user-invocable: false
|
|
|
8
8
|
# @owlmeans/api-config-server
|
|
9
9
|
|
|
10
10
|
**Layer:** Server
|
|
11
|
-
**Install:** `"@owlmeans/api-config-server": "^0.1.18-rc.
|
|
11
|
+
**Install:** `"@owlmeans/api-config-server": "^0.1.18-rc.40"` in `dependencies`
|
|
12
|
+
|
|
13
|
+
Answers the declaration shared by `@owlmeans/api-config`; the browser side that consumes it is
|
|
14
|
+
`@owlmeans/api-config-client`.
|
|
12
15
|
|
|
13
16
|
## Key Exports
|
|
14
17
|
|
|
15
18
|
| Export | Description |
|
|
16
19
|
|--------|-------------|
|
|
17
|
-
| `
|
|
20
|
+
| `entrypoints` | The `API_CONFIG` protocol bound to the advertise handler, ready to spread into the app's entrypoint list |
|
|
18
21
|
|
|
19
22
|
## Usage
|
|
20
23
|
|
|
21
24
|
```typescript
|
|
22
|
-
import {
|
|
23
|
-
export const
|
|
25
|
+
import { entrypoints as apiConfigBindings } from '@owlmeans/api-config-server'
|
|
26
|
+
export const serverBindings = [...apiConfigBindings, ...myServerBindings]
|
|
24
27
|
```
|
|
25
28
|
|
|
29
|
+
An app built on `@owlmeans/server-app` already has it: the `entrypoints` that package exports
|
|
30
|
+
include this one, so spreading those is enough and adding this list again is redundant.
|
|
31
|
+
|
|
32
|
+
## What is advertised
|
|
33
|
+
|
|
34
|
+
The handler calls `advertisedConfig(ctx.cfg)`. It copies nothing generically: only import-time
|
|
35
|
+
`apiConfigPlugin()` registrations from `@owlmeans/api-config` and packages the application loaded
|
|
36
|
+
can contribute fields.
|
|
37
|
+
|
|
38
|
+
- Base registration keeps public service routes, branding, login settings, selected debug flags and frontend plugins. An `sservice()` route with only `internalHost`/`internalPort` is omitted rather than re-exposed through its derived `host`/`port`.
|
|
39
|
+
- `@owlmeans/oidc` admits only browser OIDC fields and drops internal providers and credentials.
|
|
40
|
+
- `@owlmeans/flow`, `@owlmeans/i18n` and `@owlmeans/payment` register their own client settings and record types.
|
|
41
|
+
- SMTP, queues, databases, storage, trusted keys, secrets and all unregistered config fields are absent.
|
|
42
|
+
|
|
43
|
+
The endpoint carries no guard — it is fetched before the client has any credential — so nothing
|
|
44
|
+
that requires authorization to read belongs in a plugin's `allow` selection.
|
|
45
|
+
|
|
46
|
+
The endpoint carries no guard — it is fetched before the client has any credential — so nothing
|
|
47
|
+
that requires authorization to read belongs in the answer.
|
|
48
|
+
|
|
26
49
|
## Depends On
|
|
27
50
|
|
|
28
|
-
|
|
51
|
+
Declared: `@owlmeans/api-config`, `@owlmeans/server-api`, `@owlmeans/server-entrypoint`,
|
|
52
|
+
`@owlmeans/server-context`.
|
|
53
|
+
|
|
54
|
+
Imported but **not** declared in this package's manifest: `@owlmeans/config` (`PLUGINS`, the plugin
|
|
55
|
+
config type) and `@owlmeans/context` (`AppType`, the config-record key). A workspace resolves them
|
|
56
|
+
anyway; a standalone install has to name them in its own dependencies.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
export declare const advertise: RefedEntrypointHandler<ApiConfig>;
|
|
1
|
+
import type { EntrypointProtocol, OpenRequest, OpenValue } from '@owlmeans/entrypoint';
|
|
2
|
+
export declare const advertise: (protocol: EntrypointProtocol<OpenRequest, OpenValue>) => import("@owlmeans/server-entrypoint").BoundEntrypointHandler<EntrypointProtocol<OpenRequest, OpenValue>>;
|
|
4
3
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/actions/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/actions/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAMtF,eAAO,MAAM,SAAS,aAAc,kBAAkB,CAAC,WAAW,EAAE,SAAS,CAAC,6GACF,CAAA"}
|
package/build/actions/config.js
CHANGED
|
@@ -1,34 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export const advertise = handleRequest(async (_, ctx) => {
|
|
6
|
-
const apiConfig = {
|
|
7
|
-
debug: ctx.cfg.debug ?? {},
|
|
8
|
-
brand: {},
|
|
9
|
-
services: Object.fromEntries(Object.entries(ctx.cfg.services ?? {}).map(([service, config]) => [
|
|
10
|
-
service, {
|
|
11
|
-
service: config.service,
|
|
12
|
-
type: config.type,
|
|
13
|
-
host: config.host,
|
|
14
|
-
port: config.port,
|
|
15
|
-
base: config.base
|
|
16
|
-
}
|
|
17
|
-
])),
|
|
18
|
-
plugins: (ctx.cfg[PLUGINS] ?? [])
|
|
19
|
-
.filter((plugin) => plugin.type === AppType.Frontend),
|
|
20
|
-
[CONFIG_RECORD]: (ctx.cfg[CONFIG_RECORD] ?? []).filter((record) => record.recordType != null && allowedConfigRecords.includes(record.recordType)),
|
|
21
|
-
...(Object.fromEntries(Object.entries(ctx.cfg).filter(([key]) => ![
|
|
22
|
-
'debug', 'services', PLUGINS, ...notAdvertizedConfigKeys
|
|
23
|
-
].includes(key)))),
|
|
24
|
-
...("oidc" in ctx.cfg ? {
|
|
25
|
-
oidc: {
|
|
26
|
-
clientCookie: ctx.cfg.oidc.clientCookie,
|
|
27
|
-
providers: ctx.cfg.oidc.providers?.map(provider => Object.fromEntries(Object.entries(provider)
|
|
28
|
-
.filter(([key]) => !['secret', 'apiClientId'].includes(key)))).filter(provider => provider.internal !== true),
|
|
29
|
-
}
|
|
30
|
-
} : {})
|
|
31
|
-
};
|
|
32
|
-
return apiConfig;
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=config.js.map
|
|
1
|
+
import { handlers } from '@owlmeans/server-api';
|
|
2
|
+
import { advertisedConfig } from '@owlmeans/api-config';
|
|
3
|
+
const api = handlers();
|
|
4
|
+
export const advertise = (protocol) => api.request(protocol, async (_, context) => advertisedConfig(context.cfg));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/actions/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/actions/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAGvD,MAAM,GAAG,GAAG,QAAQ,EAA+B,CAAA;AAEnD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,QAAoD,EAAE,EAAE,CAChF,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAA"}
|
package/build/actions/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as config_1 from './config.js';
|
|
2
|
+
export { config_1 as config };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** The server-local binding of the shared runtime-config protocol. */
|
|
2
|
+
export declare const entrypoints: import("@owlmeans/server-entrypoint").ServerProtocolEntrypoint<import("@owlmeans/entrypoint").EntrypointProtocol<import("@owlmeans/entrypoint").OpenRequest, import("@owlmeans/entrypoint").OpenValue>>[];
|
|
3
|
+
//# sourceMappingURL=entrypoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAKA,sEAAsE;AACtE,eAAO,MAAM,WAAW,2MAAiD,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { advertise } from '@owlmeans/api-config';
|
|
2
|
+
import { bind } from '@owlmeans/server-entrypoint';
|
|
3
|
+
import { config } from './actions/index.js';
|
|
4
|
+
/** The server-local binding of the shared runtime-config protocol. */
|
|
5
|
+
export const entrypoints = [bind(advertise, config.advertise(advertise))];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entrypoints.js","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAE3C,sEAAsE;AACtE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA"}
|
package/build/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './entrypoints.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from './entrypoints.js';
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/api-config-server",
|
|
3
|
-
"version": "0.1.18-rc.
|
|
3
|
+
"version": "0.1.18-rc.40",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@owlmeans/api-config": "^0.1.18-rc.
|
|
25
|
-
"@owlmeans/server-api": "^0.1.18-rc.
|
|
26
|
-
"@owlmeans/server-context": "^0.1.18-rc.
|
|
27
|
-
"@owlmeans/server-entrypoint": "^0.1.18-rc.
|
|
24
|
+
"@owlmeans/api-config": "^0.1.18-rc.35",
|
|
25
|
+
"@owlmeans/server-api": "^0.1.18-rc.40",
|
|
26
|
+
"@owlmeans/server-context": "^0.1.18-rc.35",
|
|
27
|
+
"@owlmeans/server-entrypoint": "^0.1.18-rc.34"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@owlmeans/dep-config": "workspace:*",
|
package/src/actions/config.ts
CHANGED
|
@@ -1,50 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type {
|
|
3
|
-
import
|
|
4
|
-
import type {
|
|
5
|
-
import { notAdvertizedConfigKeys, allowedConfigRecords } from '@owlmeans/api-config'
|
|
6
|
-
import { handleRequest } from '@owlmeans/server-api'
|
|
7
|
-
import { PLUGINS } from '@owlmeans/config'
|
|
8
|
-
import { AppType, CONFIG_RECORD } from '@owlmeans/context'
|
|
9
|
-
import type { ConfigRecord } from '@owlmeans/context'
|
|
1
|
+
import { handlers } from '@owlmeans/server-api'
|
|
2
|
+
import type { EntrypointProtocol, OpenRequest, OpenValue } from '@owlmeans/entrypoint'
|
|
3
|
+
import { advertisedConfig } from '@owlmeans/api-config'
|
|
4
|
+
import type { ServerConfig, ServerContext } from '@owlmeans/server-context'
|
|
10
5
|
|
|
11
|
-
|
|
12
|
-
const apiConfig: ApiConfig = {
|
|
13
|
-
debug: ctx.cfg.debug ?? {},
|
|
14
|
-
brand: {},
|
|
15
|
-
services: Object.fromEntries(
|
|
16
|
-
Object.entries(ctx.cfg.services ?? {} as ServerConfig).map(([service, config]) => [
|
|
17
|
-
service, {
|
|
18
|
-
service: config.service,
|
|
19
|
-
type: config.type,
|
|
20
|
-
host: config.host,
|
|
21
|
-
port: config.port,
|
|
22
|
-
base: config.base
|
|
23
|
-
}
|
|
24
|
-
])
|
|
25
|
-
),
|
|
26
|
-
plugins: ((ctx.cfg as unknown as Record<string, PluginConfig[]>)[PLUGINS] ?? [])
|
|
27
|
-
.filter((plugin: PluginConfig) => plugin.type === AppType.Frontend),
|
|
28
|
-
[CONFIG_RECORD]: ((ctx.cfg as unknown as Record<string, ConfigRecord[]>)[CONFIG_RECORD] ?? []).filter(
|
|
29
|
-
(record: ConfigRecord) => record.recordType != null && allowedConfigRecords.includes(record.recordType)
|
|
30
|
-
),
|
|
31
|
-
...(
|
|
32
|
-
Object.fromEntries(
|
|
33
|
-
Object.entries(ctx.cfg).filter(([key]) => ![
|
|
34
|
-
'debug', 'services', PLUGINS, ...notAdvertizedConfigKeys
|
|
35
|
-
].includes(key))
|
|
36
|
-
)
|
|
37
|
-
),
|
|
38
|
-
...("oidc" in ctx.cfg ? {
|
|
39
|
-
oidc: {
|
|
40
|
-
clientCookie: (ctx.cfg.oidc as { clientCookie: unknown }).clientCookie,
|
|
41
|
-
providers: (ctx.cfg.oidc as { providers: Object[] }).providers?.map(
|
|
42
|
-
provider => Object.fromEntries(Object.entries(provider)
|
|
43
|
-
.filter(([key]) => !['secret', 'apiClientId'].includes(key)))
|
|
44
|
-
).filter(provider => provider.internal !== true),
|
|
45
|
-
}
|
|
46
|
-
} : {})
|
|
47
|
-
}
|
|
6
|
+
const api = handlers<ServerContext<ServerConfig>>()
|
|
48
7
|
|
|
49
|
-
|
|
50
|
-
|
|
8
|
+
export const advertise = (protocol: EntrypointProtocol<OpenRequest, OpenValue>) =>
|
|
9
|
+
api.request(protocol, async (_, context) => advertisedConfig(context.cfg))
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
import { advertise } from '@owlmeans/api-config'
|
|
3
|
+
import { bind } from '@owlmeans/server-entrypoint'
|
|
4
|
+
import { config } from './actions/index.js'
|
|
5
|
+
|
|
6
|
+
/** The server-local binding of the shared runtime-config protocol. */
|
|
7
|
+
export const entrypoints = [bind(advertise, config.advertise(advertise))]
|
package/src/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export * from './
|
|
2
|
+
export * from './entrypoints.js'
|
package/build/.gitkeep
DELETED
|
File without changes
|
package/build/modules.d.ts
DELETED
package/build/modules.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAOnE,eAAO,MAAM,OAAO,EAAE,gBAAgB,CAAC,OAAO,CAAC,EAE9C,CAAA"}
|
package/build/modules.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { elevate } from '@owlmeans/server-entrypoint';
|
|
2
|
-
import { modules as list, API_CONFIG } from '@owlmeans/api-config';
|
|
3
|
-
import { config } from './actions/index.js';
|
|
4
|
-
elevate(list, API_CONFIG, config.advertise);
|
|
5
|
-
export const modules = [
|
|
6
|
-
...list.filter((module) => module.getAlias() === API_CONFIG)
|
|
7
|
-
];
|
|
8
|
-
//# sourceMappingURL=modules.js.map
|
package/build/modules.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modules.js","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAE3C,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,SAAS,CAAC,CAAA;AAE3C,MAAM,CAAC,MAAM,OAAO,GAAgC;IAClD,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,EAAuC,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,UAAU,CAAC;CAClG,CAAA"}
|
package/src/modules.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ServerEntrypoint } from '@owlmeans/server-entrypoint'
|
|
3
|
-
import { elevate } from '@owlmeans/server-entrypoint'
|
|
4
|
-
import { modules as list, API_CONFIG } from '@owlmeans/api-config'
|
|
5
|
-
import { config } from './actions/index.js'
|
|
6
|
-
|
|
7
|
-
elevate(list, API_CONFIG, config.advertise)
|
|
8
|
-
|
|
9
|
-
export const modules: ServerEntrypoint<unknown>[] = [
|
|
10
|
-
...list.filter((module): module is ServerEntrypoint<unknown> => module.getAlias() === API_CONFIG)
|
|
11
|
-
]
|