@angular/ssr 19.1.6 → 19.2.0-next.1
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/fesm2022/ssr.mjs +15 -29
- package/fesm2022/ssr.mjs.map +1 -1
- package/package.json +14 -12
- package/third_party/beasties/index.js +21 -9
- package/third_party/beasties/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/ssr",
|
|
3
|
-
"version": "19.1
|
|
3
|
+
"version": "19.2.0-next.1",
|
|
4
4
|
"description": "Angular server side rendering utilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"tslib": "^2.3.0"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@angular/common": "^19.0.0",
|
|
21
|
-
"@angular/core": "^19.0.0",
|
|
22
|
-
"@angular/platform-server": "^19.0.0",
|
|
23
|
-
"@angular/router": "^19.0.0"
|
|
20
|
+
"@angular/common": "^19.0.0 || ^19.2.0-next.0",
|
|
21
|
+
"@angular/core": "^19.0.0 || ^19.2.0-next.0",
|
|
22
|
+
"@angular/platform-server": "^19.0.0 || ^19.2.0-next.0",
|
|
23
|
+
"@angular/router": "^19.0.0 || ^19.2.0-next.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependenciesMeta": {
|
|
26
26
|
"@angular/platform-server": {
|
|
@@ -28,13 +28,15 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@angular/
|
|
32
|
-
"@angular/
|
|
33
|
-
"@angular/
|
|
34
|
-
"@angular/
|
|
35
|
-
"@angular/platform-
|
|
36
|
-
"@angular/
|
|
37
|
-
"@
|
|
31
|
+
"@angular-devkit/schematics": "workspace:*",
|
|
32
|
+
"@angular/common": "19.2.0-next.0",
|
|
33
|
+
"@angular/compiler": "19.2.0-next.0",
|
|
34
|
+
"@angular/core": "19.2.0-next.0",
|
|
35
|
+
"@angular/platform-browser": "19.2.0-next.0",
|
|
36
|
+
"@angular/platform-server": "19.2.0-next.0",
|
|
37
|
+
"@angular/router": "19.2.0-next.0",
|
|
38
|
+
"@bazel/runfiles": "^6.0.0",
|
|
39
|
+
"@schematics/angular": "workspace:*"
|
|
38
40
|
},
|
|
39
41
|
"sideEffects": false,
|
|
40
42
|
"schematics": "./schematics/collection.json",
|
|
@@ -1198,9 +1198,12 @@ function requireNode$1 () {
|
|
|
1198
1198
|
if (opts.index) {
|
|
1199
1199
|
pos = this.positionInside(opts.index);
|
|
1200
1200
|
} else if (opts.word) {
|
|
1201
|
-
let
|
|
1202
|
-
|
|
1203
|
-
|
|
1201
|
+
let inputString = ('document' in this.source.input)
|
|
1202
|
+
? this.source.input.document
|
|
1203
|
+
: this.source.input.css;
|
|
1204
|
+
let stringRepresentation = inputString.slice(
|
|
1205
|
+
sourceOffset(inputString, this.source.start),
|
|
1206
|
+
sourceOffset(inputString, this.source.end)
|
|
1204
1207
|
);
|
|
1205
1208
|
let index = stringRepresentation.indexOf(opts.word);
|
|
1206
1209
|
if (index !== -1) pos = this.positionInside(index);
|
|
@@ -1211,11 +1214,14 @@ function requireNode$1 () {
|
|
|
1211
1214
|
positionInside(index) {
|
|
1212
1215
|
let column = this.source.start.column;
|
|
1213
1216
|
let line = this.source.start.line;
|
|
1214
|
-
let
|
|
1217
|
+
let inputString = ('document' in this.source.input)
|
|
1218
|
+
? this.source.input.document
|
|
1219
|
+
: this.source.input.css;
|
|
1220
|
+
let offset = sourceOffset(inputString, this.source.start);
|
|
1215
1221
|
let end = offset + index;
|
|
1216
1222
|
|
|
1217
1223
|
for (let i = offset; i < end; i++) {
|
|
1218
|
-
if (
|
|
1224
|
+
if (inputString[i] === '\n') {
|
|
1219
1225
|
column = 1;
|
|
1220
1226
|
line += 1;
|
|
1221
1227
|
} else {
|
|
@@ -1248,9 +1254,12 @@ function requireNode$1 () {
|
|
|
1248
1254
|
};
|
|
1249
1255
|
|
|
1250
1256
|
if (opts.word) {
|
|
1251
|
-
let
|
|
1252
|
-
|
|
1253
|
-
|
|
1257
|
+
let inputString = ('document' in this.source.input)
|
|
1258
|
+
? this.source.input.document
|
|
1259
|
+
: this.source.input.css;
|
|
1260
|
+
let stringRepresentation = inputString.slice(
|
|
1261
|
+
sourceOffset(inputString, this.source.start),
|
|
1262
|
+
sourceOffset(inputString, this.source.end)
|
|
1254
1263
|
);
|
|
1255
1264
|
let index = stringRepresentation.indexOf(opts.word);
|
|
1256
1265
|
if (index !== -1) {
|
|
@@ -2232,6 +2241,9 @@ function requireInput () {
|
|
|
2232
2241
|
this.hasBOM = false;
|
|
2233
2242
|
}
|
|
2234
2243
|
|
|
2244
|
+
this.document = this.css;
|
|
2245
|
+
if (opts.document) this.document = opts.document.toString();
|
|
2246
|
+
|
|
2235
2247
|
if (opts.from) {
|
|
2236
2248
|
if (
|
|
2237
2249
|
!pathAvailable ||
|
|
@@ -4832,7 +4844,7 @@ function requireProcessor () {
|
|
|
4832
4844
|
|
|
4833
4845
|
class Processor {
|
|
4834
4846
|
constructor(plugins = []) {
|
|
4835
|
-
this.version = '8.
|
|
4847
|
+
this.version = '8.5.1';
|
|
4836
4848
|
this.plugins = this.normalize(plugins);
|
|
4837
4849
|
}
|
|
4838
4850
|
|