@metamask/snaps-controllers 14.2.1 → 14.2.2
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/CHANGELOG.md +9 -1
- package/dist/snaps/SnapController.cjs +4 -1
- package/dist/snaps/SnapController.cjs.map +1 -1
- package/dist/snaps/SnapController.d.cts.map +1 -1
- package/dist/snaps/SnapController.d.mts.map +1 -1
- package/dist/snaps/SnapController.mjs +4 -1
- package/dist/snaps/SnapController.mjs.map +1 -1
- package/dist/snaps/location/npm.cjs +2 -3
- package/dist/snaps/location/npm.cjs.map +1 -1
- package/dist/snaps/location/npm.d.cts.map +1 -1
- package/dist/snaps/location/npm.d.mts.map +1 -1
- package/dist/snaps/location/npm.mjs +2 -3
- package/dist/snaps/location/npm.mjs.map +1 -1
- package/package.json +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [14.2.2]
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Throw a different error when the NPM registry returns 404 while fetching tarballs ([#3602](https://github.com/MetaMask/snaps/pull/3602))
|
|
15
|
+
- Prevent logging multiple errors as the cause when a Snap crashes due to an unhandled error ([#3569](https://github.com/MetaMask/snaps/pull/3569))
|
|
16
|
+
|
|
10
17
|
## [14.2.1]
|
|
11
18
|
|
|
12
19
|
### Fixed
|
|
@@ -881,7 +888,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
881
888
|
- The version of the package no longer needs to match the version of all other
|
|
882
889
|
MetaMask Snaps packages.
|
|
883
890
|
|
|
884
|
-
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@14.2.
|
|
891
|
+
[Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@14.2.2...HEAD
|
|
892
|
+
[14.2.2]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@14.2.1...@metamask/snaps-controllers@14.2.2
|
|
885
893
|
[14.2.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@14.2.0...@metamask/snaps-controllers@14.2.1
|
|
886
894
|
[14.2.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@14.1.0...@metamask/snaps-controllers@14.2.0
|
|
887
895
|
[14.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-controllers@14.0.2...@metamask/snaps-controllers@14.1.0
|
|
@@ -1853,8 +1853,11 @@ class SnapController extends base_controller_1.BaseController {
|
|
|
1853
1853
|
// We flag the RPC request as finished early since termination may affect pending requests
|
|
1854
1854
|
this.#recordSnapRpcRequestFinish(snapId, transformedRequest.id, handlerType, origin, false);
|
|
1855
1855
|
const [jsonRpcError, handled] = (0, snaps_utils_1.unwrapError)(error);
|
|
1856
|
+
const stopping = runtime.stopPromise !== null || !this.isRunning(snapId);
|
|
1856
1857
|
if (!handled) {
|
|
1857
|
-
(
|
|
1858
|
+
if (!stopping) {
|
|
1859
|
+
(0, snaps_utils_1.logError)(`"${snapId}" crashed due to an unhandled error:`, jsonRpcError);
|
|
1860
|
+
}
|
|
1858
1861
|
await this.stopSnap(snapId, snaps_utils_1.SnapStatusEvents.Crash);
|
|
1859
1862
|
}
|
|
1860
1863
|
throw jsonRpcError;
|