@lwrjs/core 0.10.0-alpha.16 → 0.10.0-alpha.18
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/es/context/provider.d.ts +1 -1
- package/build/es/middleware/hmr-middleware.d.ts +1 -1
- package/build/es/middleware/redirects/unsigned-module-redirect.d.ts +1 -1
- package/build/es/middleware/utils/error-handling.d.ts +1 -1
- package/build/es/middleware/utils/request.d.ts +1 -1
- package/build/es/tools/server-warmup.d.ts +1 -1
- package/build/es/tools/static-generation.d.ts +1 -1
- package/build/es/tools/types.d.ts +1 -1
- package/build/es/tools/utils/network-dispatcher.d.ts +1 -1
- package/build/es/tools/utils/stream.d.ts +2 -2
- package/package.json +27 -27
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import type { ServerContext } from '@lwrjs/types';
|
|
3
|
-
import http from 'http';
|
|
3
|
+
import type http from 'http';
|
|
4
4
|
export declare function hmrMiddleware(server: http.Server, context: ServerContext): void;
|
|
5
5
|
//# sourceMappingURL=hmr-middleware.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AbstractModuleId, MiddlewareRequest, MiddlewareResponse, ModuleBundler, ModuleRegistry, RuntimeEnvironment, RuntimeParams } from '@lwrjs/types';
|
|
2
|
-
|
|
2
|
+
type UnsignedRedirect = (req: MiddlewareRequest, res: MiddlewareResponse, moduleId: AbstractModuleId, runtimeEnvironment: RuntimeEnvironment, runtimeParams: RuntimeParams) => Promise<void>;
|
|
3
3
|
export declare function createUnsignedModuleRedirect(moduleRegistry: ModuleRegistry): UnsignedRedirect;
|
|
4
4
|
export declare function createUnsignedBundleRedirect(moduleBundler: ModuleBundler): UnsignedRedirect;
|
|
5
5
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { NormalizedLwrGlobalConfig } from '@lwrjs/types';
|
|
1
|
+
import type { NormalizedLwrGlobalConfig } from '@lwrjs/types';
|
|
2
2
|
export declare function warmupServer(config: NormalizedLwrGlobalConfig, internalRequestKey: string): Promise<void>;
|
|
3
3
|
//# sourceMappingURL=server-warmup.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ImportMetadata, LwrDispatcher, StaticSiteGenerator, LwrRoute, NormalizedLwrGlobalConfig, RuntimeEnvironment } from '@lwrjs/types';
|
|
2
|
-
import { ResourceContextOpts, SiteConfig, ViewImportMetadata } from './types.js';
|
|
2
|
+
import type { ResourceContextOpts, SiteConfig, ViewImportMetadata } from './types.js';
|
|
3
3
|
export default class SiteGenerator {
|
|
4
4
|
/**
|
|
5
5
|
* Build a static site in the configured directory
|
|
@@ -18,7 +18,7 @@ export interface ResResourceOpts extends BaseResourceContextOpts {
|
|
|
18
18
|
export interface MappingResourceOpts extends BaseResourceContextOpts {
|
|
19
19
|
resourceType: 'mapping';
|
|
20
20
|
}
|
|
21
|
-
export
|
|
21
|
+
export type ResourceContextOpts = RouteResourceOpts | AssetResourceOpts | JsResourceOpts | ResResourceOpts | MappingResourceOpts;
|
|
22
22
|
export interface ViewImportMetadata {
|
|
23
23
|
/**
|
|
24
24
|
* Get the additional import metadata collected while generating this view
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import http from 'http';
|
|
3
|
-
import { LwrDispatcher, FsContext } from '@lwrjs/types';
|
|
3
|
+
import type { LwrDispatcher, FsContext } from '@lwrjs/types';
|
|
4
4
|
export default class NetworkDispatcher implements LwrDispatcher {
|
|
5
5
|
port: number;
|
|
6
6
|
internalRequestKey: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { Readable } from 'stream';
|
|
3
|
-
import { FsContext } from '@lwrjs/types';
|
|
2
|
+
import type { Readable } from 'stream';
|
|
3
|
+
import type { FsContext } from '@lwrjs/types';
|
|
4
4
|
export declare function writeStream(readStream: Readable, fullPath: string): Promise<void>;
|
|
5
5
|
export declare function writeResponse(context: FsContext, fullPath: string): Promise<void>;
|
|
6
6
|
/**
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.10.0-alpha.
|
|
7
|
+
"version": "0.10.0-alpha.18",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -40,30 +40,30 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@locker/compiler": "0.19.5",
|
|
43
|
-
"@lwrjs/app-service": "0.10.0-alpha.
|
|
44
|
-
"@lwrjs/asset-registry": "0.10.0-alpha.
|
|
45
|
-
"@lwrjs/asset-transformer": "0.10.0-alpha.
|
|
46
|
-
"@lwrjs/base-view-provider": "0.10.0-alpha.
|
|
47
|
-
"@lwrjs/base-view-transformer": "0.10.0-alpha.
|
|
48
|
-
"@lwrjs/client-modules": "0.10.0-alpha.
|
|
49
|
-
"@lwrjs/config": "0.10.0-alpha.
|
|
50
|
-
"@lwrjs/diagnostics": "0.10.0-alpha.
|
|
51
|
-
"@lwrjs/fs-asset-provider": "0.10.0-alpha.
|
|
52
|
-
"@lwrjs/html-view-provider": "0.10.0-alpha.
|
|
53
|
-
"@lwrjs/loader": "0.10.0-alpha.
|
|
54
|
-
"@lwrjs/lwc-module-provider": "0.10.0-alpha.
|
|
55
|
-
"@lwrjs/markdown-view-provider": "0.10.0-alpha.
|
|
56
|
-
"@lwrjs/module-bundler": "0.10.0-alpha.
|
|
57
|
-
"@lwrjs/module-registry": "0.10.0-alpha.
|
|
58
|
-
"@lwrjs/npm-module-provider": "0.10.0-alpha.
|
|
59
|
-
"@lwrjs/nunjucks-view-provider": "0.10.0-alpha.
|
|
60
|
-
"@lwrjs/o11y": "0.10.0-alpha.
|
|
61
|
-
"@lwrjs/resource-registry": "0.10.0-alpha.
|
|
62
|
-
"@lwrjs/router": "0.10.0-alpha.
|
|
63
|
-
"@lwrjs/server": "0.10.0-alpha.
|
|
64
|
-
"@lwrjs/shared-utils": "0.10.0-alpha.
|
|
65
|
-
"@lwrjs/static": "0.10.0-alpha.
|
|
66
|
-
"@lwrjs/view-registry": "0.10.0-alpha.
|
|
43
|
+
"@lwrjs/app-service": "0.10.0-alpha.18",
|
|
44
|
+
"@lwrjs/asset-registry": "0.10.0-alpha.18",
|
|
45
|
+
"@lwrjs/asset-transformer": "0.10.0-alpha.18",
|
|
46
|
+
"@lwrjs/base-view-provider": "0.10.0-alpha.18",
|
|
47
|
+
"@lwrjs/base-view-transformer": "0.10.0-alpha.18",
|
|
48
|
+
"@lwrjs/client-modules": "0.10.0-alpha.18",
|
|
49
|
+
"@lwrjs/config": "0.10.0-alpha.18",
|
|
50
|
+
"@lwrjs/diagnostics": "0.10.0-alpha.18",
|
|
51
|
+
"@lwrjs/fs-asset-provider": "0.10.0-alpha.18",
|
|
52
|
+
"@lwrjs/html-view-provider": "0.10.0-alpha.18",
|
|
53
|
+
"@lwrjs/loader": "0.10.0-alpha.18",
|
|
54
|
+
"@lwrjs/lwc-module-provider": "0.10.0-alpha.18",
|
|
55
|
+
"@lwrjs/markdown-view-provider": "0.10.0-alpha.18",
|
|
56
|
+
"@lwrjs/module-bundler": "0.10.0-alpha.18",
|
|
57
|
+
"@lwrjs/module-registry": "0.10.0-alpha.18",
|
|
58
|
+
"@lwrjs/npm-module-provider": "0.10.0-alpha.18",
|
|
59
|
+
"@lwrjs/nunjucks-view-provider": "0.10.0-alpha.18",
|
|
60
|
+
"@lwrjs/o11y": "0.10.0-alpha.18",
|
|
61
|
+
"@lwrjs/resource-registry": "0.10.0-alpha.18",
|
|
62
|
+
"@lwrjs/router": "0.10.0-alpha.18",
|
|
63
|
+
"@lwrjs/server": "0.10.0-alpha.18",
|
|
64
|
+
"@lwrjs/shared-utils": "0.10.0-alpha.18",
|
|
65
|
+
"@lwrjs/static": "0.10.0-alpha.18",
|
|
66
|
+
"@lwrjs/view-registry": "0.10.0-alpha.18",
|
|
67
67
|
"chokidar": "^3.5.3",
|
|
68
68
|
"esbuild": "^0.9.7",
|
|
69
69
|
"fs-extra": "^11.1.1",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"ws": "^8.8.1"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@lwrjs/types": "0.10.0-alpha.
|
|
76
|
+
"@lwrjs/types": "0.10.0-alpha.18",
|
|
77
77
|
"@types/ws": "^8.5.3"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"volta": {
|
|
86
86
|
"extends": "../../../package.json"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "15d09e9a17b6b070e162336234434d6800b2f32d"
|
|
89
89
|
}
|