@dxos/async
Advanced tools
Comparing version 2.19.10-dev.957cba98 to 2.19.10-dev.9987f7cd
@@ -7,2 +7,3 @@ "use strict"; | ||
exports.Event = void 0; | ||
const debug_1 = require("@dxos/debug"); | ||
/** | ||
@@ -240,5 +241,5 @@ * An EventEmitter variant that does not do event multiplexing and respresents a single event. | ||
} | ||
catch (err) { | ||
// Throw an unhandled rejection. | ||
void Promise.reject(err); | ||
catch (error) { | ||
// Stop error propagation. | ||
(0, debug_1.throwUnhandledRejection)(error); | ||
} | ||
@@ -245,0 +246,0 @@ } |
{ | ||
"name": "@dxos/async", | ||
"version": "2.19.10-dev.957cba98", | ||
"version": "2.19.10-dev.9987f7cd", | ||
"description": "Async utils.", | ||
@@ -21,3 +21,3 @@ "bugs": { | ||
"dependencies": { | ||
"@dxos/debug": "2.19.10-dev.957cba98" | ||
"@dxos/debug": "2.19.10-dev.9987f7cd" | ||
}, | ||
@@ -24,0 +24,0 @@ "devDependencies": { |
@@ -5,2 +5,4 @@ // | ||
import { throwUnhandledRejection } from '@dxos/debug'; | ||
// TODO(burdon): Rename (don't have both "event" and "events" files). Deprecate "events"? | ||
@@ -280,5 +282,5 @@ | ||
listener(data); | ||
} catch (err) { | ||
// Throw an unhandled rejection. | ||
void Promise.reject(err); | ||
} catch (error: any) { | ||
// Stop error propagation. | ||
throwUnhandledRejection(error); | ||
} | ||
@@ -285,0 +287,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
122641
2166
+ Added@dxos/debug@2.19.10-dev.9987f7cd(transitive)
- Removed@dxos/debug@2.19.10-dev.957cba98(transitive)