@maka/maka-cli 4.5.15 → 4.5.17
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/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.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/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/rbi.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.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.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/door.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/inventory.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/items.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/player.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/puzzles.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/room.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/rooms.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/types.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/utilities/eventBus.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -0
- 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/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/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.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.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.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/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/kit.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/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/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
- package/bundle/obf/src/commands/game/dunnet/commands.js +0 -1
- package/bundle/obf/src/commands/game/dunnet/game.js +0 -1
- package/bundle/obf/src/commands/game/dunnet/items.js +0 -1
- package/bundle/obf/src/commands/game/dunnet/puzzles.js +0 -1
- package/bundle/obf/src/commands/game/dunnet/rooms.js +0 -1
- package/bundle/obf/src/commands/game/dunnet/types.js +0 -1
- package/bundle/obf/src/commands/game/dunnet.sub.cmd.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a78r=a78d;(function(a,b){const o=a78d,c=a();while(!![]){try{const d=parseInt(o(0x1ce))/0x1*(parseInt(o(0x1dc))/0x2)+parseInt(o(0x1f9))/0x3+-parseInt(o(0x1f5))/0x4+parseInt(o(0x1c6))/0x5*(-parseInt(o(0x1f8))/0x6)+parseInt(o(0x204))/0x7+-parseInt(o(0x1fd))/0x8+parseInt(o(0x1e9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0xa1e24));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a78d;if(c){const e=c[p(0x1e4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const q=a78d;return a78a[q(0x1df)]()[q(0x1d1)](q(0x203))['toString']()[q(0x1eb)](a78a)[q(0x1d1)](q(0x203));});a78a();import a78e from'path';function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x1c3;let f=c[d];return f;},a78d(a,b);}function a78c(){const u=['split','constructor','fsi','theme','withHook','injectAtBeginningOfFile','css','fileName','installNpmPackage','withValue','className','2978384OvFhAT','.js','ramda','813066MCYjUx','2260398OykPOk','create','none','tsx','4139608WzcxWC','resourceName','maka\x20g:layout\x20mobile/iPhone8','template','rewriteDestinationPathForEngine','pathFromApp','(((.+)+)+)+$','5234908yPRRHb','findAppDirectory','import\x20\x27./','maka\x20g:l\x20web/safari','\x27;\x0a','25MBCJDA','\x20}\x20from\x20\x27','true','pathFromProject','test/test.js','\x20};\x0a','dir','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','52054moJjgQ','warn','client','search','engines','layout','assign','withTranslations','test','features','template/template.css','templates.js','string','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','22BKgPuW','startup','export\x20{\x20','toString','.app-tests.js','react','lib','injectAtEndOfFile','apply','graphql','import\x20{\x20','imports','setTemplate','4758966NtqaVQ'];a78c=function(){return u;};return a78c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a78r(0x1fa)]({'name':a78r(0x1d3),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a78r(0x1ff),a78r(0x1c4)]},function(a,b){const s=a78r,c='/imports/ui/layouts',d=this[s(0x1ec)][s(0x205)](),e=this[s(0x1ec)]['pathFromApp']({'pathParts':[c,b[s(0x1cc)],paramCase(b[s(0x1fe)]),paramCase(b['resourceName'])]}),f=this[s(0x1ec)]['getProjectConfig']();this['fsi'][s(0x1f3)](f,()=>{const t=s;typeof f[t(0x200)][t(0x1d6)]==='string'&&(f[t(0x200)]['test']=f[t(0x200)][t(0x1d6)]===t(0x1c8)?!![]:![],this['fsi'][t(0x1e8)](t(0x1d6),f[t(0x200)][t(0x1d6)]));typeof f[t(0x200)][t(0x1f0)]===t(0x1da)&&(f[t(0x200)][t(0x1f0)]=f[t(0x200)]['css']==='true'?!![]:![],this[t(0x1ec)][t(0x1e8)](t(0x1f0),f[t(0x200)]['css']));typeof f[t(0x200)]['js']===t(0x1da)&&(f['template']['js']=f['template']['js']===t(0x1c8)?!![]:![],this[t(0x1ec)][t(0x1e8)]('js',f[t(0x200)]['js']));!f[t(0x1d7)]&&(f[t(0x1d7)]={});const g=b['_']?b['_'][0x0][t(0x1ea)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this['checkNpmPackage'](t(0x1f7))&&(Log['warn'](t(0x1cd)),this['fsi'][t(0x1f2)](t(0x1f7),{'cwd':d}));if(h&&!this['checkNpmPackage'](t(0x1e1))){Log[t(0x1cf)](t(0x1db));return;}const i={'name':pascalCase(b[t(0x1fe)]),'myPath':a78e['relative'](this[t(0x1ec)][t(0x1c9)]({}),e),'cssCaseName':paramCase(b[t(0x1fe)]),'className':pascalCase(b[t(0x1fe)]),'camelCaseName':camelCase(b[t(0x1fe)]),'fileName':paramCase(b[t(0x1fe)]),'graphql':f[t(0x1d2)][t(0x1e5)],'features':f[t(0x1d7)],'client':f[t(0x1d2)][t(0x1d0)],'api':f[t(0x1d2)]['api'],'ssr':f[t(0x1d2)]['ssr'],'test':f[t(0x1d2)][t(0x1d6)],'theme':f[t(0x1d2)][t(0x1ed)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x1d7)][t(0x1d5)]};f[t(0x1d7)]?.['withHooks']||b[t(0x1ee)]?this[t(0x1ec)]['template']({'srcPath':'hook/hook.js','destPath':e+t(0x1f6),'framework':t(0x1e1),'context':i,'config':f}):this[t(0x1ec)][t(0x200)]({'srcPath':'component/component.js','destPath':e+t(0x1f6),'framework':t(0x1e1),'context':i,'config':f});f[t(0x1d2)][t(0x1d6)]!==t(0x1fb)&&this[t(0x1ec)][t(0x200)]({'srcPath':t(0x1ca),'destPath':e+t(0x1e0),'framework':t(0x1e1),'context':i,'config':f});f[t(0x200)][t(0x1f0)]&&(this['fsi']['template']({'srcPath':t(0x1d8),'destPath':e+'.css','context':Object[t(0x1d4)]({},i,{'className':paramCase(b[t(0x1fe)])}),'config':f}),this['fsi'][t(0x1ef)]({'filePath':e+'.'+f[t(0x1d2)]['js'],'content':t(0x1c3)+i['fileName']+'.'+f[t(0x1d2)][t(0x1f0)]+'\x27;'}));const j=b[t(0x1cc)]?'/'+b['dir']+'/':'/',k=''+c+j+i[t(0x1f1)]+'/'+i[t(0x1f1)];let l;if(f['engines']['ssr']===t(0x1c8)){const m=this['fsi'][t(0x202)]({'pathParts':[t(0x1e7),t(0x1dd),t(0x1e2),t(0x1d9)]});l=this[t(0x1ec)][t(0x201)]({'pathParts':[m],'config':f});}else{const n=this[t(0x1ec)]['pathFromApp']({'pathParts':[t(0x1e7),t(0x1dd),t(0x1d0),t(0x1d9)]});l=this[t(0x1ec)][t(0x201)]({'pathParts':[n],'config':f});}f[t(0x1d2)][t(0x1d0)]===t(0x1e1)?(f['engines']['js']===t(0x1fc)?this[t(0x1ec)][t(0x1ef)]({'filePath':l,'content':t(0x1e6)+i[t(0x1f4)]+t(0x1c7)+k+t(0x1c5)}):this[t(0x1ec)][t(0x1ef)]({'filePath':l,'content':t(0x1e6)+i[t(0x1f4)]+t(0x1c7)+k+'.'+f[t(0x1d2)]['js']+'\x27;\x0a'}),this[t(0x1ec)][t(0x1e3)]({'filePath':l,'content':t(0x1de)+i[t(0x1f4)]+t(0x1cb)})):this[t(0x1ec)][t(0x1e3)]({'filePath':l,'content':'import\x20\x27'+k+'.'+f[t(0x1d2)]['js']+t(0x1c5)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a79c(){const j=['Maka!','1287889zcQucD','10392318iyBMrY','toString','12749301sFpqPu','36HbiqgN','(((.+)+)+)+$','167724HGcVxD','8MScnit','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','9416720FwXHku','constructor','apply','maka','830890xgbMtO','search','5fylsLI','33xsQDHf','8699467sTywrs'];a79c=function(){return j;};return a79c();}const a79i=a79d;(function(a,b){const f=a79d,c=a();while(!![]){try{const d=parseInt(f(0xc4))/0x1+parseInt(f(0xd1))/0x2+parseInt(f(0xca))/0x3*(parseInt(f(0xc8))/0x4)+parseInt(f(0xc0))/0x5*(parseInt(f(0xc5))/0x6)+-parseInt(f(0xc2))/0x7*(-parseInt(f(0xcb))/0x8)+-parseInt(f(0xc7))/0x9+parseInt(f(0xcd))/0xa*(-parseInt(f(0xc1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0xe56d7));const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a79d;if(c){const e=c[g(0xcf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const h=a79d;return a79a[h(0xc6)]()[h(0xbf)](h(0xc9))[h(0xc6)]()[h(0xce)](a79a)[h(0xbf)](h(0xc9));});a79a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a79i(0xd0),'shortDesc':a79i(0xc3),'validOpts':[],'description':'\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','usage':a79i(0xcc),'examples':['maka\x20generate:api\x20Trucks','maka\x20g:hook\x20cool-hook']},function(){return null;});function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0xbf;let f=c[d];return f;},a79d(a,b);}export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a80m=a80d;(function(a,b){const k=a80d,c=a();while(!![]){try{const d=-parseInt(k(0x1b2))/0x1+parseInt(k(0x1b6))/0x2+-parseInt(k(0x1cf))/0x3*(-parseInt(k(0x1d1))/0x4)+-parseInt(k(0x1ba))/0x5+-parseInt(k(0x1c9))/0x6+parseInt(k(0x1b8))/0x7+-parseInt(k(0x1b5))/0x8*(-parseInt(k(0x1ca))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0xed357));function a80c(){const p=['(((.+)+)+)+$','search','2174157qQTHQR','maka\x20{generate,\x20g}:{method,\x20m}\x20name','8kNpUaG','maka\x20g:method\x20todos','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','imports','1320658wdMjwa','fsi','appPathPrefix','8gbbzFT','304324oDEVBg','-rpc-method.','10994088zbjGNs','method/method.js','4083010xVPlIq','checkMeteorPackage','index.','check','error','constructor','toString','check\x20ddp-rate-limiter\x20mdg:validated-method','withValue','dir','resourceName','installMeteorPackage','ddp-rate-limiter','startup','import\x20\x27./methods','5459250NAoZNF','7619022nerEUk','warn','pathFromApp'];a80c=function(){return p;};return a80c();}function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0x1af;let f=c[d];return f;},a80d(a,b);}const a80b=(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;};}()),a80a=a80b(this,function(){const l=a80d;return a80a[l(0x1c0)]()[l(0x1ce)](l(0x1cd))[l(0x1c0)]()[l(0x1bf)](a80a)[l(0x1ce)]('(((.+)+)+)+$');});a80a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'method','aliases':['m'],'usage':a80m(0x1d0),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':['dir'],'examples':[a80m(0x1af)]},function(a,b){const n=a80m;try{const c=this[n(0x1b3)]['getProjectConfig']();this[n(0x1b3)][n(0x1c2)](c,async()=>{const o=n,d=paramCase(b[o(0x1c4)]),f={'name':b[o(0x1c4)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[o(0x1c4)]),'noRename':!![]};let g='js';c['engines']['js']==='tsx'&&(g='ts');const h=this[o(0x1b3)][o(0x1cc)]({});(!this['fsi']['checkMeteorPackage'](o(0x1bd))||!this[o(0x1b3)][o(0x1bb)](o(0x1c6))||!this[o(0x1b3)][o(0x1bb)]('mdg:validated-method'))&&(Log[o(0x1cb)](o(0x1b0)),this[o(0x1b3)][o(0x1c5)](o(0x1c1),{'cwd':h}));this['fsi']['template']({'srcPath':o(0x1b9),'destPath':this['fsi'][o(0x1cc)]({'pathParts':[o(0x1b1),'startup',b[o(0x1b4)],'methods',b[o(0x1c3)],d+o(0x1b7)+g]}),'context':f,'config':c});const i=b[o(0x1c3)]?'/'+b[o(0x1c3)]+'/':'/',j=this[o(0x1b3)][o(0x1cc)]({'pathParts':['imports',o(0x1c7),b['appPathPrefix'],o(0x1bc)+c['engines']['js']]});this['fsi']['injectAtEndOfFile']({'filePath':j,'content':o(0x1c8)+i+d+'-rpc-method\x27;'});});}catch(d){Log[n(0x1be)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81o=a81d;(function(a,b){const l=a81d,c=a();while(!![]){try{const d=-parseInt(l(0xee))/0x1*(-parseInt(l(0xe6))/0x2)+-parseInt(l(0xea))/0x3*(-parseInt(l(0xf5))/0x4)+-parseInt(l(0x107))/0x5+-parseInt(l(0x108))/0x6*(parseInt(l(0xf4))/0x7)+-parseInt(l(0x10b))/0x8+parseInt(l(0x10e))/0x9+-parseInt(l(0xf2))/0xa*(-parseInt(l(0xf3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0x816f9));const a81b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a81d;if(c){const e=c[m(0xf9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){const n=a81d;return a81a[n(0xfb)]()['search']('(((.+)+)+)+$')[n(0xfb)]()[n(0xfa)](a81a)[n(0xf1)](n(0x104));});a81a();import a81e from'path';function a81d(a,b){const c=a81c();return a81d=function(d,e){d=d-0xe1;let f=c[d];return f;},a81d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a81o(0xe8)]({'name':a81o(0xf6),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a81o(0x10c),'validOpts':['dir'],'examples':[a81o(0xfd)]},async function(a,b){const p=a81o,c=paramCase(b[p(0x109)]),d=this[p(0x101)][p(0xe2)]({'pathParts':[p(0x110),b[p(0x112)],c]}),e=this[p(0x101)][p(0xef)]({'pathParts':[p(0x110),b[p(0x112)],c,p(0xf8)]}),f=this[p(0x101)][p(0xfe)]();this[p(0x101)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0x109)]),'myPath':a81e[q(0x106)](this[q(0x101)][q(0xfc)]({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x109)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0xe3)][q(0xf7)],'graphql':f[q(0xe3)][q(0xe9)],'ssr':f[q(0xe3)][q(0xf0)],'isComponent':b['hasOwnProperty'](q(0x10a)),'isLayout':b[q(0xe4)](q(0x103)),'isStore':b[q(0xe4)](q(0x111)),'features':f[q(0xe1)],'noRename':!![],'theme':f[q(0xe3)][q(0xed)]};this['fsi'][q(0xff)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0x10d)]=![];const h=d+q(0xe7)+c+q(0xec);this['fsi'][q(0xff)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=['lib',q(0x100),q(0x102),q(0x105)];i[q(0xe5)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xec);this[r(0x101)][r(0xff)]({'srcPath':r(0x10f)+j+r(0xeb),'destPath':k,'context':g,'config':f});});});});function a81c(){const s=['3213MzRidY','/package.js','.js','theme','500171AVJlpY','pathFromAppWithNoReWrite','ssr','search','30ldWNRC','161887HTqdLK','205429FfezTb','1572jXxtjC','package','client','package.js','apply','constructor','toString','pathFromProject','maka\x20g:package\x20todos:package','getProjectConfig','template','server','fsi','tests/client','layout','(((.+)+)+)+$','tests/server','relative','3152905Rjhdmn','66QqmMnU','resourceName','component','4197856OSiRXh','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','noRename','4886127JKeRdK','package/','packages','store','dir','features','pathFromApp','engines','hasOwnProperty','forEach','4mcdOwA','/client/','create','graphql'];a81c=function(){return s;};return a81c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82o=a82d;(function(a,b){const m=a82d,c=a();while(!![]){try{const d=-parseInt(m(0x6f))/0x1*(parseInt(m(0x85))/0x2)+parseInt(m(0x81))/0x3*(parseInt(m(0x7b))/0x4)+parseInt(m(0xa2))/0x5+parseInt(m(0x82))/0x6*(parseInt(m(0x7f))/0x7)+-parseInt(m(0xa6))/0x8*(-parseInt(m(0xa4))/0x9)+-parseInt(m(0x8d))/0xa+parseInt(m(0x65))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x8fd7c));function a82c(){const r=['toString','1498120rTOnIz','warn','9mcGogC','.app-tests.js','2883080CXBvNy','lib','injectAtBeginningOfFile','getProjectConfig','search','templates.js','theme','fileName','client','519552zKvixy','none','hasOwnProperty','css','imports','rewriteDestinationPathForEngine','fsi','injectAtEndOfFile','\x20}\x20from\x20\x27','checkNpmPackage','21EJRYvF','import\x20{\x20','import\x20\x27./','\x20};\x0a','className','/imports/ui/pages','resourceName','string','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','component/component.js','html','installNpmPackage','4IGZdxx','export\x20{\x20','ramda','.css','133iCAdLH','api','857829bejIZQ','174030yKjFYF','withHook','.js','81866MjxBxM','features','vanilla','(((.+)+)+)+$','layout','test','assign','page','955060wQntIY','graphql','maka\x20g:page\x20todos/todos-item','constructor','startup','setTemplate','react','dir','hook/hook.js','ssr','Generate\x20a\x20page.','pathFromApp','test/test.js','store','true','engines','template/template.html','template/template.css','template','Updating\x20npm\x20packages\x20...'];a82c=function(){return r;};return a82c();}const a82b=(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;};}()),a82a=a82b(this,function(){const n=a82d;return a82a[n(0xa1)]()[n(0xaa)](n(0x88))['toString']()[n(0x90)](a82a)[n(0xaa)](n(0x88));});a82a();import a82e from'path';import{Generator}from'../generator.js';function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x64;let f=c[d];return f;},a82d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator['create']({'name':a82o(0x8c),'aliases':aliases,'usage':a82o(0x77),'shortDesc':a82o(0x97),'validOpts':[a82o(0x94),a82o(0x83)],'examples':[a82o(0x8f)]},function(a,b){const p=a82o,c=p(0x74),d=this['fsi'][p(0x98)](b),e=this['fsi'][p(0x98)]({'pathParts':[c,b[p(0x94)],paramCase(b['resourceName']),paramCase(b[p(0x75)])]}),f=this[p(0x6b)][p(0xa9)]();this['fsi']['withValue'](f,()=>{const q=p;typeof f[q(0x9f)][q(0x79)]===q(0x76)&&(f[q(0x9f)][q(0x79)]=f[q(0x9f)][q(0x79)]===q(0x9b)?!![]:![],this['fsi'][q(0x92)](q(0x79),f[q(0x9f)][q(0x79)]));typeof f[q(0x9f)][q(0x8a)]===q(0x76)&&(f[q(0x9f)][q(0x8a)]=f[q(0x9f)][q(0x8a)]===q(0x9b)?!![]:![],this[q(0x6b)][q(0x92)]('test',f[q(0x9f)][q(0x8a)]));typeof f['template'][q(0x68)]===q(0x76)&&(f[q(0x9f)]['css']=f[q(0x9f)][q(0x68)]===q(0x9b)?!![]:![],this[q(0x6b)]['setTemplate'](q(0x68),f[q(0x9f)][q(0x68)]));typeof f['template']['js']===q(0x76)&&(f[q(0x9f)]['js']=f[q(0x9f)]['js']===q(0x9b)?!![]:![],this[q(0x6b)][q(0x92)]('js',f[q(0x9f)]['js']));!f[q(0x86)]&&(f[q(0x86)]={});!b['root']&&!this[q(0x6b)][q(0x6e)](q(0x7d))&&(Log[q(0xa3)](q(0xa0)),this['fsi'][q(0x7a)](q(0x7d),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a82e['relative'](this[q(0x6b)]['pathFromProject']({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x75)]),'camelCaseName':camelCase(b[q(0x75)]),'fileName':paramCase(b['resourceName']),'graphql':f[q(0x9c)][q(0x8e)],'features':f[q(0x86)],'client':f[q(0x9c)][q(0x64)],'api':f[q(0x9c)][q(0x80)],'ssr':f[q(0x9c)][q(0x96)],'isStore':b[q(0x67)](q(0x9a)),'isComponent':b[q(0x67)]('component'),'isLayout':b[q(0x67)](q(0x89)),'withTranslations':f[q(0x86)]['withTranslations'],'test':f[q(0x9c)][q(0x8a)],'theme':f['engines'][q(0xac)]};f[q(0x9f)]['html']&&this[q(0x6b)]['template']({'srcPath':q(0x9d),'destPath':e+'.html','context':g,'config':f});f[q(0x86)]?.['withHooks']||b[q(0x83)]?this['fsi'][q(0x9f)]({'srcPath':q(0x95),'destPath':e+q(0x84),'framework':q(0x93),'context':g,'config':f}):this[q(0x6b)]['template']({'srcPath':q(0x78),'destPath':e+q(0x84),'framework':q(0x93),'context':g,'config':f});f['engines'][q(0x8a)]!==q(0x66)&&this[q(0x6b)][q(0x9f)]({'srcPath':q(0x99),'destPath':e+q(0xa5),'framework':q(0x93),'context':g,'config':f});f['template'][q(0x68)]&&this[q(0x6b)][q(0x9f)]({'srcPath':q(0x9e),'destPath':e+q(0x7e),'context':Object[q(0x8b)]({},g,{'className':paramCase(b[q(0x75)])}),'config':f});f[q(0x9c)][q(0x64)]!=='react'&&f[q(0x9c)][q(0x64)]!==q(0x87)?(f[q(0x9f)][q(0x68)]&&this['fsi'][q(0xa8)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g[q(0xad)]+'.'+f[q(0x9c)][q(0x79)]+'\x27;\x0a'+q(0x71)+g[q(0xad)]+'.'+f[q(0x9c)]['css']+'\x27;'}),!f['template'][q(0x68)]&&this[q(0x6b)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[q(0x9c)]['js'],'content':q(0x71)+g['fileName']+'.'+f['engines']['html']+'\x27;'})):f[q(0x9f)][q(0x68)]&&this['fsi'][q(0xa8)]({'filePath':e+'.'+f[q(0x9c)]['js'],'content':q(0x71)+g[q(0xad)]+'.'+f[q(0x9c)][q(0x68)]+'\x27;'});const h=b['dir']?'/'+b['dir']+'/':'/',i=''+c+h+g[q(0xad)]+'/'+g[q(0xad)];let j;if(f['engines'][q(0x96)]===q(0x9b)){const k=this[q(0x6b)][q(0x98)]({'pathParts':[q(0x69),q(0x91),q(0xa7),q(0xab)]});j=this[q(0x6b)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':f});}else{const l=this['fsi'][q(0x98)]({'pathParts':[q(0x69),q(0x91),q(0x64),q(0xab)]});j=this[q(0x6b)][q(0x6a)]({'pathParts':[l],'config':f});}f[q(0x9c)][q(0x64)]===q(0x93)?(f['engines']['js']==='tsx'?this[q(0x6b)]['injectAtBeginningOfFile']({'filePath':j,'content':q(0x70)+g[q(0x73)]+q(0x6d)+i+'\x27;\x0a'}):this[q(0x6b)][q(0xa8)]({'filePath':j,'content':q(0x70)+g[q(0x73)]+q(0x6d)+i+'.'+f[q(0x9c)]['js']+'\x27;\x0a'}),this[q(0x6b)][q(0x6c)]({'filePath':j,'content':q(0x7c)+g['className']+q(0x72)})):this[q(0x6b)][q(0x6c)]({'filePath':j,'content':'import\x20\x27'+i+'.'+f[q(0x9c)]['js']+'\x27;\x0a'});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a83k=a83d;function a83c(){const n=['toString','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','apply','search','withValue','(((.+)+)+)+$','create','416830KIjlcg','server/publish.','4542588OQYJzP','1107844vHPdhY','rewriteDestinationPathForEngine','publish/publish.','8QKQiGV','6yHWctP','66bsVdol','injectAtEndOfFile','976199RODKuW','178650Ggkdnu','constructor','fsi','237819HRbUNc','maka\x20g:publish\x20todos','engines','388145ACcFVp'];a83c=function(){return n;};return a83c();}(function(a,b){const h=a83d,c=a();while(!![]){try{const d=parseInt(h(0x92))/0x1+parseInt(h(0x9d))/0x2+-parseInt(h(0xa4))/0x3*(-parseInt(h(0xa0))/0x4)+parseInt(h(0x95))/0x5*(-parseInt(h(0x8c))/0x6)+-parseInt(h(0x8e))/0x7*(parseInt(h(0xa3))/0x8)+parseInt(h(0x9f))/0x9+-parseInt(h(0x8f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0x7884f));const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a83d;if(c){const e=c[i(0x98)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const j=a83d;return a83a[j(0x96)]()[j(0x99)](j(0x9b))[j(0x96)]()[j(0x90)](a83a)['search'](j(0x9b));});function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x8c;let f=c[d];return f;},a83d(a,b);}a83a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a83k(0x9c)]({'name':'publish','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':a83k(0x97),'validOpts':[],'examples':[a83k(0x93)]},async function(a,b){const l=a83k,c=this[l(0x91)]['getProjectConfig']();this[l(0x91)][l(0x9a)](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b['resourceName']),'noRename':!![]};let e='js';c[m(0x94)]['js']==='tsx'&&(e='ts');const f=this[m(0x91)][m(0xa1)]({'pathParts':[m(0x9e)+c[m(0x94)]['js']]}),g=this[m(0x91)]['templateContent']({'srcPath':m(0xa2)+e,'context':d,'config':c});this['fsi'][m(0x8d)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a84y=a84d;(function(a,b){const v=a84d,c=a();while(!![]){try{const d=-parseInt(v(0x1f6))/0x1*(-parseInt(v(0x1d5))/0x2)+-parseInt(v(0x1d4))/0x3*(-parseInt(v(0x1f4))/0x4)+-parseInt(v(0x1fc))/0x5+parseInt(v(0x1bc))/0x6*(parseInt(v(0x1f9))/0x7)+-parseInt(v(0x1ca))/0x8*(parseInt(v(0x1de))/0x9)+parseInt(v(0x1c7))/0xa*(parseInt(v(0x1f5))/0xb)+parseInt(v(0x1e9))/0xc*(-parseInt(v(0x1dd))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x3d5ec));const a84b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a84d;if(c){const e=c[w(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){const x=a84d;return a84a[x(0x201)]()[x(0x1c0)](x(0x1e4))['toString']()[x(0x1f0)](a84a)['search'](x(0x1e4));});a84a();import a84e from'path';import{Generator}from'../generator.js';function a84d(a,b){const c=a84c();return a84d=function(d,e){d=d-0x1bc;let f=c[d];return f;},a84d(a,b);}import{Log}from'../tools/log/log.class.js';function a84c(){const G=['warn','create','\x0a\x09\x09','routes.js','includes','/imports/ui/pages','Scaffolding\x20for\x20a\x20Route.','51939SLwjbY','128252amAyNa','toLowerCase','engines','map','pathFromApp','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','injectAtEndOfFile','length','13nazPtR','9pLzZeI','cwd','ssr','startup','injectAfterLineNumber','const\x20privateRoutes\x20=\x20(<>','(((.+)+)+)+$','rewriteDestinationPathForEngine','root','<Router','templateContent','2054796ZLojER','PrivateLayout','fsi','readFileLines','withTranslations','maka\x20g:route\x20todosIndex\x20todos','route','constructor','layout','templateName','error','24MtTNcQ','4264755XbiJwX','7zpwiNh','</Router>','url','828758toPyRt','filter','injectIntoFile','1959345JjgzpT','withHook','client','indexOf','newForm','toString','12GBTkEh','imports','route/route.js','react','search','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','features','MasterLayout','only','<Route','apply','10jRWNjO','const\x20publicRoutes\x20=\x20(<>','withValue','2902232ahvzXq','private','\x22*\x22'];a84c=function(){return G;};return a84c();}import a84f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a84y(0x1ce)]({'name':a84y(0x1ef),'aliases':aliases,'validOpts':['private',a84y(0x1f1),a84y(0x1c4),a84y(0x1df),'config',a84y(0x1e6),a84y(0x1fd),a84y(0x1f8)],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','shortDesc':a84y(0x1d3),'examples':[a84y(0x1ee),'maka\x20g:route\x20todosEdit\x20todos/:id/edit',a84y(0x1da),'maka\x20g:route\x20lists/listIndex\x20lists']},function(a,b){const z=a84y;try{const c=this[z(0x1eb)]['getProjectConfig']();this[z(0x1eb)][z(0x1c9)](c,async()=>{const A=z,d=b[A(0x1cb)]??![];let f=paramCase(a[0x0]),g='/'+f;a[A(0x1dc)]>0x1&&(g='/'+a['filter'](function(l){return l!=='/';})['join']('/')[A(0x1d6)]());f=camelCase(f);b[A(0x1f1)]&&(b[A(0x1f1)]=camelCase(b[A(0x1f1)]));const h=a84e['join'](A(0x1d2),f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b['layout']||A(0x1c3),'templatePath':h,'templateName':pascalCase(f),'client':c['engines']['client'],'newForm':![],'withTranslations':c[A(0x1c2)][A(0x1ed)]};d&&(i[A(0x1f1)]=A(0x1ea));if(!b[A(0x1e6)]){const l=a84f['findGenerator']('page');l&&await l['invoke'](a,b);}let j,k;if(c[A(0x1d7)][A(0x1fe)]===A(0x1bf)){if(c[A(0x1d7)][A(0x1e0)]==='true'){const p=this[A(0x1eb)][A(0x1d9)]({'pathParts':[A(0x1bd),A(0x1e1),'lib',A(0x1d0)]});j=this['fsi'][A(0x1e5)]({'pathParts':[p],'config':c});}else{const q=this[A(0x1eb)][A(0x1d9)]({'pathParts':[A(0x1bd),A(0x1e1),A(0x1fe),A(0x1d0)]});j=this[A(0x1eb)][A(0x1e5)]({'pathParts':[q],'config':c});}const m=this['fsi']['readFileLines'](j)['map']((r,s)=>{const B=A;return r[B(0x1d1)]('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?s+0x1:null;})[A(0x1fa)](r=>r!==null);let n=this['fsi']['readFileLines'](j)[A(0x1d8)]((r,s)=>{const C=A;return r[C(0x1d1)](C(0x1c8))?s+0x1:null;})[A(0x1fa)](r=>r!==null),o=this[A(0x1eb)][A(0x1ec)](j)[A(0x1d8)]((r,s)=>{return r['includes']('const\x20privateRoutes\x20=\x20(<>')?s+0x1:null;})[A(0x1fa)](r=>r!==null);n[A(0x1dc)]>0x0&&o[A(0x1dc)]>0x0&&(i[A(0x200)]=!![]);k=this[A(0x1eb)][A(0x1e8)]({'srcPath':A(0x1be),'framework':A(0x1bf),'context':i,'config':c});if(n[A(0x1dc)]>0x0||o[A(0x1dc)]>0x0){this[A(0x1eb)][A(0x1e2)]({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o[A(0x1dc)]>0x0)o=this[A(0x1eb)][A(0x1ec)](j)[A(0x1d8)]((r,s)=>{const D=A;return r[D(0x1d1)](D(0x1e3))?s+0x1:null;})[A(0x1fa)](r=>r!==null),this[A(0x1eb)][A(0x1e2)]({'filePath':j,'content':'\x09{'+i[A(0x1f2)]+'}','lineNumber':o[0x0]});else n[A(0x1dc)]>0x0?(n=this['fsi'][A(0x1ec)](j)[A(0x1d8)]((r,s)=>{const E=A;return r[E(0x1d1)]('const\x20publicRoutes\x20=\x20(<>')?s+0x1:null;})[A(0x1fa)](r=>r!==null),this['fsi'][A(0x1e2)]({'filePath':j,'content':'\x09{'+i[A(0x1f2)]+'}','lineNumber':n[0x0]})):Log[A(0x1cd)](A(0x1c1)+j);}else{const r=this[A(0x1eb)]['readFileLines'](j)[A(0x1d8)](u=>{const F=A;return u[F(0x1d1)](F(0x1cc));}),s=r[A(0x1ff)](!![])>-0x1,t=s?A(0x1c5):A(0x1f7);this['fsi'][A(0x1fb)]({'filePath':j,'content':A(0x1cf)+k+A(0x1cf),'begin':A(0x1e7),'end':t});}}else{if(c[A(0x1d7)][A(0x1fe)]==='vanilla'){const u=this[A(0x1eb)]['pathFromApp']({'pathParts':[A(0x1bd),A(0x1e1),'client',A(0x1d0)]});j=this[A(0x1eb)][A(0x1e5)]({'pathParts':[u],'config':c}),k=this['fsi'][A(0x1e8)]({'srcPath':A(0x1be),'context':i}),this[A(0x1eb)][A(0x1db)]({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log[z(0x1f3)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a85l=a85d;(function(a,b){const j=a85d,c=a();while(!![]){try{const d=parseInt(j(0xdb))/0x1*(-parseInt(j(0xe0))/0x2)+parseInt(j(0xe6))/0x3*(parseInt(j(0xd5))/0x4)+parseInt(j(0xd8))/0x5+-parseInt(j(0xee))/0x6*(-parseInt(j(0xdc))/0x7)+-parseInt(j(0xe4))/0x8*(-parseInt(j(0xd2))/0x9)+parseInt(j(0xda))/0xa+parseInt(j(0xf3))/0xb*(-parseInt(j(0xf7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0x7364d));const a85b=(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;};}()),a85a=a85b(this,function(){const k=a85d;return a85a[k(0xf8)]()[k(0xec)](k(0xde))['toString']()['constructor'](a85a)['search'](k(0xde));});a85a();import{camelCase,paramCase,pascalCase}from'change-case';function a85c(){const o=['Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','startup','2242712zbRJsA','type','tsx','951380OYLkRe','service','7586250gwnhCL','712279atWJpb','273sAvEgG','template','(((.+)+)+)+$','installNpmPackage','2KvKKGz','service/logger/logger.js','logger','engines','7008GHQiKJ','lib','3TWPsRj','winston\x20setimmediate','fsi','Installing\x20winston','winston','create','search','maka\x20{generate,\x20g}:{service}\x20[service-type]','42054PmhmIU','pathFromApp','error','checkNpmPackage','withValue','11wMFILK','imports','resourceName','maka\x20g:svc\x20logger','8616120XUWAEe','toString','1233YpRdls'];a85c=function(){return o;};return a85c();}function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0xd2;let f=c[d];return f;},a85d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a85l(0xeb)]({'name':a85l(0xd9),'aliases':['svc'],'usage':a85l(0xed),'shortDesc':a85l(0xd3),'validOpts':[a85l(0xd6)],'validArgs':[a85l(0xe2)],'maxArgLength':0x1,'minArgLength':0x1,'examples':[a85l(0xf6)]},async function(a,b){const m=a85l;try{const c=this['fsi']['getProjectConfig']();this[m(0xe8)][m(0xf2)](c,async()=>{const n=m,d=this['fsi'][n(0xef)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b[n(0xf5)]),'fileName':f,'camelCase':camelCase(b[n(0xf5)]),'type':a[0x0],'engine':c[n(0xe3)]['js'],'noRename':!![]};let h='js';c['engines']['js']===n(0xd7)&&(h='ts');if(a[0x0]===n(0xe2)){!this['fsi'][n(0xf1)](n(0xea))&&await this[n(0xe8)][n(0xdf)](n(0xe7),{'cwd':d,'msg':n(0xe9)});const i=this['fsi'][n(0xef)]({'pathParts':[n(0xf4),n(0xd4),n(0xe5),'services',f+'.'+h]});this[n(0xe8)][n(0xdd)]({'srcPath':n(0xe1),'destPath':i,'context':g,'config':c});}});}catch(d){Log[m(0xf0)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
function a86d(a,b){var c=a86c();return a86d=function(d,e){d=d-0x177;var f=c[d];return f;},a86d(a,b);}function a86c(){var h=['search','18VHnibY','945858CoIdgP','(((.+)+)+)+$','toString','714792oILBPw','137940iOyJAU','62621JIYzjf','16708TkLrWI','6404144WjruIe','249svTxuK','10616290pCMvUD','7kAkinT'];a86c=function(){return h;};return a86c();}(function(a,b){var f=a86d,c=a();while(!![]){try{var d=-parseInt(f(0x178))/0x1+-parseInt(f(0x183))/0x2+parseInt(f(0x17b))/0x3*(-parseInt(f(0x179))/0x4)+-parseInt(f(0x177))/0x5+parseInt(f(0x180))/0x6*(parseInt(f(0x17d))/0x7)+-parseInt(f(0x17a))/0x8+parseInt(f(0x17f))/0x9*(parseInt(f(0x17c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0xa7807));var a86b=(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;};}()),a86a=a86b(this,function(){var g=a86d;return a86a[g(0x182)]()['search'](g(0x181))[g(0x182)]()['constructor'](a86a)[g(0x17e)](g(0x181));});a86a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a87l=a87d;function a87c(){const o=['8592660RBKpzm','1772670UhLDzw','12YxFeJg','appName','withValue','env','1425231PgyRlt','getGlobalConfig','(((.+)+)+)+$','openssl.conf','sslconfig','6105105NbFWfc','446193IFlVne','constructor','getProjectConfig','1499352nIrRkm','error','_keys','1165172iVFcsW','search','42cNYtYO','fsi','service','maka\x20{generate,\x20g}:sslconfig','apply','toString','24IlZpYJ','Generate\x20a\x20new\x20openssl\x20config\x20file'];a87c=function(){return o;};return a87c();}function a87d(a,b){const c=a87c();return a87d=function(d,e){d=d-0x139;let f=c[d];return f;},a87d(a,b);}(function(a,b){const i=a87d,c=a();while(!![]){try{const d=parseInt(i(0x153))/0x1+-parseInt(i(0x150))/0x2+parseInt(i(0x147))/0x3*(-parseInt(i(0x143))/0x4)+parseInt(i(0x14c))/0x5+-parseInt(i(0x142))/0x6*(-parseInt(i(0x139))/0x7)+-parseInt(i(0x13f))/0x8*(parseInt(i(0x14d))/0x9)+-parseInt(i(0x141))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0xee457));const a87b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a87d;if(c){const e=c[j(0x13d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a87a=a87b(this,function(){const k=a87d;return a87a[k(0x13e)]()['search'](k(0x149))[k(0x13e)]()[k(0x14e)](a87a)[k(0x154)](k(0x149));});a87a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a87e from'path';Generator['create']({'name':a87l(0x14b),'usage':a87l(0x13c),'shortDesc':a87l(0x140),'noResource':!![],'requiredOpts':['env'],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[a87l(0x146)]},async function(a,b){const m=a87l;try{const c=await this[m(0x13a)][m(0x14f)](),d=await this[m(0x13a)][m(0x148)](),f=this[m(0x13a)]['getConfigPath'](b[m(0x146)]),g=a87e['join'](f,m(0x152),m(0x14a));await this[m(0x13a)][m(0x145)](c,async()=>{const n=m,h={'app':d[n(0x144)],'noRename':!![]};await this[n(0x13a)]['template']({'srcPath':'openssl/openssl.conf','destPath':g,'framework':n(0x13b),'context':h,'config':c});});}catch(h){Log[m(0x151)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88A=a88d;function a88c(){const D=['i18n','i18next\x20i18next-browser-languagedetector\x20react-i18next','maka\x20{generate,\x20g}:translation\x20--lang=<language>','maka\x20g:translation\x20--lang=en\x20(default)','services','isFile','findAppDirectory','server','667347xqNzfB','injectAtBeginningOfFile','rewriteDestinationPathForEngine','Locale\x20already\x20exported:\x20','40sGnzpA','translations','5703876fjyHdH','i18n/index.js','i18next','fsi','pathFromApp','(((.+)+)+)+$','i18n/locales.js','10725660yktEkR','import\x20\x27../lib/services/translations/i18n\x27;\x0a','search','import\x20\x27../lib/services/translations/i18n\x27;','729183FkICSD','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','lang','setProjectConfig','5JFGzPr','2325JhRRXa','lib','warn','readFileSync','engines','index.js','error','service','toString','appName','ssr','1556VTytnZ','apply','create','Locale\x20already\x20defined:\x20','grep','index.','exit','117962UsQcLH','client','2060292YHUlOo','injectAtEndOfFile','constructor','locales','startup','template','export\x20{\x20default\x20as\x20','default\x20as\x20','imports','\x20}\x20from\x20\x27./','translation','.js'];a88c=function(){return D;};return a88c();}(function(a,b){const x=a88d,c=a();while(!![]){try{const d=-parseInt(x(0x181))/0x1*(-parseInt(x(0x156))/0x2)+-parseInt(x(0x16c))/0x3+parseInt(x(0x14f))/0x4*(-parseInt(x(0x182))/0x5)+parseInt(x(0x158))/0x6+-parseInt(x(0x17d))/0x7*(-parseInt(x(0x170))/0x8)+parseInt(x(0x172))/0x9+-parseInt(x(0x179))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0x4d644));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a88d;if(c){const e=c[y(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const z=a88d;return a88a[z(0x18a)]()[z(0x17b)](z(0x177))[z(0x18a)]()[z(0x15a)](a88a)['search'](z(0x177));});a88a();function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0x14f;let f=c[d];return f;},a88d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a88e from'fs';Generator[a88A(0x151)]({'name':a88A(0x162),'usage':a88A(0x166),'aliases':[a88A(0x164)],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','noResource':!![],'examples':[a88A(0x167),'maka\x20g:translation\x20--lang=fr','maka\x20g:translation\x20--lang=de'],'validOpts':[a88A(0x17f)]},function(a,b){const B=a88A;try{const c=this[B(0x175)]['getProjectConfig'](),d=this[B(0x175)]['getGlobalConfig'](),f=this[B(0x175)][B(0x16a)]();this[B(0x175)]['withValue'](c,()=>{const C=B;try{!b[C(0x17f)]&&(b['lang']='en');!b['root']&&!this[C(0x175)]['checkNpmPackage'](C(0x174))&&(Log[C(0x184)](C(0x17e)),this['fsi']['installNpmPackage'](C(0x165),{'cwd':f}),this[C(0x175)][C(0x180)]('features.withTranslations',!![]));const g=this[C(0x175)][C(0x176)]({'pathParts':['imports',C(0x15c),C(0x157),C(0x187)]}),h=this[C(0x175)][C(0x16e)]({'pathParts':[g],'config':c}),i=this[C(0x175)]['grep'](a88e[C(0x185)](h)['toString'](),C(0x17c))[0x0]&&!![];if(c[C(0x186)][C(0x18c)]==='true'){!i&&this[C(0x175)][C(0x16d)]({'filePath':h,'content':C(0x17a)});const t=this['fsi'][C(0x176)]({'pathParts':['imports',C(0x15c),C(0x16b),C(0x187)]}),u=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this['fsi']['grep'](a88e[C(0x185)](u)[C(0x18a)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this[C(0x175)]['injectAtBeginningOfFile']({'filePath':u,'content':C(0x17a)});}else!i&&this['fsi'][C(0x16d)]({'filePath':h,'content':C(0x17a)});const j={'app':d[C(0x18b)],'config':c},k=this['fsi'][C(0x176)]({'pathParts':[C(0x160),C(0x15c),C(0x183),'services',C(0x171),'i18n.js']}),l=this[C(0x175)][C(0x169)](this[C(0x175)][C(0x16e)]({'pathParts':[k],'config':c}));!l&&this[C(0x175)]['template']({'srcPath':'i18n/i18n.js','destPath':k,'framework':C(0x189),'context':j,'config':c});const m=this[C(0x175)][C(0x176)]({'pathParts':['imports','startup',C(0x183),C(0x168),C(0x171),C(0x15b),b[C(0x17f)]+C(0x163)]}),n=this[C(0x175)][C(0x16e)]({'pathParts':[m],'config':c}),o=this[C(0x175)][C(0x169)](n);!o?this[C(0x175)][C(0x15d)]({'srcPath':C(0x178),'destPath':m,'framework':C(0x189),'context':j,'config':c}):Log[C(0x184)](C(0x152)+n);const p=this[C(0x175)][C(0x176)]({'pathParts':['imports',C(0x15c),'lib',C(0x168),C(0x171),C(0x15b),C(0x154)+c[C(0x186)]['js']]}),q=this[C(0x175)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[C(0x175)][C(0x169)](q);!r&&this[C(0x175)][C(0x15d)]({'srcPath':C(0x173),'destPath':p,'framework':C(0x189),'context':j,'config':c});const s=this['fsi'][C(0x153)](a88e[C(0x185)](p)[C(0x18a)](),C(0x15f)+b[C(0x17f)])[0x0]&&!![];!s?this['fsi'][C(0x159)]({'filePath':p,'content':C(0x15e)+b['lang']+C(0x161)+b[C(0x17f)]+'\x27;'}):Log[C(0x184)](C(0x16f)+p);}catch(w){Log[C(0x188)](w),process['exit'](0x1);}});}catch(g){Log[B(0x188)](g),process[B(0x155)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --experimental-modules --no-warnings --experimental-json-modules
|
|
2
|
-
const
|
|
2
|
+
const a89m=a89d;(function(a,b){const j=a89d,c=a();while(!![]){try{const d=parseInt(j(0xe9))/0x1*(parseInt(j(0xd8))/0x2)+parseInt(j(0xeb))/0x3*(parseInt(j(0xe4))/0x4)+parseInt(j(0xdf))/0x5*(parseInt(j(0xe5))/0x6)+-parseInt(j(0xe8))/0x7+-parseInt(j(0xee))/0x8*(-parseInt(j(0xe0))/0x9)+parseInt(j(0xea))/0xa+parseInt(j(0xdd))/0xb*(-parseInt(j(0xe7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0xaf945));const a89b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a89d;if(c){const e=c[k(0xda)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){const l=a89d;return a89a[l(0xe3)]()[l(0xdb)](l(0xe1))[l(0xe3)]()['constructor'](a89a)[l(0xdb)](l(0xe1));});a89a();import a89e from'minimist';import a89f from'os';import a89g from'path';import a89h from'humps';import a89i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';function a89c(){const n=['158562pFSIZC','(((.+)+)+)+$','totalmem','toString','170300nbKGEJ','906ISMytg','floor','23343624UUIbOY','3118332pFwZlS','72997kXNZBL','815730oHaBTE','39jbzxkh','argv','env','56egiqmX','parse','slice','url','30JoQhGY','MAKA_COMMAND_PATH','apply','search','camelizeKeys','11LtmnMc','BROWSERSLIST_IGNORE_OLD_DATA','41610AoXCFv'];a89c=function(){return n;};return a89c();}const __filename=fileURLToPath(import.meta[a89m(0xd7)]),__dirname=a89g['dirname'](__filename);global[a89m(0xd9)]=__dirname;const total_memory=a89f[a89m(0xe2)](),total_mem_in_kb=total_memory/0x400;function a89d(a,b){const c=a89c();return a89d=function(d,e){d=d-0xd5;let f=c[d];return f;},a89d(a,b);}let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a89m(0xe6)](total_mem_in_mb),process['env']['TOOL_NODE_FLAGS']='--max-old-space-size='+total_mem_in_mb,process[a89m(0xed)][a89m(0xde)]='1';const argv=a89e(process[a89m(0xec)][a89m(0xd6)](0x2)),args=argv['_'],deepCopyArgv=JSON[a89m(0xd5)](JSON['stringify'](argv));delete deepCopyArgv['_'];const opts=a89h[a89m(0xdc)](deepCopyArgv);a89i['run'](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a90k=a90d;(function(a,b){const h=a90d,c=a();while(!![]){try{const d=-parseInt(h(0x120))/0x1*(-parseInt(h(0x126))/0x2)+parseInt(h(0x122))/0x3+-parseInt(h(0x106))/0x4*(-parseInt(h(0x131))/0x5)+parseInt(h(0x12c))/0x6*(parseInt(h(0x10e))/0x7)+parseInt(h(0x10d))/0x8*(-parseInt(h(0x11b))/0x9)+parseInt(h(0x114))/0xa+-parseInt(h(0x104))/0xb*(parseInt(h(0x125))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0x2c50b));const a90b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a90d;if(c){const e=c[i(0x12e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a90a=a90b(this,function(){const j=a90d;return a90a[j(0x134)]()[j(0x109)]('(((.+)+)+)+$')[j(0x134)]()['constructor'](a90a)[j(0x109)]('(((.+)+)+)+$');});a90a();import a90e from'path';import a90f from'os';import a90g from'fs';function a90d(a,b){const c=a90c();return a90d=function(d,e){d=d-0x102;let f=c[d];return f;},a90d(a,b);}const homeDir=a90f[a90k(0x10f)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';function a90c(){const w=['371072ldhaCq','shortDesc','root','name','parent','Missing\x20required\x20option:\x20','18EFffkJ','match','apply','docker','description','6030zTrDgy','push','options','toString','aliases','concat','NIE','forEach','4993142bvNuoq','Local','116ZUykRf','usage','join','search','validateParams','No\x20description\x20provided.','validateMeteorInstall','8hthOPK','786926RztMTD','homedir','win32','length','fsi','dir','604560YeUOpT','existsSync','validateMakaProject','_handler','examples','includes','No\x20usage\x20provided.','2188503qdSwdG','None','error','config','help','1BnBvZY','.meteor','781152xpoowq','keys','Missing\x20required\x20options\x20','12yBAFmt'];a90c=function(){return w;};return a90c();}import{UsageError}from'./error.js';export class Tool{[a90k(0x12f)];[a90k(0x112)];[a90k(0x133)];[a90k(0x129)];[a90k(0x12a)];[a90k(0x117)];constructor(){const l=a90k;this[l(0x12f)]=new Docker(),this[l(0x112)]=new FSI();}[a90k(0x12d)](a){const m=a90k,b=[this['name']][m(0x136)](this[m(0x133)][m(0x135)]||[]);return this[m(0x12a)]&&b[m(0x132)](this[m(0x12a)]),b['includes'](a);}[a90k(0x116)](){const a=this['fsi']['findProjectDirectory']();return a!==![]?!![]:![];}[a90k(0x10c)](){const n=a90k;let a=a90e[n(0x108)](homeDir,n(0x121));const b=process['platform']===n(0x110);if(b){a=a90e[n(0x108)](homeDir,'AppData',n(0x105),'.meteor');if(!a90g[n(0x115)](a))return![];}else{if(!a90g[n(0x115)](a))return![];}return!![];}[a90k(0x10a)](a,b,c){const o=a90k,{requiredOpts:requiredOpts=[],validArgs:d}=c;let {validOpts:validOpts=[]}=c;const e=Object[o(0x123)](b);d?.[o(0x111)]>0x0&&a['forEach'](f=>{const p=o;if(!d['includes'](f)){Log[p(0x11d)]('Invalid\x20argument:\x20'+f);throw new UsageError();}});if(requiredOpts?.['length']>0x0){if(e[o(0x111)]===0x0){Log['error'](o(0x124)+requiredOpts[o(0x108)](',\x20'));throw new UsageError();}requiredOpts[o(0x103)](f=>{const q=o;if(!e[q(0x119)](f)){Log[q(0x11d)](q(0x12b)+f);throw new UsageError();}});}validOpts=validOpts[o(0x136)](requiredOpts),validOpts?.[o(0x111)]>0x0&&(validOpts['push'](o(0x11f)),validOpts['push']('resourceName'),validOpts[o(0x132)](o(0x113)),validOpts['push']('cwd'),validOpts[o(0x132)](o(0x128)),validOpts[o(0x132)](o(0x11e)),e['forEach'](f=>{if(!validOpts['includes'](f)){Log['error']('Invalid\x20options:\x20'+f);throw new UsageError();}}));}[a90k(0x130)](){const r=a90k;return this[r(0x133)]['description']||this[r(0x133)][r(0x127)]||r(0x10b);}['shortDesc'](){const s=a90k;return this[s(0x133)][s(0x127)]||s(0x102);}['usage'](){const t=a90k;return this['options'][t(0x107)]||t(0x11a);}[a90k(0x118)](){const u=a90k;return this[u(0x133)][u(0x118)]||[];}[a90k(0x135)](){const v=a90k;return this[v(0x133)][v(0x135)]||v(0x11c);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a91i=a91d;(function(a,b){const f=a91d,c=a();while(!![]){try{const d=parseInt(f(0xab))/0x1+-parseInt(f(0xa8))/0x2*(parseInt(f(0x97))/0x3)+-parseInt(f(0xa2))/0x4*(parseInt(f(0xa6))/0x5)+parseInt(f(0xa4))/0x6*(-parseInt(f(0xa0))/0x7)+-parseInt(f(0x9f))/0x8+parseInt(f(0xa1))/0x9*(parseInt(f(0xa7))/0xa)+-parseInt(f(0x98))/0xb*(-parseInt(f(0x9d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0x9780d));const a91b=(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;};}()),a91a=a91b(this,function(){const g=a91d;return a91a[g(0x9a)]()[g(0x9e)](g(0x96))[g(0x9a)]()[g(0xa5)](a91a)[g(0x9e)](g(0x96));});function a91d(a,b){const c=a91c();return a91d=function(d,e){d=d-0x96;let f=c[d];return f;},a91d(a,b);}function a91c(){const l=['toString','password','input','45852DJmVJr','search','1281336xFwuUb','5454211OFqfKO','8830386ceqEvm','1533772ZZVIkt','prompt','6xTmiKo','constructor','15gayQIE','10OHTWDT','672166RHskaV','answer','confirm','326270DwyHDw','(((.+)+)+)+$','9TxqgWv','6941kYQKly','options'];a91c=function(){return l;};return a91c();}a91a();import a91e from'inquirer';export class Actions{static async['ask'](a,b){const h=a91d,{answer:c}=await a91e[h(0xa3)]({'type':b?h(0x9b):h(0x9c),'name':h(0xa9),'message':a});return c;}static async[a91i(0xaa)](a,b=![]){const j=a91i,{answer:c}=await a91e['prompt']({'type':j(0xaa),'name':j(0xa9),'message':a,'default':b});return c;}static async[a91i(0x99)](a){const k=a91i,b=await a91e[k(0xa3)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a92s=a92d;(function(a,b){const p=a92d,c=a();while(!![]){try{const d=-parseInt(p(0x13b))/0x1+-parseInt(p(0xe4))/0x2*(parseInt(p(0xf8))/0x3)+-parseInt(p(0x111))/0x4*(parseInt(p(0x155))/0x5)+-parseInt(p(0x10a))/0x6+parseInt(p(0x129))/0x7*(parseInt(p(0x150))/0x8)+parseInt(p(0x152))/0x9+-parseInt(p(0x144))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0xa695f));const a92b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a92d;if(c){const e=c[q(0xfd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){const r=a92d;return a92a[r(0x147)]()[r(0x11f)](r(0xf3))[r(0x147)]()[r(0x137)](a92a)['search'](r(0xf3));});a92a();import a92e from'fs';import a92f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';function a92c(){const S=['userData','instanceId','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Instance\x20rebooted!','**\x20Available\x20\x20VPCs\x20**','\x20CIDR:\x20','400456TCvkPE','createFile','11738790omSPgg','ID:\x20','Error\x20generating\x20key\x20pair','1420190zzHtJn','error','90494mmjLwL','exit','ask','chmod\x20400\x20','Description:','Created:\x20','Web\x20App','VpcId','join','createKeyPair','chooseVPC','instance','cidr','Error\x20saving\x20pem\x20file,\x20aborting','isFile','(((.+)+)+)+$','ssh.json','\x20opened!','Invalid\x20choice','httpStatusCode','15MEiEHm','UserData','ec2create','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','split','apply','running','terminated','log','imageId','sgIds','config','CidrBlock','KeyName','ec2terminateInstance','Pem\x20key\x20saved\x20to\x20','GroupName','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','1497948oEvrSA','GroupId','Value','createKeyPairEC2Key','_keys','subnet','file://','4HvKmTf','confirm','vpcId','description','parse','\x20VPCID:\x20','publicIp','tags','status','send','ec2describeInstances','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','ingressRule','sgPorts','search','ignore','length','Port\x20','Instances','suggestion','getSecurityGroups','key','maka-cli','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','189bDVGrN','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','/dev/sdh','push','fsi','$metadata','name','tag:created-by','No\x20instances\x20found','ecrCreateRepository','ec2describeKeys','pem','.pem.txt','forEach','constructor','sgId','deleteKeyPair','find','310480Vecref','\x20ENV:\x20','privateIp','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','Reservations','success','readFileSync','notice','ec2createSG','9031030PxVYRS','\x20NAME:\x20','deleteSecurityGroup','toString','\x20PUB_IP:\x20','Please\x20choose\x20a\x20VPC:\x20[0]\x20'];a92c=function(){return S;};return a92c();}import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';const client=new EC2Client({}),ecrClient=new ECRClient({});function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0xe4;let f=c[d];return f;},a92d(a,b);}export class AWS{[a92s(0x12d)];constructor(){const t=a92s;this[t(0x12d)]=new FSI();}async[a92s(0x132)](a){const u=a92s;try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient['send'](c);return d;}catch(f){Log[u(0x156)](f);}}async[a92s(0xfa)](a){const v=a92s;try{const b={'BlockDeviceMappings':[{'DeviceName':v(0x12b),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[v(0x101)],'InstanceType':a['type'],'KeyName':a[v(0x126)],'MaxCount':a['maxCount'],'MinCount':a['minCount'],'SecurityGroupIds':a[v(0x102)][v(0xfc)](','),'SubnetId':a[v(0x10f)],'TagSpecifications':[{'ResourceType':v(0xef),'Tags':a[v(0x118)]}]};a['userData']&&(b[v(0xf9)]=v(0x110)+a[v(0x14a)]);const c=new RunInstancesCommand(b),d=await client[v(0x11a)](c);return d;}catch(f){Log['error'](f);}}async[a92s(0x106)](a){const w=a92s;try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[w(0x156)](f),{};}}async[a92s(0x10d)]({keyName:a,env:b}){const x=a92s,c=this[x(0x12d)]['getConfigPath'](b),d=a92f[x(0xec)](c,x(0x10e),a+x(0x135));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[x(0x11a)](g),i=h['KeyMaterial'];if(i){await this['fsi'][x(0x151)]({'filePath':d,'data':i}),execSync(x(0xe7)+d,{'stdio':x(0x120)});const j=this[x(0x12d)][x(0xf2)](d);if(j)return Log['success'](x(0x107)+d),{'keyName':a,'filePath':d};else throw new Error(x(0xf1));}else throw new Error(x(0x154));}catch(k){Log[x(0x156)](k),process['exit'](0x1);}}async[a92s(0x11d)]({port:a,groupId:b}){const y=a92s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[y(0x142)](y(0x122)+a+y(0xf5)),await client[y(0x11a)](d);}async[a92s(0x143)](a){const z=a92s;try{a[z(0x114)]===''&&(a[z(0x114)]=await Actions[z(0xe6)](z(0xe8))||z(0xea));const b={'Description':a[z(0x114)],'GroupName':a[z(0x12f)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client[z(0x11a)](c),{GroupId:f}=d;if(!d)throw new Error(z(0x109));f&&a[z(0x11e)]['forEach'](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log[z(0x140)](z(0xe9)+f+z(0x145)+a[z(0x12f)]);}catch(g){return Log['error'](g),![];}return!![];}async[a92s(0x133)](a){const A=a92s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[A(0x11a)](d);if(!f)throw A(0x109);const {KeyPairs:g}=f;g?(g?.[A(0x136)]((h,i)=>{const B=A;h[B(0x105)]&&b[B(0x12c)]({'id':i,'name':h[B(0x105)]});}),b[A(0x121)]>0x0&&b[A(0x136)](h=>{const C=A;h['name']===a?.[C(0x124)]?Log['success'](C(0x153)+h['id']+C(0x145)+h['name']):Log[C(0x142)](C(0x153)+h['id']+C(0x145)+h[C(0x12f)]);})):Log[A(0x156)](A(0x12a));}catch(h){Log['error'](h);}return b;}async[a92s(0x139)](a){const D=a92s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[D(0x11a)](c);}catch(d){Log['error'](d),process['exit'](0x1);}}async[a92s(0x11b)](){const E=a92s,a=[];try{const b={'Filters':[{'Name':E(0x130),'Values':[E(0x127)]}]},c=new DescribeInstancesCommand(b),d=await client[E(0x11a)](c);d[E(0x13f)]?.[E(0x136)]((f,g)=>{const F=E;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[F(0x123)][0x0],n=m?.['find'](({Key:o})=>o==='environment');a[F(0x12c)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[F(0x10c)]});}}),a[E(0x121)]>0x0?a[E(0x136)](f=>{const G=E,g=G(0x153)+f['id']+'\x20NAME:\x20'+f[G(0x12f)]+G(0x13c)+f['env']+'\x20STATUS:\x20'+f[G(0x119)]+'\x20INSTANCE_ID:\x20'+f[G(0x14b)]+G(0x148)+f[G(0x117)]+'\x20PRIV_IP:\x20'+f[G(0x13d)];if(f[G(0x119)]===G(0xff))Log[G(0x156)](g);else f[G(0x119)]===G(0xfe)?Log[G(0x140)](g):Log[G(0x142)](g);}):Log[E(0x156)](E(0x11c));}catch(f){Log[E(0x156)](f);}return a;}async['ec2rebootInstance'](a){const H=a92s;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client[H(0x11a)](c);return d[H(0x12e)][H(0xf7)]===0xc8&&Log['success'](H(0x14d)),d;}catch(f){Log[H(0x156)](f);}}async[a92s(0xee)](){const I=a92s;let a='';Log[I(0x142)](I(0x14e));const b=new DescribeVpcsCommand({}),c=await client[I(0x11a)](b),{Vpcs:d}=c,e=[];d&&d[I(0x136)]((g,h)=>{const J=I;g[J(0xeb)]&&g['CidrBlock']&&e[J(0x12c)]({'id':h,'vpcId':g[J(0xeb)],'cidr':g[J(0x104)]});});e[I(0x136)](function(g){const K=I;console[K(0x100)](K(0x153)+g['id']+K(0x116)+g[K(0x113)]+K(0x14f)+g[K(0xf0)]);});const f=await Actions[I(0xe6)](I(0x149))||0x0;e['forEach'](function(g){const L=I;g['id']==f&&(a=g['vpcId'],Log[L(0x140)](L(0xfb)+a+'\x0a'));});if(a==='')return Log['error'](I(0x14c)),'';return a;}async['chooseInstance'](){const M=a92s,a=await this[M(0x11b)]();if(a['length']===0x0)return Log[M(0x156)](M(0x131)),null;const b=await Actions[M(0xe6)](M(0x13e));!b&&(Log[M(0x156)](M(0xf6)),process[M(0xe5)](0x0));const c=a[M(0x13a)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a92s(0xed)]({env:a}){const N=a92s,b=this['fsi']['getProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[N(0xe6)]('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[N(0x10d)]({'keyName':f,'env':a});try{const h=await Actions[N(0x112)](N(0x128),!![]);if(h)try{const i=a92e[N(0x141)](a92f['join'](N(0x103),a,N(0xf4)),'utf8'),j=JSON[N(0x115)](i);j[N(0x134)]=a92f[N(0xec)]('_keys',f+N(0x135)),a92e['writeFileSync'](a92f[N(0xec)](N(0x103),a,N(0xf4)),JSON['stringify'](j,null,0x2));}catch(k){Log[N(0x156)](k),Log['error']('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(l){Log[N(0x156)](l),process[N(0xe5)](0x1);}return{'keyName':f,'filePath':g};}async[a92s(0x125)](a){const O=a92s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[O(0x11a)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const P=O;i[P(0x108)]&&i[P(0x10b)]&&b['push']({'id':j,'name':i[P(0x108)],'sgId':i[P(0x10b)]});});let g='',h=0x0;return b['forEach'](function(i){const Q=O;i[Q(0x12f)]===a&&(g=i[Q(0x138)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a92s(0x146)](a){const R=a92s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[R(0x156)](d),process[R(0xe5)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a93c(){var i=['1908775JkUIaQ','1668729LWPAEW','648yQBFTO','search','1172670hXWNNj','13552441ecmVie','24rBXniC','20579220XPgDCv','constructor','apply','33328RjKmHV','2glPCRl','1623825LCnMPI','toString'];a93c=function(){return i;};return a93c();}(function(a,b){var f=a93d,c=a();while(!![]){try{var d=parseInt(f(0x11d))/0x1*(-parseInt(f(0x119))/0x2)+-parseInt(f(0x11e))/0x3*(-parseInt(f(0x118))/0x4)+parseInt(f(0x11c))/0x5+-parseInt(f(0x120))/0x6+-parseInt(f(0x121))/0x7+-parseInt(f(0x122))/0x8*(-parseInt(f(0x11a))/0x9)+parseInt(f(0x123))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0xef5cb));var a93b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a93d;if(c){var e=c[g(0x125)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){var h=a93d;return a93a[h(0x11b)]()[h(0x11f)]('(((.+)+)+)+$')['toString']()[h(0x124)](a93a)[h(0x11f)]('(((.+)+)+)+$');});function a93d(a,b){var c=a93c();return a93d=function(d,e){d=d-0x118;var f=c[d];return f;},a93d(a,b);}a93a();export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x1d8;let f=c[d];return f;},a94d(a,b);}function a94c(){const p=['join','119128Eiteyd','(((.+)+)+)+$','.dkr.ecr.','596qTnVOT','.amazonaws.com/','14214zajtEG','--username','651ChsAoG','error','--password-stdin','.amazonaws.com','2qqVVWr','inherit','311407xtjRuZ','awsLogin','tag','12hBMhLl','3129XsMjoz','AWS','8237625xtrJpP','584100hrzXVz','778860WeqNCo','docker\x20','login','45NnsJCs','toString','pushImage'];a94c=function(){return p;};return a94c();}const a94l=a94d;(function(a,b){const j=a94d,c=a();while(!![]){try{const d=parseInt(j(0x1da))/0x1*(-parseInt(j(0x1d8))/0x2)+-parseInt(j(0x1de))/0x3*(parseInt(j(0x1ec))/0x4)+-parseInt(j(0x1e2))/0x5+-parseInt(j(0x1ee))/0x6*(-parseInt(j(0x1f0))/0x7)+-parseInt(j(0x1e9))/0x8*(parseInt(j(0x1e5))/0x9)+-parseInt(j(0x1e1))/0xa+-parseInt(j(0x1e0))/0xb*(-parseInt(j(0x1dd))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x342ed));const a94b=(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;};}()),a94a=a94b(this,function(){const k=a94d;return a94a[k(0x1e6)]()['search'](k(0x1ea))[k(0x1e6)]()['constructor'](a94a)['search'](k(0x1ea));});a94a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a94l(0x1dc)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const m=a94l;try{const f=[m(0x1dc),a,b+m(0x1eb)+c+m(0x1ed)+d],g=m(0x1e3)+f[m(0x1e8)]('\x20'),h=execSync(g,{'stdio':m(0x1d9)})[m(0x1e6)]();return h;}catch(i){return Log[m(0x1f1)](i),'';}}static[a94l(0x1db)]({awsAccountId:a,region:b}){const n=a94l;try{const c=[n(0x1e4),n(0x1ef),n(0x1df),n(0x1f2),a+n(0x1eb)+b+n(0x1f3)],d=n(0x1e3)+c[n(0x1e8)]('\x20'),f=execSync(d,{'stdio':'inherit'})['toString']();return f;}catch(g){return Log['error'](g),'';}}static[a94l(0x1e7)]({awsAccountId:a,region:b,repoName:c}){const o=a94l;try{const d=['push',a+o(0x1eb)+b+o(0x1ed)+c],f=o(0x1e3)+d[o(0x1e8)]('\x20'),g=execSync(f,{'stdio':'inherit'})['toString']();return g;}catch(h){return Log['error'](h),'';}}}
|