@twilio/flex-dev-utils 5.2.1-alpha.202210071214 → 5.2.1-alpha.202210071249
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.
|
@@ -41,7 +41,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.progress = exports._getSpinner = void 0;
|
|
43
43
|
var flex_plugins_utils_env_1 = __importDefault(require("@twilio/flex-plugins-utils-env"));
|
|
44
|
-
var logger_1 = require("../../logger");
|
|
45
44
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
46
45
|
var ora = null;
|
|
47
46
|
/* istanbul ignore next */
|
|
@@ -90,33 +89,8 @@ exports._getSpinner = _getSpinner;
|
|
|
90
89
|
var progress = function (title, action, disabled) {
|
|
91
90
|
if (disabled === void 0) { disabled = flex_plugins_utils_env_1.default.isQuiet(); }
|
|
92
91
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
93
|
-
var text, spinner, response, e_1;
|
|
94
92
|
return __generator(this, function (_a) {
|
|
95
|
-
|
|
96
|
-
case 0:
|
|
97
|
-
text = '';
|
|
98
|
-
try {
|
|
99
|
-
text = logger_1.logger.markdown(title) || '';
|
|
100
|
-
}
|
|
101
|
-
catch (e) {
|
|
102
|
-
// Ignore error
|
|
103
|
-
}
|
|
104
|
-
spinner = exports._getSpinner(text, disabled);
|
|
105
|
-
_a.label = 1;
|
|
106
|
-
case 1:
|
|
107
|
-
_a.trys.push([1, 3, , 4]);
|
|
108
|
-
spinner.start();
|
|
109
|
-
return [4 /*yield*/, action()];
|
|
110
|
-
case 2:
|
|
111
|
-
response = _a.sent();
|
|
112
|
-
spinner.succeed();
|
|
113
|
-
return [2 /*return*/, response];
|
|
114
|
-
case 3:
|
|
115
|
-
e_1 = _a.sent();
|
|
116
|
-
spinner.fail(e_1.message);
|
|
117
|
-
throw e_1;
|
|
118
|
-
case 4: return [2 /*return*/];
|
|
119
|
-
}
|
|
93
|
+
return [2 /*return*/, action()];
|
|
120
94
|
});
|
|
121
95
|
});
|
|
122
96
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../../src/progress/lib/progress.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0FAAiD;
|
|
1
|
+
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../../src/progress/lib/progress.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0FAAiD;AAiBjD,8DAA8D;AAC9D,IAAI,GAAG,GAAQ,IAAI,CAAC;AACpB,0BAA0B;AAC1B,IAAM,OAAO,GAAG;IACd,IAAI,GAAG,EAAE;QACP,OAAO,GAAG,CAAC;KACZ;IAED,iFAAiF;IACjF,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAErB,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAEF;;;;GAIG;AACH,0BAA0B;AACnB,IAAM,WAAW,GAAG,UAAC,IAAY,EAAE,QAAiB;IACzD,IAAI,QAAQ,EAAE;QACZ,OAAO;YACL,KAAK,EAAE;gBACL,QAAQ;YACV,CAAC;YACD,OAAO,EAAE;gBACP,QAAQ;YACV,CAAC;YACD,IAAI,EAAE;gBACJ,QAAQ;YACV,CAAC;SACF,CAAC;KACH;IAED,IAAM,OAAO,GAAe,EAAE,IAAI,MAAA,EAAE,CAAC;IACrC,IAAI,gCAAG,CAAC,OAAO,EAAE,IAAI,gCAAG,CAAC,OAAO,EAAE,EAAE;QAClC,OAAO,CAAC,SAAS,GAAG,KAAK,CAAC;KAC3B;IAED,OAAO,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC;AAC5B,CAAC,CAAC;AArBW,QAAA,WAAW,eAqBtB;AAEF;;;;;;GAMG;AACI,IAAM,QAAQ,GAAG,UAAU,KAAa,EAAE,MAAmB,EAAE,QAAwB;IAAxB,yBAAA,EAAA,WAAW,gCAAG,CAAC,OAAO,EAAE;;;YAC5F,sBAAO,MAAM,EAAE,EAAC;;;CACjB,CAAC;AAFW,QAAA,QAAQ,YAEnB;AAEF,kBAAe,gBAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twilio/flex-dev-utils",
|
|
3
|
-
"version": "5.2.1-alpha.
|
|
3
|
+
"version": "5.2.1-alpha.202210071249",
|
|
4
4
|
"description": "Common development utility for creating a Flex plugin",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flex",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@k88/pipe-compose": "^2.5.0",
|
|
37
|
-
"@twilio/flex-plugins-utils-env": "5.2.1-alpha.
|
|
38
|
-
"@twilio/flex-plugins-utils-exception": "5.2.1-alpha.
|
|
37
|
+
"@twilio/flex-plugins-utils-env": "5.2.1-alpha.202210071249",
|
|
38
|
+
"@twilio/flex-plugins-utils-exception": "5.2.1-alpha.202210071249",
|
|
39
39
|
"address": "^1.1.2",
|
|
40
40
|
"app-module-path": "^2.2.0",
|
|
41
41
|
"axios": "^0.24.0",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"publishConfig": {
|
|
93
93
|
"access": "public"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "349c288726c639c2fd53eab8ba54fdcb1976d84f"
|
|
96
96
|
}
|