@owlmeans/api-config-client 0.1.18-rc.10 → 0.1.18-rc.11

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 CHANGED
@@ -5,7 +5,7 @@ Client-side middleware that fetches server config from `GET /assets/config.json`
5
5
  ## Overview
6
6
 
7
7
  - `apiConfigMiddleware` — context middleware that calls the config endpoint on startup
8
- - Elevates `@owlmeans/api-config` modules into the client module system
8
+ - Elevates `@owlmeans/api-config` entrypoints into the client entrypoint system
9
9
  - Merges the server `ApiConfig` into the client's `CommonConfig` at initialization time
10
10
 
11
11
  ## Installation
@@ -24,13 +24,13 @@ import { apiConfigMiddleware } from '@owlmeans/api-config-client'
24
24
  context.registerMiddleware(apiConfigMiddleware)
25
25
  ```
26
26
 
27
- On initialization, the middleware calls the `API_CONFIG` module and merges the response into the context config.
27
+ On initialization, the middleware calls the `API_CONFIG` entrypoint and merges the response into the context config.
28
28
 
29
29
  ## API
30
30
 
31
31
  ### `apiConfigMiddleware: Middleware`
32
32
 
33
- A context initialization middleware. Calls `API_CONFIG` module, receives `ApiConfig`, and applies it to the context via `mergeConfig`.
33
+ A context initialization middleware. Calls the `API_CONFIG` entrypoint, receives `ApiConfig`, and applies it to the context via `mergeConfig`.
34
34
 
35
35
  ## Related Packages
36
36
 
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "package": "@owlmeans/api-config-client",
4
- "version": "0.1.18-rc.10",
5
- "generatedAt": "2026-09-01T12:04:42.745Z",
4
+ "version": "0.1.18-rc.11",
5
+ "generatedAt": "2026-09-01T16:28:56.992Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/api-config-client
9
9
 
10
10
  **Layer:** Client
11
- **Install:** `"@owlmeans/api-config-client": "^0.1.18-rc.10"` in `dependencies`
11
+ **Install:** `"@owlmeans/api-config-client": "^0.1.18-rc.11"` in `dependencies`
12
12
 
13
13
  ## Key Exports
14
14
 
@@ -0,0 +1,2 @@
1
+ export declare const entrypoints: any[];
2
+ //# sourceMappingURL=entrypoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,OAAS,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { entrypoints as config, API_CONFIG } from '@owlmeans/api-config';
2
+ import { elevate } from '@owlmeans/client-entrypoint';
3
+ elevate(config, API_CONFIG);
4
+ export const entrypoints = config;
5
+ //# sourceMappingURL=entrypoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entrypoints.js","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,IAAI,MAAM,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAErD,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;AAE3B,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAA"}
package/build/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './middleware.js';
2
- export * from './modules.js';
2
+ export * from './entrypoints.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA"}
package/build/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './middleware.js';
2
- export * from './modules.js';
2
+ export * from './entrypoints.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA"}
@@ -13,7 +13,7 @@ export const apiConfigMiddleware = {
13
13
  module.route.route.port = context.cfg.primaryPort;
14
14
  }
15
15
  try {
16
- const [config] = await module.call();
16
+ const config = await module.call();
17
17
  const target = context.cfg;
18
18
  mergeConfig(target, config);
19
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.js","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAGlF,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAI9C,MAAM,CAAC,MAAM,mBAAmB,GAAe;IAC7C,IAAI,EAAE,cAAc,CAAC,OAAO;IAC5B,KAAK,EAAE,eAAe,CAAC,OAAO;IAC9B,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;QACnB,MAAM,OAAO,GAAG,aAAa,CAC3B,GAAU,EAAE,uBAAuB,CACpC,CAAA;QACD,MAAM,MAAM,GAAG,OAAO,CAAC,UAAU,CAA8B,UAAU,CAAC,CAAA;QAC1E,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,IAAI,EAAE,CAAC;YACpC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAA;YACjD,IAAI,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,IAAI,EAAE,CAAC;gBACpC,MAAM,CAAC,KAAK,CAAC,KAAK,CA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CAAC,WAAW,CAAA;YACnD,CAAC;YACD,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAA;gBAClC,MAAM,MAAM,GAAiB,OAAO,CAAC,GAA8B,CAAA;gBACnE,WAAW,CAAC,MAAM,EAAE,MAAsB,CAAC,CAAA;YAC7C,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;YAClB,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/api-config-client",
3
- "version": "0.1.18-rc.10",
3
+ "version": "0.1.18-rc.11",
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.8",
25
- "@owlmeans/client-context": "^0.1.18-rc.9",
26
- "@owlmeans/client-entrypoint": "^0.1.18-rc.9",
27
- "@owlmeans/context": "^0.1.18-rc.6"
24
+ "@owlmeans/api-config": "^0.1.18-rc.10",
25
+ "@owlmeans/client-context": "^0.1.18-rc.11",
26
+ "@owlmeans/client-entrypoint": "^0.1.18-rc.11",
27
+ "@owlmeans/context": "^0.1.18-rc.7"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@owlmeans/dep-config": "workspace:*",
@@ -0,0 +1,7 @@
1
+
2
+ import { entrypoints as config, API_CONFIG } from '@owlmeans/api-config'
3
+ import { elevate } from '@owlmeans/client-entrypoint'
4
+
5
+ elevate(config, API_CONFIG)
6
+
7
+ export const entrypoints = config
package/src/index.ts CHANGED
@@ -1,3 +1,3 @@
1
1
 
2
2
  export * from './middleware.js'
3
- export * from './modules.js'
3
+ export * from './entrypoints.js'
package/src/middleware.ts CHANGED
@@ -21,7 +21,7 @@ export const apiConfigMiddleware: Middleware = {
21
21
  module.route.route.port = context.cfg.primaryPort
22
22
  }
23
23
  try {
24
- const [config] = await module.call()
24
+ const config = await module.call()
25
25
  const target: CommonConfig = context.cfg as unknown as CommonConfig
26
26
  mergeConfig(target, config as CommonConfig)
27
27
  } catch (e) {
@@ -1,2 +0,0 @@
1
- export declare const modules: any[];
2
- //# sourceMappingURL=modules.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO,OAAS,CAAA"}
package/build/modules.js DELETED
@@ -1,5 +0,0 @@
1
- import { modules as config, API_CONFIG } from '@owlmeans/api-config';
2
- import { elevate } from '@owlmeans/client-entrypoint';
3
- elevate(config, API_CONFIG);
4
- export const modules = config;
5
- //# sourceMappingURL=modules.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.js","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAErD,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;AAE3B,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAA"}
package/src/modules.ts DELETED
@@ -1,7 +0,0 @@
1
-
2
- import { modules as config, API_CONFIG } from '@owlmeans/api-config'
3
- import { elevate } from '@owlmeans/client-entrypoint'
4
-
5
- elevate(config, API_CONFIG)
6
-
7
- export const modules = config