@maka/maka-cli 5.0.44 → 5.1.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.
- package/bundle/obf/package.json +25 -25
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test/_index.js +1 -1
- package/bundle/obf/src/commands/test/jest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/test/mocha.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/test/test.command.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +25 -25
|
@@ -1 +1 @@
|
|
|
1
|
-
const a162z=a162d;(function(a,b){const v=a162d,c=a();while(!![]){try{const d=parseInt(v(0x1c4))/0x1+parseInt(v(0x1c5))/0x2*(parseInt(v(0x20f))/0x3)+-parseInt(v(0x1d9))/0x4+-parseInt(v(0x239))/0x5+-parseInt(v(0x209))/0x6+parseInt(v(0x240))/0x7*(-parseInt(v(0x21d))/0x8)+parseInt(v(0x1f1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0xbff3d));function a162c(){const a7=['.js.ts','rewriteDestinationPathForEngine()','adjustIndentation','export\x20{\x20','map','\x20}\x20from\x20\x27','\x27;\x0a','.js.tsx','File\x20not\x20found:\x20','import\x20{\x20','utf8','search','less','push','Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20','import\x20','release','normalize','rewriteDestinationPathForType()','type','sep','27047xGXyrv','784942kPKmbN','startup','ico','.jsx','splice','.js','injectAroundString','match','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','No\x20app\x20directory\x20found','No\x20matching\x20section\x20found.','message','slice','meteor','none','writeFileSync','pathFromApp()','warn','No\x20pathParts\x20option\x20provided','getInstance','180492jPUCQL','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','injectAtEndOfFile','alpha','client','template','base64','copyTemplateDirectory','mpi','png','No\x20file\x20found\x20at\x20path\x20','join','isFile','template()','isDirectory','lib','filter','constructor','includes','render','from\x20\x22','injectAtBeginningOfFile()','tsx','json','28586961AhWvyQ','No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20','While\x20injecting\x20','templateContent','html','rewriteDestinationPathForEngine','fsi','templates.js','isTemplateForEngine','endsWith','injectIntoCodeBlock','existsSync','trim','split','--minimal','injectAtBeginningOfFile','Error\x20in\x20','readdirSync','instance','injectAtEndOfFile()','ssr','apply','some','cwd','7115610geHMGd','injectIntoFile','isArray','\x20updated\x20file\x20','engineAndTypeFromfilePath','pathFromAppWithNoReWrite','6ELNfBL','MAKA_COMMAND_PATH','Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues','test','writeSourcePath','noRename','\x20from\x20\x27','repeat','createFile','Error\x20in\x20injectIntoCodeBlock:\x20','indexOf','Dockerfile','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20','rewriteDestinationPathForType','8TyrrEC','platform','promisify','.tsx','relative','findAppDirectory','(((.+)+)+)+$','jsx','.js.jsx','env','forEach','engine','\x20create\x20','stringify','win32','replace','src/templates/','reduce','pathFromApp','MAKA_DEV','injectImport','readFileSync','keys','scss','isTemplateForEngine()','.meteor','.git','header','7262270UEQKAi','engineAndTypeFromfilePath()','Looking\x20for\x20','Meteor\x20project\x20already\x20exists\x20at\x20','toString','fileContainsString','detectIndentation','3629983RENlKf','getCommonIndentSize','imports','exit','pathFromTemplates()','startsWith','createEmptyMeteorProject','verbose','injectAroundString()','length','templates','error','injectImport()','\x20from','concat','calculateMode','injectAfterLineNumber()','pathFromTemplates','css','pop','\x5cS*$','rewriteSourcePathForEngine','engines','templateContent()'];a162c=function(){return a7;};return a162c();}const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a162d;if(c){const e=c[w(0x206)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const x=a162d;return a162a[x(0x23d)]()['search'](x(0x223))['toString']()[x(0x1ea)](a162a)[x(0x1ba)]('(((.+)+)+)+$');});a162a();function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0x1b6;let f=c[d];return f;},a162d(a,b);}import a162e from'path';import a162f from'fs';import a162g from'util';import{exec}from'child_process';import a162h from'delete';import a162i from'ejs';import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';const errorHandler=(a,b)=>{const y=a162d;process[y(0x226)][y(0x230)]==='True'&&Log[y(0x24b)](y(0x201)+a),b&&console[y(0x24b)](b);},isWin=process[a162z(0x21e)]===a162z(0x22b),treeSymbol=isWin?'\x20->':'\x20┗';export class Scaffold{static [a162z(0x203)];[a162z(0x1f7)];['mpi'];constructor(a,b){const A=a162z;this[A(0x1f7)]=a,this[A(0x1e1)]=b;}static[a162z(0x1d8)](a,b){const B=a162z;return!Scaffold[B(0x203)]&&(Scaffold[B(0x203)]=new Scaffold(a,b)),Scaffold[B(0x203)];}async[a162z(0x246)](a,b){const C=a162z;b['cwd']=b['cwd']||'.';const c=a162e[C(0x1e4)](b[C(0x208)],a),d=a162e[C(0x1e4)](c,C(0x236));if(this[C(0x1f7)][C(0x1e7)](d))throw new Error(C(0x23c)+JSON[C(0x22a)](c));const e=C(0x1ff),f=a162e['join'](b[C(0x208)]),g=a162g[C(0x21f)](exec),h=b[C(0x1bf)]?'--release\x20'+b['release']:'';b['release']&&b[C(0x1bf)]['includes'](C(0x1dc))&&(Log[C(0x1d6)](C(0x1bd)+b[C(0x1bf)]),Log[C(0x1d6)](C(0x211)));try{await g(this[C(0x1e1)]['meteor']+C(0x229)+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[C(0x24b)]('\x0a'+k[C(0x1d0)]);throw k;}const i=a162e[C(0x1e4)](f,a);if(!a162f[C(0x1fc)](i))throw new Error('Directory\x20'+i+'\x20doesn\x27t\x20exist');const j=a162f['readdirSync'](i);for(const l of j){if(l!==C(0x237)&&l!==C(0x236)){const m=a162e[C(0x1e4)](i,l);await a162h(m,{'force':!![]});}}}[a162z(0x20d)]({filePath:a}){const D=a162z;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a[D(0x1cc)](b);c=c&&c[0x0]['split']('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[D(0x253)](),f=c[D(0x253)]()||d;if(d)d=d[D(0x22c)]('.','');if(f)f=f[D(0x22c)]('.','');return{'type':f,'engine':d};}catch(g){errorHandler(D(0x23a),g),process[D(0x243)](0x1);}}[a162z(0x21c)]({pathParts:a,config:b}){const E=a162z;try{const c=a[E(0x1e4)](a162e['sep']),d=this[E(0x20d)]({'filePath':c})['type'],f=b?.[E(0x256)][d],g=new RegExp('\x5c.'+d+E(0x254));return!d||!f?c:c[E(0x22c)](g,'.'+d);}catch(h){errorHandler(E(0x1c1),h),process[E(0x243)](0x1);}}[a162z(0x1f9)]({pathParts:a,config:b}){const F=a162z;try{if(!b)throw new Error(F(0x1da));const c=a[F(0x1e4)](a162e[F(0x1c3)]),d=this[F(0x20d)]({'filePath':c});if(!d[F(0x1c2)]||!d[F(0x228)])return!![];const f=b[F(0x256)][d['type']];if(!f)return!![];return f===d[F(0x228)];}catch(g){errorHandler(F(0x235),g),process['exit'](0x1);}}['writeSourcePath']({pathParts:pathParts=[]}){const G=a162z;return pathParts['join'](a162e[G(0x1c3)]);}['rewriteDestinationPathForEngine']({pathParts:pathParts=[],config:a}){const H=a162z;try{const b=pathParts[H(0x1e4)](a162e['sep']),c=this[H(0x20d)]({'filePath':b})['type'],d=a?.['engines'][c],f=new RegExp('\x5c.'+c+H(0x254));return!c||!d?b:b[H(0x22c)](f,'.'+d);}catch(g){errorHandler(H(0x259),g),process['exit'](0x1);}}[a162z(0x255)]({pathParts:pathParts=[],framework:framework=a162z(0x1d2),config:a}){const I=a162z;try{const b=a162e[I(0x1c0)](pathParts[I(0x1e4)](a162e[I(0x1c3)]));if(!b[I(0x1fa)](I(0x1ca)))return b;const c='js';if(!a?.[I(0x256)]||!a?.['engines'][c])return b;const d=a[I(0x256)][c],f=d===I(0x1ef)?[I(0x1b6),I(0x258),I(0x1ca)]:[I(0x225),I(0x1ca)];for(const g of f){const h=b[I(0x22c)](/\.js$/,g),i=a162e[I(0x1e4)](I(0x24a),framework,h),j=a162e[I(0x1c0)](a162e['join'](global[I(0x210)],i));if(a162f[I(0x1fc)](j))return h;}return b;}catch(k){errorHandler('rewriteSourcePathForEngine()',k),process['exit'](0x1);}}[a162z(0x251)]({pathParts:a,framework:framework='meteor',config:b}){const J=a162z;try{const c=this['rewriteSourcePathForEngine']({'pathParts':a,'framework':framework,'config':b}),d=a162e[J(0x1e4)](J(0x22d)+framework,c),f=a162e[J(0x1e4)](global[J(0x210)],'..',d);return f;}catch(g){errorHandler(J(0x244),g),process[J(0x243)](0x1);}}[a162z(0x1f4)]({srcPath:a,context:b,framework:c,config:d}){const K=a162z;try{let f=this[K(0x251)]({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this['engineAndTypeFromfilePath']({'filePath':f}),h=[K(0x252),K(0x234),K(0x1bb),K(0x1f5),'js',K(0x224),'ts',K(0x1ef),K(0x1f0),'env','yaml',K(0x1de)],i=[K(0x1e2),K(0x1c7)];if(!this[K(0x1f7)][K(0x1e5)](f)){g===K(0x224)&&(f=f[K(0x22c)](K(0x1c8),''));g===K(0x1ef)&&(f=f[K(0x22c)](K(0x220),''));if(!this[K(0x1f7)][K(0x1e5)](f))throw new Error('Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20'+JSON[K(0x22a)](f));}const j=f['split']('.'),k=a162e[K(0x1c0)](f)['split'](a162e[K(0x1c3)]),l=k[k['length']-0x1]===K(0x21a),m=i[K(0x1eb)](j[j[K(0x249)]-0x1]),n=a162f['readFileSync'](f);if(l)return a162i['render'](n[K(0x23d)](),b)[K(0x1fd)]();if(m)return Buffer['from'](n)[K(0x23d)](K(0x1df));if(!h['includes'](j[j['length']-0x1]))return n['toString']()['trim']();return a162i[K(0x1ec)](n['toString'](),b||{})[K(0x1fd)]();}catch(o){errorHandler(K(0x257),o),process['exit'](0x1);}}async[a162z(0x1de)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const L=a162z;try{const g=[L(0x1e2),'ico'],h=g[L(0x1eb)](a[L(0x1fe)]('.')[L(0x253)]()||''),i=this[L(0x1f4)]({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.['noRename']?b=this['rewriteDestinationPathForType']({'pathParts':[b],'config':d}):b=this[L(0x1f6)]({'pathParts':[b],'config':d});const j=await this[L(0x1f7)][L(0x217)]({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler(L(0x1e6),k),process['exit'](0x1);}}async[a162z(0x1e0)]({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const M=a162z;try{const i=this[M(0x251)]({'pathParts':[a],'framework':g,'config':h}),j=this['pathFromTemplates']({'pathParts':[],'framework':g,'config':h}),k=n=>{const N=M;return n[N(0x22c)](j,'');},l=n=>{const O=M;return n[O(0x22c)](i,b);};await this[M(0x1f7)]['createDirectory']({'dirPath':b});const m=a162f[M(0x202)](i);for(const n of m){try{const o=a162e[M(0x1e4)](i,n),p=k(o),q=l(o),r=d[M(0x25c)](t=>a162e['normalize'](t)),s=a162e[M(0x1c0)](a162e[M(0x1e4)](a,n));if(r[M(0x1eb)](s))continue;if(this[M(0x1f7)]['isDirectory'](o))await this['copyTemplateDirectory']({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this[M(0x1f7)]['isFile'](o)&&this[M(0x1f9)]({'pathParts':[o],'config':h}))await this['template']({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f[M(0x219)](a162e['join'](a,n))>=0x0&&this[M(0x1f7)][M(0x1e5)](o)&&(c[M(0x214)]=!![],await this[M(0x1de)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c[M(0x214)]=![]);}}catch(t){console[M(0x24b)](t),process[M(0x243)](0x1);}}}catch(u){errorHandler('copyTemplateDirectory()',u),process[M(0x243)](0x1);}}async[a162z(0x200)]({filePath:a,content:b,opts:c}){const P=a162z;if(!a)throw new Error(P(0x1cd));try{!this['fsi'][P(0x1e5)](a)&&await this[P(0x1f7)][P(0x217)]({'filePath':a,'data':b});let d=a162f[P(0x232)](a,'utf8');d=b+'\x0a'+d,a162f['writeFileSync'](a,d),c?.[P(0x247)]&&Log['header'](treeSymbol+P(0x20c)+a162e[P(0x221)](process['cwd'](),a));}catch(f){errorHandler(P(0x1ee),f),process[P(0x243)](0x1);}}async['injectAtEndOfFile']({filePath:a,content:b,opts:c}){const Q=a162z;try{if(!this[Q(0x1f7)][Q(0x1e5)](a))await this[Q(0x1f7)][Q(0x217)]({'filePath':a,'data':b});else{let d=a162f[Q(0x232)](a,Q(0x1b9));!d[Q(0x1eb)](b)&&(d=d+'\x0a'+b,a162f[Q(0x1d4)](a,d)),c?.[Q(0x247)]&&Log[Q(0x238)](treeSymbol+Q(0x20c)+a162e[Q(0x221)](process[Q(0x208)](),a));}}catch(f){errorHandler(Q(0x204),f),process[Q(0x243)](0x1);}}async[a162z(0x1cb)]({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const R=a162z;try{if(!this[R(0x1f7)][R(0x1e5)](a))throw Log[R(0x24b)](R(0x1e3)+JSON[R(0x22a)](a));const f=a162f[R(0x232)](a,R(0x1b9)),g=f['replace'](/\r\n|\r/g,'\x0a'),h=g[R(0x1fe)]('\x0a'),j=this[R(0x23f)](h),k=b['replace'](/\r\n|\r/g,'\x0a')[R(0x1fe)]('\x0a'),l=c['replace'](/\r\n|\r/g,'\x0a')['split']('\x0a'),m=new RegExp(Array['isArray'](d)?d[R(0x1e4)]('|'):d,'i'),n=[];for(let p=0x0;p<h['length'];p++){const q=h[p];if(m[R(0x212)](q)){const r=this[R(0x25a)](j,targetIndentAdjustment),s=r+q['trim']();k[R(0x227)](t=>{const S=R;!g[S(0x1eb)](t[S(0x1fd)]())&&n['push'](this[S(0x25a)](j,indentAdjustment)+t);}),n[R(0x1bc)](s),l[R(0x227)](t=>{const T=R;!g[T(0x1eb)](t['trim']())&&n[T(0x1bc)](this[T(0x25a)](j,indentAdjustment)+t);});}else n[R(0x1bc)](q);}const o=n[R(0x1e4)]('\x0a');a162f[R(0x1d4)](a,o),Log[R(0x238)](treeSymbol+R(0x20c)+a162e[R(0x221)](process[R(0x208)](),a));}catch(t){errorHandler(R(0x248),t),process[R(0x243)](0x1);}}['adjustIndentation'](a,b){const U=a162z;if(b===0x0)return a;const c=a[U(0x249)]+b;return c>0x0?a[0x0][U(0x216)](c):'';}[a162z(0x23f)](a){const V=a162z;let b=0x0,c=0x0;a[V(0x227)](f=>{const W=V;if(f[W(0x245)]('\x20'))b++;else f[W(0x245)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[V(0x241)](a,d);return d[V(0x216)](e);}[a162z(0x241)](a,b){const X=a162z,c=a[X(0x1e9)](d=>d&&d[X(0x245)](b))[X(0x25c)](d=>{const Y=X,e=d[Y(0x1cc)](new RegExp('^'+b+'+'));return e?e[0x0]['length']:0x0;});if(c['length']===0x0)return 0x0;return this[X(0x24f)](c);}['calculateMode'](a){const Z=a162z,b=a[Z(0x22e)]((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object[Z(0x233)](b)[Z(0x22e)]((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async[a162z(0x1fb)]({filePath:a,content:b,begin:c,replace:replace=![]}){const a0=a162z;try{if(!this['fsi'][a0(0x1e5)](a))throw new Error(a0(0x1b7)+a);const d=a162f[a0(0x232)](a,'utf8'),f=d[a0(0x1fe)]('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array[a0(0x20b)](c)?c:[c];for(let o=0x0;o<f[a0(0x249)];o++){const p=f[o];k&&p['includes']('{')&&j++;if(m[a0(0x207)](q=>p['includes'](q))){g=o,k=!![],j++;continue;}if(k){p[a0(0x1eb)](b[a0(0x1fd)]())&&(l=!![]);if(p[a0(0x1eb)]('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log['error'](a0(0x21b)+a),Log[a0(0x24b)](a0(0x1f3)+b),Log[a0(0x24b)](a0(0x23b)+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[a0(0x1bc)](b[a0(0x1fd)]()),n[a0(0x1bc)](f[h])):(n=n[a0(0x24e)](f[a0(0x1d1)](g+0x1,h)),n[a0(0x1bc)](b['trim']())),n=n['concat'](f[a0(0x1d1)](h+0x1)),a162f['writeFileSync'](a,n['join']('\x0a'),'utf8');}catch(q){console['error'](a0(0x218),q);throw q;}}async[a162z(0x20a)]({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const a1=a162z;try{const g=await this['fsi'][a1(0x23e)](a,c);if(g)return;if(!this['fsi'][a1(0x1e5)](a))throw Log[a1(0x24b)](a1(0x1f2)+JSON[a1(0x22a)](a));const h=a162f[a1(0x232)](a,a1(0x1b9));if(!Array[a1(0x20b)](d))d=[d];if(!Array[a1(0x20b)](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[a1(0x22c)](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(a1(0x1cf));a162f[a1(0x1d4)](a,i),Log[a1(0x238)](treeSymbol+a1(0x20c)+a162e[a1(0x221)](process[a1(0x208)](),a));}catch(n){errorHandler('injectIntoFile()',n),process[a1(0x243)](0x1);}}async[a162z(0x231)]({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const a2=a162z;try{const f=a162f[a2(0x232)](a,a2(0x1b9));let g;d?g=a2(0x1b8)+b+a2(0x25d)+c+a2(0x25e):g=a2(0x1be)+b+a2(0x215)+c+a2(0x25e);const h=f[a2(0x1fe)]('\x0a');let j=0x0,k=![];for(const m of h){if(m['includes']('from\x20\x27'+c+'\x27')||m['includes'](a2(0x1ed)+c+'\x22')){const n=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(a2(0x1be)+b+a2(0x24d));if(m['match'](n)){k=!![];break;}}}if(k)return;if(injectAtStart)for(let o=0x0;o<h[a2(0x249)];o++){if(h[o][a2(0x1cc)](/^import .* from .*;$/)){j=o;break;}}else{for(let p=0x0;p<h[a2(0x249)];p++){h[p][a2(0x1cc)](/^import .* from .*;$/)&&(j=p);}j++;}h[a2(0x1c9)](j,0x0,g);const l=h[a2(0x1e4)]('\x0a');a162f[a2(0x1d4)](a,l,a2(0x1b9));}catch(q){errorHandler(a2(0x24c),q),process[a2(0x243)](0x1);}}async['injectTemplateModule'](a,b,c){const a3=a162z;try{let d;b[a3(0x256)][a3(0x205)]!==a3(0x1d3)?d=this[a3(0x22f)]({'pathParts':[a3(0x242),a3(0x1c6),a3(0x1e8),a3(0x1f8)],'config':b}):d=this[a3(0x22f)]({'pathParts':[a3(0x242),a3(0x1c6),a3(0x1dd),a3(0x1f8)],'config':b});const f=this[a3(0x1f6)]({'pathParts':[d],'config':b}),g=a3(0x25b)+pascalCase(a)+'\x20}\x20from\x20\x27'+c+'\x27;',h=await this[a3(0x1f7)][a3(0x23e)](f,g);!h&&this[a3(0x1db)]({'filePath':f,'content':g+'\x0a'});}catch(i){errorHandler('injectTemplateModule()',i),process['exit'](0x1);}}['injectAfterLineNumber']({filePath:a,content:b,lineNumber:c}){const a4=a162z;try{const d=a162f[a4(0x232)](a)[a4(0x23d)]()['split']('\x0a');d['splice'](c,0x0,b);const f=d[a4(0x1e4)]('\x0a');a162f['writeFileSync'](a,f);}catch(g){errorHandler(a4(0x250),g),process[a4(0x243)](0x1);}}[a162z(0x22f)]({pathParts:a,config:b}){const a5=a162z;try{if(!a)throw new Error(a5(0x1d7));const c=this[a5(0x255)]({'pathParts':a,'config':b}),d=this['fsi'][a5(0x222)]();return d?a162e[a5(0x1e4)](d,c):'';}catch(f){errorHandler(a5(0x1d5),f),process[a5(0x243)](0x1);}}[a162z(0x20e)]({pathParts:a,config:b}){const a6=a162z;try{const c=this[a6(0x213)]({'pathParts':a,'config':b}),d=this[a6(0x1f7)][a6(0x222)]();if(!d)throw new Error(a6(0x1ce));return a162e[a6(0x1e4)](d,c);}catch(f){errorHandler('pathFromAppWithNoReWrite()',f),process['exit'](0x1);}}}
|
|
1
|
+
const a162z=a162d;(function(a,b){const v=a162d,c=a();while(!![]){try{const d=-parseInt(v(0x162))/0x1+parseInt(v(0x111))/0x2*(parseInt(v(0xc5))/0x3)+parseInt(v(0xd2))/0x4+parseInt(v(0x12b))/0x5+parseInt(v(0x108))/0x6*(parseInt(v(0x11c))/0x7)+-parseInt(v(0x10e))/0x8*(-parseInt(v(0xc1))/0x9)+-parseInt(v(0xf5))/0xa*(parseInt(v(0x15e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0x23dd2));const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a162d;if(c){const e=c[w(0xd3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const x=a162d;return a162a[x(0xcc)]()[x(0x15f)](x(0x126))[x(0xcc)]()[x(0x10d)](a162a)[x(0x15f)](x(0x126));});a162a();import a162e from'path';import a162f from'fs';import a162g from'util';import{exec}from'child_process';import a162h from'delete';import a162i from'ejs';import{pascalCase}from'change-case';function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0xc0;let f=c[d];return f;},a162d(a,b);}import{Log}from'../log/log.class.js';function a162c(){const a7=['concat','forEach','MAKA_DEV','createFile','findAppDirectory','Looking\x20for\x20','verbose','match','test','(((.+)+)+)+$','[\x5cs\x5cS]*?)(','No\x20matching\x20section\x20found.','.git','createDirectory','1278470seltnt','templates.js','readdirSync','render','calculateMode','rewriteDestinationPathForType()','fileContainsString','readFileSync','\x5cS*$','import\x20{\x20','less','includes','exit','engine','png','import\x20','\x27;\x0a','none','yaml','isDirectory','.tsx','css','message','.meteor','injectAfterLineNumber()','existsSync','template()','rewriteDestinationPathForEngine','tsx','noRename','engineAndTypeFromfilePath()','templates','error','\x20updated\x20file\x20','stringify','True','While\x20injecting\x20','normalize','platform','MAKA_COMMAND_PATH','endsWith','relative','jsx','injectAtBeginningOfFile','rewriteSourcePathForEngine','.js.ts','injectAtBeginningOfFile()','ssr','pathFromTemplates()','fsi','writeSourcePath','11eQKbbu','search','startsWith','injectIntoCodeBlock','161181dVPDCr','\x20->','filter','sep','length','split','client','join','4509dBRuvy','isArray','replace','injectIntoFile()','3NtlVtu','release','template','trim','base64','isTemplateForEngine','--release\x20','toString','reduce','getInstance','splice','--minimal','adjustIndentation','693916wkZYUk','apply','from\x20\x22','No\x20app\x20directory\x20found','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20','header','rewriteSourcePathForEngine()','scss','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','injectAroundString()','Meteor\x20project\x20already\x20exists\x20at\x20','Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues','pathFromApp','createEmptyMeteorProject','src/templates/','Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20','slice','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','warn','\x20doesn\x27t\x20exist','No\x20file\x20found\x20at\x20path\x20','.js.tsx','templateContent','copyTemplateDirectory','from\x20\x27','rewriteDestinationPathForType','injectIntoFile','instance','startup','Error\x20in\x20injectIntoCodeBlock:\x20','some','type','Directory\x20','writeFileSync','No\x20pathParts\x20option\x20provided','4598890CgEVlJ','keys','pop','injectAtEndOfFile','injectImport()','env','utf8','map','injectAroundString','isTemplateForEngine()','injectTemplateModule()','\x20create\x20','copyTemplateDirectory()','pathFromTemplates','engines','rewriteDestinationPathForEngine()','\x20from\x20\x27','No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20','win32','3492NWeToa','detectIndentation','isFile','mpi','from','constructor','2912txxTHm','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.','File\x20not\x20found:\x20','32338nuhDrW','templateContent()','imports','html','lib','getCommonIndentSize','.js','engineAndTypeFromfilePath','pathFromAppWithNoReWrite','push','cwd','1687sSqTxz'];a162c=function(){return a7;};return a162c();}const errorHandler=(a,b)=>{const y=a162d;process['env'][y(0x11f)]===y(0x14e)&&Log[y(0x14b)]('Error\x20in\x20'+a),b&&console['error'](b);},isWin=process[a162z(0x151)]===a162z(0x107),treeSymbol=isWin?a162z(0x163):'\x20┗';export class Scaffold{static [a162z(0xed)];['fsi'];[a162z(0x10b)];constructor(a,b){const A=a162z;this['fsi']=a,this[A(0x10b)]=b;}static[a162z(0xce)](a,b){const B=a162z;return!Scaffold['instance']&&(Scaffold[B(0xed)]=new Scaffold(a,b)),Scaffold[B(0xed)];}async[a162z(0xdf)](a,b){const C=a162z;b['cwd']=b[C(0x11b)]||'.';const c=a162e['join'](b['cwd'],a),d=a162e['join'](c,C(0x142));if(this[C(0x15c)][C(0x13e)](d))throw new Error(C(0xdc)+JSON['stringify'](c));const e=C(0xd0),f=a162e[C(0xc0)](b[C(0x11b)]),g=a162g['promisify'](exec),h=b[C(0xc6)]?C(0xcb)+b[C(0xc6)]:'';b['release']&&b['release'][C(0x136)]('alpha')&&(Log[C(0xe4)]('Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20'+b['release']),Log['warn'](C(0xdd)));try{await g(this[C(0x10b)]['meteor']+C(0x100)+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[C(0x14b)]('\x0a'+k[C(0x141)]);throw k;}const i=a162e[C(0xc0)](f,a);if(!a162f['existsSync'](i))throw new Error(C(0xf2)+i+C(0xe5));const j=a162f['readdirSync'](i);for(const l of j){if(l!==C(0x129)&&l!==C(0x142)){const m=a162e[C(0xc0)](i,l);await a162h(m,{'force':!![]});}}}[a162z(0x118)]({filePath:a}){const D=a162z;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a[D(0x124)](b);c=c&&c[0x0][D(0x167)]('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[D(0xf7)](),f=c[D(0xf7)]()||d;if(d)d=d['replace']('.','');if(f)f=f[D(0xc3)]('.','');return{'type':f,'engine':d};}catch(g){errorHandler(D(0x149),g),process[D(0x137)](0x1);}}[a162z(0xeb)]({pathParts:a,config:b}){const E=a162z;try{const c=a['join'](a162e[E(0x165)]),d=this[E(0x118)]({'filePath':c})['type'],f=b?.[E(0x103)][d],g=new RegExp('\x5c.'+d+'\x5cS*$');return!d||!f?c:c[E(0xc3)](g,'.'+d);}catch(h){errorHandler(E(0x130),h),process[E(0x137)](0x1);}}[a162z(0xca)]({pathParts:a,config:b}){const F=a162z;try{if(!b)throw new Error(F(0xe3));const c=a[F(0xc0)](a162e[F(0x165)]),d=this[F(0x118)]({'filePath':c});if(!d[F(0xf1)]||!d['engine'])return!![];const f=b[F(0x103)][d[F(0xf1)]];if(!f)return!![];return f===d[F(0x138)];}catch(g){errorHandler(F(0xfe),g),process[F(0x137)](0x1);}}[a162z(0x15d)]({pathParts:pathParts=[]}){const G=a162z;return pathParts[G(0xc0)](a162e[G(0x165)]);}[a162z(0x146)]({pathParts:pathParts=[],config:a}){const H=a162z;try{const b=pathParts[H(0xc0)](a162e['sep']),c=this[H(0x118)]({'filePath':b})['type'],d=a?.['engines'][c],f=new RegExp('\x5c.'+c+H(0x133));return!c||!d?b:b['replace'](f,'.'+d);}catch(g){errorHandler(H(0x104),g),process[H(0x137)](0x1);}}[a162z(0x157)]({pathParts:pathParts=[],framework:framework='meteor',config:a}){const I=a162z;try{const b=a162e[I(0x150)](pathParts['join'](a162e[I(0x165)]));if(!b[I(0x153)](I(0x117)))return b;const c='js';if(!a?.['engines']||!a?.[I(0x103)][c])return b;const d=a[I(0x103)][c],f=d===I(0x147)?[I(0xe7),I(0x158),I(0x117)]:['.js.jsx',I(0x117)];for(const g of f){const h=b[I(0xc3)](/\.js$/,g),i=a162e[I(0xc0)](I(0x14a),framework,h),j=a162e['normalize'](a162e[I(0xc0)](global[I(0x152)],i));if(a162f[I(0x144)](j))return h;}return b;}catch(k){errorHandler(I(0xd8),k),process[I(0x137)](0x1);}}['pathFromTemplates']({pathParts:a,framework:framework='meteor',config:b}){const J=a162z;try{const c=this[J(0x157)]({'pathParts':a,'framework':framework,'config':b}),d=a162e[J(0xc0)](J(0xe0)+framework,c),f=a162e[J(0xc0)](global[J(0x152)],'..',d);return f;}catch(g){errorHandler(J(0x15b),g),process[J(0x137)](0x1);}}[a162z(0xe8)]({srcPath:a,context:b,framework:c,config:d}){const K=a162z;try{let f=this['pathFromTemplates']({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this['engineAndTypeFromfilePath']({'filePath':f}),h=[K(0x140),K(0xd9),K(0x135),K(0x114),'js',K(0x155),'ts','tsx','json',K(0xfa),K(0x13d),K(0xc7)],i=[K(0x139),'ico'];if(!this['fsi'][K(0x10a)](f)){g===K(0x155)&&(f=f[K(0xc3)]('.jsx',''));g===K(0x147)&&(f=f['replace'](K(0x13f),''));if(!this[K(0x15c)][K(0x10a)](f))throw new Error(K(0xe1)+JSON[K(0x14d)](f));}const j=f[K(0x167)]('.'),k=a162e[K(0x150)](f)[K(0x167)](a162e['sep']),l=k[k[K(0x166)]-0x1]==='Dockerfile',m=i[K(0x136)](j[j[K(0x166)]-0x1]),n=a162f[K(0x132)](f);if(l)return a162i[K(0x12e)](n[K(0xcc)](),b)[K(0xc8)]();if(m)return Buffer[K(0x10c)](n)[K(0xcc)](K(0xc9));if(!h[K(0x136)](j[j[K(0x166)]-0x1]))return n['toString']()[K(0xc8)]();return a162i[K(0x12e)](n['toString'](),b||{})[K(0xc8)]();}catch(o){errorHandler(K(0x112),o),process[K(0x137)](0x1);}}async[a162z(0xc7)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const L=a162z;try{const g=[L(0x139),'ico'],h=g[L(0x136)](a[L(0x167)]('.')['pop']()||''),i=this[L(0xe8)]({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.[L(0x148)]?b=this[L(0xeb)]({'pathParts':[b],'config':d}):b=this[L(0x146)]({'pathParts':[b],'config':d});const j=await this[L(0x15c)][L(0x120)]({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler(L(0x145),k),process[L(0x137)](0x1);}}async[a162z(0xe9)]({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const M=a162z;try{const i=this[M(0x102)]({'pathParts':[a],'framework':g,'config':h}),j=this['pathFromTemplates']({'pathParts':[],'framework':g,'config':h}),k=n=>{const N=M;return n[N(0xc3)](j,'');},l=n=>{const O=M;return n[O(0xc3)](i,b);};await this[M(0x15c)][M(0x12a)]({'dirPath':b});const m=a162f[M(0x12d)](i);for(const n of m){try{const o=a162e[M(0xc0)](i,n),p=k(o),q=l(o),r=d[M(0xfc)](t=>a162e[M(0x150)](t)),s=a162e[M(0x150)](a162e[M(0xc0)](a,n));if(r['includes'](s))continue;if(this['fsi']['isDirectory'](o))await this[M(0xe9)]({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this['fsi'][M(0x10a)](o)&&this['isTemplateForEngine']({'pathParts':[o],'config':h}))await this['template']({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f['indexOf'](a162e[M(0xc0)](a,n))>=0x0&&this[M(0x15c)][M(0x10a)](o)&&(c[M(0x148)]=!![],await this[M(0xc7)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c[M(0x148)]=![]);}}catch(t){console[M(0x14b)](t),process[M(0x137)](0x1);}}}catch(u){errorHandler(M(0x101),u),process[M(0x137)](0x1);}}async[a162z(0x156)]({filePath:a,content:b,opts:c}){const P=a162z;if(!a)throw new Error(P(0xda));try{!this[P(0x15c)]['isFile'](a)&&await this['fsi']['createFile']({'filePath':a,'data':b});let d=a162f[P(0x132)](a,P(0xfb));d=b+'\x0a'+d,a162f[P(0xf3)](a,d),c?.[P(0x123)]&&Log[P(0xd7)](treeSymbol+P(0x14c)+a162e[P(0x154)](process[P(0x11b)](),a));}catch(f){errorHandler(P(0x159),f),process[P(0x137)](0x1);}}async[a162z(0xf8)]({filePath:a,content:b,opts:c}){const Q=a162z;try{if(!this['fsi'][Q(0x10a)](a))await this['fsi'][Q(0x120)]({'filePath':a,'data':b});else{let d=a162f[Q(0x132)](a,Q(0xfb));!d['includes'](b)&&(d=d+'\x0a'+b,a162f['writeFileSync'](a,d)),c?.[Q(0x123)]&&Log[Q(0xd7)](treeSymbol+Q(0x14c)+a162e[Q(0x154)](process[Q(0x11b)](),a));}}catch(f){errorHandler('injectAtEndOfFile()',f),process[Q(0x137)](0x1);}}async[a162z(0xfd)]({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const R=a162z;try{if(!this[R(0x15c)][R(0x10a)](a))throw Log[R(0x14b)](R(0xe6)+JSON[R(0x14d)](a));const f=a162f[R(0x132)](a,R(0xfb)),g=f[R(0xc3)](/\r\n|\r/g,'\x0a'),h=g[R(0x167)]('\x0a'),j=this[R(0x109)](h),k=b[R(0xc3)](/\r\n|\r/g,'\x0a')[R(0x167)]('\x0a'),l=c[R(0xc3)](/\r\n|\r/g,'\x0a')[R(0x167)]('\x0a'),m=new RegExp(Array['isArray'](d)?d[R(0xc0)]('|'):d,'i'),n=[];for(let p=0x0;p<h[R(0x166)];p++){const q=h[p];if(m[R(0x125)](q)){const r=this[R(0xd1)](j,targetIndentAdjustment),s=r+q['trim']();k['forEach'](t=>{const S=R;!g[S(0x136)](t[S(0xc8)]())&&n[S(0x11a)](this['adjustIndentation'](j,indentAdjustment)+t);}),n[R(0x11a)](s),l[R(0x11e)](t=>{const T=R;!g[T(0x136)](t[T(0xc8)]())&&n[T(0x11a)](this[T(0xd1)](j,indentAdjustment)+t);});}else n['push'](q);}const o=n[R(0xc0)]('\x0a');a162f[R(0xf3)](a,o),Log[R(0xd7)](treeSymbol+'\x20updated\x20file\x20'+a162e[R(0x154)](process[R(0x11b)](),a));}catch(t){errorHandler(R(0xdb),t),process[R(0x137)](0x1);}}['adjustIndentation'](a,b){const U=a162z;if(b===0x0)return a;const c=a[U(0x166)]+b;return c>0x0?a[0x0]['repeat'](c):'';}['detectIndentation'](a){const V=a162z;let b=0x0,c=0x0;a[V(0x11e)](f=>{const W=V;if(f[W(0x160)]('\x20'))b++;else f[W(0x160)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[V(0x116)](a,d);return d['repeat'](e);}[a162z(0x116)](a,b){const X=a162z,c=a[X(0x164)](d=>d&&d['startsWith'](b))[X(0xfc)](d=>{const Y=X,e=d[Y(0x124)](new RegExp('^'+b+'+'));return e?e[0x0][Y(0x166)]:0x0;});if(c[X(0x166)]===0x0)return 0x0;return this[X(0x12f)](c);}[a162z(0x12f)](a){const Z=a162z,b=a[Z(0xcd)]((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object[Z(0xf6)](b)['reduce']((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async[a162z(0x161)]({filePath:a,content:b,begin:c,replace:replace=![]}){const a0=a162z;try{if(!this[a0(0x15c)][a0(0x10a)](a))throw new Error(a0(0x110)+a);const d=a162f[a0(0x132)](a,a0(0xfb)),f=d['split']('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array[a0(0xc2)](c)?c:[c];for(let o=0x0;o<f['length'];o++){const p=f[o];k&&p[a0(0x136)]('{')&&j++;if(m[a0(0xf0)](q=>p[a0(0x136)](q))){g=o,k=!![],j++;continue;}if(k){p[a0(0x136)](b[a0(0xc8)]())&&(l=!![]);if(p[a0(0x136)]('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[a0(0x14b)](a0(0xd6)+a),Log['error'](a0(0x14f)+b),Log[a0(0x14b)](a0(0x122)+c);throw new Error(a0(0x10f));}if(l)return;let n=f[a0(0xe2)](0x0,g+0x1);replace?(n['push'](b[a0(0xc8)]()),n[a0(0x11a)](f[h])):(n=n[a0(0x11d)](f[a0(0xe2)](g+0x1,h)),n[a0(0x11a)](b[a0(0xc8)]())),n=n['concat'](f[a0(0xe2)](h+0x1)),a162f[a0(0xf3)](a,n['join']('\x0a'),a0(0xfb));}catch(q){console['error'](a0(0xef),q);throw q;}}async[a162z(0xec)]({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const a1=a162z;try{const g=await this['fsi'][a1(0x131)](a,c);if(g)return;if(!this[a1(0x15c)][a1(0x10a)](a))throw Log[a1(0x14b)](a1(0x106)+JSON[a1(0x14d)](a));const h=a162f['readFileSync'](a,a1(0xfb));if(!Array[a1(0xc2)](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+a1(0x127)+l+')','i');i=h['replace'](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(a1(0x128));a162f['writeFileSync'](a,i),Log[a1(0xd7)](treeSymbol+a1(0x14c)+a162e[a1(0x154)](process[a1(0x11b)](),a));}catch(n){errorHandler(a1(0xc4),n),process['exit'](0x1);}}async['injectImport']({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const a2=a162z;try{const f=a162f[a2(0x132)](a,a2(0xfb));let g;d?g=a2(0x134)+b+'\x20}\x20from\x20\x27'+c+a2(0x13b):g=a2(0x13a)+b+a2(0x105)+c+'\x27;\x0a';const h=f[a2(0x167)]('\x0a');let j=0x0,k=![];for(const m of h){if(m[a2(0x136)](a2(0xea)+c+'\x27')||m[a2(0x136)](a2(0xd4)+c+'\x22')){const n=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(a2(0x13a)+b+'\x20from');if(m[a2(0x124)](n)){k=!![];break;}}}if(k)return;if(injectAtStart)for(let o=0x0;o<h[a2(0x166)];o++){if(h[o][a2(0x124)](/^import .* from .*;$/)){j=o;break;}}else{for(let p=0x0;p<h[a2(0x166)];p++){h[p][a2(0x124)](/^import .* from .*;$/)&&(j=p);}j++;}h['splice'](j,0x0,g);const l=h[a2(0xc0)]('\x0a');a162f[a2(0xf3)](a,l,a2(0xfb));}catch(q){errorHandler(a2(0xf9),q),process['exit'](0x1);}}async['injectTemplateModule'](a,b,c){const a3=a162z;try{let d;b[a3(0x103)][a3(0x15a)]!==a3(0x13c)?d=this[a3(0xde)]({'pathParts':[a3(0x113),a3(0xee),a3(0x115),'templates.js'],'config':b}):d=this[a3(0xde)]({'pathParts':[a3(0x113),a3(0xee),a3(0x168),a3(0x12c)],'config':b});const f=this[a3(0x146)]({'pathParts':[d],'config':b}),g='export\x20{\x20'+pascalCase(a)+'\x20}\x20from\x20\x27'+c+'\x27;',h=await this[a3(0x15c)][a3(0x131)](f,g);!h&&this['injectAtEndOfFile']({'filePath':f,'content':g+'\x0a'});}catch(i){errorHandler(a3(0xff),i),process[a3(0x137)](0x1);}}['injectAfterLineNumber']({filePath:a,content:b,lineNumber:c}){const a4=a162z;try{const d=a162f[a4(0x132)](a)[a4(0xcc)]()[a4(0x167)]('\x0a');d[a4(0xcf)](c,0x0,b);const f=d[a4(0xc0)]('\x0a');a162f[a4(0xf3)](a,f);}catch(g){errorHandler(a4(0x143),g),process[a4(0x137)](0x1);}}[a162z(0xde)]({pathParts:a,config:b}){const a5=a162z;try{if(!a)throw new Error(a5(0xf4));const c=this[a5(0x157)]({'pathParts':a,'config':b}),d=this[a5(0x15c)][a5(0x121)]();return d?a162e[a5(0xc0)](d,c):'';}catch(f){errorHandler('pathFromApp()',f),process[a5(0x137)](0x1);}}[a162z(0x119)]({pathParts:a,config:b}){const a6=a162z;try{const c=this[a6(0x15d)]({'pathParts':a,'config':b}),d=this[a6(0x15c)][a6(0x121)]();if(!d)throw new Error(a6(0xd5));return a162e[a6(0xc0)](d,c);}catch(f){errorHandler('pathFromAppWithNoReWrite()',f),process[a6(0x137)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a163m=a163d;(function(a,b){const j=a163d,c=a();while(!![]){try{const d=parseInt(j(
|
|
1
|
+
function a163c(){const t=['disconnect','success','2284857biwnvQ','search','35haczyW','apply','982116IjxUZr','data','756720XEztjD','failure','2971059mukTEW','message','log','110CCFrEh','cwd','constructor','pid','(((.+)+)+)+$','withSpinner','toString','ignore','close','152678tKhxfK','263994dtoynT','5095144cbpBSL','4WjlEjG','verbose'];a163c=function(){return t;};return a163c();}const a163m=a163d;(function(a,b){const j=a163d,c=a();while(!![]){try{const d=parseInt(j(0x200))/0x1*(parseInt(j(0x1e8))/0x2)+-parseInt(j(0x1ec))/0x3+parseInt(j(0x1f2))/0x4+-parseInt(j(0x1ee))/0x5*(parseInt(j(0x201))/0x6)+parseInt(j(0x1f4))/0x7+-parseInt(j(0x202))/0x8+-parseInt(j(0x1f0))/0x9*(-parseInt(j(0x1f7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a163c,0x64ca0));const a163b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a163d;if(c){const e=c[k(0x1ef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a163a=a163b(this,function(){const l=a163d;return a163a[l(0x1fd)]()[l(0x1ed)](l(0x1fb))[l(0x1fd)]()[l(0x1f9)](a163a)['search'](l(0x1fb));});a163a();import{spawn}from'child_process';import{Log}from'../log/log.class.js';function a163d(a,b){const c=a163c();return a163d=function(d,e){d=d-0x1e8;let f=c[d];return f;},a163d(a,b);}export class SpawnAsync{static[a163m(0x1fc)](a,b,c){return new Promise((d,e)=>{const n=a163d,f=Log[n(0x1fc)](),g=c?.[n(0x1f8)]||'.';c?.['message']&&f['start'](c?.['message']);const h=spawn(a,b,{'cwd':g,'stdio':c?.[n(0x1e9)]?'inherit':n(0x1fe)});process['on']('SIGINT',()=>{const o=n,i=h[o(0x1fa)];i&&process['kill'](i);}),h['on'](n(0x1f1),i=>{const p=n;console[p(0x1f6)](i);}),h['on'](n(0x1ea),()=>{const q=n;c?.['message']&&f[q(0x1eb)](),d();}),h['on'](n(0x1ff),()=>{const r=n;c?.[r(0x1f5)]&&f[r(0x1eb)](),d();}),h['on']('error',()=>{const s=n;c?.[s(0x1f5)]&&f[s(0x1f3)](),e();});});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a164d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a164d,c=a();while(!![]){try{var d=-parseInt(f(0x1c1))/0x1+parseInt(f(0x1b9))/0x2*(-parseInt(f(0x1bb))/0x3)+-parseInt(f(0x1bd))/0x4*(parseInt(f(0x1b7))/0x5)+-parseInt(f(0x1ba))/0x6*(parseInt(f(0x1c0))/0x7)+parseInt(f(0x1b5))/0x8+parseInt(f(0x1b8))/0x9+parseInt(f(0x1b3))/0xa*(parseInt(f(0x1bf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a164c,0x900a3));var a164b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a164a=a164b(this,function(){var g=a164d;return a164a[g(0x1be)]()['search'](g(0x1b6))[g(0x1be)]()[g(0x1bc)](a164a)[g(0x1b4)](g(0x1b6));});a164a();export{};function a164d(a,b){var c=a164c();return a164d=function(d,e){d=d-0x1b3;var f=c[d];return f;},a164d(a,b);}function a164c(){var h=['746pPmQJV','2172306LLKeEi','4215mBrrDk','constructor','36028uWUTRA','toString','2123xLBSBi','7uFpIpl','185584aujyLs','72790CendWA','search','1023216FQsdcI','(((.+)+)+)+$','235brWUQM','4970403SnZDOW'];a164c=function(){return h;};return a164c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a165u=a165d;function a165c(){const x=['start','message','concat','push','port','ssh','verbose','toString','failure','search','error','573axaWZd','664182dEAkkW','2>&1','ping','dest','69204pThBJy','3150323EEFHaz','(((.+)+)+)+$','ConnectTimeout=2','pem','56716IAAhUh','ignore','1072526eRSAjP','16ZpYdbv','success','host','3710tVAFkl','close','ssh\x20','join','inherit','8361KueOEC','2126NmyfNv','apply','scp','user','source','env','95eMzKQl','constructor','tty'];a165c=function(){return x;};return a165c();}(function(a,b){const m=a165d,c=a();while(!![]){try{const d=-parseInt(m(0xa9))/0x1+-parseInt(m(0xb5))/0x2*(-parseInt(m(0xc9))/0x3)+parseInt(m(0xa4))/0x4*(-parseInt(m(0xbb))/0x5)+parseInt(m(0xca))/0x6+-parseInt(m(0xab))/0x7*(-parseInt(m(0xac))/0x8)+parseInt(m(0xb4))/0x9*(-parseInt(m(0xaf))/0xa)+parseInt(m(0xa5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a165c,0x2b151));const a165b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a165d;if(c){const e=c[n(0xb6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a165a=a165b(this,function(){const o=a165d;return a165a[o(0xc5)]()[o(0xc7)](o(0xa6))[o(0xc5)]()[o(0xbc)](a165a)[o(0xc7)](o(0xa6));});function a165d(a,b){const c=a165c();return a165d=function(d,e){d=d-0xa1;let f=c[d];return f;},a165d(a,b);}a165a();import a165e from'path';import{execSync,spawnSync,spawn}from'child_process';import{Log}from'../log/log.class.js';export class SSH{static ['ssh']=(a,b,c)=>{return new Promise((d,e)=>{const p=a165d,f=b[p(0xb8)]+'@'+b[p(0xae)],g=a165e[p(0xb2)](b[p(0xba)],b[p(0xa8)]),h=c?.['tty']||![],i=c?.['sshVerbose']||![];let j=[];h&&j[p(0xc1)]('-t');i&&j[p(0xc1)]('-v');j=j[p(0xc0)](['-o',p(0xa7),'-i',g,'-p',b[p(0xc2)],f,a]);const k=Log['withSpinner']();c?.[p(0xbf)]&&k[p(0xbe)](c?.[p(0xbf)]);const l=spawn(p(0xc3),j,{'stdio':c?.[p(0xc4)]?p(0xb3):p(0xaa)});l['on']('disconnect',()=>{const q=p;c?.[q(0xbf)]&&k[q(0xad)](),d();}),l['on'](p(0xb0),()=>{const r=p;c?.[r(0xbf)]&&k[r(0xad)](),d();}),l['on'](p(0xc8),()=>{const s=p;c?.[s(0xbf)]&&k[s(0xc6)](),e();});});};static ['sshSync']=(a,b,c)=>{const t=a165d,d=b[t(0xb8)]+'@'+b[t(0xae)],e=a165e[t(0xb2)](b[t(0xba)],b['pem']),f=c?.[t(0xbd)]||![],g=c?.['sshVerbose']||![];let h=[];f&&h[t(0xc1)]('-t'),g&&h['push']('-v'),h=h[t(0xc0)](['-o','ConnectTimeout=2','-i',e,'-p',b[t(0xc2)],d,a]),spawnSync(t(0xc3),h,{'stdio':c?.[t(0xc4)]?t(0xb3):t(0xaa)});};static[a165u(0xa2)](a,b,c){const v=a165u,d=b['user']+'@'+b[v(0xae)],e=a165e[v(0xb2)](b[v(0xba)],b[v(0xa8)]),f=c?.['tty']||![];let g=[];f&&g[v(0xc1)]('-t');g=g['concat'](['-o','ConnectTimeout=2','-i',e,'-p',b['port'],d,a,v(0xa1)]);const h=v(0xb1)+g[v(0xb2)]('\x20');return execSync(h)['toString']();}static['scp'](a,b){const w=a165u,c=b[w(0xb8)]+'@'+b[w(0xae)]+':'+a[w(0xa3)],d=a165e[w(0xb2)](b[w(0xba)],b[w(0xa8)]),e=['-i',d,'-P',b[w(0xc2)],a[w(0xb9)],c];spawnSync(w(0xb7),e,{'stdio':a['verbose']?w(0xb3):w(0xaa)});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a166d,c=a();while(!![]){try{var d=parseInt(f(0xc6))/0x1+-parseInt(f(0xcf))/0x2*(parseInt(f(0xce))/0x3)+parseInt(f(0xca))/0x4*(parseInt(f(0xc2))/0x5)+parseInt(f(0xc9))/0x6*(parseInt(f(0xc4))/0x7)+-parseInt(f(0xc7))/0x8*(parseInt(f(0xc5))/0x9)+-parseInt(f(0xcb))/0xa+parseInt(f(0xcc))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a166c,0x5c750));var a166b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a166d;if(c){var e=c[g(0xc1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a166a=a166b(this,function(){var h=a166d;return a166a[h(0xcd)]()[h(0xc8)](h(0xd0))[h(0xcd)]()[h(0xc3)](a166a)[h(0xc8)](h(0xd0));});function a166d(a,b){var c=a166c();return a166d=function(d,e){d=d-0xc1;var f=c[d];return f;},a166d(a,b);}a166a();export{};function a166c(){var i=['search','500658YdHsmN','8feGCtH','5672630yCKoIt','13950387SLkWpW','toString','1399089wjGYNh','2DMHiks','(((.+)+)+)+$','apply','171755YpbxWS','constructor','7HKzURn','9bYkBQt','568857aFGAHs','4615112NKRqRM'];a166c=function(){return i;};return a166c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a167i=a167d;(function(a,b){const f=a167d,c=a();while(!![]){try{const d=parseInt(f(0x1b6))/0x1*(-parseInt(f(0x1c0))/0x2)+parseInt(f(0x1b4))/0x3*(-parseInt(f(0x1b2))/0x4)+parseInt(f(0x1bf))/0x5*(parseInt(f(0x1c7))/0x6)+parseInt(f(0x1c5))/0x7*(-parseInt(f(0x1b9))/0x8)+parseInt(f(0x1bd))/0x9*(-parseInt(f(0x1c2))/0xa)+-parseInt(f(0x1b0))/0xb*(-parseInt(f(0x1c1))/0xc)+parseInt(f(0x1b7))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a167c,0x29668));function a167d(a,b){const c=a167c();return a167d=function(d,e){d=d-0x1a9;let f=c[d];return f;},a167d(a,b);}const a167b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a167d;if(c){const e=c[g(0x1af)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a167a=a167b(this,function(){const h=a167d;return a167a[h(0x1ab)]()[h(0x1ad)](h(0x1cb))[h(0x1ab)]()['constructor'](a167a)[h(0x1ad)](h(0x1cb));});a167a();import{spawnSync}from'child_process';function a167c(){const l=['-new','toString','rsa:2048','search','-config','apply','1316502bTKPuB','keyName','432qNWDWt','useConfig','6492rpZpab','genCSR','60263UBEFze','7028879PLEirP','-keyout','1016gpblHm','-nodes','crtName','push','9sxETgV','req','205560VoIHGz','2uTsnJy','12qnrmud','3287140ySEHsr','cwd','openssl','4060yVAWaz','csrName','30XDcRZg','-out','inherit','-newkey','(((.+)+)+)+$','genSSC'];a167c=function(){return l;};return a167c();}export class SSL{static[a167i(0x1b5)](a){const j=a167i,b=a['cwd']?a[j(0x1c3)]:process[j(0x1c3)](),c=[j(0x1be),j(0x1aa),j(0x1ca),j(0x1ac),j(0x1ba),j(0x1b8),a['keyName'],j(0x1c8),a[j(0x1c6)]];a['useConfig']&&(c[j(0x1bc)](j(0x1ae)),c[j(0x1bc)]('openssl.conf')),a[j(0x1b3)]?spawnSync('openssl',c,{'cwd':b}):spawnSync('openssl',c,{'stdio':j(0x1c9),'cwd':b});}static[a167i(0x1a9)](a){const k=a167i,b=a[k(0x1c3)]?a[k(0x1c3)]:process[k(0x1c3)](),c=[k(0x1be),'-x509',k(0x1aa),'-key',a[k(0x1b1)],k(0x1c8),a[k(0x1bb)]];a[k(0x1b3)]&&(c[k(0x1bc)](k(0x1ae)),c[k(0x1bc)]('openssl.conf')),a[k(0x1b3)]?spawnSync(k(0x1c4),c,{'cwd':b}):spawnSync('openssl',c,{'stdio':k(0x1c9),'cwd':b});}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
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.",
|
|
@@ -34,24 +34,24 @@
|
|
|
34
34
|
"author": "Maka <maka@maka-cli.com>",
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@aws-sdk/client-ec2": "^3.
|
|
38
|
-
"@aws-sdk/client-ecr": "^3.
|
|
39
|
-
"@aws-sdk/client-route-53": "^3.
|
|
40
|
-
"@aws-sdk/client-route-53-domains": "^3.
|
|
37
|
+
"@aws-sdk/client-ec2": "^3.683.0",
|
|
38
|
+
"@aws-sdk/client-ecr": "^3.682.0",
|
|
39
|
+
"@aws-sdk/client-route-53": "^3.683.0",
|
|
40
|
+
"@aws-sdk/client-route-53-domains": "^3.682.0",
|
|
41
41
|
"@babel/eslint-parser": "^7.25.9",
|
|
42
|
-
"@inquirer/prompts": "^
|
|
42
|
+
"@inquirer/prompts": "^7.0.1",
|
|
43
43
|
"@maka/tar": "^6.2.2",
|
|
44
44
|
"blessed": "^0.1.81",
|
|
45
45
|
"change-case": "^5.4.4",
|
|
46
46
|
"cli-color": "^2.0.4",
|
|
47
47
|
"cli-cursor": "^5.0.0",
|
|
48
48
|
"cli-table": "^0.3.11",
|
|
49
|
-
"date-fns": "^
|
|
49
|
+
"date-fns": "^4.1.0",
|
|
50
50
|
"delete": "github:maka-io/delete",
|
|
51
51
|
"dotenv": "^16.4.5",
|
|
52
52
|
"ejs": "^3.1.10",
|
|
53
53
|
"elegant-spinner": "^3.0.0",
|
|
54
|
-
"eslint": "^9.
|
|
54
|
+
"eslint": "^9.13.0",
|
|
55
55
|
"http-proxy": "^1.18.1",
|
|
56
56
|
"humps": "^2.0.1",
|
|
57
57
|
"husky": "^9.1.6",
|
|
@@ -67,15 +67,15 @@
|
|
|
67
67
|
"slash": "^5.1.0",
|
|
68
68
|
"spawn-args": "0.2.0",
|
|
69
69
|
"tar": "^7.4.3",
|
|
70
|
-
"type-fest": "^4.
|
|
71
|
-
"uuid": "^
|
|
70
|
+
"type-fest": "^4.26.1",
|
|
71
|
+
"uuid": "^11.0.2",
|
|
72
72
|
"xtend": "^4.0.2"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@aws-sdk/types": "^3.
|
|
76
|
-
"@eslint/js": "^9.
|
|
75
|
+
"@aws-sdk/types": "^3.679.0",
|
|
76
|
+
"@eslint/js": "^9.13.0",
|
|
77
77
|
"@types/blessed": "^0.1.25",
|
|
78
|
-
"@types/chai": "^
|
|
78
|
+
"@types/chai": "^5.0.1",
|
|
79
79
|
"@types/cli-color": "^2.0.6",
|
|
80
80
|
"@types/cli-table": "^0.3.4",
|
|
81
81
|
"@types/ejs": "^3.1.5",
|
|
@@ -84,26 +84,26 @@
|
|
|
84
84
|
"@types/humps": "^2.0.6",
|
|
85
85
|
"@types/inquirer": "^9.0.7",
|
|
86
86
|
"@types/jest": "^29.5.14",
|
|
87
|
-
"@types/jsonwebtoken": "^9.0.
|
|
87
|
+
"@types/jsonwebtoken": "^9.0.7",
|
|
88
88
|
"@types/meteor": "^2.9.8",
|
|
89
89
|
"@types/minimist": "^1.2.5",
|
|
90
|
-
"@types/node": "^22.5
|
|
91
|
-
"@types/react": "^18.3.
|
|
92
|
-
"@types/react-dom": "^18.3.
|
|
90
|
+
"@types/node": "^22.8.5",
|
|
91
|
+
"@types/react": "^18.3.12",
|
|
92
|
+
"@types/react-dom": "^18.3.1",
|
|
93
93
|
"@types/uuid": "^10.0.0",
|
|
94
|
-
"aws-sdk": "^2.
|
|
95
|
-
"chai": "^5.1.
|
|
94
|
+
"aws-sdk": "^2.1691.0",
|
|
95
|
+
"chai": "^5.1.2",
|
|
96
96
|
"chdir": "^0.0.0",
|
|
97
97
|
"concat-stream": "^2.0.0",
|
|
98
|
-
"concurrently": "^
|
|
99
|
-
"esbuild": "^0.
|
|
100
|
-
"globals": "^15.
|
|
98
|
+
"concurrently": "^9.0.1",
|
|
99
|
+
"esbuild": "^0.24.0",
|
|
100
|
+
"globals": "^15.11.0",
|
|
101
101
|
"javascript-obfuscator": "^4.1.1",
|
|
102
102
|
"mkdirp": "^3.0.1",
|
|
103
103
|
"ts-jest": "^29.2.5",
|
|
104
|
-
"typescript": "^5.
|
|
105
|
-
"typescript-eslint": "^8.2
|
|
106
|
-
"wait-on": "^8.0.
|
|
104
|
+
"typescript": "^5.6.3",
|
|
105
|
+
"typescript-eslint": "^8.12.2",
|
|
106
|
+
"wait-on": "^8.0.1"
|
|
107
107
|
},
|
|
108
108
|
"engines": {
|
|
109
109
|
"node": ">=14.0.0"
|