@lwrjs/types 0.6.1 → 0.6.5
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 +7 -0
- package/build/server.d.ts +6 -0
- package/package.json +2 -3
- package/LICENSE +0 -10
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;
|
|
@@ -627,6 +629,7 @@ export interface ClientBootstrapConfig {
|
|
|
627
629
|
endpoints?: Endpoints;
|
|
628
630
|
imports?: ImportMetadataImports;
|
|
629
631
|
index?: ImportMetadataIndex;
|
|
632
|
+
metricsConfig?: MetricsConfig;
|
|
630
633
|
/**
|
|
631
634
|
/* @deprecated for mapping endpoint syntax
|
|
632
635
|
/* Import map for the loader to resolve modules, defaults to a "lwr-importmap" script tag
|
|
@@ -645,6 +648,10 @@ export interface BootstrapJson {
|
|
|
645
648
|
[id: string]: ModuleJson;
|
|
646
649
|
};
|
|
647
650
|
}
|
|
651
|
+
export interface MetricsConfig {
|
|
652
|
+
enableModuleFetchTracking?: boolean;
|
|
653
|
+
enableMappingFetchTracking?: boolean;
|
|
654
|
+
}
|
|
648
655
|
export interface ServerContext {
|
|
649
656
|
appObserver: LwrAppObserver;
|
|
650
657
|
appEmitter: LwrAppEmitter;
|
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.5",
|
|
12
12
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
@@ -26,6 +26,5 @@
|
|
|
26
26
|
],
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": ">=14.15.4 <17"
|
|
29
|
-
}
|
|
30
|
-
"gitHead": "4d7c44dfae958fe24ef1c94b0f60aa2b15e12f24"
|
|
29
|
+
}
|
|
31
30
|
}
|
package/LICENSE
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
MIT LICENSE
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020, Salesforce.com, Inc.
|
|
4
|
-
All rights reserved.
|
|
5
|
-
|
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
7
|
-
|
|
8
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
9
|
-
|
|
10
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|