@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/ssr",
3
- "version": "19.1.6",
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/common": "19.1.0-rc.0",
32
- "@angular/compiler": "19.1.0-rc.0",
33
- "@angular/core": "19.1.0-rc.0",
34
- "@angular/platform-browser": "19.1.0-rc.0",
35
- "@angular/platform-server": "19.1.0-rc.0",
36
- "@angular/router": "19.1.0-rc.0",
37
- "@bazel/runfiles": "^5.8.1"
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 stringRepresentation = this.source.input.css.slice(
1202
- sourceOffset(this.source.input.css, this.source.start),
1203
- sourceOffset(this.source.input.css, this.source.end)
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 offset = sourceOffset(this.source.input.css, this.source.start);
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 (this.source.input.css[i] === '\n') {
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 stringRepresentation = this.source.input.css.slice(
1252
- sourceOffset(this.source.input.css, this.source.start),
1253
- sourceOffset(this.source.input.css, this.source.end)
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.4.49';
4847
+ this.version = '8.5.1';
4836
4848
  this.plugins = this.normalize(plugins);
4837
4849
  }
4838
4850