@lwrjs/types 0.7.0-alpha.4 → 0.7.0-alpha.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/index.d.ts CHANGED
@@ -152,6 +152,9 @@ export interface ServerModeConfig {
152
152
  defaultLocale: string;
153
153
  hmrEnabled: boolean;
154
154
  immutableAssets: boolean;
155
+ env: {
156
+ NODE_ENV: string;
157
+ };
155
158
  featureFlags: FeatureFlags;
156
159
  }
157
160
  export interface FeatureFlags {
@@ -610,8 +613,12 @@ export interface Compiler {
610
613
  getModuleMetadata(compiledSource: string): Promise<Partial<CompiledMetadata>>;
611
614
  lockerize(compiledModule: ModuleCompiled, lockerConfig: LwrLockerConfig, sourcemap: boolean): CompilerResult;
612
615
  minifyJavascript(source: string): Promise<CompilerResult>;
616
+ parseJavascript(source: string, options: ParseOptions): Promise<CompilerResult>;
613
617
  minifyCSS(source: string): Promise<CompilerResult>;
614
618
  }
619
+ export interface ParseOptions {
620
+ envMode: string;
621
+ }
615
622
  export interface CompilerContext {
616
623
  runtimeEnvironment: RuntimeEnvironment;
617
624
  }
package/build/server.d.ts CHANGED
@@ -46,6 +46,7 @@ export interface InternalAppServerConstructable {
46
46
  export interface MiddlewareFunction {
47
47
  (req: MiddlewareRequest, res: MiddlewareResponse, next: Function): void;
48
48
  }
49
+ export declare type Headers = http.IncomingHttpHeaders;
49
50
  export interface MiddlewareRequest {
50
51
  params: any;
51
52
  originalUrl: string;
@@ -53,6 +54,7 @@ export interface MiddlewareRequest {
53
54
  query: any;
54
55
  body: any;
55
56
  method: string;
57
+ headers: Headers;
56
58
  protocol: string;
57
59
  locale: string;
58
60
  acceptsLanguages(): string[];
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "build": "tsc -b"
9
9
  },
10
10
  "type": "module",
11
- "version": "0.7.0-alpha.4",
11
+ "version": "0.7.0-alpha.5",
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": "611f98b00c050ddb2f0aca529c5d9a0d6e55cc3d"
30
+ "gitHead": "4be785ee5e0da8fbbf29bf18993bbd77febf5a2c"
31
31
  }