From 93360d6b78a34172d65307c930473e203128b4ae Mon Sep 17 00:00:00 2001 From: David Newell Date: Mon, 29 Jul 2024 09:53:07 +0100 Subject: [PATCH] fix: Array.from override (#1322) --- patches/rrweb@2.0.0-alpha.13.patch | 11 ++++++++++- pnpm-lock.yaml | 6 +++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/patches/rrweb@2.0.0-alpha.13.patch b/patches/rrweb@2.0.0-alpha.13.patch index ae132c0a1..0d2e3558c 100644 --- a/patches/rrweb@2.0.0-alpha.13.patch +++ b/patches/rrweb@2.0.0-alpha.13.patch @@ -224,9 +224,18 @@ index da2c103fe6b1408a5996f0eb3bf047571e434cc2..f5b060c7e0728a3e2c6cf62b01d97282 }, [bitmap]); })); diff --git a/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js b/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js -index 0fc7d4bcafc9be822347f9437658478fd77d9972..5dcd1dcbd5380567110378269f3bc8d7b7ca6440 100644 +index 0fc7d4bcafc9be822347f9437658478fd77d9972..bb4114b638b7d1173ef50b639a58de7d707c474f 100644 --- a/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js +++ b/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js +@@ -48,7 +48,7 @@ function stringifyStylesheet(s) { + try { + const rules = s.rules || s.cssRules; + return rules +- ? fixBrowserCompatibilityIssuesInCSS(Array.from(rules, stringifyRule).join('')) ++ ? fixBrowserCompatibilityIssuesInCSS(Array.from(rules).map(stringifyRule).join('')) + : null; + } + catch (error) { @@ -641,9 +641,18 @@ function serializeElementNode(n, options) { } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 41803cdb6..b5384b46a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,7 +6,7 @@ settings: patchedDependencies: rrweb@2.0.0-alpha.13: - hash: zfkdpmdytjgvxaxif5jxg5ibpy + hash: hd3nuwqin7sbif7quehqsiwvzm path: patches/rrweb@2.0.0-alpha.13.patch dependencies: @@ -188,7 +188,7 @@ devDependencies: version: 5.12.0(rollup@4.9.6) rrweb: specifier: 2.0.0-alpha.13 - version: 2.0.0-alpha.13(patch_hash=zfkdpmdytjgvxaxif5jxg5ibpy) + version: 2.0.0-alpha.13(patch_hash=hd3nuwqin7sbif7quehqsiwvzm) rrweb-snapshot: specifier: 2.0.0-alpha.13 version: 2.0.0-alpha.13 @@ -9312,7 +9312,7 @@ packages: resolution: {integrity: sha512-slbhNBCYjxLGCeH95a67ECCy5a22nloXp1F5wF7DCzUNw80FN7tF9Lef1sRGLNo32g3mNqTc2sWLATlKejMxYw==} dev: true - /rrweb@2.0.0-alpha.13(patch_hash=zfkdpmdytjgvxaxif5jxg5ibpy): + /rrweb@2.0.0-alpha.13(patch_hash=hd3nuwqin7sbif7quehqsiwvzm): resolution: {integrity: sha512-a8GXOCnzWHNaVZPa7hsrLZtNZ3CGjiL+YrkpLo0TfmxGLhjNZbWY2r7pE06p+FcjFNlgUVTmFrSJbK3kO7yxvw==} dependencies: '@rrweb/types': 2.0.0-alpha.13