Buckets:
| import { config } from '../config'; | |
| var context = null; | |
| export function errorContext(cb) { | |
| if (config.useDeprecatedSynchronousErrorHandling) { | |
| var isRoot = !context; | |
| if (isRoot) { | |
| context = { errorThrown: false, error: null }; | |
| } | |
| cb(); | |
| if (isRoot) { | |
| var _a = context, errorThrown = _a.errorThrown, error = _a.error; | |
| context = null; | |
| if (errorThrown) { | |
| throw error; | |
| } | |
| } | |
| } | |
| else { | |
| cb(); | |
| } | |
| } | |
| export function captureError(err) { | |
| if (config.useDeprecatedSynchronousErrorHandling && context) { | |
| context.errorThrown = true; | |
| context.error = err; | |
| } | |
| } | |
| //# sourceMappingURL=errorContext.js.map |
Xet Storage Details
- Size:
- 750 Bytes
- Xet hash:
- b1cb3a37303e65ed97d3036bf2babe814dbab2b93159175dd1eac873df779ff4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.