@beecode/msh-cli 1.2.2 → 2.0.0

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.
Files changed (210) hide show
  1. package/README.md +2 -2
  2. package/bin/msh.js +1 -1
  3. package/dist/app/cli-app.d.ts +5 -0
  4. package/dist/app/cli-app.d.ts.map +1 -0
  5. package/dist/app/cli-app.js +5 -9
  6. package/dist/app/http-server-app.d.ts +5 -0
  7. package/dist/app/http-server-app.d.ts.map +1 -0
  8. package/dist/app/http-server-app.js +3 -7
  9. package/dist/app/init/parse-and-route-args.d.ts +8 -0
  10. package/dist/app/init/parse-and-route-args.d.ts.map +1 -0
  11. package/dist/app/init/parse-and-route-args.js +5 -9
  12. package/dist/app/tui-app.d.ts +5 -0
  13. package/dist/app/tui-app.d.ts.map +1 -0
  14. package/dist/app/tui-app.js +3 -7
  15. package/dist/controller/cli-menu/main-menu.d.ts +6 -0
  16. package/dist/controller/cli-menu/main-menu.d.ts.map +1 -0
  17. package/dist/controller/cli-menu/main-menu.js +11 -11
  18. package/dist/controller/yargs-router/cli-router.d.ts +14 -0
  19. package/dist/controller/yargs-router/cli-router.d.ts.map +1 -0
  20. package/dist/controller/yargs-router/cli-router.js +34 -29
  21. package/dist/controller/yargs-router/git-router.d.ts +10 -0
  22. package/dist/controller/yargs-router/git-router.d.ts.map +1 -0
  23. package/dist/controller/yargs-router/git-router.js +51 -49
  24. package/dist/controller/yargs-router/npm-router.d.ts +7 -0
  25. package/dist/controller/yargs-router/npm-router.d.ts.map +1 -0
  26. package/dist/controller/yargs-router/npm-router.js +25 -26
  27. package/dist/dal/shell-dal.d.ts +12 -0
  28. package/dist/dal/shell-dal.d.ts.map +1 -0
  29. package/dist/dal/shell-dal.js +12 -18
  30. package/dist/index-cli.d.ts +2 -0
  31. package/dist/index-cli.d.ts.map +1 -0
  32. package/dist/index-cli.js +8 -11
  33. package/dist/index-init.d.ts +2 -0
  34. package/dist/index-init.d.ts.map +1 -0
  35. package/dist/index-init.js +7 -12
  36. package/dist/index-jest-setup.d.ts +6 -0
  37. package/dist/index-jest-setup.d.ts.map +1 -0
  38. package/dist/index-jest-setup.js +4 -0
  39. package/dist/index-server.d.ts +2 -0
  40. package/dist/index-server.d.ts.map +1 -0
  41. package/dist/index-server.js +6 -9
  42. package/dist/index-terminal-ui.d.ts +2 -0
  43. package/dist/index-terminal-ui.d.ts.map +1 -0
  44. package/dist/index-terminal-ui.js +6 -9
  45. package/dist/model/command/init-config.d.ts +5 -0
  46. package/dist/model/command/init-config.d.ts.map +1 -0
  47. package/dist/model/command/init-config.js +4 -8
  48. package/dist/model/command/interfaces.d.ts +12 -0
  49. package/dist/model/command/interfaces.d.ts.map +1 -0
  50. package/dist/model/command/interfaces.js +2 -3
  51. package/dist/model/command/project-command/git-clone-project-command.d.ts +15 -0
  52. package/dist/model/command/project-command/git-clone-project-command.d.ts.map +1 -0
  53. package/dist/model/command/project-command/git-clone-project-command.js +9 -12
  54. package/dist/model/command/project-command/git-simple-project-command.d.ts +16 -0
  55. package/dist/model/command/project-command/git-simple-project-command.d.ts.map +1 -0
  56. package/dist/model/command/project-command/git-simple-project-command.js +9 -13
  57. package/dist/model/command/project-command/git-tag-project-command.d.ts +12 -0
  58. package/dist/model/command/project-command/git-tag-project-command.d.ts.map +1 -0
  59. package/dist/model/command/project-command/git-tag-project-command.js +14 -12
  60. package/dist/model/command/project-command/npm-global-project-command.d.ts +21 -0
  61. package/dist/model/command/project-command/npm-global-project-command.d.ts.map +1 -0
  62. package/dist/model/command/project-command/npm-global-project-command.js +35 -37
  63. package/dist/model/command/project-command/npm-install-project-command.d.ts +9 -0
  64. package/dist/model/command/project-command/npm-install-project-command.d.ts.map +1 -0
  65. package/dist/model/command/project-command/npm-install-project-command.js +9 -16
  66. package/dist/model/command/project-command/project-command.d.ts +15 -0
  67. package/dist/model/command/project-command/project-command.d.ts.map +1 -0
  68. package/dist/model/command/project-command/project-command.js +7 -12
  69. package/dist/service/clear-service.d.ts +2 -0
  70. package/dist/service/clear-service.d.ts.map +1 -0
  71. package/dist/service/clear-service.js +4 -7
  72. package/dist/service/file-service.d.ts +7 -0
  73. package/dist/service/file-service.d.ts.map +1 -0
  74. package/dist/service/file-service.js +4 -7
  75. package/dist/service/init-config-service.d.ts +7 -0
  76. package/dist/service/init-config-service.d.ts.map +1 -0
  77. package/dist/service/init-config-service.js +13 -18
  78. package/dist/service/shell-service.d.ts +12 -0
  79. package/dist/service/shell-service.d.ts.map +1 -0
  80. package/dist/service/shell-service.js +29 -31
  81. package/dist/service/terminal-wrapper.d.ts +12 -0
  82. package/dist/service/terminal-wrapper.d.ts.map +1 -0
  83. package/dist/service/terminal-wrapper.js +6 -11
  84. package/dist/util/base-menu.d.ts +12 -0
  85. package/dist/util/base-menu.d.ts.map +1 -0
  86. package/dist/util/base-menu.js +20 -19
  87. package/dist/util/config.d.ts +21 -0
  88. package/dist/util/config.d.ts.map +1 -0
  89. package/dist/util/config.js +37 -41
  90. package/dist/util/constant.d.ts +5 -0
  91. package/dist/util/constant.d.ts.map +1 -0
  92. package/dist/util/constant.js +3 -6
  93. package/dist/util/logger.d.ts +3 -0
  94. package/dist/util/logger.d.ts.map +1 -0
  95. package/dist/util/logger.js +14 -13
  96. package/dist/util/object-util.d.ts +4 -0
  97. package/dist/util/object-util.d.ts.map +1 -0
  98. package/dist/util/object-util.js +3 -5
  99. package/dist/util/sub-menu.d.ts +8 -0
  100. package/dist/util/sub-menu.d.ts.map +1 -0
  101. package/dist/util/sub-menu.js +10 -11
  102. package/dist/util/update-notifier-util.d.ts +4 -0
  103. package/dist/util/update-notifier-util.d.ts.map +1 -0
  104. package/dist/util/update-notifier-util.js +5 -11
  105. package/lib/app/cli-app.d.ts +5 -0
  106. package/lib/app/cli-app.d.ts.map +1 -0
  107. package/lib/app/cli-app.js +29 -0
  108. package/lib/app/http-server-app.d.ts +5 -0
  109. package/lib/app/http-server-app.d.ts.map +1 -0
  110. package/lib/app/http-server-app.js +31 -0
  111. package/lib/app/init/parse-and-route-args.d.ts +8 -0
  112. package/lib/app/init/parse-and-route-args.d.ts.map +1 -0
  113. package/lib/app/init/parse-and-route-args.js +74 -0
  114. package/lib/app/tui-app.d.ts +5 -0
  115. package/lib/app/tui-app.d.ts.map +1 -0
  116. package/lib/app/tui-app.js +31 -0
  117. package/lib/controller/cli-menu/main-menu.d.ts +6 -0
  118. package/lib/controller/cli-menu/main-menu.d.ts.map +1 -0
  119. package/lib/controller/cli-menu/main-menu.js +74 -0
  120. package/lib/controller/yargs-router/cli-router.d.ts +14 -0
  121. package/lib/controller/yargs-router/cli-router.d.ts.map +1 -0
  122. package/lib/controller/yargs-router/cli-router.js +171 -0
  123. package/lib/controller/yargs-router/git-router.d.ts +10 -0
  124. package/lib/controller/yargs-router/git-router.d.ts.map +1 -0
  125. package/lib/controller/yargs-router/git-router.js +207 -0
  126. package/lib/controller/yargs-router/npm-router.d.ts +7 -0
  127. package/lib/controller/yargs-router/npm-router.d.ts.map +1 -0
  128. package/lib/controller/yargs-router/npm-router.js +94 -0
  129. package/lib/dal/shell-dal.d.ts +12 -0
  130. package/lib/dal/shell-dal.d.ts.map +1 -0
  131. package/lib/dal/shell-dal.js +61 -0
  132. package/lib/index-cli.d.ts +2 -0
  133. package/lib/index-cli.d.ts.map +1 -0
  134. package/lib/index-cli.js +14 -0
  135. package/lib/index-init.d.ts +2 -0
  136. package/lib/index-init.d.ts.map +1 -0
  137. package/lib/index-init.js +16 -0
  138. package/lib/index-jest-setup.d.ts +6 -0
  139. package/lib/index-jest-setup.d.ts.map +1 -0
  140. package/lib/index-jest-setup.js +10 -0
  141. package/lib/index-server.d.ts +2 -0
  142. package/lib/index-server.d.ts.map +1 -0
  143. package/lib/index-server.js +9 -0
  144. package/lib/index-terminal-ui.d.ts +2 -0
  145. package/lib/index-terminal-ui.d.ts.map +1 -0
  146. package/lib/index-terminal-ui.js +9 -0
  147. package/lib/model/command/init-config.d.ts +5 -0
  148. package/lib/model/command/init-config.d.ts.map +1 -0
  149. package/lib/model/command/init-config.js +53 -0
  150. package/lib/model/command/interfaces.d.ts +12 -0
  151. package/lib/model/command/interfaces.d.ts.map +1 -0
  152. package/lib/model/command/interfaces.js +1 -0
  153. package/lib/model/command/project-command/git-clone-project-command.d.ts +15 -0
  154. package/lib/model/command/project-command/git-clone-project-command.d.ts.map +1 -0
  155. package/lib/model/command/project-command/git-clone-project-command.js +77 -0
  156. package/lib/model/command/project-command/git-simple-project-command.d.ts +16 -0
  157. package/lib/model/command/project-command/git-simple-project-command.d.ts.map +1 -0
  158. package/lib/model/command/project-command/git-simple-project-command.js +70 -0
  159. package/lib/model/command/project-command/git-tag-project-command.d.ts +12 -0
  160. package/lib/model/command/project-command/git-tag-project-command.d.ts.map +1 -0
  161. package/lib/model/command/project-command/git-tag-project-command.js +73 -0
  162. package/lib/model/command/project-command/npm-global-project-command.d.ts +21 -0
  163. package/lib/model/command/project-command/npm-global-project-command.d.ts.map +1 -0
  164. package/lib/model/command/project-command/npm-global-project-command.js +217 -0
  165. package/lib/model/command/project-command/npm-install-project-command.d.ts +9 -0
  166. package/lib/model/command/project-command/npm-install-project-command.d.ts.map +1 -0
  167. package/lib/model/command/project-command/npm-install-project-command.js +66 -0
  168. package/lib/model/command/project-command/project-command.d.ts +15 -0
  169. package/lib/model/command/project-command/project-command.d.ts.map +1 -0
  170. package/lib/model/command/project-command/project-command.js +69 -0
  171. package/lib/package.json +1 -0
  172. package/lib/service/clear-service.d.ts +2 -0
  173. package/lib/service/clear-service.d.ts.map +1 -0
  174. package/lib/service/clear-service.js +24 -0
  175. package/lib/service/file-service.d.ts +7 -0
  176. package/lib/service/file-service.d.ts.map +1 -0
  177. package/lib/service/file-service.js +14 -0
  178. package/lib/service/init-config-service.d.ts +7 -0
  179. package/lib/service/init-config-service.d.ts.map +1 -0
  180. package/lib/service/init-config-service.js +55 -0
  181. package/lib/service/shell-service.d.ts +12 -0
  182. package/lib/service/shell-service.d.ts.map +1 -0
  183. package/lib/service/shell-service.js +64 -0
  184. package/lib/service/terminal-wrapper.d.ts +12 -0
  185. package/lib/service/terminal-wrapper.d.ts.map +1 -0
  186. package/lib/service/terminal-wrapper.js +72 -0
  187. package/lib/util/base-menu.d.ts +12 -0
  188. package/lib/util/base-menu.d.ts.map +1 -0
  189. package/lib/util/base-menu.js +134 -0
  190. package/lib/util/config.d.ts +21 -0
  191. package/lib/util/config.d.ts.map +1 -0
  192. package/lib/util/config.js +50 -0
  193. package/lib/util/constant.d.ts +5 -0
  194. package/lib/util/constant.d.ts.map +1 -0
  195. package/lib/util/constant.js +15 -0
  196. package/lib/util/logger.d.ts +3 -0
  197. package/lib/util/logger.d.ts.map +1 -0
  198. package/lib/util/logger.js +20 -0
  199. package/lib/util/object-util.d.ts +4 -0
  200. package/lib/util/object-util.d.ts.map +1 -0
  201. package/lib/util/object-util.js +15 -0
  202. package/lib/util/sub-menu.d.ts +8 -0
  203. package/lib/util/sub-menu.d.ts.map +1 -0
  204. package/lib/util/sub-menu.js +85 -0
  205. package/lib/util/update-notifier-util.d.ts +4 -0
  206. package/lib/util/update-notifier-util.d.ts.map +1 -0
  207. package/lib/util/update-notifier-util.js +35 -0
  208. package/package.json +216 -156
  209. package/CHANGELOG.md +0 -91
  210. package/package-lock.json +0 -26727
@@ -0,0 +1,207 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.GitRouter = void 0;
7
+ var _gitCloneProjectCommand = require("../../model/command/project-command/git-clone-project-command.js");
8
+ var _gitSimpleProjectCommand = require("../../model/command/project-command/git-simple-project-command.js");
9
+ var _gitTagProjectCommand = require("../../model/command/project-command/git-tag-project-command.js");
10
+ var _projectCommand = require("../../model/command/project-command/project-command.js");
11
+ var _terminalWrapper = require("../../service/terminal-wrapper.js");
12
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
13
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
14
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
15
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
16
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
18
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
20
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
21
+ var GitRouter = exports.GitRouter = /*#__PURE__*/function () {
22
+ function GitRouter() {
23
+ _classCallCheck(this, GitRouter);
24
+ }
25
+ return _createClass(GitRouter, [{
26
+ key: "_clone",
27
+ value: function _clone(yargs) {
28
+ yargs.command({
29
+ command: 'clone',
30
+ describe: 'execute git clone',
31
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
32
+ handler: function () {
33
+ var _handler = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_argv) {
34
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
35
+ while (1) switch (_context.prev = _context.next) {
36
+ case 0:
37
+ _context.next = 2;
38
+ return (0, _terminalWrapper.terminalWrapperFactory)({
39
+ command: (0, _projectCommand.projectCommandFactory)({
40
+ command: new _gitCloneProjectCommand.GitCloneProjectCommand()
41
+ })
42
+ }).execute();
43
+ case 2:
44
+ case "end":
45
+ return _context.stop();
46
+ }
47
+ }, _callee);
48
+ }));
49
+ function handler(_x) {
50
+ return _handler.apply(this, arguments);
51
+ }
52
+ return handler;
53
+ }()
54
+ });
55
+ }
56
+ }, {
57
+ key: "_fetch",
58
+ value: function _fetch(yargs) {
59
+ yargs.command({
60
+ command: 'fetch',
61
+ describe: 'execute git fetch',
62
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
63
+ handler: function () {
64
+ var _handler2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_argv) {
65
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
66
+ while (1) switch (_context2.prev = _context2.next) {
67
+ case 0:
68
+ _context2.next = 2;
69
+ return (0, _terminalWrapper.terminalWrapperFactory)({
70
+ command: (0, _projectCommand.projectCommandFactory)({
71
+ command: new _gitSimpleProjectCommand.GitSimpleProjectCommand({
72
+ gitSimpleCommand: _gitSimpleProjectCommand.GitSimpleCommand.FETCH
73
+ })
74
+ })
75
+ }).execute();
76
+ case 2:
77
+ case "end":
78
+ return _context2.stop();
79
+ }
80
+ }, _callee2);
81
+ }));
82
+ function handler(_x2) {
83
+ return _handler2.apply(this, arguments);
84
+ }
85
+ return handler;
86
+ }()
87
+ });
88
+ }
89
+ }, {
90
+ key: "_pull",
91
+ value: function _pull(yargs) {
92
+ yargs.command({
93
+ command: 'pull',
94
+ describe: 'execute git pull',
95
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
96
+ handler: function () {
97
+ var _handler3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_argv) {
98
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
99
+ while (1) switch (_context3.prev = _context3.next) {
100
+ case 0:
101
+ _context3.next = 2;
102
+ return (0, _terminalWrapper.terminalWrapperFactory)({
103
+ command: (0, _projectCommand.projectCommandFactory)({
104
+ command: new _gitSimpleProjectCommand.GitSimpleProjectCommand({
105
+ gitSimpleCommand: _gitSimpleProjectCommand.GitSimpleCommand.PULL
106
+ })
107
+ })
108
+ }).execute();
109
+ case 2:
110
+ case "end":
111
+ return _context3.stop();
112
+ }
113
+ }, _callee3);
114
+ }));
115
+ function handler(_x3) {
116
+ return _handler3.apply(this, arguments);
117
+ }
118
+ return handler;
119
+ }()
120
+ });
121
+ }
122
+ }, {
123
+ key: "_status",
124
+ value: function _status(yargs) {
125
+ yargs.command({
126
+ command: 'status',
127
+ describe: 'execute git status',
128
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
129
+ handler: function () {
130
+ var _handler4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_argv) {
131
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
132
+ while (1) switch (_context4.prev = _context4.next) {
133
+ case 0:
134
+ _context4.next = 2;
135
+ return (0, _terminalWrapper.terminalWrapperFactory)({
136
+ command: (0, _projectCommand.projectCommandFactory)({
137
+ command: new _gitSimpleProjectCommand.GitSimpleProjectCommand({
138
+ gitSimpleCommand: _gitSimpleProjectCommand.GitSimpleCommand.STATUS
139
+ })
140
+ })
141
+ }).execute();
142
+ case 2:
143
+ case "end":
144
+ return _context4.stop();
145
+ }
146
+ }, _callee4);
147
+ }));
148
+ function handler(_x4) {
149
+ return _handler4.apply(this, arguments);
150
+ }
151
+ return handler;
152
+ }()
153
+ });
154
+ }
155
+ }, {
156
+ key: "_tag",
157
+ value: function _tag(yargs) {
158
+ yargs.command({
159
+ builder: function builder(y) {
160
+ y.options('name', {
161
+ alias: 'n',
162
+ describe: 'filter tag by name (* is allowed)',
163
+ type: 'string'
164
+ });
165
+ return y;
166
+ },
167
+ command: 'tag',
168
+ describe: 'execute git tag',
169
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
170
+ handler: function () {
171
+ var _handler5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(argv) {
172
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
173
+ while (1) switch (_context5.prev = _context5.next) {
174
+ case 0:
175
+ _context5.next = 2;
176
+ return (0, _terminalWrapper.terminalWrapperFactory)({
177
+ command: (0, _projectCommand.projectCommandFactory)({
178
+ command: new _gitTagProjectCommand.GitTagProjectCommand({
179
+ filterByName: argv.name
180
+ })
181
+ })
182
+ }).execute();
183
+ case 2:
184
+ case "end":
185
+ return _context5.stop();
186
+ }
187
+ }, _callee5);
188
+ }));
189
+ function handler(_x5) {
190
+ return _handler5.apply(this, arguments);
191
+ }
192
+ return handler;
193
+ }()
194
+ });
195
+ }
196
+ }, {
197
+ key: "commands",
198
+ value: function commands(yargs) {
199
+ this._clone(yargs);
200
+ this._pull(yargs);
201
+ this._fetch(yargs);
202
+ this._status(yargs);
203
+ this._tag(yargs);
204
+ return yargs;
205
+ }
206
+ }]);
207
+ }();
@@ -0,0 +1,7 @@
1
+ import { Argv } from 'yargs';
2
+ export declare class NpmRouter {
3
+ commands(yargs: Argv): Argv;
4
+ protected _install(yargs: Argv): void;
5
+ protected _global(yargs: Argv): void;
6
+ }
7
+ //# sourceMappingURL=npm-router.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"npm-router.d.ts","sourceRoot":"","sources":["../../../src/controller/yargs-router/npm-router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAO5B,qBAAa,SAAS;IACrB,QAAQ,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI;IAO3B,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI;IAgBrC,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI;CAWpC"}
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.NpmRouter = void 0;
7
+ var _npmGlobalProjectCommand = require("../../model/command/project-command/npm-global-project-command.js");
8
+ var _npmInstallProjectCommand = require("../../model/command/project-command/npm-install-project-command.js");
9
+ var _projectCommand = require("../../model/command/project-command/project-command.js");
10
+ var _terminalWrapper = require("../../service/terminal-wrapper.js");
11
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
13
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
14
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
15
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
17
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
+ var NpmRouter = exports.NpmRouter = /*#__PURE__*/function () {
21
+ function NpmRouter() {
22
+ _classCallCheck(this, NpmRouter);
23
+ }
24
+ return _createClass(NpmRouter, [{
25
+ key: "commands",
26
+ value: function commands(yargs) {
27
+ this._install(yargs);
28
+ this._global(yargs);
29
+ return yargs;
30
+ }
31
+ }, {
32
+ key: "_install",
33
+ value: function _install(yargs) {
34
+ yargs.command({
35
+ aliases: ['i'],
36
+ command: 'install',
37
+ describe: 'execute npm i for all projects',
38
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
39
+ handler: function () {
40
+ var _handler = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_argv) {
41
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
42
+ while (1) switch (_context.prev = _context.next) {
43
+ case 0:
44
+ _context.next = 2;
45
+ return (0, _terminalWrapper.terminalWrapperFactory)({
46
+ command: (0, _projectCommand.projectCommandFactory)({
47
+ command: new _npmInstallProjectCommand.NpmInstallProjectCommand()
48
+ })
49
+ }).execute();
50
+ case 2:
51
+ case "end":
52
+ return _context.stop();
53
+ }
54
+ }, _callee);
55
+ }));
56
+ function handler(_x) {
57
+ return _handler.apply(this, arguments);
58
+ }
59
+ return handler;
60
+ }()
61
+ });
62
+ }
63
+ }, {
64
+ key: "_global",
65
+ value: function _global(yargs) {
66
+ yargs.command({
67
+ aliases: ['g'],
68
+ command: 'global',
69
+ describe: 'gather npm packages to global package.json (project root level)',
70
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
71
+ handler: function () {
72
+ var _handler2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_argv) {
73
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
74
+ while (1) switch (_context2.prev = _context2.next) {
75
+ case 0:
76
+ _context2.next = 2;
77
+ return (0, _terminalWrapper.terminalWrapperFactory)({
78
+ command: (0, _npmGlobalProjectCommand.npmGlobalProjectCommandFactory)()
79
+ }).execute();
80
+ case 2:
81
+ case "end":
82
+ return _context2.stop();
83
+ }
84
+ }, _callee2);
85
+ }));
86
+ function handler(_x2) {
87
+ return _handler2.apply(this, arguments);
88
+ }
89
+ return handler;
90
+ }()
91
+ });
92
+ }
93
+ }]);
94
+ }();
@@ -0,0 +1,12 @@
1
+ export type ExecResult = {
2
+ stdout: string;
3
+ stderr: string;
4
+ errorOccurred: boolean;
5
+ };
6
+ export declare const shellDal: {
7
+ cd: (dir: string) => void;
8
+ exec: (cmd: string) => Promise<ExecResult>;
9
+ print: (message: string) => void;
10
+ pwd: () => string;
11
+ };
12
+ //# sourceMappingURL=shell-dal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell-dal.d.ts","sourceRoot":"","sources":["../../src/dal/shell-dal.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,QAAQ;cACV,MAAM,KAAG,IAAI;gBA6BX,MAAM,KAAG,QAAQ,UAAU,CAAC;qBASvB,MAAM,KAAG,IAAI;eAGrB,MAAM;CAGf,CAAA"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.shellDal = void 0;
7
+ var _shelljs = _interopRequireDefault(require("shelljs"));
8
+ var _logger = require("../util/logger.js");
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
+ var shellDal = exports.shellDal = {
11
+ cd: function cd(dir) {
12
+ _shelljs["default"].cd(dir);
13
+ },
14
+ // exec: (cmd: string): Promise<ExecResult> =>
15
+ // new Promise((resolve, reject) => {
16
+ // logger().debug(shellDal.pwd())
17
+ // const child = shell.exec(cmd, { async: true, silent: true })
18
+ // const result = { stdout: '', stderr: '', errorOccurred: false }
19
+ //
20
+ // if (child.stdout) {
21
+ // child.stdout.on('data', (data) => {
22
+ // result.stdout = (result.stdout ?? '') + data.toString()
23
+ // })
24
+ // child.stdout.on('end', () => {
25
+ // resolve(result)
26
+ // })
27
+ // } else if (child.stderr) {
28
+ // child.stderr.on('end', () => {
29
+ // resolve(result)
30
+ // })
31
+ // }
32
+ //
33
+ // if (child.stderr) {
34
+ // child.stderr.on('data', (data) => {
35
+ // result.stderr = (result.stderr ?? '') + data.toString()
36
+ // result.errorOccurred = (child.exitCode ?? 0) !== 0
37
+ // })
38
+ // }
39
+ // }),
40
+ exec: function exec(cmd) {
41
+ return new Promise(function (resolve) {
42
+ (0, _logger.logger)().debug(shellDal.pwd());
43
+ _shelljs["default"].exec(cmd, {
44
+ silent: true
45
+ }, function (code, stdout, stderr) {
46
+ var errorOccurred = code !== 0;
47
+ return resolve({
48
+ errorOccurred: errorOccurred,
49
+ stderr: stderr,
50
+ stdout: stdout
51
+ });
52
+ });
53
+ });
54
+ },
55
+ print: function print(message) {
56
+ _shelljs["default"].echo(message);
57
+ },
58
+ pwd: function pwd() {
59
+ return _shelljs["default"].pwd();
60
+ }
61
+ };
@@ -0,0 +1,2 @@
1
+ import '#/index-init';
2
+ //# sourceMappingURL=index-cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-cli.d.ts","sourceRoot":"","sources":["../src/index-cli.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAA"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ require("#/index-init");
4
+ var _mshAppBoot = require("@beecode/msh-app-boot");
5
+ var _cliApp = require("./app/cli-app.js");
6
+ var _updateNotifierUtil = require("./util/update-notifier-util.js");
7
+ _updateNotifierUtil.updateNotifierUtil.check()["catch"](function (err) {
8
+ return console.log(err);
9
+ }); // eslint-disable-line no-console
10
+
11
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
+ new _mshAppBoot.AppStarter(new _cliApp.CliApp()).start()["catch"](function (err) {
13
+ return console.log(err);
14
+ }); // eslint-disable-line no-console
@@ -0,0 +1,2 @@
1
+ import 'source-map-support/register';
2
+ //# sourceMappingURL=index-init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-init.d.ts","sourceRoot":"","sources":["../src/index-init.ts"],"names":[],"mappings":"AAAA,OAAO,6BAA6B,CAAA"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ require("source-map-support/register");
4
+ var _logger = require("@beecode/msh-app-boot/util/logger");
5
+ var _logger2 = require("./util/logger.js");
6
+ process.on('uncaughtException', function (error) {
7
+ return (0, _logger2.logger)().error('Uncaught Exception', {
8
+ error: error
9
+ });
10
+ });
11
+ process.on('unhandledRejection', function (error) {
12
+ return (0, _logger2.logger)().error('Unhandled Rejection', {
13
+ error: error
14
+ });
15
+ });
16
+ (0, _logger.setAppBootLogger)((0, _logger2.logger)());
@@ -0,0 +1,6 @@
1
+ declare module '@jest/expect' {
2
+ interface Matchers<R extends void | Promise<void>> extends CustomMatchers<R> {
3
+ }
4
+ }
5
+ export {};
6
+ //# sourceMappingURL=index-jest-setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-jest-setup.d.ts","sourceRoot":"","sources":["../src/index-jest-setup.ts"],"names":[],"mappings":"AAIA,OAAO,QAAQ,cAAc,CAAC;IAC7B,UAAiB,QAAQ,CAAC,CAAC,SAAS,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;KAAG;CACtF"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ var _globals = require("@jest/globals");
4
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
5
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
6
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
7
+ _globals.expect.extend((await Promise.resolve().then(function () {
8
+ return _interopRequireWildcard(require('jest-extended'));
9
+ }))["default"]);
10
+ process.env.TZ = 'utc';
@@ -0,0 +1,2 @@
1
+ import './index-init.js';
2
+ //# sourceMappingURL=index-server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-server.d.ts","sourceRoot":"","sources":["../src/index-server.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAA"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ require("./index-init.js");
4
+ var _mshAppBoot = require("@beecode/msh-app-boot");
5
+ var _httpServerApp = require("./app/http-server-app.js");
6
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
7
+ new _mshAppBoot.AppStarter(new _httpServerApp.HttpServerApp()).start()["catch"](function (err) {
8
+ return console.log(err);
9
+ }); // eslint-disable-line no-console
@@ -0,0 +1,2 @@
1
+ import './index-init.js';
2
+ //# sourceMappingURL=index-terminal-ui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-terminal-ui.d.ts","sourceRoot":"","sources":["../src/index-terminal-ui.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAA"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+
3
+ require("./index-init.js");
4
+ var _mshAppBoot = require("@beecode/msh-app-boot");
5
+ var _tuiApp = require("./app/tui-app.js");
6
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
7
+ new _mshAppBoot.AppStarter(new _tuiApp.TuiApp()).start()["catch"](function (err) {
8
+ return console.log(err);
9
+ }); // eslint-disable-line no-console
@@ -0,0 +1,5 @@
1
+ import { Executable, ExecuteResult } from '../../model/command/interfaces.js';
2
+ export declare class InitConfig implements Executable {
3
+ execute(): Promise<ExecuteResult[]>;
4
+ }
5
+ //# sourceMappingURL=init-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init-config.d.ts","sourceRoot":"","sources":["../../../src/model/command/init-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAGzE,qBAAa,UAAW,YAAW,UAAU;IACtC,OAAO,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;CAUzC"}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.InitConfig = void 0;
7
+ var _initConfigService = require("../../service/init-config-service.js");
8
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
9
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
10
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
11
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
12
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
14
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
15
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
17
+ var InitConfig = exports.InitConfig = /*#__PURE__*/function () {
18
+ function InitConfig() {
19
+ _classCallCheck(this, InitConfig);
20
+ }
21
+ return _createClass(InitConfig, [{
22
+ key: "execute",
23
+ value: function () {
24
+ var _execute = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
25
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
26
+ while (1) switch (_context.prev = _context.next) {
27
+ case 0:
28
+ _context.prev = 0;
29
+ _context.next = 3;
30
+ return _initConfigService.initConfigService.tryToCreateConfig();
31
+ case 3:
32
+ return _context.abrupt("return", [{
33
+ stringResult: '.msh file successfully generated'
34
+ }]);
35
+ case 6:
36
+ _context.prev = 6;
37
+ _context.t0 = _context["catch"](0);
38
+ return _context.abrupt("return", [{
39
+ errorMessage: _context.t0.message
40
+ }]);
41
+ case 9:
42
+ case "end":
43
+ return _context.stop();
44
+ }
45
+ }, _callee, null, [[0, 6]]);
46
+ }));
47
+ function execute() {
48
+ return _execute.apply(this, arguments);
49
+ }
50
+ return execute;
51
+ }()
52
+ }]);
53
+ }();