@lwrjs/types 0.15.0-alpha.16 → 0.15.0-alpha.17
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/build/index.d.ts +2 -2
- package/build/server.d.ts +5 -1
- package/build/views.d.ts +6 -0
- package/package.json +2 -2
package/build/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { EventEmitter } from 'events';
|
|
|
7
7
|
import type fs from 'fs';
|
|
8
8
|
import type { Readable } from 'stream';
|
|
9
9
|
import type { BundleConfig, EnvironmentConfig, HooksPlugin, LwrLockerConfig, NormalizedLwrErrorRoute, NormalizedLwrGlobalConfig, NormalizedLwrRoute, ResolverModuleRecord, BundleConfigOverrides, RouteHandlers, AssetConfig, I18NConfig, ModuleRegistryConfig } from './config.js';
|
|
10
|
-
import type { AssetReference, CompiledView, PublicViewRegistry, ViewProvider, ViewRegistry, ViewTransformPlugin } from './views.js';
|
|
10
|
+
import type { AssetReference, CompiledView, DirectToCoreProxy, PublicViewRegistry, ViewProvider, ViewRegistry, ViewTransformPlugin } from './views.js';
|
|
11
11
|
export * from './lwr-shim.js';
|
|
12
12
|
export * from './config.js';
|
|
13
13
|
export * from './cli.js';
|
|
@@ -192,7 +192,7 @@ export interface RuntimeEnvironment extends ServerModeConfig {
|
|
|
192
192
|
export interface SourceMapRuntimeEnvironment extends RuntimeEnvironment {
|
|
193
193
|
sourceMapUrl?: string;
|
|
194
194
|
}
|
|
195
|
-
export type RuntimeParams = Record<string, string | number | boolean | null | undefined | Record<string, string
|
|
195
|
+
export type RuntimeParams = Record<string, string | number | boolean | null | undefined | Record<string, string> | DirectToCoreProxy> & {
|
|
196
196
|
requestCache?: Record<string, any>;
|
|
197
197
|
};
|
|
198
198
|
export interface EnvironmentContext {
|
package/build/server.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Application as ExpressApp } from 'express';
|
|
|
4
4
|
import type { default as Koa, Context } from 'koa';
|
|
5
5
|
import type http from 'http';
|
|
6
6
|
import type { Readable } from 'stream';
|
|
7
|
-
import type { NormalizedLwrGlobalConfig, RuntimeContext, RuntimeEnvironment } from './index.js';
|
|
7
|
+
import type { DirectToCoreProxy, NormalizedLwrGlobalConfig, RuntimeContext, RuntimeEnvironment } from './index.js';
|
|
8
8
|
export type ServerTypes = 'koa' | 'express' | 'fs';
|
|
9
9
|
export type ServerTypeImpl<T extends ServerTypes> = T extends 'koa' ? Koa : T extends 'express' ? ExpressApp : T extends 'fs' ? LwrDispatcher : never;
|
|
10
10
|
export interface FsContext extends Context {
|
|
@@ -89,6 +89,10 @@ export interface MiddlewareRequest {
|
|
|
89
89
|
* Use the request parameters to resolve the runtime context(ie. environment and parameters)
|
|
90
90
|
*/
|
|
91
91
|
getRuntimeContext(defaultRuntimeEnvironment: RuntimeEnvironment): RuntimeContext;
|
|
92
|
+
/**
|
|
93
|
+
* Resolve the Direct-to-Core proxy values for the SSR wrapped fetch endowment
|
|
94
|
+
*/
|
|
95
|
+
getCoreProxy(proxyForSSR?: boolean): DirectToCoreProxy | undefined;
|
|
92
96
|
}
|
|
93
97
|
export interface MiddlewareResponse {
|
|
94
98
|
hasHeader(name: string): boolean;
|
package/build/views.d.ts
CHANGED
|
@@ -258,5 +258,11 @@ export interface SsrRedirect {
|
|
|
258
258
|
status?: 301 | 302;
|
|
259
259
|
location: string;
|
|
260
260
|
}
|
|
261
|
+
export interface DirectToCoreProxy {
|
|
262
|
+
origin: string;
|
|
263
|
+
host: string;
|
|
264
|
+
servername?: string;
|
|
265
|
+
sitePath?: string;
|
|
266
|
+
}
|
|
261
267
|
export {};
|
|
262
268
|
//# sourceMappingURL=views.d.ts.map
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"build": "tsc -b"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
|
-
"version": "0.15.0-alpha.
|
|
11
|
+
"version": "0.15.0-alpha.17",
|
|
12
12
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=18.0.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "57b524a9be3a50ee50b7f6979a01bae458d09747"
|
|
33
33
|
}
|