@maka/maka-cli 4.9.13 → 4.9.15
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/patreon.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/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/api/api.js +6 -1
- package/bundle/obf/src/templates/meteor/api/api.js.ts +6 -1
- package/bundle/obf/src/templates/meteor/api/methods.js +5 -6
- package/bundle/obf/src/templates/meteor/api/methods.js.ts +5 -5
- package/bundle/obf/src/templates/meteor/api/register-api.js +2 -2
- package/bundle/obf/src/templates/meteor/api/register-api.js.ts +2 -2
- 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
|
|
1
|
+
const a115A=a115d;(function(a,b){const x=a115d,c=a();while(!![]){try{const d=parseInt(x(0x1ad))/0x1*(parseInt(x(0x181))/0x2)+-parseInt(x(0x18e))/0x3*(-parseInt(x(0x1ac))/0x4)+-parseInt(x(0x182))/0x5*(-parseInt(x(0x196))/0x6)+parseInt(x(0x188))/0x7+-parseInt(x(0x18c))/0x8*(-parseInt(x(0x17a))/0x9)+-parseInt(x(0x18a))/0xa+-parseInt(x(0x18b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x5dc40));function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x16f;let f=c[d];return f;},a115d(a,b);}const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a115d;if(c){const e=c[y(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const z=a115d;return a115a['toString']()[z(0x1a8)]('(((.+)+)+)+$')[z(0x172)]()[z(0x193)](a115a)[z(0x1a8)]('(((.+)+)+)+$');});a115a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a115e from'path';import a115f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a115A(0x180)]({'name':a115A(0x1b1),'aliases':['f'],'usage':a115A(0x1b5),'shortDesc':a115A(0x18d),'validOpts':['layouts'],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines['MATERIAL'],'client':ClientEngines[a115A(0x19b)]},'examples':[a115A(0x1a3),'maka\x20g:k:m:f'],'description':a115A(0x177)},async function(a,b){const B=a115A;try{const c=B(0x1a6),d=B(0x18f),f=this[B(0x17d)][B(0x1a4)](),g=f[B(0x1a2)]['ssr']===B(0x171);await this[B(0x17d)][B(0x173)](B(0x179),{'shouldInstall':!![]});const h=this[B(0x17d)][B(0x1ae)](),i=a115e[B(0x176)](h,'imports','ui','layouts'),j=this['fsi'][B(0x185)](i),k=await Actions[B(0x1aa)]({'type':B(0x187),'name':B(0x1a9),'message':B(0x190),'choices':j});if(k['layouts'][B(0x174)]===0x0){Log[B(0x194)](B(0x191));return;}const l=b[B(0x19c)]?B(0x1ab)+b['baseDir']:B(0x1b3),m=this[B(0x17d)][B(0x189)]({'pathParts':[l,b[B(0x1b0)],paramCase(c),paramCase(c)]}),n=this[B(0x17d)][B(0x189)]({'pathParts':[l,b[B(0x1b0)],paramCase(d),paramCase(d)]}),o={'name':headerCase(f[B(0x16f)])[B(0x199)]('-','\x20')};await this[B(0x17d)]['withValue'](f,async()=>{const C=B;await this['fsi'][C(0x195)]({'srcPath':C(0x198)+c+C(0x1a1),'destPath':m+C(0x1a1),'framework':C(0x17e),'context':o,'config':f,'force':![],'ignore':![]}),await this[C(0x17d)][C(0x195)]({'srcPath':C(0x184)+d+C(0x1a1),'destPath':n+C(0x1a1),'framework':C(0x17e),'context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b['dir']+'/'+c+'/'+c;await this[B(0x17d)][B(0x19d)](c,f,p);const q=''+l+b[B(0x1b0)]+'/'+d+'/'+d;await this[B(0x17d)][B(0x19d)](d,f,q);const {layouts:r}=k;for(const s of r){const t=this[B(0x17d)][B(0x186)](a115e['join'](i,s),{'extensions':[B(0x178),B(0x17f)],'omit':[B(0x17b),B(0x1a0),B(0x192)]});for(const u of t){const v=a115e[B(0x176)](i,s,u);await this[B(0x17d)][B(0x175)]({'filePath':v,'importName':pascalCase(c),'modulePath':g?'/imports/startup/lib/templates':B(0x19e),'isNamedExport':!![]}),await this['fsi'][B(0x1a5)]({'filePath':v,'content':'<'+pascalCase(c)+B(0x19a),'begin':[B(0x1b2)+s+'\x22>',B(0x1b2)+s+'-hook\x22>'],'end':['{this.props.children}',B(0x1a7),B(0x197),B(0x17c)]}),await this[B(0x17d)][B(0x175)]({'filePath':v,'importName':pascalCase(d),'modulePath':g?B(0x19f):'/imports/startup/client/templates','isNamedExport':!![]}),await this[B(0x17d)]['injectIntoFile']({'filePath':v,'content':'<'+pascalCase(d)+'\x20/>\x0a','begin':[B(0x1b2)+s+'\x22>',B(0x1b2)+s+B(0x1b4)],'end':[B(0x183),B(0x1a7),'{props.children}',B(0x17c)]});}}return!![];}catch(w){Log[B(0x194)](w);}},async function(){const D=a115A;console['log'](D(0x1af));},a115f);function a115c(){const E=['{this.props.children}','kit/mui/frame/drawers/','getDirectories','getFiles','checkbox','5334350wjYoAz','pathFromApp','4386180KJvjFW','14384183NpkejI','248CNZhQx','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','21mCvKQq','basic-drawer','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','No\x20layouts\x20selected','test','constructor','error','template','618WiIlJM','{props.children}','kit/mui/frame/app-bars/','replaceAll','\x20/>\x0a','REACT','baseDir','injectTemplateModule','/imports/startup/client/templates','/imports/startup/lib/templates','tests','.js','engines','maka\x20generate:kit:mui:frame','getMakaProjectConfig','injectIntoFile','basic-app-bar','{\x20this.props.children\x20}','search','layouts','options','/imports/ui/','45048GThQWT','983EAHPSA','findAppDirectory','Cleaning\x20up...','dir','frame','<div\x20id=\x22','/imports/ui/hooks','-hook\x22>','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','appName','apply','true','toString','checkMeteorPackage','length','injectImport','join','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','jsx','session','201969vIzwyz','app-tests','{\x20props.children\x20}','fsi','react','tsx','create','886wPIdiC','7685qZzWlV'];a115c=function(){return E;};return a115c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a116i=a116d;(function(a,b){const f=a116d,c=a();while(!![]){try{const d
|
|
1
|
+
const a116i=a116d;(function(a,b){const f=a116d,c=a();while(!![]){try{const d=parseInt(f(0x174))/0x1+parseInt(f(0x16f))/0x2*(-parseInt(f(0x167))/0x3)+parseInt(f(0x170))/0x4+parseInt(f(0x178))/0x5*(parseInt(f(0x169))/0x6)+-parseInt(f(0x175))/0x7*(-parseInt(f(0x172))/0x8)+-parseInt(f(0x171))/0x9+-parseInt(f(0x179))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x28a45));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a116d;if(c){const e=c[g(0x16a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const h=a116d;return a116a[h(0x16d)]()[h(0x176)](h(0x177))[h(0x16d)]()[h(0x16b)](a116a)[h(0x176)](h(0x177));});a116a();import{Generator}from'../../../generator.js';import a116e from'../kit.js';const MuiGen=Generator[a116i(0x168)]({'name':a116i(0x16c),'aliases':['m'],'usage':a116i(0x173),'noNeedResource':!![],'shortDesc':'Material-UI\x20Kit','validOpts':[''],'isPro':![],'examples':[a116i(0x16e)]},async function(){throw'NIE';},async function(){},a116e);function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x167;let f=c[d];return f;},a116d(a,b);}function a116c(){const j=['427880ENYsYX','2370EgbTMW','create','6GjASxh','apply','constructor','mui','toString','maka\x20g:kit:m','34ChfrIL','596848OmOWvh','2332440mREJKn','9992fXuIAw','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','199121mIcUsj','679XfzkKu','search','(((.+)+)+)+$','61805nmxgnT'];a116c=function(){return j;};return a116c();}export default MuiGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117n=a117d;function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x9d;let f=c[d];return f;},a117d(a,b);}(function(a,b){const l=a117d,c=a();while(!![]){try{const d=-parseInt(l(0xd1))/0x1+-parseInt(l(0x9e))/0x2+parseInt(l(0xb1))/0x3*(-parseInt(l(0xb9))/0x4)+-parseInt(l(0x9f))/0x5+parseInt(l(0xce))/0x6*(-parseInt(l(0xaa))/0x7)+-parseInt(l(0xd6))/0x8*(parseInt(l(0xd8))/0x9)+parseInt(l(0xa0))/0xa*(parseInt(l(0xa6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x8ef58));function a117c(){const q=['/imports/ui/layouts','withTranslations','toString','dir','warn','withHook','split','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','fsi','template','none','147090WXMSrS','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','installNpmPackage','884421EnBxiE','fileName','assign','withHooks','test/test.js','5299016gYSwmJ','withValue','9TyoLvX','className','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','.app-tests.js','408102EREcIZ','5506500PPKPzh','37698770ZXnMQA','pathFromProject','true','injectTemplateModule','test','Scaffolding\x20for\x20a\x20React\x20Layout.','11IFmRwO','resourceName','string','hook/hook.js','21pUlETm','theme','create','import\x20\x27./','setTemplate','maka\x20g:l\x20web/safari','pathFromApp','775869UagdZu','findAppDirectory','react','component/component.js','relative','includes','getMakaProjectConfig','features','4GbXnFM','ramda','checkNpmPackage','maka\x20g:layout\x20mobile/iPhone8','(((.+)+)+)+$','css','search','.css','.js','engines'];a117c=function(){return q;};return a117c();}const a117b=(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;};}()),a117a=a117b(this,function(){const m=a117d;return a117a[m(0xc5)]()['search'](m(0xbd))[m(0xc5)]()['constructor'](a117a)[m(0xbf)](m(0xbd));});a117a();import a117e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a117n(0xac)]({'name':'layout','aliases':aliases,'usage':a117n(0xcf),'shortDesc':a117n(0xa5),'validOpts':[],'examples':[a117n(0xbc),a117n(0xaf)]},async function(a,b){const o=a117n,c=o(0xc3),d=this[o(0xcb)][o(0xb2)](),e=this[o(0xcb)][o(0xb0)]({'pathParts':[c,b[o(0xc6)],paramCase(b[o(0xa7)]),paramCase(b[o(0xa7)])]}),f=this['fsi'][o(0xb7)]();await this[o(0xcb)][o(0xd7)](f,async()=>{const p=o;typeof f['template'][p(0xa4)]===p(0xa8)&&(f['template'][p(0xa4)]=f[p(0xcc)][p(0xa4)]==='true'?!![]:![],this['fsi'][p(0xae)](p(0xa4),f['template']['test']));typeof f[p(0xcc)]['css']===p(0xa8)&&(f[p(0xcc)]['css']=f[p(0xcc)][p(0xbe)]===p(0xa2)?!![]:![],this['fsi'][p(0xae)]('css',f[p(0xcc)][p(0xbe)]));typeof f['template']['js']===p(0xa8)&&(f[p(0xcc)]['js']=f[p(0xcc)]['js']==='true'?!![]:![],this[p(0xcb)][p(0xae)]('js',f[p(0xcc)]['js']));!f['features']&&(f['features']={});const g=b['_']?b['_'][0x0][p(0xc9)](':')[0x1]:![],h=b['_']&&aliases[p(0xb6)](g);h&&!this[p(0xbb)](p(0xba))&&(Log[p(0xc7)](p(0xca)),this[p(0xcb)][p(0xd0)](p(0xba),{'cwd':d}));if(h&&!this[p(0xbb)](p(0xb3))){Log[p(0xc7)](p(0xda));return;}const i={'name':pascalCase(b[p(0xa7)]),'myPath':a117e[p(0xb5)](this['fsi'][p(0xa1)]({}),e),'cssCaseName':paramCase(b[p(0xa7)]),'className':pascalCase(b[p(0xa7)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[p(0xa7)]),'graphql':f['engines']['graphql'],'features':f[p(0xb8)],'client':f[p(0xc2)]['client'],'api':f[p(0xc2)]['api'],'ssr':f[p(0xc2)]['ssr'],'test':f['engines'][p(0xa4)],'theme':f[p(0xc2)][p(0xab)],'isComponent':![],'isLayout':!![],'withTranslations':f[p(0xb8)][p(0xc4)]};f['features']?.[p(0xd4)]||b[p(0xc8)]?await this[p(0xcb)]['template']({'srcPath':p(0xa9),'destPath':e+p(0xc1),'framework':'react','context':i,'config':f}):await this[p(0xcb)][p(0xcc)]({'srcPath':p(0xb4),'destPath':e+p(0xc1),'framework':p(0xb3),'context':i,'config':f});f['engines'][p(0xa4)]!==p(0xcd)&&await this['fsi']['template']({'srcPath':p(0xd5),'destPath':e+p(0x9d),'framework':'react','context':i,'config':f});f[p(0xcc)][p(0xbe)]&&(await this[p(0xcb)][p(0xcc)]({'srcPath':'template/template.css','destPath':e+p(0xc0),'context':Object[p(0xd3)]({},i,{'className':paramCase(b[p(0xa7)])}),'config':f}),await this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f['engines']['js'],'content':p(0xad)+i['fileName']+'.'+f[p(0xc2)]['css']+'\x27;'}));const j=b['dir']?'/'+b[p(0xc6)]+'/':'/',k=''+c+j+i[p(0xd2)]+'/'+i[p(0xd2)];await this[p(0xcb)][p(0xa3)](i[p(0xd9)],f,k);});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a118i=a118d;(function(a,b){const f=a118d,c=a();while(!![]){try{const d
|
|
1
|
+
const a118i=a118d;(function(a,b){const f=a118d,c=a();while(!![]){try{const d=parseInt(f(0x11c))/0x1+parseInt(f(0x126))/0x2*(parseInt(f(0x12b))/0x3)+-parseInt(f(0x119))/0x4+parseInt(f(0x11f))/0x5*(-parseInt(f(0x125))/0x6)+-parseInt(f(0x121))/0x7+parseInt(f(0x12c))/0x8*(-parseInt(f(0x124))/0x9)+parseInt(f(0x12a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x62adf));const a118b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a118d;if(c){const e=c[g(0x122)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){const h=a118d;return a118a[h(0x11d)]()[h(0x12d)](h(0x128))[h(0x11d)]()[h(0x127)](a118a)[h(0x12d)](h(0x128));});a118a();import{Generator}from'../generator.js';function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x119;let f=c[d];return f;},a118d(a,b);}function a118c(){const j=['955SuGcDq','Scaffold\x20various\x20parts\x20of\x20your\x20application','5485004wCLAIv','apply','maka\x20g:api\x20trucks','63rtfgAZ','2790rryNes','564158oZJPVM','constructor','(((.+)+)+)+$','maka\x20generate:scaffold\x20todos','3085830QzMHRD','6xjClad','387088xxaIic','search','maka\x20{generate,\x20g}:<generator>\x20<name>','157996zNBmOu','maka\x20g:route\x20todos/edit','generate','782038DdTFmO','toString','maka\x20g:package\x20package:name'];a118c=function(){return j;};return a118c();}const MakaGen=new Generator({'name':a118i(0x11b),'aliases':['g'],'usage':a118i(0x12e),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a118i(0x120),'examples':[a118i(0x129),'maka\x20g:scaffold\x20todos','maka\x20g:template\x20todos/todo_item',a118i(0x11e),a118i(0x11a),a118i(0x123),'maka\x20g:dbc\x20geoserver\x20--type=pgsql']},function(){});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a119c(){const p=['
|
|
1
|
+
const a119m=a119d;function a119c(){const p=['9416225ToVRxB','tsx','checkMeteorPackage','1691560cwsgHp','fsi','imports','1RKgVBq','727082yBbHJi','20hkUhtr','34890JDurzc','resourceName','error','mdg:validated-method','startup','engines','search','method/method.js','constructor','appPathPrefix','950576UDZhBK','115KBuEdU','injectAtEndOfFile','-rpc-method.','create','maka\x20{generate,\x20g}:{method,\x20m}\x20name','60RoSawV','312723cTEBKx','methods','withValue','maka:check','method','getMakaProjectConfig','pathFromApp','maka\x20g:method\x20todos','712fZkHoJ','7OvmSuk','(((.+)+)+)+$','4629yXkhnU','dir','-rpc-method\x27;','ddp-rate-limiter','apply'];a119c=function(){return p;};return a119c();}(function(a,b){const j=a119d,c=a();while(!![]){try{const d=-parseInt(j(0xcc))/0x1*(-parseInt(j(0xcd))/0x2)+-parseInt(j(0xc1))/0x3*(parseInt(j(0xe8))/0x4)+-parseInt(j(0xda))/0x5*(-parseInt(j(0xcf))/0x6)+-parseInt(j(0xe9))/0x7*(parseInt(j(0xc9))/0x8)+-parseInt(j(0xe0))/0x9*(parseInt(j(0xce))/0xa)+-parseInt(j(0xd9))/0xb*(parseInt(j(0xdf))/0xc)+parseInt(j(0xc6))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x391d2));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a119d;if(c){const e=c[k(0xc5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const l=a119d;return a119a['toString']()[l(0xd5)](l(0xea))['toString']()[l(0xd7)](a119a)[l(0xd5)](l(0xea));});a119a();import{Generator}from'../generator.js';function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0xc1;let f=c[d];return f;},a119d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a119m(0xdd)]({'name':a119m(0xe4),'aliases':['m'],'usage':a119m(0xde),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a119m(0xc2)],'examples':[a119m(0xe7)]},async function(a,b){const n=a119m;try{const c=this['fsi'][n(0xe5)]();await this[n(0xca)][n(0xe2)](c,async()=>{const o=n,d=paramCase(b[o(0xd0)]),f={'name':b[o(0xd0)],'fileName':d,'className':pascalCase(b[o(0xd0)]),'camelCase':camelCase(b[o(0xd0)]),'noRename':!![]};let g='js';c[o(0xd4)]['js']===o(0xc7)&&(g='ts');await this[o(0xca)][o(0xc8)]([o(0xe3),o(0xc4),o(0xd2)],{'shouldInstall':!![]}),await this[o(0xca)]['template']({'srcPath':o(0xd6),'destPath':this[o(0xca)][o(0xe6)]({'pathParts':[o(0xcb),o(0xd3),b[o(0xd8)],o(0xe1),b[o(0xc2)],d+o(0xdc)+g]}),'context':f,'config':c});const h=b['dir']?'/'+b['dir']+'/':'/',i=this[o(0xca)][o(0xe6)]({'pathParts':[o(0xcb),o(0xd3),b['appPathPrefix'],'index.'+c[o(0xd4)]['js']]});await this[o(0xca)][o(0xdb)]({'filePath':i,'content':'import\x20\x27./methods'+h+d+o(0xc3)});});}catch(d){Log[n(0xd1)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a120n=a120d;(function(a,b){const l=a120d,c=a();while(!![]){try{const d=-parseInt(l(0x1d0))/0x1*(-parseInt(l(0x1cd))/0x2)+-parseInt(l(0x1ce))/0x3+-parseInt(l(0x1b1))/0x4*(-parseInt(l(0x1ac))/0x5)+-parseInt(l(0x1c7))/0x6+-parseInt(l(0x1b3))/0x7*(-parseInt(l(0x1d6))/0x8)+parseInt(l(0x1be))/0x9*(parseInt(l(0x1bd))/0xa)+-parseInt(l(0x1ab))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x575dd));const a120b=(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;};}()),a120a=a120b(this,function(){const m=a120d;return a120a['toString']()[m(0x1cb)](m(0x1c5))[m(0x1bc)]()[m(0x1c1)](a120a)['search'](m(0x1c5));});a120a();import a120e from'path';function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a120d(a,b);}import{Generator}from'../generator.js';function a120c(){const q=['/package.js','theme','toString','1520GXvWlc','20160txThiP','pathFromProject','withValue','constructor','package.js','package/package.js','resourceName','(((.+)+)+)+$','component','28254byVcxM','package/','maka\x20g:package\x20todos:package','hasOwnProperty','search','.js','6826oiJgIO','345510BezoUU','fsi','185zQeXbO','dir','engines','relative','ssr','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','8yvtuID','create','18181306iNNPbH','2223500omWXJR','noRename','tests/server','packages','template','4aYsgWA','template/template.js','4997951MmMWEF','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','tests/client','pathFromAppWithNoReWrite','client','layout','pathFromApp'];a120c=function(){return q;};return a120c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a120n(0x1aa)]({'name':'package','aliases':['p'],'usage':a120n(0x1b4),'shortDesc':a120n(0x1d5),'validOpts':[a120n(0x1d1)],'examples':[a120n(0x1c9)]},async function(a,b){const o=a120n,c=paramCase(b['resourceName']),d=this['fsi'][o(0x1b9)]({'pathParts':[o(0x1af),b[o(0x1d1)],c]}),e=this[o(0x1cf)][o(0x1b6)]({'pathParts':['packages',b[o(0x1d1)],c,o(0x1c2)]}),f=this[o(0x1cf)]['getMakaProjectConfig']();await this['fsi'][o(0x1c0)](f,async()=>{const p=o,g={'name':paramCase(b[p(0x1c4)]),'myPath':a120e[p(0x1d3)](this[p(0x1cf)][p(0x1bf)]({}),d),'cssCaseName':paramCase(b[p(0x1c4)]),'className':pascalCase(b[p(0x1c4)]),'camelCaseName':camelCase(b[p(0x1c4)]),'fileName':c,'client':f['engines'][p(0x1b7)],'graphql':f['engines']['graphql'],'ssr':f[p(0x1d2)][p(0x1d4)],'isComponent':b[p(0x1ca)](p(0x1c6)),'isLayout':b[p(0x1ca)](p(0x1b8)),'isStore':b[p(0x1ca)]('store'),'features':f['features'],'noRename':!![],'theme':f[p(0x1d2)][p(0x1bb)]};await this[p(0x1cf)][p(0x1b0)]({'srcPath':p(0x1c3),'destPath':e,'context':g,'config':f}),g[p(0x1ad)]=![];const h=d+'/client/'+c+p(0x1cc);await this['fsi'][p(0x1b0)]({'srcPath':p(0x1b2),'destPath':h,'context':g,'config':f});const i=['lib','server',p(0x1b5),p(0x1ae)];for(const j of i){const k=d+'/'+j+'/'+c+p(0x1cc);await this[p(0x1cf)][p(0x1b0)]({'srcPath':p(0x1c8)+j+p(0x1ba),'destPath':k,'context':g,'config':f});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121l=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=parseInt(j(0x17e))/0x1*(parseInt(j(0x159))/0x2)+-parseInt(j(0x14a))/0x3+-parseInt(j(0x16b))/0x4+-parseInt(j(0x150))/0x5*(parseInt(j(0x164))/0x6)+-parseInt(j(0x17a))/0x7+-parseInt(j(0x156))/0x8*(-parseInt(j(0x140))/0x9)+parseInt(j(0x170))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x9a530));const a121b=(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;};}()),a121a=a121b(this,function(){const k=a121d;return a121a[k(0x16c)]()[k(0x16f)](k(0x13d))[k(0x16c)]()['constructor'](a121a)[k(0x16f)](k(0x13d));});a121a();function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x13b;let f=c[d];return f;},a121d(a,b);}import a121e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a121f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];function a121c(){const o=['\x27;\x0a','baseDir','pages','checkNpmPackage','fsi','5930351TyRclp','client','css','installNpmPackage','1itykMt','dir','getMakaProjectConfig','page','(((.+)+)+)+$','component','hooks','9HDCBFm','store','withValue','/imports/ui/pages','features','template/template.html','pathFromApp','setTemplate','html','template/template.css','1295640NraDjF','Generate\x20a\x20page.','withHooks','create','.js','true','2205venhpT','react','engines','fileName','warn','api','1091336UpBRpd','/imports/ui/','ramda','116650qWiKgv','withHook','root','import\x20\x27./','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','graphql','.css','string','processAndRunGenerator','theme','injectTemplateModule','42rUvTfV','template','test','components','layouts','className','withTranslations','214312iYZVIy','toString','assign','hasOwnProperty','search','17731080qzeAFO','resourceName','layout','injectAtBeginningOfFile','ssr'];a121c=function(){return o;};return a121c();}Generator[a121l(0x14d)]({'name':a121l(0x13c),'aliases':aliases,'usage':a121l(0x15d),'shortDesc':a121l(0x14b),'validOpts':[{'name':a121l(0x176),'values':[a121l(0x13f),a121l(0x167),a121l(0x177),a121l(0x168)]},{'name':a121l(0x15a),'boolFlag':!![]}],'examples':['maka\x20g:page\x20todos/todos-item']},async function(a,b){const m=a121l,c=b[m(0x176)]?m(0x157)+b[m(0x176)]:m(0x143),d=this[m(0x179)][m(0x146)](b),e=this[m(0x179)][m(0x146)]({'pathParts':[c,b[m(0x17f)],paramCase(b['resourceName']),paramCase(b[m(0x171)])]}),f=this[m(0x179)][m(0x13b)]();let g='';return await this[m(0x179)][m(0x142)](f,async()=>{const n=m;typeof f['template'][n(0x148)]==='string'&&(f[n(0x165)]['html']=f[n(0x165)][n(0x148)]==='true'?!![]:![],this[n(0x179)]['setTemplate'](n(0x148),f['template'][n(0x148)]));typeof f[n(0x165)][n(0x166)]===n(0x160)&&(f[n(0x165)][n(0x166)]=f[n(0x165)][n(0x166)]===n(0x14f)?!![]:![],this[n(0x179)]['setTemplate'](n(0x166),f['template'][n(0x166)]));typeof f['template'][n(0x17c)]===n(0x160)&&(f['template'][n(0x17c)]=f['template'][n(0x17c)]==='true'?!![]:![],this[n(0x179)]['setTemplate'](n(0x17c),f[n(0x165)][n(0x17c)]));typeof f[n(0x165)]['js']==='string'&&(f[n(0x165)]['js']=f[n(0x165)]['js']===n(0x14f)?!![]:![],this['fsi'][n(0x147)]('js',f[n(0x165)]['js']));!f[n(0x144)]&&(f[n(0x144)]={});!b[n(0x15b)]&&!this[n(0x179)][n(0x178)](n(0x158))&&(Log[n(0x154)]('Updating\x20npm\x20packages\x20...'),this[n(0x179)][n(0x17d)]('ramda',{'cwd':d}));const h={'name':pascalCase(b[n(0x171)]),'myPath':a121e['relative'](this[n(0x179)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[n(0x171)]),'className':pascalCase(b[n(0x171)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[n(0x171)]),'graphql':f[n(0x152)][n(0x15e)],'features':f[n(0x144)],'client':f[n(0x152)][n(0x17b)],'api':f['engines'][n(0x155)],'ssr':f['engines'][n(0x174)],'isStore':b[n(0x16e)](n(0x141)),'isComponent':b[n(0x16e)](n(0x13e)),'isLayout':b[n(0x16e)](n(0x172)),'withTranslations':f[n(0x144)][n(0x16a)],'test':f[n(0x152)][n(0x166)],'theme':f['engines'][n(0x162)]};f[n(0x165)][n(0x148)]&&await this['fsi'][n(0x165)]({'srcPath':n(0x145),'destPath':e+'.html','context':h,'config':f});f[n(0x144)]?.[n(0x14c)]||b[n(0x15a)]?await this[n(0x179)][n(0x165)]({'srcPath':'hook/hook.js','destPath':e+n(0x14e),'framework':'react','context':h,'config':f}):await this[n(0x179)][n(0x165)]({'srcPath':'component/component.js','destPath':e+n(0x14e),'framework':'react','context':h,'config':f});f[n(0x152)]['test']!=='none'&&await this[n(0x179)][n(0x165)]({'srcPath':'test/test.js','destPath':e+'.app-tests.js','framework':n(0x151),'context':h,'config':f});f[n(0x165)][n(0x17c)]&&await this[n(0x179)]['template']({'srcPath':n(0x149),'destPath':e+n(0x15f),'context':Object[n(0x16d)]({},h,{'className':paramCase(b[n(0x171)])}),'config':f});f[n(0x152)][n(0x17b)]!==n(0x151)&&f[n(0x152)]['client']!=='vanilla'?(f[n(0x165)][n(0x17c)]&&await this[n(0x179)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[n(0x152)]['js'],'content':n(0x15c)+h[n(0x153)]+'.'+f[n(0x152)][n(0x148)]+n(0x175)+n(0x15c)+h[n(0x153)]+'.'+f[n(0x152)]['css']+'\x27;'}),!f[n(0x165)][n(0x17c)]&&await this[n(0x179)][n(0x173)]({'filePath':e+'.'+f[n(0x152)]['js'],'content':'import\x20\x27./'+h['fileName']+'.'+f[n(0x152)]['html']+'\x27;'})):f[n(0x165)][n(0x17c)]&&await this[n(0x179)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[n(0x152)]['js'],'content':n(0x15c)+h[n(0x153)]+'.'+f[n(0x152)]['css']+'\x27;'});const i=b[n(0x17f)]?'/'+b[n(0x17f)]+'/':'/';g=''+c+i+h['fileName']+'/'+h[n(0x153)],await this[n(0x179)][n(0x163)](h[n(0x169)],f,g),!b[n(0x15b)]&&await a121f[n(0x161)]('route',[i+b[n(0x171)]],b);}),g+'.'+f[m(0x152)]['js'];});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a122k=a122d;(function(a,b){const h=a122d,c=a();while(!![]){try{const d
|
|
1
|
+
function a122c(){const n=['maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','create','resourceName','fsi','614466AvFLQt','10SkOWRO','5938101CtYKBF','7701040qHfaBC','4uyieMB','injectAtEndOfFile','apply','1731905HLPpII','publish','tsx','templateContent','5303azoLCH','constructor','342uAcImG','(((.+)+)+)+$','server/publish.','4388xasEqw','972342oxQcMT','toString','publish/publish.','getMakaProjectConfig','maka\x20g:publish\x20todos','withValue','engines'];a122c=function(){return n;};return a122c();}const a122k=a122d;(function(a,b){const h=a122d,c=a();while(!![]){try{const d=-parseInt(h(0x143))/0x1*(-parseInt(h(0x13c))/0x2)+parseInt(h(0x129))/0x3*(parseInt(h(0x12c))/0x4)+parseInt(h(0x13f))/0x5+-parseInt(h(0x138))/0x6+-parseInt(h(0x12d))/0x7+parseInt(h(0x13b))/0x8+parseInt(h(0x13a))/0x9*(-parseInt(h(0x139))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x84b51));const a122b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a122d;if(c){const e=c[i(0x13e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){const j=a122d;return a122a[j(0x12e)]()['search'](j(0x12a))[j(0x12e)]()[j(0x128)](a122a)['search'](j(0x12a));});function a122d(a,b){const c=a122c();return a122d=function(d,e){d=d-0x128;let f=c[d];return f;},a122d(a,b);}a122a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a122k(0x135)]({'name':a122k(0x140),'aliases':['p'],'usage':a122k(0x134),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':[a122k(0x131)]},async function(a,b){const l=a122k,c=this[l(0x137)][l(0x130)]();await this[l(0x137)][l(0x132)](c,async()=>{const m=l,d={'name':b[m(0x136)],'collection':paramCase(b[m(0x136)]),'noRename':!![]};let e='js';c[m(0x133)]['js']===m(0x141)&&(e='ts');const f=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m(0x12b)+c[m(0x133)]['js']]}),g=this[m(0x137)][m(0x142)]({'srcPath':m(0x12f)+e,'context':d,'config':c});await this['fsi'][m(0x13d)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a123B=a123d;(function(a,b){const y=a123d,c=a();while(!![]){try{const d=parseInt(y(
|
|
1
|
+
const a123B=a123d;(function(a,b){const y=a123d,c=a();while(!![]){try{const d=parseInt(y(0x17e))/0x1+parseInt(y(0x189))/0x2+-parseInt(y(0x1c3))/0x3*(-parseInt(y(0x1c0))/0x4)+parseInt(y(0x1cb))/0x5*(-parseInt(y(0x176))/0x6)+parseInt(y(0x1be))/0x7*(parseInt(y(0x187))/0x8)+-parseInt(y(0x1b8))/0x9+-parseInt(y(0x1b4))/0xa*(parseInt(y(0x1ac))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0xe21e7));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a123d;if(c){const e=c[z(0x1bc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const A=a123d;return a123a[A(0x1a6)]()[A(0x1a0)]('(((.+)+)+)+$')[A(0x1a6)]()[A(0x1cc)](a123a)['search'](A(0x17c));});function a123c(){const K=['maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','MasterLayout','newForm','toString','error','imports','\x22*\x22','baseDir','\x20already\x20exists.\x20\x20Skipping.','77506TVbMSr','toLowerCase','pathFromApp','templateContent','withHook','cwd','injectIntoFile','<Route','3910uzmZrw','filter','PrivateLayout','maka\x20g:route\x20todosEdit\x20todos/:id/edit','315225GriKlh','create','pages','pathFromProject','apply','features','6921173maZfle','split','14456vVWCbh','join','route','1422nIRcsf','<Router','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','const\x20privateRoutes\x20=\x20(<>','engines','withValue','fileContainsString','injectAfterLineNumber','10RrhUvg','constructor','ssr','4546728yNrcEi','rewriteDestinationPathForEngine','hooks','fsi','root','only','(((.+)+)+)+$','Scaffolding\x20for\x20a\x20Route.','1102443cmIlbI','components','resourceName','true','warn','Valid\x20options\x20are:\x20','route/route.js','config','\x20to\x20','8pJNuOo','info','2855104sWRVDO','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','maka\x20g:route\x20pages/lists/listIndex\x20lists','length','pop','lib','const\x20publicRoutes\x20=\x20(<>','map','layout','react','url','/imports/ui/','\x0a\x09\x09','Invalid\x20directory\x20option\x20\x22','/imports/ui/pages','includes','routes.js','injectAtEndOfFile','client','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','startup','dir','layouts','search','vanilla','readFileLines'];a123c=function(){return K;};return a123c();}function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x175;let f=c[d];return f;},a123d(a,b);}a123a();import a123e 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[a123B(0x1b9)]({'name':a123B(0x1c2),'aliases':aliases,'validOpts':['private',a123B(0x191),a123B(0x17b),a123B(0x1b1),a123B(0x185),a123B(0x17a),a123B(0x1b0),a123B(0x193),'baseDir'],'usage':a123B(0x1a3),'shortDesc':a123B(0x17d),'examples':['maka\x20g:route\x20todosIndex\x20todos',a123B(0x1b7),a123B(0x18a),a123B(0x18b),'maka\x20g:route\x20pages/about']},async function(a,b){const C=a123B;try{const c=[C(0x178),C(0x17f),C(0x1ba),C(0x19f)];if(b['baseDir']&&!c[C(0x198)](b[C(0x1aa)])){Log['error'](C(0x196)+b['baseDir']+'\x22'),Log[C(0x1a7)](C(0x183)+c[C(0x1c1)](',\x20'));throw new UsageError();}const d=this[C(0x179)]['getMakaProjectConfig']();await this['fsi'][C(0x1c8)](d,async()=>{const D=C,f=b['private']??![];let g=b[D(0x180)][D(0x1bf)]('/')[D(0x18d)]();if(!g){Log[D(0x1a7)](D(0x1c5));throw new UsageError();}g=pascalCase(g);let h='/'+b[D(0x180)];a[D(0x18c)]>0x1&&(h='/'+a['filter'](function(n){return n!=='/';})[D(0x1c1)]('/')[D(0x1ad)]());h=h['replace'](/\/\//g,'/');b[D(0x191)]&&(b[D(0x191)]=camelCase(b['layout']));const i=b['baseDir']?D(0x194)+b[D(0x1aa)]:D(0x197),j=a123e['join'](i,b[D(0x19e)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x191)]||D(0x1a4),'templatePath':j,'templateName':pascalCase(g),'client':d[D(0x1c7)]['client'],'newForm':![],'withTranslations':d[D(0x1bd)]['withTranslations']};f&&(k[D(0x191)]=D(0x1b6));let l,m;if(d['engines'][D(0x19b)]==='react'){if(d['engines'][D(0x175)]===D(0x181)){const r=this[D(0x179)][D(0x1ae)]({'pathParts':['imports',D(0x19d),D(0x18e),'routes.js']});l=this[D(0x179)][D(0x177)]({'pathParts':[r],'config':d});}else{const s=this[D(0x179)]['pathFromApp']({'pathParts':[D(0x1a8),D(0x19d),D(0x19b),D(0x199)]});l=this[D(0x179)][D(0x177)]({'pathParts':[s],'config':d});}const n=await this[D(0x179)][D(0x1c9)](l,g);if(n){Log[D(0x182)]('Route\x20'+g+D(0x1ab));return;}else{const t=this[D(0x179)][D(0x1bb)](l);Log[D(0x188)]('Adding\x20route\x20'+g+D(0x186)+l['replace'](t,''));}const o=this[D(0x179)][D(0x1a2)](l)[D(0x190)]((u,v)=>{const E=D;return u[E(0x198)](E(0x19c))?v+0x1:null;})[D(0x1b5)](u=>u!==null);let p=this[D(0x179)][D(0x1a2)](l)[D(0x190)]((u,v)=>{const F=D;return u[F(0x198)](F(0x18f))?v+0x1:null;})[D(0x1b5)](u=>u!==null),q=this[D(0x179)][D(0x1a2)](l)[D(0x190)]((u,v)=>{const G=D;return u[G(0x198)](G(0x1c6))?v+0x1:null;})[D(0x1b5)](u=>u!==null);p[D(0x18c)]>0x0&&q[D(0x18c)]>0x0&&(k[D(0x1a5)]=!![]);m=this[D(0x179)][D(0x1af)]({'srcPath':'route/route.js','framework':D(0x192),'context':k,'config':d});if(p['length']>0x0||q[D(0x18c)]>0x0){this[D(0x179)][D(0x1ca)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q['length']>0x0)q=this[D(0x179)][D(0x1a2)](l)[D(0x190)]((u,v)=>{const H=D;return u[H(0x198)](H(0x1c6))?v+0x1:null;})[D(0x1b5)](u=>u!==null),this[D(0x179)][D(0x1ca)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p[D(0x18c)]>0x0?(p=this[D(0x179)][D(0x1a2)](l)[D(0x190)]((u,v)=>{const I=D;return u[I(0x198)](I(0x18f))?v+0x1:null;})[D(0x1b5)](u=>u!==null),this[D(0x179)][D(0x1ca)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':p[0x0]})):Log['warn']('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+l);}else{const u=this['fsi']['readFileLines'](l)[D(0x190)](x=>{const J=D;return x[J(0x198)](J(0x1a9));}),v=u['indexOf'](!![])>-0x1,w=v?D(0x1b3):'</Router>';await this[D(0x179)][D(0x1b2)]({'filePath':l,'content':'\x0a\x09\x09'+m+D(0x195),'begin':D(0x1c4),'end':w});}}else{if(d[D(0x1c7)]['client']===D(0x1a1)){const x=this['fsi'][D(0x1ae)]({'pathParts':[D(0x1a8),D(0x19d),'client',D(0x199)]});l=this[D(0x179)][D(0x177)]({'pathParts':[x],'config':d}),m=this['fsi'][D(0x1af)]({'srcPath':D(0x184),'context':k}),await this[D(0x179)][D(0x19a)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0x1a7)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a124m=a124d;(function(a,b){const j=a124d,c=a();while(!![]){try{const d=parseInt(j(0x103))/0x1+-parseInt(j(0xe6))/0x2*(parseInt(j(0xeb))/0x3)+parseInt(j(0xe2))/0x4*(-parseInt(j(0xf6))/0x5)+-parseInt(j(0xf3))/0x6*(parseInt(j(0xf5))/0x7)+parseInt(j(0xdf))/0x8*(-parseInt(j(0xf7))/0x9)+-parseInt(j(0xff))/0xa+parseInt(j(0xe4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x27363));function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0xdf;let f=c[d];return f;},a124d(a,b);}function a124c(){const p=['apply','598220uSPKcm','(((.+)+)+)+$','withValue','getMakaProjectConfig','96928UJBAxs','432GGYQKk','installNpmPackage','fsi','4bCRHzA','toString','10477225idvHXR','type','1160XuxDhl','logger','maka\x20{generate,\x20g}:{service}\x20<resource-name>','create','imports','1389cnBPfC','winston\x20setimmediate','maka\x20g:svc\x20service-logger\x20--type=logger','lib','engines','constructor','startup','pathFromApp','6VChnkB','winston','393617kOGMOv','1090535QQLrfm','47682joIwEl','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','service','service/logger/logger.js','search','Installing\x20winston','resourceName'];a124c=function(){return p;};return a124c();}const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a124d;if(c){const e=c[k(0xfe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const l=a124d;return a124a['toString']()['search'](l(0x100))[l(0xe3)]()[l(0xf0)](a124a)[l(0xfb)]('(((.+)+)+)+$');});a124a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a124m(0xe9)]({'name':a124m(0xf9),'aliases':['svc'],'usage':a124m(0xe8),'shortDesc':a124m(0xf8),'requiredOpts':[{'name':a124m(0xe5),'values':[a124m(0xe7)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a124m(0xed)]},async function(a,b){const n=a124m;try{const c=this[n(0xe1)][n(0x102)]();await this[n(0xe1)][n(0x101)](c,async()=>{const o=n,d=this[o(0xe1)]['pathFromApp']({}),f=paramCase(b[o(0xfd)]),g={'name':pascalCase(b[o(0xfd)]),'fileName':f,'camelCase':camelCase(b[o(0xfd)]),'type':b[o(0xe5)],'engine':c['engines']['js'],'noRename':!![]};let h='js';c[o(0xef)]['js']==='tsx'&&(h='ts');if(b[o(0xe5)]===o(0xe7)){!this[o(0xe1)]['checkNpmPackage'](o(0xf4))&&await this['fsi'][o(0xe0)](o(0xec),{'cwd':d,'msg':o(0xfc)});const i=this[o(0xe1)][o(0xf2)]({'pathParts':[o(0xea),o(0xf1),o(0xee),'services',f+'.'+h]});await this[o(0xe1)]['template']({'srcPath':o(0xfa),'destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a125d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a125d,c=a();while(!![]){try{var d=-parseInt(f(0x1e0))/0x1*(-parseInt(f(0x1eb))/0x2)+-parseInt(f(0x1df))/0x3+parseInt(f(0x1ea))/0x4+-parseInt(f(0x1e5))/0x5*(-parseInt(f(0x1e8))/0x6)+-parseInt(f(0x1de))/0x7+parseInt(f(0x1e4))/0x8+-parseInt(f(0x1e6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0x4f709));var a125b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a125d;if(c){var e=c[g(0x1e9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){var h=a125d;return a125a[h(0x1e2)]()[h(0x1e3)](h(0x1e1))['toString']()[h(0x1e7)](a125a)['search'](h(0x1e1));});a125a();function a125c(){var i=['apply','799688vVaSOD','8lHFYwJ','2694531FRDNky','1205580LmkPtd','158663dkdESL','(((.+)+)+)+$','toString','search','609728naJQKQ','66085YZMaQG','1637145kLwrks','constructor','174CPTvPX'];a125c=function(){return i;};return a125c();}function a125d(a,b){var c=a125c();return a125d=function(d,e){d=d-0x1de;var f=c[d];return f;},a125d(a,b);}import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a126l=a126d;(function(a,b){const i=a126d,c=a();while(!![]){try{const d=-parseInt(i(0x9a))/0x1+parseInt(i(0xa8))/0x2+-parseInt(i(0xaf))/0x3*(-parseInt(i(0xa3))/0x4)+-parseInt(i(0xb0))/0x5+-parseInt(i(0xa2))/0x6+-parseInt(i(0xa5))/0x7*(-parseInt(i(0xac))/0x8)+-parseInt(i(0xb1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0xc86ee));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a126d;if(c){const e=c[j(0xb4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const k=a126d;return a126a[k(0xa9)]()[k(0x9f)](k(0xa0))[k(0xa9)]()[k(0xa1)](a126a)[k(0x9f)]('(((.+)+)+)+$');});function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x98;let f=c[d];return f;},a126d(a,b);}a126a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a126e from'path';Generator[a126l(0xae)]({'name':a126l(0xaa),'usage':a126l(0x99),'shortDesc':a126l(0x9e),'noNeedResource':!![],'requiredOpts':[a126l(0xa6)],'examples':[a126l(0xab)],'validOpts':[]},async function(a,b){const m=a126l;try{const c=await this[m(0xb3)][m(0x9b)](),d=await this['fsi'][m(0xa4)](),f=this[m(0xb3)][m(0x9d)](b[m(0xa6)]),g=a126e[m(0x98)](f,'_keys',m(0x9c));await this[m(0xb3)]['withValue'](c,async()=>{const n=m,h={'app':d[n(0xa7)],'noRename':!![]};await this['fsi'][n(0xb2)]({'srcPath':'openssl/openssl.conf','destPath':g,'framework':n(0xb5),'context':h,'config':c});});}catch(h){Log[m(0xad)](h);}});function a126c(){const o=['env','appName','3217178GOPwAV','toString','sslconfig','maka\x20g:sslconfig\x20--env\x20dev','24PaHBjm','error','create','155778YmDbAT','1879620WVHHrB','6185286NRwqyR','template','fsi','apply','service','join','maka\x20{generate,\x20g}:sslconfig','1557496TxovmT','getMakaProjectConfig','openssl.conf','getAppConfigPath','Generate\x20a\x20new\x20openssl\x20config\x20file','search','(((.+)+)+)+$','constructor','3996552wjtgbr','68sZLdwD','getGlobalConfig','3771621NtfLdo'];a126c=function(){return o;};return a126c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a127A=a127d;(function(a,b){const x=a127d,c=a();while(!![]){try{const d=-parseInt(x(
|
|
1
|
+
function a127c(){const D=['maka\x20g:translation\x20--lang=fr','index.js','(((.+)+)+)+$','lang','installNpmPackage','1043706ZJjrYo','locales','findAppDirectory','lib','true','import\x20\x27../lib/services/translations/i18n\x27;\x0a','i18next','maka\x20g:translation\x20--lang=en\x20(default)','toString','712912pHdqcG','i18n/locales.js','imports','fsi','maka\x20g:translation\x20--lang=de','injectAtBeginningOfFile','exit','withValue','root','1485048jPGhdf','468231dCLBGg','apply','default\x20as\x20','120uYdarI','1212392zbfLYh','i18n/index.js','pathFromApp','Locale\x20already\x20exported:\x20','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','readFileSync','services','translations','features.withTranslations','server','export\x20{\x20default\x20as\x20','1864935xBjYSV','error','isFile','service','683244xKUXJw','\x20}\x20from\x20\x27./','index.','28SPlEDF','client','import\x20\x27../lib/services/translations/i18n\x27;','rewriteDestinationPathForEngine','checkNpmPackage','template','grep','maka\x20{generate,\x20g}:translation','ssr','search','i18n.js','.js','Generate\x20a\x20new\x20locale\x20translation','create','warn','Locale\x20already\x20defined:\x20','startup','engines','i18next\x20i18next-browser-languagedetector\x20react-i18next','getMakaProjectConfig','setProjectConfig','getGlobalConfig'];a127c=function(){return D;};return a127c();}const a127A=a127d;function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x12a;let f=c[d];return f;},a127d(a,b);}(function(a,b){const x=a127d,c=a();while(!![]){try{const d=-parseInt(x(0x14e))/0x1+parseInt(x(0x157))/0x2+-parseInt(x(0x158))/0x3+-parseInt(x(0x15c))/0x4+parseInt(x(0x167))/0x5+-parseInt(x(0x145))/0x6*(parseInt(x(0x12a))/0x7)+-parseInt(x(0x15b))/0x8*(-parseInt(x(0x16b))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x5e538));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a127d;if(c){const e=c[y(0x159)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const z=a127d;return a127a[z(0x14d)]()[z(0x133)](z(0x142))[z(0x14d)]()['constructor'](a127a)[z(0x133)](z(0x142));});a127a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a127e from'fs';Generator[a127A(0x137)]({'name':'translation','usage':a127A(0x131),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a127A(0x143),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a127A(0x136),'description':'\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','examples':[a127A(0x14c),a127A(0x140),a127A(0x152)],'validOpts':[]},async function(a,b){const B=a127A;try{const c=this[B(0x151)][B(0x13d)](),d=this['fsi'][B(0x13f)](),f=this['fsi'][B(0x147)]();await this['fsi'][B(0x155)](c,async()=>{const C=B;try{!b[C(0x143)]&&(b['lang']='en');!b[C(0x156)]&&!this['fsi'][C(0x12e)](C(0x14b))&&(Log[C(0x138)](C(0x160)),this[C(0x151)][C(0x144)](C(0x13c),{'cwd':f}),this[C(0x151)][C(0x13e)](C(0x164),!![]));const g=this[C(0x151)]['pathFromApp']({'pathParts':['imports','startup',C(0x12b),C(0x141)]}),h=this[C(0x151)][C(0x12d)]({'pathParts':[g],'config':c}),i=this[C(0x151)][C(0x130)](a127e[C(0x161)](h)[C(0x14d)](),C(0x12c))[0x0]&&!![];if(c[C(0x13b)][C(0x132)]===C(0x149)){!i&&this[C(0x151)]['injectAtBeginningOfFile']({'filePath':h,'content':C(0x14a)});const t=this[C(0x151)][C(0x15e)]({'pathParts':[C(0x150),'startup',C(0x165),C(0x141)]}),u=this[C(0x151)][C(0x12d)]({'pathParts':[t],'config':c}),v=this[C(0x151)]['grep'](a127e[C(0x161)](u)['toString'](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this['fsi'][C(0x153)]({'filePath':u,'content':C(0x14a)});}else!i&&this['fsi'][C(0x153)]({'filePath':h,'content':C(0x14a)});const j={'app':d['appName'],'config':c},k=this[C(0x151)]['pathFromApp']({'pathParts':['imports',C(0x13a),C(0x148),'services',C(0x163),C(0x134)]}),l=this[C(0x151)]['isFile'](this[C(0x151)][C(0x12d)]({'pathParts':[k],'config':c}));!l&&await this['fsi'][C(0x12f)]({'srcPath':'i18n/i18n.js','destPath':k,'framework':'service','context':j,'config':c});const m=this[C(0x151)]['pathFromApp']({'pathParts':[C(0x150),C(0x13a),C(0x148),'services','translations',C(0x146),b['lang']+C(0x135)]}),n=this[C(0x151)][C(0x12d)]({'pathParts':[m],'config':c}),o=this['fsi'][C(0x169)](n);!o?await this[C(0x151)]['template']({'srcPath':C(0x14f),'destPath':m,'framework':C(0x16a),'context':j,'config':c}):Log[C(0x138)](C(0x139)+n);const p=this['fsi'][C(0x15e)]({'pathParts':['imports',C(0x13a),C(0x148),C(0x162),C(0x163),C(0x146),C(0x16d)+c[C(0x13b)]['js']]}),q=this[C(0x151)][C(0x12d)]({'pathParts':[p],'config':c}),r=this[C(0x151)][C(0x169)](q);!r&&await this[C(0x151)][C(0x12f)]({'srcPath':C(0x15d),'destPath':p,'framework':C(0x16a),'context':j,'config':c});const s=this[C(0x151)][C(0x130)](a127e[C(0x161)](p)[C(0x14d)](),C(0x15a)+b[C(0x143)])[0x0]&&!![];!s?await this[C(0x151)]['injectAtEndOfFile']({'filePath':p,'content':C(0x166)+b[C(0x143)]+C(0x16c)+b[C(0x143)]+'\x27;'}):Log[C(0x138)](C(0x15f)+p);}catch(w){Log[C(0x168)](w),process[C(0x154)](0x1);}});}catch(g){Log[B(0x168)](g),process[B(0x154)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a128m=a128d;(function(a,b){const j=a128d,c=a();while(!![]){try{const d
|
|
1
|
+
const a128m=a128d;(function(a,b){const j=a128d,c=a();while(!![]){try{const d=parseInt(j(0x1fb))/0x1+parseInt(j(0x1ed))/0x2+-parseInt(j(0x1f0))/0x3*(-parseInt(j(0x1ea))/0x4)+parseInt(j(0x1e9))/0x5*(parseInt(j(0x1f6))/0x6)+-parseInt(j(0x201))/0x7+parseInt(j(0x1f5))/0x8*(-parseInt(j(0x202))/0x9)+parseInt(j(0x1ee))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x97bca));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a128d;if(c){const e=c[k(0x1f9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const l=a128d;return a128a[l(0x1f4)]()[l(0x1ec)]('(((.+)+)+)+$')['toString']()[l(0x1fe)](a128a)[l(0x1ec)]('(((.+)+)+)+$');});a128a();import a128e from'minimist';function a128c(){const n=['floor','totalmem','apply','--max-old-space-size=','1012323HETHPR','url','parse','constructor','stringify','camelizeKeys','4845029DESoqg','45VkyJns','235EhHyeA','810116RErLOo','slice','search','505316YLNvmi','2550660nkhkLB','dirname','6DstBES','argv','BROWSERSLIST_IGNORE_OLD_DATA','env','toString','1077424HXTdDS','7908qOEShC'];a128c=function(){return n;};return a128c();}import a128f from'os';import a128g from'path';import a128h from'humps';import a128i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a128m(0x1fc)]),__dirname=a128g[a128m(0x1ef)](__filename);global['MAKA_COMMAND_PATH']=__dirname;const total_memory=a128f[a128m(0x1f8)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a128m(0x1f7)](total_mem_in_mb),process[a128m(0x1f3)]['TOOL_NODE_FLAGS']=a128m(0x1fa)+total_mem_in_mb,process[a128m(0x1f3)][a128m(0x1f2)]='1',process[a128m(0x1f3)]['NODE_NO_WARNINGS']='1';const argv=a128e(process[a128m(0x1f1)][a128m(0x1eb)](0x2)),args=argv['_'],deepCopyArgv=JSON[a128m(0x1fd)](JSON[a128m(0x1ff)](argv));function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x1e9;let f=c[d];return f;},a128d(a,b);}delete deepCopyArgv['_'];const opts=a128h[a128m(0x200)](deepCopyArgv);a128i['run'](args,opts);
|
|
@@ -4,7 +4,12 @@ import MakaRest, { Codes } from 'meteor/maka:rest';
|
|
|
4
4
|
const <%= name %>Api = new MakaRest({
|
|
5
5
|
apiPath: '<%= fileName %>',
|
|
6
6
|
version: '<%= apiVersion %>',
|
|
7
|
-
prettyJson: Meteor.isDevelopment
|
|
7
|
+
prettyJson: Meteor.isDevelopment,
|
|
8
|
+
rateLimitOptions: {
|
|
9
|
+
useRedits: false,
|
|
10
|
+
points: 10,
|
|
11
|
+
duration: 1000,
|
|
12
|
+
}
|
|
8
13
|
});
|
|
9
14
|
|
|
10
15
|
// maps to /api/<%= apiVersion %>/<%= fileName %>/status
|
|
@@ -4,7 +4,12 @@ import MakaRest, { Codes } from 'meteor/maka:rest';
|
|
|
4
4
|
const <%= name %>Api = new MakaRest({
|
|
5
5
|
apiPath: '<%= fileName %>',
|
|
6
6
|
version: '<%= apiVersion %>',
|
|
7
|
-
prettyJson: Meteor.isDevelopment
|
|
7
|
+
prettyJson: Meteor.isDevelopment,
|
|
8
|
+
rateLimitOptions: {
|
|
9
|
+
useRedits: false,
|
|
10
|
+
points: 10,
|
|
11
|
+
duration: 1000,
|
|
12
|
+
}
|
|
8
13
|
});
|
|
9
14
|
|
|
10
15
|
// maps to /api/<%= apiVersion %>/<%= fileName %>/status
|
|
@@ -2,6 +2,7 @@ import { Meteor } from 'meteor/meteor';
|
|
|
2
2
|
import { ValidatedMethod } from 'meteor/mdg:validated-method';
|
|
3
3
|
import { DDPRateLimiter } from 'meteor/ddp-rate-limiter';
|
|
4
4
|
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* Using ValidatedMethod (maintained by MDG) is the best
|
|
7
8
|
* practice by Meteor Development Group (MDG),
|
|
@@ -9,20 +10,18 @@ import { DDPRateLimiter } from 'meteor/ddp-rate-limiter';
|
|
|
9
10
|
* calls from the client are properly handled.
|
|
10
11
|
*
|
|
11
12
|
*/
|
|
12
|
-
const <%= name %> = new ValidatedMethod({
|
|
13
|
-
name: '<%= fileName
|
|
13
|
+
const <%= name %>Status = new ValidatedMethod({
|
|
14
|
+
name: '<%= fileName %>-<%= apiVersion %>-status',
|
|
14
15
|
validate() {
|
|
15
|
-
// check(doc, Object, 'while checking insert doc');
|
|
16
16
|
// check(this.userId, String, 'while validating user');
|
|
17
17
|
},
|
|
18
18
|
run() {
|
|
19
|
-
|
|
19
|
+
return { message: 'OK' };
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
|
|
24
23
|
const RATE_LIMITED_METHODS = [
|
|
25
|
-
<%= name %>
|
|
24
|
+
<%= name %>Status
|
|
26
25
|
].map(value => value['name']);
|
|
27
26
|
|
|
28
27
|
if (Meteor.isServer) {
|
|
@@ -10,18 +10,18 @@ import { DDPRateLimiter } from 'meteor/ddp-rate-limiter';
|
|
|
10
10
|
* calls from the client are properly handled.
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
name: '<%= fileName %>',
|
|
13
|
+
const <%= name %>Status = new ValidatedMethod({
|
|
14
|
+
name: '<%= fileName %>-<%= apiVersion %>status',
|
|
16
15
|
validate() {
|
|
16
|
+
// check(this.userId, String, 'while validating user');
|
|
17
17
|
},
|
|
18
18
|
run() {
|
|
19
|
-
|
|
19
|
+
return { message: 'OK' };
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
const RATE_LIMITED_METHODS = [
|
|
24
|
-
<%= name %>
|
|
24
|
+
<%= name %>Status
|
|
25
25
|
].map(value => value['name']);
|
|
26
26
|
|
|
27
27
|
if (Meteor.isServer) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<% if( withMethods ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName
|
|
2
|
-
<% if( api === 'rest' && withRest ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName
|
|
1
|
+
<% if( withMethods ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/<%= fileName %>-<%= apiVersion %>-rpc-methods';<% } %>
|
|
2
|
+
<% if( api === 'rest' && withRest ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/<%= fileName %>-<%= apiVersion %>-rest-api';<% } %>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<% if( withMethods ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName
|
|
2
|
-
<% if( api === 'rest' && withRest ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName
|
|
1
|
+
<% if( withMethods ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/<%= fileName %>-<%= apiVersion %>-rpc-methods';<% } %>
|
|
2
|
+
<% if( api === 'rest' && withRest ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/<%= fileName %>-<%= apiVersion %>-rest-api';<% } %>
|