@maka/maka-cli 5.0.22 → 5.0.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 +53 -55
- 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/cecr.sub.cmd.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/decr.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/lecr.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/profile.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/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.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/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.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/auth.mui.gen.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/app/imports/startup/client/index.js.jsx +6 -6
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +6 -6
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +8 -10
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +8 -10
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +1 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +1 -1
- package/bundle/obf/src/templates/meteor/app/meteor.d.ts +56 -56
- package/bundle/obf/src/templates/meteor/service/logger/logger.js +2 -2
- package/bundle/obf/src/templates/meteor/service/logger/logger.js.ts +2 -2
- package/bundle/obf/src/templates/react/kit/auth/service/meteor-auth-service.js.jsx +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/cfg/cfg.class.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/mpi/mpi.class.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.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/eslint.config.js +19 -0
- package/package.json +53 -55
- package/maka-tar-6.2.1.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
const a159z=a159d;(function(a,b){const v=a159d,c=a();while(!![]){try{const d=-parseInt(v(0x143))/0x1+-parseInt(v(0xdd))/0x2+-parseInt(v(0x124))/0x3+parseInt(v(0xc3))/0x4+-parseInt(v(0x131))/0x5+parseInt(v(0xd3))/0x6*(parseInt(v(0x13e))/0x7)+parseInt(v(0x100))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a159c,0xd50c9));const a159b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a159d;if(c){const e=c[w(0x127)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a159a=a159b(this,function(){const x=a159d;return a159a[x(0x105)]()[x(0xb4)]('(((.+)+)+)+$')[x(0x105)]()[x(0x126)](a159a)[x(0xb4)](x(0xc8));});function a159d(a,b){const c=a159c();return a159d=function(d,e){d=d-0xad;let f=c[d];return f;},a159d(a,b);}a159a();import a159e from'path';import a159f from'fs';import a159g from'util';import{exec}from'child_process';import a159h from'delete';function a159c(){const a7=['rewriteSourcePathForEngine','200707IwDQwF','tsx','injectImport','.jsx','Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20','fsi','src/templates/','injectTemplateModule','injectIntoCodeBlock','alpha','reduce','startsWith','css','\x20from','rewriteDestinationPathForType','readdirSync','includes','cwd','search','splice','type','forEach','rewriteSourcePathForEngine()','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20','.js','\x20updated\x20file\x20','split','--minimal','exit','No\x20app\x20directory\x20found','injectAfterLineNumber()','export\x20{\x20','isTemplateForEngine()','3537076STWyKq','lib','writeSourcePath','mpi','map','(((.+)+)+)+$','MAKA_COMMAND_PATH','writeFileSync','from','readFileSync','\x20doesn\x27t\x20exist','.js.tsx','[\x5cs\x5cS]*?)(','.js.ts','injectAtBeginningOfFile','promisify','3667116hdctYQ','sep','\x20}\x20from\x20\x27','pathFromApp()','Dockerfile','ssr','injectAfterLineNumber','Meteor\x20project\x20already\x20exists\x20at\x20','release','replace','302422ooTrfD','Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues','verbose','meteor','stringify','templateContent','normalize','engines','noRename','import\x20','No\x20pathParts\x20option\x20provided','pathFromApp','File\x20not\x20found:\x20','push','utf8','Looking\x20for\x20','copyTemplateDirectory','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','rewriteDestinationPathForEngine','length','render','createFile','trim','isDirectory','jsx','findAppDirectory','Error\x20in\x20injectIntoCodeBlock:\x20','header','.git','startup','warn','No\x20file\x20found\x20at\x20path\x20','Error\x20in\x20','injectTemplateModule()','instance','2594040GhLtjK','fileContainsString','template()','isArray','error','toString','imports','injectAroundString','.meteor','\x5cS*$','html','platform','getCommonIndentSize','env','templates','pathFromTemplates()','join','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.','match','import\x20{\x20','existsSync','isTemplateForEngine','detectIndentation','pathFromAppWithNoReWrite','message','injectAtEndOfFile()','slice','engineAndTypeFromfilePath','templates.js','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','filter','\x27;\x0a','createEmptyMeteorProject','template','injectAtBeginningOfFile()','base64','1888245dlZSkS','ico','constructor','apply','some','concat','injectIntoFile()','isFile','getInstance','Directory\x20','pop','keys','less','2884570guKAPP','repeat','pathFromTemplates','Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20','injectAtEndOfFile','engine','from\x20\x22','indexOf','adjustIndentation','templateContent()','getMakaProjectConfig','cfg','True','14qoEILq','scss','relative','--release\x20'];a159c=function(){return a7;};return a159c();}import a159i from'ejs';import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';const errorHandler=(a,b)=>{const y=a159d;process['env']['MAKA_DEV']===y(0x13d)&&Log['error'](y(0xfd)+a),b&&console[y(0x104)](b);},isWin=process[a159z(0x10b)]==='win32',treeSymbol=isWin?'\x20->':'\x20┗';export class Scaffold{static ['instance'];[a159z(0x148)];[a159z(0xc6)];[a159z(0x13c)];constructor(a,b,c){const A=a159z;this[A(0x148)]=a,this[A(0xc6)]=b,this[A(0x13c)]=c;}static[a159z(0x12c)](a,b,c){const B=a159z;return!Scaffold['instance']&&(Scaffold[B(0xff)]=new Scaffold(a,b,c)),Scaffold[B(0xff)];}async[a159z(0x120)](a,b){const C=a159z;b['cwd']=b['cwd']||'.';const c=a159e[C(0x110)](b[C(0xb3)],a),d=a159e['join'](c,C(0x108));if(this[C(0x148)]['isDirectory'](d))throw new Error(C(0xda)+JSON['stringify'](c));const e=C(0xbd),f=a159e[C(0x110)](b[C(0xb3)]),g=a159g[C(0xd2)](exec),h=b[C(0xdb)]?C(0x141)+b[C(0xdb)]:'';b[C(0xdb)]&&b[C(0xdb)][C(0xb2)](C(0x14c))&&(Log[C(0xfb)](C(0x147)+b[C(0xdb)]),Log[C(0xfb)](C(0xde)));try{await g(this[C(0xc6)][C(0xe0)]+'\x20create\x20'+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log['error']('\x0a'+k[C(0x118)]);throw k;}const i=a159e[C(0x110)](f,a);if(!a159f[C(0x114)](i))throw new Error(C(0x12d)+i+C(0xcd));const j=a159f[C(0xb1)](i);for(const l of j){if(l!==C(0xf9)&&l!==C(0x108)){const m=a159e[C(0x110)](i,l);await a159h(m,{'force':!![]});}}}[a159z(0x11b)]({filePath:a}){const D=a159z;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a[D(0x112)](b);c=c&&c[0x0]['split']('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[D(0x12e)](),f=c[D(0x12e)]()||d;if(d)d=d['replace']('.','');if(f)f=f[D(0xdc)]('.','');return{'type':f,'engine':d};}catch(g){errorHandler('engineAndTypeFromfilePath()',g),process[D(0xbe)](0x1);}}[a159z(0xb0)]({pathParts:a,config:b}){const E=a159z;try{const c=a[E(0x110)](a159e['sep']),d=this[E(0x11b)]({'filePath':c})[E(0xb6)],f=b?.[E(0xe4)][d],g=new RegExp('\x5c.'+d+E(0x109));return!d||!f?c:c[E(0xdc)](g,'.'+d);}catch(h){errorHandler('rewriteDestinationPathForType()',h),process[E(0xbe)](0x1);}}[a159z(0x115)]({pathParts:a,config:b}){const F=a159z;try{if(!b)throw new Error(F(0xee));const c=a[F(0x110)](a159e[F(0xd4)]),d=this['engineAndTypeFromfilePath']({'filePath':c});if(!d['type']||!d[F(0x136)])return!![];const f=b[F(0xe4)][d[F(0xb6)]];if(!f)return!![];return f===d[F(0x136)];}catch(g){errorHandler(F(0xc2),g),process['exit'](0x1);}}[a159z(0xc5)]({pathParts:pathParts=[]}){const G=a159z;return pathParts[G(0x110)](a159e[G(0xd4)]);}['rewriteDestinationPathForEngine']({pathParts:pathParts=[],config:a}){const H=a159z;try{const b=pathParts[H(0x110)](a159e['sep']),c=this[H(0x11b)]({'filePath':b})['type'],d=a?.[H(0xe4)][c],f=new RegExp('\x5c.'+c+H(0x109));return!c||!d?b:b[H(0xdc)](f,'.'+d);}catch(g){errorHandler('rewriteDestinationPathForEngine()',g),process[H(0xbe)](0x1);}}[a159z(0x142)]({pathParts:pathParts=[],framework:framework='meteor'}){const I=a159z;try{const a=a159e['normalize'](pathParts[I(0x110)](a159e[I(0xd4)]));if(!a['endsWith'](I(0xba)))return a;const b='js',c=this[I(0x13c)][I(0x13b)]();if(!c?.[I(0xe4)]||!c?.[I(0xe4)][b])return a;const d=c[I(0xe4)][b],f=d===I(0x144)?[I(0xce),I(0xd0),'.js']:['.js.jsx','.js'];for(const g of f){const h=a['replace'](/\.js$/,g),i=a159e['join'](I(0x10e),framework,h),j=a159e['normalize'](a159e[I(0x110)](global['MAKA_COMMAND_PATH'],i));if(a159f['existsSync'](j))return h;}return a;}catch(k){errorHandler(I(0xb8),k),process[I(0xbe)](0x1);}}[a159z(0x133)]({pathParts:a,framework:framework='meteor'}){const J=a159z;try{const b=this[J(0x142)]({'pathParts':a,'framework':framework}),c=a159e[J(0x110)](J(0x149)+framework,b),d=a159e['join'](global[J(0xc9)],'..',c);return d;}catch(f){errorHandler(J(0x10f),f),process[J(0xbe)](0x1);}}['templateContent']({srcPath:a,context:b,framework:c,config:d}){const K=a159z;try{let f=this[K(0x133)]({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this[K(0x11b)]({'filePath':f}),h=[K(0xae),K(0x13f),K(0x130),K(0x10a),'js',K(0xf5),'ts',K(0x144),'json',K(0x10d),'yaml',K(0x121)],i=['png','ico'];if(!this[K(0x148)]['isFile'](f)){g===K(0xf5)&&(f=f['replace'](K(0x146),''));g===K(0x144)&&(f=f[K(0xdc)]('.tsx',''));if(!this[K(0x148)]['isFile'](f))throw new Error(K(0x134)+JSON[K(0xe1)](f));}const j=f[K(0xbc)]('.'),k=a159e[K(0xe3)](f)[K(0xbc)](a159e[K(0xd4)]),l=k[k[K(0xf0)]-0x1]===K(0xd7),m=i[K(0xb2)](j[j[K(0xf0)]-0x1]),n=a159f[K(0xcc)](f);if(l)return a159i[K(0xf1)](n['toString'](),b)[K(0xf3)]();if(m)return Buffer[K(0xcb)](n)[K(0x105)](K(0x123));if(!h[K(0xb2)](j[j['length']-0x1]))return n['toString']()[K(0xf3)]();return a159i['render'](n[K(0x105)](),b||{})[K(0xf3)]();}catch(o){errorHandler(K(0x13a),o),process['exit'](0x1);}}async[a159z(0x121)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const L=a159z;try{const g=['png',L(0x125)],h=g['includes'](a[L(0xbc)]('.')[L(0x12e)]()||''),i=this[L(0xe2)]({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.[L(0xe5)]?b=this['rewriteDestinationPathForType']({'pathParts':[b],'config':d}):b=this[L(0xef)]({'pathParts':[b],'config':d});const j=await this[L(0x148)][L(0xf2)]({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler(L(0x102),k),process[L(0xbe)](0x1);}}async[a159z(0xed)]({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const M=a159z;try{const i=this[M(0x133)]({'pathParts':[a],'framework':g,'config':h}),j=this[M(0x133)]({'pathParts':[],'framework':g,'config':h}),k=n=>{const N=M;return n[N(0xdc)](j,'');},l=n=>{const O=M;return n[O(0xdc)](i,b);};await this[M(0x148)]['createDirectory']({'dirPath':b});const m=a159f[M(0xb1)](i);for(const n of m){try{const o=a159e[M(0x110)](i,n),p=k(o),q=l(o),r=d[M(0xc7)](t=>a159e[M(0xe3)](t)),s=a159e[M(0xe3)](a159e[M(0x110)](a,n));if(r[M(0xb2)](s))continue;if(this['fsi'][M(0xf4)](o))await this['copyTemplateDirectory']({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this[M(0x148)][M(0x12b)](o)&&this[M(0x115)]({'pathParts':[o],'config':h}))await this[M(0x121)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f[M(0x138)](a159e['join'](a,n))>=0x0&&this[M(0x148)]['isFile'](o)&&(c[M(0xe5)]=!![],await this[M(0x121)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c[M(0xe5)]=![]);}}catch(t){console[M(0x104)](t),process['exit'](0x1);}}}catch(u){errorHandler('copyTemplateDirectory()',u),process[M(0xbe)](0x1);}}async[a159z(0xd1)]({filePath:a,content:b,opts:c}){const P=a159z;if(!a)throw new Error(P(0x11d));try{!this[P(0x148)]['isFile'](a)&&await this[P(0x148)][P(0xf2)]({'filePath':a,'data':b});let d=a159f[P(0xcc)](a,P(0xeb));d=b+'\x0a'+d,a159f[P(0xca)](a,d),c?.[P(0xdf)]&&Log[P(0xf8)](treeSymbol+P(0xbb)+a159e[P(0x140)](process[P(0xb3)](),a));}catch(f){errorHandler(P(0x122),f),process[P(0xbe)](0x1);}}async[a159z(0x135)]({filePath:a,content:b,opts:c}){const Q=a159z;try{if(!this[Q(0x148)][Q(0x12b)](a))await this['fsi'][Q(0xf2)]({'filePath':a,'data':b});else{let d=a159f[Q(0xcc)](a,Q(0xeb));!d[Q(0xb2)](b)&&(d=d+'\x0a'+b,a159f[Q(0xca)](a,d)),c?.[Q(0xdf)]&&Log['header'](treeSymbol+Q(0xbb)+a159e[Q(0x140)](process[Q(0xb3)](),a));}}catch(f){errorHandler(Q(0x119),f),process[Q(0xbe)](0x1);}}async[a159z(0x107)]({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const R=a159z;try{if(!this[R(0x148)][R(0x12b)](a))throw Log['error'](R(0xfc)+JSON[R(0xe1)](a));const f=a159f[R(0xcc)](a,R(0xeb)),g=f['replace'](/\r\n|\r/g,'\x0a'),h=g['split']('\x0a'),j=this[R(0x116)](h),k=b[R(0xdc)](/\r\n|\r/g,'\x0a')[R(0xbc)]('\x0a'),l=c[R(0xdc)](/\r\n|\r/g,'\x0a')['split']('\x0a'),m=new RegExp(Array[R(0x103)](d)?d['join']('|'):d,'i'),n=[];for(let p=0x0;p<h[R(0xf0)];p++){const q=h[p];if(m['test'](q)){const r=this['adjustIndentation'](j,targetIndentAdjustment),s=r+q[R(0xf3)]();k[R(0xb7)](t=>{const S=R;!g[S(0xb2)](t[S(0xf3)]())&&n[S(0xea)](this[S(0x139)](j,indentAdjustment)+t);}),n['push'](s),l[R(0xb7)](t=>{const T=R;!g[T(0xb2)](t[T(0xf3)]())&&n[T(0xea)](this[T(0x139)](j,indentAdjustment)+t);});}else n['push'](q);}const o=n['join']('\x0a');a159f['writeFileSync'](a,o),Log[R(0xf8)](treeSymbol+R(0xbb)+a159e['relative'](process['cwd'](),a));}catch(t){errorHandler('injectAroundString()',t),process[R(0xbe)](0x1);}}[a159z(0x139)](a,b){const U=a159z;if(b===0x0)return a;const c=a[U(0xf0)]+b;return c>0x0?a[0x0][U(0x132)](c):'';}['detectIndentation'](a){const W=a159z;let b=0x0,c=0x0;a['forEach'](f=>{const V=a159d;if(f[V(0xad)]('\x20'))b++;else f[V(0xad)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this['getCommonIndentSize'](a,d);return d[W(0x132)](e);}[a159z(0x10c)](a,b){const X=a159z,c=a[X(0x11e)](d=>d&&d[X(0xad)](b))[X(0xc7)](d=>{const Y=X,e=d[Y(0x112)](new RegExp('^'+b+'+'));return e?e[0x0][Y(0xf0)]:0x0;});if(c[X(0xf0)]===0x0)return 0x0;return this['calculateMode'](c);}['calculateMode'](a){const Z=a159z,b=a[Z(0x14d)]((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object[Z(0x12f)](b)[Z(0x14d)]((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async[a159z(0x14b)]({filePath:a,content:b,begin:c,replace:replace=![]}){const a0=a159z;try{if(!this[a0(0x148)][a0(0x12b)](a))throw new Error(a0(0xe9)+a);const d=a159f[a0(0xcc)](a,a0(0xeb)),f=d[a0(0xbc)]('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array[a0(0x103)](c)?c:[c];for(let o=0x0;o<f[a0(0xf0)];o++){const p=f[o];k&&p[a0(0xb2)]('{')&&j++;if(m[a0(0x128)](q=>p['includes'](q))){g=o,k=!![],j++;continue;}if(k){p[a0(0xb2)](b[a0(0xf3)]())&&(l=!![]);if(p['includes']('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[a0(0x104)](a0(0xb9)+a),Log[a0(0x104)]('While\x20injecting\x20'+b),Log[a0(0x104)](a0(0xec)+c);throw new Error(a0(0x111));}if(l)return;let n=f[a0(0x11a)](0x0,g+0x1);replace?(n[a0(0xea)](b['trim']()),n['push'](f[h])):(n=n[a0(0x129)](f[a0(0x11a)](g+0x1,h)),n[a0(0xea)](b[a0(0xf3)]())),n=n[a0(0x129)](f[a0(0x11a)](h+0x1)),a159f[a0(0xca)](a,n['join']('\x0a'),a0(0xeb));}catch(q){console['error'](a0(0xf7),q);throw q;}}async['injectIntoFile']({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const a1=a159z;try{const g=await this[a1(0x148)][a1(0x101)](a,c);if(g)return;if(!this['fsi']['isFile'](a))throw Log[a1(0x104)]('No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20'+JSON['stringify'](a));const h=a159f[a1(0xcc)](a,'utf8');if(!Array[a1(0x103)](d))d=[d];if(!Array[a1(0x103)](f))f=[f];let i=h,j=![];for(const k of d){for(const l of f){const m=new RegExp('('+k+a1(0xcf)+l+')','i');i=h['replace'](m,(n,o,p)=>{return j=!![],replace?''+o+c+p:''+o+c+'\x0a'+p;});if(j)break;}if(j)break;}if(!j)throw new Error('No\x20matching\x20section\x20found.');a159f[a1(0xca)](a,i),Log[a1(0xf8)](treeSymbol+'\x20updated\x20file\x20'+a159e[a1(0x140)](process[a1(0xb3)](),a));}catch(n){errorHandler(a1(0x12a),n),process['exit'](0x1);}}async[a159z(0x145)]({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const a2=a159z;try{const f=a159f[a2(0xcc)](a,'utf8');let g;d?g=a2(0x113)+b+a2(0xd5)+c+'\x27;\x0a':g=a2(0xe6)+b+'\x20from\x20\x27'+c+a2(0x11f);const h=f[a2(0xbc)]('\x0a');let j=0x0,k=![];for(const m of h){if(m[a2(0xb2)]('from\x20\x27'+c+'\x27')||m[a2(0xb2)](a2(0x137)+c+'\x22')){const n=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(a2(0xe6)+b+a2(0xaf));if(m[a2(0x112)](n)){k=!![];break;}}}if(k)return;if(injectAtStart)for(let o=0x0;o<h[a2(0xf0)];o++){if(h[o]['match'](/^import .* from .*;$/)){j=o;break;}}else{for(let p=0x0;p<h['length'];p++){h[p][a2(0x112)](/^import .* from .*;$/)&&(j=p);}j++;}h[a2(0xb5)](j,0x0,g);const l=h[a2(0x110)]('\x0a');a159f['writeFileSync'](a,l,a2(0xeb));}catch(q){errorHandler('injectImport()',q),process[a2(0xbe)](0x1);}}async[a159z(0x14a)](a,b,c){const a3=a159z;try{let d;b[a3(0xe4)][a3(0xd8)]!=='none'?d=this[a3(0xe8)]({'pathParts':['imports',a3(0xfa),a3(0xc4),a3(0x11c)],'config':b}):d=this[a3(0xe8)]({'pathParts':[a3(0x106),'startup','client',a3(0x11c)],'config':b});const f=this[a3(0xef)]({'pathParts':[d],'config':b}),g=a3(0xc1)+pascalCase(a)+a3(0xd5)+c+'\x27;',h=await this[a3(0x148)]['fileContainsString'](f,g);!h&&this['injectAtEndOfFile']({'filePath':f,'content':g+'\x0a'});}catch(i){errorHandler(a3(0xfe),i),process[a3(0xbe)](0x1);}}[a159z(0xd9)]({filePath:a,content:b,lineNumber:c}){const a4=a159z;try{const d=a159f[a4(0xcc)](a)[a4(0x105)]()['split']('\x0a');d[a4(0xb5)](c,0x0,b);const f=d['join']('\x0a');a159f[a4(0xca)](a,f);}catch(g){errorHandler(a4(0xc0),g),process[a4(0xbe)](0x1);}}['pathFromApp']({pathParts:a,config:b}){const a5=a159z;try{if(!a)throw new Error(a5(0xe7));const c=this[a5(0x142)]({'pathParts':a,'config':b}),d=this[a5(0x148)][a5(0xf6)]();return d?a159e[a5(0x110)](d,c):'';}catch(f){errorHandler(a5(0xd6),f),process[a5(0xbe)](0x1);}}[a159z(0x117)]({pathParts:a,config:b}){const a6=a159z;try{const c=this['writeSourcePath']({'pathParts':a,'config':b}),d=this[a6(0x148)][a6(0xf6)]();if(!d)throw new Error(a6(0xbf));return a159e[a6(0x110)](d,c);}catch(f){errorHandler('pathFromAppWithNoReWrite()',f),process[a6(0xbe)](0x1);}}}
|
|
1
|
+
const a159z=a159d;(function(a,b){const v=a159d,c=a();while(!![]){try{const d=-parseInt(v(0x1b0))/0x1*(-parseInt(v(0x1dc))/0x2)+parseInt(v(0x1ba))/0x3*(-parseInt(v(0x215))/0x4)+parseInt(v(0x1a2))/0x5+-parseInt(v(0x217))/0x6+parseInt(v(0x206))/0x7+parseInt(v(0x1ee))/0x8*(-parseInt(v(0x1d9))/0x9)+-parseInt(v(0x1a7))/0xa*(parseInt(v(0x1cc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a159c,0x3cb28));const a159b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a159d;if(c){const e=c[w(0x23d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a159a=a159b(this,function(){const x=a159d;return a159a['toString']()[x(0x1dd)]('(((.+)+)+)+$')[x(0x212)]()['constructor'](a159a)[x(0x1dd)](x(0x1d0));});a159a();function a159c(){const a6=['error','endsWith','pathFromTemplates()','No\x20app\x20directory\x20found','injectAtBeginningOfFile()','cwd','template','getInstance','While\x20injecting\x20','import\x20','2671956DRwrCZ','indexOf','copyTemplateDirectory','existsSync','Meteor\x20project\x20already\x20exists\x20at\x20','join','base64','\x20updated\x20file\x20','startup','from\x20\x22','normalize','calculateMode','toString','rewriteDestinationPathForType','trim','416356bzvtni','\x27;\x0a','451818kDrMra','isDirectory','readdirSync','findAppDirectory','MAKA_DEV','isTemplateForEngine','.js.ts','slice','injectIntoFile()','none','isArray','replace','injectImport()','client','filter','injectAfterLineNumber','jsx','export\x20{\x20','from\x20\x27','length','pathFromAppWithNoReWrite()','render','engines','stringify','engineAndTypeFromfilePath','getCommonIndentSize','instance','match','sep','imports','templates.js','ico','templateContent()','lib','createFile','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','copyTemplateDirectory()','rewriteDestinationPathForType()','apply','pathFromTemplates','--minimal','\x20from','pop','MAKA_COMMAND_PATH','scss','1964425WaodcV','injectAtBeginningOfFile','rewriteSourcePathForEngine','\x20from\x20\x27','Looking\x20for\x20','1153430FhRTvH','fileContainsString','win32','json','rewriteDestinationPathForEngine','engine','meteor','.meteor','utf8','1cvgUkn','createDirectory','.js','Error\x20in\x20injectIntoCodeBlock:\x20','injectAtEndOfFile()','push','verbose','ssr','release','\x20}\x20from\x20\x27','9eXGtDE','writeFileSync','templateContent','tsx','detectIndentation','Dockerfile','File\x20not\x20found:\x20','createEmptyMeteorProject','reduce','injectIntoFile','some','.tsx','writeSourcePath','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','engineAndTypeFromfilePath()','fsi','adjustIndentation','concat','11KjLCmu','includes','map','split','(((.+)+)+)+$','yaml','png','No\x20file\x20found\x20at\x20path\x20','noRename','splice','.js.tsx','exit','forEach','3189717HUbDpI','pathFromApp','readFileSync','662698DxROzz','search','repeat','True','type','alpha','header','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20','No\x20pathParts\x20option\x20provided','startsWith','Directory\x20','injectTemplateModule()','platform','message','Error\x20in\x20','isTemplateForEngine()','\x20create\x20','src/templates/','8PfGnkK','warn','less','injectAtEndOfFile','test','isFile','injectAroundString()','relative','injectAfterLineNumber()','\x5cS*$','env','\x20->','mpi','injectTemplateModule'];a159c=function(){return a6;};return a159c();}import a159e from'path';import a159f from'fs';import a159g from'util';import{exec}from'child_process';import a159h from'delete';import a159i from'ejs';import{pascalCase}from'change-case';function a159d(a,b){const c=a159c();return a159d=function(d,e){d=d-0x19e;let f=c[d];return f;},a159d(a,b);}import{Log}from'../log/log.class.js';const errorHandler=(a,b)=>{const y=a159d;process[y(0x1f8)][y(0x21b)]===y(0x1df)&&Log['error'](y(0x1ea)+a),b&&console[y(0x1fc)](b);},isWin=process[a159z(0x1e8)]===a159z(0x1a9),treeSymbol=isWin?a159z(0x1f9):'\x20┗';export class Scaffold{static [a159z(0x231)];['fsi'];[a159z(0x1fa)];constructor(a,b){const A=a159z;this[A(0x1c9)]=a,this[A(0x1fa)]=b;}static[a159z(0x203)](a,b){const B=a159z;return!Scaffold['instance']&&(Scaffold[B(0x231)]=new Scaffold(a,b)),Scaffold['instance'];}async[a159z(0x1c1)](a,b){const C=a159z;b[C(0x201)]=b[C(0x201)]||'.';const c=a159e[C(0x20b)](b[C(0x201)],a),d=a159e[C(0x20b)](c,C(0x1ae));if(this[C(0x1c9)][C(0x218)](d))throw new Error(C(0x20a)+JSON[C(0x22e)](c));const e=C(0x23f),f=a159e['join'](b[C(0x201)]),g=a159g['promisify'](exec),h=b['release']?'--release\x20'+b['release']:'';b['release']&&b[C(0x1b8)][C(0x1cd)](C(0x1e1))&&(Log['warn']('Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20'+b[C(0x1b8)]),Log[C(0x1ef)]('Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues'));try{await g(this[C(0x1fa)]['meteor']+C(0x1ec)+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[C(0x1fc)]('\x0a'+k[C(0x1e9)]);throw k;}const i=a159e[C(0x20b)](f,a);if(!a159f[C(0x209)](i))throw new Error(C(0x1e6)+i+'\x20doesn\x27t\x20exist');const j=a159f[C(0x219)](i);for(const l of j){if(l!=='.git'&&l!==C(0x1ae)){const m=a159e['join'](i,l);await a159h(m,{'force':!![]});}}}[a159z(0x22f)]({filePath:a}){const D=a159z;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a[D(0x232)](b);c=c&&c[0x0][D(0x1cf)]('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[D(0x19f)](),f=c[D(0x19f)]()||d;if(d)d=d[D(0x222)]('.','');if(f)f=f[D(0x222)]('.','');return{'type':f,'engine':d};}catch(g){errorHandler(D(0x1c8),g),process[D(0x1d7)](0x1);}}[a159z(0x213)]({pathParts:a,config:b}){const E=a159z;try{const c=a['join'](a159e[E(0x233)]),d=this[E(0x22f)]({'filePath':c})[E(0x1e0)],f=b?.[E(0x22d)][d],g=new RegExp('\x5c.'+d+E(0x1f7));return!d||!f?c:c['replace'](g,'.'+d);}catch(h){errorHandler(E(0x23c),h),process['exit'](0x1);}}[a159z(0x21c)]({pathParts:a,config:b}){const F=a159z;try{if(!b)throw new Error(F(0x1c7));const c=a[F(0x20b)](a159e[F(0x233)]),d=this[F(0x22f)]({'filePath':c});if(!d[F(0x1e0)]||!d['engine'])return!![];const f=b[F(0x22d)][d[F(0x1e0)]];if(!f)return!![];return f===d[F(0x1ac)];}catch(g){errorHandler(F(0x1eb),g),process[F(0x1d7)](0x1);}}[a159z(0x1c6)]({pathParts:pathParts=[]}){const G=a159z;return pathParts[G(0x20b)](a159e[G(0x233)]);}['rewriteDestinationPathForEngine']({pathParts:pathParts=[],config:a}){const H=a159z;try{const b=pathParts[H(0x20b)](a159e[H(0x233)]),c=this[H(0x22f)]({'filePath':b})[H(0x1e0)],d=a?.[H(0x22d)][c],f=new RegExp('\x5c.'+c+H(0x1f7));return!c||!d?b:b[H(0x222)](f,'.'+d);}catch(g){errorHandler('rewriteDestinationPathForEngine()',g),process[H(0x1d7)](0x1);}}['rewriteSourcePathForEngine']({pathParts:pathParts=[],framework:framework=a159z(0x1ad),config:a}){const I=a159z;try{const b=a159e['normalize'](pathParts[I(0x20b)](a159e[I(0x233)]));if(!b[I(0x1fd)](I(0x1b2)))return b;const c='js';if(!a?.[I(0x22d)]||!a?.[I(0x22d)][c])return b;const d=a[I(0x22d)][c],f=d===I(0x1bd)?[I(0x1d6),I(0x21d),I(0x1b2)]:['.js.jsx',I(0x1b2)];for(const g of f){const h=b[I(0x222)](/\.js$/,g),i=a159e['join']('templates',framework,h),j=a159e['normalize'](a159e[I(0x20b)](global[I(0x1a0)],i));if(a159f['existsSync'](j))return h;}return b;}catch(k){errorHandler('rewriteSourcePathForEngine()',k),process[I(0x1d7)](0x1);}}[a159z(0x23e)]({pathParts:a,framework:framework=a159z(0x1ad),config:b}){const J=a159z;try{const c=this[J(0x1a4)]({'pathParts':a,'framework':framework,'config':b}),d=a159e[J(0x20b)](J(0x1ed)+framework,c),f=a159e[J(0x20b)](global[J(0x1a0)],'..',d);return f;}catch(g){errorHandler(J(0x1fe),g),process[J(0x1d7)](0x1);}}[a159z(0x1bc)]({srcPath:a,context:b,framework:c,config:d}){const K=a159z;try{let f=this[K(0x23e)]({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this[K(0x22f)]({'filePath':f}),h=['css',K(0x1a1),K(0x1f0),'html','js',K(0x227),'ts',K(0x1bd),K(0x1aa),K(0x1f8),K(0x1d1),'template'],i=[K(0x1d2),K(0x236)];if(!this['fsi'][K(0x1f3)](f)){g===K(0x227)&&(f=f[K(0x222)]('.jsx',''));g==='tsx'&&(f=f[K(0x222)](K(0x1c5),''));if(!this[K(0x1c9)][K(0x1f3)](f))throw new Error('Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20'+JSON[K(0x22e)](f));}const j=f[K(0x1cf)]('.'),k=a159e['normalize'](f)[K(0x1cf)](a159e[K(0x233)]),l=k[k[K(0x22a)]-0x1]===K(0x1bf),m=i[K(0x1cd)](j[j[K(0x22a)]-0x1]),n=a159f[K(0x1db)](f);if(l)return a159i[K(0x22c)](n[K(0x212)](),b)['trim']();if(m)return Buffer['from'](n)['toString'](K(0x20c));if(!h[K(0x1cd)](j[j[K(0x22a)]-0x1]))return n['toString']()['trim']();return a159i['render'](n[K(0x212)](),b||{})[K(0x214)]();}catch(o){errorHandler(K(0x237),o),process[K(0x1d7)](0x1);}}async[a159z(0x202)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const L=a159z;try{const g=['png',L(0x236)],h=g[L(0x1cd)](a[L(0x1cf)]('.')['pop']()||''),i=this[L(0x1bc)]({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.[L(0x1d4)]?b=this[L(0x213)]({'pathParts':[b],'config':d}):b=this[L(0x1ab)]({'pathParts':[b],'config':d});const j=await this[L(0x1c9)][L(0x239)]({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler('template()',k),process[L(0x1d7)](0x1);}}async['copyTemplateDirectory']({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const M=a159z;try{const i=this['pathFromTemplates']({'pathParts':[a],'framework':g,'config':h}),j=this[M(0x23e)]({'pathParts':[],'framework':g,'config':h}),k=n=>{const N=M;return n[N(0x222)](j,'');},l=n=>{const O=M;return n[O(0x222)](i,b);};await this[M(0x1c9)][M(0x1b1)]({'dirPath':b});const m=a159f[M(0x219)](i);for(const n of m){try{const o=a159e[M(0x20b)](i,n),p=k(o),q=l(o),r=d[M(0x1ce)](t=>a159e[M(0x210)](t)),s=a159e[M(0x210)](a159e[M(0x20b)](a,n));if(r[M(0x1cd)](s))continue;if(this['fsi'][M(0x218)](o))await this[M(0x208)]({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this['fsi']['isFile'](o)&&this[M(0x21c)]({'pathParts':[o],'config':h}))await this[M(0x202)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f[M(0x207)](a159e[M(0x20b)](a,n))>=0x0&&this[M(0x1c9)][M(0x1f3)](o)&&(c[M(0x1d4)]=!![],await this[M(0x202)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c[M(0x1d4)]=![]);}}catch(t){console[M(0x1fc)](t),process[M(0x1d7)](0x1);}}}catch(u){errorHandler(M(0x23b),u),process['exit'](0x1);}}async[a159z(0x1a3)]({filePath:a,content:b,opts:c}){const P=a159z;if(!a)throw new Error(P(0x23a));try{!this[P(0x1c9)][P(0x1f3)](a)&&await this[P(0x1c9)][P(0x239)]({'filePath':a,'data':b});let d=a159f[P(0x1db)](a,P(0x1af));d=b+'\x0a'+d,a159f[P(0x1bb)](a,d),c?.[P(0x1b6)]&&Log[P(0x1e2)](treeSymbol+P(0x20d)+a159e[P(0x1f5)](process['cwd'](),a));}catch(f){errorHandler(P(0x200),f),process['exit'](0x1);}}async[a159z(0x1f1)]({filePath:a,content:b,opts:c}){const Q=a159z;try{if(!this[Q(0x1c9)]['isFile'](a))await this[Q(0x1c9)][Q(0x239)]({'filePath':a,'data':b});else{let d=a159f[Q(0x1db)](a,Q(0x1af));!d[Q(0x1cd)](b)&&(d=d+'\x0a'+b,a159f[Q(0x1bb)](a,d)),c?.['verbose']&&Log[Q(0x1e2)](treeSymbol+Q(0x20d)+a159e[Q(0x1f5)](process[Q(0x201)](),a));}}catch(f){errorHandler(Q(0x1b4),f),process[Q(0x1d7)](0x1);}}async['injectAroundString']({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const R=a159z;try{if(!this[R(0x1c9)][R(0x1f3)](a))throw Log[R(0x1fc)](R(0x1d3)+JSON['stringify'](a));const f=a159f['readFileSync'](a,R(0x1af)),g=f[R(0x222)](/\r\n|\r/g,'\x0a'),h=g[R(0x1cf)]('\x0a'),j=this[R(0x1be)](h),k=b[R(0x222)](/\r\n|\r/g,'\x0a')['split']('\x0a'),l=c[R(0x222)](/\r\n|\r/g,'\x0a')[R(0x1cf)]('\x0a'),m=new RegExp(Array[R(0x221)](d)?d['join']('|'):d,'i'),n=[];for(let p=0x0;p<h['length'];p++){const q=h[p];if(m[R(0x1f2)](q)){const r=this[R(0x1ca)](j,targetIndentAdjustment),s=r+q[R(0x214)]();k[R(0x1d8)](t=>{const S=R;!g[S(0x1cd)](t['trim']())&&n[S(0x1b5)](this[S(0x1ca)](j,indentAdjustment)+t);}),n[R(0x1b5)](s),l[R(0x1d8)](t=>{const T=R;!g[T(0x1cd)](t[T(0x214)]())&&n[T(0x1b5)](this[T(0x1ca)](j,indentAdjustment)+t);});}else n[R(0x1b5)](q);}const o=n[R(0x20b)]('\x0a');a159f[R(0x1bb)](a,o),Log[R(0x1e2)](treeSymbol+R(0x20d)+a159e[R(0x1f5)](process[R(0x201)](),a));}catch(t){errorHandler(R(0x1f4),t),process[R(0x1d7)](0x1);}}[a159z(0x1ca)](a,b){const U=a159z;if(b===0x0)return a;const c=a[U(0x22a)]+b;return c>0x0?a[0x0][U(0x1de)](c):'';}['detectIndentation'](a){const V=a159z;let b=0x0,c=0x0;a[V(0x1d8)](f=>{if(f['startsWith']('\x20'))b++;else f['startsWith']('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[V(0x230)](a,d);return d[V(0x1de)](e);}[a159z(0x230)](a,b){const W=a159z,c=a[W(0x225)](d=>d&&d[W(0x1e5)](b))[W(0x1ce)](d=>{const X=W,e=d['match'](new RegExp('^'+b+'+'));return e?e[0x0][X(0x22a)]:0x0;});if(c['length']===0x0)return 0x0;return this[W(0x211)](c);}[a159z(0x211)](a){const Y=a159z,b=a[Y(0x1c2)]((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object['keys'](b)[Y(0x1c2)]((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async['injectIntoCodeBlock']({filePath:a,content:b,begin:c,replace:replace=![]}){const Z=a159z;try{if(!this[Z(0x1c9)][Z(0x1f3)](a))throw new Error(Z(0x1c0)+a);const d=a159f[Z(0x1db)](a,Z(0x1af)),f=d[Z(0x1cf)]('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array[Z(0x221)](c)?c:[c];for(let o=0x0;o<f[Z(0x22a)];o++){const p=f[o];k&&p[Z(0x1cd)]('{')&&j++;if(m[Z(0x1c4)](q=>p[Z(0x1cd)](q))){g=o,k=!![],j++;continue;}if(k){p[Z(0x1cd)](b[Z(0x214)]())&&(l=!![]);if(p[Z(0x1cd)]('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[Z(0x1fc)](Z(0x1e3)+a),Log['error'](Z(0x204)+b),Log[Z(0x1fc)](Z(0x1a6)+c);throw new Error('Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.');}if(l)return;let n=f[Z(0x21e)](0x0,g+0x1);replace?(n[Z(0x1b5)](b[Z(0x214)]()),n[Z(0x1b5)](f[h])):(n=n['concat'](f['slice'](g+0x1,h)),n[Z(0x1b5)](b[Z(0x214)]())),n=n[Z(0x1cb)](f[Z(0x21e)](h+0x1)),a159f[Z(0x1bb)](a,n[Z(0x20b)]('\x0a'),Z(0x1af));}catch(q){console[Z(0x1fc)](Z(0x1b3),q);throw q;}}async[a159z(0x1c3)]({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const a0=a159z;try{const g=await this[a0(0x1c9)][a0(0x1a8)](a,c);if(g)return;if(!this[a0(0x1c9)][a0(0x1f3)](a))throw Log['error']('No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20'+JSON[a0(0x22e)](a));const h=a159f[a0(0x1db)](a,a0(0x1af));if(!Array[a0(0x221)](d))d=[d];if(!Array[a0(0x221)](f))f=[f];let i=h,j=![];for(const k of d){for(const l of f){const m=new RegExp('('+k+'[\x5cs\x5cS]*?)('+l+')','i');i=h[a0(0x222)](m,(n,o,p)=>{return j=!![],replace?''+o+c+p:''+o+c+'\x0a'+p;});if(j)break;}if(j)break;}if(!j)throw new Error('No\x20matching\x20section\x20found.');a159f[a0(0x1bb)](a,i),Log['header'](treeSymbol+a0(0x20d)+a159e[a0(0x1f5)](process[a0(0x201)](),a));}catch(n){errorHandler(a0(0x21f),n),process[a0(0x1d7)](0x1);}}async['injectImport']({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const a1=a159z;try{const f=a159f[a1(0x1db)](a,a1(0x1af));let g;d?g='import\x20{\x20'+b+'\x20}\x20from\x20\x27'+c+a1(0x216):g=a1(0x205)+b+a1(0x1a5)+c+'\x27;\x0a';const h=f[a1(0x1cf)]('\x0a');let j=0x0,k=![];for(const m of h){if(m[a1(0x1cd)](a1(0x229)+c+'\x27')||m[a1(0x1cd)](a1(0x20f)+c+'\x22')){const n=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(a1(0x205)+b+a1(0x19e));if(m[a1(0x232)](n)){k=!![];break;}}}if(k)return;if(injectAtStart)for(let o=0x0;o<h['length'];o++){if(h[o][a1(0x232)](/^import .* from .*;$/)){j=o;break;}}else{for(let p=0x0;p<h['length'];p++){h[p][a1(0x232)](/^import .* from .*;$/)&&(j=p);}j++;}h[a1(0x1d5)](j,0x0,g);const l=h['join']('\x0a');a159f[a1(0x1bb)](a,l,a1(0x1af));}catch(q){errorHandler(a1(0x223),q),process[a1(0x1d7)](0x1);}}async[a159z(0x1fb)](a,b,c){const a2=a159z;try{let d;b[a2(0x22d)][a2(0x1b7)]!==a2(0x220)?d=this[a2(0x1da)]({'pathParts':[a2(0x234),'startup',a2(0x238),a2(0x235)],'config':b}):d=this[a2(0x1da)]({'pathParts':[a2(0x234),a2(0x20e),a2(0x224),'templates.js'],'config':b});const f=this[a2(0x1ab)]({'pathParts':[d],'config':b}),g=a2(0x228)+pascalCase(a)+a2(0x1b9)+c+'\x27;',h=await this[a2(0x1c9)][a2(0x1a8)](f,g);!h&&this['injectAtEndOfFile']({'filePath':f,'content':g+'\x0a'});}catch(i){errorHandler(a2(0x1e7),i),process['exit'](0x1);}}[a159z(0x226)]({filePath:a,content:b,lineNumber:c}){const a3=a159z;try{const d=a159f[a3(0x1db)](a)[a3(0x212)]()[a3(0x1cf)]('\x0a');d[a3(0x1d5)](c,0x0,b);const f=d[a3(0x20b)]('\x0a');a159f['writeFileSync'](a,f);}catch(g){errorHandler(a3(0x1f6),g),process['exit'](0x1);}}[a159z(0x1da)]({pathParts:a,config:b}){const a4=a159z;try{if(!a)throw new Error(a4(0x1e4));const c=this[a4(0x1a4)]({'pathParts':a,'config':b}),d=this['fsi']['findAppDirectory']();return d?a159e[a4(0x20b)](d,c):'';}catch(f){errorHandler('pathFromApp()',f),process['exit'](0x1);}}['pathFromAppWithNoReWrite']({pathParts:a,config:b}){const a5=a159z;try{const c=this[a5(0x1c6)]({'pathParts':a,'config':b}),d=this[a5(0x1c9)][a5(0x21a)]();if(!d)throw new Error(a5(0x1ff));return a159e['join'](d,c);}catch(f){errorHandler(a5(0x22b),f),process[a5(0x1d7)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a160l=a160d;(function(a,b){const j=a160d,c=a();while(!![]){try{const d=parseInt(j(0x18d))/0x1*(parseInt(j(0x19f))/0x2)+parseInt(j(0x19b))/0x3*(parseInt(j(0x1a4))/0x4)+-parseInt(j(0x1a5))/0x5*(-parseInt(j(0x190))/0x6)+-parseInt(j(0x1a2))/0x7*(-parseInt(j(0x19c))/0x8)+parseInt(j(0x193))/0x9*(parseInt(j(0x198))/0xa)+-parseInt(j(0x18f))/0xb+-parseInt(j(0x19e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a160c,0x69621));const a160b=(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;};}()),a160a=a160b(this,function(){const k=a160d;return a160a[k(0x195)]()[k(0x194)](k(0x1a3))[k(0x195)]()[k(0x19a)](a160a)[k(0x194)](k(0x1a3));});a160a();import{spawn}from'child_process';function a160d(a,b){const c=a160c();return a160d=function(d,e){d=d-0x18c;let f=c[d];return f;},a160d(a,b);}function a160c(){const q=['kill','5903kVNvPZ','withSpinner','6611176nVeKGL','9204ppkLRD','error','SIGINT','4897539BNKlXr','search','toString','start','message','10hPcXtL','cwd','constructor','128508BiHSDt','8wSaxVk','close','12591216XviiLj','172sjXcbc','pid','success','33502IwmfHq','(((.+)+)+)+$','32vkhCgV','2225VwGqOC'];a160c=function(){return q;};return a160c();}import{Log}from'../log/log.class.js';export class SpawnAsync{static[a160l(0x18e)](a,b,c){return new Promise((d,e)=>{const m=a160d,f=Log[m(0x18e)](),g=c?.[m(0x199)]||'.';c?.[m(0x197)]&&f[m(0x196)](c?.[m(0x197)]);const h=spawn(a,b,{'cwd':g,'stdio':c?.['verbose']?'inherit':'ignore'});process['on'](m(0x192),()=>{const n=m,i=h[n(0x1a0)];i&&process[n(0x18c)](i);}),h['on']('data',i=>{console['log'](i);}),h['on']('disconnect',()=>{const o=m;c?.[o(0x197)]&&f[o(0x1a1)](),d();}),h['on'](m(0x19d),()=>{const p=m;c?.[p(0x197)]&&f['success'](),d();}),h['on'](m(0x191),()=>{c?.['message']&&f['failure'](),e();});});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a161d,c=a();while(!![]){try{var d=parseInt(f(0xee))/0x1*(parseInt(f(0xef))/0x2)+-parseInt(f(0xe8))/0x3*(parseInt(f(0xf0))/0x4)+-parseInt(f(0xf1))/0x5+-parseInt(f(0xed))/0x6+-parseInt(f(0xe9))/0x7+parseInt(f(0xea))/0x8*(-parseInt(f(0xe7))/0x9)+parseInt(f(0xec))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a161c,0x76c34));function a161d(a,b){var c=a161c();return a161d=function(d,e){d=d-0xe7;var f=c[d];return f;},a161d(a,b);}function a161c(){var h=['toString','search','constructor','900BMuWph','309aUTGDV','4495106SnXgAB','7608CpsyGL','(((.+)+)+)+$','18512970gmaDDg','4083768YfVfch','1256FeRGsF','1304WCGeZZ','11308ZOZszF','2373450QvXecB'];a161c=function(){return h;};return a161c();}var a161b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a161a=a161b(this,function(){var g=a161d;return a161a[g(0xf2)]()[g(0xf3)](g(0xeb))['toString']()[g(0xf4)](a161a)[g(0xf3)]('(((.+)+)+)+$');});a161a();export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a162p=a162d;(function(a,b){const m=a162d,c=a();while(!![]){try{const d=parseInt(m(0x9c))/0x1+parseInt(m(0x85))/0x2*(parseInt(m(0x80))/0x3)+parseInt(m(0x8a))/0x4+-parseInt(m(0x93))/0x5+-parseInt(m(0x84))/0x6+-parseInt(m(0x96))/0x7*(parseInt(m(0xa2))/0x8)+parseInt(m(0x86))/0x9*(parseInt(m(0x91))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0x1a76b));function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0x7a;let f=c[d];return f;},a162d(a,b);}const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a162d;if(c){const e=c[n(0x9f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const o=a162d;return a162a[o(0x89)]()[o(0x8f)](o(0x8d))[o(0x89)]()['constructor'](a162a)[o(0x8f)]('(((.+)+)+)+$');});a162a();import a162e from'path';import{execSync,spawnSync,spawn}from'child_process';import{Log}from'../log/log.class.js';function a162c(){const x=['search','failure','350990sIWimh','inherit','975465uVkzvs','source','success','7acIhpN','ssh\x20','ignore','concat','ConnectTimeout=2','withSpinner','145863iVmtYE','verbose','sshVerbose','apply','message','start','1175672XczDVk','join','scp','host','tty','ssh','env','3JiCsTt','port','dest','disconnect','793374PCuVcA','8278CvXqlN','63OZRoNX','push','pem','toString','747924FDEZUN','user','close','(((.+)+)+)+$','error'];a162c=function(){return x;};return a162c();}export class SSH{static [a162p(0x7e)]=(a,b,c)=>{return new Promise((d,e)=>{const q=a162d,f=b[q(0x8b)]+'@'+b[q(0x7c)],g=a162e[q(0x7a)](b[q(0x7f)],b[q(0x88)]),h=c?.[q(0x7d)]||![],i=c?.[q(0x9e)]||![];let j=[];h&&j['push']('-t');i&&j[q(0x87)]('-v');j=j[q(0x99)](['-o',q(0x9a),'-i',g,'-p',b[q(0x81)],f,a]);const k=Log[q(0x9b)]();c?.[q(0xa0)]&&k[q(0xa1)](c?.[q(0xa0)]);const l=spawn(q(0x7e),j,{'stdio':c?.[q(0x9d)]?q(0x92):q(0x98)});l['on'](q(0x83),()=>{const r=q;c?.[r(0xa0)]&&k[r(0x95)](),d();}),l['on'](q(0x8c),()=>{const s=q;c?.[s(0xa0)]&&k['success'](),d();}),l['on'](q(0x8e),()=>{const t=q;c?.[t(0xa0)]&&k[t(0x90)](),e();});});};static ['sshSync']=(a,b,c)=>{const u=a162p,d=b[u(0x8b)]+'@'+b[u(0x7c)],e=a162e[u(0x7a)](b['env'],b[u(0x88)]),f=c?.[u(0x7d)]||![],g=c?.['sshVerbose']||![];let h=[];f&&h[u(0x87)]('-t'),g&&h[u(0x87)]('-v'),h=h[u(0x99)](['-o','ConnectTimeout=2','-i',e,'-p',b[u(0x81)],d,a]),spawnSync(u(0x7e),h,{'stdio':c?.[u(0x9d)]?u(0x92):'ignore'});};static['ping'](a,b,c){const v=a162p,d=b[v(0x8b)]+'@'+b[v(0x7c)],e=a162e[v(0x7a)](b[v(0x7f)],b[v(0x88)]),f=c?.['tty']||![];let g=[];f&&g[v(0x87)]('-t');g=g[v(0x99)](['-o',v(0x9a),'-i',e,'-p',b['port'],d,a,'2>&1']);const h=v(0x97)+g[v(0x7a)]('\x20');return execSync(h)['toString']();}static[a162p(0x7b)](a,b){const w=a162p,c=b['user']+'@'+b[w(0x7c)]+':'+a[w(0x82)],d=a162e[w(0x7a)](b[w(0x7f)],b[w(0x88)]),e=['-i',d,'-P',b[w(0x81)],a[w(0x94)],c];spawnSync(w(0x7b),e,{'stdio':a[w(0x9d)]?w(0x92):'ignore'});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a163d,c=a();while(!![]){try{var d
|
|
1
|
+
function a163d(a,b){var c=a163c();return a163d=function(d,e){d=d-0xa4;var f=c[d];return f;},a163d(a,b);}function a163c(){var i=['(((.+)+)+)+$','68yfgYuz','894365zBcLQW','694570GvdAoJ','1691866lhQmbt','110940PJIeJy','apply','3266494ycixCY','111140yeJDaC','132kVLkJQ','search','toString','1794882TgCTXg','6tQoBdK','constructor','45QgjobN','8yVZQYP'];a163c=function(){return i;};return a163c();}(function(a,b){var f=a163d,c=a();while(!![]){try{var d=parseInt(f(0xb0))/0x1*(-parseInt(f(0xa4))/0x2)+-parseInt(f(0xad))/0x3*(parseInt(f(0xa9))/0x4)+parseInt(f(0xaa))/0x5+parseInt(f(0xb4))/0x6+-parseInt(f(0xaf))/0x7*(parseInt(f(0xa7))/0x8)+parseInt(f(0xa6))/0x9*(-parseInt(f(0xab))/0xa)+parseInt(f(0xac))/0xb*(parseInt(f(0xb1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a163c,0x60297));var a163b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a163d;if(c){var e=c[g(0xae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a163a=a163b(this,function(){var h=a163d;return a163a[h(0xb3)]()[h(0xb2)](h(0xa8))['toString']()[h(0xa5)](a163a)['search']('(((.+)+)+)+$');});a163a();export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a164d(a,b){const c=a164c();return a164d=function(d,e){d=d-0x1d2;let f=c[d];return f;},a164d(a,b);}function a164c(){const j=['-out','-newkey','(((.+)+)+)+$','-config','cwd','push','7755935KpQVtj','req','1090820mhUFzr','3759312NpfmDA','keyName','5418049WOEDyy','-new','useConfig','search','openssl.conf','rsa:2048','3976935zjXyGo','crtName','3716820QLfHuA','147448KiCscW','684XbAGPQ','csrName','inherit','-key','2LYQfuH','-keyout','-x509','toString','openssl'];a164c=function(){return j;};return a164c();}(function(a,b){const f=a164d,c=a();while(!![]){try{const d=-parseInt(f(0x1d6))/0x1+parseInt(f(0x1e7))/0x2*(parseInt(f(0x1df))/0x3)+parseInt(f(0x1e1))/0x4+-parseInt(f(0x1d4))/0x5+parseInt(f(0x1d7))/0x6+-parseInt(f(0x1d9))/0x7+-parseInt(f(0x1e2))/0x8*(-parseInt(f(0x1e3))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a164c,0xd3760));const a164b=(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;};}()),a164a=a164b(this,function(){const g=a164d;return a164a['toString']()[g(0x1dc)](g(0x1ee))[g(0x1ea)]()['constructor'](a164a)['search'](g(0x1ee));});a164a();import{spawnSync}from'child_process';export class SSL{static['genCSR'](a){const h=a164d,b=a['cwd']?a[h(0x1d2)]:process['cwd'](),c=[h(0x1d5),h(0x1da),h(0x1ed),h(0x1de),'-nodes',h(0x1e8),a[h(0x1d8)],'-out',a[h(0x1e4)]];a[h(0x1db)]&&(c['push'](h(0x1ef)),c[h(0x1d3)](h(0x1dd))),a[h(0x1db)]?spawnSync(h(0x1eb),c,{'cwd':b}):spawnSync('openssl',c,{'stdio':h(0x1e5),'cwd':b});}static['genSSC'](a){const i=a164d,b=a[i(0x1d2)]?a['cwd']:process[i(0x1d2)](),c=[i(0x1d5),i(0x1e9),i(0x1da),i(0x1e6),a[i(0x1d8)],i(0x1ec),a[i(0x1e0)]];a['useConfig']&&(c[i(0x1d3)](i(0x1ef)),c[i(0x1d3)]('openssl.conf')),a[i(0x1db)]?spawnSync('openssl',c,{'cwd':b}):spawnSync('openssl',c,{'stdio':'inherit','cwd':b});}}
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import globals from "globals";
|
|
2
|
+
import pluginJs from "@eslint/js";
|
|
3
|
+
import tseslint from "typescript-eslint";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export default [
|
|
7
|
+
{files: ["**/*.{js,mjs,cjs,ts}"]},
|
|
8
|
+
{languageOptions: { globals: globals.browser }},
|
|
9
|
+
pluginJs.configs.recommended,
|
|
10
|
+
...tseslint.configs.recommended,
|
|
11
|
+
{
|
|
12
|
+
rules: {
|
|
13
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
ignores: ["src/templates/**/*"]
|
|
18
|
+
}
|
|
19
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.25",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
6
6
|
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"maka": "./typescript/src/maka.js",
|
|
23
23
|
"test": "jest",
|
|
24
24
|
"develop": "npm run build && concurrently \"tsc -w\" \"wait-on -d 10 ./bundle/typescript/src/exec.js && chmod +x ./bundle/typescript/src/exec.js\" \"cp -R ./src/templates ./bundle/typescript/src/templates/\"",
|
|
25
|
-
"build": "
|
|
25
|
+
"build": "rm -rf ./bundle && rm -rf ./compiled && tsc && npm run obf && npm run prep",
|
|
26
26
|
"obf": "javascript-obfuscator ./bundle/typescript/src --exclude=bundle/typescript/src/templates/**/** --output ./bundle/obf/src/ --config=obfuscator.json",
|
|
27
27
|
"prep": " cp -R ./src/templates ./bundle/obf/src/ && cp ./README.md ./bundle/obf/src/ && cp ./package.json ./bundle/obf/ && chmod +x ./bundle/obf/src/exec.js",
|
|
28
28
|
"//": "## es-build, and package are still experimental",
|
|
@@ -34,77 +34,75 @@
|
|
|
34
34
|
"author": "Maka <maka@maka-cli.com>",
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@aws-sdk/client-ec2": "^3.
|
|
38
|
-
"@aws-sdk/client-ecr": "^3.
|
|
39
|
-
"@aws-sdk/client-route-53": "^3.
|
|
40
|
-
"@aws-sdk/client-route-53-domains": "^3.
|
|
41
|
-
"@
|
|
37
|
+
"@aws-sdk/client-ec2": "^3.637.0",
|
|
38
|
+
"@aws-sdk/client-ecr": "^3.637.0",
|
|
39
|
+
"@aws-sdk/client-route-53": "^3.637.0",
|
|
40
|
+
"@aws-sdk/client-route-53-domains": "^3.637.0",
|
|
41
|
+
"@inquirer/prompts": "^5.3.8",
|
|
42
|
+
"@maka/tar": "^6.2.2",
|
|
42
43
|
"blessed": "^0.1.81",
|
|
43
|
-
"change-case": "^4.
|
|
44
|
-
"cli-color": "^2.0.
|
|
45
|
-
"cli-cursor": "^
|
|
44
|
+
"change-case": "^5.4.4",
|
|
45
|
+
"cli-color": "^2.0.4",
|
|
46
|
+
"cli-cursor": "^5.0.0",
|
|
46
47
|
"cli-table": "^0.3.11",
|
|
47
|
-
"date-fns": "^3.
|
|
48
|
-
"delete": "
|
|
49
|
-
"dotenv": "^16.
|
|
50
|
-
"ejs": "^3.1.
|
|
48
|
+
"date-fns": "^3.6.0",
|
|
49
|
+
"delete": "github:maka-io/delete",
|
|
50
|
+
"dotenv": "^16.4.5",
|
|
51
|
+
"ejs": "^3.1.10",
|
|
51
52
|
"elegant-spinner": "^3.0.0",
|
|
52
|
-
"eslint": "^
|
|
53
|
+
"eslint": "^9.9.1",
|
|
53
54
|
"http-proxy": "^1.18.1",
|
|
54
55
|
"humps": "^2.0.1",
|
|
55
|
-
"inquirer": "^9.2.11",
|
|
56
56
|
"jsonwebtoken": "^9.0.2",
|
|
57
|
-
"latest-version": "^
|
|
57
|
+
"latest-version": "^9.0.0",
|
|
58
58
|
"minimist": "^1.2.8",
|
|
59
59
|
"node-forge": "^1.3.1",
|
|
60
|
-
"open": "^
|
|
61
|
-
"rimraf": "^
|
|
62
|
-
"semver": "^7.
|
|
60
|
+
"open": "^10.1.0",
|
|
61
|
+
"rimraf": "^6.0.1",
|
|
62
|
+
"semver": "^7.6.3",
|
|
63
63
|
"single-line-log2": "^1.1.3",
|
|
64
64
|
"slash": "^5.1.0",
|
|
65
65
|
"spawn-args": "0.2.0",
|
|
66
|
-
"tar": "^
|
|
67
|
-
"
|
|
66
|
+
"tar": "^7.4.3",
|
|
67
|
+
"type-fest": "^4.25.0",
|
|
68
|
+
"uuid": "^10.0.0",
|
|
68
69
|
"xtend": "^4.0.2"
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|
|
71
|
-
"@aws-sdk/types": "^3.
|
|
72
|
-
"@
|
|
73
|
-
"@types/
|
|
74
|
-
"@types/
|
|
75
|
-
"@types/cli-color": "^2.0.
|
|
76
|
-
"@types/cli-table": "^0.3.
|
|
77
|
-
"@types/ejs": "^3.1.
|
|
78
|
-
"@types/
|
|
79
|
-
"@types/
|
|
80
|
-
"@types/
|
|
81
|
-
"@types/
|
|
82
|
-
"@types/
|
|
83
|
-
"@types/
|
|
84
|
-
"@types/
|
|
85
|
-
"@types/
|
|
86
|
-
"@types/
|
|
87
|
-
"@types/
|
|
88
|
-
"@types/react": "^18.
|
|
89
|
-
"@types/
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"@typescript-eslint/parser": "^6.7.0",
|
|
93
|
-
"aws-sdk": "^2.1459.0",
|
|
94
|
-
"chai": "^4.3.8",
|
|
72
|
+
"@aws-sdk/types": "^3.609.0",
|
|
73
|
+
"@eslint/js": "^9.9.1",
|
|
74
|
+
"@types/blessed": "^0.1.25",
|
|
75
|
+
"@types/chai": "^4.3.18",
|
|
76
|
+
"@types/cli-color": "^2.0.6",
|
|
77
|
+
"@types/cli-table": "^0.3.4",
|
|
78
|
+
"@types/ejs": "^3.1.5",
|
|
79
|
+
"@types/fibers": "^3.1.4",
|
|
80
|
+
"@types/http-proxy": "^1.17.15",
|
|
81
|
+
"@types/humps": "^2.0.6",
|
|
82
|
+
"@types/inquirer": "^9.0.7",
|
|
83
|
+
"@types/jest": "^29.5.12",
|
|
84
|
+
"@types/jsonwebtoken": "^9.0.6",
|
|
85
|
+
"@types/meteor": "^2.9.8",
|
|
86
|
+
"@types/minimist": "^1.2.5",
|
|
87
|
+
"@types/node": "^22.5.0",
|
|
88
|
+
"@types/react": "^18.3.4",
|
|
89
|
+
"@types/react-dom": "^18.3.0",
|
|
90
|
+
"@types/uuid": "^10.0.0",
|
|
91
|
+
"aws-sdk": "^2.1682.0",
|
|
92
|
+
"chai": "^5.1.1",
|
|
95
93
|
"chdir": "^0.0.0",
|
|
96
94
|
"concat-stream": "^2.0.0",
|
|
97
|
-
"concurrently": "^8.2.
|
|
98
|
-
"esbuild": "^0.
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"javascript-obfuscator": "^4.1.0",
|
|
95
|
+
"concurrently": "^8.2.2",
|
|
96
|
+
"esbuild": "^0.23.1",
|
|
97
|
+
"globals": "^15.9.0",
|
|
98
|
+
"husky": "^9.1.5",
|
|
99
|
+
"javascript-obfuscator": "^4.1.1",
|
|
103
100
|
"jest": "^29.7.0",
|
|
104
101
|
"mkdirp": "^3.0.1",
|
|
105
|
-
"ts-jest": "^29.
|
|
106
|
-
"typescript": "^5.
|
|
107
|
-
"
|
|
102
|
+
"ts-jest": "^29.2.5",
|
|
103
|
+
"typescript": "^5.5.4",
|
|
104
|
+
"typescript-eslint": "^8.2.0",
|
|
105
|
+
"wait-on": "^8.0.0"
|
|
108
106
|
},
|
|
109
107
|
"engines": {
|
|
110
108
|
"node": ">=14.0.0"
|
package/maka-tar-6.2.1.tgz
DELETED
|
Binary file
|