@maka/maka-cli 4.5.22 → 4.5.23
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/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 -0
- 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 -0
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -0
- 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 -0
- 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/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/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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x11a;let f=c[d];return f;},a99d(a,b);}const a99j=a99d;(function(a,b){const h=a99d,c=a();while(!![]){try{const d=parseInt(h(0x11e))/0x1+-parseInt(h(0x13a))/0x2+-parseInt(h(0x120))/0x3+parseInt(h(0x12c))/0x4*(parseInt(h(0x12b))/0x5)+parseInt(h(0x124))/0x6*(-parseInt(h(0x121))/0x7)+-parseInt(h(0x132))/0x8*(-parseInt(h(0x123))/0x9)+-parseInt(h(0x136))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xcf788));const a99b=(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;};}()),a99a=a99b(this,function(){const i=a99d;return a99a[i(0x125)]()['search'](i(0x11f))[i(0x125)]()['constructor'](a99a)['search'](i(0x11f));});function a99c(){const m=['444SAAHss','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','indexOf','(blank)','leaflet-map','16JTyozb','maka\x20g:kit\x20--type=map','map','getProjectConfig','1945640zouGjZ','type','error','NIE','1531572FYkeeV','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','create','fsi','login','1178852zQlwoi','(((.+)+)+)+$','3313683iUtUEE','1057CEBpDj','kit','6364206pkrjWI','20376hhoPBR','toString','resourceName','engines','withValue','notice','maka\x20g:k\x20city-map\x20--type=leaflet-map','37585lggOuN'];a99c=function(){return m;};return a99c();}a99a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99j(0x11b)]({'name':a99j(0x122),'aliases':['k'],'usage':a99j(0x11a),'shortDesc':a99j(0x12d),'validOpts':[a99j(0x137)],'examples':[a99j(0x133),a99j(0x12a)]},async function(a,b){const k=a99j;try{const c=this['fsi'][k(0x135)]();this[k(0x11c)][k(0x128)](c,async()=>{const l=k,d={'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[l(0x126)]),'type':b[l(0x137)],'engine':c[l(0x127)]['js'],'noRename':!![]},f=[l(0x131),l(0x11d)];if(f[l(0x12f)](d[l(0x137)])<0x0){const g=d[l(0x137)]?d['type']:l(0x130);Log[l(0x138)]('Invalid\x20type\x20'+g+l(0x12e));return;}b['type']===l(0x134)&&Log[l(0x129)]('NIE'),b[l(0x137)]===l(0x11d)&&Log[l(0x129)](l(0x139));});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a100c(){const u=['true','warn','getProjectConfig','setTemplate','templates.js','react','toString','tsx','dir','theme','export\x20{\x20','injectAtEndOfFile','template/template.css','checkNpmPackage','className','withValue','/imports/ui/layouts','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','144104djEnLr','apply','constructor','imports','.js','37495320IXwIwT','includes','fsi','split','ssr','import\x20\x27./','12161394pVWbTf','engines','test','assign','relative','maka\x20g:l\x20web/safari','4308441ggLJdX','client','template','23KSUoCq','\x27;\x0a','.css','layout','8FwkIoD','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','resourceName','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','5jGZeJv','(((.+)+)+)+$','withHooks','test/test.js','import\x20\x27','search','withHook','2731052uztzLe','rewriteDestinationPathForEngine','injectAtBeginningOfFile','ramda','css','7862304LHEzoX','maka\x20g:layout\x20mobile/iPhone8','.app-tests.js','installNpmPackage','12084856rOkcsS','withTranslations','api','fileName','pathFromApp','startup','create','lib','features','findAppDirectory','graphql','string'];a100c=function(){return u;};return a100c();}const a100r=a100d;(function(a,b){const o=a100d,c=a();while(!![]){try{const d=-parseInt(o(0x1f0))/0x1*(-parseInt(o(0x226))/0x2)+parseInt(o(0x1ed))/0x3+parseInt(o(0x1ff))/0x4*(parseInt(o(0x1f8))/0x5)+parseInt(o(0x204))/0x6+parseInt(o(0x208))/0x7*(-parseInt(o(0x1f4))/0x8)+parseInt(o(0x1e7))/0x9+-parseInt(o(0x1e1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xead18));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a100d;if(c){const e=c[p(0x227)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const q=a100d;return a100a['toString']()[q(0x1fd)](q(0x1f9))[q(0x21a)]()[q(0x228)](a100a)[q(0x1fd)](q(0x1f9));});a100a();import a100e from'path';import{Generator}from'../generator.js';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x1e1;let f=c[d];return f;},a100d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a100r(0x20e)]({'name':a100r(0x1f3),'aliases':aliases,'usage':a100r(0x1f5),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a100r(0x205),a100r(0x1ec)]},function(a,b){const s=a100r,c=s(0x224),d=this[s(0x1e3)][s(0x211)](),e=this[s(0x1e3)][s(0x20c)]({'pathParts':[c,b[s(0x21c)],paramCase(b[s(0x1f6)]),paramCase(b[s(0x1f6)])]}),f=this[s(0x1e3)][s(0x216)]();this[s(0x1e3)][s(0x223)](f,()=>{const t=s;typeof f['template'][t(0x1e9)]===t(0x213)&&(f['template'][t(0x1e9)]=f[t(0x1ef)]['test']===t(0x214)?!![]:![],this['fsi'][t(0x217)](t(0x1e9),f[t(0x1ef)][t(0x1e9)]));typeof f[t(0x1ef)][t(0x203)]===t(0x213)&&(f[t(0x1ef)][t(0x203)]=f[t(0x1ef)]['css']===t(0x214)?!![]:![],this[t(0x1e3)][t(0x217)](t(0x203),f[t(0x1ef)][t(0x203)]));typeof f['template']['js']==='string'&&(f[t(0x1ef)]['js']=f['template']['js']===t(0x214)?!![]:![],this[t(0x1e3)]['setTemplate']('js',f[t(0x1ef)]['js']));!f[t(0x210)]&&(f[t(0x210)]={});const g=b['_']?b['_'][0x0][t(0x1e4)](':')[0x1]:![],h=b['_']&&aliases[t(0x1e2)](g);h&&!this[t(0x221)](t(0x202))&&(Log['warn'](t(0x225)),this[t(0x1e3)][t(0x207)]('ramda',{'cwd':d}));if(h&&!this[t(0x221)](t(0x219))){Log[t(0x215)](t(0x1f7));return;}const i={'name':pascalCase(b[t(0x1f6)]),'myPath':a100e[t(0x1eb)](this[t(0x1e3)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[t(0x1f6)]),'className':pascalCase(b[t(0x1f6)]),'camelCaseName':camelCase(b[t(0x1f6)]),'fileName':paramCase(b['resourceName']),'graphql':f[t(0x1e8)][t(0x212)],'features':f['features'],'client':f['engines'][t(0x1ee)],'api':f[t(0x1e8)][t(0x20a)],'ssr':f[t(0x1e8)][t(0x1e5)],'test':f[t(0x1e8)][t(0x1e9)],'theme':f[t(0x1e8)][t(0x21d)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x210)][t(0x209)]};f[t(0x210)]?.[t(0x1fa)]||b[t(0x1fe)]?this[t(0x1e3)][t(0x1ef)]({'srcPath':'hook/hook.js','destPath':e+t(0x22a),'framework':t(0x219),'context':i,'config':f}):this[t(0x1e3)][t(0x1ef)]({'srcPath':'component/component.js','destPath':e+'.js','framework':t(0x219),'context':i,'config':f});f[t(0x1e8)][t(0x1e9)]!=='none'&&this['fsi'][t(0x1ef)]({'srcPath':t(0x1fb),'destPath':e+t(0x206),'framework':'react','context':i,'config':f});f['template']['css']&&(this['fsi'][t(0x1ef)]({'srcPath':t(0x220),'destPath':e+t(0x1f2),'context':Object[t(0x1ea)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0x1e3)][t(0x201)]({'filePath':e+'.'+f[t(0x1e8)]['js'],'content':t(0x1e6)+i[t(0x20b)]+'.'+f[t(0x1e8)][t(0x203)]+'\x27;'}));const j=b['dir']?'/'+b[t(0x21c)]+'/':'/',k=''+c+j+i[t(0x20b)]+'/'+i['fileName'];let l;if(f[t(0x1e8)][t(0x1e5)]===t(0x214)){const m=this['fsi']['pathFromApp']({'pathParts':[t(0x229),'startup',t(0x20f),t(0x218)]});l=this['fsi'][t(0x200)]({'pathParts':[m],'config':f});}else{const n=this[t(0x1e3)][t(0x20c)]({'pathParts':[t(0x229),t(0x20d),t(0x1ee),t(0x218)]});l=this['fsi'][t(0x200)]({'pathParts':[n],'config':f});}f[t(0x1e8)][t(0x1ee)]===t(0x219)?(f[t(0x1e8)]['js']===t(0x21b)?this[t(0x1e3)][t(0x201)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x222)]+'\x20}\x20from\x20\x27'+k+'\x27;\x0a'}):this[t(0x1e3)]['injectAtBeginningOfFile']({'filePath':l,'content':'import\x20{\x20'+i[t(0x222)]+'\x20}\x20from\x20\x27'+k+'.'+f[t(0x1e8)]['js']+t(0x1f1)}),this[t(0x1e3)][t(0x21f)]({'filePath':l,'content':t(0x21e)+i['className']+'\x20};\x0a'})):this['fsi'][t(0x21f)]({'filePath':l,'content':t(0x1fc)+k+'.'+f[t(0x1e8)]['js']+t(0x1f1)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x104;let f=c[d];return f;},a101d(a,b);}const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=parseInt(f(0x116))/0x1*(parseInt(f(0x10c))/0x2)+-parseInt(f(0x108))/0x3*(parseInt(f(0x10e))/0x4)+parseInt(f(0x106))/0x5+parseInt(f(0x105))/0x6+parseInt(f(0x109))/0x7+parseInt(f(0x112))/0x8+-parseInt(f(0x10d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x583fc));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0x10a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a[h(0x104)]()[h(0x107)](h(0x115))[h(0x104)]()[h(0x111)](a101a)['search']('(((.+)+)+)+$');});a101a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a101i(0x10b),'shortDesc':a101i(0x110),'validOpts':[],'description':a101i(0x113),'usage':a101i(0x10f),'examples':['maka\x20generate:api\x20Trucks',a101i(0x114)]},function(){return null;});export default MakaGen;function a101c(){const j=['search','11499YrvDQn','2782654IYyCQh','apply','maka','87776hclrSJ','7529517saWyMd','404schbMF','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','Maka!','constructor','4065896EQtOat','\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','maka\x20g:hook\x20cool-hook','(((.+)+)+)+$','13fXUglC','toString','338616anJhaU','262375HzjFya'];a101c=function(){return j;};return a101c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a102n=a102d;function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0xb4;let f=c[d];return f;},a102d(a,b);}(function(a,b){const k=a102d,c=a();while(!![]){try{const d=-parseInt(k(0xc6))/0x1*(parseInt(k(0xb9))/0x2)+parseInt(k(0xc8))/0x3+parseInt(k(0xbb))/0x4+-parseInt(k(0xd5))/0x5+parseInt(k(0xc1))/0x6*(-parseInt(k(0xcd))/0x7)+-parseInt(k(0xc3))/0x8+parseInt(k(0xca))/0x9*(parseInt(k(0xd1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xc4349));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a102d;if(c){const e=c[l(0xd6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const m=a102d;return a102a[m(0xbc)]()[m(0xda)](m(0xd7))[m(0xbc)]()['constructor'](a102a)[m(0xda)](m(0xd7));});a102a();function a102c(){const q=['engines','warn','imports','startup','548726zlNWtH','error','1072068eYuqYl','toString','methods','maka\x20g:method\x20todos','fsi','ddp-rate-limiter','18sOQMaT','-rpc-method.','11225632BgWJaD','tsx','dir','1YhXWIM','method','36558yWDZLK','create','171009tvvToq','resourceName','-rpc-method\x27;','3664283NGXVoj','appPathPrefix','checkMeteorPackage','pathFromApp','2470MBPTve','check','template','mdg:validated-method','4609095dZZtFk','apply','(((.+)+)+)+$','check\x20ddp-rate-limiter\x20mdg:validated-method','method/method.js','search','index.'];a102c=function(){return q;};return a102c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a102n(0xc9)]({'name':a102n(0xc7),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':['dir'],'examples':[a102n(0xbe)]},function(a,b){const o=a102n;try{const c=this[o(0xbf)]['getProjectConfig']();this[o(0xbf)]['withValue'](c,async()=>{const p=o,d=paramCase(b['resourceName']),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[p(0xcb)]),'camelCase':camelCase(b[p(0xcb)]),'noRename':!![]};let g='js';c[p(0xb5)]['js']===p(0xc4)&&(g='ts');const h=this[p(0xbf)][p(0xd0)]({});(!this['fsi'][p(0xcf)](p(0xd2))||!this[p(0xbf)]['checkMeteorPackage'](p(0xc0))||!this[p(0xbf)][p(0xcf)](p(0xd4)))&&(Log[p(0xb6)]('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this['fsi']['installMeteorPackage'](p(0xd8),{'cwd':h}));this[p(0xbf)][p(0xd3)]({'srcPath':p(0xd9),'destPath':this[p(0xbf)][p(0xd0)]({'pathParts':[p(0xb7),p(0xb8),b[p(0xce)],p(0xbd),b[p(0xc5)],d+p(0xc2)+g]}),'context':f,'config':c});const i=b[p(0xc5)]?'/'+b['dir']+'/':'/',j=this[p(0xbf)]['pathFromApp']({'pathParts':[p(0xb7),p(0xb8),b[p(0xce)],p(0xb4)+c[p(0xb5)]['js']]});this[p(0xbf)]['injectAtEndOfFile']({'filePath':j,'content':'import\x20\x27./methods'+i+d+p(0xcc)});});}catch(d){Log[o(0xba)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a103c(){const s=['333nwlinj','2922630PqINcC','template','store','constructor','91saYvDd','template/template.js','package.js','graphql','package','fsi','getProjectConfig','package/package.js','toString','188408rBulUs','search','546844qzZSKl','8laIzMz','pathFromApp','layout','apply','relative','packages','theme','lib','pathFromProject','tests/server','tests/client','3zhXYIe','dir','noRename','pathFromAppWithNoReWrite','package/','4293515gFeSRR','.js','54078gmZuPB','1082667mLNjON','27470498umdpAy','(((.+)+)+)+$','maka\x20g:package\x20todos:package','hasOwnProperty','engines','client','resourceName'];a103c=function(){return s;};return a103c();}const a103o=a103d;(function(a,b){const l=a103d,c=a();while(!![]){try{const d=-parseInt(l(0x124))/0x1*(parseInt(l(0x118))/0x2)+parseInt(l(0x100))/0x3*(parseInt(l(0x119))/0x4)+-parseInt(l(0x129))/0x5+parseInt(l(0xff))/0x6*(parseInt(l(0x10d))/0x7)+parseInt(l(0x116))/0x8*(-parseInt(l(0x108))/0x9)+-parseInt(l(0x109))/0xa+parseInt(l(0x101))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x7884e));function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0xff;let f=c[d];return f;},a103d(a,b);}const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a103d;if(c){const e=c[m(0x11c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const n=a103d;return a103a[n(0x115)]()[n(0x117)](n(0x102))[n(0x115)]()[n(0x10c)](a103a)[n(0x117)](n(0x102));});a103a();import a103e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a103o(0x111),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':['dir'],'examples':[a103o(0x103)]},async function(a,b){const p=a103o,c=paramCase(b['resourceName']),d=this[p(0x112)][p(0x11a)]({'pathParts':[p(0x11e),b[p(0x125)],c]}),e=this[p(0x112)][p(0x127)]({'pathParts':[p(0x11e),b[p(0x125)],c,p(0x10f)]}),f=this[p(0x112)][p(0x113)]();this['fsi']['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0x107)]),'myPath':a103e[q(0x11d)](this[q(0x112)][q(0x121)]({}),d),'cssCaseName':paramCase(b[q(0x107)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x107)]),'fileName':c,'client':f['engines'][q(0x106)],'graphql':f['engines'][q(0x110)],'ssr':f['engines']['ssr'],'isComponent':b[q(0x104)]('component'),'isLayout':b['hasOwnProperty'](q(0x11b)),'isStore':b[q(0x104)](q(0x10b)),'features':f['features'],'noRename':!![],'theme':f[q(0x105)][q(0x11f)]};this[q(0x112)]['template']({'srcPath':q(0x114),'destPath':e,'context':g,'config':f}),g[q(0x126)]=![];const h=d+'/client/'+c+q(0x12a);this['fsi'][q(0x10a)]({'srcPath':q(0x10e),'destPath':h,'context':g,'config':f});const i=[q(0x120),'server',q(0x123),q(0x122)];i['forEach'](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x12a);this[r(0x112)][r(0x10a)]({'srcPath':r(0x128)+j+'/package.js','destPath':k,'context':g,'config':f});});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a104p=a104d;(function(a,b){const m=a104d,c=a();while(!![]){try{const d=-parseInt(m(0x1c3))/0x1*(-parseInt(m(0x1d9))/0x2)+-parseInt(m(0x1d3))/0x3*(-parseInt(m(0x1f2))/0x4)+parseInt(m(0x1f4))/0x5+-parseInt(m(0x1dd))/0x6*(parseInt(m(0x1c7))/0x7)+parseInt(m(0x1da))/0x8+parseInt(m(0x1eb))/0x9+-parseInt(m(0x208))/0xa*(parseInt(m(0x1cd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xb3272));function a104c(){const s=['resourceName','template/template.css','withHooks','12692043LCVjqg','setTemplate','search','rewriteDestinationPathForEngine','relative','dir','.app-tests.js','56uZZKvQ','engines','3614235MjesOw','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','.js','startup','withTranslations','pathFromApp','lib','theme','tsx','graphql','css','\x27;\x0a','react','string','none','pathFromProject','checkNpmPackage','assign','root','imports','290BOsVdY','\x20}\x20from\x20\x27','vanilla','injectAtBeginningOfFile','layout','.css','page','4NEyuuG','Generate\x20a\x20page.','warn','injectAtEndOfFile','287DnCmwd','features','test/test.js','component','apply','html','1273239OiFkfZ','import\x20\x27./','withHook','template','true','\x20};\x0a','241143smQYWq','hook/hook.js','import\x20\x27','(((.+)+)+)+$','toString','client','463598FuEVuk','5352024hCtAwh','.html','import\x20{\x20','111816FjaPrB','test','export\x20{\x20','fileName','templates.js','fsi','installNpmPackage','getProjectConfig','className','hasOwnProperty','ssr'];a104c=function(){return s;};return a104c();}const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a104d;if(c){const e=c[n(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const o=a104d;return a104a['toString']()[o(0x1ed)](o(0x1d6))[o(0x1d7)]()['constructor'](a104a)[o(0x1ed)](o(0x1d6));});a104a();import a104e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1c2;let f=c[d];return f;},a104d(a,b);}Generator['create']({'name':a104p(0x1c2),'aliases':aliases,'usage':a104p(0x1f5),'shortDesc':a104p(0x1c4),'validOpts':[a104p(0x1f0),a104p(0x1cf)],'examples':['maka\x20g:page\x20todos/todos-item']},function(a,b){const q=a104p,c='/imports/ui/pages',d=this[q(0x1e2)]['pathFromApp'](b),e=this[q(0x1e2)][q(0x1f9)]({'pathParts':[c,b[q(0x1f0)],paramCase(b[q(0x1e8)]),paramCase(b[q(0x1e8)])]}),f=this[q(0x1e2)][q(0x1e4)]();this['fsi']['withValue'](f,()=>{const r=q;typeof f[r(0x1d0)][r(0x1cc)]===r(0x201)&&(f[r(0x1d0)]['html']=f[r(0x1d0)][r(0x1cc)]===r(0x1d1)?!![]:![],this['fsi'][r(0x1ec)](r(0x1cc),f[r(0x1d0)][r(0x1cc)]));typeof f[r(0x1d0)][r(0x1de)]===r(0x201)&&(f[r(0x1d0)]['test']=f['template'][r(0x1de)]===r(0x1d1)?!![]:![],this[r(0x1e2)][r(0x1ec)](r(0x1de),f[r(0x1d0)]['test']));typeof f[r(0x1d0)][r(0x1fe)]===r(0x201)&&(f[r(0x1d0)][r(0x1fe)]=f[r(0x1d0)]['css']===r(0x1d1)?!![]:![],this['fsi'][r(0x1ec)](r(0x1fe),f[r(0x1d0)]['css']));typeof f[r(0x1d0)]['js']===r(0x201)&&(f[r(0x1d0)]['js']=f['template']['js']===r(0x1d1)?!![]:![],this[r(0x1e2)][r(0x1ec)]('js',f[r(0x1d0)]['js']));!f[r(0x1c8)]&&(f[r(0x1c8)]={});!b[r(0x206)]&&!this['fsi'][r(0x204)]('ramda')&&(Log[r(0x1c5)]('Updating\x20npm\x20packages\x20...'),this[r(0x1e2)][r(0x1e3)]('ramda',{'cwd':d}));const g={'name':pascalCase(b[r(0x1e8)]),'myPath':a104e[r(0x1ef)](this[r(0x1e2)][r(0x203)]({}),e),'cssCaseName':paramCase(b[r(0x1e8)]),'className':pascalCase(b[r(0x1e8)]),'camelCaseName':camelCase(b[r(0x1e8)]),'fileName':paramCase(b[r(0x1e8)]),'graphql':f[r(0x1f3)][r(0x1fd)],'features':f[r(0x1c8)],'client':f['engines'][r(0x1d8)],'api':f[r(0x1f3)]['api'],'ssr':f[r(0x1f3)][r(0x1e7)],'isStore':b[r(0x1e6)]('store'),'isComponent':b[r(0x1e6)](r(0x1ca)),'isLayout':b[r(0x1e6)](r(0x20c)),'withTranslations':f[r(0x1c8)][r(0x1f8)],'test':f[r(0x1f3)][r(0x1de)],'theme':f[r(0x1f3)][r(0x1fb)]};f['template'][r(0x1cc)]&&this[r(0x1e2)][r(0x1d0)]({'srcPath':'template/template.html','destPath':e+r(0x1db),'context':g,'config':f});f['features']?.[r(0x1ea)]||b[r(0x1cf)]?this[r(0x1e2)][r(0x1d0)]({'srcPath':r(0x1d4),'destPath':e+'.js','framework':'react','context':g,'config':f}):this['fsi']['template']({'srcPath':'component/component.js','destPath':e+r(0x1f6),'framework':r(0x200),'context':g,'config':f});f[r(0x1f3)]['test']!==r(0x202)&&this[r(0x1e2)][r(0x1d0)]({'srcPath':r(0x1c9),'destPath':e+r(0x1f1),'framework':'react','context':g,'config':f});f['template']['css']&&this[r(0x1e2)]['template']({'srcPath':r(0x1e9),'destPath':e+r(0x20d),'context':Object[r(0x205)]({},g,{'className':paramCase(b[r(0x1e8)])}),'config':f});f[r(0x1f3)][r(0x1d8)]!==r(0x200)&&f[r(0x1f3)]['client']!==r(0x20a)?(f[r(0x1d0)][r(0x1fe)]&&this[r(0x1e2)][r(0x20b)]({'filePath':e+'.'+f['engines']['js'],'content':r(0x1ce)+g['fileName']+'.'+f[r(0x1f3)]['html']+r(0x1ff)+r(0x1ce)+g['fileName']+'.'+f[r(0x1f3)][r(0x1fe)]+'\x27;'}),!f[r(0x1d0)]['css']&&this['fsi'][r(0x20b)]({'filePath':e+'.'+f['engines']['js'],'content':r(0x1ce)+g[r(0x1e0)]+'.'+f['engines'][r(0x1cc)]+'\x27;'})):f[r(0x1d0)][r(0x1fe)]&&this[r(0x1e2)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x1f3)]['js'],'content':r(0x1ce)+g[r(0x1e0)]+'.'+f[r(0x1f3)][r(0x1fe)]+'\x27;'});const h=b[r(0x1f0)]?'/'+b[r(0x1f0)]+'/':'/',i=''+c+h+g[r(0x1e0)]+'/'+g[r(0x1e0)];let j;if(f[r(0x1f3)][r(0x1e7)]==='true'){const k=this[r(0x1e2)][r(0x1f9)]({'pathParts':['imports',r(0x1f7),r(0x1fa),r(0x1e1)]});j=this[r(0x1e2)][r(0x1ee)]({'pathParts':[k],'config':f});}else{const l=this[r(0x1e2)][r(0x1f9)]({'pathParts':[r(0x207),r(0x1f7),'client',r(0x1e1)]});j=this[r(0x1e2)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f[r(0x1f3)]['client']===r(0x200)?(f[r(0x1f3)]['js']===r(0x1fc)?this[r(0x1e2)][r(0x20b)]({'filePath':j,'content':'import\x20{\x20'+g['className']+'\x20}\x20from\x20\x27'+i+r(0x1ff)}):this[r(0x1e2)][r(0x20b)]({'filePath':j,'content':r(0x1dc)+g[r(0x1e5)]+r(0x209)+i+'.'+f[r(0x1f3)]['js']+r(0x1ff)}),this[r(0x1e2)][r(0x1c6)]({'filePath':j,'content':r(0x1df)+g[r(0x1e5)]+r(0x1d2)})):this[r(0x1e2)][r(0x1c6)]({'filePath':j,'content':r(0x1d5)+i+'.'+f['engines']['js']+r(0x1ff)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a105k=a105d;function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x8a;let f=c[d];return f;},a105d(a,b);}(function(a,b){const h=a105d,c=a();while(!![]){try{const d=-parseInt(h(0x93))/0x1*(parseInt(h(0x9c))/0x2)+-parseInt(h(0x96))/0x3*(parseInt(h(0x9a))/0x4)+-parseInt(h(0xa3))/0x5+-parseInt(h(0xa0))/0x6*(parseInt(h(0x92))/0x7)+-parseInt(h(0x9f))/0x8+parseInt(h(0x94))/0x9+parseInt(h(0x99))/0xa*(parseInt(h(0x90))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x8d79d));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a105d;if(c){const e=c[i(0x8a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const j=a105d;return a105a['toString']()[j(0x91)](j(0x8f))['toString']()[j(0x8c)](a105a)['search'](j(0x8f));});a105a();import{paramCase}from'change-case';function a105c(){const n=['66700aXGEEI','686020FXQpUX','resourceName','40wRxEVu','server/publish.','maka\x20g:publish\x20todos','6713936aZuAAz','24wQIGlc','getProjectConfig','fsi','4163820CWxuwF','apply','rewriteDestinationPathForEngine','constructor','withValue','templateContent','(((.+)+)+)+$','6567cdWmId','search','1093687rmeSJt','57371bOIImy','1920510xfohnZ','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','3fpViBT','publish/publish.','engines'];a105c=function(){return n;};return a105c();}import{Generator}from'../generator.js';Generator['create']({'name':'publish','aliases':['p'],'usage':a105k(0x95),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':[a105k(0x9e)]},async function(a,b){const l=a105k,c=this[l(0xa2)][l(0xa1)]();this[l(0xa2)][l(0x8d)](c,async()=>{const m=l,d={'name':b[m(0x9b)],'collection':paramCase(b[m(0x9b)]),'noRename':!![]};let e='js';c[m(0x98)]['js']==='tsx'&&(e='ts');const f=this['fsi'][m(0x8b)]({'pathParts':[m(0x9d)+c[m(0x98)]['js']]}),g=this[m(0xa2)][m(0x8e)]({'srcPath':m(0x97)+e,'context':d,'config':c});this['fsi']['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a106y=a106d;function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x1b2;let f=c[d];return f;},a106d(a,b);}(function(a,b){const v=a106d,c=a();while(!![]){try{const d=parseInt(v(0x1e9))/0x1+parseInt(v(0x1d9))/0x2+parseInt(v(0x1cd))/0x3*(-parseInt(v(0x1d8))/0x4)+-parseInt(v(0x1d0))/0x5*(-parseInt(v(0x1de))/0x6)+parseInt(v(0x1da))/0x7+parseInt(v(0x1bf))/0x8+-parseInt(v(0x1e0))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x4f659));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a106d;if(c){const e=c[w(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const x=a106d;return a106a[x(0x1c6)]()[x(0x1e2)](x(0x1f6))[x(0x1c6)]()[x(0x1c5)](a106a)['search'](x(0x1f6));});a106a();import a106e from'path';function a106c(){const G=['(((.+)+)+)+$','private','MasterLayout','map','\x0a\x09\x09','findGenerator','client','toLowerCase','routes.js','rewriteDestinationPathForEngine','join','cwd','</Router>','startup','137288fuQpkA','config','error','invoke','withTranslations','templateName','constructor','toString','indexOf','newForm','create','fsi','const\x20publicRoutes\x20=\x20(<>','<Route','14634MLllBj','ssr','maka\x20g:route\x20lists/listIndex\x20lists','1343560yqldvC','getProjectConfig','lib','vanilla','templateContent','PrivateLayout','injectAtEndOfFile','/imports/ui/pages','4VBWWpw','177678XqETZA','4156390UBxlRj','route/route.js','pathFromApp','length','6bOokFk','readFileLines','10443771FbajqW','Scaffolding\x20for\x20a\x20Route.','search','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','root','page','includes','layout','apply','522024HimChu','filter','url','features','only','const\x20privateRoutes\x20=\x20(<>','engines','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','injectIntoFile','injectAfterLineNumber','maka\x20g:route\x20todosIndex\x20todos','imports','react'];a106c=function(){return G;};return a106c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a106f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a106y(0x1c9)]({'name':'route','aliases':aliases,'validOpts':['private',a106y(0x1e7),a106y(0x1ed),a106y(0x1bc),a106y(0x1c0),a106y(0x1e4),'withHook',a106y(0x1eb)],'usage':a106y(0x1f0),'shortDesc':a106y(0x1e1),'examples':[a106y(0x1f3),'maka\x20g:route\x20todosEdit\x20todos/:id/edit','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView',a106y(0x1cf)]},function(a,b){const z=a106y;try{const c=this['fsi'][z(0x1d1)]();this[z(0x1ca)]['withValue'](c,async()=>{const A=z,d=b[A(0x1b2)]??![];let f=paramCase(a[0x0]),g='/'+f;a[A(0x1dd)]>0x1&&(g='/'+a[A(0x1ea)](function(l){return l!=='/';})[A(0x1bb)]('/')[A(0x1b8)]());f=camelCase(f);b[A(0x1e7)]&&(b[A(0x1e7)]=camelCase(b[A(0x1e7)]));const h=a106e['join'](A(0x1d7),f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b[A(0x1e7)]||A(0x1b3),'templatePath':h,'templateName':pascalCase(f),'client':c['engines'][A(0x1b7)],'newForm':![],'withTranslations':c[A(0x1ec)][A(0x1c3)]};d&&(i[A(0x1e7)]=A(0x1d5));if(!b[A(0x1e4)]){const l=a106f[A(0x1b6)](A(0x1e5));l&&await l[A(0x1c2)](a,b);}let j,k;if(c[A(0x1ef)][A(0x1b7)]===A(0x1f5)){if(c['engines'][A(0x1ce)]==='true'){const p=this[A(0x1ca)][A(0x1dc)]({'pathParts':[A(0x1f4),A(0x1be),A(0x1d2),A(0x1b9)]});j=this[A(0x1ca)][A(0x1ba)]({'pathParts':[p],'config':c});}else{const q=this[A(0x1ca)][A(0x1dc)]({'pathParts':[A(0x1f4),A(0x1be),A(0x1b7),A(0x1b9)]});j=this['fsi'][A(0x1ba)]({'pathParts':[q],'config':c});}const m=this[A(0x1ca)][A(0x1df)](j)[A(0x1b4)]((r,s)=>{const B=A;return r[B(0x1e6)](B(0x1e3))?s+0x1:null;})[A(0x1ea)](r=>r!==null);let n=this[A(0x1ca)][A(0x1df)](j)['map']((r,s)=>{const C=A;return r[C(0x1e6)](C(0x1cb))?s+0x1:null;})['filter'](r=>r!==null),o=this[A(0x1ca)][A(0x1df)](j)['map']((r,s)=>{const D=A;return r[D(0x1e6)](D(0x1ee))?s+0x1:null;})[A(0x1ea)](r=>r!==null);n[A(0x1dd)]>0x0&&o['length']>0x0&&(i[A(0x1c8)]=!![]);k=this[A(0x1ca)][A(0x1d4)]({'srcPath':A(0x1db),'framework':'react','context':i,'config':c});if(n[A(0x1dd)]>0x0||o[A(0x1dd)]>0x0){this[A(0x1ca)][A(0x1f2)]({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o[A(0x1dd)]>0x0)o=this[A(0x1ca)]['readFileLines'](j)[A(0x1b4)]((r,s)=>{const E=A;return r[E(0x1e6)]('const\x20privateRoutes\x20=\x20(<>')?s+0x1:null;})[A(0x1ea)](r=>r!==null),this[A(0x1ca)][A(0x1f2)]({'filePath':j,'content':'\x09{'+i[A(0x1c4)]+'}','lineNumber':o[0x0]});else n[A(0x1dd)]>0x0?(n=this[A(0x1ca)][A(0x1df)](j)[A(0x1b4)]((r,s)=>{const F=A;return r['includes'](F(0x1cb))?s+0x1:null;})['filter'](r=>r!==null),this['fsi'][A(0x1f2)]({'filePath':j,'content':'\x09{'+i[A(0x1c4)]+'}','lineNumber':n[0x0]})):Log['warn']('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+j);}else{const r=this[A(0x1ca)][A(0x1df)](j)['map'](u=>{return u['includes']('\x22*\x22');}),s=r[A(0x1c7)](!![])>-0x1,t=s?A(0x1cc):A(0x1bd);this[A(0x1ca)][A(0x1f1)]({'filePath':j,'content':'\x0a\x09\x09'+k+A(0x1b5),'begin':'<Router','end':t});}}else{if(c[A(0x1ef)]['client']===A(0x1d3)){const u=this[A(0x1ca)][A(0x1dc)]({'pathParts':[A(0x1f4),'startup',A(0x1b7),'routes.js']});j=this[A(0x1ca)][A(0x1ba)]({'pathParts':[u],'config':c}),k=this[A(0x1ca)][A(0x1d4)]({'srcPath':A(0x1db),'context':i}),this[A(0x1ca)][A(0x1d6)]({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log[z(0x1c1)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107m=a107d;function a107c(){const p=['search','8585144IuYnwm','2HImVFB','getProjectConfig','lib','toString','resourceName','(((.+)+)+)+$','30288nPfIZx','tsx','36655EyWtND','template','620DdXjmq','1681833UboDqF','winston\x20setimmediate','withValue','2769900OwgXmy','create','constructor','startup','installNpmPackage','40cJJbTw','3860271QgGost','logger','613136iNBRzP','fsi','service','Installing\x20winston','apply'];a107c=function(){return p;};return a107c();}(function(a,b){const j=a107d,c=a();while(!![]){try{const d=parseInt(j(0x1bc))/0x1*(-parseInt(j(0x1b5))/0x2)+parseInt(j(0x1aa))/0x3+-parseInt(j(0x1a9))/0x4*(-parseInt(j(0x1a7))/0x5)+-parseInt(j(0x1a5))/0x6+parseInt(j(0x1ad))/0x7+parseInt(j(0x1bb))/0x8+parseInt(j(0x1b3))/0x9*(-parseInt(j(0x1b2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xcb19b));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a107d;if(c){const e=c[k(0x1b9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const l=a107d;return a107a[l(0x1a2)]()[l(0x1ba)](l(0x1a4))[l(0x1a2)]()[l(0x1af)](a107a)[l(0x1ba)](l(0x1a4));});a107a();import{camelCase,paramCase,pascalCase}from'change-case';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x1a1;let f=c[d];return f;},a107d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a107m(0x1ae)]({'name':a107m(0x1b7),'aliases':['svc'],'usage':'maka\x20{generate,\x20g}:{service}\x20[service-type]','shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','validOpts':['type'],'validArgs':[a107m(0x1b4)],'maxArgLength':0x1,'minArgLength':0x1,'examples':['maka\x20g:svc\x20logger']},async function(a,b){const n=a107m;try{const c=this[n(0x1b6)][n(0x1bd)]();this[n(0x1b6)][n(0x1ac)](c,async()=>{const o=n,d=this[o(0x1b6)]['pathFromApp']({}),f=paramCase(b[o(0x1a3)]),g={'name':pascalCase(b[o(0x1a3)]),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':a[0x0],'engine':c['engines']['js'],'noRename':!![]};let h='js';c['engines']['js']===o(0x1a6)&&(h='ts');if(a[0x0]==='logger'){!this[o(0x1b6)]['checkNpmPackage']('winston')&&await this[o(0x1b6)][o(0x1b1)](o(0x1ab),{'cwd':d,'msg':o(0x1b8)});const i=this[o(0x1b6)]['pathFromApp']({'pathParts':['imports',o(0x1b0),o(0x1a1),'services',f+'.'+h]});this[o(0x1b6)][o(0x1a8)]({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a108d,c=a();while(!![]){try{var d=parseInt(f(0x94))/0x1+parseInt(f(0x92))/0x2*(-parseInt(f(0x98))/0x3)+parseInt(f(0x9b))/0x4*(-parseInt(f(0x93))/0x5)+parseInt(f(0x97))/0x6+parseInt(f(0x9a))/0x7*(-parseInt(f(0x90))/0x8)+parseInt(f(0x91))/0x9+-parseInt(f(0x96))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xb4b26));var a108b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a108d;if(c){var e=c[g(0x8f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){var h=a108d;return a108a[h(0x9c)]()[h(0x99)](h(0x9d))[h(0x9c)]()[h(0x95)](a108a)[h(0x99)]('(((.+)+)+)+$');});a108a();import'./translation.js';import'./openssl.js';function a108d(a,b){var c=a108c();return a108d=function(d,e){d=d-0x8f;var f=c[d];return f;},a108d(a,b);}function a108c(){var i=['13254360tLegmH','7478652jzODGd','8409TEcblC','search','28PpHrwS','8QpnLYv','toString','(((.+)+)+)+$','apply','216992lYFmpQ','10663101qLqaZO','50saUhEn','2086940HyeHsC','647686QMNGXJ','constructor'];a108c=function(){return i;};return a108c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109k=a109d;(function(a,b){const i=a109d,c=a();while(!![]){try{const d=-parseInt(i(0x1bc))/0x1*(-parseInt(i(0x1ca))/0x2)+-parseInt(i(0x1c1))/0x3+-parseInt(i(0x1c7))/0x4*(-parseInt(i(0x1bd))/0x5)+parseInt(i(0x1d8))/0x6+parseInt(i(0x1bf))/0x7*(-parseInt(i(0x1cd))/0x8)+parseInt(i(0x1c4))/0x9+-parseInt(i(0x1d6))/0xa*(-parseInt(i(0x1c9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x9cf17));function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x1bc;let f=c[d];return f;},a109d(a,b);}const a109b=(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;};}()),a109a=a109b(this,function(){const j=a109d;return a109a['toString']()[j(0x1c6)](j(0x1cc))[j(0x1cb)]()[j(0x1dc)](a109a)[j(0x1c6)](j(0x1cc));});a109a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a109e from'path';Generator[a109k(0x1d9)]({'name':a109k(0x1d5),'usage':a109k(0x1d1),'shortDesc':a109k(0x1c2),'noResource':!![],'requiredOpts':[a109k(0x1c8)],'examples':[a109k(0x1d3)],'validOpts':[a109k(0x1c8)]},async function(a,b){const l=a109k;try{const c=await this['fsi'][l(0x1c3)](),d=await this[l(0x1cf)][l(0x1d0)](),f=this[l(0x1cf)][l(0x1d4)](b[l(0x1c8)]),g=a109e[l(0x1c5)](f,'_keys',l(0x1db));await this[l(0x1cf)][l(0x1d7)](c,async()=>{const m=l,h={'app':d[m(0x1d2)],'noRename':!![]};await this['fsi'][m(0x1c0)]({'srcPath':m(0x1da),'destPath':g,'framework':m(0x1be),'context':h,'config':c});});}catch(h){Log[l(0x1ce)](h);}});function a109c(){const n=['withValue','3018828uZqdao','create','openssl/openssl.conf','openssl.conf','constructor','274079vqewLs','183275BUSQfZ','service','4467309TVCmBg','template','2869992bdsXnp','Generate\x20a\x20new\x20openssl\x20config\x20file','getProjectConfig','1503540viaAYh','join','search','44iqVuuz','env','6182OFPGMt','2mQQgxl','toString','(((.+)+)+)+$','8qbWGTU','error','fsi','getGlobalConfig','maka\x20{generate,\x20g}:sslconfig','appName','maka\x20g:sslconfig\x20--env\x20dev','getConfigPath','sslconfig','15840PEKuCS'];a109c=function(){return n;};return a109c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110A=a110d;(function(a,b){const x=a110d,c=a();while(!![]){try{const d=parseInt(x(0x130))/0x1+-parseInt(x(0x113))/0x2*(parseInt(x(0x11e))/0x3)+-parseInt(x(0x101))/0x4+parseInt(x(0x109))/0x5+-parseInt(x(0x131))/0x6*(-parseInt(x(0x110))/0x7)+parseInt(x(0x133))/0x8*(-parseInt(x(0x11f))/0x9)+parseInt(x(0x134))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x4a9cd));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a110d;if(c){const e=c[y(0x105)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const z=a110d;return a110a['toString']()[z(0x11a)](z(0x116))[z(0x112)]()['constructor'](a110a)['search'](z(0x116));});function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0xfa;let f=c[d];return f;},a110d(a,b);}function a110c(){const D=['appName','70485QxBipE','maka\x20{generate,\x20g}:translation\x20--lang=<language>','imports','ssr','warn','import\x20\x27../lib/services/translations/i18n\x27;','lib','1081997vVvtSI','export\x20{\x20default\x20as\x20','toString','318040ZPTTlT','\x20}\x20from\x20\x27./','root','(((.+)+)+)+$','i18n.js','translations','create','search','grep','client','isFile','3AGIaeR','61461ggftho','getGlobalConfig','services','rewriteDestinationPathForEngine','i18n/locales.js','fsi','.js','service','i18n','checkNpmPackage','injectAtBeginningOfFile','maka\x20g:translation\x20--lang=de','default\x20as\x20','Locale\x20already\x20defined:\x20','maka\x20g:translation\x20--lang=fr','lang','readFileSync','558996znxjkj','6uOoapg','findAppDirectory','584oZJcBA','3810920lqymvm','startup','index.','import\x20\x27../lib/services/translations/i18n\x27;\x0a','template','maka\x20g:translation\x20--lang=en\x20(default)','index.js','true','582424LIXzBZ','Locale\x20already\x20exported:\x20','exit','error','apply','pathFromApp','server'];a110c=function(){return D;};return a110c();}a110a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a110e from'fs';Generator[a110A(0x119)]({'name':'translation','usage':a110A(0x10a),'aliases':[a110A(0x127)],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','noResource':!![],'examples':[a110A(0xfe),a110A(0x12d),a110A(0x12a)],'validOpts':[a110A(0x12e)]},function(a,b){const B=a110A;try{const c=this[B(0x124)]['getProjectConfig'](),d=this[B(0x124)][B(0x120)](),f=this['fsi'][B(0x132)]();this[B(0x124)]['withValue'](c,()=>{const C=B;try{!b['lang']&&(b['lang']='en');!b[C(0x115)]&&!this[C(0x124)][C(0x128)]('i18next')&&(Log[C(0x10d)]('Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...'),this['fsi']['installNpmPackage']('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this[C(0x124)]['setProjectConfig']('features.withTranslations',!![]));const g=this[C(0x124)][C(0x106)]({'pathParts':[C(0x10b),'startup',C(0x11c),C(0xff)]}),h=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[g],'config':c}),i=this[C(0x124)][C(0x11b)](a110e[C(0x12f)](h)[C(0x112)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];if(c['engines'][C(0x10c)]===C(0x100)){!i&&this[C(0x124)][C(0x129)]({'filePath':h,'content':C(0xfc)});const t=this[C(0x124)][C(0x106)]({'pathParts':[C(0x10b),C(0xfa),C(0x107),C(0xff)]}),u=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this[C(0x124)]['grep'](a110e[C(0x12f)](u)[C(0x112)](),C(0x10e))[0x0]&&!![];!v&&this[C(0x124)]['injectAtBeginningOfFile']({'filePath':u,'content':C(0xfc)});}else!i&&this['fsi'][C(0x129)]({'filePath':h,'content':C(0xfc)});const j={'app':d[C(0x108)],'config':c},k=this[C(0x124)][C(0x106)]({'pathParts':[C(0x10b),C(0xfa),C(0x10f),C(0x121),C(0x118),C(0x117)]}),l=this['fsi'][C(0x11d)](this[C(0x124)][C(0x122)]({'pathParts':[k],'config':c}));!l&&this[C(0x124)][C(0xfd)]({'srcPath':'i18n/i18n.js','destPath':k,'framework':C(0x126),'context':j,'config':c});const m=this[C(0x124)][C(0x106)]({'pathParts':[C(0x10b),C(0xfa),C(0x10f),C(0x121),'translations','locales',b[C(0x12e)]+C(0x125)]}),n=this['fsi'][C(0x122)]({'pathParts':[m],'config':c}),o=this[C(0x124)][C(0x11d)](n);!o?this['fsi']['template']({'srcPath':C(0x123),'destPath':m,'framework':C(0x126),'context':j,'config':c}):Log[C(0x10d)](C(0x12c)+n);const p=this[C(0x124)]['pathFromApp']({'pathParts':[C(0x10b),C(0xfa),C(0x10f),C(0x121),C(0x118),'locales',C(0xfb)+c['engines']['js']]}),q=this[C(0x124)][C(0x122)]({'pathParts':[p],'config':c}),r=this[C(0x124)][C(0x11d)](q);!r&&this[C(0x124)][C(0xfd)]({'srcPath':'i18n/index.js','destPath':p,'framework':C(0x126),'context':j,'config':c});const s=this['fsi'][C(0x11b)](a110e[C(0x12f)](p)[C(0x112)](),C(0x12b)+b[C(0x12e)])[0x0]&&!![];!s?this['fsi']['injectAtEndOfFile']({'filePath':p,'content':C(0x111)+b[C(0x12e)]+C(0x114)+b['lang']+'\x27;'}):Log[C(0x10d)](C(0x102)+p);}catch(w){Log[C(0x104)](w),process[C(0x103)](0x1);}});}catch(g){Log[B(0x104)](g),process[B(0x103)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111l=a111d;(function(a,b){const j=a111d,c=a();while(!![]){try{const d=parseInt(j(0x1cd))/0x1+-parseInt(j(0x1d0))/0x2+-parseInt(j(0x1c9))/0x3+parseInt(j(0x1c8))/0x4+-parseInt(j(0x1dc))/0x5*(-parseInt(j(0x1ca))/0x6)+-parseInt(j(0x1d8))/0x7+parseInt(j(0x1c4))/0x8*(parseInt(j(0x1da))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xca84f));const a111b=(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;};}()),a111a=a111b(this,function(){const k=a111d;return a111a[k(0x1d5)]()[k(0x1cc)](k(0x1d7))['toString']()[k(0x1cf)](a111a)[k(0x1cc)](k(0x1d7));});a111a();function a111c(){const m=['32LgHuzc','run','parse','stringify','4564844zwqQwB','2574072WXNGeR','6iFiVPp','slice','search','726661VsHPlr','--max-old-space-size=','constructor','954670atJYFo','dirname','floor','totalmem','url','toString','argv','(((.+)+)+)+$','2611595JEiFQy','camelizeKeys','1037457oNbJrR','env','1044995Gohfaw'];a111c=function(){return m;};return a111c();}import a111e from'minimist';import a111f from'os';import a111g from'path';import a111h from'humps';import a111i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a111l(0x1d4)]),__dirname=a111g[a111l(0x1d1)](__filename);global['MAKA_COMMAND_PATH']=__dirname;const total_memory=a111f[a111l(0x1d3)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a111l(0x1d2)](total_mem_in_mb),process['env']['TOOL_NODE_FLAGS']=a111l(0x1ce)+total_mem_in_mb,process[a111l(0x1db)]['BROWSERSLIST_IGNORE_OLD_DATA']='1';const argv=a111e(process[a111l(0x1d6)][a111l(0x1cb)](0x2)),args=argv['_'],deepCopyArgv=JSON[a111l(0x1c6)](JSON[a111l(0x1c7)](argv));delete deepCopyArgv['_'];const opts=a111h[a111l(0x1d9)](deepCopyArgv);function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x1c4;let f=c[d];return f;},a111d(a,b);}a111i[a111l(0x1c5)](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112k=a112d;(function(a,b){const h=a112d,c=a();while(!![]){try{const d=-parseInt(h(0x12d))/0x1+-parseInt(h(0x12c))/0x2+parseInt(h(0x117))/0x3+-parseInt(h(0x11f))/0x4*(-parseInt(h(0x131))/0x5)+-parseInt(h(0x127))/0x6*(-parseInt(h(0x11a))/0x7)+parseInt(h(0x111))/0x8+-parseInt(h(0x134))/0x9*(-parseInt(h(0x137))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0xf13b6));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a112d;if(c){const e=c[i(0x113)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const j=a112d;return a112a[j(0x119)]()[j(0x10a)](j(0x116))[j(0x119)]()[j(0x11b)](a112a)[j(0x10a)]('(((.+)+)+)+$');});a112a();import a112e from'path';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x105;let f=c[d];return f;},a112d(a,b);}import a112f from'os';import a112g from'fs';const homeDir=a112f['homedir']();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{UsageError}from'./error.js';function a112c(){const y=['usage','171suNOvg','.meteor','docker','438310FwYnLp','includes','Missing\x20required\x20options\x20','options','fsi','help','search','length','root','push','validateParams','error','concat','6610544FosfLA','keys','apply','platform','Invalid\x20options:\x20','(((.+)+)+)+$','238590vTiBya','forEach','toString','304430ttaSRJ','constructor','NIE','findProjectDirectory','examples','964nltCyO','validateMeteorInstall','dir','_handler','win32','aliases','name','description','222qXgvSc','shortDesc','parent','Local','match','1690792FUgGTy','1892655WiBihV','join','AppData','existsSync','7850wwGlJE','cwd'];a112c=function(){return y;};return a112c();}export class Tool{[a112k(0x136)];[a112k(0x108)];[a112k(0x107)];[a112k(0x125)];[a112k(0x129)];[a112k(0x122)];constructor(){const l=a112k;this['docker']=new Docker(),this[l(0x108)]=new FSI();}[a112k(0x12b)](a){const m=a112k,b=[this['name']]['concat'](this[m(0x107)]['aliases']||[]);return this[m(0x129)]&&b[m(0x10d)](this[m(0x129)]),b[m(0x105)](a);}['validateMakaProject'](){const n=a112k,a=this[n(0x108)][n(0x11d)]();return a!==![]?!![]:![];}[a112k(0x120)](){const o=a112k;let a=a112e[o(0x12e)](homeDir,o(0x135));const b=process[o(0x114)]===o(0x123);if(b){a=a112e['join'](homeDir,o(0x12f),o(0x12a),o(0x135));if(!a112g[o(0x130)](a))return![];}else{if(!a112g[o(0x130)](a))return![];}return!![];}[a112k(0x10e)](a,b,c){const p=a112k,{requiredOpts:requiredOpts=[],validArgs:d}=c;let {validOpts:validOpts=[]}=c;const e=Object[p(0x112)](b);d?.[p(0x10b)]>0x0&&a[p(0x118)](f=>{const q=p;if(!d['includes'](f)){Log[q(0x10f)]('Invalid\x20argument:\x20'+f);throw new UsageError();}});if(requiredOpts?.['length']>0x0){if(e[p(0x10b)]===0x0){Log['error'](p(0x106)+requiredOpts['join'](',\x20'));throw new UsageError();}requiredOpts[p(0x118)](f=>{const r=p;if(!e[r(0x105)](f)){Log[r(0x10f)]('Missing\x20required\x20option:\x20'+f);throw new UsageError();}});}validOpts=validOpts[p(0x110)](requiredOpts),validOpts?.[p(0x10b)]>0x0&&(validOpts[p(0x10d)](p(0x109)),validOpts['push']('resourceName'),validOpts[p(0x10d)](p(0x121)),validOpts[p(0x10d)](p(0x132)),validOpts['push'](p(0x10c)),validOpts['push']('config'),e[p(0x118)](f=>{const s=p;if(!validOpts[s(0x105)](f)){Log['error'](s(0x115)+f);throw new UsageError();}}));}[a112k(0x126)](){const t=a112k;return this['options']['description']||this['options'][t(0x128)]||'No\x20description\x20provided.';}['shortDesc'](){const u=a112k;return this[u(0x107)][u(0x128)]||u(0x11c);}[a112k(0x133)](){const v=a112k;return this[v(0x107)]['usage']||'No\x20usage\x20provided.';}[a112k(0x11e)](){const w=a112k;return this[w(0x107)][w(0x11e)]||[];}[a112k(0x124)](){const x=a112k;return this[x(0x107)][x(0x124)]||'None';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a113i=a113d;(function(a,b){const f=a113d,c=a();while(!![]){try{const d=-parseInt(f(0x1c6))/0x1*(-parseInt(f(0x1ca))/0x2)+-parseInt(f(0x1d2))/0x3*(-parseInt(f(0x1c7))/0x4)+parseInt(f(0x1d4))/0x5+parseInt(f(0x1cd))/0x6+parseInt(f(0x1d5))/0x7*(-parseInt(f(0x1c8))/0x8)+-parseInt(f(0x1cb))/0x9+-parseInt(f(0x1cc))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x81a5a));function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x1c5;let f=c[d];return f;},a113d(a,b);}const a113b=(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;};}()),a113a=a113b(this,function(){const g=a113d;return a113a['toString']()[g(0x1d1)](g(0x1c5))['toString']()['constructor'](a113a)[g(0x1d1)](g(0x1c5));});function a113c(){const l=['253430XwrrUc','5620680emXKJa','password','answer','input','search','1695657HbPpJx','confirm','3388955COgPjK','49efPbON','prompt','(((.+)+)+)+$','453382EnnrTZ','4zvzNAe','1196336IhdnYS','options','2piApZp','9270009xuNbCI'];a113c=function(){return l;};return a113c();}a113a();import a113e from'inquirer';export class Actions{static async['ask'](a,b){const h=a113d,{answer:c}=await a113e[h(0x1d6)]({'type':b?h(0x1ce):h(0x1d0),'name':h(0x1cf),'message':a});return c;}static async[a113i(0x1d3)](a,b=![]){const j=a113i,{answer:c}=await a113e[j(0x1d6)]({'type':'confirm','name':j(0x1cf),'message':a,'default':b});return c;}static async[a113i(0x1c9)](a){const k=a113i,b=await a113e[k(0x1d6)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114t=a114d;(function(a,b){const p=a114d,c=a();while(!![]){try{const d=parseInt(p(0xfa))/0x1*(-parseInt(p(0x150))/0x2)+-parseInt(p(0x144))/0x3+parseInt(p(0xf1))/0x4+-parseInt(p(0x14d))/0x5+parseInt(p(0x14a))/0x6*(-parseInt(p(0x140))/0x7)+parseInt(p(0x161))/0x8*(parseInt(p(0x105))/0x9)+parseInt(p(0x141))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x4b710));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a114d;if(c){const e=c[q(0x107)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const r=a114d;return a114a[r(0xf9)]()[r(0x133)](r(0x142))[r(0xf9)]()[r(0x136)](a114a)[r(0x133)](r(0x142));});a114a();import a114e from'fs';import a114f from'path';import{execSync}from'child_process';function a114c(){const T=['push','isFile','running','search','Key\x20Name:\x20[','Web\x20App','constructor','split','join','ec2createSG','/dev/sdh','writeFileSync','getProjectConfig','Created:\x20','ec2create','file://','71785BlGRLK','5945660wQkKyn','(((.+)+)+)+$','UserData','1349646oHudOC','deleteKeyPair','exit','log','ec2describeKeys','environment','60suIeDG','ID:\x20','deleteSecurityGroup','1733850DmDFvB','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','\x20ENV:\x20','38yUQyAU','VpcId','ec2rebootInstance','minCount','\x20NAME:\x20','error','Description:','Invalid\x20choice','chooseVPC','Instance\x20rebooted!','Instances','chmod\x20400\x20','Reservations','ec2describeInstances','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','.pem.txt','env','2876368YWvgMs','\x20CIDR:\x20','getConfigPath','forEach','tags','1595360EMGEpj','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','ecrCreateRepository','imageId','createKeyPair','ingressRule','Error\x20saving\x20pem\x20file,\x20aborting','privateIp','toString','7618MFOCVN','key','find','success','Name','**\x20Available\x20\x20VPCs\x20**','name','type','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','suggestion','userData','9lMVcze','instance','apply','send','\x20PRIV_IP:\x20','sgPorts','sgIds','getSecurityGroups','httpStatusCode','chooseInstance','notice','ask','length','description','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','terminated','cidr','_keys','createKeyPairEC2Key','\x20PUB_IP:\x20','GroupName','GroupId','vpcId','config','ssh.json','tcp','status','tag:created-by','readFileSync','KeyName','confirm','parse','pem','maka-cli','instanceId','createFile','\x20INSTANCE_ID:\x20','KeyMaterial','publicIp','stringify','sgId','fsi','\x20STATUS:\x20'];a114c=function(){return T;};return a114c();}import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';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 a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0xf1;let f=c[d];return f;},a114d(a,b);}export class AWS{['fsi'];constructor(){const s=a114d;this[s(0x12e)]=new FSI();}async[a114t(0xf3)](a){const u=a114t;try{const b={'repositoryName':a[u(0x100)]},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0x108)](c);return d;}catch(f){Log['error'](f);}}async[a114t(0x13e)](a){const v=a114t;try{const b={'BlockDeviceMappings':[{'DeviceName':v(0x13a),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[v(0xf4)],'InstanceType':a[v(0x101)],'KeyName':a[v(0xfb)],'MaxCount':a['maxCount'],'MinCount':a[v(0x153)],'SecurityGroupIds':a[v(0x10b)][v(0x137)](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':v(0x106),'Tags':a[v(0x165)]}]};a[v(0x104)]&&(b[v(0x143)]=v(0x13f)+a[v(0x104)]);const c=new RunInstancesCommand(b),d=await client[v(0x108)](c);return d;}catch(f){Log[v(0x155)](f);}}async['ec2terminateInstance'](a){const w=a114t;try{const b={'InstanceIds':[a[w(0x127)]]},c=new TerminateInstancesCommand(b),d=await client[w(0x108)](c);return d;}catch(f){return Log[w(0x155)](f),{};}}async[a114t(0x117)]({keyName:a,env:b}){const x=a114t,c=this[x(0x12e)][x(0x163)](b),d=a114f[x(0x138)](c,x(0x116),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[x(0x108)](g),i=h[x(0x12a)];if(i){await this[x(0x12e)][x(0x128)]({'filePath':d,'data':i}),execSync(x(0x15b)+d,{'stdio':'ignore'});const j=this['fsi'][x(0x131)](d);if(j)return Log[x(0xfd)]('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error(x(0xf7));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[x(0x155)](k),process[x(0x146)](0x1);}}async[a114t(0xf6)]({port:a,groupId:b}){const y=a114t,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':y(0x11e),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log['notice']('Port\x20'+a+'\x20opened!'),await client[y(0x108)](d);}async[a114t(0x139)](a){const z=a114t;try{a[z(0x112)]===''&&(a[z(0x112)]=await Actions[z(0x110)](z(0x156))||z(0x135));const b={'Description':a['description'],'GroupName':a[z(0x100)],'VpcId':a[z(0x11b)]},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(z(0x102));f&&a[z(0x10a)][z(0x164)](g=>{const A=z;this[A(0xf6)]({'port':parseInt(g),'groupId':f});}),Log[z(0xfd)](z(0x13d)+f+z(0x154)+a[z(0x100)]);}catch(g){return Log['error'](g),![];}return!![];}async[a114t(0x148)](a){const B=a114t,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client['send'](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.[B(0x164)]((h,i)=>{const C=B;h[C(0x122)]&&b[C(0x130)]({'id':i,'name':h[C(0x122)]});}),b[B(0x111)]>0x0&&b[B(0x164)](h=>{const D=B;h['name']===a?.[D(0x103)]?Log[D(0xfd)](D(0x14b)+h['id']+D(0x154)+h[D(0x100)]):Log[D(0x10f)](D(0x14b)+h['id']+D(0x154)+h[D(0x100)]);})):Log['error'](B(0x113));}catch(h){Log[B(0x155)](h);}return b;}async[a114t(0x145)](a){const E=a114t;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[E(0x108)](c);}catch(d){Log[E(0x155)](d),process[E(0x146)](0x1);}}async['ec2describeInstances'](){const F=a114t,a=[];try{const b={'Filters':[{'Name':F(0x120),'Values':[F(0x126)]}]},c=new DescribeInstancesCommand(b),d=await client[F(0x108)](c);d[F(0x15c)]?.[F(0x164)]((f,g)=>{const G=F;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[G(0x15a)][0x0],n=m?.[G(0xfc)](({Key:o})=>o===G(0x149));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[G(0xfe)],'name':l,'env':n?.['Value']});}}),a['length']>0x0?a[F(0x164)](f=>{const H=F,g=H(0x14b)+f['id']+H(0x154)+f[H(0x100)]+H(0x14f)+f[H(0x160)]+H(0x12f)+f[H(0x11f)]+H(0x129)+f[H(0x127)]+H(0x118)+f[H(0x12b)]+H(0x109)+f[H(0xf8)];if(f['status']===H(0x114))Log[H(0x155)](g);else f[H(0x11f)]===H(0x132)?Log[H(0xfd)](g):Log[H(0x10f)](g);}):Log[F(0x155)]('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');}catch(f){Log['error'](f);}return a;}async[a114t(0x152)](a){const I=a114t;try{const b={'InstanceIds':[a[I(0x127)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d['$metadata'][I(0x10d)]===0xc8&&Log[I(0xfd)](I(0x159)),d;}catch(f){Log[I(0x155)](f);}}async[a114t(0x158)](){const J=a114t;let a='';Log[J(0x10f)](J(0xff));const b=new DescribeVpcsCommand({}),c=await client[J(0x108)](b),{Vpcs:d}=c,e=[];d&&d[J(0x164)]((g,h)=>{const K=J;g[K(0x151)]&&g['CidrBlock']&&e[K(0x130)]({'id':h,'vpcId':g[K(0x151)],'cidr':g['CidrBlock']});});e['forEach'](function(g){const L=J;console[L(0x147)]('ID:\x20'+g['id']+'\x20VPCID:\x20'+g['vpcId']+L(0x162)+g[L(0x115)]);});const f=await Actions[J(0x110)]('Please\x20choose\x20a\x20VPC:\x20[0]\x20')||0x0;e[J(0x164)](function(g){const M=J;g['id']==f&&(a=g[M(0x11b)],Log[M(0xfd)](M(0x14e)+a+'\x0a'));});if(a==='')return Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';return a;}async[a114t(0x10e)](){const N=a114t,a=await this[N(0x15d)]();if(a['length']===0x0)return Log['error']('No\x20instances\x20found'),null;const b=await Actions[N(0x110)](N(0xf2));!b&&(Log['error'](N(0x157)),process[N(0x146)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a114t(0xf5)]({env:a}){const O=a114t,b=this[O(0x12e)][O(0x13c)](),{appName:c}=b,d=c+'-'+a,f=await Actions[O(0x110)](O(0x134)+d+']\x20')||d,{filePath:g}=await this[O(0x117)]({'keyName':f,'env':a});try{const h=await Actions[O(0x123)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a114e[O(0x121)](a114f[O(0x138)](O(0x11c),a,O(0x11d)),'utf8'),j=JSON[O(0x124)](i);j[O(0x125)]=a114f[O(0x138)](O(0x116),f+O(0x15f)),a114e[O(0x13b)](a114f[O(0x138)]('config',a,O(0x11d)),JSON[O(0x12c)](j,null,0x2));}catch(k){Log[O(0x155)](k),Log[O(0x155)](O(0x15e));}}catch(l){Log[O(0x155)](l),process[O(0x146)](0x1);}return{'keyName':f,'filePath':g};}async[a114t(0x10c)](a){const P=a114t,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[P(0x108)](d),{SecurityGroups:f}=e;f&&f[P(0x164)](function(i,j){const Q=P;i[Q(0x119)]&&i['GroupId']&&b[Q(0x130)]({'id':j,'name':i[Q(0x119)],'sgId':i[Q(0x11a)]});});let g='',h=0x0;return b[P(0x164)](function(i){const R=P;i[R(0x100)]===a&&(g=i[R(0x12d)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a114t(0x14c)](a){const S=a114t;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[S(0x108)](c);}catch(d){Log[S(0x155)](d),process['exit'](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a115c(){var i=['24GfbmwO','732277djnGCD','96QrpqwG','constructor','toString','(((.+)+)+)+$','210gKwVUT','121594IwTpzH','598952qRpZZt','search','28192ehOnxi','apply','28996NlkFDo','1040067wefoGK','3523lmolic','640HuRkaU'];a115c=function(){return i;};return a115c();}(function(a,b){var f=a115d,c=a();while(!![]){try{var d=parseInt(f(0x12b))/0x1+parseInt(f(0x127))/0x2*(-parseInt(f(0x12f))/0x3)+-parseInt(f(0x129))/0x4*(parseInt(f(0x123))/0x5)+parseInt(f(0x12d))/0x6*(parseInt(f(0x12e))/0x7)+parseInt(f(0x125))/0x8+-parseInt(f(0x12a))/0x9+-parseInt(f(0x12c))/0xa*(-parseInt(f(0x124))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x5158f));function a115d(a,b){var c=a115c();return a115d=function(d,e){d=d-0x123;var f=c[d];return f;},a115d(a,b);}var a115b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a115d;if(c){var e=c[g(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){var h=a115d;return a115a[h(0x131)]()[h(0x126)](h(0x132))[h(0x131)]()[h(0x130)](a115a)['search'](h(0x132));});a115a();export{};
|