@vzn/vx 0.0.588 → 0.0.589

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": "@vzn/vx",
3
- "version": "0.0.588",
3
+ "version": "0.0.589",
4
4
  "description": "The fastest task runner and build cache for JavaScript monorepos.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -21,10 +21,10 @@
21
21
  "node": ">=18"
22
22
  },
23
23
  "optionalDependencies": {
24
- "@vzn/vx-linux-x64": "0.0.588",
25
- "@vzn/vx-linux-arm64": "0.0.588",
26
- "@vzn/vx-darwin-x64": "0.0.588",
27
- "@vzn/vx-darwin-arm64": "0.0.588"
24
+ "@vzn/vx-linux-x64": "0.0.589",
25
+ "@vzn/vx-linux-arm64": "0.0.589",
26
+ "@vzn/vx-darwin-x64": "0.0.589",
27
+ "@vzn/vx-darwin-arm64": "0.0.589"
28
28
  },
29
29
  "dependencies": {
30
30
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
@@ -952,14 +952,9 @@ function assertSafeName(name: string): void {
952
952
  if (name.includes('//')) {
953
953
  throw new ArchiveSecurityError(`archive entry name has empty path component (unsafe): ${name}`)
954
954
  }
955
- // Windows-shaped paths are categorically unsafe to extract on POSIX
956
- // hosts (and vice versa): backslash separators, drive letters,
957
- // extended-length prefixes.
958
- if (name.includes('\\')) {
959
- throw new ArchiveSecurityError(
960
- `archive entry uses backslash separators (windows-unsafe): ${name}`,
961
- )
962
- }
955
+ // No backslash refusal: vx runs on Linux and macOS (Windows through WSL),
956
+ // where it is a name character, and the save scans its own artifact with
957
+ // these checks, so refusing one made `dist/back\slash` uncacheable.
963
958
  if (/^[A-Za-z]:[\\/]/.test(name)) {
964
959
  throw new ArchiveSecurityError(`archive entry has windows drive prefix (unsafe): ${name}`)
965
960
  }