| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.wrapAction = exports.ENV_PATHS = void 0; | |
| const tslib_1 = require("tslib"); | |
| const env_paths_1 = tslib_1.__importDefault(require("env-paths")); | |
| const errors_1 = require("../errors"); | |
| const log_1 = require("../log"); | |
| exports.ENV_PATHS = (0, env_paths_1.default)('capacitor', { suffix: '' }); | |
| function wrapAction(action) { | |
| return async (...args) => { | |
| try { | |
| await action(...args); | |
| } | |
| catch (e) { | |
| if ((0, errors_1.isFatal)(e)) { | |
| process.exitCode = e.exitCode; | |
| log_1.logger.error(e.message); | |
| } | |
| else { | |
| throw e; | |
| } | |
| } | |
| }; | |
| } | |
| exports.wrapAction = wrapAction; | |
Xet Storage Details
- Size:
- 777 Bytes
- Xet hash:
- 8050b9e61adb78fdb2c246a60bff1cb252537dc89c1d7f42780832c003b4dc4f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.