@angular/ssr 22.2.0-next.1 → 22.2.0-next.3

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.2.0-next.1",
3
+ "version": "22.2.0-next.3",
4
4
  "description": "Angular server side rendering utilities",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -37,12 +37,12 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@angular-devkit/schematics": "workspace:*",
40
- "@angular/common": "22.2.0-next.0",
41
- "@angular/compiler": "22.2.0-next.0",
42
- "@angular/core": "22.2.0-next.0",
43
- "@angular/platform-browser": "22.2.0-next.0",
44
- "@angular/platform-server": "22.2.0-next.0",
45
- "@angular/router": "22.2.0-next.0",
40
+ "@angular/common": "22.2.0-next.1",
41
+ "@angular/compiler": "22.2.0-next.1",
42
+ "@angular/core": "22.2.0-next.1",
43
+ "@angular/platform-browser": "22.2.0-next.1",
44
+ "@angular/platform-server": "22.2.0-next.1",
45
+ "@angular/router": "22.2.0-next.1",
46
46
  "@schematics/angular": "workspace:*",
47
47
  "beasties": "0.4.3"
48
48
  },
@@ -2265,10 +2265,20 @@ function requirePreviousMap () {
2265
2265
  if (hasRequiredPreviousMap) return previousMap;
2266
2266
  hasRequiredPreviousMap = 1;
2267
2267
 
2268
- let { existsSync, readFileSync } = require$$2;
2268
+ let { existsSync, readFileSync, realpathSync } = require$$2;
2269
2269
  let { dirname, isAbsolute, join, relative, sep } = require$$2;
2270
2270
  let { SourceMapConsumer, SourceMapGenerator } = require$$2;
2271
2271
 
2272
+ function realPath(path) {
2273
+ try {
2274
+ return realpathSync(path)
2275
+ } catch {
2276
+ // Missing or dangling: keep the literal path. The existsSync() check below
2277
+ // still gates the read, and a path that does not exist cannot escape.
2278
+ return path
2279
+ }
2280
+ }
2281
+
2272
2282
  function fromBase64(str) {
2273
2283
  if (Buffer) {
2274
2284
  return Buffer.from(str, 'base64').toString()
@@ -2354,7 +2364,9 @@ function requirePreviousMap () {
2354
2364
  if (!/\.map$/i.test(path)) return undefined
2355
2365
  if (!cssFile) return undefined
2356
2366
 
2357
- let rel = relative(dirname(cssFile), path);
2367
+ // Compare *resolved* paths: relative() is textual, so without this a
2368
+ // symlink at or below the CSS file's directory points the map outside it.
2369
+ let rel = relative(realPath(dirname(cssFile)), realPath(path));
2358
2370
  if (rel === '..' || rel.startsWith('..' + sep) || isAbsolute(rel)) {
2359
2371
  return undefined
2360
2372
  }
@@ -2822,7 +2834,7 @@ function requireList () {
2822
2834
  },
2823
2835
 
2824
2836
  split(string, separators, last) {
2825
- if (!string) return []
2837
+ if (typeof string !== 'string') return []
2826
2838
  let array = [];
2827
2839
  let current = '';
2828
2840
  let split = false;
@@ -5279,7 +5291,7 @@ function requireProcessor () {
5279
5291
 
5280
5292
  class Processor {
5281
5293
  constructor(plugins = []) {
5282
- this.version = '8.5.25';
5294
+ this.version = '8.5.26';
5283
5295
  this.plugins = this.normalize(plugins);
5284
5296
  }
5285
5297