@deepkit/angular-ssr 1.0.11 → 1.0.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepkit/angular-ssr",
3
- "version": "1.0.11",
3
+ "version": "1.0.15",
4
4
  "description": "Deepkit + angular SSR",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/cjs/index.js",
@@ -24,14 +24,14 @@
24
24
  "build": "echo '{\"type\": \"module\"}' > ./dist/esm/package.json"
25
25
  },
26
26
  "peerDependencies": {
27
- "@angular/ssr": "^19.1.6",
27
+ "@angular/ssr": "^20.0.3",
28
28
  "@deepkit/app": "^1.0.1",
29
29
  "@deepkit/http": "^1.0.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@angular/ssr": "^19.1.7",
33
- "@deepkit/app": "^1.0.11",
34
- "@deepkit/http": "^1.0.11"
32
+ "@angular/ssr": "^20.0.3",
33
+ "@deepkit/app": "^1.0.15",
34
+ "@deepkit/http": "^1.0.15"
35
35
  },
36
36
  "jest": {
37
37
  "transform": {
@@ -44,5 +44,5 @@
44
44
  "**/tests/**/*.spec.ts"
45
45
  ]
46
46
  },
47
- "gitHead": "32ee2065281bf6103b84a6a17eabaa0fa05c831c"
47
+ "gitHead": "e80edda13b8a84a3f909d442797c77ae4f996ee0"
48
48
  }
package/src/angular.ts CHANGED
@@ -8,22 +8,8 @@
8
8
  * You should have received a copy of the MIT License along with this program.
9
9
  */
10
10
 
11
- import {
12
- AngularNodeAppEngine,
13
- createNodeRequestHandler,
14
- isMainModule,
15
- NodeRequestHandlerFunction,
16
- writeResponseToNodeResponse,
17
- } from '@angular/ssr/node';
18
- import {
19
- HttpKernel,
20
- HttpNotFoundError,
21
- HttpRequest,
22
- HttpResponse,
23
- httpWorkflow,
24
- RouteConfig,
25
- staticOnRoute,
26
- } from '@deepkit/http';
11
+ import { AngularNodeAppEngine, createNodeRequestHandler, isMainModule, NodeRequestHandlerFunction, writeResponseToNodeResponse } from '@angular/ssr/node';
12
+ import { HttpKernel, HttpNotFoundError, HttpRequest, HttpResponse, httpWorkflow, RouteConfig, staticOnRoute } from '@deepkit/http';
27
13
  import { eventDispatcher } from '@deepkit/event';
28
14
  import { createModuleClass } from '@deepkit/app';
29
15
  import { ApplicationServer } from '@deepkit/framework';
@@ -68,7 +54,7 @@ class AngularRequestContext {
68
54
  }
69
55
 
70
56
  class AngularState {
71
- ngApp: AngularNodeAppEngine = new AngularNodeAppEngine()
57
+ ngApp: AngularNodeAppEngine = new AngularNodeAppEngine();
72
58
  }
73
59
 
74
60
  class AngularListener {
@@ -140,7 +126,6 @@ export class RequestHandler {
140
126
  protected requestContext: AngularRequestContext,
141
127
  protected http: HttpKernel,
142
128
  protected server: ApplicationServer,
143
- protected staticListener: AngularStaticListener,
144
129
  ) {
145
130
  }
146
131
 
@@ -167,12 +152,12 @@ export class RequestHandler {
167
152
  }
168
153
  this.requestContext.serverBaseUrl = `http://${host}`;
169
154
 
170
- if (!this.requestContext.serverBaseUrl) {
155
+ if (!this.requestContext.publicBaseUrl) {
171
156
  if (mainModule) {
172
- this.requestContext.serverBaseUrl = 'http://localhost:8080';
157
+ this.requestContext.publicBaseUrl = 'http://localhost:8080';
173
158
  } else {
174
159
  //angular dev server
175
- this.requestContext.serverBaseUrl = 'http://localhost:4200';
160
+ this.requestContext.publicBaseUrl = 'http://localhost:4200';
176
161
  }
177
162
  }
178
163
  });
package/tsconfig.esm.json CHANGED
@@ -12,4 +12,4 @@
12
12
  "path": "../http/tsconfig.esm.json"
13
13
  }
14
14
  ]
15
- }
15
+ }
package/tsconfig.json CHANGED
@@ -35,4 +35,4 @@
35
35
  "path": "../http/tsconfig.json"
36
36
  }
37
37
  ]
38
- }
38
+ }