@maka/maka-cli 5.0.21 → 5.0.24

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 (179) hide show
  1. package/bundle/obf/package.json +53 -56
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/profile.js +1 -1
  87. package/bundle/obf/src/commands/proxy.js +1 -1
  88. package/bundle/obf/src/commands/reconfig.js +1 -1
  89. package/bundle/obf/src/commands/register.js +1 -1
  90. package/bundle/obf/src/commands/run/_index.js +1 -1
  91. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  92. package/bundle/obf/src/commands/run/run.command.js +1 -1
  93. package/bundle/obf/src/commands/set/_index.js +1 -1
  94. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  95. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/set.command.js +1 -1
  97. package/bundle/obf/src/commands/ssh.js +1 -1
  98. package/bundle/obf/src/commands/ssl.js +1 -1
  99. package/bundle/obf/src/commands/test.js +1 -1
  100. package/bundle/obf/src/commands/undo.js +1 -1
  101. package/bundle/obf/src/commands/version.js +1 -1
  102. package/bundle/obf/src/error.js +1 -1
  103. package/bundle/obf/src/exec.js +1 -1
  104. package/bundle/obf/src/generator.js +1 -1
  105. package/bundle/obf/src/generators/_index.js +1 -1
  106. package/bundle/obf/src/generators/api.js +1 -1
  107. package/bundle/obf/src/generators/aws/_index.js +1 -1
  108. package/bundle/obf/src/generators/aws/aws.js +1 -1
  109. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  110. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  111. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  112. package/bundle/obf/src/generators/collection.js +1 -1
  113. package/bundle/obf/src/generators/component.js +1 -1
  114. package/bundle/obf/src/generators/config.js +1 -1
  115. package/bundle/obf/src/generators/dbc.js +1 -1
  116. package/bundle/obf/src/generators/dockerfile.js +1 -1
  117. package/bundle/obf/src/generators/hook.js +1 -1
  118. package/bundle/obf/src/generators/kits/_index.js +1 -1
  119. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  121. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  122. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  123. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  124. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  125. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  126. package/bundle/obf/src/generators/kits/kit.js +1 -1
  127. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  128. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  129. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  130. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  131. package/bundle/obf/src/generators/layout.js +1 -1
  132. package/bundle/obf/src/generators/maka.gen.js +1 -1
  133. package/bundle/obf/src/generators/methods.js +1 -1
  134. package/bundle/obf/src/generators/package.js +1 -1
  135. package/bundle/obf/src/generators/page.js +1 -1
  136. package/bundle/obf/src/generators/publish.js +1 -1
  137. package/bundle/obf/src/generators/route.js +1 -1
  138. package/bundle/obf/src/generators/service.js +1 -1
  139. package/bundle/obf/src/generators/services/_index.js +1 -1
  140. package/bundle/obf/src/generators/services/openssl.js +1 -1
  141. package/bundle/obf/src/generators/services/translation.js +1 -1
  142. package/bundle/obf/src/maka.js +1 -1
  143. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +1 -1
  144. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +1 -1
  145. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +1 -1
  146. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +1 -1
  147. package/bundle/obf/src/templates/meteor/app/meteor.d.ts +56 -56
  148. package/bundle/obf/src/templates/meteor/service/logger/logger.js +2 -2
  149. package/bundle/obf/src/templates/meteor/service/logger/logger.js.ts +2 -2
  150. package/bundle/obf/src/tool.js +1 -1
  151. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  152. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  153. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  154. package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
  155. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  156. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  157. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  158. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  159. package/bundle/obf/src/tools/https/https.class.js +1 -1
  160. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  161. package/bundle/obf/src/tools/log/log.class.js +1 -1
  162. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  163. package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
  164. package/bundle/obf/src/tools/options/options.class.js +1 -1
  165. package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
  166. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  167. package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
  168. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  169. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  170. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  171. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  172. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  173. package/delete-1.1.0.tgz +0 -0
  174. package/eslint.config.js +19 -0
  175. package/maka-maka-cli-5.0.23.tgz +0 -0
  176. package/matched-5.0.1.tgz +0 -0
  177. package/package.json +53 -56
  178. package/tsconfig.json +8 -3
  179. package/maka-tar-6.2.1.tgz +0 -0
@@ -1 +1 @@
1
- const a159y=a159d;(function(a,b){const u=a159d,c=a();while(!![]){try{const d=-parseInt(u(0x185))/0x1*(-parseInt(u(0x15d))/0x2)+parseInt(u(0x12b))/0x3+parseInt(u(0x17f))/0x4+-parseInt(u(0xe8))/0x5+-parseInt(u(0xf8))/0x6+-parseInt(u(0x181))/0x7*(parseInt(u(0x175))/0x8)+parseInt(u(0xf4))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a159c,0x34c6c));const a159b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a159d;if(c){const e=c[v(0x100)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a159a=a159b(this,function(){const w=a159d;return a159a['toString']()[w(0x15b)]('(((.+)+)+)+$')[w(0x144)]()[w(0xfc)](a159a)[w(0x15b)](w(0x121));});function a159d(a,b){const c=a159c();return a159d=function(d,e){d=d-0xe5;let f=c[d];return f;},a159d(a,b);}a159a();import a159e from'path';import a159f from'fs';import a159g from'util';import{exec}from'child_process';import a159h from'delete';import a159i from'ejs';function a159c(){const a4=['While\x20injecting\x20','isTemplateForEngine','sep','injectAfterLineNumber','862295XmNYlV','rewriteDestinationPathForEngine()','ssr','.js','templates','from\x20\x27','\x20->','.git','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','includes','utf8','filter','5641560GXpwHi','cfg','existsSync','adjustIndentation','2120406oPBAnQ','map','export\x20{\x20','platform','constructor','replace','\x5cS*$','.meteor','apply','some','src/templates/','ico','fileContainsString','stringify','base64','createFile','\x20}\x20from\x20\x27','repeat','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20','Looking\x20for\x20','import\x20','Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues','less','warn','template','true','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','createDirectory','from','getMakaProjectConfig','pathFromAppWithNoReWrite','isDirectory','injectAfterLineNumber()','engineAndTypeFromfilePath','writeFileSync','pathFromTemplates','copyTemplateDirectory()','meteor','\x20updated\x20file\x20','\x27;\x0a','endsWith','(((.+)+)+)+$','Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20','pathFromAppWithNoReWrite()','rewriteDestinationPathForType','reduce','.js.jsx','--minimal','rewriteDestinationPathForType()','injectImport','findAppDirectory','441279wjfFVg','header','No\x20matching\x20section\x20found.','isTemplateForEngine()','alpha','calculateMode','Meteor\x20project\x20already\x20exists\x20at\x20','\x20from','engine','exit','startsWith','pathFromApp','import\x20{\x20','pop','pathFromApp()','message','splice','fsi','injectAroundString()','rewriteDestinationPathForEngine','No\x20app\x20directory\x20found','\x20from\x20\x27','error','engines','env','toString','readdirSync','indexOf','slice','tsx','forEach','cwd','--release\x20','readFileSync','jsx','injectAroundString','MAKA_COMMAND_PATH','push','concat','\x20create\x20','imports','verbose','createEmptyMeteorProject','json','Dockerfile','isArray','copyTemplateDirectory','release','search','No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20','382Xwltcs','win32','injectIntoFile()','templates.js','split','MAKA_DEV','rewriteSourcePathForEngine()','.jsx','File\x20not\x20found:\x20','getCommonIndentSize','template()','detectIndentation','html','scss','.js.ts','relative','rewriteSourcePathForEngine','noRename','injectAtBeginningOfFile()','length','injectAtEndOfFile()','test','Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20','mpi','3305560JvtGGm','Directory\x20','normalize','templateContent','join','No\x20file\x20found\x20at\x20path\x20','type','render','png','injectTemplateModule','1079764wLAFxl','isFile','7PLzUJJ','match','trim','client','583PDxtEG'];a159c=function(){return a4;};return a159c();}import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';const errorHandler=(a,b)=>{const x=a159d;process[x(0x143)][x(0x162)]==='True'&&Log[x(0x141)]('Error\x20in\x20'+a),b&&console[x(0x141)](b);},isWin=process[a159y(0xfb)]===a159y(0x15e),treeSymbol=isWin?a159y(0xee):'\x20┗';export class Scaffold{[a159y(0x13c)];[a159y(0x174)];['cfg'];constructor(a,b,c){const z=a159y;this[z(0x13c)]=a,this[z(0x174)]=b,this[z(0xf5)]=c;}async[a159y(0x155)](a,b){const A=a159y;b[A(0x14a)]=b[A(0x14a)]||'.';const c=a159e[A(0x179)](b[A(0x14a)],a),d=a159e[A(0x179)](c,A(0xff));if(this[A(0x13c)][A(0x117)](d))throw new Error(A(0x131)+JSON[A(0x105)](c));const e=A(0x127),f=a159e[A(0x179)](b['cwd']),g=a159g['promisify'](exec),h=b[A(0x15a)]?A(0x14b)+b[A(0x15a)]:'';b[A(0x15a)]&&b['release']['includes'](A(0x12f))&&(Log['warn'](A(0x173)+b['release']),Log[A(0x10f)](A(0x10d)));try{await g(this[A(0x174)]['meteor']+A(0x152)+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[A(0x141)]('\x0a'+k[A(0x13a)]);throw k;}const i=a159e[A(0x179)](f,a);if(!a159f[A(0xf6)](i))throw new Error(A(0x176)+i+'\x20doesn\x27t\x20exist');const j=a159f[A(0x145)](i);for(const l of j){if(l!==A(0xef)&&l!==A(0xff)){const m=a159e[A(0x179)](i,l);await a159h(m,{'force':!![]});}}}[a159y(0x119)]({filePath:a}){const B=a159y;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a['match'](b);c=c&&c[0x0]['split']('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[B(0x138)](),f=c[B(0x138)]()||d;if(d)d=d[B(0xfd)]('.','');if(f)f=f['replace']('.','');return{'type':f,'engine':d};}catch(g){errorHandler('engineAndTypeFromfilePath()',g),process[B(0x134)](0x1);}}[a159y(0x124)]({pathParts:a,config:b}){const C=a159y;try{const c=a['join'](a159e[C(0xe6)]),d=this[C(0x119)]({'filePath':c})['type'],f=b?.[C(0x142)][d],g=new RegExp('\x5c.'+d+'\x5cS*$');return!d||!f?c:c[C(0xfd)](g,'.'+d);}catch(h){errorHandler(C(0x128),h),process[C(0x134)](0x1);}}[a159y(0xe5)]({pathParts:a,config:b}){const D=a159y;try{if(!b)throw new Error(D(0x112));const c=a[D(0x179)](a159e[D(0xe6)]),d=this['engineAndTypeFromfilePath']({'filePath':c});if(!d[D(0x17b)]||!d['engine'])return!![];const f=b[D(0x142)][d[D(0x17b)]];if(!f)return!![];return f===d[D(0x133)];}catch(g){errorHandler(D(0x12e),g),process[D(0x134)](0x1);}}['writeSourcePath']({pathParts:pathParts=[]}){const E=a159y;return pathParts[E(0x179)](a159e[E(0xe6)]);}[a159y(0x13e)]({pathParts:pathParts=[],config:a}){const F=a159y;try{const b=pathParts['join'](a159e['sep']),c=this[F(0x119)]({'filePath':b})['type'],d=a?.[F(0x142)][c],f=new RegExp('\x5c.'+c+F(0xfe));return!c||!d?b:b[F(0xfd)](f,'.'+d);}catch(g){errorHandler(F(0xe9),g),process[F(0x134)](0x1);}}[a159y(0x16d)]({pathParts:pathParts=[],framework:framework=a159y(0x11d)}){const G=a159y;try{const a=a159e[G(0x177)](pathParts[G(0x179)](a159e[G(0xe6)]));if(!a[G(0x120)](G(0xeb)))return a;const b='js',c=this[G(0xf5)][G(0x115)]();if(!c?.[G(0x142)]||!c?.[G(0x142)][b])return a;const d=c[G(0x142)][b],f=d===G(0x148)?['.js.tsx',G(0x16b),G(0xeb)]:[G(0x126),G(0xeb)];for(const g of f){const h=a[G(0xfd)](/\.js$/,g),i=a159e[G(0x179)](G(0xec),framework,h),j=a159e[G(0x177)](a159e[G(0x179)](global[G(0x14f)],i));if(a159f[G(0xf6)](j))return h;}return a;}catch(k){errorHandler(G(0x163),k),process['exit'](0x1);}}['pathFromTemplates']({pathParts:a,framework:framework=a159y(0x11d)}){const H=a159y;try{const b=this[H(0x16d)]({'pathParts':a,'framework':framework}),c=a159e['join'](H(0x102)+framework,b),d=a159e['join'](global[H(0x14f)],'..',c);return d;}catch(f){errorHandler('pathFromTemplates()',f),process['exit'](0x1);}}['templateContent']({srcPath:a,context:b,framework:c,config:d}){const I=a159y;try{let f=this[I(0x11b)]({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this[I(0x119)]({'filePath':f}),h=['css',I(0x16a),I(0x10e),I(0x169),'js',I(0x14d),'ts',I(0x148),I(0x156),I(0x143),'yaml',I(0x110)],i=[I(0x17d),I(0x103)];if(!this[I(0x13c)][I(0x180)](f)){g===I(0x14d)&&(f=f[I(0xfd)](I(0x164),''));g===I(0x148)&&(f=f[I(0xfd)]('.tsx',''));if(!this['fsi'][I(0x180)](f))throw new Error(I(0x122)+JSON[I(0x105)](f));}const j=f[I(0x161)]('.'),k=a159e[I(0x177)](f)['split'](a159e[I(0xe6)]),l=k[k['length']-0x1]===I(0x157),m=i[I(0xf1)](j[j[I(0x170)]-0x1]),n=a159f['readFileSync'](f);if(l)return a159i[I(0x17c)](n[I(0x144)](),b)['trim']();if(m)return Buffer[I(0x114)](n)[I(0x144)](I(0x106));if(!h['includes'](j[j[I(0x170)]-0x1]))return n[I(0x144)]()['trim']();return a159i['render'](n[I(0x144)](),b||{})[I(0x183)]();}catch(o){errorHandler('templateContent()',o),process[I(0x134)](0x1);}}async[a159y(0x110)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const J=a159y;try{const g=[J(0x17d),J(0x103)],h=g[J(0xf1)](a[J(0x161)]('.')[J(0x138)]()||''),i=this[J(0x178)]({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.[J(0x16e)]?b=this[J(0x124)]({'pathParts':[b],'config':d}):b=this[J(0x13e)]({'pathParts':[b],'config':d});const j=await this[J(0x13c)]['createFile']({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler(J(0x167),k),process[J(0x134)](0x1);}}async[a159y(0x159)]({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const M=a159y;try{const i=this['pathFromTemplates']({'pathParts':[a],'framework':g,'config':h}),j=this['pathFromTemplates']({'pathParts':[],'framework':g,'config':h}),k=n=>{const K=a159d;return n[K(0xfd)](j,'');},l=n=>{const L=a159d;return n[L(0xfd)](i,b);};await this[M(0x13c)][M(0x113)]({'dirPath':b});const m=a159f[M(0x145)](i);for(const n of m){try{const o=a159e[M(0x179)](i,n),p=k(o),q=l(o);if(d['includes'](a159e[M(0x179)](a,n)))continue;if(this['fsi'][M(0x117)](o))await this[M(0x159)]({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this['fsi'][M(0x180)](o)&&this[M(0xe5)]({'pathParts':[o],'config':h}))await this[M(0x110)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f[M(0x146)](a159e[M(0x179)](a,n))>=0x0&&this[M(0x13c)][M(0x180)](o)&&(c['noRename']=!![],await this[M(0x110)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c[M(0x16e)]=![]);}}catch(r){console[M(0x141)](r),process[M(0x134)](0x1);}}}catch(s){errorHandler(M(0x11c),s),process[M(0x134)](0x1);}}async['injectAtBeginningOfFile']({filePath:a,content:b,opts:c}){const N=a159y;if(!a)throw new Error(N(0xf0));try{!this[N(0x13c)]['isFile'](a)&&await this[N(0x13c)][N(0x107)]({'filePath':a,'data':b});let d=a159f[N(0x14c)](a,N(0xf2));d=b+'\x0a'+d,a159f[N(0x11a)](a,d),c?.[N(0x154)]&&Log[N(0x12c)](treeSymbol+N(0x11e)+a159e[N(0x16c)](process[N(0x14a)](),a));}catch(f){errorHandler(N(0x16f),f),process[N(0x134)](0x1);}}async['injectAtEndOfFile']({filePath:a,content:b,opts:c}){const O=a159y;try{if(!this['fsi'][O(0x180)](a))await this[O(0x13c)][O(0x107)]({'filePath':a,'data':b});else{let d=a159f[O(0x14c)](a,O(0xf2));!d[O(0xf1)](b)&&(d=d+'\x0a'+b,a159f[O(0x11a)](a,d)),c?.[O(0x154)]&&Log[O(0x12c)](treeSymbol+O(0x11e)+a159e[O(0x16c)](process['cwd'](),a));}}catch(f){errorHandler(O(0x171),f),process[O(0x134)](0x1);}}async[a159y(0x14e)]({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const P=a159y;try{if(!this[P(0x13c)][P(0x180)](a))throw Log[P(0x141)](P(0x17a)+JSON[P(0x105)](a));const f=a159f[P(0x14c)](a,'utf8'),g=f[P(0xfd)](/\r\n|\r/g,'\x0a'),h=g[P(0x161)]('\x0a'),j=this['detectIndentation'](h),k=b[P(0xfd)](/\r\n|\r/g,'\x0a')[P(0x161)]('\x0a'),l=c[P(0xfd)](/\r\n|\r/g,'\x0a')[P(0x161)]('\x0a'),m=new RegExp(Array[P(0x158)](d)?d[P(0x179)]('|'):d,'i'),n=[];for(let p=0x0;p<h['length'];p++){const q=h[p];if(m[P(0x172)](q)){const r=this[P(0xf7)](j,targetIndentAdjustment),s=r+q[P(0x183)]();k[P(0x149)](t=>{const Q=P;!g[Q(0xf1)](t[Q(0x183)]())&&n[Q(0x150)](this[Q(0xf7)](j,indentAdjustment)+t);}),n[P(0x150)](s),l[P(0x149)](t=>{const R=P;!g[R(0xf1)](t[R(0x183)]())&&n[R(0x150)](this['adjustIndentation'](j,indentAdjustment)+t);});}else n['push'](q);}const o=n[P(0x179)]('\x0a');a159f[P(0x11a)](a,o),Log[P(0x12c)](treeSymbol+'\x20updated\x20file\x20'+a159e[P(0x16c)](process['cwd'](),a));}catch(t){errorHandler(P(0x13d),t),process['exit'](0x1);}}[a159y(0xf7)](a,b){const S=a159y;if(b===0x0)return a;const c=a[S(0x170)]+b;return c>0x0?a[0x0]['repeat'](c):'';}[a159y(0x168)](a){const U=a159y;let b=0x0,c=0x0;a['forEach'](f=>{const T=a159d;if(f[T(0x135)]('\x20'))b++;else f[T(0x135)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[U(0x166)](a,d);return d[U(0x109)](e);}['getCommonIndentSize'](a,b){const V=a159y,c=a[V(0xf3)](d=>d&&d[V(0x135)](b))[V(0xf9)](d=>{const e=d['match'](new RegExp('^'+b+'+'));return e?e[0x0]['length']:0x0;});if(c[V(0x170)]===0x0)return 0x0;return this['calculateMode'](c);}[a159y(0x130)](a){const W=a159y,b=a['reduce']((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object['keys'](b)[W(0x125)]((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async['injectIntoCodeBlock']({filePath:a,content:b,begin:c,replace:replace=![]}){const X=a159y;try{if(!this[X(0x13c)][X(0x180)](a))throw new Error(X(0x165)+a);const d=a159f[X(0x14c)](a,X(0xf2)),f=d[X(0x161)]('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array['isArray'](c)?c:[c];for(let o=0x0;o<f[X(0x170)];o++){const p=f[o];k&&p[X(0xf1)]('{')&&j++;if(m[X(0x101)](q=>p['includes'](q))){g=o,k=!![],j++;continue;}if(k){p[X(0xf1)](b[X(0x183)]())&&(l=!![]);if(p[X(0xf1)]('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[X(0x141)](X(0x10a)+a),Log[X(0x141)](X(0x186)+b),Log[X(0x141)](X(0x10b)+c);throw new Error('Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.');}if(l)return;let n=f['slice'](0x0,g+0x1);replace?(n[X(0x150)](b[X(0x183)]()),n[X(0x150)](f[h])):(n=n[X(0x151)](f[X(0x147)](g+0x1,h)),n['push'](b[X(0x183)]())),n=n[X(0x151)](f[X(0x147)](h+0x1)),a159f[X(0x11a)](a,n[X(0x179)]('\x0a'),X(0xf2));}catch(q){console['error']('Error\x20in\x20injectIntoCodeBlock:\x20',q);throw q;}}async['injectIntoFile']({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const Y=a159y;try{const g=await this[Y(0x13c)][Y(0x104)](a,c);if(g)return;if(!this[Y(0x13c)][Y(0x180)](a))throw Log[Y(0x141)](Y(0x15c)+JSON[Y(0x105)](a));const h=a159f[Y(0x14c)](a,'utf8');if(!Array[Y(0x158)](d))d=[d];if(!Array['isArray'](f))f=[f];let i=h,j=![];for(const k of d){for(const l of f){const m=new RegExp('('+k+'[\x5cs\x5cS]*?)('+l+')','i');i=h[Y(0xfd)](m,(n,o,p)=>{return j=!![],replace?''+o+c+p:''+o+c+'\x0a'+p;});if(j)break;}if(j)break;}if(!j)throw new Error(Y(0x12d));a159f[Y(0x11a)](a,i),Log[Y(0x12c)](treeSymbol+Y(0x11e)+a159e[Y(0x16c)](process['cwd'](),a));}catch(n){errorHandler(Y(0x15f),n),process[Y(0x134)](0x1);}}async[a159y(0x129)]({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const Z=a159y,e=a159f['readFileSync'](a,'utf8');let f;d?f=Z(0x137)+b+'\x20}\x20from\x20\x27'+c+Z(0x11f):f=Z(0x10c)+b+Z(0x140)+c+Z(0x11f);const g=e[Z(0x161)]('\x0a');let h=0x0,j=![];for(const l of g){if(l[Z(0xf1)](Z(0xed)+c+'\x27')||l['includes']('from\x20\x22'+c+'\x22')){const m=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(Z(0x10c)+b+Z(0x132));if(l[Z(0x182)](m)){j=!![];break;}}}if(j)return;if(injectAtStart)for(let n=0x0;n<g[Z(0x170)];n++){if(g[n][Z(0x182)](/^import .* from .*;$/)){h=n;break;}}else{for(let o=0x0;o<g[Z(0x170)];o++){g[o][Z(0x182)](/^import .* from .*;$/)&&(h=o);}h++;}g[Z(0x13b)](h,0x0,f);const k=g['join']('\x0a');a159f[Z(0x11a)](a,k,Z(0xf2));}async[a159y(0x17e)](a,b,c){const a0=a159y;let d;b[a0(0x142)][a0(0xea)]===a0(0x111)?d=this[a0(0x136)]({'pathParts':[a0(0x153),'startup','lib',a0(0x160)],'config':b}):d=this['pathFromApp']({'pathParts':[a0(0x153),'startup',a0(0x184),a0(0x160)],'config':b});const e=this[a0(0x13e)]({'pathParts':[d],'config':b}),f=a0(0xfa)+pascalCase(a)+a0(0x108)+c+'\x27;',g=await this['fsi'][a0(0x104)](e,f);!g&&this['injectAtEndOfFile']({'filePath':e,'content':f+'\x0a'});}[a159y(0xe7)]({filePath:a,content:b,lineNumber:c}){const a1=a159y;try{const d=a159f[a1(0x14c)](a)[a1(0x144)]()[a1(0x161)]('\x0a');d['splice'](c,0x0,b);const f=d[a1(0x179)]('\x0a');a159f[a1(0x11a)](a,f);}catch(g){errorHandler(a1(0x118),g),process['exit'](0x1);}}['pathFromApp']({pathParts:a,config:b}){const a2=a159y;try{if(!a)throw new Error('No\x20pathParts\x20option\x20provided');const c=this[a2(0x16d)]({'pathParts':a,'config':b}),d=this[a2(0x13c)]['findAppDirectory']();return d?a159e[a2(0x179)](d,c):'';}catch(f){errorHandler(a2(0x139),f),process[a2(0x134)](0x1);}}[a159y(0x116)]({pathParts:a,config:b}){const a3=a159y;try{const c=this['writeSourcePath']({'pathParts':a,'config':b}),d=this[a3(0x13c)][a3(0x12a)]();if(!d)throw new Error(a3(0x13f));return a159e[a3(0x179)](d,c);}catch(f){errorHandler(a3(0x123),f),process[a3(0x134)](0x1);}}}
1
+ const a159z=a159d;(function(a,b){const v=a159d,c=a();while(!![]){try{const d=-parseInt(v(0x145))/0x1*(parseInt(v(0x12c))/0x2)+parseInt(v(0x176))/0x3*(-parseInt(v(0x101))/0x4)+-parseInt(v(0x141))/0x5*(-parseInt(v(0xfa))/0x6)+-parseInt(v(0x130))/0x7+parseInt(v(0x144))/0x8+parseInt(v(0xfc))/0x9*(-parseInt(v(0x17d))/0xa)+parseInt(v(0x10c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a159c,0x93587));const a159b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a159d;if(c){const e=c[w(0x157)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a159a=a159b(this,function(){const x=a159d;return a159a[x(0x192)]()['search']('(((.+)+)+)+$')['toString']()[x(0x175)](a159a)['search'](x(0x178));});a159a();import a159e from'path';import a159f from'fs';function a159d(a,b){const c=a159c();return a159d=function(d,e){d=d-0xfa;let f=c[d];return f;},a159d(a,b);}import a159g from'util';import{exec}from'child_process';import a159h from'delete';import a159i from'ejs';import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';const errorHandler=(a,b)=>{const y=a159d;process[y(0x11b)]['MAKA_DEV']===y(0x11c)&&Log[y(0x13b)](y(0x117)+a),b&&console[y(0x13b)](b);},isWin=process['platform']===a159z(0x190),treeSymbol=isWin?a159z(0x197):'\x20┗';function a159c(){const a5=['.js.ts','injectAtEndOfFile','12190uQwGkm','--minimal','jsx','map','match','trim','No\x20pathParts\x20option\x20provided','readFileSync','message','css','type','isFile','--release\x20','json','import\x20','injectTemplateModule','findAppDirectory','filter','ssr','win32','File\x20not\x20found:\x20','toString','ico','test','release','injectAtBeginningOfFile()','\x20->','slice','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','468pYeICC','calculateMode','7713elnmvI','adjustIndentation','fsi','Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues','repeat','80COvhzf','pathFromTemplates()','getCommonIndentSize','\x20}\x20from\x20\x27','join','promisify','tsx','isArray','Directory\x20','rewriteSourcePathForEngine()','detectIndentation','41027734Wvbrbs','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20','relative','render','.js','forEach','png','writeSourcePath','from\x20\x27','splice','isTemplateForEngine()','Error\x20in\x20','No\x20file\x20found\x20at\x20path\x20','templates.js','pop','env','True','src/templates/','injectAtEndOfFile()','.meteor','\x20updated\x20file\x20','.js.jsx','length','meteor','header','.git','stringify','split','pathFromTemplates','includes','from','injectAtBeginningOfFile','4JbeaOi','templates','rewriteDestinationPathForEngine','utf8','3512663CldJJi','pathFromApp()','Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20','injectIntoCodeBlock','rewriteDestinationPathForType()','noRename','startsWith','No\x20app\x20directory\x20found','getInstance','No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20','injectImport()','error','.tsx','Looking\x20for\x20','injectIntoFile','engine','isDirectory','30410MXFzkW','readdirSync','pathFromApp','283896nxruJN','569869EZdIWy','While\x20injecting\x20','isTemplateForEngine','template','concat','Error\x20in\x20injectIntoCodeBlock:\x20','engineAndTypeFromfilePath()','replace','html','instance','Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20','\x5cS*$','mpi','injectAfterLineNumber()','sep','injectTemplateModule()','rewriteSourcePathForEngine','imports','apply','Dockerfile','.jsx','injectAroundString','\x20create\x20','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','rewriteDestinationPathForType','copyTemplateDirectory()','writeFileSync','pathFromAppWithNoReWrite','\x27;\x0a','normalize','engines','No\x20matching\x20section\x20found.','verbose','startup','from\x20\x22','exit','cwd','createFile','createDirectory','injectAfterLineNumber','reduce','engineAndTypeFromfilePath','warn','templateContent','existsSync','push','.js.tsx','rewriteDestinationPathForEngine()','constructor','142488MnLlwF','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.','(((.+)+)+)+$','scss','fileContainsString'];a159c=function(){return a5;};return a159c();}export class Scaffold{static [a159z(0x14e)];['fsi'];[a159z(0x151)];constructor(a,b){const A=a159z;this[A(0xfe)]=a,this[A(0x151)]=b;}static[a159z(0x138)](a,b){const B=a159z;return!Scaffold[B(0x14e)]&&(Scaffold[B(0x14e)]=new Scaffold(a,b)),Scaffold[B(0x14e)];}async['createEmptyMeteorProject'](a,b){const C=a159z;b[C(0x169)]=b[C(0x169)]||'.';const c=a159e[C(0x105)](b[C(0x169)],a),d=a159e['join'](c,C(0x11f));if(this['fsi'][C(0x140)](d))throw new Error('Meteor\x20project\x20already\x20exists\x20at\x20'+JSON['stringify'](c));const e=C(0x17e),f=a159e[C(0x105)](b[C(0x169)]),g=a159g[C(0x106)](exec),h=b[C(0x195)]?C(0x189)+b[C(0x195)]:'';b['release']&&b[C(0x195)][C(0x129)]('alpha')&&(Log['warn'](C(0x14f)+b[C(0x195)]),Log[C(0x16f)](C(0xff)));try{await g(this[C(0x151)][C(0x123)]+C(0x15b)+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[C(0x13b)]('\x0a'+k[C(0x185)]);throw k;}const i=a159e[C(0x105)](f,a);if(!a159f[C(0x171)](i))throw new Error(C(0x109)+i+'\x20doesn\x27t\x20exist');const j=a159f[C(0x142)](i);for(const l of j){if(l!==C(0x125)&&l!==C(0x11f)){const m=a159e['join'](i,l);await a159h(m,{'force':!![]});}}}['engineAndTypeFromfilePath']({filePath:a}){const D=a159z;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a['match'](b);c=c&&c[0x0][D(0x127)]('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[D(0x11a)](),f=c['pop']()||d;if(d)d=d['replace']('.','');if(f)f=f[D(0x14c)]('.','');return{'type':f,'engine':d};}catch(g){errorHandler(D(0x14b),g),process[D(0x168)](0x1);}}[a159z(0x15d)]({pathParts:a,config:b}){const E=a159z;try{const c=a[E(0x105)](a159e[E(0x153)]),d=this[E(0x16e)]({'filePath':c})[E(0x187)],f=b?.[E(0x163)][d],g=new RegExp('\x5c.'+d+E(0x150));return!d||!f?c:c[E(0x14c)](g,'.'+d);}catch(h){errorHandler(E(0x134),h),process['exit'](0x1);}}[a159z(0x147)]({pathParts:a,config:b}){const F=a159z;try{if(!b)throw new Error(F(0x199));const c=a[F(0x105)](a159e[F(0x153)]),d=this['engineAndTypeFromfilePath']({'filePath':c});if(!d[F(0x187)]||!d[F(0x13f)])return!![];const f=b[F(0x163)][d['type']];if(!f)return!![];return f===d[F(0x13f)];}catch(g){errorHandler(F(0x116),g),process[F(0x168)](0x1);}}[a159z(0x113)]({pathParts:pathParts=[]}){const G=a159z;return pathParts[G(0x105)](a159e[G(0x153)]);}['rewriteDestinationPathForEngine']({pathParts:pathParts=[],config:a}){const H=a159z;try{const b=pathParts[H(0x105)](a159e[H(0x153)]),c=this[H(0x16e)]({'filePath':b})['type'],d=a?.[H(0x163)][c],f=new RegExp('\x5c.'+c+H(0x150));return!c||!d?b:b[H(0x14c)](f,'.'+d);}catch(g){errorHandler(H(0x174),g),process[H(0x168)](0x1);}}[a159z(0x155)]({pathParts:pathParts=[],framework:framework=a159z(0x123),config:a}){const I=a159z;try{const b=a159e[I(0x162)](pathParts[I(0x105)](a159e[I(0x153)]));if(!b['endsWith'](I(0x110)))return b;const c='js';if(!a?.[I(0x163)]||!a?.[I(0x163)][c])return b;const d=a[I(0x163)][c],f=d===I(0x107)?[I(0x173),I(0x17b),'.js']:[I(0x121),I(0x110)];for(const g of f){const h=b[I(0x14c)](/\.js$/,g),i=a159e[I(0x105)](I(0x12d),framework,h),j=a159e[I(0x162)](a159e[I(0x105)](global['MAKA_COMMAND_PATH'],i));if(a159f[I(0x171)](j))return h;}return b;}catch(k){errorHandler(I(0x10a),k),process[I(0x168)](0x1);}}['pathFromTemplates']({pathParts:a,framework:framework=a159z(0x123),config:b}){const J=a159z;try{const c=this['rewriteSourcePathForEngine']({'pathParts':a,'framework':framework,'config':b}),d=a159e[J(0x105)](J(0x11d)+framework,c),f=a159e[J(0x105)](global['MAKA_COMMAND_PATH'],'..',d);return f;}catch(g){errorHandler(J(0x102),g),process[J(0x168)](0x1);}}[a159z(0x170)]({srcPath:a,context:b,framework:c,config:d}){const K=a159z;try{let f=this[K(0x128)]({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this['engineAndTypeFromfilePath']({'filePath':f}),h=[K(0x186),K(0x179),'less',K(0x14d),'js',K(0x17f),'ts',K(0x107),K(0x18a),'env','yaml',K(0x148)],i=[K(0x112),K(0x193)];if(!this['fsi'][K(0x188)](f)){g===K(0x17f)&&(f=f['replace'](K(0x159),''));g===K(0x107)&&(f=f[K(0x14c)](K(0x13c),''));if(!this[K(0xfe)]['isFile'](f))throw new Error(K(0x132)+JSON[K(0x126)](f));}const j=f[K(0x127)]('.'),k=a159e[K(0x162)](f)[K(0x127)](a159e[K(0x153)]),l=k[k[K(0x122)]-0x1]===K(0x158),m=i[K(0x129)](j[j['length']-0x1]),n=a159f[K(0x184)](f);if(l)return a159i[K(0x10f)](n['toString'](),b)['trim']();if(m)return Buffer[K(0x12a)](n)[K(0x192)]('base64');if(!h[K(0x129)](j[j[K(0x122)]-0x1]))return n[K(0x192)]()[K(0x182)]();return a159i['render'](n[K(0x192)](),b||{})['trim']();}catch(o){errorHandler('templateContent()',o),process['exit'](0x1);}}async[a159z(0x148)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const L=a159z;try{const g=[L(0x112),L(0x193)],h=g[L(0x129)](a[L(0x127)]('.')[L(0x11a)]()||''),i=this[L(0x170)]({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.['noRename']?b=this[L(0x15d)]({'pathParts':[b],'config':d}):b=this[L(0x12e)]({'pathParts':[b],'config':d});const j=await this[L(0xfe)][L(0x16a)]({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler('template()',k),process[L(0x168)](0x1);}}async['copyTemplateDirectory']({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const M=a159z;try{const i=this[M(0x128)]({'pathParts':[a],'framework':g,'config':h}),j=this[M(0x128)]({'pathParts':[],'framework':g,'config':h}),k=n=>{const N=M;return n[N(0x14c)](j,'');},l=n=>{const O=M;return n[O(0x14c)](i,b);};await this[M(0xfe)][M(0x16b)]({'dirPath':b});const m=a159f[M(0x142)](i);for(const n of m){try{const o=a159e['join'](i,n),p=k(o),q=l(o),r=d[M(0x180)](t=>a159e[M(0x162)](t)),s=a159e[M(0x162)](a159e['join'](a,n));if(r[M(0x129)](s))continue;if(this['fsi'][M(0x140)](o))await this['copyTemplateDirectory']({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this[M(0xfe)][M(0x188)](o)&&this['isTemplateForEngine']({'pathParts':[o],'config':h}))await this[M(0x148)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f['indexOf'](a159e[M(0x105)](a,n))>=0x0&&this['fsi'][M(0x188)](o)&&(c[M(0x135)]=!![],await this[M(0x148)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c[M(0x135)]=![]);}}catch(t){console[M(0x13b)](t),process[M(0x168)](0x1);}}}catch(u){errorHandler(M(0x15e),u),process[M(0x168)](0x1);}}async[a159z(0x12b)]({filePath:a,content:b,opts:c}){const P=a159z;if(!a)throw new Error(P(0x15c));try{!this[P(0xfe)][P(0x188)](a)&&await this[P(0xfe)][P(0x16a)]({'filePath':a,'data':b});let d=a159f[P(0x184)](a,P(0x12f));d=b+'\x0a'+d,a159f['writeFileSync'](a,d),c?.[P(0x165)]&&Log['header'](treeSymbol+'\x20updated\x20file\x20'+a159e[P(0x10e)](process[P(0x169)](),a));}catch(f){errorHandler(P(0x196),f),process[P(0x168)](0x1);}}async[a159z(0x17c)]({filePath:a,content:b,opts:c}){const Q=a159z;try{if(!this[Q(0xfe)][Q(0x188)](a))await this[Q(0xfe)][Q(0x16a)]({'filePath':a,'data':b});else{let d=a159f[Q(0x184)](a,Q(0x12f));!d[Q(0x129)](b)&&(d=d+'\x0a'+b,a159f[Q(0x15f)](a,d)),c?.['verbose']&&Log[Q(0x124)](treeSymbol+Q(0x120)+a159e['relative'](process['cwd'](),a));}}catch(f){errorHandler(Q(0x11e),f),process[Q(0x168)](0x1);}}async[a159z(0x15a)]({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const R=a159z;try{if(!this['fsi'][R(0x188)](a))throw Log[R(0x13b)](R(0x118)+JSON[R(0x126)](a));const f=a159f[R(0x184)](a,R(0x12f)),g=f[R(0x14c)](/\r\n|\r/g,'\x0a'),h=g[R(0x127)]('\x0a'),j=this[R(0x10b)](h),k=b[R(0x14c)](/\r\n|\r/g,'\x0a')['split']('\x0a'),l=c[R(0x14c)](/\r\n|\r/g,'\x0a')[R(0x127)]('\x0a'),m=new RegExp(Array[R(0x108)](d)?d[R(0x105)]('|'):d,'i'),n=[];for(let p=0x0;p<h[R(0x122)];p++){const q=h[p];if(m[R(0x194)](q)){const r=this[R(0xfd)](j,targetIndentAdjustment),s=r+q['trim']();k['forEach'](t=>{!g['includes'](t['trim']())&&n['push'](this['adjustIndentation'](j,indentAdjustment)+t);}),n[R(0x172)](s),l['forEach'](t=>{const S=R;!g['includes'](t[S(0x182)]())&&n[S(0x172)](this['adjustIndentation'](j,indentAdjustment)+t);});}else n[R(0x172)](q);}const o=n[R(0x105)]('\x0a');a159f['writeFileSync'](a,o),Log['header'](treeSymbol+R(0x120)+a159e[R(0x10e)](process[R(0x169)](),a));}catch(t){errorHandler('injectAroundString()',t),process[R(0x168)](0x1);}}[a159z(0xfd)](a,b){const T=a159z;if(b===0x0)return a;const c=a['length']+b;return c>0x0?a[0x0][T(0x100)](c):'';}[a159z(0x10b)](a){const U=a159z;let b=0x0,c=0x0;a[U(0x111)](f=>{const V=U;if(f[V(0x136)]('\x20'))b++;else f[V(0x136)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[U(0x103)](a,d);return d['repeat'](e);}[a159z(0x103)](a,b){const W=a159z,c=a[W(0x18e)](d=>d&&d[W(0x136)](b))['map'](d=>{const e=d['match'](new RegExp('^'+b+'+'));return e?e[0x0]['length']:0x0;});if(c['length']===0x0)return 0x0;return this[W(0xfb)](c);}[a159z(0xfb)](a){const X=a159z,b=a[X(0x16d)]((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object['keys'](b)[X(0x16d)]((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async[a159z(0x133)]({filePath:a,content:b,begin:c,replace:replace=![]}){const Y=a159z;try{if(!this[Y(0xfe)][Y(0x188)](a))throw new Error(Y(0x191)+a);const d=a159f[Y(0x184)](a,Y(0x12f)),f=d['split']('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array[Y(0x108)](c)?c:[c];for(let o=0x0;o<f[Y(0x122)];o++){const p=f[o];k&&p[Y(0x129)]('{')&&j++;if(m['some'](q=>p['includes'](q))){g=o,k=!![],j++;continue;}if(k){p[Y(0x129)](b[Y(0x182)]())&&(l=!![]);if(p[Y(0x129)]('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[Y(0x13b)](Y(0x10d)+a),Log['error'](Y(0x146)+b),Log[Y(0x13b)](Y(0x13d)+c);throw new Error(Y(0x177));}if(l)return;let n=f[Y(0x198)](0x0,g+0x1);replace?(n['push'](b[Y(0x182)]()),n['push'](f[h])):(n=n['concat'](f[Y(0x198)](g+0x1,h)),n[Y(0x172)](b[Y(0x182)]())),n=n[Y(0x149)](f[Y(0x198)](h+0x1)),a159f['writeFileSync'](a,n[Y(0x105)]('\x0a'),Y(0x12f));}catch(q){console['error'](Y(0x14a),q);throw q;}}async[a159z(0x13e)]({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const Z=a159z;try{const g=await this[Z(0xfe)][Z(0x17a)](a,c);if(g)return;if(!this[Z(0xfe)][Z(0x188)](a))throw Log[Z(0x13b)](Z(0x139)+JSON['stringify'](a));const h=a159f[Z(0x184)](a,Z(0x12f));if(!Array['isArray'](d))d=[d];if(!Array[Z(0x108)](f))f=[f];let i=h,j=![];for(const k of d){for(const l of f){const m=new RegExp('('+k+'[\x5cs\x5cS]*?)('+l+')','i');i=h[Z(0x14c)](m,(n,o,p)=>{return j=!![],replace?''+o+c+p:''+o+c+'\x0a'+p;});if(j)break;}if(j)break;}if(!j)throw new Error(Z(0x164));a159f[Z(0x15f)](a,i),Log[Z(0x124)](treeSymbol+Z(0x120)+a159e[Z(0x10e)](process['cwd'](),a));}catch(n){errorHandler('injectIntoFile()',n),process[Z(0x168)](0x1);}}async['injectImport']({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const a0=a159z;try{const f=a159f[a0(0x184)](a,a0(0x12f));let g;d?g='import\x20{\x20'+b+'\x20}\x20from\x20\x27'+c+a0(0x161):g=a0(0x18b)+b+'\x20from\x20\x27'+c+a0(0x161);const h=f[a0(0x127)]('\x0a');let j=0x0,k=![];for(const m of h){if(m[a0(0x129)](a0(0x114)+c+'\x27')||m['includes'](a0(0x167)+c+'\x22')){const n=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(a0(0x18b)+b+'\x20from');if(m[a0(0x181)](n)){k=!![];break;}}}if(k)return;if(injectAtStart)for(let o=0x0;o<h[a0(0x122)];o++){if(h[o][a0(0x181)](/^import .* from .*;$/)){j=o;break;}}else{for(let p=0x0;p<h[a0(0x122)];p++){h[p]['match'](/^import .* from .*;$/)&&(j=p);}j++;}h[a0(0x115)](j,0x0,g);const l=h[a0(0x105)]('\x0a');a159f[a0(0x15f)](a,l,a0(0x12f));}catch(q){errorHandler(a0(0x13a),q),process[a0(0x168)](0x1);}}async[a159z(0x18c)](a,b,c){const a1=a159z;try{let d;b['engines'][a1(0x18f)]!=='none'?d=this[a1(0x143)]({'pathParts':[a1(0x156),a1(0x166),'lib',a1(0x119)],'config':b}):d=this['pathFromApp']({'pathParts':['imports',a1(0x166),'client','templates.js'],'config':b});const f=this[a1(0x12e)]({'pathParts':[d],'config':b}),g='export\x20{\x20'+pascalCase(a)+a1(0x104)+c+'\x27;',h=await this[a1(0xfe)][a1(0x17a)](f,g);!h&&this[a1(0x17c)]({'filePath':f,'content':g+'\x0a'});}catch(i){errorHandler(a1(0x154),i),process['exit'](0x1);}}[a159z(0x16c)]({filePath:a,content:b,lineNumber:c}){const a2=a159z;try{const d=a159f[a2(0x184)](a)['toString']()[a2(0x127)]('\x0a');d['splice'](c,0x0,b);const f=d[a2(0x105)]('\x0a');a159f[a2(0x15f)](a,f);}catch(g){errorHandler(a2(0x152),g),process[a2(0x168)](0x1);}}[a159z(0x143)]({pathParts:a,config:b}){const a3=a159z;try{if(!a)throw new Error(a3(0x183));const c=this[a3(0x155)]({'pathParts':a,'config':b}),d=this[a3(0xfe)][a3(0x18d)]();return d?a159e[a3(0x105)](d,c):'';}catch(f){errorHandler(a3(0x131),f),process['exit'](0x1);}}[a159z(0x160)]({pathParts:a,config:b}){const a4=a159z;try{const c=this['writeSourcePath']({'pathParts':a,'config':b}),d=this[a4(0xfe)][a4(0x18d)]();if(!d)throw new Error(a4(0x137));return a159e[a4(0x105)](d,c);}catch(f){errorHandler('pathFromAppWithNoReWrite()',f),process[a4(0x168)](0x1);}}}
@@ -1 +1 @@
1
- const a160m=a160d;function a160d(a,b){const c=a160c();return a160d=function(d,e){d=d-0x1b5;let f=c[d];return f;},a160d(a,b);}(function(a,b){const j=a160d,c=a();while(!![]){try{const d=parseInt(j(0x1b6))/0x1+parseInt(j(0x1c8))/0x2*(-parseInt(j(0x1bc))/0x3)+-parseInt(j(0x1d0))/0x4*(parseInt(j(0x1cd))/0x5)+parseInt(j(0x1ba))/0x6+parseInt(j(0x1be))/0x7*(parseInt(j(0x1b5))/0x8)+-parseInt(j(0x1c4))/0x9+parseInt(j(0x1c6))/0xa*(parseInt(j(0x1bd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a160c,0x34f05));const a160b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a160d;if(c){const e=c[k(0x1bf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a160a=a160b(this,function(){const l=a160d;return a160a['toString']()[l(0x1b8)]('(((.+)+)+)+$')['toString']()[l(0x1ce)](a160a)[l(0x1b8)]('(((.+)+)+)+$');});a160a();import{spawn}from'child_process';import{Log}from'../log/log.class.js';export class SpawnAsync{static[a160m(0x1c0)](a,b,c){return new Promise((d,e)=>{const n=a160d,f=Log[n(0x1c0)](),g=c?.[n(0x1c7)]||'.';c?.['message']&&f['start'](c?.[n(0x1c2)]);const h=spawn(a,b,{'cwd':g,'stdio':c?.[n(0x1cf)]?n(0x1c3):n(0x1c9)});process['on'](n(0x1b9),()=>{const o=n,i=h['pid'];i&&process[o(0x1cb)](i);}),h['on'](n(0x1b7),i=>{const p=n;console[p(0x1ca)](i);}),h['on'](n(0x1cc),()=>{c?.['message']&&f['success'](),d();}),h['on'](n(0x1c1),()=>{const q=n;c?.[q(0x1c2)]&&f[q(0x1d1)](),d();}),h['on'](n(0x1bb),()=>{const r=n;c?.[r(0x1c2)]&&f[r(0x1c5)](),e();});});}}function a160c(){const s=['verbose','8FyirJf','success','492520EMogXg','171937pleBmT','data','search','SIGINT','575130LTcesa','error','609EDiwrz','5962cGEtCE','35gnzGPS','apply','withSpinner','close','message','inherit','3439917vxzagw','failure','10090UQnwYo','cwd','4106DlVBXd','ignore','log','kill','disconnect','266715CwyYyW','constructor'];a160c=function(){return s;};return a160c();}
1
+ (function(a,b){const j=a160d,c=a();while(!![]){try{const d=parseInt(j(0x1ec))/0x1+-parseInt(j(0x1f4))/0x2*(-parseInt(j(0x1f2))/0x3)+parseInt(j(0x1ea))/0x4+-parseInt(j(0x1df))/0x5*(parseInt(j(0x1f3))/0x6)+parseInt(j(0x1e0))/0x7*(-parseInt(j(0x1e9))/0x8)+-parseInt(j(0x1eb))/0x9*(-parseInt(j(0x1f6))/0xa)+-parseInt(j(0x1f5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a160c,0x65030));const a160b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a160d;if(c){const e=c[k(0x1f8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a160a=a160b(this,function(){const l=a160d;return a160a[l(0x1e2)]()[l(0x1dd)](l(0x1de))['toString']()[l(0x1e8)](a160a)[l(0x1dd)](l(0x1de));});a160a();function a160c(){const r=['441468jFuHrT','16029kESJeg','420014DWEANp','cwd','kill','success','pid','log','48849Oodflu','568968toxHRT','86yxFwlc','10694552TaaheU','2610RizJcQ','start','apply','ignore','message','verbose','search','(((.+)+)+)+$','5dljHwL','500703oBckDE','error','toString','disconnect','withSpinner','SIGINT','close','data','constructor','24fbSMfG'];a160c=function(){return r;};return a160c();}import{spawn}from'child_process';import{Log}from'../log/log.class.js';function a160d(a,b){const c=a160c();return a160d=function(d,e){d=d-0x1dd;let f=c[d];return f;},a160d(a,b);}export class SpawnAsync{static['withSpinner'](a,b,c){return new Promise((d,e)=>{const m=a160d,f=Log[m(0x1e4)](),g=c?.[m(0x1ed)]||'.';c?.[m(0x1fa)]&&f[m(0x1f7)](c?.[m(0x1fa)]);const h=spawn(a,b,{'cwd':g,'stdio':c?.[m(0x1fb)]?'inherit':m(0x1f9)});process['on'](m(0x1e5),()=>{const n=m,i=h[n(0x1f0)];i&&process[n(0x1ee)](i);}),h['on'](m(0x1e7),i=>{const o=m;console[o(0x1f1)](i);}),h['on'](m(0x1e3),()=>{const p=m;c?.['message']&&f[p(0x1ef)](),d();}),h['on'](m(0x1e6),()=>{const q=m;c?.[q(0x1fa)]&&f[q(0x1ef)](),d();}),h['on'](m(0x1e1),()=>{c?.['message']&&f['failure'](),e();});});}}
@@ -1 +1 @@
1
- function a161c(){var i=['15kKuVSg','899128rsKOPj','toString','2xHvrwV','5517870vMTjCI','516621BWkImG','3435966qcsdeD','7eZwUyh','6701010APWsMH','search','(((.+)+)+)+$','2724867UcziTw','10340832eEFXvt','apply'];a161c=function(){return i;};return a161c();}(function(a,b){var f=a161d,c=a();while(!![]){try{var d=-parseInt(f(0x13e))/0x1*(-parseInt(f(0x13c))/0x2)+parseInt(f(0x136))/0x3+-parseInt(f(0x13a))/0x4*(parseInt(f(0x139))/0x5)+-parseInt(f(0x13d))/0x6*(-parseInt(f(0x140))/0x7)+-parseInt(f(0x137))/0x8+-parseInt(f(0x13f))/0x9+parseInt(f(0x141))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a161c,0xa294c));var a161b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a161d;if(c){var e=c[g(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a161a=a161b(this,function(){var h=a161d;return a161a[h(0x13b)]()[h(0x142)](h(0x143))[h(0x13b)]()['constructor'](a161a)[h(0x142)](h(0x143));});a161a();function a161d(a,b){var c=a161c();return a161d=function(d,e){d=d-0x136;var f=c[d];return f;},a161d(a,b);}export{};
1
+ (function(a,b){var f=a161d,c=a();while(!![]){try{var d=-parseInt(f(0x15d))/0x1+-parseInt(f(0x160))/0x2+parseInt(f(0x162))/0x3+parseInt(f(0x15a))/0x4*(-parseInt(f(0x168))/0x5)+-parseInt(f(0x163))/0x6+-parseInt(f(0x15b))/0x7*(parseInt(f(0x15c))/0x8)+-parseInt(f(0x15e))/0x9*(-parseInt(f(0x165))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a161c,0xe5883));var a161b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a161d;if(c){var e=c[g(0x15f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a161a=a161b(this,function(){var h=a161d;return a161a[h(0x161)]()['search'](h(0x167))['toString']()[h(0x166)](a161a)[h(0x164)]('(((.+)+)+)+$');});function a161d(a,b){var c=a161c();return a161d=function(d,e){d=d-0x15a;var f=c[d];return f;},a161d(a,b);}a161a();function a161c(){var i=['869033XVpUtw','4896JFwuJb','apply','3173290ZLeRiS','toString','4434435BYHMBB','5089572CyvLsZ','search','95240BqCmUI','constructor','(((.+)+)+)+$','145QPCrUL','161748PhndUF','35WQPKFR','1987880yTqWyk'];a161c=function(){return i;};return a161c();}export{};
@@ -1 +1 @@
1
- const a162p=a162d;(function(a,b){const m=a162d,c=a();while(!![]){try{const d=parseInt(m(0x73))/0x1*(parseInt(m(0x88))/0x2)+parseInt(m(0x97))/0x3+parseInt(m(0x7f))/0x4*(parseInt(m(0x89))/0x5)+parseInt(m(0x70))/0x6+parseInt(m(0x72))/0x7*(parseInt(m(0x82))/0x8)+-parseInt(m(0x78))/0x9+-parseInt(m(0x8e))/0xa*(parseInt(m(0x83))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0x5ec23));function a162c(){const x=['push','verbose','scp','user','2FVCKeB','71815UlTHpt','withSpinner','toString','host','apply','3070MMAWym','error','search','success','ping','disconnect','sshVerbose','ignore','message','153375VZrORG','source','start','4303308rZzYzC','close','49HFqjDY','205915kPwhRQ','concat','2>&1','port','tty','3405708yNtUnp','inherit','sshSync','ConnectTimeout=2','constructor','env','(((.+)+)+)+$','172xUbSoD','join','ssh','23384MgCMph','30305DFLeXv'];a162c=function(){return x;};return a162c();}const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a162d;if(c){const e=c[n(0x8d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const o=a162d;return a162a['toString']()[o(0x90)](o(0x7e))[o(0x8b)]()[o(0x7c)](a162a)['search'](o(0x7e));});a162a();import a162e from'path';import{execSync,spawnSync,spawn}from'child_process';import{Log}from'../log/log.class.js';function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0x70;let f=c[d];return f;},a162d(a,b);}export class SSH{static [a162p(0x81)]=(a,b,c)=>{return new Promise((d,e)=>{const q=a162d,f=b['user']+'@'+b[q(0x8c)],g=a162e[q(0x80)](b['env'],b['pem']),h=c?.[q(0x77)]||![],i=c?.['sshVerbose']||![];let j=[];h&&j['push']('-t');i&&j[q(0x84)]('-v');j=j['concat'](['-o',q(0x7b),'-i',g,'-p',b[q(0x76)],f,a]);const k=Log[q(0x8a)]();c?.[q(0x96)]&&k[q(0x99)](c?.[q(0x96)]);const l=spawn(q(0x81),j,{'stdio':c?.[q(0x85)]?q(0x79):'ignore'});l['on'](q(0x93),()=>{const r=q;c?.[r(0x96)]&&k[r(0x91)](),d();}),l['on'](q(0x71),()=>{const s=q;c?.[s(0x96)]&&k[s(0x91)](),d();}),l['on'](q(0x8f),()=>{const t=q;c?.[t(0x96)]&&k['failure'](),e();});});};static [a162p(0x7a)]=(a,b,c)=>{const u=a162p,d=b['user']+'@'+b[u(0x8c)],e=a162e[u(0x80)](b['env'],b['pem']),f=c?.['tty']||![],g=c?.[u(0x94)]||![];let h=[];f&&h[u(0x84)]('-t'),g&&h[u(0x84)]('-v'),h=h[u(0x74)](['-o',u(0x7b),'-i',e,'-p',b[u(0x76)],d,a]),spawnSync(u(0x81),h,{'stdio':c?.[u(0x85)]?u(0x79):u(0x95)});};static[a162p(0x92)](a,b,c){const v=a162p,d=b[v(0x87)]+'@'+b['host'],e=a162e[v(0x80)](b[v(0x7d)],b['pem']),f=c?.[v(0x77)]||![];let g=[];f&&g['push']('-t');g=g['concat'](['-o',v(0x7b),'-i',e,'-p',b[v(0x76)],d,a,v(0x75)]);const h='ssh\x20'+g[v(0x80)]('\x20');return execSync(h)[v(0x8b)]();}static[a162p(0x86)](a,b){const w=a162p,c=b[w(0x87)]+'@'+b[w(0x8c)]+':'+a['dest'],d=a162e['join'](b[w(0x7d)],b['pem']),e=['-i',d,'-P',b[w(0x76)],a[w(0x98)],c];spawnSync(w(0x86),e,{'stdio':a[w(0x85)]?w(0x79):w(0x95)});}}
1
+ const a162p=a162d;(function(a,b){const m=a162d,c=a();while(!![]){try{const d=parseInt(m(0x7a))/0x1+-parseInt(m(0x78))/0x2*(-parseInt(m(0x6b))/0x3)+-parseInt(m(0x6f))/0x4+parseInt(m(0x80))/0x5+parseInt(m(0x7d))/0x6*(parseInt(m(0x75))/0x7)+parseInt(m(0x76))/0x8+parseInt(m(0x8d))/0x9*(-parseInt(m(0x7e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0xb61b3));function a162c(){const x=['error','push','3036800tYiaLH','host','tty','(((.+)+)+)+$','env','apply','4459301zCHObw','8726896GnJmrV','pem','4yecLec','search','55377vvBpAj','port','constructor','12rFkuWl','25443350rzajZq','ssh','4008295wQTPJU','source','toString','disconnect','verbose','user','sshSync','failure','success','sshVerbose','join','withSpinner','concat','9OguoUq','message','scp','ignore','inherit','ConnectTimeout=2','ssh\x20','1241187kcDbeJ','dest'];a162c=function(){return x;};return a162c();}const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a162d;if(c){const e=c[n(0x74)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const o=a162d;return a162a[o(0x82)]()[o(0x79)]('(((.+)+)+)+$')['toString']()[o(0x7c)](a162a)[o(0x79)](o(0x72));});a162a();import a162e from'path';function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0x66;let f=c[d];return f;},a162d(a,b);}import{execSync,spawnSync,spawn}from'child_process';import{Log}from'../log/log.class.js';export class SSH{static [a162p(0x7f)]=(a,b,c)=>{return new Promise((d,e)=>{const q=a162d,f=b[q(0x85)]+'@'+b[q(0x70)],g=a162e[q(0x8a)](b[q(0x73)],b[q(0x77)]),h=c?.['tty']||![],i=c?.[q(0x89)]||![];let j=[];h&&j[q(0x6e)]('-t');i&&j[q(0x6e)]('-v');j=j['concat'](['-o','ConnectTimeout=2','-i',g,'-p',b[q(0x7b)],f,a]);const k=Log[q(0x8b)]();c?.[q(0x8e)]&&k['start'](c?.[q(0x8e)]);const l=spawn(q(0x7f),j,{'stdio':c?.['verbose']?q(0x68):q(0x67)});l['on'](q(0x83),()=>{const r=q;c?.[r(0x8e)]&&k[r(0x88)](),d();}),l['on']('close',()=>{const s=q;c?.[s(0x8e)]&&k[s(0x88)](),d();}),l['on'](q(0x6d),()=>{const t=q;c?.[t(0x8e)]&&k[t(0x87)](),e();});});};static [a162p(0x86)]=(a,b,c)=>{const u=a162p,d=b[u(0x85)]+'@'+b['host'],e=a162e[u(0x8a)](b[u(0x73)],b[u(0x77)]),f=c?.[u(0x71)]||![],g=c?.['sshVerbose']||![];let h=[];f&&h['push']('-t'),g&&h[u(0x6e)]('-v'),h=h['concat'](['-o',u(0x69),'-i',e,'-p',b[u(0x7b)],d,a]),spawnSync(u(0x7f),h,{'stdio':c?.['verbose']?u(0x68):'ignore'});};static['ping'](a,b,c){const v=a162p,d=b[v(0x85)]+'@'+b[v(0x70)],e=a162e[v(0x8a)](b[v(0x73)],b[v(0x77)]),f=c?.[v(0x71)]||![];let g=[];f&&g[v(0x6e)]('-t');g=g[v(0x8c)](['-o','ConnectTimeout=2','-i',e,'-p',b[v(0x7b)],d,a,'2>&1']);const h=v(0x6a)+g[v(0x8a)]('\x20');return execSync(h)[v(0x82)]();}static['scp'](a,b){const w=a162p,c=b[w(0x85)]+'@'+b[w(0x70)]+':'+a[w(0x6c)],d=a162e[w(0x8a)](b['env'],b[w(0x77)]),e=['-i',d,'-P',b['port'],a[w(0x81)],c];spawnSync(w(0x66),e,{'stdio':a[w(0x84)]?w(0x68):'ignore'});}}
@@ -1 +1 @@
1
- function a163d(a,b){var c=a163c();return a163d=function(d,e){d=d-0x12b;var f=c[d];return f;},a163d(a,b);}(function(a,b){var f=a163d,c=a();while(!![]){try{var d=-parseInt(f(0x12d))/0x1+parseInt(f(0x137))/0x2*(-parseInt(f(0x12f))/0x3)+parseInt(f(0x138))/0x4*(-parseInt(f(0x133))/0x5)+parseInt(f(0x12b))/0x6*(parseInt(f(0x134))/0x7)+parseInt(f(0x13a))/0x8+parseInt(f(0x13b))/0x9*(-parseInt(f(0x139))/0xa)+-parseInt(f(0x135))/0xb*(-parseInt(f(0x136))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a163c,0x3a901));var a163b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a163d;if(c){var e=c[g(0x130)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a163a=a163b(this,function(){var h=a163d;return a163a[h(0x131)]()[h(0x12c)](h(0x12e))[h(0x131)]()[h(0x132)](a163a)['search']('(((.+)+)+)+$');});function a163c(){var i=['apply','toString','constructor','112355EvaXRQ','2091628YcIUaY','2167JxYEjd','54204EoLocg','336146oIIwnU','44kRxeKH','1667390VIcRvE','566248ZqldnB','9kSBJvW','6hHJAhq','search','437568mYOZdY','(((.+)+)+)+$','3rczPry'];a163c=function(){return i;};return a163c();}a163a();export{};
1
+ function a163d(a,b){var c=a163c();return a163d=function(d,e){d=d-0x90;var f=c[d];return f;},a163d(a,b);}(function(a,b){var f=a163d,c=a();while(!![]){try{var d=parseInt(f(0x95))/0x1*(parseInt(f(0xa0))/0x2)+parseInt(f(0x9d))/0x3*(-parseInt(f(0x92))/0x4)+parseInt(f(0x9e))/0x5*(parseInt(f(0x9c))/0x6)+-parseInt(f(0x97))/0x7+parseInt(f(0x99))/0x8*(parseInt(f(0x9a))/0x9)+-parseInt(f(0x9b))/0xa+parseInt(f(0x90))/0xb*(parseInt(f(0x9f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a163c,0xce062));var a163b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a163d;if(c){var e=c[g(0x94)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a163a=a163b(this,function(){var h=a163d;return a163a[h(0x96)]()[h(0x98)](h(0x91))[h(0x96)]()[h(0x93)](a163a)[h(0x98)](h(0x91));});a163a();function a163c(){var i=['25FJEKdq','1008BWRvwM','74BPPZYU','247841nwdPuP','(((.+)+)+)+$','2384552TbksJj','constructor','apply','27241zcysfW','toString','1459913tZOExQ','search','1514024IrQyRt','36rLeNYr','15877290hxmQVl','209886PDLmyw','6arvHyS'];a163c=function(){return i;};return a163c();}export{};
@@ -1 +1 @@
1
- const a164j=a164d;(function(a,b){const f=a164d,c=a();while(!![]){try{const d=parseInt(f(0x77))/0x1+-parseInt(f(0x8f))/0x2+-parseInt(f(0x86))/0x3*(parseInt(f(0x73))/0x4)+-parseInt(f(0x78))/0x5+-parseInt(f(0x79))/0x6+-parseInt(f(0x7f))/0x7+parseInt(f(0x72))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a164c,0xec60c));function a164c(){const l=['inherit','useConfig','-out','-config','3191153kkDkWs','toString','-x509','cwd','-new','search','(((.+)+)+)+$','59238iNQdzK','req','rsa:2048','push','keyName','openssl.conf','crtName','-newkey','genSSC','2218592RqAfJp','apply','26423928aYTXPH','288EenUea','-key','-nodes','csrName','1815468BSlzoz','4316755dSTjum','1800102dyuPmz','openssl'];a164c=function(){return l;};return a164c();}const a164b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a164d;if(c){const e=c[g(0x90)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a164a=a164b(this,function(){const h=a164d;return a164a[h(0x80)]()[h(0x84)](h(0x85))[h(0x80)]()['constructor'](a164a)[h(0x84)]('(((.+)+)+)+$');});a164a();import{spawnSync}from'child_process';function a164d(a,b){const c=a164c();return a164d=function(d,e){d=d-0x72;let f=c[d];return f;},a164d(a,b);}export class SSL{static['genCSR'](a){const i=a164d,b=a['cwd']?a[i(0x82)]:process[i(0x82)](),c=[i(0x87),i(0x83),i(0x8d),i(0x88),i(0x75),'-keyout',a[i(0x8a)],i(0x7d),a[i(0x76)]];a[i(0x7c)]&&(c[i(0x89)](i(0x7e)),c[i(0x89)]('openssl.conf')),a[i(0x7c)]?spawnSync(i(0x7a),c,{'cwd':b}):spawnSync(i(0x7a),c,{'stdio':i(0x7b),'cwd':b});}static[a164j(0x8e)](a){const k=a164j,b=a[k(0x82)]?a[k(0x82)]:process['cwd'](),c=['req',k(0x81),k(0x83),k(0x74),a[k(0x8a)],k(0x7d),a[k(0x8c)]];a[k(0x7c)]&&(c[k(0x89)](k(0x7e)),c[k(0x89)](k(0x8b))),a['useConfig']?spawnSync(k(0x7a),c,{'cwd':b}):spawnSync(k(0x7a),c,{'stdio':k(0x7b),'cwd':b});}}
1
+ const a164i=a164d;(function(a,b){const f=a164d,c=a();while(!![]){try{const d=parseInt(f(0x13e))/0x1*(-parseInt(f(0x143))/0x2)+-parseInt(f(0x13b))/0x3+parseInt(f(0x151))/0x4*(parseInt(f(0x157))/0x5)+-parseInt(f(0x158))/0x6*(parseInt(f(0x153))/0x7)+-parseInt(f(0x14f))/0x8*(-parseInt(f(0x141))/0x9)+parseInt(f(0x14c))/0xa*(-parseInt(f(0x144))/0xb)+-parseInt(f(0x147))/0xc*(-parseInt(f(0x159))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a164c,0x6a409));const a164b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a164d;if(c){const e=c[g(0x15b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a164a=a164b(this,function(){const h=a164d;return a164a[h(0x14b)]()[h(0x14d)](h(0x15a))[h(0x14b)]()['constructor'](a164a)['search'](h(0x15a));});function a164d(a,b){const c=a164c();return a164d=function(d,e){d=d-0x136;let f=c[d];return f;},a164d(a,b);}a164a();import{spawnSync}from'child_process';function a164c(){const l=['req','useConfig','33960ItHLJP','187548jkQfNd','5189132wCkSLl','(((.+)+)+)+$','apply','genSSC','rsa:2048','cwd','-nodes','-key','254886iWOnAq','push','-out','48247ZWlHlM','-config','keyName','2465343wVlgBP','inherit','34YiBdyw','352kXMtCV','-new','genCSR','12zTDynU','-keyout','openssl.conf','-x509','toString','29030plsaon','search','-newkey','16VvGjdY','openssl','360ZucvCc','csrName','28KkNYDj','crtName'];a164c=function(){return l;};return a164c();}export class SSL{static[a164i(0x146)](a){const j=a164i,b=a[j(0x138)]?a[j(0x138)]:process[j(0x138)](),c=[j(0x155),j(0x145),j(0x14e),j(0x137),j(0x139),j(0x148),a['keyName'],j(0x13d),a[j(0x152)]];a[j(0x156)]&&(c[j(0x13c)]('-config'),c[j(0x13c)](j(0x149))),a[j(0x156)]?spawnSync(j(0x150),c,{'cwd':b}):spawnSync(j(0x150),c,{'stdio':j(0x142),'cwd':b});}static[a164i(0x136)](a){const k=a164i,b=a[k(0x138)]?a[k(0x138)]:process[k(0x138)](),c=['req',k(0x14a),k(0x145),k(0x13a),a[k(0x140)],k(0x13d),a[k(0x154)]];a[k(0x156)]&&(c[k(0x13c)](k(0x13f)),c['push'](k(0x149))),a[k(0x156)]?spawnSync(k(0x150),c,{'cwd':b}):spawnSync(k(0x150),c,{'stdio':k(0x142),'cwd':b});}}
Binary file
@@ -0,0 +1,19 @@
1
+ import globals from "globals";
2
+ import pluginJs from "@eslint/js";
3
+ import tseslint from "typescript-eslint";
4
+
5
+
6
+ export default [
7
+ {files: ["**/*.{js,mjs,cjs,ts}"]},
8
+ {languageOptions: { globals: globals.browser }},
9
+ pluginJs.configs.recommended,
10
+ ...tseslint.configs.recommended,
11
+ {
12
+ rules: {
13
+ "@typescript-eslint/no-explicit-any": "off",
14
+ },
15
+ },
16
+ {
17
+ ignores: ["src/templates/**/*"]
18
+ }
19
+ ];
Binary file
Binary file
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "5.0.21",
3
+ "version": "5.0.24",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
7
7
  "homepage": "https://github.com/maka-io/maka-cli",
8
8
  "main": "./bundle/typescript/src/maka.js",
9
- "files": "",
10
9
  "bin": {
11
10
  "maka": "./bundle/obf/src/exec.js"
12
11
  },
@@ -23,7 +22,7 @@
23
22
  "maka": "./typescript/src/maka.js",
24
23
  "test": "jest",
25
24
  "develop": "npm run build && concurrently \"tsc -w\" \"wait-on -d 10 ./bundle/typescript/src/exec.js && chmod +x ./bundle/typescript/src/exec.js\" \"cp -R ./src/templates ./bundle/typescript/src/templates/\"",
26
- "build": "npm run lint && rm -rf ./bundle && rm -rf ./compiled && tsc && npm run obf && npm run prep",
25
+ "build": "rm -rf ./bundle && rm -rf ./compiled && tsc && npm run obf && npm run prep",
27
26
  "obf": "javascript-obfuscator ./bundle/typescript/src --exclude=bundle/typescript/src/templates/**/** --output ./bundle/obf/src/ --config=obfuscator.json",
28
27
  "prep": " cp -R ./src/templates ./bundle/obf/src/ && cp ./README.md ./bundle/obf/src/ && cp ./package.json ./bundle/obf/ && chmod +x ./bundle/obf/src/exec.js",
29
28
  "//": "## es-build, and package are still experimental",
@@ -35,77 +34,75 @@
35
34
  "author": "Maka <maka@maka-cli.com>",
36
35
  "license": "MIT",
37
36
  "dependencies": {
38
- "@aws-sdk/client-ec2": "^3.414.0",
39
- "@aws-sdk/client-ecr": "^3.414.0",
40
- "@aws-sdk/client-route-53": "^3.414.0",
41
- "@aws-sdk/client-route-53-domains": "^3.414.0",
42
- "@maka/tar": "^6.2.1",
37
+ "@aws-sdk/client-ec2": "^3.637.0",
38
+ "@aws-sdk/client-ecr": "^3.637.0",
39
+ "@aws-sdk/client-route-53": "^3.637.0",
40
+ "@aws-sdk/client-route-53-domains": "^3.637.0",
41
+ "@inquirer/prompts": "^5.3.8",
42
+ "@maka/tar": "^6.2.2",
43
43
  "blessed": "^0.1.81",
44
- "change-case": "^4.1.2",
45
- "cli-color": "^2.0.3",
46
- "cli-cursor": "^4.0.0",
44
+ "change-case": "^5.4.4",
45
+ "cli-color": "^2.0.4",
46
+ "cli-cursor": "^5.0.0",
47
47
  "cli-table": "^0.3.11",
48
- "date-fns": "^3.1.0",
49
- "delete": "^1.1.0",
50
- "dotenv": "^16.3.1",
51
- "ejs": "^3.1.9",
48
+ "date-fns": "^3.6.0",
49
+ "delete": "github:maka-io/delete",
50
+ "dotenv": "^16.4.5",
51
+ "ejs": "^3.1.10",
52
52
  "elegant-spinner": "^3.0.0",
53
- "eslint": "^8.49.0",
53
+ "eslint": "^9.9.1",
54
54
  "http-proxy": "^1.18.1",
55
55
  "humps": "^2.0.1",
56
- "inquirer": "^9.2.11",
57
56
  "jsonwebtoken": "^9.0.2",
58
- "latest-version": "^7.0.0",
57
+ "latest-version": "^9.0.0",
59
58
  "minimist": "^1.2.8",
60
59
  "node-forge": "^1.3.1",
61
- "open": "^9.1.0",
62
- "rimraf": "^5.0.1",
63
- "semver": "^7.5.4",
60
+ "open": "^10.1.0",
61
+ "rimraf": "^6.0.1",
62
+ "semver": "^7.6.3",
64
63
  "single-line-log2": "^1.1.3",
65
64
  "slash": "^5.1.0",
66
65
  "spawn-args": "0.2.0",
67
- "tar": "^6.2.1",
68
- "uuid": "^9.0.1",
66
+ "tar": "^7.4.3",
67
+ "type-fest": "^4.25.0",
68
+ "uuid": "^10.0.0",
69
69
  "xtend": "^4.0.2"
70
70
  },
71
71
  "devDependencies": {
72
- "@aws-sdk/types": "^3.413.0",
73
- "@types/blessed": "^0.1.23",
74
- "@types/chai": "^4.3.6",
75
- "@types/change-case": "^2.3.1",
76
- "@types/cli-color": "^2.0.3",
77
- "@types/cli-table": "^0.3.2",
78
- "@types/ejs": "^3.1.2",
79
- "@types/eslint": "^8.44.2",
80
- "@types/fibers": "^3.1.2",
81
- "@types/http-proxy": "^1.17.12",
82
- "@types/humps": "^2.0.4",
83
- "@types/inquirer": "^9.0.3",
84
- "@types/jest": "^29.5.5",
85
- "@types/jsonwebtoken": "^9.0.3",
86
- "@types/meteor": "^2.9.4",
87
- "@types/minimist": "^1.2.2",
88
- "@types/node": "^20.6.2",
89
- "@types/react": "^18.2.21",
90
- "@types/react-dom": "^18.2.7",
91
- "@types/uuid": "^9.0.4",
92
- "@typescript-eslint/eslint-plugin": "^6.7.0",
93
- "@typescript-eslint/parser": "^6.7.0",
94
- "aws-sdk": "^2.1459.0",
95
- "chai": "^4.3.8",
72
+ "@aws-sdk/types": "^3.609.0",
73
+ "@eslint/js": "^9.9.1",
74
+ "@types/blessed": "^0.1.25",
75
+ "@types/chai": "^4.3.18",
76
+ "@types/cli-color": "^2.0.6",
77
+ "@types/cli-table": "^0.3.4",
78
+ "@types/ejs": "^3.1.5",
79
+ "@types/fibers": "^3.1.4",
80
+ "@types/http-proxy": "^1.17.15",
81
+ "@types/humps": "^2.0.6",
82
+ "@types/inquirer": "^9.0.7",
83
+ "@types/jest": "^29.5.12",
84
+ "@types/jsonwebtoken": "^9.0.6",
85
+ "@types/meteor": "^2.9.8",
86
+ "@types/minimist": "^1.2.5",
87
+ "@types/node": "^22.5.0",
88
+ "@types/react": "^18.3.4",
89
+ "@types/react-dom": "^18.3.0",
90
+ "@types/uuid": "^10.0.0",
91
+ "aws-sdk": "^2.1682.0",
92
+ "chai": "^5.1.1",
96
93
  "chdir": "^0.0.0",
97
94
  "concat-stream": "^2.0.0",
98
- "concurrently": "^8.2.1",
99
- "esbuild": "^0.19.3",
100
- "eslint-config-airbnb-base": "^15.0.0",
101
- "eslint-plugin-import": "^2.28.1",
102
- "husky": "^8.0.3",
103
- "javascript-obfuscator": "^4.1.0",
95
+ "concurrently": "^8.2.2",
96
+ "esbuild": "^0.23.1",
97
+ "globals": "^15.9.0",
98
+ "husky": "^9.1.5",
99
+ "javascript-obfuscator": "^4.1.1",
104
100
  "jest": "^29.7.0",
105
101
  "mkdirp": "^3.0.1",
106
- "ts-jest": "^29.1.1",
107
- "typescript": "^5.2.2",
108
- "wait-on": "^7.0.1"
102
+ "ts-jest": "^29.2.5",
103
+ "typescript": "^5.5.4",
104
+ "typescript-eslint": "^8.2.0",
105
+ "wait-on": "^8.0.0"
109
106
  },
110
107
  "engines": {
111
108
  "node": ">=14.0.0"
package/tsconfig.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
+ "esModuleInterop": true,
3
4
  "target": "esnext",
4
5
  "module": "esnext",
5
6
  "allowJs": true,
@@ -7,17 +8,21 @@
7
8
  "outDir": "bundle/typescript",
8
9
  "rootDir": ".",
9
10
  "strict": false,
10
- "esModuleInterop": true,
11
11
  "forceConsistentCasingInFileNames": true,
12
12
  "declaration": true,
13
13
  "strictNullChecks": true,
14
14
  "resolveJsonModule": true,
15
15
  "moduleResolution": "node",
16
16
  "sourceMap": true,
17
- "baseUrl": "."
17
+ "baseUrl": ".",
18
+ "paths": {
19
+ "*": [ "src/*", "*" ]
20
+ },
21
+ "allowSyntheticDefaultImports": true
18
22
  },
19
- "exclude": ["node_modules", "bundle", "src/templates", "**/*.test.ts", "**/*.test.js"],
23
+ "exclude": [ "node_modules", "bundle", "src/templates", "**/*.test.ts", "**/*.test.js" ],
20
24
  "include": [
21
25
  "./src"
22
26
  ]
23
27
  }
28
+
Binary file