expo-desktop 1.0.0-beta.2 → 1.0.0-beta.4

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.
@@ -136,10 +136,16 @@ async function npmPackAsync(packageName, cwd = undefined, ...props) {
136
136
  if (!results) {
137
137
  return null;
138
138
  }
139
+ const [packageNameWithoutVersion] = packageName.split("@");
139
140
  try {
140
141
  const json = JSON.parse(results);
142
+ // On macOS, on Node.js v24.14.0, npm v11.11.0, we get an array.
141
143
  if (Array.isArray(json) && json.every(isNpmPackageInfo)) {
142
144
  return json.map(sanitizeNpmPackageFilename);
145
+ // On Windows, on Node.js v26.8.1, npm v12.0.2, we get a record.
146
+ }
147
+ else if (isNpmPackageInfo(json[packageNameWithoutVersion])) {
148
+ return [sanitizeNpmPackageFilename(json[packageNameWithoutVersion])];
143
149
  }
144
150
  else {
145
151
  throw new Error(`Invalid response from npm: ${results}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-desktop",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0-beta.4",
4
4
  "description": "Best-effort desktop support for Expo",
5
5
  "keywords": [
6
6
  "android",
@@ -56,7 +56,6 @@
56
56
  "prompts": "^2.4.2",
57
57
  "resolve-from": "^5.0.0",
58
58
  "semver": "^7.6.0",
59
- "shescape": "^2.1.12",
60
59
  "toml": "^4.1.1"
61
60
  },
62
61
  "devDependencies": {