@twilio/flex-dev-utils 5.2.1-alpha.202210071249 → 5.2.1-alpha.202210101206
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,6 +41,7 @@ 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");
|
|
44
45
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
45
46
|
var ora = null;
|
|
46
47
|
/* istanbul ignore next */
|
|
@@ -89,8 +90,26 @@ exports._getSpinner = _getSpinner;
|
|
|
89
90
|
var progress = function (title, action, disabled) {
|
|
90
91
|
if (disabled === void 0) { disabled = flex_plugins_utils_env_1.default.isQuiet(); }
|
|
91
92
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
93
|
+
var spinner, response, e_1;
|
|
92
94
|
return __generator(this, function (_a) {
|
|
93
|
-
|
|
95
|
+
switch (_a.label) {
|
|
96
|
+
case 0:
|
|
97
|
+
spinner = exports._getSpinner(logger_1.logger.markdown(title) || '', disabled);
|
|
98
|
+
_a.label = 1;
|
|
99
|
+
case 1:
|
|
100
|
+
_a.trys.push([1, 3, , 4]);
|
|
101
|
+
spinner.start();
|
|
102
|
+
return [4 /*yield*/, action()];
|
|
103
|
+
case 2:
|
|
104
|
+
response = _a.sent();
|
|
105
|
+
spinner.succeed();
|
|
106
|
+
return [2 /*return*/, response];
|
|
107
|
+
case 3:
|
|
108
|
+
e_1 = _a.sent();
|
|
109
|
+
spinner.fail(e_1.message);
|
|
110
|
+
throw e_1;
|
|
111
|
+
case 4: return [2 /*return*/];
|
|
112
|
+
}
|
|
94
113
|
});
|
|
95
114
|
});
|
|
96
115
|
};
|
|
@@ -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;AAEjD,uCAAsC;AAetC,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;;;;;;oBACtF,OAAO,GAAG,mBAAW,CAAC,eAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,QAAQ,CAAC,CAAC;;;;oBAGlE,OAAO,CAAC,KAAK,EAAE,CAAC;oBACC,qBAAM,MAAM,EAAE,EAAA;;oBAAzB,QAAQ,GAAG,SAAc;oBAC/B,OAAO,CAAC,OAAO,EAAE,CAAC;oBAElB,sBAAO,QAAQ,EAAC;;;oBAEhB,OAAO,CAAC,IAAI,CAAC,GAAC,CAAC,OAAO,CAAC,CAAC;oBAExB,MAAM,GAAC,CAAC;;;;;CAEX,CAAC;AAdW,QAAA,QAAQ,YAcnB;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.202210101206",
|
|
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.202210101206",
|
|
38
|
+
"@twilio/flex-plugins-utils-exception": "5.2.1-alpha.202210101206",
|
|
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": "a8f1e82e8fc2111d7963c2fb5df6a959feadae45"
|
|
96
96
|
}
|