@maka/maka-cli 4.5.24 → 4.5.25
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 -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/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 a95k=a95d;(function(a,b){const h=a95d,c=a();while(!![]){try{const d=-parseInt(h(
|
|
1
|
+
const a95k=a95d;(function(a,b){const h=a95d,c=a();while(!![]){try{const d=-parseInt(h(0x8a))/0x1*(parseInt(h(0x8f))/0x2)+parseInt(h(0x95))/0x3*(-parseInt(h(0x8b))/0x4)+parseInt(h(0x87))/0x5+-parseInt(h(0x9e))/0x6*(-parseInt(h(0x99))/0x7)+-parseInt(h(0x83))/0x8+-parseInt(h(0x9c))/0x9+parseInt(h(0x81))/0xa*(parseInt(h(0x9f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x5c29e));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a95d;if(c){const e=c[i(0x8e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const j=a95d;return a95a['toString']()['search'](j(0x84))['toString']()[j(0x97)](a95a)[j(0x9d)](j(0x84));});a95a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x7f;let f=c[d];return f;},a95d(a,b);}Generator[a95k(0x93)]({'name':a95k(0x8c),'usage':a95k(0x82),'shortDesc':a95k(0x92),'validOpts':[a95k(0x91)],'examples':[a95k(0xa0)]},function(a,b){const l=a95k,c=this['fsi'][l(0x86)]();this['fsi'][l(0x98)](c,async()=>{const m=l,d={'app':c[m(0x88)],'appFileCase':paramCase(c[m(0x88)]),'name':pascalCase(b[m(0x89)]),'fileName':paramCase(b[m(0x89)]),'camelCase':camelCase(b[m(0x89)]),'userName':m(0x8d),'isDocker':b[m(0x91)]};let e=a[0x0];if(e==='dev')e='development';else e===m(0x96)&&(e=m(0x94));const f=this['fsi'][m(0x90)]({'pathParts':['config',e,m(0x9b)]});this[m(0x7f)]['template']({'srcPath':m(0x9a),'destPath':f,'context':d,'config':c});if(!b[m(0x91)]){const g=this[m(0x7f)][m(0x90)]({'pathParts':[m(0x8c),e,'process.env']});this['fsi'][m(0x80)]({'srcPath':m(0x85),'destPath':g,'context':d,'config':c});}});});function a95c(){const n=['135398DVyFmP','pathFromProject','isDocker','Generate\x20configuration\x20settings.','create','production','405846vcTdER','prod','constructor','withValue','1862qpJbit','config/settings.json','settings.json','5920956sGjMHC','search','12636FBzDKt','15769391LfspqR','maka\x20g:config\x20production','fsi','template','10HgdicK','maka\x20{generate,\x20g}:{config}\x20<name>','6019120yFDJmj','(((.+)+)+)+$','config/process.env','getProjectConfig','661890TUVjEA','appName','resourceName','3xHmLMo','4kYVgzR','config','ubuntu','apply'];a95c=function(){return n;};return a95c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a96q=a96d;(function(a,b){const n=a96d,c=a();while(!![]){try{const d=-parseInt(n(0xff))/0x1+-parseInt(n(0xfe))/0x2*(parseInt(n(0xda))/0x3)+parseInt(n(0xe9))/0x4*(parseInt(n(0x100))/0x5)+-parseInt(n(0xe0))/0x6+-parseInt(n(0xe3))/0x7*(parseInt(n(0xd9))/0x8)+-parseInt(n(0xf9))/0x9+parseInt(n(0xd7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xe9c4a));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a96d;if(c){const e=c[o(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const p=a96d;return a96a['toString']()[p(0xf6)](p(0xef))['toString']()[p(0xe6)](a96a)[p(0xf6)](p(0xef));});a96a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0xc9;let f=c[d];return f;},a96d(a,b);}function a96c(){const t=['warn','search','DB\x20Driver','injectAtEndOfFile','13822461irWMxJ','sqlite','(blank)','resourceName',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','1666562ZgSbzM','1091319TMUZwh','5kvjopT','create','dbAnswer','withValue','register-','import\x20\x27./register-','MS\x20SQL','conn.','pgsql','list','server','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','index.','startup','fsi','maka\x20g:dbc\x20todos\x20--type=sqlite','mssql','tsx','options','52762470fjtnfK','pathFromApp','472jBTmRj','3nUSyOR','PostgreSQL','dbc/conn.js','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','apply','4681086Oqlbjl','template','imports','176526kwFQcQ','better-sqlite3','maka\x20g:dbc\x20azure\x20--type=mssql','constructor','Invalid\x20type\x20','type','5638956bxKYSA','-dbc.','dir','error','checkNpmPackage','engines','(((.+)+)+)+$','indexOf','dbc','getProjectConfig','installNpmPackage','dbc/register-dbc.js'];a96c=function(){return t;};return a96c();}Generator[a96q(0x101)]({'name':a96q(0xf1),'usage':a96q(0xde),'shortDesc':a96q(0xdd),'validOpts':[a96q(0xe8),'dir'],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql',a96q(0xe5),a96q(0xd3)]},async function(a,b){const r=a96q;try{const c=await this[r(0xd2)][r(0xf2)](),d=this[r(0xd2)][r(0xd8)]({}),f=paramCase(b[r(0xfc)]);if(!b[r(0xe8)]){const h={'type':r(0xcd),'name':r(0x102),'message':r(0xf7),'choices':[{'name':r(0xdb),'value':r(0xcc)},{'name':r(0xca),'value':r(0xd4)}]},{dbAnswer:i}=await Actions[r(0xd6)](h);i&&(b[r(0xe8)]=i);}const g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[r(0xfc)]),'camelCase':camelCase(b['resourceName']),'type':b[r(0xe8)],'engine':c['engines']['js'],'noRename':!![]};this[r(0xd2)][r(0x103)](c,async()=>{const s=r;let j='js';c[s(0xee)]['js']===s(0xd5)&&(j='ts');const k=['mssql',s(0xcc)];if(k[s(0xf0)](g[s(0xe8)])<0x0){const m=g[s(0xe8)]?g[s(0xe8)]:s(0xfb);Log[s(0xec)](s(0xe7)+m+s(0xfd));return;}b[s(0xe8)]==='pgsql'&&!this[s(0xd2)][s(0xed)]('pg')&&(Log[s(0xf5)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this['fsi'][s(0xf3)]('pg',{'cwd':d}));b[s(0xe8)]===s(0xd4)&&!this[s(0xd2)]['checkNpmPackage']('mssql')&&(Log[s(0xf5)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[s(0xd2)][s(0xf3)](s(0xd4),{'cwd':d}));b[s(0xe8)]===s(0xfa)&&!this[s(0xd2)][s(0xed)]('better-sqlite3')&&(Log[s(0xf5)](s(0xcf)),await this['fsi'][s(0xf3)](s(0xe4),{'cwd':d}));this[s(0xd2)][s(0xe1)]({'srcPath':'dbc/config.js','destPath':this['fsi'][s(0xd8)]({'pathParts':[s(0xe2),s(0xd1),s(0xce),'dbc',b[s(0xeb)],f,'config.'+j]}),'context':g,'config':c}),this[s(0xd2)][s(0xe1)]({'srcPath':s(0xdc),'destPath':this[s(0xd2)][s(0xd8)]({'pathParts':['imports',s(0xd1),'server',s(0xf1),b[s(0xeb)],f,s(0xcb)+j]}),'context':g,'config':c}),this['fsi']['template']({'srcPath':s(0xf4),'destPath':this['fsi'][s(0xd8)]({'pathParts':[s(0xe2),s(0xd1),'server',s(0x104)+f+s(0xea)+j]}),'context':g,'config':c});const l=this[s(0xd2)][s(0xd8)]({'pathParts':[s(0xe2),'startup',s(0xce),s(0xd0)+c[s(0xee)]['js']]});this[s(0xd2)][s(0xf8)]({'filePath':l,'content':s(0xc9)+f+'-dbc\x27;'});});}catch(j){Log[r(0xec)](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a97i=a97d;(function(a,b){const f=a97d,c=a();while(!![]){try{const d=-parseInt(f(0x183))/0x1*(-parseInt(f(0x18e))/0x2)+-parseInt(f(0x185))/0x3*(parseInt(f(0x18f))/0x4)+-parseInt(f(0x180))/0x5*(-parseInt(f(0x18c))/0x6)+-parseInt(f(0x17f))/0x7*(parseInt(f(0x18b))/0x8)+parseInt(f(0x182))/0x9+parseInt(f(0x191))/0xa+parseInt(f(0x188))/0xb*(-parseInt(f(0x196))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x48c3b));function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x17a;let f=c[d];return f;},a97d(a,b);}const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a97d;if(c){const e=c[g(0x184)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const h=a97d;return a97a[h(0x181)]()[h(0x192)](h(0x195))['toString']()['constructor'](a97a)[h(0x192)](h(0x195));});a97a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a97e from'path';Generator[a97i(0x17d)]({'name':'dockerfile','usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a97i(0x17a),'validOpts':[],'noResource':!![],'examples':['maka\x20g:dockerfile']},async function(){const j=a97i;try{const a=await this[j(0x190)][j(0x18d)](),b=await this[j(0x190)]['getGlobalConfig'](),c=this['fsi'][j(0x18a)]();this[j(0x190)][j(0x17b)](a,async()=>{const k=j,d={'app':b[k(0x194)],'config':a,'appPath':a97e[k(0x187)](c,'app'),'bundlePath':a97e['join'](c,k(0x17c),'app.tar.gz'),'useCert':this['fsi'][k(0x186)](b[k(0x193)])};this['fsi'][k(0x17e)]({'srcPath':'docker/Dockerfile','destPath':a97e[k(0x187)](c,'Dockerfile'),'framework':'service','context':d,'config':a});});}catch(d){Log[j(0x189)](d);}});function a97c(){const l=['fsi','3522950GkIOVo','search','cert','appName','(((.+)+)+)+$','3151428QRGXwK','Generate\x20an\x20updated\x20dockerfile','withValue','build','create','template','7PLEqjE','5iXChJr','toString','1473165KYIZJU','41YdYtEk','apply','103539lkyicJ','isFile','join','11bOAKSP','error','findProjectDirectory','4236488nDBxxz','2750538yGpZMU','getProjectConfig','12384NQJvtK','16mQgzmx'];a97c=function(){return l;};return a97c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98q=a98d;function a98c(){const t=['template/template.css','injectAtEndOfFile','export\x20{\x20','rewriteDestinationPathForEngine','test','pathFromProject','\x27;\x0a','react','imports','constructor','3202365XEuajw','\x20};\x0a','ssr','/imports/ui/hooks','.js','test/test.js','84042aylFSw','client','injectAtBeginningOfFile','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','theme','template','.app-tests.js','75670PmSjXd','create','1256tAWdew','11168046edLxwd','33942250kSxJAo','maka\x20g:hook\x20cool-hook','(((.+)+)+)+$','checkNpmPackage','@apollo/client\x20isomorphic-fetch','662640fzAoQS','apollo','true','fileName','lib','19yMkOoD','import\x20\x27','withTranslations','resourceName','import\x20\x27./','error','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','pathFromApp','className','startup','graphql','engines','import\x20{\x20','4928640VtTWaU','fsi','tsx','search','installNpmPackage','css','getProjectConfig','setTemplate','assign','dir','\x20}\x20from\x20\x27','8AfYEgd','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','.css','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','features','withValue','templates.js'];a98c=function(){return t;};return a98c();}(function(a,b){const o=a98d,c=a();while(!![]){try{const d=-parseInt(o(0x1ee))/0x1*(-parseInt(o(0x21d))/0x2)+-parseInt(o(0x1fb))/0x3+parseInt(o(0x206))/0x4*(-parseInt(o(0x217))/0x5)+parseInt(o(0x1e9))/0x6+parseInt(o(0x224))/0x7*(-parseInt(o(0x226))/0x8)+parseInt(o(0x227))/0x9+parseInt(o(0x228))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xe1552));const a98b=(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;};}()),a98a=a98b(this,function(){const p=a98d;return a98a['toString']()[p(0x1fe)]('(((.+)+)+)+$')['toString']()[p(0x216)](a98a)[p(0x1fe)](p(0x22a));});a98a();function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x1e8;let f=c[d];return f;},a98d(a,b);}import a98e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a98q(0x225)]({'name':'hook','aliases':['h'],'checkWhere':![],'usage':a98q(0x220),'shortDesc':a98q(0x1f4),'validOpts':['dir'],'examples':[a98q(0x229)]},async function(a,b){const r=a98q;try{const c=this[r(0x1fc)][r(0x22b)](r(0x214));if(!c){Log['error'](r(0x207));throw new UsageError();}const d=this[r(0x1fc)]['pathFromApp'](b),f=r(0x21a),g=this[r(0x1fc)][r(0x1f5)]({'pathParts':[f,b['dir'],paramCase(b[r(0x1f1)]),paramCase(b[r(0x1f1)])]}),h=await this[r(0x1fc)][r(0x201)]();this[r(0x1fc)][r(0x20b)](h,async()=>{const s=r;typeof h['template']['css']==='string'&&(h[s(0x222)][s(0x200)]=h[s(0x222)][s(0x200)]===s(0x1eb)?!![]:![],this[s(0x1fc)][s(0x202)](s(0x200),h[s(0x222)][s(0x200)]));h['engines'][s(0x1f8)]===s(0x1ea)&&!this['checkNpmPackage']('@apollo/client')&&(Log['warn'](s(0x209)),await this[s(0x1fc)][s(0x1ff)](s(0x1e8),{'cwd':d}));const i={'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[s(0x1f1)]),'name':pascalCase(b['resourceName']),'graphql':h[s(0x1f9)]['graphql'],'theme':h[s(0x1f9)][s(0x221)],'features':h[s(0x20a)],'myPath':a98e['relative'](this[s(0x1fc)][s(0x212)]({}),g),'fileName':paramCase(b[s(0x1f1)]),'isComponent':![],'isLayout':![],'withTranslations':h[s(0x20a)][s(0x1f0)]};this[s(0x1fc)][s(0x222)]({'srcPath':'hook/hook.js','destPath':g+s(0x21b),'context':i,'config':h,'framework':s(0x214)});h[s(0x222)][s(0x200)]&&(this[s(0x1fc)][s(0x222)]({'srcPath':s(0x20d),'destPath':g+s(0x208),'context':Object[s(0x203)]({},i,{'className':i['cssCaseName']}),'config':h}),this[s(0x1fc)][s(0x21f)]({'filePath':g+'.'+h['engines']['js'],'content':s(0x1f2)+i[s(0x1ec)]+'.'+h['engines'][s(0x200)]+'\x27;'}));h[s(0x1f9)][s(0x211)]!=='none'&&this[s(0x1fc)]['template']({'srcPath':s(0x21c),'destPath':g+s(0x223),'framework':s(0x214),'context':i,'config':h});const j=b['dir']?'/'+b[s(0x204)]+'/':'/',k=''+f+j+i[s(0x1ec)]+'/'+i[s(0x1ec)];let l;if(h[s(0x1f9)][s(0x219)]===s(0x1eb)){const m=this[s(0x1fc)]['pathFromApp']({'pathParts':[s(0x215),s(0x1f7),s(0x1ed),s(0x20c)]});l=this[s(0x1fc)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[s(0x1fc)][s(0x1f5)]({'pathParts':[s(0x215),s(0x1f7),s(0x21e),'templates.js']});l=this[s(0x1fc)][s(0x210)]({'pathParts':[n],'config':h});}h[s(0x1f9)][s(0x21e)]===s(0x214)?(h['engines']['js']===s(0x1fd)?this[s(0x1fc)][s(0x21f)]({'filePath':l,'content':'import\x20{\x20'+i[s(0x1f6)]+s(0x205)+k+s(0x213)}):this[s(0x1fc)][s(0x21f)]({'filePath':l,'content':s(0x1fa)+i[s(0x1f6)]+s(0x205)+k+'.'+h[s(0x1f9)]['js']+s(0x213)}),this[s(0x1fc)]['injectAtEndOfFile']({'filePath':l,'content':s(0x20f)+i[s(0x1f6)]+s(0x218)})):this[s(0x1fc)][s(0x20e)]({'filePath':l,'content':s(0x1ef)+k+'.'+h[s(0x1f9)]['js']+'\x27;\x0a'});});}catch(i){Log[r(0x1f3)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99k=a99d;function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x18a;let f=c[d];return f;},a99d(a,b);}(function(a,b){const h=a99d,c=a();while(!![]){try{const d=-parseInt(h(0x18d))/0x1+parseInt(h(0x18a))/0x2*(parseInt(h(0x19d))/0x3)+parseInt(h(0x195))/0x4*(-parseInt(h(0x196))/0x5)+-parseInt(h(0x18e))/0x6+parseInt(h(0x191))/0x7*(-parseInt(h(0x197))/0x8)+parseInt(h(0x1a3))/0x9+parseInt(h(0x192))/0xa*(parseInt(h(0x199))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xe7dc9));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a99d;if(c){const e=c[i(0x1a1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const j=a99d;return a99a[j(0x19f)]()[j(0x1a2)](j(0x1a6))[j(0x19f)]()[j(0x1a0)](a99a)['search']('(((.+)+)+)+$');});a99a();import{Generator}from'../generator.js';function a99c(){const n=['fsi','959714jlAKBe','207030fxTgnF','getProjectConfig','NIE','9093FiHoWP','1870dWZPWM','error','type','136opwMEA','175010baNfBU','472EgqdzO','engines','70961sPybzO','map','leaflet-map','maka\x20g:kit\x20--type=map','9ExmhIf','kit','toString','constructor','apply','search','11297493JagExI','maka\x20g:k\x20city-map\x20--type=leaflet-map','create','(((.+)+)+)+$','notice','499346KzXnWt','login'];a99c=function(){return n;};return a99c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99k(0x1a5)]({'name':a99k(0x19e),'aliases':['k'],'usage':'maka\x20{generate,\x20g}:{kit}\x20<kit-name>','shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':['type'],'examples':[a99k(0x19c),a99k(0x1a4)]},async function(a,b){const l=a99k;try{const c=this[l(0x18c)][l(0x18f)]();this['fsi']['withValue'](c,async()=>{const m=l,d={'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'type':b[m(0x194)],'engine':c[m(0x198)]['js'],'noRename':!![]},f=[m(0x19b),m(0x18b)];if(f['indexOf'](d[m(0x194)])<0x0){const g=d[m(0x194)]?d[m(0x194)]:'(blank)';Log[m(0x193)]('Invalid\x20type\x20'+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0x194)]===m(0x19a)&&Log[m(0x1a7)](m(0x190)),b[m(0x194)]===m(0x18b)&&Log[m(0x1a7)](m(0x190));});}catch(d){Log[l(0x193)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a100q=a100d;(function(a,b){const o=a100d,c=a();while(!![]){try{const d=parseInt(o(0x1b1))/0x1*(parseInt(o(0x1cc))/0x2)+parseInt(o(0x1e2))/0x3+parseInt(o(0x1cd))/0x4*(parseInt(o(0x1d6))/0x5)+-parseInt(o(0x1bb))/0x6*(-parseInt(o(0x1b8))/0x7)+parseInt(o(0x1a1))/0x8*(parseInt(o(0x1c3))/0x9)+parseInt(o(0x1be))/0xa*(parseInt(o(0x1cf))/0xb)+-parseInt(o(0x1d0))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x3a0fb));const a100b=(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;};}()),a100a=a100b(this,function(){const p=a100d;return a100a[p(0x1c5)]()[p(0x1d3)]('(((.+)+)+)+$')['toString']()[p(0x1df)](a100a)[p(0x1d3)](p(0x1a4));});function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x19e;let f=c[d];return f;},a100d(a,b);}a100a();import a100e from'path';import{Generator}from'../generator.js';function a100c(){const t=['maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','getProjectConfig','graphql','test','2LqnJdp','4vRFJcx','pathFromProject','649rrVhsu','14684016WsGfdV','setTemplate','maka\x20g:layout\x20mobile/iPhone8','search','client','engines','1435705jDPQfM','pathFromApp','rewriteDestinationPathForEngine','warn','.app-tests.js','template','fsi','\x20}\x20from\x20\x27','maka\x20g:l\x20web/safari','constructor','relative','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','630453mfZnLU','assign','ssr','.js','split','tsx','imports','startup','28744JawDeQ','import\x20{\x20','create','(((.+)+)+)+$','theme','injectAtBeginningOfFile','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','dir','\x20};\x0a','/imports/ui/layouts','react','component/component.js','css','withValue','withTranslations','string','162301KdFFwY','className','.css','templates.js','template/template.css','fileName','features','7MtEwHe','resourceName','true','633642IUFlHn','withHook','import\x20\x27','72950ntYoJO','findAppDirectory','\x27;\x0a','hook/hook.js','layout','666MBpdUw','api','toString','injectAtEndOfFile','ramda'];a100c=function(){return t;};return a100c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a100q(0x1a3)]({'name':a100q(0x1c2),'aliases':aliases,'usage':a100q(0x1c8),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a100q(0x1d2),a100q(0x1de)]},function(a,b){const r=a100q,c=r(0x1aa),d=this['fsi'][r(0x1bf)](),e=this[r(0x1dc)][r(0x1d7)]({'pathParts':[c,b[r(0x1a8)],paramCase(b[r(0x1b9)]),paramCase(b[r(0x1b9)])]}),f=this[r(0x1dc)][r(0x1c9)]();this[r(0x1dc)][r(0x1ae)](f,()=>{const s=r;typeof f[s(0x1db)][s(0x1cb)]===s(0x1b0)&&(f['template']['test']=f[s(0x1db)][s(0x1cb)]===s(0x1ba)?!![]:![],this[s(0x1dc)][s(0x1d1)](s(0x1cb),f[s(0x1db)][s(0x1cb)]));typeof f['template']['css']==='string'&&(f['template'][s(0x1ad)]=f[s(0x1db)]['css']===s(0x1ba)?!![]:![],this[s(0x1dc)][s(0x1d1)](s(0x1ad),f[s(0x1db)][s(0x1ad)]));typeof f[s(0x1db)]['js']==='string'&&(f[s(0x1db)]['js']=f[s(0x1db)]['js']==='true'?!![]:![],this[s(0x1dc)][s(0x1d1)]('js',f['template']['js']));!f['features']&&(f[s(0x1b7)]={});const g=b['_']?b['_'][0x0][s(0x1e6)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this['checkNpmPackage'](s(0x1c7))&&(Log['warn'](s(0x1a7)),this['fsi']['installNpmPackage'](s(0x1c7),{'cwd':d}));if(h&&!this['checkNpmPackage'](s(0x1ab))){Log[s(0x1d9)](s(0x1e1));return;}const i={'name':pascalCase(b[s(0x1b9)]),'myPath':a100e[s(0x1e0)](this[s(0x1dc)][s(0x1ce)]({}),e),'cssCaseName':paramCase(b[s(0x1b9)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0x1b9)]),'fileName':paramCase(b[s(0x1b9)]),'graphql':f['engines'][s(0x1ca)],'features':f[s(0x1b7)],'client':f[s(0x1d5)][s(0x1d4)],'api':f[s(0x1d5)][s(0x1c4)],'ssr':f['engines'][s(0x1e4)],'test':f[s(0x1d5)][s(0x1cb)],'theme':f[s(0x1d5)][s(0x1a5)],'isComponent':![],'isLayout':!![],'withTranslations':f[s(0x1b7)][s(0x1af)]};f[s(0x1b7)]?.['withHooks']||b[s(0x1bc)]?this[s(0x1dc)]['template']({'srcPath':s(0x1c1),'destPath':e+s(0x1e5),'framework':s(0x1ab),'context':i,'config':f}):this[s(0x1dc)][s(0x1db)]({'srcPath':s(0x1ac),'destPath':e+'.js','framework':s(0x1ab),'context':i,'config':f});f[s(0x1d5)][s(0x1cb)]!=='none'&&this[s(0x1dc)][s(0x1db)]({'srcPath':'test/test.js','destPath':e+s(0x1da),'framework':s(0x1ab),'context':i,'config':f});f['template'][s(0x1ad)]&&(this[s(0x1dc)][s(0x1db)]({'srcPath':s(0x1b5),'destPath':e+s(0x1b3),'context':Object[s(0x1e3)]({},i,{'className':paramCase(b[s(0x1b9)])}),'config':f}),this['fsi'][s(0x1a6)]({'filePath':e+'.'+f[s(0x1d5)]['js'],'content':'import\x20\x27./'+i['fileName']+'.'+f['engines']['css']+'\x27;'}));const j=b['dir']?'/'+b['dir']+'/':'/',k=''+c+j+i[s(0x1b6)]+'/'+i[s(0x1b6)];let l;if(f[s(0x1d5)][s(0x1e4)]===s(0x1ba)){const m=this[s(0x1dc)]['pathFromApp']({'pathParts':[s(0x19f),s(0x1a0),'lib',s(0x1b4)]});l=this[s(0x1dc)][s(0x1d8)]({'pathParts':[m],'config':f});}else{const n=this['fsi'][s(0x1d7)]({'pathParts':[s(0x19f),s(0x1a0),'client',s(0x1b4)]});l=this[s(0x1dc)][s(0x1d8)]({'pathParts':[n],'config':f});}f[s(0x1d5)][s(0x1d4)]===s(0x1ab)?(f['engines']['js']===s(0x19e)?this[s(0x1dc)]['injectAtBeginningOfFile']({'filePath':l,'content':'import\x20{\x20'+i[s(0x1b2)]+s(0x1dd)+k+'\x27;\x0a'}):this[s(0x1dc)][s(0x1a6)]({'filePath':l,'content':s(0x1a2)+i[s(0x1b2)]+s(0x1dd)+k+'.'+f['engines']['js']+s(0x1c0)}),this[s(0x1dc)][s(0x1c6)]({'filePath':l,'content':'export\x20{\x20'+i['className']+s(0x1a9)})):this[s(0x1dc)][s(0x1c6)]({'filePath':l,'content':s(0x1bd)+k+'.'+f['engines']['js']+'\x27;\x0a'});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=-parseInt(f(0x102))/0x1+-parseInt(f(0x113))/0x2+parseInt(f(0x104))/0x3*(parseInt(f(0x112))/0x4)+-parseInt(f(0x10c))/0x5*(-parseInt(f(0x109))/0x6)+parseInt(f(0x10e))/0x7+parseInt(f(0x111))/0x8+-parseInt(f(0x10d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x26f50));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0x114)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a[h(0x107)]()[h(0x106)]('(((.+)+)+)+$')['toString']()[h(0x10b)](a101a)['search'](h(0x105));});a101a();function a101c(){const j=['constructor','950EjOufK','4667256sNDkqB','2036111WBQJGv','maka\x20g:hook\x20cool-hook','maka\x20generate:api\x20Trucks','1117928JbQknD','4HODPuI','192448orbgqa','apply','66127NfQXWT','Maka!','929847ylZWQP','(((.+)+)+)+$','search','toString','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','3156eDAqde','\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'];a101c=function(){return j;};return a101c();}import{Generator}from'../generator.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x102;let f=c[d];return f;},a101d(a,b);}const MakaGen=new Generator({'name':'maka','shortDesc':a101i(0x103),'validOpts':[],'description':a101i(0x10a),'usage':a101i(0x108),'examples':[a101i(0x110),a101i(0x10f)]},function(){return null;});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a102n=a102d;(function(a,b){const k=a102d,c=a();while(!![]){try{const d=-parseInt(k(0x1a4))/0x1+-parseInt(k(0x189))/0x2*(-parseInt(k(0x1ab))/0x3)+-parseInt(k(0x18a))/0x4+-parseInt(k(0x192))/0x5+-parseInt(k(0x196))/0x6*(parseInt(k(0x193))/0x7)+parseInt(k(0x18d))/0x8*(parseInt(k(0x1a7))/0x9)+parseInt(k(0x1a2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xb4a71));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a102d;if(c){const e=c[l(0x19a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const m=a102d;return a102a[m(0x1a5)]()[m(0x19b)](m(0x1a9))[m(0x1a5)]()[m(0x197)](a102a)[m(0x19b)]('(((.+)+)+)+$');});a102a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'method','aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a102n(0x19c),'validOpts':[a102n(0x19e)],'examples':[a102n(0x1a1)]},function(a,b){const o=a102n;try{const c=this[o(0x18c)][o(0x198)]();this[o(0x18c)]['withValue'](c,async()=>{const p=o,d=paramCase(b[p(0x18f)]),f={'name':b[p(0x18f)],'fileName':d,'className':pascalCase(b[p(0x18f)]),'camelCase':camelCase(b[p(0x18f)]),'noRename':!![]};let g='js';c[p(0x1a8)]['js']==='tsx'&&(g='ts');const h=this[p(0x18c)][p(0x1a0)]({});(!this[p(0x18c)]['checkMeteorPackage'](p(0x1a3))||!this[p(0x18c)]['checkMeteorPackage']('ddp-rate-limiter')||!this[p(0x18c)]['checkMeteorPackage'](p(0x18b)))&&(Log[p(0x19f)]('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this['fsi'][p(0x194)](p(0x199),{'cwd':h}));this[p(0x18c)]['template']({'srcPath':p(0x195),'destPath':this['fsi']['pathFromApp']({'pathParts':[p(0x188),p(0x190),b[p(0x1a6)],p(0x191),b[p(0x19e)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b['dir']?'/'+b[p(0x19e)]+'/':'/',j=this['fsi']['pathFromApp']({'pathParts':[p(0x188),'startup',b[p(0x1a6)],p(0x1ac)+c[p(0x1a8)]['js']]});this[p(0x18c)][p(0x187)]({'filePath':j,'content':p(0x18e)+i+d+p(0x1aa)});});}catch(d){Log[o(0x19d)](d);}});function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x187;let f=c[d];return f;},a102d(a,b);}function a102c(){const q=['check\x20ddp-rate-limiter\x20mdg:validated-method','apply','search','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','error','dir','warn','pathFromApp','maka\x20g:method\x20todos','29211540Czuzzv','check','85712GsMJfE','toString','appPathPrefix','4041hoaOII','engines','(((.+)+)+)+$','-rpc-method\x27;','1907547fyjlbC','index.','injectAtEndOfFile','imports','2CNtBBZ','4477128FNAjtF','mdg:validated-method','fsi','2424gajziV','import\x20\x27./methods','resourceName','startup','methods','2391190aesdsB','467845GOVEuo','installMeteorPackage','method/method.js','114QcabJg','constructor','getProjectConfig'];a102c=function(){return q;};return a102c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a103n=a103d;(function(a,b){const l=a103d,c=a();while(!![]){try{const d
|
|
1
|
+
const a103n=a103d;function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x172;let f=c[d];return f;},a103d(a,b);}(function(a,b){const l=a103d,c=a();while(!![]){try{const d=parseInt(l(0x17c))/0x1+-parseInt(l(0x181))/0x2*(-parseInt(l(0x19c))/0x3)+-parseInt(l(0x195))/0x4+parseInt(l(0x18d))/0x5*(-parseInt(l(0x19b))/0x6)+parseInt(l(0x17f))/0x7+parseInt(l(0x18f))/0x8*(parseInt(l(0x183))/0x9)+-parseInt(l(0x17b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x2687a));const a103b=(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;};}()),a103a=a103b(this,function(){const m=a103d;return a103a[m(0x184)]()[m(0x197)](m(0x175))[m(0x184)]()[m(0x17a)](a103a)[m(0x197)](m(0x175));});a103a();import a103e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a103c(){const r=['hasOwnProperty','1144496DQcEwm','resourceName','search','client','theme','.js','1418646WkMFfM','12327EksoLm','packages','dir','package/package.js','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','/package.js','getProjectConfig','(((.+)+)+)+$','package/','maka\x20g:package\x20todos:package','lib','template/template.js','constructor','1586660DCCuLs','163990mZRUye','fsi','/client/','890841JPGANr','tests/client','146XSgZIT','component','27XlPHzr','toString','relative','engines','pathFromApp','package.js','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','graphql','server','pathFromAppWithNoReWrite','5KfLbHM','forEach','660904zGKnyO','template','create','features','tests/server'];a103c=function(){return r;};return a103c();}Generator[a103n(0x191)]({'name':'package','aliases':['p'],'usage':a103n(0x189),'shortDesc':a103n(0x172),'validOpts':['dir'],'examples':[a103n(0x177)]},async function(a,b){const o=a103n,c=paramCase(b[o(0x196)]),d=this[o(0x17d)][o(0x187)]({'pathParts':[o(0x19d),b[o(0x19e)],c]}),e=this['fsi'][o(0x18c)]({'pathParts':[o(0x19d),b['dir'],c,o(0x188)]}),f=this[o(0x17d)][o(0x174)]();this[o(0x17d)]['withValue'](f,async()=>{const p=o,g={'name':paramCase(b[p(0x196)]),'myPath':a103e[p(0x185)](this[p(0x17d)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[p(0x196)]),'className':pascalCase(b[p(0x196)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[p(0x186)][p(0x198)],'graphql':f['engines'][p(0x18a)],'ssr':f[p(0x186)]['ssr'],'isComponent':b[p(0x194)](p(0x182)),'isLayout':b['hasOwnProperty']('layout'),'isStore':b['hasOwnProperty']('store'),'features':f[p(0x192)],'noRename':!![],'theme':f[p(0x186)][p(0x199)]};this[p(0x17d)][p(0x190)]({'srcPath':p(0x19f),'destPath':e,'context':g,'config':f}),g['noRename']=![];const h=d+p(0x17e)+c+p(0x19a);this[p(0x17d)]['template']({'srcPath':p(0x179),'destPath':h,'context':g,'config':f});const i=[p(0x178),p(0x18b),p(0x180),p(0x193)];i[p(0x18e)](j=>{const q=p,k=d+'/'+j+'/'+c+q(0x19a);this[q(0x17d)][q(0x190)]({'srcPath':q(0x176)+j+q(0x173),'destPath':k,'context':g,'config':f});});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a104c(){const s=['fileName','toString','Updating\x20npm\x20packages\x20...','graphql','template/template.html','component/component.js','store','vanilla','setTemplate','create','resourceName','2FyyEFr','constructor','templates.js','fsi','219306ufkrPN','ramda','test/test.js','client','injectAtBeginningOfFile','.app-tests.js','13482387uGVJcM','rewriteDestinationPathForEngine','pathFromApp','engines','withValue','hook/hook.js','features','hasOwnProperty','template','dir','search','installNpmPackage','6742800gIObyc','template/template.css','startup','css','html','true','\x27;\x0a','import\x20\x27./','Generate\x20a\x20page.','className','component','withHook','string','injectAtEndOfFile','react','ssr','128EypuPU','imports','layout','206983KMQHnJ','pathFromProject','checkNpmPackage','export\x20{\x20','.js','import\x20{\x20','lib','3691245SfMqII','relative','page','test','api','apply','withTranslations','withHooks','warn','\x20};\x0a','3830930vzrymX','maka\x20g:page\x20todos/todos-item','.css','(((.+)+)+)+$','3457536IbfCfi'];a104c=function(){return s;};return a104c();}const a104p=a104d;(function(a,b){const m=a104d,c=a();while(!![]){try{const d=parseInt(m(0x1c8))/0x1+parseInt(m(0x1c4))/0x2*(-parseInt(m(0x1aa))/0x3)+parseInt(m(0x1b8))/0x4+parseInt(m(0x1b4))/0x5+parseInt(m(0x1da))/0x6+-parseInt(m(0x1a3))/0x7*(-parseInt(m(0x1a0))/0x8)+-parseInt(m(0x1ce))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xaf5f2));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a104d;if(c){const e=c[n(0x1af)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const o=a104d;return a104a[o(0x1ba)]()[o(0x1d8)](o(0x1b7))[o(0x1ba)]()[o(0x1c5)](a104a)[o(0x1d8)]('(((.+)+)+)+$');});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-0x197;let f=c[d];return f;},a104d(a,b);}Generator[a104p(0x1c2)]({'name':a104p(0x1ac),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a104p(0x198),'validOpts':['dir',a104p(0x19b)],'examples':[a104p(0x1b5)]},function(a,b){const q=a104p,c='/imports/ui/pages',d=this[q(0x1c7)][q(0x1d0)](b),e=this[q(0x1c7)]['pathFromApp']({'pathParts':[c,b['dir'],paramCase(b[q(0x1c3)]),paramCase(b[q(0x1c3)])]}),f=this['fsi']['getProjectConfig']();this[q(0x1c7)][q(0x1d2)](f,()=>{const r=q;typeof f[r(0x1d6)][r(0x1de)]==='string'&&(f[r(0x1d6)][r(0x1de)]=f[r(0x1d6)][r(0x1de)]===r(0x1df)?!![]:![],this['fsi'][r(0x1c1)](r(0x1de),f[r(0x1d6)][r(0x1de)]));typeof f[r(0x1d6)]['test']===r(0x19c)&&(f['template'][r(0x1ad)]=f['template'][r(0x1ad)]==='true'?!![]:![],this['fsi'][r(0x1c1)](r(0x1ad),f['template'][r(0x1ad)]));typeof f[r(0x1d6)][r(0x1dd)]===r(0x19c)&&(f[r(0x1d6)][r(0x1dd)]=f[r(0x1d6)]['css']===r(0x1df)?!![]:![],this[r(0x1c7)][r(0x1c1)]('css',f[r(0x1d6)][r(0x1dd)]));typeof f[r(0x1d6)]['js']===r(0x19c)&&(f[r(0x1d6)]['js']=f[r(0x1d6)]['js']==='true'?!![]:![],this[r(0x1c7)]['setTemplate']('js',f[r(0x1d6)]['js']));!f[r(0x1d4)]&&(f[r(0x1d4)]={});!b['root']&&!this[r(0x1c7)][r(0x1a5)](r(0x1c9))&&(Log[r(0x1b2)](r(0x1bb)),this['fsi'][r(0x1d9)]('ramda',{'cwd':d}));const g={'name':pascalCase(b[r(0x1c3)]),'myPath':a104e[r(0x1ab)](this[r(0x1c7)][r(0x1a4)]({}),e),'cssCaseName':paramCase(b[r(0x1c3)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'graphql':f['engines'][r(0x1bc)],'features':f[r(0x1d4)],'client':f['engines'][r(0x1cb)],'api':f[r(0x1d1)][r(0x1ae)],'ssr':f[r(0x1d1)][r(0x19f)],'isStore':b['hasOwnProperty'](r(0x1bf)),'isComponent':b[r(0x1d5)](r(0x19a)),'isLayout':b[r(0x1d5)](r(0x1a2)),'withTranslations':f[r(0x1d4)][r(0x1b0)],'test':f[r(0x1d1)]['test'],'theme':f[r(0x1d1)]['theme']};f[r(0x1d6)][r(0x1de)]&&this[r(0x1c7)][r(0x1d6)]({'srcPath':r(0x1bd),'destPath':e+'.html','context':g,'config':f});f[r(0x1d4)]?.[r(0x1b1)]||b['withHook']?this[r(0x1c7)]['template']({'srcPath':r(0x1d3),'destPath':e+r(0x1a7),'framework':r(0x19e),'context':g,'config':f}):this[r(0x1c7)][r(0x1d6)]({'srcPath':r(0x1be),'destPath':e+r(0x1a7),'framework':'react','context':g,'config':f});f[r(0x1d1)][r(0x1ad)]!=='none'&&this[r(0x1c7)]['template']({'srcPath':r(0x1ca),'destPath':e+r(0x1cd),'framework':r(0x19e),'context':g,'config':f});f[r(0x1d6)][r(0x1dd)]&&this['fsi']['template']({'srcPath':r(0x1db),'destPath':e+r(0x1b6),'context':Object['assign']({},g,{'className':paramCase(b[r(0x1c3)])}),'config':f});f[r(0x1d1)][r(0x1cb)]!==r(0x19e)&&f['engines']['client']!==r(0x1c0)?(f[r(0x1d6)][r(0x1dd)]&&this[r(0x1c7)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x1d1)]['js'],'content':r(0x197)+g[r(0x1b9)]+'.'+f['engines'][r(0x1de)]+r(0x1e0)+r(0x197)+g[r(0x1b9)]+'.'+f[r(0x1d1)][r(0x1dd)]+'\x27;'}),!f[r(0x1d6)][r(0x1dd)]&&this[r(0x1c7)][r(0x1cc)]({'filePath':e+'.'+f['engines']['js'],'content':r(0x197)+g['fileName']+'.'+f[r(0x1d1)][r(0x1de)]+'\x27;'})):f['template'][r(0x1dd)]&&this[r(0x1c7)][r(0x1cc)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g[r(0x1b9)]+'.'+f[r(0x1d1)][r(0x1dd)]+'\x27;'});const h=b[r(0x1d7)]?'/'+b[r(0x1d7)]+'/':'/',i=''+c+h+g[r(0x1b9)]+'/'+g[r(0x1b9)];let j;if(f[r(0x1d1)][r(0x19f)]===r(0x1df)){const k=this['fsi'][r(0x1d0)]({'pathParts':[r(0x1a1),r(0x1dc),r(0x1a9),r(0x1c6)]});j=this[r(0x1c7)][r(0x1cf)]({'pathParts':[k],'config':f});}else{const l=this[r(0x1c7)][r(0x1d0)]({'pathParts':[r(0x1a1),'startup','client','templates.js']});j=this[r(0x1c7)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f[r(0x1d1)][r(0x1cb)]===r(0x19e)?(f['engines']['js']==='tsx'?this[r(0x1c7)][r(0x1cc)]({'filePath':j,'content':r(0x1a8)+g[r(0x199)]+'\x20}\x20from\x20\x27'+i+r(0x1e0)}):this['fsi'][r(0x1cc)]({'filePath':j,'content':r(0x1a8)+g[r(0x199)]+'\x20}\x20from\x20\x27'+i+'.'+f[r(0x1d1)]['js']+r(0x1e0)}),this[r(0x1c7)][r(0x19d)]({'filePath':j,'content':r(0x1a6)+g[r(0x199)]+r(0x1b3)})):this['fsi'][r(0x19d)]({'filePath':j,'content':'import\x20\x27'+i+'.'+f[r(0x1d1)]['js']+r(0x1e0)});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a105k=a105d;(function(a,b){const h=a105d,c=a();while(!![]){try{const d=parseInt(h(0x1cd))/0x1*(parseInt(h(0x1dd))/0x2)+parseInt(h(0x1d5))/0x3*(-parseInt(h(0x1c7))/0x4)+parseInt(h(0x1ca))/0x5*(-parseInt(h(0x1c6))/0x6)+parseInt(h(0x1d9))/0x7*(-parseInt(h(0x1da))/0x8)+-parseInt(h(0x1d8))/0x9+parseInt(h(0x1c9))/0xa+parseInt(h(0x1cc))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xc9332));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a105d;if(c){const e=c[i(0x1d0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const j=a105d;return a105a[j(0x1db)]()[j(0x1df)](j(0x1d6))[j(0x1db)]()['constructor'](a105a)[j(0x1df)](j(0x1d6));});function a105c(){const n=['Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','9868280KoZMlH','830mUnUKd','withValue','4369288jNXecw','976362PtOlxC','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','injectAtEndOfFile','apply','getProjectConfig','templateContent','publish','engines','3ELLnSH','(((.+)+)+)+$','resourceName','5584716QxCQOw','327607JTKFsB','80AqgoTC','toString','tsx','2EBIVJy','fsi','search','maka\x20g:publish\x20todos','create','9222nLtigv','770432ykkskn'];a105c=function(){return n;};return a105c();}a105a();import{paramCase}from'change-case';import{Generator}from'../generator.js';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x1c6;let f=c[d];return f;},a105d(a,b);}Generator[a105k(0x1e1)]({'name':a105k(0x1d3),'aliases':['p'],'usage':a105k(0x1ce),'shortDesc':a105k(0x1c8),'validOpts':[],'examples':[a105k(0x1e0)]},async function(a,b){const l=a105k,c=this[l(0x1de)][l(0x1d1)]();this[l(0x1de)][l(0x1cb)](c,async()=>{const m=l,d={'name':b[m(0x1d7)],'collection':paramCase(b['resourceName']),'noRename':!![]};let e='js';c[m(0x1d4)]['js']===m(0x1dc)&&(e='ts');const f=this[m(0x1de)]['rewriteDestinationPathForEngine']({'pathParts':['server/publish.'+c['engines']['js']]}),g=this[m(0x1de)][m(0x1d2)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x1de)][m(0x1cf)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a106y=a106d;(function(a,b){const v=a106d,c=a();while(!![]){try{const d=parseInt(v(0xdc))/0x1+parseInt(v(0xe6))/0x2+parseInt(v(0xc5))/0x3*(parseInt(v(0xd3))/0x4)+parseInt(v(0xcf))/0x5*(-parseInt(v(0x106))/0x6)+parseInt(v(0xed))/0x7+parseInt(v(0x104))/0x8*(-parseInt(v(0xc6))/0x9)+parseInt(v(0xfe))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xedd4a));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a106d;if(c){const e=c[w(0x102)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const x=a106d;return a106a[x(0xd7)]()[x(0xd0)](x(0xe4))[x(0xd7)]()[x(0xf6)](a106a)['search'](x(0xe4));});a106a();function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xc4;let f=c[d];return f;},a106d(a,b);}import a106e from'path';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';function a106c(){const H=['includes','44gcahoA','/imports/ui/pages','maka\x20g:route\x20lists/listIndex\x20lists','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','toString','private','\x0a\x09\x09','Scaffolding\x20for\x20a\x20Route.','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','30655jFpbDW','url','error','config','PrivateLayout','templateName','only','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','(((.+)+)+)+$','route','466816pTVgCN','filter','true','rewriteDestinationPathForEngine','routes.js','withValue','startup','6863724WllhaJ','route/route.js','withHook','</Router>','maka\x20g:route\x20todosIndex\x20todos','join','vanilla','page','const\x20publicRoutes\x20=\x20(<>','constructor','react','injectAfterLineNumber','ssr','map','root','layout','client','15326970DsOtgG','imports','newForm','invoke','apply','readFileLines','2008OqnOfD','const\x20privateRoutes\x20=\x20(<>','6gyEJIU','<Route','fsi','78762PaOOmi','35280dtmRrA','MasterLayout','length','engines','pathFromApp','indexOf','templateContent','features','lib','5540060Pwdnnr','search','withTranslations'];a106c=function(){return H;};return a106c();}const aliases=['r'];Generator['create']({'name':a106y(0xe5),'aliases':aliases,'validOpts':[a106y(0xd8),'layout',a106y(0xe2),'cwd',a106y(0xdf),'root',a106y(0xef),a106y(0xdd)],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','shortDesc':a106y(0xda),'examples':[a106y(0xf1),'maka\x20g:route\x20todosEdit\x20todos/:id/edit',a106y(0xd6),a106y(0xd5)]},function(a,b){const z=a106y;try{const c=this[z(0xc4)]['getProjectConfig']();this[z(0xc4)][z(0xeb)](c,async()=>{const A=z,d=b[A(0xd8)]??![];let f=paramCase(a[0x0]),g='/'+f;a[A(0xc8)]>0x1&&(g='/'+a[A(0xe7)](function(l){return l!=='/';})[A(0xf2)]('/')['toLowerCase']());f=camelCase(f);b[A(0xfc)]&&(b[A(0xfc)]=camelCase(b['layout']));const h=a106e[A(0xf2)](A(0xd4),f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b[A(0xfc)]||A(0xc7),'templatePath':h,'templateName':pascalCase(f),'client':c[A(0xc9)]['client'],'newForm':![],'withTranslations':c[A(0xcd)][A(0xd1)]};d&&(i['layout']=A(0xe0));if(!b[A(0xfb)]){const l=a106f['findGenerator'](A(0xf4));l&&await l[A(0x101)](a,b);}let j,k;if(c[A(0xc9)]['client']===A(0xf7)){if(c[A(0xc9)][A(0xf9)]===A(0xe8)){const p=this[A(0xc4)][A(0xca)]({'pathParts':[A(0xff),'startup',A(0xce),A(0xea)]});j=this[A(0xc4)][A(0xe9)]({'pathParts':[p],'config':c});}else{const q=this[A(0xc4)][A(0xca)]({'pathParts':['imports',A(0xec),A(0xfd),'routes.js']});j=this[A(0xc4)][A(0xe9)]({'pathParts':[q],'config':c});}const m=this[A(0xc4)][A(0x103)](j)['map']((r,s)=>{const B=A;return r[B(0xd2)](B(0xdb))?s+0x1:null;})[A(0xe7)](r=>r!==null);let n=this[A(0xc4)][A(0x103)](j)['map']((r,s)=>{const C=A;return r[C(0xd2)]('const\x20publicRoutes\x20=\x20(<>')?s+0x1:null;})[A(0xe7)](r=>r!==null),o=this[A(0xc4)][A(0x103)](j)[A(0xfa)]((r,s)=>{const D=A;return r[D(0xd2)](D(0x105))?s+0x1:null;})[A(0xe7)](r=>r!==null);n['length']>0x0&&o[A(0xc8)]>0x0&&(i[A(0x100)]=!![]);k=this[A(0xc4)][A(0xcc)]({'srcPath':A(0xee),'framework':A(0xf7),'context':i,'config':c});if(n[A(0xc8)]>0x0||o[A(0xc8)]>0x0){this[A(0xc4)][A(0xf8)]({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o[A(0xc8)]>0x0)o=this[A(0xc4)][A(0x103)](j)[A(0xfa)]((r,s)=>{const E=A;return r[E(0xd2)](E(0x105))?s+0x1:null;})[A(0xe7)](r=>r!==null),this['fsi'][A(0xf8)]({'filePath':j,'content':'\x09{'+i['templateName']+'}','lineNumber':o[0x0]});else n[A(0xc8)]>0x0?(n=this[A(0xc4)][A(0x103)](j)[A(0xfa)]((r,s)=>{const F=A;return r[F(0xd2)](F(0xf5))?s+0x1:null;})[A(0xe7)](r=>r!==null),this[A(0xc4)]['injectAfterLineNumber']({'filePath':j,'content':'\x09{'+i[A(0xe1)]+'}','lineNumber':n[0x0]})):Log['warn'](A(0xe3)+j);}else{const r=this['fsi'][A(0x103)](j)[A(0xfa)](u=>{const G=A;return u[G(0xd2)]('\x22*\x22');}),s=r[A(0xcb)](!![])>-0x1,t=s?A(0x107):A(0xf0);this[A(0xc4)]['injectIntoFile']({'filePath':j,'content':'\x0a\x09\x09'+k+A(0xd9),'begin':'<Router','end':t});}}else{if(c[A(0xc9)][A(0xfd)]===A(0xf3)){const u=this[A(0xc4)]['pathFromApp']({'pathParts':[A(0xff),'startup',A(0xfd),'routes.js']});j=this[A(0xc4)][A(0xe9)]({'pathParts':[u],'config':c}),k=this[A(0xc4)][A(0xcc)]({'srcPath':A(0xee),'context':i}),this[A(0xc4)]['injectAtEndOfFile']({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log[z(0xde)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107m=a107d;(function(a,b){const j=a107d,c=a();while(!![]){try{const d=parseInt(j(0x1d1))/0x1+-parseInt(j(0x1dd))/0x2+parseInt(j(0x1c6))/0x3*(-parseInt(j(0x1d7))/0x4)+parseInt(j(0x1e1))/0x5+parseInt(j(0x1d5))/0x6*(parseInt(j(0x1d6))/0x7)+parseInt(j(0x1d2))/0x8+parseInt(j(0x1bb))/0x9*(-parseInt(j(0x1c0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xde33d));function a107c(){const p=['3951670QqFQNu','18tpXKhc','maka\x20{generate,\x20g}:{service}\x20[service-type]','template','error','apply','1331150UXXuwq','pathFromApp','winston\x20setimmediate','search','svc','service','436152eTvccm','resourceName','fsi','logger','installNpmPackage','withValue','Installing\x20winston','toString','lib','imports','constructor','466426tPFzoF','8844816BpykSC','startup','create','4636326xBDCmQ','7CVBhOx','4HKncPj','services','engines','tsx','service/logger/logger.js','(((.+)+)+)+$','3626656FkSUze','maka\x20g:svc\x20logger','checkNpmPackage','type'];a107c=function(){return p;};return a107c();}const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a107d;if(c){const e=c[k(0x1bf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const l=a107d;return a107a[l(0x1cd)]()[l(0x1c3)]('(((.+)+)+)+$')['toString']()[l(0x1d0)](a107a)[l(0x1c3)](l(0x1dc));});a107a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x1bb;let f=c[d];return f;},a107d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a107m(0x1d4)]({'name':a107m(0x1c5),'aliases':[a107m(0x1c4)],'usage':a107m(0x1bc),'shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','validOpts':[a107m(0x1e0)],'validArgs':[a107m(0x1c9)],'maxArgLength':0x1,'minArgLength':0x1,'examples':[a107m(0x1de)]},async function(a,b){const n=a107m;try{const c=this[n(0x1c8)]['getProjectConfig']();this[n(0x1c8)][n(0x1cb)](c,async()=>{const o=n,d=this['fsi']['pathFromApp']({}),f=paramCase(b[o(0x1c7)]),g={'name':pascalCase(b[o(0x1c7)]),'fileName':f,'camelCase':camelCase(b[o(0x1c7)]),'type':a[0x0],'engine':c[o(0x1d9)]['js'],'noRename':!![]};let h='js';c[o(0x1d9)]['js']===o(0x1da)&&(h='ts');if(a[0x0]==='logger'){!this[o(0x1c8)][o(0x1df)]('winston')&&await this[o(0x1c8)][o(0x1ca)](o(0x1c2),{'cwd':d,'msg':o(0x1cc)});const i=this[o(0x1c8)][o(0x1c1)]({'pathParts':[o(0x1cf),o(0x1d3),o(0x1ce),o(0x1d8),f+'.'+h]});this[o(0x1c8)][o(0x1bd)]({'srcPath':o(0x1db),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x1be)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a108d,c=a();while(!![]){try{var d=-parseInt(f(0x8c))/0x1+-parseInt(f(0x92))/0x2+parseInt(f(0x8e))/0x3*(-parseInt(f(0x8d))/0x4)+-parseInt(f(0x93))/0x5+parseInt(f(0x88))/0x6+-parseInt(f(0x89))/0x7*(parseInt(f(0x90))/0x8)+parseInt(f(0x91))/0x9*(parseInt(f(0x86))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xefc00));function a108d(a,b){var c=a108c();return a108d=function(d,e){d=d-0x86;var f=c[d];return f;},a108d(a,b);}var a108b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a108d;if(c){var e=c[g(0x8b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){var h=a108d;return a108a[h(0x87)]()[h(0x8a)]('(((.+)+)+)+$')[h(0x87)]()['constructor'](a108a)[h(0x8a)](h(0x8f));});function a108c(){var i=['2735201doVowf','search','apply','1358472JZmcQW','4NoqPLN','1674339HNsEff','(((.+)+)+)+$','8acecbf','18yhkRyo','2272726WVPQtn','8996965uBYBzt','26984660UKoSkb','toString','4969008ltrxBC'];a108c=function(){return i;};return a108c();}a108a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a109k=a109d;(function(a,b){const i=a109d,c=a();while(!![]){try{const d=parseInt(i(
|
|
1
|
+
function a109c(){const n=['openssl.conf','getProjectConfig','3884656bhKGKy','41907GiYoRu','search','withValue','Generate\x20a\x20new\x20openssl\x20config\x20file','maka\x20{generate,\x20g}:sslconfig','100gdnizu','2406804XCRAAa','(((.+)+)+)+$','getGlobalConfig','maka\x20g:sslconfig\x20--env\x20dev','768146lEkZzc','getConfigPath','2362508sgBJtH','join','appName','sslconfig','1256605fdBSLx','9GvxMZX','2377400PDYqIv','service','create','toString','error','fsi','env'];a109c=function(){return n;};return a109c();}const a109k=a109d;(function(a,b){const i=a109d,c=a();while(!![]){try{const d=parseInt(i(0x198))/0x1+parseInt(i(0x193))/0x2*(-parseInt(i(0x18e))/0x3)+parseInt(i(0x19a))/0x4+parseInt(i(0x184))/0x5+-parseInt(i(0x194))/0x6+parseInt(i(0x182))/0x7+parseInt(i(0x18d))/0x8*(-parseInt(i(0x183))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x68a3a));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[j(0x187)]()[j(0x18f)]('(((.+)+)+)+$')[j(0x187)]()['constructor'](a109a)[j(0x18f)](j(0x195));});a109a();import{Generator}from'../../generator.js';function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x182;let f=c[d];return f;},a109d(a,b);}import{Log}from'../../tools/log/log.class.js';import a109e from'path';Generator[a109k(0x186)]({'name':a109k(0x19d),'usage':a109k(0x192),'shortDesc':a109k(0x191),'noResource':!![],'requiredOpts':['env'],'examples':[a109k(0x197)],'validOpts':[a109k(0x18a)]},async function(a,b){const l=a109k;try{const c=await this['fsi'][l(0x18c)](),d=await this[l(0x189)][l(0x196)](),f=this[l(0x189)][l(0x199)](b['env']),g=a109e[l(0x19b)](f,'_keys',l(0x18b));await this[l(0x189)][l(0x190)](c,async()=>{const m=l,h={'app':d[m(0x19c)],'noRename':!![]};await this['fsi']['template']({'srcPath':'openssl/openssl.conf','destPath':g,'framework':m(0x185),'context':h,'config':c});});}catch(h){Log[l(0x188)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a110A=a110d;
|
|
1
|
+
const a110A=a110d;(function(a,b){const x=a110d,c=a();while(!![]){try{const d=parseInt(x(0x216))/0x1*(-parseInt(x(0x1f0))/0x2)+-parseInt(x(0x1e4))/0x3+parseInt(x(0x21e))/0x4+-parseInt(x(0x20e))/0x5*(-parseInt(x(0x20b))/0x6)+parseInt(x(0x202))/0x7+parseInt(x(0x1f8))/0x8*(-parseInt(x(0x225))/0x9)+parseInt(x(0x21b))/0xa*(-parseInt(x(0x1ff))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x1dd36));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a110d;if(c){const e=c[y(0x1fd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const z=a110d;return a110a[z(0x214)]()['search'](z(0x21d))[z(0x214)]()[z(0x201)](a110a)[z(0x1f7)](z(0x21d));});function a110c(){const D=['index.','i18n','services','i18n/index.js','getProjectConfig','true','18SAJvFx','lib','default\x20as\x20','334790dNjmFD','findAppDirectory','export\x20{\x20default\x20as\x20','features.withTranslations','.js','i18n/locales.js','toString','exit','16417JcXLku','grep','checkNpmPackage','service','engines','101690MaIHQf','lang','(((.+)+)+)+$','595288ozknyg','create','imports','index.js','startup','error','template','45poeAyV','maka\x20g:translation\x20--lang=en\x20(default)','\x20}\x20from\x20\x27./','517338fwIvGG','i18n/i18n.js','ssr','maka\x20g:translation\x20--lang=fr','locales','warn','Locale\x20already\x20defined:\x20','maka\x20{generate,\x20g}:translation\x20--lang=<language>','translations','root','Generate\x20a\x20new\x20locale\x20translation','import\x20\x27../lib/services/translations/i18n\x27;\x0a','8TAfQNL','i18next','i18next\x20i18next-browser-languagedetector\x20react-i18next','fsi','pathFromApp','rewriteDestinationPathForEngine','injectAtBeginningOfFile','search','62616xRobjU','installNpmPackage','import\x20\x27../lib/services/translations/i18n\x27;','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','readFileSync','apply','withValue','44aFSWuR','translation','constructor','632765nvdmPK','isFile','getGlobalConfig'];a110c=function(){return D;};return a110c();}a110a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x1e2;let f=c[d];return f;},a110d(a,b);}import a110e from'fs';Generator[a110A(0x21f)]({'name':a110A(0x200),'usage':a110A(0x1eb),'aliases':[a110A(0x206)],'shortDesc':a110A(0x1ee),'noResource':!![],'examples':[a110A(0x1e2),a110A(0x1e7),'maka\x20g:translation\x20--lang=de'],'validOpts':[a110A(0x21c)]},function(a,b){const B=a110A;try{const c=this['fsi'][B(0x209)](),d=this[B(0x1f3)][B(0x204)](),f=this['fsi'][B(0x20f)]();this[B(0x1f3)][B(0x1fe)](c,()=>{const C=B;try{!b['lang']&&(b[C(0x21c)]='en');!b[C(0x1ed)]&&!this[C(0x1f3)][C(0x218)](C(0x1f1))&&(Log[C(0x1e9)](C(0x1fb)),this[C(0x1f3)][C(0x1f9)](C(0x1f2),{'cwd':f}),this[C(0x1f3)]['setProjectConfig'](C(0x211),!![]));const g=this['fsi'][C(0x1f4)]({'pathParts':[C(0x220),C(0x222),'client','index.js']}),h=this[C(0x1f3)]['rewriteDestinationPathForEngine']({'pathParts':[g],'config':c}),i=this['fsi'][C(0x217)](a110e['readFileSync'](h)[C(0x214)](),C(0x1fa))[0x0]&&!![];if(c[C(0x21a)][C(0x1e6)]===C(0x20a)){!i&&this[C(0x1f3)][C(0x1f6)]({'filePath':h,'content':C(0x1ef)});const t=this['fsi'][C(0x1f4)]({'pathParts':[C(0x220),'startup','server',C(0x221)]}),u=this[C(0x1f3)][C(0x1f5)]({'pathParts':[t],'config':c}),v=this[C(0x1f3)][C(0x217)](a110e[C(0x1fc)](u)['toString'](),C(0x1fa))[0x0]&&!![];!v&&this[C(0x1f3)][C(0x1f6)]({'filePath':u,'content':C(0x1ef)});}else!i&&this[C(0x1f3)]['injectAtBeginningOfFile']({'filePath':h,'content':C(0x1ef)});const j={'app':d['appName'],'config':c},k=this[C(0x1f3)]['pathFromApp']({'pathParts':[C(0x220),C(0x222),C(0x20c),C(0x207),'translations','i18n.js']}),l=this[C(0x1f3)]['isFile'](this[C(0x1f3)][C(0x1f5)]({'pathParts':[k],'config':c}));!l&&this['fsi']['template']({'srcPath':C(0x1e5),'destPath':k,'framework':C(0x219),'context':j,'config':c});const m=this[C(0x1f3)]['pathFromApp']({'pathParts':[C(0x220),C(0x222),C(0x20c),'services',C(0x1ec),C(0x1e8),b['lang']+C(0x212)]}),n=this[C(0x1f3)][C(0x1f5)]({'pathParts':[m],'config':c}),o=this['fsi'][C(0x203)](n);!o?this[C(0x1f3)][C(0x224)]({'srcPath':C(0x213),'destPath':m,'framework':C(0x219),'context':j,'config':c}):Log[C(0x1e9)](C(0x1ea)+n);const p=this[C(0x1f3)]['pathFromApp']({'pathParts':[C(0x220),C(0x222),'lib',C(0x207),C(0x1ec),C(0x1e8),C(0x205)+c['engines']['js']]}),q=this[C(0x1f3)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[C(0x1f3)][C(0x203)](q);!r&&this['fsi'][C(0x224)]({'srcPath':C(0x208),'destPath':p,'framework':C(0x219),'context':j,'config':c});const s=this[C(0x1f3)]['grep'](a110e['readFileSync'](p)[C(0x214)](),C(0x20d)+b['lang'])[0x0]&&!![];!s?this[C(0x1f3)]['injectAtEndOfFile']({'filePath':p,'content':C(0x210)+b[C(0x21c)]+C(0x1e3)+b['lang']+'\x27;'}):Log['warn']('Locale\x20already\x20exported:\x20'+p);}catch(w){Log[C(0x223)](w),process[C(0x215)](0x1);}});}catch(g){Log[B(0x223)](g),process[B(0x215)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a111c(){const m=['1235OLLxxI','19620iWIMSn','floor','--max-old-space-size=','env','run','slice','33KvEpny','argv','parse','12929oXjBCi','camelizeKeys','MAKA_COMMAND_PATH','constructor','TOOL_NODE_FLAGS','url','stringify','3660135dvadrj','1251QZHkpX','totalmem','62120aJaLMs','3448218wPOshK','BROWSERSLIST_IGNORE_OLD_DATA','toString','3815mLsJaw','96FySyZN','search','3640716GGigvf','18960LtZgTr'];a111c=function(){return m;};return a111c();}const a111l=a111d;(function(a,b){const j=a111d,c=a();while(!![]){try{const d=-parseInt(j(0x106))/0x1*(-parseInt(j(0xf8))/0x2)+parseInt(j(0xf0))/0x3+-parseInt(j(0xfd))/0x4*(parseInt(j(0xfc))/0x5)+parseInt(j(0xf4))/0x6+-parseInt(j(0xf7))/0x7*(-parseInt(j(0xfb))/0x8)+parseInt(j(0xf1))/0x9*(-parseInt(j(0xf3))/0xa)+parseInt(j(0x103))/0xb*(-parseInt(j(0xfa))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xb0390));function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0xec;let f=c[d];return f;},a111d(a,b);}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(0xf6)]()[k(0xf9)]('(((.+)+)+)+$')[k(0xf6)]()[k(0xec)](a111a)[k(0xf9)]('(((.+)+)+)+$');});a111a();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(0xee)]),__dirname=a111g['dirname'](__filename);global[a111l(0x108)]=__dirname;const total_memory=a111f[a111l(0xf2)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a111l(0xfe)](total_mem_in_mb),process[a111l(0x100)][a111l(0xed)]=a111l(0xff)+total_mem_in_mb,process['env'][a111l(0xf5)]='1';const argv=a111e(process[a111l(0x104)][a111l(0x102)](0x2)),args=argv['_'],deepCopyArgv=JSON[a111l(0x105)](JSON[a111l(0xef)](argv));delete deepCopyArgv['_'];const opts=a111h[a111l(0x107)](deepCopyArgv);a111i[a111l(0x101)](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a112k=a112d;
|
|
1
|
+
const a112k=a112d;(function(a,b){const h=a112d,c=a();while(!![]){try{const d=-parseInt(h(0x11a))/0x1*(parseInt(h(0x119))/0x2)+parseInt(h(0x103))/0x3+-parseInt(h(0xf6))/0x4+-parseInt(h(0xf7))/0x5+-parseInt(h(0x115))/0x6*(-parseInt(h(0xfc))/0x7)+parseInt(h(0x100))/0x8*(parseInt(h(0x117))/0x9)+parseInt(h(0xfb))/0xa*(parseInt(h(0x108))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x94f12));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a112d;if(c){const e=c[i(0x118)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const j=a112d;return a112a[j(0x111)]()[j(0x107)](j(0x10a))[j(0x111)]()['constructor'](a112a)['search']('(((.+)+)+)+$');});a112a();import a112e from'path';import a112f from'os';import a112g from'fs';function a112c(){const x=['options','.meteor','toString','forEach','description','Local','12ZbElaw','No\x20usage\x20provided.','5265XpcsaG','apply','1407154usKLzx','1uUkmtG','AppData','validateMakaProject','None','usage','aliases','platform','fsi','shortDesc','Invalid\x20options:\x20','config','Missing\x20required\x20option:\x20','root','length','name','3523412dqvhYT','4749405WHwclw','dir','join','match','15210130ASONAG','1215697IEpfMN','error','examples','docker','8864xRRaPs','parent','_handler','1883526jqvGZd','validateParams','existsSync','help','search','11XZsAYN','keys','(((.+)+)+)+$','push','includes','resourceName','concat'];a112c=function(){return x;};return a112c();}const homeDir=a112f['homedir']();function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0xee;let f=c[d];return f;},a112d(a,b);}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';export class Tool{[a112k(0xff)];[a112k(0xee)];[a112k(0x10f)];[a112k(0xf5)];[a112k(0x101)];[a112k(0x102)];constructor(){this['docker']=new Docker(),this['fsi']=new FSI();}[a112k(0xfa)](a){const l=a112k,b=[this[l(0xf5)]][l(0x10e)](this[l(0x10f)][l(0x11f)]||[]);return this[l(0x101)]&&b[l(0x10b)](this[l(0x101)]),b[l(0x10c)](a);}[a112k(0x11c)](){const m=a112k,a=this[m(0xee)]['findProjectDirectory']();return a!==![]?!![]:![];}['validateMeteorInstall'](){const n=a112k;let a=a112e[n(0xf9)](homeDir,n(0x110));const b=process[n(0x120)]==='win32';if(b){a=a112e[n(0xf9)](homeDir,n(0x11b),n(0x114),'.meteor');if(!a112g[n(0x105)](a))return![];}else{if(!a112g[n(0x105)](a))return![];}return!![];}[a112k(0x104)](a,b,c){const o=a112k,{requiredOpts:requiredOpts=[],validArgs:d}=c;let {validOpts:validOpts=[]}=c;const e=Object[o(0x109)](b);d?.['length']>0x0&&a[o(0x112)](f=>{const p=o;if(!d[p(0x10c)](f)){Log[p(0xfd)]('Invalid\x20argument:\x20'+f);throw new UsageError();}});if(requiredOpts?.['length']>0x0){if(e['length']===0x0){Log[o(0xfd)]('Missing\x20required\x20options\x20'+requiredOpts[o(0xf9)](',\x20'));throw new UsageError();}requiredOpts[o(0x112)](f=>{const q=o;if(!e['includes'](f)){Log[q(0xfd)](q(0xf2)+f);throw new UsageError();}});}validOpts=validOpts['concat'](requiredOpts),validOpts?.[o(0xf4)]>0x0&&(validOpts[o(0x10b)](o(0x106)),validOpts['push'](o(0x10d)),validOpts[o(0x10b)](o(0xf8)),validOpts[o(0x10b)]('cwd'),validOpts[o(0x10b)](o(0xf3)),validOpts[o(0x10b)](o(0xf1)),e[o(0x112)](f=>{const r=o;if(!validOpts[r(0x10c)](f)){Log[r(0xfd)](r(0xf0)+f);throw new UsageError();}}));}[a112k(0x113)](){const s=a112k;return this[s(0x10f)]['description']||this[s(0x10f)][s(0xef)]||'No\x20description\x20provided.';}[a112k(0xef)](){const t=a112k;return this['options'][t(0xef)]||'NIE';}[a112k(0x11e)](){const u=a112k;return this['options'][u(0x11e)]||u(0x116);}[a112k(0xfe)](){const v=a112k;return this['options'][v(0xfe)]||[];}[a112k(0x11f)](){const w=a112k;return this[w(0x10f)]['aliases']||w(0x11d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113i=a113d;(function(a,b){const f=a113d,c=a();while(!![]){try{const d=-parseInt(f(0x13f))/0x1+-parseInt(f(0x13a))/0x2*(parseInt(f(0x137))/0x3)+parseInt(f(0x142))/0x4+parseInt(f(0x131))/0x5+-parseInt(f(0x13b))/0x6*(parseInt(f(0x138))/0x7)+parseInt(f(0x136))/0x8+parseInt(f(0x134))/0x9*(-parseInt(f(0x132))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xd2f50));function a113c(){const m=['8054940odALsf','19052850EDxgxh','(((.+)+)+)+$','9sKFAUL','confirm','12686176wnnOkJ','30iFAVts','14OZqhen','prompt','5116RejgOy','4089444vuPXGH','ask','answer','toString','5240DTSRto','search','options','3866292rEdsUa','apply','constructor','input'];a113c=function(){return m;};return a113c();}function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x130;let f=c[d];return f;},a113d(a,b);}const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a113d;if(c){const e=c[g(0x143)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const h=a113d;return a113a['toString']()['search'](h(0x133))[h(0x13e)]()[h(0x144)](a113a)[h(0x140)](h(0x133));});a113a();import a113e from'inquirer';export class Actions{static async[a113i(0x13c)](a,b){const j=a113i,{answer:c}=await a113e[j(0x139)]({'type':b?'password':j(0x130),'name':j(0x13d),'message':a});return c;}static async[a113i(0x135)](a,b=![]){const k=a113i,{answer:c}=await a113e[k(0x139)]({'type':'confirm','name':k(0x13d),'message':a,'default':b});return c;}static async[a113i(0x141)](a){const l=a113i,b=await a113e[l(0x139)](a);return b;}}
|