@angular/ssr 22.0.0-next.0 → 22.0.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": "22.0.0-next.
|
|
3
|
+
"version": "22.0.0-next.1",
|
|
4
4
|
"description": "Angular server side rendering utilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@angular-devkit/schematics": "workspace:*",
|
|
32
|
-
"@angular/common": "22.0.0-next.
|
|
33
|
-
"@angular/compiler": "22.0.0-next.
|
|
34
|
-
"@angular/core": "22.0.0-next.
|
|
35
|
-
"@angular/platform-browser": "22.0.0-next.
|
|
36
|
-
"@angular/platform-server": "22.0.0-next.
|
|
37
|
-
"@angular/router": "22.0.0-next.
|
|
32
|
+
"@angular/common": "22.0.0-next.1",
|
|
33
|
+
"@angular/compiler": "22.0.0-next.1",
|
|
34
|
+
"@angular/core": "22.0.0-next.1",
|
|
35
|
+
"@angular/platform-browser": "22.0.0-next.1",
|
|
36
|
+
"@angular/platform-server": "22.0.0-next.1",
|
|
37
|
+
"@angular/router": "22.0.0-next.1",
|
|
38
38
|
"@schematics/angular": "workspace:*",
|
|
39
39
|
"beasties": "0.4.1"
|
|
40
40
|
},
|
|
@@ -2807,7 +2807,15 @@ function requireMapGenerator () {
|
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
2809
2809
|
} else if (this.css) {
|
|
2810
|
-
|
|
2810
|
+
let startIndex;
|
|
2811
|
+
while ((startIndex = this.css.lastIndexOf('/*#')) !== -1) {
|
|
2812
|
+
let endIndex = this.css.indexOf('*/', startIndex + 3);
|
|
2813
|
+
if (endIndex === -1) break
|
|
2814
|
+
while (startIndex > 0 && this.css[startIndex - 1] === '\n') {
|
|
2815
|
+
startIndex--;
|
|
2816
|
+
}
|
|
2817
|
+
this.css = this.css.slice(0, startIndex) + this.css.slice(endIndex + 2);
|
|
2818
|
+
}
|
|
2811
2819
|
}
|
|
2812
2820
|
}
|
|
2813
2821
|
|
|
@@ -3558,7 +3566,7 @@ function requireParser () {
|
|
|
3558
3566
|
node.source.end.offset++;
|
|
3559
3567
|
|
|
3560
3568
|
let text = token[1].slice(2, -2);
|
|
3561
|
-
if (
|
|
3569
|
+
if (!text.trim()) {
|
|
3562
3570
|
node.text = '';
|
|
3563
3571
|
node.raws.left = text;
|
|
3564
3572
|
node.raws.right = '';
|
|
@@ -4791,10 +4799,9 @@ function requireNoWorkResult () {
|
|
|
4791
4799
|
this._css = css;
|
|
4792
4800
|
this._opts = opts;
|
|
4793
4801
|
this._map = undefined;
|
|
4794
|
-
let root;
|
|
4795
4802
|
|
|
4796
4803
|
let str = stringify;
|
|
4797
|
-
this.result = new Result(this._processor,
|
|
4804
|
+
this.result = new Result(this._processor, undefined, this._opts);
|
|
4798
4805
|
this.result.css = css;
|
|
4799
4806
|
|
|
4800
4807
|
let self = this;
|
|
@@ -4804,7 +4811,7 @@ function requireNoWorkResult () {
|
|
|
4804
4811
|
}
|
|
4805
4812
|
});
|
|
4806
4813
|
|
|
4807
|
-
let map = new MapGenerator(str,
|
|
4814
|
+
let map = new MapGenerator(str, undefined, this._opts, css);
|
|
4808
4815
|
if (map.isMap()) {
|
|
4809
4816
|
let [generatedCSS, generatedMap] = map.generate();
|
|
4810
4817
|
if (generatedCSS) {
|
|
@@ -4879,7 +4886,7 @@ function requireProcessor () {
|
|
|
4879
4886
|
|
|
4880
4887
|
class Processor {
|
|
4881
4888
|
constructor(plugins = []) {
|
|
4882
|
-
this.version = '8.5.
|
|
4889
|
+
this.version = '8.5.8';
|
|
4883
4890
|
this.plugins = this.normalize(plugins);
|
|
4884
4891
|
}
|
|
4885
4892
|
|