@angular/ssr 19.2.0 → 19.2.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.2.0",
3
+ "version": "19.2.1",
4
4
  "description": "Angular server side rendering utilities",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -35,7 +35,6 @@
35
35
  "@angular/platform-browser": "19.2.0-rc.0",
36
36
  "@angular/platform-server": "19.2.0-rc.0",
37
37
  "@angular/router": "19.2.0-rc.0",
38
- "@bazel/runfiles": "^6.0.0",
39
38
  "@schematics/angular": "workspace:*"
40
39
  },
41
40
  "sideEffects": false,
@@ -1052,6 +1052,10 @@ function requireNode$1 () {
1052
1052
  }
1053
1053
 
1054
1054
  class Node {
1055
+ get proxyOf() {
1056
+ return this
1057
+ }
1058
+
1055
1059
  constructor(defaults = {}) {
1056
1060
  this.raws = {};
1057
1061
  this[isClean] = false;
@@ -1413,10 +1417,6 @@ function requireNode$1 () {
1413
1417
  for (let i in opts) data[i] = opts[i];
1414
1418
  return result.warn(text, data)
1415
1419
  }
1416
-
1417
- get proxyOf() {
1418
- return this
1419
- }
1420
1420
  }
1421
1421
 
1422
1422
  node = Node;
@@ -1455,6 +1455,10 @@ function requireDeclaration () {
1455
1455
  let Node = requireNode$1();
1456
1456
 
1457
1457
  class Declaration extends Node {
1458
+ get variable() {
1459
+ return this.prop.startsWith('--') || this.prop[0] === '$'
1460
+ }
1461
+
1458
1462
  constructor(defaults) {
1459
1463
  if (
1460
1464
  defaults &&
@@ -1466,10 +1470,6 @@ function requireDeclaration () {
1466
1470
  super(defaults);
1467
1471
  this.type = 'decl';
1468
1472
  }
1469
-
1470
- get variable() {
1471
- return this.prop.startsWith('--') || this.prop[0] === '$'
1472
- }
1473
1473
  }
1474
1474
 
1475
1475
  declaration = Declaration;
@@ -1509,6 +1509,16 @@ function requireContainer$1 () {
1509
1509
  }
1510
1510
 
1511
1511
  class Container extends Node {
1512
+ get first() {
1513
+ if (!this.proxyOf.nodes) return undefined
1514
+ return this.proxyOf.nodes[0]
1515
+ }
1516
+
1517
+ get last() {
1518
+ if (!this.proxyOf.nodes) return undefined
1519
+ return this.proxyOf.nodes[this.proxyOf.nodes.length - 1]
1520
+ }
1521
+
1512
1522
  append(...children) {
1513
1523
  for (let child of children) {
1514
1524
  let nodes = this.normalize(child, this.last);
@@ -1875,16 +1885,6 @@ function requireContainer$1 () {
1875
1885
  }
1876
1886
  })
1877
1887
  }
1878
-
1879
- get first() {
1880
- if (!this.proxyOf.nodes) return undefined
1881
- return this.proxyOf.nodes[0]
1882
- }
1883
-
1884
- get last() {
1885
- if (!this.proxyOf.nodes) return undefined
1886
- return this.proxyOf.nodes[this.proxyOf.nodes.length - 1]
1887
- }
1888
1888
  }
1889
1889
 
1890
1890
  Container.registerParse = dependant => {
@@ -2223,6 +2223,10 @@ function requireInput () {
2223
2223
  let pathAvailable = Boolean(resolve && isAbsolute);
2224
2224
 
2225
2225
  class Input {
2226
+ get from() {
2227
+ return this.file || this.id
2228
+ }
2229
+
2226
2230
  constructor(css, opts = {}) {
2227
2231
  if (
2228
2232
  css === null ||
@@ -2445,10 +2449,6 @@ function requireInput () {
2445
2449
  }
2446
2450
  return json
2447
2451
  }
2448
-
2449
- get from() {
2450
- return this.file || this.id
2451
- }
2452
2452
  }
2453
2453
 
2454
2454
  input = Input;
@@ -2606,12 +2606,6 @@ function requireRule () {
2606
2606
  let list = requireList();
2607
2607
 
2608
2608
  class Rule extends Container {
2609
- constructor(defaults) {
2610
- super(defaults);
2611
- this.type = 'rule';
2612
- if (!this.nodes) this.nodes = [];
2613
- }
2614
-
2615
2609
  get selectors() {
2616
2610
  return list.comma(this.selector)
2617
2611
  }
@@ -2621,6 +2615,12 @@ function requireRule () {
2621
2615
  let sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen');
2622
2616
  this.selector = values.join(sep);
2623
2617
  }
2618
+
2619
+ constructor(defaults) {
2620
+ super(defaults);
2621
+ this.type = 'rule';
2622
+ if (!this.nodes) this.nodes = [];
2623
+ }
2624
2624
  }
2625
2625
 
2626
2626
  rule = Rule;
@@ -3942,7 +3942,7 @@ function requireParser () {
3942
3942
 
3943
3943
  unknownWord(tokens) {
3944
3944
  throw this.input.error(
3945
- 'Unknown word',
3945
+ 'Unknown word ' + tokens[0][1],
3946
3946
  { offset: tokens[0][2] },
3947
3947
  { offset: tokens[0][2] + tokens[0][1].length }
3948
3948
  )
@@ -4066,6 +4066,10 @@ function requireResult () {
4066
4066
  let Warning = requireWarning();
4067
4067
 
4068
4068
  class Result {
4069
+ get content() {
4070
+ return this.css
4071
+ }
4072
+
4069
4073
  constructor(processor, root, opts) {
4070
4074
  this.processor = processor;
4071
4075
  this.messages = [];
@@ -4095,10 +4099,6 @@ function requireResult () {
4095
4099
  warnings() {
4096
4100
  return this.messages.filter(i => i.type === 'warning')
4097
4101
  }
4098
-
4099
- get content() {
4100
- return this.css
4101
- }
4102
4102
  }
4103
4103
 
4104
4104
  result = Result;
@@ -4240,6 +4240,38 @@ function requireLazyResult () {
4240
4240
  let postcss = {};
4241
4241
 
4242
4242
  class LazyResult {
4243
+ get content() {
4244
+ return this.stringify().content
4245
+ }
4246
+
4247
+ get css() {
4248
+ return this.stringify().css
4249
+ }
4250
+
4251
+ get map() {
4252
+ return this.stringify().map
4253
+ }
4254
+
4255
+ get messages() {
4256
+ return this.sync().messages
4257
+ }
4258
+
4259
+ get opts() {
4260
+ return this.result.opts
4261
+ }
4262
+
4263
+ get processor() {
4264
+ return this.result.processor
4265
+ }
4266
+
4267
+ get root() {
4268
+ return this.sync().root
4269
+ }
4270
+
4271
+ get [Symbol.toStringTag]() {
4272
+ return 'LazyResult'
4273
+ }
4274
+
4243
4275
  constructor(processor, css, opts) {
4244
4276
  this.stringified = false;
4245
4277
  this.processed = false;
@@ -4640,38 +4672,6 @@ function requireLazyResult () {
4640
4672
  warnings() {
4641
4673
  return this.sync().warnings()
4642
4674
  }
4643
-
4644
- get content() {
4645
- return this.stringify().content
4646
- }
4647
-
4648
- get css() {
4649
- return this.stringify().css
4650
- }
4651
-
4652
- get map() {
4653
- return this.stringify().map
4654
- }
4655
-
4656
- get messages() {
4657
- return this.sync().messages
4658
- }
4659
-
4660
- get opts() {
4661
- return this.result.opts
4662
- }
4663
-
4664
- get processor() {
4665
- return this.result.processor
4666
- }
4667
-
4668
- get root() {
4669
- return this.sync().root
4670
- }
4671
-
4672
- get [Symbol.toStringTag]() {
4673
- return 'LazyResult'
4674
- }
4675
4675
  }
4676
4676
 
4677
4677
  LazyResult.registerPostcss = dependant => {
@@ -4700,6 +4700,56 @@ function requireNoWorkResult () {
4700
4700
  let warnOnce = requireWarnOnce();
4701
4701
 
4702
4702
  class NoWorkResult {
4703
+ get content() {
4704
+ return this.result.css
4705
+ }
4706
+
4707
+ get css() {
4708
+ return this.result.css
4709
+ }
4710
+
4711
+ get map() {
4712
+ return this.result.map
4713
+ }
4714
+
4715
+ get messages() {
4716
+ return []
4717
+ }
4718
+
4719
+ get opts() {
4720
+ return this.result.opts
4721
+ }
4722
+
4723
+ get processor() {
4724
+ return this.result.processor
4725
+ }
4726
+
4727
+ get root() {
4728
+ if (this._root) {
4729
+ return this._root
4730
+ }
4731
+
4732
+ let root;
4733
+ let parser = parse;
4734
+
4735
+ try {
4736
+ root = parser(this._css, this._opts);
4737
+ } catch (error) {
4738
+ this.error = error;
4739
+ }
4740
+
4741
+ if (this.error) {
4742
+ throw this.error
4743
+ } else {
4744
+ this._root = root;
4745
+ return root
4746
+ }
4747
+ }
4748
+
4749
+ get [Symbol.toStringTag]() {
4750
+ return 'NoWorkResult'
4751
+ }
4752
+
4703
4753
  constructor(processor, css, opts) {
4704
4754
  css = css.toString();
4705
4755
  this.stringified = false;
@@ -4775,56 +4825,6 @@ function requireNoWorkResult () {
4775
4825
  warnings() {
4776
4826
  return []
4777
4827
  }
4778
-
4779
- get content() {
4780
- return this.result.css
4781
- }
4782
-
4783
- get css() {
4784
- return this.result.css
4785
- }
4786
-
4787
- get map() {
4788
- return this.result.map
4789
- }
4790
-
4791
- get messages() {
4792
- return []
4793
- }
4794
-
4795
- get opts() {
4796
- return this.result.opts
4797
- }
4798
-
4799
- get processor() {
4800
- return this.result.processor
4801
- }
4802
-
4803
- get root() {
4804
- if (this._root) {
4805
- return this._root
4806
- }
4807
-
4808
- let root;
4809
- let parser = parse;
4810
-
4811
- try {
4812
- root = parser(this._css, this._opts);
4813
- } catch (error) {
4814
- this.error = error;
4815
- }
4816
-
4817
- if (this.error) {
4818
- throw this.error
4819
- } else {
4820
- this._root = root;
4821
- return root
4822
- }
4823
- }
4824
-
4825
- get [Symbol.toStringTag]() {
4826
- return 'NoWorkResult'
4827
- }
4828
4828
  }
4829
4829
 
4830
4830
  noWorkResult = NoWorkResult;
@@ -4846,7 +4846,7 @@ function requireProcessor () {
4846
4846
 
4847
4847
  class Processor {
4848
4848
  constructor(plugins = []) {
4849
- this.version = '8.5.2';
4849
+ this.version = '8.5.3';
4850
4850
  this.plugins = this.normalize(plugins);
4851
4851
  }
4852
4852