@shopify/react-native-skia 2.3.4 → 2.3.5

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
@@ -8,7 +8,7 @@
8
8
  "setup-skia-web": "scripts/setup-canvaskit.js"
9
9
  },
10
10
  "title": "React Native Skia",
11
- "version": "2.3.4",
11
+ "version": "2.3.5",
12
12
  "skiaVersion": "m142",
13
13
  "description": "High-performance React Native Graphics using Skia",
14
14
  "main": "lib/module/index.js",
@@ -112,33 +112,14 @@ const downloadToFile = (url, destPath) => {
112
112
  });
113
113
  };
114
114
 
115
- // On Windows, convert paths to avoid tar misinterpreting paths like C:\path
116
- // as remote host connection specs (C: as hostname)
117
- const normalizePathForTar = (filePath) => {
118
- if (process.platform !== "win32") {
119
- return filePath;
120
- }
121
-
122
- // Convert backslashes to forward slashes
123
- let normalized = filePath.replace(/\\/g, "/");
124
-
125
- // Convert C:/path to /c/path for Git Bash tar compatibility
126
- normalized = normalized.replace(
127
- /^([A-Za-z]):\//,
128
- (_, drive) => `/${drive.toLowerCase()}/`
129
- );
130
-
131
- return normalized;
132
- };
133
-
134
115
  const extractTarGz = async (archivePath, destDir) => {
135
116
  fs.mkdirSync(destDir, { recursive: true });
136
117
 
137
118
  const args = [
138
119
  "-xzf",
139
- normalizePathForTar(archivePath),
120
+ archivePath,
140
121
  "-C",
141
- normalizePathForTar(destDir),
122
+ destDir,
142
123
  ];
143
124
  const candidates =
144
125
  process.platform === "win32"