@maka/maka-cli 5.1.5 → 5.1.7
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 +1 -1
- 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/templates/meteor/app/imports/startup/client/routes.js.jsx +4 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +4 -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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a162y=a162d;(function(a,b){const v=a162d,c=a();while(!![]){try{const d=parseInt(v(0x14c))/0x1*(parseInt(v(0x100))/0x2)+-parseInt(v(0x198))/0x3*(-parseInt(v(0x179))/0x4)+parseInt(v(0x184))/0x5*(-parseInt(v(0xff))/0x6)+-parseInt(v(0x164))/0x7*(-parseInt(v(0x141))/0x8)+parseInt(v(0x148))/0x9+parseInt(v(0x150))/0xa+parseInt(v(0x13b))/0xb*(-parseInt(v(0x174))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0x2c2d9));const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const w=a162d;return a162a['toString']()['search'](w(0x16c))[w(0x130)]()[w(0x187)](a162a)[w(0x117)]('(((.+)+)+)+$');});function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0xfa;let f=c[d];return f;},a162d(a,b);}a162a();import a162e from'path';import a162f from'fs';import a162g from'util';import{exec}from'child_process';import a162h from'delete';function a162c(){const a6=['detectIndentation','isFile','templateContent()','rewriteDestinationPathForType','8rpxzRT','test','promisify','Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20','injectIntoFile','isDirectory','readFileSync','2233224bZcZeO','templates','isArray','findAppDirectory','2qLnCpg','src/templates/','reduce','Error\x20in\x20','1578070dipCWm','createDirectory','fileContainsString','.js','win32','[\x5cs\x5cS]*?)(','render','none','engine','No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20','css','engineAndTypeFromfilePath()','template()','replace','rewriteSourcePathForEngine','join','slice','import\x20{\x20','No\x20matching\x20section\x20found.','.js.jsx','670502RRtrGB','length','relative','env','\x5cS*$','isTemplateForEngine','imports','split','(((.+)+)+)+$','repeat','sep','injectIntoFile()','injectTemplateModule','ico','startup','stringify','2601708KrgDYZ','pathFromTemplates','\x20->','from','pathFromApp','34964zFzOMT','alpha','normalize','createEmptyMeteorProject','.meteor','jsx','pathFromApp()','trim','verbose','Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20','MAKA_COMMAND_PATH','2845KWOvKp','Error\x20in\x20injectIntoCodeBlock:\x20','fsi','constructor','noRename','yaml','copyTemplateDirectory','injectAtEndOfFile','keys','engineAndTypeFromfilePath','exit','No\x20app\x20directory\x20found','--minimal','Meteor\x20project\x20already\x20exists\x20at\x20','adjustIndentation','cwd','forEach','client','type','\x20from\x20\x27','3FVlFZM','rewriteSourcePathForEngine()','endsWith','\x20}\x20from\x20\x27','template','createFile','2988eaaKzp','170654nAXxQc','scss','export\x20{\x20','message','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','warn','utf8','.git','writeSourcePath','Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues','pop','platform','import\x20','ssr','injectAroundString()','templateContent','writeFileSync','rewriteDestinationPathForEngine','map','No\x20file\x20found\x20at\x20path\x20','filter','readdirSync','from\x20\x22','search','isTemplateForEngine()','indexOf','injectImport()','match','injectIntoCodeBlock','png','error','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20','getCommonIndentSize','includes','.js.tsx','pathFromAppWithNoReWrite()','calculateMode','\x20doesn\x27t\x20exist','While\x20injecting\x20','splice','less','mpi','engines','release','meteor','header','.js.ts','json','toString','base64','existsSync','\x20updated\x20file\x20','startsWith','copyTemplateDirectory()','push','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','tsx','concat','html','11GhAWwW','instance'];a162c=function(){return a6;};return a162c();}import a162i from'ejs';import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';const errorHandler=(a,b)=>{const x=a162d;process['env']['MAKA_DEV']==='True'&&Log[x(0x11e)](x(0x14f)+a),b&&console[x(0x11e)](b);},isWin=process[a162y(0x10b)]===a162y(0x154),treeSymbol=isWin?a162y(0x176):'\x20┗';export class Scaffold{static [a162y(0x13c)];['fsi'];[a162y(0x129)];constructor(a,b){const z=a162y;this['fsi']=a,this[z(0x129)]=b;}static['getInstance'](a,b){const A=a162y;return!Scaffold[A(0x13c)]&&(Scaffold['instance']=new Scaffold(a,b)),Scaffold[A(0x13c)];}async[a162y(0x17c)](a,b){const B=a162y;b[B(0x193)]=b['cwd']||'.';const c=a162e[B(0x15f)](b[B(0x193)],a),d=a162e[B(0x15f)](c,B(0x17d));if(this[B(0x186)]['isDirectory'](d))throw new Error(B(0x191)+JSON[B(0x173)](c));const e=B(0x190),f=a162e['join'](b['cwd']),g=a162g[B(0x143)](exec),h=b[B(0x12b)]?'--release\x20'+b[B(0x12b)]:'';b['release']&&b[B(0x12b)][B(0x121)](B(0x17a))&&(Log[B(0x105)](B(0x182)+b[B(0x12b)]),Log[B(0x105)](B(0x109)));try{await g(this[B(0x129)]['meteor']+'\x20create\x20'+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[B(0x11e)]('\x0a'+k[B(0x103)]);throw k;}const i=a162e[B(0x15f)](f,a);if(!a162f['existsSync'](i))throw new Error('Directory\x20'+i+B(0x125));const j=a162f['readdirSync'](i);for(const l of j){if(l!==B(0x107)&&l!==B(0x17d)){const m=a162e[B(0x15f)](i,l);await a162h(m,{'force':!![]});}}}['engineAndTypeFromfilePath']({filePath:a}){const C=a162y;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a[C(0x11b)](b);c=c&&c[0x0]['split']('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[C(0x10a)](),f=c[C(0x10a)]()||d;if(d)d=d[C(0x15d)]('.','');if(f)f=f[C(0x15d)]('.','');return{'type':f,'engine':d};}catch(g){errorHandler(C(0x15b),g),process[C(0x18e)](0x1);}}[a162y(0x140)]({pathParts:a,config:b}){const D=a162y;try{const c=a['join'](a162e[D(0x16e)]),d=this[D(0x18d)]({'filePath':c})['type'],f=b?.['engines'][d],g=new RegExp('\x5c.'+d+'\x5cS*$');return!d||!f?c:c[D(0x15d)](g,'.'+d);}catch(h){errorHandler('rewriteDestinationPathForType()',h),process['exit'](0x1);}}[a162y(0x169)]({pathParts:a,config:b}){const E=a162y;try{if(!b)throw new Error(E(0x137));const c=a[E(0x15f)](a162e[E(0x16e)]),d=this[E(0x18d)]({'filePath':c});if(!d[E(0x196)]||!d['engine'])return!![];const f=b[E(0x12a)][d[E(0x196)]];if(!f)return!![];return f===d[E(0x158)];}catch(g){errorHandler(E(0x118),g),process[E(0x18e)](0x1);}}[a162y(0x108)]({pathParts:pathParts=[]}){const F=a162y;return pathParts['join'](a162e[F(0x16e)]);}['rewriteDestinationPathForEngine']({pathParts:pathParts=[],config:a}){const G=a162y;try{const b=pathParts[G(0x15f)](a162e['sep']),c=this[G(0x18d)]({'filePath':b})[G(0x196)],d=a?.['engines'][c],f=new RegExp('\x5c.'+c+G(0x168));return!c||!d?b:b['replace'](f,'.'+d);}catch(g){errorHandler('rewriteDestinationPathForEngine()',g),process[G(0x18e)](0x1);}}[a162y(0x15e)]({pathParts:pathParts=[],framework:framework=a162y(0x12c),config:a}){const H=a162y;try{const b=a162e[H(0x17b)](pathParts[H(0x15f)](a162e['sep']));if(!b[H(0xfb)]('.js'))return b;const c='js';if(!a?.[H(0x12a)]||!a?.['engines'][c])return b;const d=a['engines'][c],f=d==='tsx'?[H(0x122),H(0x12e),H(0x153)]:[H(0x163),H(0x153)];for(const g of f){const h=b[H(0x15d)](/\.js$/,g),i=a162e[H(0x15f)](H(0x149),framework,h),j=a162e['normalize'](a162e['join'](global[H(0x183)],i));if(a162f[H(0x132)](j))return h;}return b;}catch(k){errorHandler(H(0xfa),k),process[H(0x18e)](0x1);}}[a162y(0x175)]({pathParts:a,framework:framework=a162y(0x12c),config:b}){const I=a162y;try{const c=this[I(0x15e)]({'pathParts':a,'framework':framework,'config':b}),d=a162e['join'](I(0x14d)+framework,c),f=a162e['join'](global[I(0x183)],'..',d);return f;}catch(g){errorHandler('pathFromTemplates()',g),process[I(0x18e)](0x1);}}[a162y(0x10f)]({srcPath:a,context:b,framework:c,config:d}){const J=a162y;try{let f=this[J(0x175)]({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this[J(0x18d)]({'filePath':f}),h=[J(0x15a),J(0x101),J(0x128),J(0x13a),'js','jsx','ts',J(0x138),J(0x12f),J(0x167),J(0x189),'template'],i=['png',J(0x171)];if(!this[J(0x186)][J(0x13e)](f)){g===J(0x17e)&&(f=f[J(0x15d)]('.jsx',''));g==='tsx'&&(f=f[J(0x15d)]('.tsx',''));if(!this['fsi'][J(0x13e)](f))throw new Error(J(0x144)+JSON[J(0x173)](f));}const j=f['split']('.'),k=a162e[J(0x17b)](f)[J(0x16b)](a162e[J(0x16e)]),l=k[k['length']-0x1]==='Dockerfile',m=i[J(0x121)](j[j[J(0x165)]-0x1]),n=a162f[J(0x147)](f);if(l)return a162i[J(0x156)](n[J(0x130)](),b)[J(0x180)]();if(m)return Buffer[J(0x177)](n)[J(0x130)](J(0x131));if(!h['includes'](j[j[J(0x165)]-0x1]))return n[J(0x130)]()[J(0x180)]();return a162i[J(0x156)](n[J(0x130)](),b||{})[J(0x180)]();}catch(o){errorHandler(J(0x13f),o),process['exit'](0x1);}}async[a162y(0xfd)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const K=a162y;try{const g=[K(0x11d),K(0x171)],h=g['includes'](a[K(0x16b)]('.')[K(0x10a)]()||''),i=this['templateContent']({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.['noRename']?b=this[K(0x140)]({'pathParts':[b],'config':d}):b=this[K(0x111)]({'pathParts':[b],'config':d});const j=await this[K(0x186)][K(0xfe)]({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler(K(0x15c),k),process['exit'](0x1);}}async['copyTemplateDirectory']({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const L=a162y;try{const i=this[L(0x175)]({'pathParts':[a],'framework':g,'config':h}),j=this['pathFromTemplates']({'pathParts':[],'framework':g,'config':h}),k=n=>{const M=L;return n[M(0x15d)](j,'');},l=n=>{const N=L;return n[N(0x15d)](i,b);};await this['fsi'][L(0x151)]({'dirPath':b});const m=a162f[L(0x115)](i);for(const n of m){try{const o=a162e[L(0x15f)](i,n),p=k(o),q=l(o),r=d[L(0x112)](t=>a162e[L(0x17b)](t)),s=a162e[L(0x17b)](a162e['join'](a,n));if(r[L(0x121)](s))continue;if(this['fsi'][L(0x146)](o))await this[L(0x18a)]({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this[L(0x186)][L(0x13e)](o)&&this['isTemplateForEngine']({'pathParts':[o],'config':h}))await this[L(0xfd)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f[L(0x119)](a162e[L(0x15f)](a,n))>=0x0&&this['fsi'][L(0x13e)](o)&&(c['noRename']=!![],await this[L(0xfd)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c[L(0x188)]=![]);}}catch(t){console[L(0x11e)](t),process[L(0x18e)](0x1);}}}catch(u){errorHandler(L(0x135),u),process[L(0x18e)](0x1);}}async['injectAtBeginningOfFile']({filePath:a,content:b,opts:c}){const O=a162y;if(!a)throw new Error(O(0x104));try{!this[O(0x186)][O(0x13e)](a)&&await this['fsi']['createFile']({'filePath':a,'data':b});let d=a162f[O(0x147)](a,O(0x106));d=b+'\x0a'+d,a162f[O(0x110)](a,d),c?.['verbose']&&Log[O(0x12d)](treeSymbol+'\x20updated\x20file\x20'+a162e['relative'](process[O(0x193)](),a));}catch(f){errorHandler('injectAtBeginningOfFile()',f),process[O(0x18e)](0x1);}}async[a162y(0x18b)]({filePath:a,content:b,opts:c}){const P=a162y;try{if(!this[P(0x186)][P(0x13e)](a))await this[P(0x186)][P(0xfe)]({'filePath':a,'data':b});else{let d=a162f[P(0x147)](a,P(0x106));!d[P(0x121)](b)&&(d=d+'\x0a'+b,a162f[P(0x110)](a,d)),c?.[P(0x181)]&&Log['header'](treeSymbol+P(0x133)+a162e[P(0x166)](process[P(0x193)](),a));}}catch(f){errorHandler('injectAtEndOfFile()',f),process[P(0x18e)](0x1);}}async['injectAroundString']({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const Q=a162y;try{if(!this['fsi']['isFile'](a))throw Log[Q(0x11e)](Q(0x113)+JSON['stringify'](a));const f=a162f['readFileSync'](a,Q(0x106)),g=f[Q(0x15d)](/\r\n|\r/g,'\x0a'),h=g[Q(0x16b)]('\x0a'),j=this[Q(0x13d)](h),k=b['replace'](/\r\n|\r/g,'\x0a')[Q(0x16b)]('\x0a'),l=c[Q(0x15d)](/\r\n|\r/g,'\x0a')['split']('\x0a'),m=new RegExp(Array['isArray'](d)?d[Q(0x15f)]('|'):d,'i'),n=[];for(let p=0x0;p<h[Q(0x165)];p++){const q=h[p];if(m[Q(0x142)](q)){const r=this[Q(0x192)](j,targetIndentAdjustment),s=r+q[Q(0x180)]();k[Q(0x194)](t=>{const R=Q;!g[R(0x121)](t[R(0x180)]())&&n['push'](this[R(0x192)](j,indentAdjustment)+t);}),n[Q(0x136)](s),l[Q(0x194)](t=>{const S=Q;!g[S(0x121)](t[S(0x180)]())&&n[S(0x136)](this[S(0x192)](j,indentAdjustment)+t);});}else n[Q(0x136)](q);}const o=n['join']('\x0a');a162f[Q(0x110)](a,o),Log['header'](treeSymbol+Q(0x133)+a162e['relative'](process['cwd'](),a));}catch(t){errorHandler(Q(0x10e),t),process['exit'](0x1);}}[a162y(0x192)](a,b){const T=a162y;if(b===0x0)return a;const c=a[T(0x165)]+b;return c>0x0?a[0x0][T(0x16d)](c):'';}['detectIndentation'](a){const V=a162y;let b=0x0,c=0x0;a['forEach'](f=>{const U=a162d;if(f['startsWith']('\x20'))b++;else f[U(0x134)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[V(0x120)](a,d);return d[V(0x16d)](e);}[a162y(0x120)](a,b){const W=a162y,c=a[W(0x114)](d=>d&&d[W(0x134)](b))[W(0x112)](d=>{const X=W,e=d[X(0x11b)](new RegExp('^'+b+'+'));return e?e[0x0][X(0x165)]:0x0;});if(c[W(0x165)]===0x0)return 0x0;return this[W(0x124)](c);}['calculateMode'](a){const Y=a162y,b=a[Y(0x14e)]((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object[Y(0x18c)](b)[Y(0x14e)]((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async[a162y(0x11c)]({filePath:a,content:b,begin:c,replace:replace=![]}){const Z=a162y;try{if(!this[Z(0x186)]['isFile'](a))throw new Error('File\x20not\x20found:\x20'+a);const d=a162f[Z(0x147)](a,'utf8'),f=d[Z(0x16b)]('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array['isArray'](c)?c:[c];for(let o=0x0;o<f[Z(0x165)];o++){const p=f[o];k&&p[Z(0x121)]('{')&&j++;if(m['some'](q=>p[Z(0x121)](q))){g=o,k=!![],j++;continue;}if(k){p[Z(0x121)](b[Z(0x180)]())&&(l=!![]);if(p[Z(0x121)]('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[Z(0x11e)](Z(0x11f)+a),Log[Z(0x11e)](Z(0x126)+b),Log[Z(0x11e)]('Looking\x20for\x20'+c);throw new Error('Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.');}if(l)return;let n=f[Z(0x160)](0x0,g+0x1);replace?(n[Z(0x136)](b[Z(0x180)]()),n[Z(0x136)](f[h])):(n=n[Z(0x139)](f[Z(0x160)](g+0x1,h)),n[Z(0x136)](b[Z(0x180)]())),n=n[Z(0x139)](f[Z(0x160)](h+0x1)),a162f[Z(0x110)](a,n['join']('\x0a'),Z(0x106));}catch(q){console[Z(0x11e)](Z(0x185),q);throw q;}}async[a162y(0x145)]({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const a0=a162y;try{const g=await this[a0(0x186)][a0(0x152)](a,c);if(g)return;if(!this[a0(0x186)]['isFile'](a))throw Log[a0(0x11e)](a0(0x159)+JSON[a0(0x173)](a));const h=a162f[a0(0x147)](a,a0(0x106));if(!Array[a0(0x14a)](d))d=[d];if(!Array[a0(0x14a)](f))f=[f];let i=h,j=![];for(const k of d){for(const l of f){const m=new RegExp('('+k+a0(0x155)+l+')','i');i=h[a0(0x15d)](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(a0(0x162));a162f[a0(0x110)](a,i),Log[a0(0x12d)](treeSymbol+a0(0x133)+a162e[a0(0x166)](process[a0(0x193)](),a));}catch(n){errorHandler(a0(0x16f),n),process[a0(0x18e)](0x1);}}async['injectImport']({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const a1=a162y;try{const f=a162f[a1(0x147)](a,a1(0x106));let g;d?g=a1(0x161)+b+a1(0xfc)+c+'\x27;\x0a':g=a1(0x10c)+b+a1(0x197)+c+'\x27;\x0a';const h=f['split']('\x0a');let j=0x0,k=![];for(const m of h){if(m[a1(0x121)]('from\x20\x27'+c+'\x27')||m['includes'](a1(0x116)+c+'\x22')){const n=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(a1(0x10c)+b+'\x20from');if(m['match'](n)){k=!![];break;}}}if(k)return;if(injectAtStart)for(let o=0x0;o<h[a1(0x165)];o++){if(h[o]['match'](/^import .* from .*;$/)){j=o;break;}}else{for(let p=0x0;p<h[a1(0x165)];p++){h[p][a1(0x11b)](/^import .* from .*;$/)&&(j=p);}j++;}h[a1(0x127)](j,0x0,g);const l=h['join']('\x0a');a162f[a1(0x110)](a,l,a1(0x106));}catch(q){errorHandler(a1(0x11a),q),process[a1(0x18e)](0x1);}}async[a162y(0x170)](a,b,c){const a2=a162y;try{let d;b['engines'][a2(0x10d)]!==a2(0x157)?d=this['pathFromApp']({'pathParts':[a2(0x16a),a2(0x172),'lib','templates.js'],'config':b}):d=this[a2(0x178)]({'pathParts':[a2(0x16a),'startup',a2(0x195),'templates.js'],'config':b});const f=this[a2(0x111)]({'pathParts':[d],'config':b}),g=a2(0x102)+pascalCase(a)+'\x20}\x20from\x20\x27'+c+'\x27;',h=await this[a2(0x186)]['fileContainsString'](f,g);!h&&this[a2(0x18b)]({'filePath':f,'content':g+'\x0a'});}catch(i){errorHandler('injectTemplateModule()',i),process['exit'](0x1);}}['injectAfterLineNumber']({filePath:a,content:b,lineNumber:c}){const a3=a162y;try{const d=a162f[a3(0x147)](a)[a3(0x130)]()[a3(0x16b)]('\x0a');d['splice'](c,0x0,b);const f=d[a3(0x15f)]('\x0a');a162f[a3(0x110)](a,f);}catch(g){errorHandler('injectAfterLineNumber()',g),process['exit'](0x1);}}[a162y(0x178)]({pathParts:a,config:b}){const a4=a162y;try{if(!a)throw new Error('No\x20pathParts\x20option\x20provided');const c=this[a4(0x15e)]({'pathParts':a,'config':b}),d=this['fsi'][a4(0x14b)]();return d?a162e['join'](d,c):'';}catch(f){errorHandler(a4(0x17f),f),process[a4(0x18e)](0x1);}}['pathFromAppWithNoReWrite']({pathParts:a,config:b}){const a5=a162y;try{const c=this[a5(0x108)]({'pathParts':a,'config':b}),d=this[a5(0x186)][a5(0x14b)]();if(!d)throw new Error(a5(0x18f));return a162e[a5(0x15f)](d,c);}catch(f){errorHandler(a5(0x123),f),process[a5(0x18e)](0x1);}}}
|
|
1
|
+
const a162z=a162d;(function(a,b){const v=a162d,c=a();while(!![]){try{const d=-parseInt(v(0x1ae))/0x1+-parseInt(v(0x1d7))/0x2*(parseInt(v(0x21a))/0x3)+parseInt(v(0x1f4))/0x4*(-parseInt(v(0x204))/0x5)+parseInt(v(0x205))/0x6*(-parseInt(v(0x1a8))/0x7)+-parseInt(v(0x1c1))/0x8+parseInt(v(0x1c4))/0x9+parseInt(v(0x1b5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0x73bdc));const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a162d;if(c){const e=c[w(0x1c5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const x=a162d;return a162a['toString']()[x(0x1d2)](x(0x1b1))[x(0x1e2)]()[x(0x18e)](a162a)['search'](x(0x1b1));});a162a();import a162e from'path';import a162f from'fs';import a162g from'util';import{exec}from'child_process';function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0x181;let f=c[d];return f;},a162d(a,b);}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['env'][y(0x1cf)]==='True'&&Log[y(0x200)](y(0x20a)+a),b&&console[y(0x200)](b);},isWin=process[a162z(0x1a9)]===a162z(0x1d0),treeSymbol=isWin?a162z(0x20b):'\x20┗';export class Scaffold{static ['instance'];['fsi'];['mpi'];constructor(a,b){const A=a162z;this['fsi']=a,this[A(0x1bf)]=b;}static['getInstance'](a,b){const B=a162z;return!Scaffold[B(0x1d6)]&&(Scaffold[B(0x1d6)]=new Scaffold(a,b)),Scaffold[B(0x1d6)];}async[a162z(0x1ca)](a,b){const C=a162z;b['cwd']=b['cwd']||'.';const c=a162e[C(0x1c3)](b[C(0x197)],a),d=a162e[C(0x1c3)](c,C(0x217));if(this[C(0x1cd)]['isDirectory'](d))throw new Error('Meteor\x20project\x20already\x20exists\x20at\x20'+JSON['stringify'](c));const e=C(0x1d5),f=a162e['join'](b[C(0x197)]),g=a162g[C(0x19a)](exec),h=b['release']?C(0x1b3)+b[C(0x216)]:'';b[C(0x216)]&&b[C(0x216)][C(0x1c8)](C(0x196))&&(Log[C(0x219)](C(0x1a2)+b[C(0x216)]),Log[C(0x219)](C(0x1ad)));try{await g(this[C(0x1bf)]['meteor']+'\x20create\x20'+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[C(0x200)]('\x0a'+k[C(0x1e6)]);throw k;}const i=a162e[C(0x1c3)](f,a);if(!a162f[C(0x1ba)](i))throw new Error(C(0x191)+i+C(0x1d4));const j=a162f[C(0x1c0)](i);for(const l of j){if(l!=='.git'&&l!==C(0x217)){const m=a162e[C(0x1c3)](i,l);await a162h(m,{'force':!![]});}}}[a162z(0x1ce)]({filePath:a}){const D=a162z;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a['match'](b);c=c&&c[0x0][D(0x1f0)]('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[D(0x203)](),f=c[D(0x203)]()||d;if(d)d=d[D(0x1bb)]('.','');if(f)f=f['replace']('.','');return{'type':f,'engine':d};}catch(g){errorHandler(D(0x187),g),process[D(0x20f)](0x1);}}[a162z(0x210)]({pathParts:a,config:b}){const E=a162z;try{const c=a[E(0x1c3)](a162e[E(0x1e5)]),d=this[E(0x1ce)]({'filePath':c})[E(0x1fd)],f=b?.[E(0x1e9)][d],g=new RegExp('\x5c.'+d+E(0x1e8));return!d||!f?c:c[E(0x1bb)](g,'.'+d);}catch(h){errorHandler(E(0x1bd),h),process[E(0x20f)](0x1);}}[a162z(0x1b6)]({pathParts:a,config:b}){const F=a162z;try{if(!b)throw new Error(F(0x185));const c=a[F(0x1c3)](a162e[F(0x1e5)]),d=this['engineAndTypeFromfilePath']({'filePath':c});if(!d['type']||!d[F(0x1f2)])return!![];const f=b[F(0x1e9)][d[F(0x1fd)]];if(!f)return!![];return f===d['engine'];}catch(g){errorHandler('isTemplateForEngine()',g),process[F(0x20f)](0x1);}}[a162z(0x1d1)]({pathParts:pathParts=[]}){const G=a162z;return pathParts['join'](a162e[G(0x1e5)]);}[a162z(0x1c2)]({pathParts:pathParts=[],config:a}){const H=a162z;try{const b=pathParts[H(0x1c3)](a162e[H(0x1e5)]),c=this[H(0x1ce)]({'filePath':b})[H(0x1fd)],d=a?.[H(0x1e9)][c],f=new RegExp('\x5c.'+c+H(0x1e8));return!c||!d?b:b[H(0x1bb)](f,'.'+d);}catch(g){errorHandler(H(0x218),g),process['exit'](0x1);}}[a162z(0x1f8)]({pathParts:pathParts=[],framework:framework=a162z(0x20e),config:a}){const I=a162z;try{const b=a162e[I(0x19b)](pathParts[I(0x1c3)](a162e[I(0x1e5)]));if(!b[I(0x18b)](I(0x1ab)))return b;const c='js';if(!a?.['engines']||!a?.[I(0x1e9)][c])return b;const d=a['engines'][c],f=d===I(0x19e)?['.js.tsx','.js.ts',I(0x1ab)]:[I(0x1f9),I(0x1ab)];for(const g of f){const h=b['replace'](/\.js$/,g),i=a162e[I(0x1c3)](I(0x1fe),framework,h),j=a162e[I(0x19b)](a162e[I(0x1c3)](global['MAKA_COMMAND_PATH'],i));if(a162f['existsSync'](j))return h;}return b;}catch(k){errorHandler(I(0x1fc),k),process[I(0x20f)](0x1);}}[a162z(0x1e1)]({pathParts:a,framework:framework=a162z(0x20e),config:b}){const J=a162z;try{const c=this[J(0x1f8)]({'pathParts':a,'framework':framework,'config':b}),d=a162e[J(0x1c3)](J(0x1de)+framework,c),f=a162e[J(0x1c3)](global[J(0x21e)],'..',d);return f;}catch(g){errorHandler(J(0x1b4),g),process[J(0x20f)](0x1);}}[a162z(0x1f7)]({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[K(0x1ce)]({'filePath':f}),h=[K(0x1a3),K(0x198),K(0x1f1),K(0x1df),'js','jsx','ts',K(0x19e),K(0x183),K(0x1fb),'yaml',K(0x1ef)],i=['png',K(0x213)];if(!this[K(0x1cd)][K(0x190)](f)){g===K(0x1e7)&&(f=f[K(0x1bb)](K(0x1a4),''));g===K(0x19e)&&(f=f[K(0x1bb)](K(0x18c),''));if(!this['fsi'][K(0x190)](f))throw new Error('Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20'+JSON[K(0x1cc)](f));}const j=f[K(0x1f0)]('.'),k=a162e[K(0x19b)](f)[K(0x1f0)](a162e[K(0x1e5)]),l=k[k[K(0x18a)]-0x1]==='Dockerfile',m=i['includes'](j[j[K(0x18a)]-0x1]),n=a162f[K(0x199)](f);if(l)return a162i[K(0x201)](n[K(0x1e2)](),b)['trim']();if(m)return Buffer[K(0x1f5)](n)[K(0x1e2)](K(0x1a7));if(!h['includes'](j[j['length']-0x1]))return n[K(0x1e2)]()[K(0x1af)]();return a162i[K(0x201)](n[K(0x1e2)](),b||{})[K(0x1af)]();}catch(o){errorHandler(K(0x1e4),o),process[K(0x20f)](0x1);}}async[a162z(0x1ef)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const L=a162z;try{const g=[L(0x1c9),'ico'],h=g[L(0x1c8)](a[L(0x1f0)]('.')['pop']()||''),i=this[L(0x1f7)]({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.['noRename']?b=this['rewriteDestinationPathForType']({'pathParts':[b],'config':d}):b=this[L(0x1c2)]({'pathParts':[b],'config':d});const j=await this['fsi'][L(0x1b2)]({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler(L(0x195),k),process[L(0x20f)](0x1);}}async[a162z(0x19f)]({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const M=a162z;try{const i=this[M(0x1e1)]({'pathParts':[a],'framework':g,'config':h}),j=this[M(0x1e1)]({'pathParts':[],'framework':g,'config':h}),k=n=>{const N=M;return n[N(0x1bb)](j,'');},l=n=>{const O=M;return n[O(0x1bb)](i,b);};await this[M(0x1cd)]['createDirectory']({'dirPath':b});const m=a162f[M(0x1c0)](i);for(const n of m){try{const o=a162e[M(0x1c3)](i,n),p=k(o),q=l(o),r=d[M(0x19d)](t=>a162e['normalize'](t)),s=a162e['normalize'](a162e['join'](a,n));if(r['includes'](s))continue;if(this[M(0x1cd)]['isDirectory'](o))await this[M(0x19f)]({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this[M(0x1cd)][M(0x190)](o)&&this[M(0x1b6)]({'pathParts':[o],'config':h}))await this[M(0x1ef)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f[M(0x1dc)](a162e[M(0x1c3)](a,n))>=0x0&&this[M(0x1cd)][M(0x190)](o)&&(c['noRename']=!![],await this['template']({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c[M(0x1ee)]=![]);}}catch(t){console[M(0x200)](t),process[M(0x20f)](0x1);}}}catch(u){errorHandler(M(0x1ac),u),process['exit'](0x1);}}async['injectAtBeginningOfFile']({filePath:a,content:b,opts:c}){const P=a162z;if(!a)throw new Error(P(0x20d));try{!this[P(0x1cd)]['isFile'](a)&&await this[P(0x1cd)][P(0x1b2)]({'filePath':a,'data':b});let d=a162f[P(0x199)](a,'utf8');d=b+'\x0a'+d,a162f[P(0x18d)](a,d),c?.[P(0x1c6)]&&Log[P(0x1eb)](treeSymbol+'\x20updated\x20file\x20'+a162e[P(0x206)](process['cwd'](),a));}catch(f){errorHandler(P(0x1ed),f),process[P(0x20f)](0x1);}}async['injectAtEndOfFile']({filePath:a,content:b,opts:c}){const Q=a162z;try{if(!this[Q(0x1cd)][Q(0x190)](a))await this['fsi'][Q(0x1b2)]({'filePath':a,'data':b});else{let d=a162f[Q(0x199)](a,Q(0x194));!d[Q(0x1c8)](b)&&(d=d+'\x0a'+b,a162f[Q(0x18d)](a,d)),c?.['verbose']&&Log[Q(0x1eb)](treeSymbol+Q(0x1d8)+a162e[Q(0x206)](process[Q(0x197)](),a));}}catch(f){errorHandler('injectAtEndOfFile()',f),process[Q(0x20f)](0x1);}}async[a162z(0x1a6)]({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const R=a162z;try{if(!this[R(0x1cd)][R(0x190)](a))throw Log[R(0x200)](R(0x1e0)+JSON[R(0x1cc)](a));const f=a162f[R(0x199)](a,'utf8'),g=f[R(0x1bb)](/\r\n|\r/g,'\x0a'),h=g[R(0x1f0)]('\x0a'),j=this[R(0x21d)](h),k=b[R(0x1bb)](/\r\n|\r/g,'\x0a')['split']('\x0a'),l=c[R(0x1bb)](/\r\n|\r/g,'\x0a')['split']('\x0a'),m=new RegExp(Array[R(0x21b)](d)?d['join']('|'):d,'i'),n=[];for(let p=0x0;p<h[R(0x18a)];p++){const q=h[p];if(m['test'](q)){const r=this['adjustIndentation'](j,targetIndentAdjustment),s=r+q[R(0x1af)]();k[R(0x18f)](t=>{const S=R;!g[S(0x1c8)](t[S(0x1af)]())&&n[S(0x21c)](this[S(0x1b0)](j,indentAdjustment)+t);}),n[R(0x21c)](s),l[R(0x18f)](t=>{const T=R;!g[T(0x1c8)](t[T(0x1af)]())&&n['push'](this[T(0x1b0)](j,indentAdjustment)+t);});}else n['push'](q);}const o=n['join']('\x0a');a162f[R(0x18d)](a,o),Log[R(0x1eb)](treeSymbol+R(0x1d8)+a162e[R(0x206)](process[R(0x197)](),a));}catch(t){errorHandler('injectAroundString()',t),process[R(0x20f)](0x1);}}[a162z(0x1b0)](a,b){const U=a162z;if(b===0x0)return a;const c=a[U(0x18a)]+b;return c>0x0?a[0x0][U(0x202)](c):'';}['detectIndentation'](a){const V=a162z;let b=0x0,c=0x0;a[V(0x18f)](f=>{const W=V;if(f[W(0x1db)]('\x20'))b++;else f[W(0x1db)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[V(0x1f3)](a,d);return d['repeat'](e);}[a162z(0x1f3)](a,b){const X=a162z,c=a[X(0x1d3)](d=>d&&d['startsWith'](b))[X(0x19d)](d=>{const e=d['match'](new RegExp('^'+b+'+'));return e?e[0x0]['length']:0x0;});if(c['length']===0x0)return 0x0;return this['calculateMode'](c);}[a162z(0x193)](a){const Y=a162z,b=a['reduce']((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object[Y(0x184)](b)['reduce']((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 Z=a162z;try{if(!this[Z(0x1cd)][Z(0x190)](a))throw new Error('File\x20not\x20found:\x20'+a);const d=a162f['readFileSync'](a,Z(0x194)),f=d['split']('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array[Z(0x21b)](c)?c:[c];for(let o=0x0;o<f[Z(0x18a)];o++){const p=f[o];k&&p[Z(0x1c8)]('{')&&j++;if(m[Z(0x1c7)](q=>p['includes'](q))){g=o,k=!![],j++;continue;}if(k){p[Z(0x1c8)](b[Z(0x1af)]())&&(l=!![]);if(p['includes']('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[Z(0x200)]('Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20'+a),Log[Z(0x200)](Z(0x1f6)+b),Log[Z(0x200)](Z(0x1a0)+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[Z(0x21c)](b[Z(0x1af)]()),n[Z(0x21c)](f[h])):(n=n[Z(0x1ea)](f[Z(0x182)](g+0x1,h)),n[Z(0x21c)](b[Z(0x1af)]())),n=n[Z(0x1ea)](f[Z(0x182)](h+0x1)),a162f['writeFileSync'](a,n['join']('\x0a'),Z(0x194));}catch(q){console['error']('Error\x20in\x20injectIntoCodeBlock:\x20',q);throw q;}}async[a162z(0x1b7)]({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const a0=a162z;try{const g=await this[a0(0x1cd)][a0(0x1ff)](a,c);if(g)return;if(!this[a0(0x1cd)]['isFile'](a))throw Log[a0(0x200)]('No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20'+JSON[a0(0x1cc)](a));const h=a162f['readFileSync'](a,'utf8');if(!Array[a0(0x21b)](d))d=[d];if(!Array[a0(0x21b)](f))f=[f];let i=h,j=![];for(const k of d){for(const l of f){const m=new RegExp('('+k+a0(0x208)+l+')','i');i=h[a0(0x1bb)](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(a0(0x1d9));a162f[a0(0x18d)](a,i),Log[a0(0x1eb)](treeSymbol+a0(0x1d8)+a162e['relative'](process[a0(0x197)](),a));}catch(n){errorHandler('injectIntoFile()',n),process[a0(0x20f)](0x1);}}async[a162z(0x1be)]({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const a1=a162z;try{const f=a162f['readFileSync'](a,a1(0x194));let g;d?g=a1(0x209)+b+a1(0x19c)+c+a1(0x211):g=a1(0x214)+b+a1(0x186)+c+a1(0x211);const h=f['split']('\x0a');let j=0x0,k=![];for(const m of h){if(m['includes'](a1(0x192)+c+'\x27')||m[a1(0x1c8)](a1(0x1b8)+c+'\x22')){const n=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(a1(0x214)+b+a1(0x188));if(m[a1(0x1da)](n)){k=!![];break;}}}if(k)return;if(injectAtStart)for(let o=0x0;o<h[a1(0x18a)];o++){if(h[o]['match'](/^import .* from .*;$/)){j=o;break;}}else{for(let p=0x0;p<h[a1(0x18a)];p++){h[p][a1(0x1da)](/^import .* from .*;$/)&&(j=p);}j++;}h['splice'](j,0x0,g);const l=h[a1(0x1c3)]('\x0a');a162f[a1(0x18d)](a,l,a1(0x194));}catch(q){errorHandler(a1(0x1fa),q),process[a1(0x20f)](0x1);}}async[a162z(0x189)](a,b,c){const a2=a162z;try{let d;b[a2(0x1e9)]['ssr']!==a2(0x1ec)?d=this[a2(0x1e3)]({'pathParts':['imports',a2(0x207),a2(0x1cb),a2(0x1a5)],'config':b}):d=this[a2(0x1e3)]({'pathParts':['imports','startup','client','templates.js'],'config':b});const f=this[a2(0x1c2)]({'pathParts':[d],'config':b}),g=a2(0x1a1)+pascalCase(a)+a2(0x19c)+c+'\x27;',h=await this[a2(0x1cd)][a2(0x1ff)](f,g);!h&&this[a2(0x181)]({'filePath':f,'content':g+'\x0a'});}catch(i){errorHandler(a2(0x1bc),i),process[a2(0x20f)](0x1);}}[a162z(0x215)]({filePath:a,content:b,lineNumber:c}){const a3=a162z;try{const d=a162f[a3(0x199)](a)[a3(0x1e2)]()['split']('\x0a');d['splice'](c,0x0,b);const f=d[a3(0x1c3)]('\x0a');a162f[a3(0x18d)](a,f);}catch(g){errorHandler('injectAfterLineNumber()',g),process[a3(0x20f)](0x1);}}[a162z(0x1e3)]({pathParts:a,config:b}){const a4=a162z;try{if(!a)throw new Error(a4(0x212));const c=this[a4(0x1f8)]({'pathParts':a,'config':b}),d=this[a4(0x1cd)][a4(0x20c)]();return d?a162e[a4(0x1c3)](d,c):'';}catch(f){errorHandler('pathFromApp()',f),process['exit'](0x1);}}[a162z(0x1dd)]({pathParts:a,config:b}){const a5=a162z;try{const c=this['writeSourcePath']({'pathParts':a,'config':b}),d=this[a5(0x1cd)][a5(0x20c)]();if(!d)throw new Error(a5(0x1aa));return a162e[a5(0x1c3)](d,c);}catch(f){errorHandler(a5(0x1b9),f),process['exit'](0x1);}}}function a162c(){const a6=['isArray','push','detectIndentation','MAKA_COMMAND_PATH','injectAtEndOfFile','slice','json','keys','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','\x20from\x20\x27','engineAndTypeFromfilePath()','\x20from','injectTemplateModule','length','endsWith','.tsx','writeFileSync','constructor','forEach','isFile','Directory\x20','from\x20\x27','calculateMode','utf8','template()','alpha','cwd','scss','readFileSync','promisify','normalize','\x20}\x20from\x20\x27','map','tsx','copyTemplateDirectory','Looking\x20for\x20','export\x20{\x20','Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20','css','.jsx','templates.js','injectAroundString','base64','7cZcWWc','platform','No\x20app\x20directory\x20found','.js','copyTemplateDirectory()','Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues','676465llYIEI','trim','adjustIndentation','(((.+)+)+)+$','createFile','--release\x20','pathFromTemplates()','11637890uVXgKW','isTemplateForEngine','injectIntoFile','from\x20\x22','pathFromAppWithNoReWrite()','existsSync','replace','injectTemplateModule()','rewriteDestinationPathForType()','injectImport','mpi','readdirSync','2738448gzbqXW','rewriteDestinationPathForEngine','join','4867866RSZLCS','apply','verbose','some','includes','png','createEmptyMeteorProject','lib','stringify','fsi','engineAndTypeFromfilePath','MAKA_DEV','win32','writeSourcePath','search','filter','\x20doesn\x27t\x20exist','--minimal','instance','1970keMcVQ','\x20updated\x20file\x20','No\x20matching\x20section\x20found.','match','startsWith','indexOf','pathFromAppWithNoReWrite','src/templates/','html','No\x20file\x20found\x20at\x20path\x20','pathFromTemplates','toString','pathFromApp','templateContent()','sep','message','jsx','\x5cS*$','engines','concat','header','none','injectAtBeginningOfFile()','noRename','template','split','less','engine','getCommonIndentSize','20jrkgQv','from','While\x20injecting\x20','templateContent','rewriteSourcePathForEngine','.js.jsx','injectImport()','env','rewriteSourcePathForEngine()','type','templates','fileContainsString','error','render','repeat','pop','125815cJUDiD','255966VzgbvA','relative','startup','[\x5cs\x5cS]*?)(','import\x20{\x20','Error\x20in\x20','\x20->','findAppDirectory','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','meteor','exit','rewriteDestinationPathForType','\x27;\x0a','No\x20pathParts\x20option\x20provided','ico','import\x20','injectAfterLineNumber','release','.meteor','rewriteDestinationPathForEngine()','warn','132joMSMe'];a162c=function(){return a6;};return a162c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a163m=a163d;(function(a,b){const j=a163d,c=a();while(!![]){try{const d=-parseInt(j(0xab))/0x1*(parseInt(j(0x9e))/0x2)+-parseInt(j(0xa3))/0x3*(parseInt(j(0xb2))/0x4)+-parseInt(j(0xb7))/0x5*(parseInt(j(0xa6))/0x6)+-parseInt(j(0xac))/0x7+-parseInt(j(0xb0))/0x8*(-parseInt(j(0xb1))/0x9)+-parseInt(j(0xae))/0xa*(-parseInt(j(0xa8))/0xb)+parseInt(j(0xb6))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a163c,0xe5799));const a163b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a163d;if(c){const e=c[k(0xb3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a163a=a163b(this,function(){const l=a163d;return a163a[l(0xa9)]()['search']('(((.+)+)+)+$')[l(0xa9)]()[l(0xa1)](a163a)[l(0x9d)](l(0xaa));});a163a();function a163d(a,b){const c=a163c();return a163d=function(d,e){d=d-0x9d;let f=c[d];return f;},a163d(a,b);}import{spawn}from'child_process';import{Log}from'../log/log.class.js';function a163c(){const t=['success','10Hsotkc','withSpinner','8oaXXOe','5155749OyfWOT','436cHjFhE','apply','inherit','cwd','31205004CaGCfN','4910gmVVIy','verbose','message','search','2686WUsNje','log','pid','constructor','close','12141UcLraH','start','failure','906vuYmZR','data','19269503YtbHjH','toString','(((.+)+)+)+$','1199mNttxM','12498220RAhbMg'];a163c=function(){return t;};return a163c();}export class SpawnAsync{static[a163m(0xaf)](a,b,c){return new Promise((d,e)=>{const n=a163d,f=Log[n(0xaf)](),g=c?.[n(0xb5)]||'.';c?.[n(0xb9)]&&f[n(0xa4)](c?.[n(0xb9)]);const h=spawn(a,b,{'cwd':g,'stdio':c?.[n(0xb8)]?n(0xb4):'ignore'});process['on']('SIGINT',()=>{const o=n,i=h[o(0xa0)];i&&process['kill'](i);}),h['on'](n(0xa7),i=>{const p=n;console[p(0x9f)](i);}),h['on']('disconnect',()=>{const q=n;c?.[q(0xb9)]&&f[q(0xad)](),d();}),h['on'](n(0xa2),()=>{const r=n;c?.[r(0xb9)]&&f[r(0xad)](),d();}),h['on']('error',()=>{const s=n;c?.[s(0xb9)]&&f[s(0xa5)](),e();});});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a164d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a164d,c=a();while(!![]){try{var d=-parseInt(f(0x1e1))/0x1*(-parseInt(f(0x1dc))/0x2)+-parseInt(f(0x1e3))/0x3*(-parseInt(f(0x1db))/0x4)+parseInt(f(0x1dd))/0x5+-parseInt(f(0x1e7))/0x6*(parseInt(f(0x1e9))/0x7)+parseInt(f(0x1e8))/0x8*(parseInt(f(0x1df))/0x9)+parseInt(f(0x1e2))/0xa+parseInt(f(0x1e5))/0xb*(-parseInt(f(0x1de))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a164c,0x758df));function a164d(a,b){var c=a164c();return a164d=function(d,e){d=d-0x1db;var f=c[d];return f;},a164d(a,b);}var a164b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a164d;if(c){var e=c[g(0x1e4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a164a=a164b(this,function(){var h=a164d;return a164a[h(0x1ea)]()[h(0x1eb)](h(0x1e6))[h(0x1ea)]()[h(0x1e0)](a164a)[h(0x1eb)](h(0x1e6));});a164a();function a164c(){var i=['3NdpYPn','1319310kLXHEG','239271WqHMGG','apply','236753kbLCTK','(((.+)+)+)+$','3448596zCrtPG','2367080LATsvr','7eNBBLc','toString','search','44tCLjLL','206658hDTEKu','2909290GficQd','636UVPOAl','9xPdRyp','constructor'];a164c=function(){return i;};return a164c();}export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a165p=a165d;(function(a,b){const m=a165d,c=a();while(!![]){try{const d=parseInt(m(
|
|
1
|
+
const a165p=a165d;(function(a,b){const m=a165d,c=a();while(!![]){try{const d=parseInt(m(0x137))/0x1+-parseInt(m(0x140))/0x2+parseInt(m(0x139))/0x3+parseInt(m(0x15a))/0x4+parseInt(m(0x164))/0x5*(parseInt(m(0x14a))/0x6)+-parseInt(m(0x157))/0x7*(parseInt(m(0x158))/0x8)+parseInt(m(0x151))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a165c,0x5f7c1));const a165b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a165d;if(c){const e=c[n(0x15d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a165a=a165b(this,function(){const o=a165d;return a165a[o(0x14c)]()[o(0x13c)](o(0x15f))[o(0x14c)]()[o(0x13f)](a165a)['search']('(((.+)+)+)+$');});a165a();import a165e from'path';import{execSync,spawnSync,spawn}from'child_process';function a165d(a,b){const c=a165c();return a165d=function(d,e){d=d-0x137;let f=c[d];return f;},a165d(a,b);}function a165c(){const w=['tty','567wOtJtF','53752PPJzKa','sshSync','904792LgoYkF','inherit','stderr','apply','error','(((.+)+)+)+$','dest','source','ConnectTimeout=2','silentOutput','35TuKsJX','65960vlmNKe','verbose','358185YwFkAh','utf-8','pipe','search','status','join','constructor','321252VmZGKh','concat','pem','ssh','host','start','env','2>&1','ignore','ssh\x20','400362EXvbxg','message','toString','port','user','scp','failure','1955952ugPqzR','push','withSpinner','close','sshVerbose'];a165c=function(){return w;};return a165c();}import{Log}from'../log/log.class.js';export class SSH{static [a165p(0x143)]=(a,b,c)=>{return new Promise((d,e)=>{const q=a165d,f=b[q(0x14e)]+'@'+b['host'],g=a165e[q(0x13e)](b[q(0x146)],b[q(0x142)]),h=c?.['tty']||![],i=c?.[q(0x155)]||![];let j=[];h&&j['push']('-t');i&&j['push']('-v');j=j['concat'](['-o',q(0x162),'-i',g,'-p',b['port'],f,a]);const k=Log[q(0x153)]();c?.[q(0x14b)]&&k[q(0x145)](c?.[q(0x14b)]);const l=spawn(q(0x143),j,{'stdio':c?.[q(0x138)]?q(0x15b):'ignore'});l['on']('disconnect',()=>{c?.['message']&&k['success'](),d();}),l['on'](q(0x154),()=>{const r=q;c?.[r(0x14b)]&&k['success'](),d();}),l['on'](q(0x15e),()=>{const s=q;c?.['message']&&k[s(0x150)](),e();});});};static [a165p(0x159)]=(a,b,c)=>{const t=a165p,d=b['user']+'@'+b['host'],e=a165e['join'](b['env'],b['pem']),f=c?.[t(0x156)]||![],g=c?.[t(0x155)]||![],h=c?.[t(0x163)]||![];let i=[];f&&i[t(0x152)]('-t');g&&i['push']('-v');i=i[t(0x141)](['-o',t(0x162),'-i',e,'-p',b['port'][t(0x14c)](),d,a]);const j=h?t(0x13b):t(0x15b),k=spawnSync(t(0x143),i,{'encoding':t(0x13a),'stdio':[j,'pipe',t(0x13b)]});if(h)return{'stdout':k['stdout']||'','stderr':k[t(0x15c)]||'','status':k[t(0x13d)]};};static['ping'](a,b,c){const u=a165p,d=b[u(0x14e)]+'@'+b[u(0x144)],e=a165e['join'](b['env'],b[u(0x142)]),f=c?.[u(0x156)]||![];let g=[];f&&g[u(0x152)]('-t');g=g[u(0x141)](['-o','ConnectTimeout=2','-i',e,'-p',b[u(0x14d)],d,a,u(0x147)]);const h=u(0x149)+g[u(0x13e)]('\x20');return execSync(h)['toString']();}static['scp'](a,b){const v=a165p,c=b['user']+'@'+b[v(0x144)]+':'+a[v(0x160)],d=a165e[v(0x13e)](b[v(0x146)],b[v(0x142)]),e=['-i',d,'-P',b[v(0x14d)],a[v(0x161)],c];spawnSync(v(0x14f),e,{'stdio':a[v(0x138)]?'inherit':v(0x148)});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a166d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a166d,c=a();while(!![]){try{var d=-parseInt(f(0x6e))/0x1+parseInt(f(0x6d))/0x2+parseInt(f(0x68))/0x3*(parseInt(f(0x74))/0x4)+parseInt(f(0x69))/0x5*(parseInt(f(0x6b))/0x6)+-parseInt(f(0x6f))/0x7*(parseInt(f(0x75))/0x8)+parseInt(f(0x6c))/0x9*(-parseInt(f(0x70))/0xa)+-parseInt(f(0x67))/0xb*(-parseInt(f(0x6a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a166c,0x3df47));var a166b=(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;};}()),a166a=a166b(this,function(){var g=a166d;return a166a[g(0x71)]()[g(0x72)](g(0x76))[g(0x71)]()[g(0x73)](a166a)[g(0x72)](g(0x76));});function a166d(a,b){var c=a166c();return a166d=function(d,e){d=d-0x67;var f=c[d];return f;},a166d(a,b);}a166a();function a166c(){var h=['5496WfjNBY','(((.+)+)+)+$','1841983AMRqij','6ejakjt','265065rwUhJn','24CDwIUd','24iwqvAL','2928123KCqMif','158146rrTceP','191676HlUBbF','2303qcnmzC','10ESzgwG','toString','search','constructor','741564utuIgy'];a166c=function(){return h;};return a166c();}export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){const f=a167d,c=a();while(!![]){try{const d=parseInt(f(0x1fd))/0x1+-parseInt(f(0x1ef))/0x2*(-parseInt(f(0x1f2))/0x3)+-parseInt(f(0x203))/0x4+parseInt(f(0x1f5))/0x5*(parseInt(f(0x208))/0x6)+parseInt(f(0x1f1))/0x7*(-parseInt(f(0x1f4))/0x8)+parseInt(f(0x202))/0x9+parseInt(f(0x1ff))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a167c,0x98d29));function a167d(a,b){const c=a167c();return a167d=function(d,e){d=d-0x1e9;let f=c[d];return f;},a167d(a,b);}const a167b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a167a=a167b(this,function(){const g=a167d;return a167a['toString']()[g(0x205)](g(0x1fe))[g(0x1eb)]()[g(0x204)](a167a)[g(0x205)]('(((.+)+)+)+$');});a167a();import{spawnSync}from'child_process';export class SSL{static['genCSR'](a){const h=a167d,b=a[h(0x1ee)]?a[h(0x1ee)]:process[h(0x1ee)](),c=[h(0x1fb),'-new',h(0x200),'rsa:2048',h(0x206),h(0x1fc),a[h(0x1f9)],h(0x1ea),a[h(0x1fa)]];a[h(0x1f3)]&&(c[h(0x1f0)](h(0x1ec)),c[h(0x1f0)]('openssl.conf')),a['useConfig']?spawnSync(h(0x207),c,{'cwd':b}):spawnSync(h(0x207),c,{'stdio':h(0x1e9),'cwd':b});}static['genSSC'](a){const i=a167d,b=a[i(0x1ee)]?a['cwd']:process['cwd'](),c=[i(0x1fb),i(0x1ed),i(0x1f8),i(0x201),a[i(0x1f9)],i(0x1ea),a[i(0x1f6)]];a[i(0x1f3)]&&(c[i(0x1f0)](i(0x1ec)),c[i(0x1f0)](i(0x1f7))),a[i(0x1f3)]?spawnSync('openssl',c,{'cwd':b}):spawnSync(i(0x207),c,{'stdio':i(0x1e9),'cwd':b});}}function a167c(){const j=['-x509','cwd','194pUNbfO','push','28UoRoqT','7161UsAaYM','useConfig','1917976oErYZT','100RYPFhK','crtName','openssl.conf','-new','keyName','csrName','req','-keyout','2911eSAyRB','(((.+)+)+)+$','9529310eOMMVp','-newkey','-key','10542141pTPCqO','3721604enTrgy','constructor','search','-nodes','openssl','46986kdJxyN','inherit','-out','toString','-config'];a167c=function(){return j;};return a167c();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.7",
|
|
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.",
|