@cratis/stage.runtime 4.190.0 → 4.190.2
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/src/commandExecutor.d.ts +2 -6
- package/dist/src/hostedBasePath.d.ts +8 -0
- package/dist/src/index.js +452 -432
- package/package.json +1 -1
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { type ArcConfiguration } from '@cratis/arc.react';
|
|
2
2
|
import { Command, type ICommandResult } from '@cratis/arc/commands';
|
|
3
3
|
import type { StageCommandOutcome } from './StageCommandOutcome';
|
|
4
|
+
import { hostedBasePath } from './hostedBasePath';
|
|
5
|
+
export { hostedBasePath };
|
|
4
6
|
/** Resolves only native Arc command proxies; unrelated registry entries cannot execute. */
|
|
5
7
|
export declare function registeredCommand(name: string, typeName?: string, route?: string): (new () => Command) | undefined;
|
|
6
|
-
/**
|
|
7
|
-
* The path the page is served under, without a trailing slash: empty at the root of a host, `/api/play/{id}` when a
|
|
8
|
-
* reverse proxy (Studio's Play) hangs the Stage off a prefix. Registered command routes start with `/`, so without this
|
|
9
|
-
* they would be posted to the root of the proxy's host instead of to the Stage.
|
|
10
|
-
*/
|
|
11
|
-
export declare function hostedBasePath(): string;
|
|
12
8
|
/**
|
|
13
9
|
* Points a command at the path the page is served under when Arc was not given a base path. Arc's own command form builds its command from
|
|
14
10
|
* Arc's default configuration, whose empty base path posts to the root of the host - Studio's Play at `/api/play/{id}/` refused that with `405`.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The path the page is served under, without a trailing slash: empty at the root of a host, `/api/play/{id}` when a
|
|
3
|
+
* reverse proxy (Studio's Play) hangs the Stage off a prefix. Registered command and query routes start with `/`, so without
|
|
4
|
+
* this they would go to the root of the proxy's host instead of to the Stage.
|
|
5
|
+
*/
|
|
6
|
+
export declare function hostedBasePath(): string;
|
|
7
|
+
/** Arc's default configuration carries an empty base path, so an empty one means "not configured" just like an absent one. */
|
|
8
|
+
export declare function apiBasePathFor(arcApiBasePath?: string): string;
|