@maka/maka-cli 4.7.9 → 4.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/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/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/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/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/project/gitignore +1 -0
- package/bundle/obf/src/templates/meteor/project/package.json +20 -0
- 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/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a115i=a115d;(function(a,b){const f=a115d,c=a();while(!![]){try{const d
|
|
1
|
+
const a115i=a115d;(function(a,b){const f=a115d,c=a();while(!![]){try{const d=-parseInt(f(0xac))/0x1*(-parseInt(f(0x9d))/0x2)+parseInt(f(0x9f))/0x3+-parseInt(f(0x9c))/0x4*(-parseInt(f(0xa1))/0x5)+-parseInt(f(0xa2))/0x6+-parseInt(f(0xb3))/0x7+parseInt(f(0xa9))/0x8*(-parseInt(f(0xa7))/0x9)+-parseInt(f(0xa5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x7d4e7));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a115d;if(c){const e=c[g(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const h=a115d;return a115a[h(0x9e)]()['search'](h(0xb0))['toString']()[h(0xa8)](a115a)[h(0xa0)]('(((.+)+)+)+$');});a115a();function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x9c;let f=c[d];return f;},a115d(a,b);}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a115i(0xb1),'aliases':['g'],'usage':a115i(0xa3),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a115i(0xa4),'examples':[a115i(0xab),a115i(0xa6),a115i(0xaa),a115i(0xae),'maka\x20g:route\x20todos/edit',a115i(0xaf),a115i(0xb2)]},function(){});export default MakaGen;function a115c(){const j=['2775339KCExDw','search','40CBJRNi','5990250VkEaUJ','maka\x20{generate,\x20g}:<generator>\x20<name>','Scaffold\x20various\x20parts\x20of\x20your\x20application','4830890UnVlKP','maka\x20g:scaffold\x20todos','207QLNtys','constructor','33112hXhpHf','maka\x20g:template\x20todos/todo_item','maka\x20generate:scaffold\x20todos','5Uyvsyv','apply','maka\x20g:package\x20package:name','maka\x20g:api\x20trucks','(((.+)+)+)+$','generate','maka\x20g:dbc\x20geoserver\x20--type=pgsql','1004521GctMpS','165728eQYYUu','390740nAFgxD','toString'];a115c=function(){return j;};return a115c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a116l=a116d;(function(a,b){const j=a116d,c=a();while(!![]){try{const d
|
|
1
|
+
function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x162;let f=c[d];return f;},a116d(a,b);}const a116l=a116d;(function(a,b){const j=a116d,c=a();while(!![]){try{const d=parseInt(j(0x167))/0x1*(parseInt(j(0x181))/0x2)+-parseInt(j(0x175))/0x3*(parseInt(j(0x16d))/0x4)+-parseInt(j(0x187))/0x5*(parseInt(j(0x183))/0x6)+parseInt(j(0x166))/0x7+-parseInt(j(0x174))/0x8*(-parseInt(j(0x17e))/0x9)+parseInt(j(0x17b))/0xa*(parseInt(j(0x170))/0xb)+-parseInt(j(0x176))/0xc*(parseInt(j(0x173))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x5dc92));const a116b=(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;};}()),a116a=a116b(this,function(){const k=a116d;return a116a['toString']()['search'](k(0x186))['toString']()[k(0x184)](a116a)['search'](k(0x186));});a116a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a116c(){const o=['3791mFYBtd','maka:check','methods','template','fsi','import\x20\x27./methods','944GSGsII','method','error','11lWpcWH','index.','create','8031647GGNtiI','427128bLieKP','2031AjOwXM','12Lvyvlj','resourceName','appPathPrefix','checkMeteorPackage','maka\x20g:method\x20todos','1874340zytGhl','dir','injectAtEndOfFile','45OMEQNt','startup','engines','346yKfaqo','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','318024IEeIRM','constructor','mdg:validated-method','(((.+)+)+)+$','5qTgEIR','maka\x20{generate,\x20g}:{method,\x20m}\x20name','method/method.js','imports','pathFromApp','731563xQxVbU'];a116c=function(){return o;};return a116c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a116l(0x172)]({'name':a116l(0x16e),'aliases':['m'],'usage':a116l(0x162),'checkWhere':!![],'shortDesc':a116l(0x182),'validOpts':['dir'],'examples':[a116l(0x17a)]},async function(a,b){const m=a116l;try{const c=this[m(0x16b)]['getMakaProjectConfig']();await this[m(0x16b)]['withValue'](c,async()=>{const n=m,d=paramCase(b[n(0x177)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[n(0x177)]),'noRename':!![]};let g='js';c[n(0x180)]['js']==='tsx'&&(g='ts');await this[n(0x16b)][n(0x179)]([n(0x168),'ddp-rate-limiter',n(0x185)],{'shouldInstall':!![]}),await this['fsi'][n(0x16a)]({'srcPath':n(0x163),'destPath':this[n(0x16b)][n(0x165)]({'pathParts':[n(0x164),n(0x17f),b[n(0x178)],n(0x169),b[n(0x17c)],d+'-rpc-method.'+g]}),'context':f,'config':c});const h=b[n(0x17c)]?'/'+b[n(0x17c)]+'/':'/',i=this[n(0x16b)]['pathFromApp']({'pathParts':[n(0x164),n(0x17f),b[n(0x178)],n(0x171)+c[n(0x180)]['js']]});await this[n(0x16b)][n(0x17d)]({'filePath':i,'content':n(0x16c)+h+d+'-rpc-method\x27;'});});}catch(d){Log[m(0x16f)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a117o=a117d;(function(a,b){const l=a117d,c=a();while(!![]){try{const d
|
|
1
|
+
function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x73;let f=c[d];return f;},a117d(a,b);}const a117o=a117d;(function(a,b){const l=a117d,c=a();while(!![]){try{const d=parseInt(l(0x82))/0x1+-parseInt(l(0x7e))/0x2*(-parseInt(l(0x90))/0x3)+-parseInt(l(0x92))/0x4+-parseInt(l(0x98))/0x5*(parseInt(l(0x7d))/0x6)+parseInt(l(0x8d))/0x7+-parseInt(l(0x9d))/0x8+parseInt(l(0x91))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x687cd));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a117d;if(c){const e=c[m(0x75)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const n=a117d;return a117a[n(0x85)]()[n(0x8b)](n(0x99))[n(0x85)]()['constructor'](a117a)[n(0x8b)](n(0x99));});a117a();import a117e from'path';function a117c(){const r=['4755024hgizbI','template','package/','apply','package.js','dir','ssr','theme','create','resourceName','relative','36ejuKAd','20842TUKQqU','features','.js','package/package.js','640459QXpymc','hasOwnProperty','template/template.js','toString','graphql','tests/client','fsi','component','pathFromApp','search','packages','2420614arwhCc','pathFromProject','maka\x20g:package\x20todos:package','39BtFOmZ','2501406vFbFVv','613820EwLilv','engines','client','noRename','getMakaProjectConfig','lib','186545CeIvzo','(((.+)+)+)+$','/client/','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','store'];a117c=function(){return r;};return a117c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a117o(0x7a)]({'name':'package','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a117o(0x9b),'validOpts':[a117o(0x77)],'examples':[a117o(0x8f)]},async function(a,b){const p=a117o,c=paramCase(b['resourceName']),d=this[p(0x88)][p(0x8a)]({'pathParts':[p(0x8c),b[p(0x77)],c]}),e=this[p(0x88)]['pathFromAppWithNoReWrite']({'pathParts':[p(0x8c),b[p(0x77)],c,p(0x76)]}),f=this[p(0x88)][p(0x96)]();await this['fsi']['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0x7b)]),'myPath':a117e[q(0x7c)](this[q(0x88)][q(0x8e)]({}),d),'cssCaseName':paramCase(b[q(0x7b)]),'className':pascalCase(b[q(0x7b)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0x93)][q(0x94)],'graphql':f[q(0x93)][q(0x86)],'ssr':f['engines'][q(0x78)],'isComponent':b[q(0x83)](q(0x89)),'isLayout':b[q(0x83)]('layout'),'isStore':b[q(0x83)](q(0x9c)),'features':f[q(0x7f)],'noRename':!![],'theme':f['engines'][q(0x79)]};await this[q(0x88)][q(0x73)]({'srcPath':q(0x81),'destPath':e,'context':g,'config':f}),g[q(0x95)]=![];const h=d+q(0x9a)+c+q(0x80);await this[q(0x88)][q(0x73)]({'srcPath':q(0x84),'destPath':h,'context':g,'config':f});const i=[q(0x97),'server',q(0x87),'tests/server'];for(const j of i){const k=d+'/'+j+'/'+c+q(0x80);await this['fsi'][q(0x73)]({'srcPath':q(0x74)+j+'/package.js','destPath':k,'context':g,'config':f});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a118m=a118d;
|
|
1
|
+
const a118m=a118d;(function(a,b){const j=a118d,c=a();while(!![]){try{const d=parseInt(j(0x11d))/0x1*(-parseInt(j(0x114))/0x2)+-parseInt(j(0x104))/0x3+-parseInt(j(0x131))/0x4*(-parseInt(j(0x101))/0x5)+-parseInt(j(0x11f))/0x6*(parseInt(j(0xf6))/0x7)+parseInt(j(0x12d))/0x8*(-parseInt(j(0xef))/0x9)+-parseInt(j(0x109))/0xa+parseInt(j(0x10b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x8b24a));const a118b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a118d;if(c){const e=c[k(0xeb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){const l=a118d;return a118a['toString']()[l(0xf2)](l(0xf3))[l(0x102)]()[l(0x10d)](a118a)[l(0xf2)](l(0xf3));});a118a();import a118e from'path';import{Generator}from'../generator.js';function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0xeb;let f=c[d];return f;},a118d(a,b);}import{Log}from'../tools/log/log.class.js';function a118c(){const p=['template/template.css','apply','theme','layouts','template/template.html','333UmljAZ','pathFromApp','getMakaProjectConfig','search','(((.+)+)+)+$','fileName','css','434LjrJCL','root','test/test.js','pathFromProject','maka\x20g:page\x20todos/todos-item','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','hook/hook.js','client','ramda','className','test','9115HmLBVC','toString','true','1875453dGpkDy','/imports/ui/','\x27;\x0a','string','engines','9600430SpizPf','.html','47245693lqlrWg','baseDir','constructor','checkNpmPackage','import\x20\x27./','features','create','withHooks','injectAtBeginningOfFile','6910kZfOHT','route','.app-tests.js','assign','processAndRunGenerator','installNpmPackage','store','/imports/ui/pages','withTranslations','281gcwKVV','page','45516TfglcT','.css','react','injectTemplateModule','components','fsi','resourceName','hooks','html','template','api','setTemplate','component/component.js','Generate\x20a\x20page.','152264dfEXPw','hasOwnProperty','layout','warn','12rgQmfe','Updating\x20npm\x20packages\x20...','.js','dir','vanilla','ssr'];a118c=function(){return p;};return a118c();}import a118f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a118m(0x111)]({'name':a118m(0x11e),'aliases':aliases,'usage':a118m(0xfb),'shortDesc':a118m(0x12c),'validOpts':[{'name':a118m(0x10c),'values':[a118m(0x126),a118m(0x123),'pages',a118m(0xed)]},{'name':'withHook','boolFlag':!![]}],'examples':[a118m(0xfa)]},async function(a,b){const n=a118m,c=b[n(0x10c)]?n(0x105)+b['baseDir']:n(0x11b),d=this['fsi'][n(0xf0)](b),e=this['fsi'][n(0xf0)]({'pathParts':[c,b['dir'],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),f=this['fsi'][n(0xf1)]();let g='';return await this[n(0x124)]['withValue'](f,async()=>{const o=n;typeof f['template']['html']==='string'&&(f[o(0x128)]['html']=f[o(0x128)][o(0x127)]===o(0x103)?!![]:![],this[o(0x124)]['setTemplate'](o(0x127),f['template']['html']));typeof f[o(0x128)]['test']===o(0x107)&&(f[o(0x128)][o(0x100)]=f['template'][o(0x100)]===o(0x103)?!![]:![],this['fsi'][o(0x12a)](o(0x100),f['template']['test']));typeof f[o(0x128)]['css']===o(0x107)&&(f[o(0x128)]['css']=f[o(0x128)][o(0xf5)]===o(0x103)?!![]:![],this[o(0x124)][o(0x12a)](o(0xf5),f[o(0x128)][o(0xf5)]));typeof f[o(0x128)]['js']==='string'&&(f[o(0x128)]['js']=f['template']['js']==='true'?!![]:![],this['fsi']['setTemplate']('js',f[o(0x128)]['js']));!f[o(0x110)]&&(f['features']={});!b[o(0xf7)]&&!this[o(0x124)][o(0x10e)](o(0xfe))&&(Log[o(0x130)](o(0x132)),this['fsi'][o(0x119)](o(0xfe),{'cwd':d}));const h={'name':pascalCase(b['resourceName']),'myPath':a118e['relative'](this['fsi'][o(0xf9)]({}),e),'cssCaseName':paramCase(b[o(0x125)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[o(0x125)]),'fileName':paramCase(b[o(0x125)]),'graphql':f[o(0x108)]['graphql'],'features':f['features'],'client':f[o(0x108)]['client'],'api':f[o(0x108)][o(0x129)],'ssr':f['engines'][o(0x136)],'isStore':b[o(0x12e)](o(0x11a)),'isComponent':b[o(0x12e)]('component'),'isLayout':b[o(0x12e)](o(0x12f)),'withTranslations':f[o(0x110)][o(0x11c)],'test':f[o(0x108)][o(0x100)],'theme':f[o(0x108)][o(0xec)]};f[o(0x128)]['html']&&await this[o(0x124)]['template']({'srcPath':o(0xee),'destPath':e+o(0x10a),'context':h,'config':f});f[o(0x110)]?.[o(0x112)]||b['withHook']?await this[o(0x124)][o(0x128)]({'srcPath':o(0xfc),'destPath':e+o(0x133),'framework':o(0x121),'context':h,'config':f}):await this['fsi'][o(0x128)]({'srcPath':o(0x12b),'destPath':e+o(0x133),'framework':o(0x121),'context':h,'config':f});f[o(0x108)][o(0x100)]!=='none'&&await this[o(0x124)]['template']({'srcPath':o(0xf8),'destPath':e+o(0x116),'framework':'react','context':h,'config':f});f[o(0x128)][o(0xf5)]&&await this['fsi']['template']({'srcPath':o(0x137),'destPath':e+o(0x120),'context':Object[o(0x117)]({},h,{'className':paramCase(b['resourceName'])}),'config':f});f[o(0x108)][o(0xfd)]!==o(0x121)&&f[o(0x108)][o(0xfd)]!==o(0x135)?(f[o(0x128)]['css']&&await this[o(0x124)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[o(0x108)]['js'],'content':o(0x10f)+h[o(0xf4)]+'.'+f[o(0x108)]['html']+o(0x106)+o(0x10f)+h[o(0xf4)]+'.'+f[o(0x108)]['css']+'\x27;'}),!f[o(0x128)]['css']&&await this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[o(0x108)]['js'],'content':o(0x10f)+h[o(0xf4)]+'.'+f['engines'][o(0x127)]+'\x27;'})):f[o(0x128)][o(0xf5)]&&await this[o(0x124)][o(0x113)]({'filePath':e+'.'+f[o(0x108)]['js'],'content':'import\x20\x27./'+h[o(0xf4)]+'.'+f['engines'][o(0xf5)]+'\x27;'});const i=b[o(0x134)]?'/'+b[o(0x134)]+'/':'/';g=''+c+i+h[o(0xf4)]+'/'+h[o(0xf4)],await this[o(0x124)][o(0x122)](h[o(0xff)],f,g),!b[o(0xf7)]&&await a118f[o(0x118)](o(0x115),[i+h[o(0xff)]],b);}),g+'.'+f['engines']['js'];});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a119c(){const n=['
|
|
1
|
+
const a119k=a119d;function a119c(){const n=['13535620zaQljd','create','publish/publish.','resourceName','6gnXatg','546830xEAMuO','(((.+)+)+)+$','apply','fsi','tsx','20639880iOaMoE','maka\x20g:publish\x20todos','engines','publish','2571348lCvUYp','380326yvVVyz','getMakaProjectConfig','toString','injectAtEndOfFile','1492fTBYEb','11950MWhuVC','13764872jKOWzH','search'];a119c=function(){return n;};return a119c();}(function(a,b){const h=a119d,c=a();while(!![]){try{const d=-parseInt(h(0x14d))/0x1+parseInt(h(0x140))/0x2+parseInt(h(0x13f))/0x3+parseInt(h(0x144))/0x4*(-parseInt(h(0x145))/0x5)+-parseInt(h(0x14c))/0x6*(-parseInt(h(0x148))/0x7)+parseInt(h(0x146))/0x8+-parseInt(h(0x152))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0xeccc8));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a119d;if(c){const e=c[i(0x14f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const j=a119d;return a119a['toString']()[j(0x147)](j(0x14e))[j(0x142)]()['constructor'](a119a)[j(0x147)](j(0x14e));});a119a();function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x13d;let f=c[d];return f;},a119d(a,b);}import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a119k(0x149)]({'name':a119k(0x13e),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':[a119k(0x153)]},async function(a,b){const l=a119k,c=this[l(0x150)][l(0x141)]();await this[l(0x150)]['withValue'](c,async()=>{const m=l,d={'name':b[m(0x14b)],'collection':paramCase(b[m(0x14b)]),'noRename':!![]};let e='js';c[m(0x13d)]['js']===m(0x151)&&(e='ts');const f=this[m(0x150)]['rewriteDestinationPathForEngine']({'pathParts':['server/publish.'+c['engines']['js']]}),g=this[m(0x150)]['templateContent']({'srcPath':m(0x14a)+e,'context':d,'config':c});await this[m(0x150)][m(0x143)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a120B=a120d;(function(a,b){const y=a120d,c=a();while(!![]){try{const d=-parseInt(y(
|
|
1
|
+
const a120B=a120d;(function(a,b){const y=a120d,c=a();while(!![]){try{const d=-parseInt(y(0xbf))/0x1*(parseInt(y(0xaf))/0x2)+-parseInt(y(0x96))/0x3*(-parseInt(y(0xcc))/0x4)+parseInt(y(0xc7))/0x5+-parseInt(y(0xd8))/0x6*(-parseInt(y(0x95))/0x7)+-parseInt(y(0xbd))/0x8*(-parseInt(y(0x9c))/0x9)+-parseInt(y(0xc6))/0xa+-parseInt(y(0x97))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x3426f));function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x86;let f=c[d];return f;},a120d(a,b);}const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a120d;if(c){const e=c[z(0xb6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const A=a120d;return a120a[A(0xbb)]()['search'](A(0xd3))[A(0xbb)]()[A(0xb7)](a120a)['search'](A(0xd3));});a120a();import a120e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a120B(0xc3)]({'name':a120B(0xd9),'aliases':aliases,'validOpts':[a120B(0xc1),a120B(0xb8),a120B(0xb4),a120B(0xce),a120B(0x9a),a120B(0x91),'withHook',a120B(0xa0),a120B(0xb0)],'usage':a120B(0xc4),'shortDesc':a120B(0x9e),'examples':['maka\x20g:route\x20todosIndex\x20todos',a120B(0xa5),a120B(0xab),a120B(0x9b),a120B(0xae)]},async function(a,b){const C=a120B;try{const c=[C(0xa9),C(0xc5),C(0xb5),C(0x94)];if(b[C(0xb0)]&&!c[C(0xa8)](b[C(0xb0)])){Log[C(0xc2)](C(0x8b)+b[C(0xb0)]+'\x22'),Log['error'](C(0x9d)+c[C(0x86)](',\x20'));throw new UsageError();}const d=this['fsi'][C(0x8c)]();await this[C(0x92)]['withValue'](d,async()=>{const D=C,f=b[D(0xc1)]??![];let g=paramCase(b[D(0xca)]),h='/'+g;a[D(0xb3)]>0x1&&(h='/'+a[D(0xad)](function(n){return n!=='/';})[D(0x86)]('/')[D(0x87)]());g=camelCase(g);b['layout']&&(b[D(0xb8)]=camelCase(b[D(0xb8)]));const i=b['baseDir']?D(0xbc)+b[D(0xb0)]:D(0xcb),j=a120e[D(0x86)](i,b[D(0xa1)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0xb8)]||'MasterLayout','templatePath':j,'templateName':pascalCase(g),'client':d[D(0xba)][D(0xcf)],'newForm':![],'withTranslations':d['features']['withTranslations']};f&&(k[D(0xb8)]='PrivateLayout');let l,m;if(d[D(0xba)][D(0xcf)]==='react'){if(d[D(0xba)][D(0xa3)]===D(0xb2)){const r=this['fsi']['pathFromApp']({'pathParts':[D(0xd5),D(0xd4),D(0xa4),D(0xc9)]});l=this[D(0x92)][D(0x89)]({'pathParts':[r],'config':d});}else{const s=this[D(0x92)][D(0xd0)]({'pathParts':[D(0xd5),D(0xd4),D(0xcf),D(0xc9)]});l=this[D(0x92)][D(0x89)]({'pathParts':[s],'config':d});}const n=await this[D(0x92)][D(0x90)](l,g);if(n){Log[D(0xaa)](D(0x99)+g+D(0xd7));return;}else{const t=this[D(0x92)][D(0x93)](l);Log[D(0xbe)]('Adding\x20route\x20'+g+D(0xa7)+l['replace'](t,''));}const o=this[D(0x92)][D(0xac)](l)[D(0xb1)]((u,v)=>{const E=D;return u['includes'](E(0x8a))?v+0x1:null;})[D(0xad)](u=>u!==null);let p=this[D(0x92)][D(0xac)](l)[D(0xb1)]((u,v)=>{const F=D;return u[F(0xa8)](F(0x8f))?v+0x1:null;})['filter'](u=>u!==null),q=this[D(0x92)][D(0xac)](l)[D(0xb1)]((u,v)=>{const G=D;return u['includes'](G(0xd6))?v+0x1:null;})[D(0xad)](u=>u!==null);p[D(0xb3)]>0x0&&q[D(0xb3)]>0x0&&(k[D(0xb9)]=!![]);m=this['fsi'][D(0xa2)]({'srcPath':D(0xc0),'framework':D(0x8e),'context':k,'config':d});if(p[D(0xb3)]>0x0||q[D(0xb3)]>0x0){this['fsi'][D(0xc8)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q['length']>0x0)q=this[D(0x92)][D(0xac)](l)[D(0xb1)]((u,v)=>{const H=D;return u[H(0xa8)](H(0xd6))?v+0x1:null;})[D(0xad)](u=>u!==null),this[D(0x92)][D(0xc8)]({'filePath':l,'content':'\x09{'+k[D(0xa6)]+'}','lineNumber':q[0x0]});else p[D(0xb3)]>0x0?(p=this[D(0x92)][D(0xac)](l)[D(0xb1)]((u,v)=>{const I=D;return u[I(0xa8)](I(0x8f))?v+0x1:null;})[D(0xad)](u=>u!==null),this[D(0x92)][D(0xc8)]({'filePath':l,'content':'\x09{'+k[D(0xa6)]+'}','lineNumber':p[0x0]})):Log[D(0xaa)](D(0x8d)+l);}else{const u=this[D(0x92)][D(0xac)](l)[D(0xb1)](x=>{const J=D;return x[J(0xa8)](J(0x98));}),v=u['indexOf'](!![])>-0x1,w=v?D(0xcd):D(0xd1);await this[D(0x92)][D(0x9f)]({'filePath':l,'content':'\x0a\x09\x09'+m+D(0xd2),'begin':D(0x88),'end':w});}}else{if(d[D(0xba)][D(0xcf)]==='vanilla'){const x=this[D(0x92)]['pathFromApp']({'pathParts':[D(0xd5),D(0xd4),'client',D(0xc9)]});l=this[D(0x92)][D(0x89)]({'pathParts':[x],'config':d}),m=this['fsi']['templateContent']({'srcPath':D(0xc0),'context':k}),await this[D(0x92)]['injectAtEndOfFile']({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});function a120c(){const K=['lib','maka\x20g:route\x20todosEdit\x20todos/:id/edit','templateName','\x20to\x20','includes','hooks','warn','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','readFileLines','filter','maka\x20g:route\x20pages/about','4086xNMMYQ','baseDir','map','true','length','only','pages','apply','constructor','layout','newForm','engines','toString','/imports/ui/','16LAlvXo','info','47bqMKsp','route/route.js','private','error','create','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','components','2385100EVRYOI','1249385fiBmcd','injectAfterLineNumber','routes.js','resourceName','/imports/ui/pages','512uYFGbl','<Route','cwd','client','pathFromApp','</Router>','\x0a\x09\x09','(((.+)+)+)+$','startup','imports','const\x20privateRoutes\x20=\x20(<>','\x20already\x20exists.\x20\x20Skipping.','108048oRCaUG','route','join','toLowerCase','<Router','rewriteDestinationPathForEngine','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','Invalid\x20directory\x20option\x20\x22','getMakaProjectConfig','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','react','const\x20publicRoutes\x20=\x20(<>','fileContainsString','root','fsi','pathFromProject','layouts','35zAfUkO','303euZkyQ','1668183gCDssK','\x22*\x22','Route\x20','config','maka\x20g:route\x20pages/lists/listIndex\x20lists','1561293uyFsrH','Valid\x20options\x20are:\x20','Scaffolding\x20for\x20a\x20Route.','injectIntoFile','url','dir','templateContent','ssr'];a120c=function(){return K;};return a120c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a121m=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d
|
|
1
|
+
const a121m=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=-parseInt(j(0x1f2))/0x1*(parseInt(j(0x1f4))/0x2)+parseInt(j(0x1ef))/0x3*(-parseInt(j(0x1e0))/0x4)+-parseInt(j(0x1ee))/0x5+parseInt(j(0x1de))/0x6*(parseInt(j(0x1e3))/0x7)+parseInt(j(0x1e9))/0x8*(parseInt(j(0x1ed))/0x9)+-parseInt(j(0x1e8))/0xa+parseInt(j(0x1f1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x2eec9));function a121c(){const p=['service','resourceName','pathFromApp','apply','logger','imports','startup','template','svc','error','service/logger/logger.js','winston','fsi','505530JVnijf','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','4764AfZeAA','lib','maka\x20g:svc\x20service-logger\x20--type=logger','21DIjNDH','type','constructor','maka\x20{generate,\x20g}:{service}\x20<resource-name>','getMakaProjectConfig','3311830vvFPxo','30064ylrYXq','withValue','search','engines','549FEBNDu','61940LPMdXF','699ATvObI','create','5001403ydLNrV','1bIZOlX','(((.+)+)+)+$','246802LwZepJ'];a121c=function(){return p;};return a121c();}const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a121d;if(c){const e=c[k(0x1f8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const l=a121d;return a121a['toString']()['search'](l(0x1f3))['toString']()[l(0x1e5)](a121a)[l(0x1eb)](l(0x1f3));});a121a();function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x1dc;let f=c[d];return f;},a121d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a121m(0x1f0)]({'name':a121m(0x1f5),'aliases':[a121m(0x1fd)],'usage':a121m(0x1e6),'shortDesc':a121m(0x1df),'requiredOpts':[{'name':a121m(0x1e4),'values':[a121m(0x1f9)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a121m(0x1e2)]},async function(a,b){const n=a121m;try{const c=this[n(0x1dd)][n(0x1e7)]();await this['fsi'][n(0x1ea)](c,async()=>{const o=n,d=this['fsi'][o(0x1f7)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b[o(0x1f6)]),'fileName':f,'camelCase':camelCase(b[o(0x1f6)]),'type':b[o(0x1e4)],'engine':c[o(0x1ec)]['js'],'noRename':!![]};let h='js';c[o(0x1ec)]['js']==='tsx'&&(h='ts');if(b[o(0x1e4)]===o(0x1f9)){!this[o(0x1dd)]['checkNpmPackage'](o(0x1dc))&&await this['fsi']['installNpmPackage']('winston\x20setimmediate',{'cwd':d,'msg':'Installing\x20winston'});const i=this[o(0x1dd)]['pathFromApp']({'pathParts':[o(0x1fa),o(0x1fb),o(0x1e1),'services',f+'.'+h]});await this['fsi'][o(0x1fc)]({'srcPath':o(0x1ff),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x1fe)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a122d,c=a();while(!![]){try{var d
|
|
1
|
+
function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0x1e1;var f=c[d];return f;},a122d(a,b);}function a122c(){var h=['10fMyQfB','27411zbNcLo','15328cGiZfI','toString','10271525eTrzSH','18243948uDMQyv','2674kdXWKc','search','18YhtHab','12393477rotLrQ','2647922SSmpZh','1jDVbCd','232965FGxaMe','(((.+)+)+)+$','constructor','244RxhGgo'];a122c=function(){return h;};return a122c();}(function(a,b){var f=a122d,c=a();while(!![]){try{var d=parseInt(f(0x1e8))/0x1*(parseInt(f(0x1e7))/0x2)+parseInt(f(0x1ee))/0x3*(-parseInt(f(0x1ec))/0x4)+parseInt(f(0x1e9))/0x5*(parseInt(f(0x1e5))/0x6)+-parseInt(f(0x1e3))/0x7*(-parseInt(f(0x1ef))/0x8)+-parseInt(f(0x1e6))/0x9*(parseInt(f(0x1ed))/0xa)+-parseInt(f(0x1e1))/0xb+parseInt(f(0x1e2))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0xcefb4));var a122b=(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;};}()),a122a=a122b(this,function(){var g=a122d;return a122a[g(0x1f0)]()[g(0x1e4)](g(0x1ea))['toString']()[g(0x1eb)](a122a)[g(0x1e4)](g(0x1ea));});a122a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a123l=a123d;(function(a,b){const i=a123d,c=a();while(!![]){try{const d=parseInt(i(
|
|
1
|
+
const a123l=a123d;function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a123d(a,b);}(function(a,b){const i=a123d,c=a();while(!![]){try{const d=parseInt(i(0x1c5))/0x1+parseInt(i(0x1c2))/0x2*(parseInt(i(0x1c0))/0x3)+parseInt(i(0x1c4))/0x4+-parseInt(i(0x1b4))/0x5*(parseInt(i(0x1c8))/0x6)+-parseInt(i(0x1c3))/0x7*(-parseInt(i(0x1bf))/0x8)+-parseInt(i(0x1ba))/0x9*(parseInt(i(0x1ad))/0xa)+parseInt(i(0x1b7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0xc3ffc));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a123d;if(c){const e=c[j(0x1ae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const k=a123d;return a123a['toString']()['search'](k(0x1ac))[k(0x1af)]()[k(0x1c7)](a123a)['search'](k(0x1ac));});a123a();import{Generator}from'../../generator.js';function a123c(){const o=['create','maka\x20{generate,\x20g}:sslconfig','4240951BbMOXG','maka\x20g:sslconfig\x20--env\x20dev','service','14004621HnJjhO','Generate\x20a\x20new\x20openssl\x20config\x20file','join','openssl.conf','fsi','304TmRSnF','21rjoWHv','_keys','408178hyiruR','158424HtyolO','1992900DOHkjE','242251oZcXZX','openssl/openssl.conf','constructor','30tCYJUL','env','appName','(((.+)+)+)+$','10wKOUgw','apply','toString','getAppConfigPath','template','getMakaProjectConfig','withValue','1055775aIGGzj'];a123c=function(){return o;};return a123c();}import{Log}from'../../tools/log/log.class.js';import a123e from'path';Generator[a123l(0x1b5)]({'name':'sslconfig','usage':a123l(0x1b6),'shortDesc':a123l(0x1bb),'noNeedResource':!![],'requiredOpts':['env'],'examples':[a123l(0x1b8)],'validOpts':[]},async function(a,b){const m=a123l;try{const c=await this[m(0x1be)][m(0x1b2)](),d=await this[m(0x1be)]['getGlobalConfig'](),f=this['fsi'][m(0x1b0)](b[m(0x1aa)]),g=a123e[m(0x1bc)](f,m(0x1c1),m(0x1bd));await this[m(0x1be)][m(0x1b3)](c,async()=>{const n=m,h={'app':d[n(0x1ab)],'noRename':!![]};await this[n(0x1be)][n(0x1b1)]({'srcPath':n(0x1c6),'destPath':g,'framework':n(0x1b9),'context':h,'config':c});});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a124A=a124d;(function(a,b){const x=a124d,c=a();while(!![]){try{const d=parseInt(x(0x15c))/0x1*(parseInt(x(0x16a))/0x2)+parseInt(x(0x189))/0x3+parseInt(x(0x197))/0x4*(parseInt(x(0x15b))/0x5)+-parseInt(x(0x171))/0x6+-parseInt(x(0x193))/0x7*(-parseInt(x(0x18f))/0x8)+parseInt(x(0x164))/0x9+parseInt(x(0x179))/0xa*(-parseInt(x(0x176))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x38a7a));const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a124d;if(c){const e=c[y(0x16b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const z=a124d;return a124a[z(0x16f)]()[z(0x185)]('(((.+)+)+)+$')[z(0x16f)]()[z(0x175)](a124a)[z(0x185)](z(0x173));});a124a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x159;let f=c[d];return f;},a124d(a,b);}import a124e from'fs';Generator['create']({'name':a124A(0x192),'usage':'maka\x20{generate,\x20g}:translation','aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a124A(0x17b),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a124A(0x17c),'description':a124A(0x181),'examples':['maka\x20g:translation\x20--lang=en\x20(default)','maka\x20g:translation\x20--lang=fr','maka\x20g:translation\x20--lang=de'],'validOpts':[]},async function(a,b){const B=a124A;try{const c=this[B(0x17a)][B(0x167)](),d=this['fsi'][B(0x187)](),f=this['fsi'][B(0x186)]();await this[B(0x17a)]['withValue'](c,()=>{const C=B;try{!b[C(0x17b)]&&(b[C(0x17b)]='en');!b['root']&&!this[C(0x17a)][C(0x177)](C(0x182))&&(Log[C(0x195)](C(0x18d)),this[C(0x17a)]['installNpmPackage'](C(0x18e),{'cwd':f}),this['fsi'][C(0x190)](C(0x162),!![]));const g=this[C(0x17a)][C(0x15a)]({'pathParts':[C(0x194),C(0x159),C(0x178),C(0x166)]}),h=this['fsi'][C(0x15d)]({'pathParts':[g],'config':c}),i=this[C(0x17a)]['grep'](a124e['readFileSync'](h)[C(0x16f)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];if(c[C(0x16e)][C(0x172)]===C(0x169)){!i&&this[C(0x17a)][C(0x18c)]({'filePath':h,'content':C(0x15f)});const t=this[C(0x17a)][C(0x15a)]({'pathParts':[C(0x194),C(0x159),'server',C(0x166)]}),u=this[C(0x17a)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this['fsi'][C(0x18b)](a124e['readFileSync'](u)[C(0x16f)](),C(0x183))[0x0]&&!![];!v&&this[C(0x17a)][C(0x18c)]({'filePath':u,'content':C(0x15f)});}else!i&&this[C(0x17a)][C(0x18c)]({'filePath':h,'content':C(0x15f)});const j={'app':d['appName'],'config':c},k=this[C(0x17a)][C(0x15a)]({'pathParts':['imports','startup',C(0x165),C(0x17f),C(0x163),C(0x191)]}),l=this[C(0x17a)]['isFile'](this['fsi'][C(0x15d)]({'pathParts':[k],'config':c}));!l&&this[C(0x17a)][C(0x16c)]({'srcPath':C(0x161),'destPath':k,'framework':C(0x188),'context':j,'config':c});const m=this[C(0x17a)][C(0x15a)]({'pathParts':[C(0x194),C(0x159),'lib',C(0x17f),'translations',C(0x16d),b[C(0x17b)]+C(0x160)]}),n=this[C(0x17a)][C(0x15d)]({'pathParts':[m],'config':c}),o=this[C(0x17a)][C(0x168)](n);!o?this[C(0x17a)][C(0x16c)]({'srcPath':C(0x180),'destPath':m,'framework':C(0x188),'context':j,'config':c}):Log[C(0x195)](C(0x17e)+n);const p=this['fsi'][C(0x15a)]({'pathParts':[C(0x194),C(0x159),C(0x165),C(0x17f),C(0x163),'locales',C(0x17d)+c[C(0x16e)]['js']]}),q=this[C(0x17a)][C(0x15d)]({'pathParts':[p],'config':c}),r=this['fsi'][C(0x168)](q);!r&&this[C(0x17a)]['template']({'srcPath':'i18n/index.js','destPath':p,'framework':'service','context':j,'config':c});const s=this['fsi'][C(0x18b)](a124e['readFileSync'](p)[C(0x16f)](),C(0x184)+b[C(0x17b)])[0x0]&&!![];!s?this[C(0x17a)][C(0x15e)]({'filePath':p,'content':C(0x18a)+b[C(0x17b)]+'\x20}\x20from\x20\x27./'+b[C(0x17b)]+'\x27;'}):Log[C(0x195)](C(0x174)+p);}catch(w){Log[C(0x170)](w),process['exit'](0x1);}});}catch(g){Log['error'](g),process[B(0x196)](0x1);}});function a124c(){const D=['index.','Locale\x20already\x20defined:\x20','services','i18n/locales.js','\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','i18next','import\x20\x27../lib/services/translations/i18n\x27;','default\x20as\x20','search','findAppDirectory','getGlobalConfig','service','491790xuQzVm','export\x20{\x20default\x20as\x20','grep','injectAtBeginningOfFile','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','i18next\x20i18next-browser-languagedetector\x20react-i18next','997856HSNOyn','setProjectConfig','i18n.js','translation','14TVEcmy','imports','warn','exit','376CUsgmV','startup','pathFromApp','15700hnHqRM','591rqEBSq','rewriteDestinationPathForEngine','injectAtEndOfFile','import\x20\x27../lib/services/translations/i18n\x27;\x0a','.js','i18n/i18n.js','features.withTranslations','translations','1266660OpZpEr','lib','index.js','getMakaProjectConfig','isFile','true','826qAkOKt','apply','template','locales','engines','toString','error','1238286ziYWCi','ssr','(((.+)+)+)+$','Locale\x20already\x20exported:\x20','constructor','3602159VXTkhg','checkNpmPackage','client','20AQvIHF','fsi','lang','Generate\x20a\x20new\x20locale\x20translation'];a124c=function(){return D;};return a124c();}
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a125m=a125d;(function(a,b){const j=a125d,c=a();while(!![]){try{const d=parseInt(j(
|
|
1
|
+
const a125m=a125d;function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0xc8;let f=c[d];return f;},a125d(a,b);}(function(a,b){const j=a125d,c=a();while(!![]){try{const d=parseInt(j(0xcc))/0x1+parseInt(j(0xce))/0x2+-parseInt(j(0xd8))/0x3+-parseInt(j(0xe2))/0x4*(parseInt(j(0xd6))/0x5)+parseInt(j(0xdf))/0x6*(parseInt(j(0xcb))/0x7)+parseInt(j(0xca))/0x8*(parseInt(j(0xc9))/0x9)+-parseInt(j(0xd1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0xbc53e));const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a125d;if(c){const e=c[k(0xd5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const l=a125d;return a125a['toString']()['search'](l(0xda))[l(0xc8)]()[l(0xd0)](a125a)[l(0xdc)]('(((.+)+)+)+$');});a125a();import a125e from'minimist';import a125f from'os';import a125g from'path';import a125h from'humps';import a125i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a125m(0xd4)]),__dirname=a125g['dirname'](__filename);global['MAKA_COMMAND_PATH']=__dirname;const total_memory=a125f[a125m(0xe1)](),total_mem_in_kb=total_memory/0x400;function a125c(){const n=['2328758WTyZQr','camelizeKeys','constructor','18746690omFImG','argv','floor','url','apply','1325brYMSM','BROWSERSLIST_IGNORE_OLD_DATA','2376273SGQfrn','NODE_NO_WARNINGS','(((.+)+)+)+$','slice','search','--max-old-space-size=','stringify','18HuDbXf','parse','totalmem','13232fTGEmg','toString','1722951uhZhvM','40ejsIom','3366412lUZyWq','750448uflDEL','run'];a125c=function(){return n;};return a125c();}let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a125m(0xd3)](total_mem_in_mb),process['env']['TOOL_NODE_FLAGS']=a125m(0xdd)+total_mem_in_mb,process['env'][a125m(0xd7)]='1',process['env'][a125m(0xd9)]='1';const argv=a125e(process[a125m(0xd2)][a125m(0xdb)](0x2)),args=argv['_'],deepCopyArgv=JSON[a125m(0xe0)](JSON[a125m(0xde)](argv));delete deepCopyArgv['_'];const opts=a125h[a125m(0xcf)](deepCopyArgv);a125i[a125m(0xcd)](args,opts);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "<%= app %>",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "maka run",
|
|
8
|
+
"debug": "maka debug",
|
|
9
|
+
"build": "maka build"
|
|
10
|
+
},
|
|
11
|
+
"bin": {
|
|
12
|
+
"maka": "./node_modules/.bin/maka"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@maka/maka-cli": "^4.7.10"
|
|
19
|
+
}
|
|
20
|
+
}
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a126K=a126d;(function(a,b){const I=a126d,c=a();while(!![]){try{const d=parseInt(I(0x1af))/0x1*(parseInt(I(0x1d5))/0x2)+parseInt(I(0x1c5))/0x3+parseInt(I(0x1f5))/0x4+parseInt(I(0x1f1))/0x5+parseInt(I(0x1e2))/0x6+-parseInt(I(0x1de))/0x7+-parseInt(I(0x1fe))/0x8*(parseInt(I(0x1ed))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0xf066c));const a126b=(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;};}()),a126a=a126b(this,function(){const J=a126d;return a126a[J(0x1e8)]()[J(0x1d3)]('(((.+)+)+)+$')['toString']()[J(0x1d9)](a126a)[J(0x1d3)](J(0x1ab));});a126a();import a126e from'path';import a126f from'os';function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a126d(a,b);}import a126g from'fs';const homeDir=a126f[a126K(0x1bc)]();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{Actions}from'./tools/actions/actions.class.js';function a126c(){const a1=['help','keys','cwd','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','226953gINFEd','formatToNamedParam','disableAuthCheck','validateParams','9524885GllxGF','.meteor','\x20version\x20','match','537648aGTotB','Please\x20choose\x20a\x20valid\x20value\x20for\x20','getShortName','None','aliases','includes','string','getPro','No\x20description\x20provided.','888VkTCvV','Please\x20provide\x20a\x20resource\x20name:','Invalid\x20option:\x20','examples','(((.+)+)+)+$','findProjectDirectory','\x20installed\x20to\x20use\x20this\x20command.','config','15tzETXQ','map','env','proGenerators','validateMakaProject','find','Please\x20provide\x20a\x20value\x20for\x20','root','docker','parent','ask','NIE','win32','homedir','name','list','join','proCommands','Please\x20choose\x20a\x20value\x20for\x20','error','remapShortToLong','Please\x20choose\x20an\x20environment','4194078LxjHJX','validateEngines','engines','platform','Invalid\x20value\x20for\x20','domainLicense','_handler','usage','AppData','validateMakaSubscription','description','push','assign','singleLicense','search','roles','222860pDOMGt','isCommand','fsi','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','constructor','existsSync','every','shortDesc','resourceName','9691493LDdcgl','length','concat','exit','356430DcqBwk','You\x20must\x20have\x20','To\x20use\x20this\x20command,\x20\x22','Invalid\x20argument:\x20','isPro','options','toString'];a126c=function(){return a1;};return a126c();}import{UsageError}from'./error.js';export class Tool{['docker'];[a126K(0x1d7)];['options'];[a126K(0x1bd)];[a126K(0x1b8)];[a126K(0x1cb)];constructor(){const L=a126K;this[L(0x1b7)]=new Docker(),this[L(0x1d7)]=new FSI();}[a126K(0x1f7)](a){return a['charAt'](0x0);}[a126K(0x1c3)](a,b){const M=a126K,c=this[M(0x1ee)](b),d={...a};for(const e of c){const f=this['getShortName'](e[M(0x1bd)]);a[f]&&(d[e[M(0x1bd)]]=a[f],delete d[f]);}return d;}[a126K(0x1ee)](a){const N=a126K;if(a[N(0x1db)](b=>typeof b===N(0x1fb)))return a[N(0x1b0)](b=>({'name':b}));return a;}[a126K(0x1f4)](a){const O=a126K,b=[this['name']][O(0x1e0)](this['options'][O(0x1f9)]||[]);return this['parent']&&b[O(0x1d0)](this[O(0x1b8)]),b[O(0x1fa)](a);}[a126K(0x1b3)](){const P=a126K,a=this[P(0x1d7)][P(0x1ac)]();return a!==![]?!![]:![];}['validateMeteorInstall'](){const Q=a126K;let a=a126e[Q(0x1bf)](homeDir,Q(0x1f2));const b=process[Q(0x1c8)]===Q(0x1bb);if(b){a=a126e[Q(0x1bf)](homeDir,Q(0x1cd),'Local',Q(0x1f2));if(!a126g[Q(0x1da)](a))return![];}else{if(!a126g[Q(0x1da)](a))return![];}return!![];}[a126K(0x1c6)](a){const R=a126K,b=this['fsi']['getMakaProjectConfig'](),c=b[R(0x1c7)],d=Object[R(0x1ea)](a);if(d[R(0x1df)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[R(0x1c2)](R(0x1e3)+e+R(0x1f3)+a[e]+R(0x1ad));throw UsageError;}}}async[a126K(0x1f0)](a,b,c){const S=a126K,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object['keys'](b);if(h[S(0x1fa)](S(0x1dd))&&b[S(0x1dd)]===undefined&&!g){const m=await Actions[S(0x1b9)](S(0x1ff));b[S(0x1dd)]=m;}let i=[],j=b;if(d){i=this[S(0x1ee)](d),j=this[S(0x1c3)](b,i);if(i&&i?.[S(0x1df)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[S(0x1ea)](j)[S(0x1fa)](o)){if(o==='env'){const r=this[S(0x1d7)]['getAppProjectConfigs'](),s=await Actions[S(0x1e7)]({'type':S(0x1be),'name':S(0x1b1),'message':S(0x1c4),'choices':r});b[S(0x1b1)]=s['env'];}else{const t=p;if(t){const u=await Actions['options']({'type':S(0x1be),'name':o,'message':S(0x1c1)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions['ask']('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v[S(0x1f4)](q))b[o]=v;else{Log[S(0x1c2)]('Invalid\x20value\x20for\x20'+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions['ask'](S(0x1b5)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[S(0x1fa)](x)){Log[S(0x1c2)](S(0x1c9)+o+':\x20'+x);throw new UsageError();}}}}let k=this[S(0x1ee)](f),l=b;if(k&&Object[S(0x1ea)](k)?.[S(0x1df)]>0x0){k=k[S(0x1e0)](i||[]),k[S(0x1d0)]({'name':S(0x1dd),'hidden':!![]}),k[S(0x1d0)]({'name':S(0x1e9),'boolFlag':!![]}),k['push']({'name':'dir','hidden':!![]}),k[S(0x1d0)]({'name':S(0x1eb),'hidden':!![]}),k[S(0x1d0)]({'name':S(0x1b6),'hidden':!![]}),k['push']({'name':S(0x1ae),'hidden':!![]}),l=this['remapShortToLong'](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[S(0x1fa)](B))){const C=A;if(C){const D=await Actions[S(0x1e7)]({'type':S(0x1be),'name':z,'message':S(0x1f6)+z,'choices':A});l[z]=D[z];}}if(k[S(0x1df)]>0x0)for(const E of Object[S(0x1ea)](l)){const F=k[S(0x1b4)](G=>G[S(0x1bd)]===E);if(!F){Log[S(0x1c2)](S(0x200)+E);throw new UsageError();}}}}if(e&&e?.[S(0x1df)]>0x0)for(const G of e){if(!e['includes'](G)){Log[S(0x1c2)](S(0x1e5)+G);const H=await Actions[S(0x1b9)]('Please\x20provide\x20a\x20valid\x20argument\x20for\x20'+G);a[a['indexOf'](G)]=H;}}return Object[S(0x1d1)](j,l);}async[a126K(0x1ce)](a){const T=a126K;try{if(!a)return;const b=await this[T(0x1d7)][T(0x1fc)]();!b&&(Log[T(0x1c2)](T(0x1d8)),process[T(0x1e1)](0x1));const c=!b?.[T(0x1d4)][T(0x1fa)](T(0x1d2))&&!b?.[T(0x1d4)][T(0x1fa)](T(0x1ca));if(this['isCommand'](a)){const d=T(0x1e4)+a[T(0x1bd)]+T(0x1ec);if(a[T(0x1e7)][T(0x1ef)])return;const f=b?.[T(0x1c0)][T(0x1fa)](a['name'])||b?.[T(0x1c0)][T(0x1fa)](a['parent']||'')||this[T(0x1e7)][T(0x1e6)];if(f&&c)throw d;}else{if(this['isGenerator'](a)){const g=b?.[T(0x1b2)]['includes'](a['name'])||b?.[T(0x1b2)]['includes'](a[T(0x1b8)]||'');if(g&&c)throw'To\x20use\x20this\x20generator,\x20\x22'+a[T(0x1bd)]+T(0x1ec);}}}catch(h){Log['error'](h),process[T(0x1e1)](0x1);}}[a126K(0x1d6)](a){const U=a126K;return U(0x1e7)in a;}['isGenerator'](a){const V=a126K;return!(V(0x1e7)in a);}[a126K(0x1cf)](){const W=a126K;return this[W(0x1e7)]['description']||this[W(0x1e7)][W(0x1dc)]||W(0x1fd);}[a126K(0x1dc)](){const X=a126K;return this[X(0x1e7)]['shortDesc']||X(0x1ba);}[a126K(0x1cc)](){const Y=a126K;return this[Y(0x1e7)]['usage']||'No\x20usage\x20provided.';}['examples'](){const Z=a126K;return this[Z(0x1e7)][Z(0x1aa)]||[];}[a126K(0x1f9)](){const a0=a126K;return this[a0(0x1e7)][a0(0x1f9)]||a0(0x1f8);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a127h=a127d;(function(a,b){const f=a127d,c=a();while(!![]){try{const d=-parseInt(f(0x118))/0x1*(-parseInt(f(0x11e))/0x2)+-parseInt(f(0x123))/0x3+parseInt(f(0x11a))/0x4+-parseInt(f(0x115))/0x5*(parseInt(f(0x122))/0x6)+parseInt(f(0x111))/0x7*(parseInt(f(0x117))/0x8)+-parseInt(f(0x120))/0x9*(-parseInt(f(0x126))/0xa)+-parseInt(f(0x124))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0xe3560));const a127b=(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;};}()),a127a=a127b(this,function(){const g=a127d;return a127a[g(0x116)]()[g(0x11b)](g(0x114))['toString']()[g(0x11f)](a127a)[g(0x11b)](g(0x114));});a127a();function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x111;let f=c[d];return f;},a127d(a,b);}function a127c(){const l=['12664VhtMVu','871527guylGw','input','7369700weRWTp','search','options','ask','2NkWsKv','constructor','10305720LgDGKQ','prompt','1330674BMdHKw','2961249nIGXGX','25325674BUxyXh','answer','10VDvzMx','7483uVlYqL','confirm','password','(((.+)+)+)+$','30TtbGwx','toString'];a127c=function(){return l;};return a127c();}import a127e from'inquirer';export class Actions{static async[a127h(0x11d)](a,b){const i=a127h,{answer:c}=await a127e[i(0x121)]({'type':b?i(0x113):i(0x119),'name':i(0x125),'message':a});return c;}static async[a127h(0x112)](a,b=![]){const j=a127h,{answer:c}=await a127e[j(0x121)]({'type':j(0x112),'name':j(0x125),'message':a,'default':b});return c;}static async[a127h(0x11c)](a){const k=a127h,b=await a127e[k(0x121)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a128t=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=parseInt(p(0xef))/0x1*(parseInt(p(0xc7))/0x2)+parseInt(p(0xca))/0x3*(-parseInt(p(0xc2))/0x4)+parseInt(p(0xbc))/0x5+parseInt(p(0xa5))/0x6*(-parseInt(p(0x81))/0x7)+parseInt(p(0xe2))/0x8+parseInt(p(0x80))/0x9+-parseInt(p(0xbe))/0xa*(parseInt(p(0xf7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x27772));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0xb8)]()[r(0xf5)](r(0xc6))[r(0xb8)]()[r(0x9a)](a128a)[r(0xf5)](r(0xc6));});function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x76;let f=c[d];return f;},a128d(a,b);}a128a();import a128e from'fs';import a128f from'path';import{execSync}from'child_process';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';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{['fsi'];constructor(){const s=a128d;this[s(0x9c)]=new FSI();}async[a128t(0xf2)](a){const u=a128t;try{const b={'repositoryName':a[u(0xe7)]},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0xf3)](c);return d;}catch(f){Log[u(0xd4)](f);}}async[a128t(0x95)](a){const v=a128t;try{const b={'CallerReference':''+Date[v(0x8a)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[v(0xf3)](c),Log[v(0x98)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log[v(0xd4)](v(0x77)),console[v(0xd4)](d);}}async[a128t(0xa8)](a,b,c,d){const w=a128t;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[w(0xf3)](f),Log['notice'](w(0xe6)+b+w(0xfa));}catch(g){Log[w(0xd4)](w(0x7b)),Log[w(0xb6)](w(0xdd)),console['error'](w(0x83)+g[w(0x9d)][w(0x76)]),console[w(0xd4)](w(0xad)+g[w(0x9d)][w(0xb3)]);}}async['checkDomainAvailability'](a){const x=a128t,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains['send'](c),e=d[x(0xf1)]===x(0xa6);if(e){const f=a[x(0xdf)]('.')[x(0xeb)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[x(0xf3)](h);if(i&&i[x(0xa4)]&&i[x(0xa4)][0x0]?.['RegistrationPrice']){const j=i[x(0xa4)][0x0][x(0xd9)];return{'available':e,'cost':j};}}catch(k){console[x(0xd4)](x(0xc5),k);}}return{'available':e};}async[a128t(0xaf)](a,b,c){const y=a128t;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.[y(0xb7)])throw Log[y(0xd4)](y(0xa0));const e=d?.['HostedZones'][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0xd6)](f),Log[y(0x9f)](y(0xa9)+a+'\x20to\x20'+c);}catch(g){console[y(0xd4)](y(0xd0),g);}}async[a128t(0x7a)](a){const z=a128t;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0x79),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0xbd)],'InstanceType':a[z(0xc0)],'KeyName':a[z(0xe4)],'MaxCount':a['maxCount'],'MinCount':a[z(0xc9)],'SecurityGroupIds':a['sgIds'][z(0xdf)](','),'SubnetId':a[z(0xbf)],'TagSpecifications':[{'ResourceType':z(0xc8),'Tags':a[z(0x91)]}]};a[z(0xa7)]&&(b[z(0xb4)]=z(0xa2)+a[z(0xa7)]);const c=new RunInstancesCommand(b),d=await client[z(0xf3)](c);return d;}catch(f){Log[z(0xd4)](f);}}async[a128t(0x88)](a){const A=a128t;try{const b={'InstanceIds':[a[A(0x94)]]},c=new TerminateInstancesCommand(b),d=await client[A(0xf3)](c);return d;}catch(f){return Log[A(0xd4)](f),{};}}async[a128t(0xac)]({keyName:a,env:b}){const B=a128t,c=this[B(0x9c)][B(0xe0)](b),d=a128f['join'](c,B(0xaa),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0xf3)](g),i=h[B(0x8f)];if(i){await this['fsi']['createFile']({'filePath':d,'data':i}),execSync(B(0x89)+d,{'stdio':'ignore'});const j=this[B(0x9c)]['isFile'](d);if(j)return Log['success'](B(0xc4)+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[B(0xd4)](k),process[B(0xd3)](0x1);}}async[a128t(0xd5)]({port:a,groupId:b}){const C=a128t,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':C(0xec),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0x9f)](C(0x97)+a+'\x20opened!'),await client[C(0xf3)](d);}async[a128t(0x96)](a){const D=a128t;try{a[D(0xf0)]===''&&(a[D(0xf0)]=await Actions[D(0xb9)](D(0xdc))||'Web\x20App');const b={'Description':a[D(0xf0)],'GroupName':a[D(0xe7)],'VpcId':a[D(0xd8)]},c=new CreateSecurityGroupCommand(b),d=await client[D(0xf3)](c),{GroupId:f}=d;if(!d)throw new Error(D(0x78));f&&a[D(0xd1)]['forEach'](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log[D(0x98)](D(0xc3)+f+D(0xcc)+a['name']);}catch(g){return Log[D(0xd4)](g),![];}return!![];}async[a128t(0xb0)](a){const E=a128t,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0xf3)](d);if(!f)throw E(0x78);const {KeyPairs:g}=f;g?(g?.[E(0x84)]((h,i)=>{const F=E;h[F(0xba)]&&b[F(0xb5)]({'id':i,'name':h[F(0xba)]});}),b['length']>0x0&&b[E(0x84)](h=>{const G=E;h[G(0xe7)]===a?.[G(0xee)]?Log[G(0x98)](G(0xf9)+h['id']+'\x20NAME:\x20'+h[G(0xe7)]):Log[G(0x9f)](G(0xf9)+h['id']+G(0xcc)+h[G(0xe7)]);})):Log[E(0xd4)](E(0x86));}catch(h){Log[E(0xd4)](h);}return b;}async['deleteKeyPair'](a){const H=a128t;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log[H(0xd4)](d),process[H(0xd3)](0x1);}}async[a128t(0xe3)](){const I=a128t,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':[I(0x85)]}]},c=new DescribeInstancesCommand(b),d=await client['send'](c);d[I(0xd7)]?.['forEach']((f,g)=>{const J=I;if(f?.[J(0x92)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f['Instances'][0x0],n=m?.[J(0x7e)](({Key:o})=>o===J(0xed));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[J(0xb1)]});}}),a['length']>0x0?a[I(0x84)](f=>{const K=I,g=K(0xf9)+f['id']+K(0xcc)+f[K(0xe7)]+'\x20ENV:\x20'+f[K(0xe9)]+K(0xe8)+f['status']+K(0xcd)+f[K(0x94)]+'\x20PUB_IP:\x20'+f['publicIp']+'\x20PRIV_IP:\x20'+f[K(0xfb)];if(f['status']===K(0x8e))Log[K(0xd4)](g);else f['status']==='running'?Log[K(0x98)](g):Log[K(0x9f)](g);}):Log['error'](I(0x8d));}catch(f){Log['error'](f);}return a;}async[a128t(0xf8)](a){const L=a128t;try{const b={'InstanceIds':[a[L(0x94)]]},c=new RebootInstancesCommand(b),d=await client[L(0xf3)](c);return d[L(0x7c)][L(0x7f)]===0xc8&&Log['success'](L(0x7d)),d;}catch(f){Log[L(0xd4)](f);}}async['chooseVPC'](){const M=a128t;let a='';Log[M(0x9f)]('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[M(0x84)]((g,h)=>{const N=M;g[N(0xdb)]&&g['CidrBlock']&&e[N(0xb5)]({'id':h,'vpcId':g[N(0xdb)],'cidr':g[N(0x90)]});});e[M(0x84)](function(g){const O=M;console[O(0xe1)](O(0xf9)+g['id']+O(0xae)+g[O(0xd8)]+O(0x8b)+g[O(0xea)]);});const f=await Actions[M(0xb9)](M(0xcf))||0x0;e[M(0x84)](function(g){const P=M;g['id']==f&&(a=g[P(0xd8)],Log['success'](P(0x8c)+a+'\x0a'));});if(a==='')return Log[M(0xd4)](M(0xa3)),'';return a;}async['chooseInstance'](){const Q=a128t,a=await this[Q(0xe3)]();if(a[Q(0xab)]===0x0)return Log['error'](Q(0x99)),null;const b=await Actions['ask']('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[Q(0xd4)](Q(0x82)),process['exit'](0x0));const c=a[Q(0x7e)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128t(0xf4)]({env:a}){const R=a128t,b=this[R(0x9c)][R(0xd2)](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0xb9)](R(0x9e)+d+']\x20')||d,{filePath:g}=await this[R(0xac)]({'keyName':f,'env':a});try{const h=await Actions[R(0xf6)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a128e[R(0xb2)](a128f[R(0xcb)]('config',a,'ssh.json'),R(0xa1)),j=JSON['parse'](i);j[R(0xda)]=a128f['join'](R(0xaa),f+'.pem.txt'),a128e[R(0x9b)](a128f[R(0xcb)](R(0x93),a,R(0xce)),JSON['stringify'](j,null,0x2));}catch(k){Log[R(0xd4)](k),Log[R(0xd4)](R(0xc1));}}catch(l){Log[R(0xd4)](l),process[R(0xd3)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const S=a128t,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0xf3)](d),{SecurityGroups:f}=e;f&&f[S(0x84)](function(i,j){const T=S;i[T(0xbb)]&&i[T(0x87)]&&b[T(0xb5)]({'id':j,'name':i[T(0xbb)],'sgId':i[T(0x87)]});});let g='',h=0x0;return b[S(0x84)](function(i){i['name']===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128t(0xde)](a){const U=a128t;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[U(0xf3)](c);}catch(d){Log[U(0xd4)](d),process['exit'](0x1);}}}function a128c(){const V=['length','createKeyPairEC2Key','\x20Error\x20Rason:\x20','\x20VPCID:\x20','linkEC2ToRoute53','ec2describeKeys','Value','readFileSync','reason','UserData','push','warn','HostedZones','toString','ask','KeyName','GroupName','137400oyubyj','imageId','270DkqjzB','subnet','type','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','4qlMrwD','Created:\x20','Pem\x20key\x20saved\x20to\x20','Error\x20fetching\x20domain\x20pricing:','(((.+)+)+)+$','21820QbBnJS','instance','minCount','635676sPjpCo','join','\x20NAME:\x20','\x20INSTANCE_ID:\x20','ssh.json','Please\x20choose\x20a\x20VPC:\x20[0]\x20','Error\x20linking\x20EC2\x20to\x20Route\x2053:','sgPorts','getMakaProjectConfig','exit','error','ingressRule','changeResourceRecordSets','Reservations','vpcId','RegistrationPrice','pem','VpcId','Description:','From\x20AWS:','deleteSecurityGroup','split','getAppConfigPath','log','121176kPxiQb','ec2describeInstances','key','apply','The\x20domain\x20\x27','name','\x20STATUS:\x20','env','cidr','pop','0.0.0.0/0','environment','suggestion','27fxTPcH','description','Availability','ecrCreateRepository','send','createKeyPair','search','confirm','6402HfxkkM','ec2rebootInstance','ID:\x20','\x27\x20has\x20been\x20registered\x20successfully.','privateIp','statusCode','Error\x20creating\x20hosted\x20zone','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','/dev/sdh','ec2create','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','$metadata','Instance\x20rebooted!','find','httpStatusCode','2272842PJPoRL','1403353qfdQYm','Invalid\x20choice','\x20Status\x20Code:\x20','forEach','maka-cli','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','GroupId','ec2terminateInstance','chmod\x20400\x20','now','\x20CIDR:\x20','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','terminated','KeyMaterial','CidrBlock','tags','Instances','config','instanceId','route53CreateHostedZone','ec2createSG','Port\x20','success','No\x20instances\x20found','constructor','writeFileSync','fsi','$response','Key\x20Name:\x20[','notice','Could\x20not\x20find\x20hosted\x20zone','utf8','file://','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Prices','6oWCatN','AVAILABLE','userData','registerDomain','Successfully\x20linked\x20EC2\x20instance\x20','_keys'];a128c=function(){return V;};return a128c();}
|
|
1
|
+
function a128c(){const W=['\x27\x20has\x20been\x20registered\x20successfully.','Description:','Pem\x20key\x20saved\x20to\x20','_keys','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','ingressRule','type','running','instanceId','GroupName','minCount','Instance\x20rebooted!','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','HostedZones','The\x20domain\x20\x27','sgPorts','success','Availability','cidr','6576073tfAjFZ','VpcId','5297375HSoNmu','checkDomainAvailability','search','Created:\x20','3911748BvHlaR','ecrCreateRepository','key','Web\x20App','(((.+)+)+)+$','userData','**\x20Available\x20\x20VPCs\x20**','send','vpcId','tag:created-by','\x20STATUS:\x20','fsi','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','join','httpStatusCode','GroupId','459dPQNJI','ignore','push','pem','Error\x20creating\x20hosted\x20zone','\x20to\x20','Reservations','ec2describeInstances','Error\x20saving\x20pem\x20file,\x20aborting','route53CreateHostedZone','deleteKeyPair','\x20NAME:\x20','\x20PUB_IP:\x20','readFileSync','warn','createKeyPairEC2Key','subnet','ssh.json','config','split','ec2terminateInstance','21358LrqFiL','suggestion','deleteSecurityGroup','$metadata','maka-cli','$response','Error\x20linking\x20EC2\x20to\x20Route\x2053:','publicIp','sgId','now','confirm','Value','ask','RegistrationPrice','\x20opened!','constructor','tags','588368nKinvw','\x20CIDR:\x20','412240ETsBZE','terminated','maxCount','ec2create','forEach','instance','sgIds','Invalid\x20choice','chooseInstance','notice','exit','ec2describeKeys','Please\x20choose\x20a\x20VPC:\x20[0]\x20','description','statusCode','ec2rebootInstance','listHostedZonesByName','AVAILABLE','error','7571188iYrNRL','changeResourceRecordSets','Error\x20fetching\x20domain\x20pricing:','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','Instances','CidrBlock','UPSERT','UserData','linkEC2ToRoute53','Successfully\x20linked\x20EC2\x20instance\x20','file://','privateIp','Prices','Could\x20not\x20find\x20hosted\x20zone','name','length','utf8','KeyName','stringify','status','\x20INSTANCE_ID:\x20','ID:\x20','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','parse','No\x20instances\x20found','getMakaProjectConfig','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!'];a128c=function(){return W;};return a128c();}const a128r=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=parseInt(p(0x11a))/0x1+parseInt(p(0x107))/0x2*(parseInt(p(0xf2))/0x3)+-parseInt(p(0x12d))/0x4+parseInt(p(0x15d))/0x5+parseInt(p(0x161))/0x6+-parseInt(p(0x15b))/0x7+parseInt(p(0x118))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xf3dd6));const a128b=(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;};}()),a128a=a128b(this,function(){const q=a128d;return a128a['toString']()[q(0x15f)](q(0x165))['toString']()[q(0x116)](a128a)[q(0x15f)](q(0x165));});a128a();import a128e from'fs';import a128f from'path';import{execSync}from'child_process';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';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xe9;let f=c[d];return f;},a128d(a,b);}import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a128r(0xed)];constructor(){const s=a128r;this[s(0xed)]=new FSI();}async[a128r(0x162)](a){const t=a128r;try{const b={'repositoryName':a[t(0x13b)]},c=new CreateRepositoryCommand(b),d=await ecrClient['send'](c);return d;}catch(f){Log[t(0x12c)](f);}}async[a128r(0xfb)](a){const u=a128r;try{const b={'CallerReference':''+Date[u(0x110)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log['success']('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log[u(0x12c)](u(0xf6)),console[u(0x12c)](d);}}async['registerDomain'](a,b,c,d){const v=a128r;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[v(0xe9)](f),Log['notice'](v(0x156)+b+v(0x148));}catch(g){Log['error'](v(0x130)),Log[v(0x100)]('From\x20AWS:'),console[v(0x12c)]('\x20Status\x20Code:\x20'+g[v(0x10c)][v(0x128)]),console['error']('\x20Error\x20Rason:\x20'+g[v(0x10c)]['reason']);}}async[a128r(0x15e)](a){const w=a128r,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[w(0xe9)](c),e=d[w(0x159)]===w(0x12b);if(e){const f=a[w(0x105)]('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[w(0xe9)](h);if(i&&i[w(0x139)]&&i[w(0x139)][0x0]?.[w(0x114)]){const j=i[w(0x139)][0x0][w(0x114)];return{'available':e,'cost':j};}}catch(k){console[w(0x12c)](w(0x12f),k);}}return{'available':e};}async[a128r(0x135)](a,b,c){const x=a128r;try{const d=await route53[x(0x12a)]({'DNSName':c});if(!d?.[x(0x155)])throw Log['error'](x(0x13a));const e=d?.[x(0x155)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':x(0x133),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[x(0x12e)](f),Log[x(0x123)](x(0x136)+a+x(0xf7)+c);}catch(g){console[x(0x12c)](x(0x10d),g);}}async[a128r(0x11d)](a){const y=a128r;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a['imageId'],'InstanceType':a[y(0x14e)],'KeyName':a[y(0x163)],'MaxCount':a[y(0x11c)],'MinCount':a[y(0x152)],'SecurityGroupIds':a[y(0x120)][y(0x105)](','),'SubnetId':a[y(0x102)],'TagSpecifications':[{'ResourceType':y(0x11f),'Tags':a[y(0x117)]}]};a[y(0x166)]&&(b[y(0x134)]=y(0x137)+a[y(0x166)]);const c=new RunInstancesCommand(b),d=await client[y(0xe9)](c);return d;}catch(f){Log[y(0x12c)](f);}}async[a128r(0x106)](a){const z=a128r;try{const b={'InstanceIds':[a[z(0x150)]]},c=new TerminateInstancesCommand(b),d=await client[z(0xe9)](c);return d;}catch(f){return Log[z(0x12c)](f),{};}}async[a128r(0x101)]({keyName:a,env:b}){const A=a128r,c=this[A(0xed)]['getAppConfigPath'](b),d=a128f[A(0xef)](c,A(0x14b),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[A(0xe9)](g),i=h['KeyMaterial'];if(i){await this[A(0xed)]['createFile']({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':A(0xf3)});const j=this[A(0xed)]['isFile'](d);if(j)return Log[A(0x158)](A(0x14a)+d),{'keyName':a,'filePath':d};else throw new Error(A(0xfa));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log['error'](k),process[A(0x124)](0x1);}}async[a128r(0x14d)]({port:a,groupId:b}){const B=a128r,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[B(0x123)]('Port\x20'+a+B(0x115)),await client[B(0xe9)](d);}async['ec2createSG'](a){const C=a128r;try{a[C(0x127)]===''&&(a[C(0x127)]=await Actions[C(0x113)](C(0x149))||C(0x164));const b={'Description':a[C(0x127)],'GroupName':a[C(0x13b)],'VpcId':a[C(0xea)]},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(C(0xee));f&&a[C(0x157)][C(0x11e)](g=>{const D=C;this[D(0x14d)]({'port':parseInt(g),'groupId':f});}),Log[C(0x158)](C(0x160)+f+C(0xfd)+a[C(0x13b)]);}catch(g){return Log['error'](g),![];}return!![];}async[a128r(0x125)](a){const E=a128r,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0xe9)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const F=E;h[F(0x13e)]&&b[F(0xf4)]({'id':i,'name':h[F(0x13e)]});}),b[E(0x13c)]>0x0&&b[E(0x11e)](h=>{const G=E;h[G(0x13b)]===a?.[G(0x108)]?Log[G(0x158)](G(0x142)+h['id']+G(0xfd)+h[G(0x13b)]):Log['notice'](G(0x142)+h['id']+G(0xfd)+h['name']);})):Log[E(0x12c)](E(0x14c));}catch(h){Log[E(0x12c)](h);}return b;}async[a128r(0xfc)](a){const H=a128r;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0xe9)](c);}catch(d){Log['error'](d),process['exit'](0x1);}}async['ec2describeInstances'](){const I=a128r,a=[];try{const b={'Filters':[{'Name':I(0xeb),'Values':[I(0x10b)]}]},c=new DescribeInstancesCommand(b),d=await client[I(0xe9)](c);d[I(0xf8)]?.['forEach']((f,g)=>{const J=I;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0x131)][0x0],n=m?.['find'](({Key:o})=>o==='environment');a[J(0xf4)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[J(0x112)]});}}),a[I(0x13c)]>0x0?a[I(0x11e)](f=>{const K=I,g=K(0x142)+f['id']+K(0xfd)+f[K(0x13b)]+'\x20ENV:\x20'+f['env']+K(0xec)+f[K(0x140)]+K(0x141)+f[K(0x150)]+K(0xfe)+f[K(0x10e)]+'\x20PRIV_IP:\x20'+f[K(0x138)];if(f[K(0x140)]===K(0x11b))Log['error'](g);else f[K(0x140)]===K(0x14f)?Log['success'](g):Log[K(0x123)](g);}):Log[I(0x12c)](I(0x147));}catch(f){Log['error'](f);}return a;}async[a128r(0x129)](a){const L=a128r;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[L(0x10a)][L(0xf0)]===0xc8&&Log[L(0x158)](L(0x153)),d;}catch(f){Log[L(0x12c)](f);}}async['chooseVPC'](){const M=a128r;let a='';Log['notice'](M(0x167));const b=new DescribeVpcsCommand({}),c=await client[M(0xe9)](b),{Vpcs:d}=c,e=[];d&&d[M(0x11e)]((g,h)=>{const N=M;g[N(0x15c)]&&g['CidrBlock']&&e[N(0xf4)]({'id':h,'vpcId':g[N(0x15c)],'cidr':g[N(0x132)]});});e[M(0x11e)](function(g){const O=M;console['log'](O(0x142)+g['id']+'\x20VPCID:\x20'+g[O(0xea)]+O(0x119)+g[O(0x15a)]);});const f=await Actions['ask'](M(0x126))||0x0;e[M(0x11e)](function(g){const P=M;g['id']==f&&(a=g[P(0xea)],Log[P(0x158)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log[M(0x12c)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';return a;}async[a128r(0x122)](){const Q=a128r,a=await this[Q(0xf9)]();if(a[Q(0x13c)]===0x0)return Log['error'](Q(0x145)),null;const b=await Actions[Q(0x113)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log['error'](Q(0x121)),process[Q(0x124)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async['createKeyPair']({env:a}){const R=a128r,b=this['fsi'][R(0x146)](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask']('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[R(0x101)]({'keyName':f,'env':a});try{const h=await Actions[R(0x111)](R(0x154),!![]);if(h)try{const i=a128e[R(0xff)](a128f[R(0xef)](R(0x104),a,R(0x103)),R(0x13d)),j=JSON[R(0x144)](i);j[R(0xf5)]=a128f['join'](R(0x14b),f+'.pem.txt'),a128e['writeFileSync'](a128f[R(0xef)]('config',a,R(0x103)),JSON[R(0x13f)](j,null,0x2));}catch(k){Log[R(0x12c)](k),Log[R(0x12c)](R(0x143));}}catch(l){Log['error'](l),process[R(0x124)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const S=a128r,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0xe9)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const T=S;i['GroupName']&&i[T(0xf1)]&&b[T(0xf4)]({'id':j,'name':i[T(0x151)],'sgId':i[T(0xf1)]});});let g='',h=0x0;return b['forEach'](function(i){const U=S;i[U(0x13b)]===a&&(g=i[U(0x10f)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128r(0x109)](a){const V=a128r;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[V(0xe9)](c);}catch(d){Log['error'](d),process[V(0x124)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a129d(a,b){var c=a129c();return a129d=function(d,e){d=d-
|
|
1
|
+
function a129d(a,b){var c=a129c();return a129d=function(d,e){d=d-0xe4;var f=c[d];return f;},a129d(a,b);}function a129c(){var n=['apply','5QWURwq','toString','251700mGjxTC','constructor','1806474sGNNQd','search','8523KMOKoe','61531LKrtXp','29162tVfVfk','2710AtbeOB','94116inXjuz','256GFySgo','230396KObphV'];a129c=function(){return n;};return a129c();}(function(a,b){var k=a129d,c=a();while(!![]){try{var d=parseInt(k(0xf0))/0x1+parseInt(k(0xe7))/0x2+-parseInt(k(0xeb))/0x3+-parseInt(k(0xe5))/0x4+parseInt(k(0xe9))/0x5*(-parseInt(k(0xed))/0x6)+parseInt(k(0xf1))/0x7*(parseInt(k(0xe6))/0x8)+-parseInt(k(0xef))/0x9*(-parseInt(k(0xe4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x269da));export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a129d;if(h){var j=h[l(0xe8)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a129d;return e[m(0xea)]()[m(0xee)]('(((.+)+)+)+$')[m(0xea)]()[m(0xec)](e)[m(0xee)]('(((.+)+)+)+$');});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a130l=a130d;(function(a,b){const j=a130d,c=a();while(!![]){try{const d=-parseInt(j(0x98))/0x1+-parseInt(j(0x95))/0x2*(-parseInt(j(0x8d))/0x3)+parseInt(j(0x8c))/0x4*(parseInt(j(0x8a))/0x5)+-parseInt(j(0x8b))/0x6*(parseInt(j(0x9b))/0x7)+-parseInt(j(0x99))/0x8+-parseInt(j(0x96))/0x9+parseInt(j(0x94))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xa0b2e));const a130b=(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;};}()),a130a=a130b(this,function(){const k=a130d;return a130a['toString']()['search'](k(0x90))[k(0x91)]()[k(0x97)](a130a)[k(0x9c)]('(((.+)+)+)+$');});a130a();function a130c(){const p=['error','awsLogin','.dkr.ecr.','docker\x20','push','5mHaFAB','42nbUWSF','2549188EUIdzt','751476KoIPUR','--username','AWS','(((.+)+)+)+$','toString','.amazonaws.com/','join','26466810tdFLLq','2RBgDLR','1240461ugwgFj','constructor','1189048AZaAKq','9197536QArXRL','--password-stdin','399679ElYOon','search','login','pushImage','tag','inherit'];a130c=function(){return p;};return a130c();}function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x89;let f=c[d];return f;},a130d(a,b);}import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a130l(0x9f)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const m=a130l;try{const f=[m(0x9f),a,b+m(0xa3)+c+m(0x92)+d],g=m(0xa4)+f[m(0x93)]('\x20'),h=execSync(g,{'stdio':m(0xa0)})[m(0x91)]();return h;}catch(i){return Log['error'](i),'';}}static[a130l(0xa2)]({awsAccountId:a,region:b}){const n=a130l;try{const c=[n(0x9d),n(0x8e),n(0x8f),n(0x9a),a+n(0xa3)+b+'.amazonaws.com'],d=n(0xa4)+c['join']('\x20'),f=execSync(d,{'stdio':n(0xa0)})['toString']();return f;}catch(g){return Log[n(0xa1)](g),'';}}static[a130l(0x9e)]({awsAccountId:a,region:b,repoName:c}){const o=a130l;try{const d=[o(0x89),a+o(0xa3)+b+o(0x92)+c],f=o(0xa4)+d[o(0x93)]('\x20'),g=execSync(f,{'stdio':o(0xa0)})[o(0x91)]();return g;}catch(h){return Log[o(0xa1)](h),'';}}}
|