@lwrjs/types 0.6.1 → 0.6.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/build/config.d.ts +1 -0
- package/build/index.d.ts +2 -0
- package/build/server.d.ts +6 -0
- package/package.json +2 -2
package/build/config.d.ts
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -162,6 +162,7 @@ export interface RuntimeEnvironment extends ServerModeConfig {
|
|
|
162
162
|
lwrVersion: string;
|
|
163
163
|
debug: boolean;
|
|
164
164
|
serverMode: string;
|
|
165
|
+
basePath: string;
|
|
165
166
|
}
|
|
166
167
|
export interface SourceMapRuntimeEnvironment extends RuntimeEnvironment {
|
|
167
168
|
sourceMapUrl?: string;
|
|
@@ -274,6 +275,7 @@ export interface ProviderAppConfig {
|
|
|
274
275
|
modules: ResolverModuleRecord[];
|
|
275
276
|
routes: NormalizedLwrRoute[];
|
|
276
277
|
errorRoutes: NormalizedLwrErrorRoute[];
|
|
278
|
+
basePath: string;
|
|
277
279
|
rootDir: string;
|
|
278
280
|
contentDir: string;
|
|
279
281
|
layoutsDir: string;
|
package/build/server.d.ts
CHANGED
|
@@ -37,6 +37,12 @@ export interface InternalAppServer<T extends ServerTypes> {
|
|
|
37
37
|
getRegexWildcard(): string;
|
|
38
38
|
}
|
|
39
39
|
export declare type PublicAppServer<T extends ServerTypes> = Pick<InternalAppServer<T>, 'use' | 'all' | 'get' | 'post' | 'getRegexWildcard'>;
|
|
40
|
+
export declare type InternalAppServerOptions = {
|
|
41
|
+
basePath?: string;
|
|
42
|
+
};
|
|
43
|
+
export interface InternalAppServerConstructable {
|
|
44
|
+
new (options: InternalAppServerOptions): InternalAppServer<ServerTypes>;
|
|
45
|
+
}
|
|
40
46
|
export interface MiddlewareFunction {
|
|
41
47
|
(req: MiddlewareRequest, res: MiddlewareResponse, next: Function): void;
|
|
42
48
|
}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"build": "tsc -b"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
|
-
"version": "0.6.
|
|
11
|
+
"version": "0.6.2",
|
|
12
12
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": ">=14.15.4 <17"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "ef85bdc48adde58b7c648561d67acbb408bbe189"
|
|
31
31
|
}
|