@changesets/cli
Advanced tools
Comparing version 2.11.2 to 2.12.0
# @changesets/cli | ||
## 2.12.0 | ||
### Minor Changes | ||
- [`c6d38b5`](https://github.com/atlassian/changesets/commit/c6d38b579bdfddc22714c352c3459d04d1745326) [#469](https://github.com/atlassian/changesets/pull/469) Thanks [@camdub](https://github.com/camdub)! - Handle JSON errors for unpublished packages on the github package registry | ||
## 2.11.2 | ||
@@ -4,0 +10,0 @@ |
@@ -627,3 +627,13 @@ 'use strict'; | ||
env: Object.assign({}, process.env, envOverride) | ||
}); | ||
}); // Github package registry returns empty string when calling npm info | ||
// for a non-existant package instead of a E404 | ||
if (result.stdout.toString() === "") { | ||
return { | ||
error: { | ||
code: "E404" | ||
} | ||
}; | ||
} | ||
return jsonParse(result.stdout.toString()); | ||
@@ -630,0 +640,0 @@ }); |
@@ -370,5 +370,10 @@ "use strict"; | ||
}; | ||
return jsonParse((await spawn__default.default("npm", [ "info", pkgName, "--json" ], { | ||
let result = await spawn__default.default("npm", [ "info", pkgName, "--json" ], { | ||
env: Object.assign({}, process.env, envOverride) | ||
})).stdout.toString()); | ||
}); | ||
return "" === result.stdout.toString() ? { | ||
error: { | ||
code: "E404" | ||
} | ||
} : jsonParse(result.stdout.toString()); | ||
})); | ||
@@ -375,0 +380,0 @@ } |
@@ -604,3 +604,13 @@ import meow from 'meow'; | ||
env: Object.assign({}, process.env, envOverride) | ||
}); | ||
}); // Github package registry returns empty string when calling npm info | ||
// for a non-existant package instead of a E404 | ||
if (result.stdout.toString() === "") { | ||
return { | ||
error: { | ||
code: "E404" | ||
} | ||
}; | ||
} | ||
return jsonParse(result.stdout.toString()); | ||
@@ -607,0 +617,0 @@ }); |
{ | ||
"name": "@changesets/cli", | ||
"version": "2.11.2", | ||
"version": "2.12.0", | ||
"description": "Organise your package versioning and publishing to make both contributors and maintainers happy", | ||
@@ -5,0 +5,0 @@ "bin": { |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
200759
3118
33