@maka/maka-cli 5.0.13 → 5.0.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 +2 -3
- 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/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 -0
- 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 -0
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -0
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -0
- 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 +2 -3
- package/bundle/obf/src/commands/patreon.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a162p=a162d;(function(a,b){const m=a162d,c=a();while(!![]){try{const d=parseInt(m(0x1a1))/0x1+-parseInt(m(0x18c))/0x2+parseInt(m(0x1a5))/0x3*(-parseInt(m(0x182))/0x4)+parseInt(m(0x189))/0x5*(-parseInt(m(0x194))/0x6)+-parseInt(m(0x19f))/0x7*(parseInt(m(0x1aa))/0x8)+-parseInt(m(0x19e))/0x9*(parseInt(m(0x19b))/0xa)+parseInt(m(0x183))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0xcc7cf));const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a162d;if(c){const e=c[n(0x196)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const o=a162d;return a162a['toString']()[o(0x187)](o(0x198))[o(0x1a9)]()[o(0x184)](a162a)[o(0x187)](o(0x198));});function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0x181;let f=c[d];return f;},a162d(a,b);}a162a();import a162e from'path';import{execSync,spawnSync,spawn}from'child_process';import{Log}from'../log/log.class.js';export class SSH{static [a162p(0x197)]=(a,b,c)=>{return new Promise((d,e)=>{const q=a162d,f=b[q(0x1a7)]+'@'+b[q(0x19d)],g=a162e[q(0x199)](b[q(0x195)],b[q(0x1a6)]),h=c?.['tty']||![],i=c?.[q(0x1a2)]||![];let j=[];h&&j[q(0x186)]('-t');i&&j[q(0x186)]('-v');j=j[q(0x190)](['-o','ConnectTimeout=2','-i',g,'-p',b[q(0x18f)],f,a]);const k=Log[q(0x191)]();c?.['message']&&k[q(0x193)](c?.['message']);const l=spawn(q(0x197),j,{'stdio':c?.[q(0x188)]?'inherit':'ignore'});l['on'](q(0x18b),()=>{const r=q;c?.[r(0x181)]&&k[r(0x192)](),d();}),l['on'](q(0x1a0),()=>{const s=q;c?.[s(0x181)]&&k[s(0x192)](),d();}),l['on']('error',()=>{const t=q;c?.[t(0x181)]&&k[t(0x18e)](),e();});});};static [a162p(0x19c)]=(a,b,c)=>{const u=a162p,d=b[u(0x1a7)]+'@'+b[u(0x19d)],e=a162e[u(0x199)](b[u(0x195)],b[u(0x1a6)]),f=c?.[u(0x1a8)]||![],g=c?.['sshVerbose']||![];let h=[];f&&h[u(0x186)]('-t'),g&&h[u(0x186)]('-v'),h=h[u(0x190)](['-o',u(0x18d),'-i',e,'-p',b[u(0x18f)],d,a]),spawnSync('ssh',h,{'stdio':c?.[u(0x188)]?u(0x185):'ignore'});};static[a162p(0x1a4)](a,b,c){const v=a162p,d=b['user']+'@'+b[v(0x19d)],e=a162e[v(0x199)](b[v(0x195)],b[v(0x1a6)]),f=c?.[v(0x1a8)]||![];let g=[];f&&g[v(0x186)]('-t');g=g['concat'](['-o','ConnectTimeout=2','-i',e,'-p',b['port'],d,a,'2>&1']);const h=v(0x1a3)+g[v(0x199)]('\x20');return execSync(h)[v(0x1a9)]();}static['scp'](a,b){const w=a162p,c=b[w(0x1a7)]+'@'+b[w(0x19d)]+':'+a[w(0x18a)],d=a162e[w(0x199)](b[w(0x195)],b[w(0x1a6)]),e=['-i',d,'-P',b[w(0x18f)],a[w(0x1ab)],c];spawnSync(w(0x19a),e,{'stdio':a[w(0x188)]?'inherit':'ignore'});}}function a162c(){const x=['ping','23091EzOILI','pem','user','tty','toString','3160beXKjR','source','message','520dRWgLh','55032307ecmNzw','constructor','inherit','push','search','verbose','3287155kSRRsh','dest','disconnect','5632CzMnoR','ConnectTimeout=2','failure','port','concat','withSpinner','success','start','6HdIMGM','env','apply','ssh','(((.+)+)+)+$','join','scp','885750NUoYte','sshSync','host','117DtRbpO','28273vFWGkM','close','242383CEJvSq','sshVerbose','ssh\x20'];a162c=function(){return x;};return a162c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a163d,c=a();while(!![]){try{var d=parseInt(f(0x182))/0x1+parseInt(f(0x188))/0x2+-parseInt(f(0x17e))/0x3*(-parseInt(f(0x185))/0x4)+-parseInt(f(0x17f))/0x5+parseInt(f(0x180))/0x6*(parseInt(f(0x18a))/0x7)+-parseInt(f(0x183))/0x8*(parseInt(f(0x186))/0x9)+parseInt(f(0x184))/0xa*(-parseInt(f(0x18b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a163c,0x524b5));function a163c(){var i=['constructor','1161238cCUVmg','(((.+)+)+)+$','1141QnNina','198naccrq','search','toString','241767PPfHUT','784245EOeAKL','4458EoVLIM','apply','96165wHNXlS','136wHPuQD','142370QWWLLr','8OqbipI','110583MxWHCh'];a163c=function(){return i;};return a163c();}var a163b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a163d;if(c){var e=c[g(0x181)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a163a=a163b(this,function(){var h=a163d;return a163a[h(0x17d)]()[h(0x18c)]('(((.+)+)+)+$')[h(0x17d)]()[h(0x187)](a163a)[h(0x18c)](h(0x189));});a163a();function a163d(a,b){var c=a163c();return a163d=function(d,e){d=d-0x17d;var f=c[d];return f;},a163d(a,b);}export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a164i=a164d;function a164d(a,b){const c=a164c();return a164d=function(d,e){d=d-0x16c;let f=c[d];return f;},a164d(a,b);}(function(a,b){const f=a164d,c=a();while(!![]){try{const d=-parseInt(f(0x18b))/0x1*(-parseInt(f(0x16f))/0x2)+-parseInt(f(0x173))/0x3*(-parseInt(f(0x185))/0x4)+-parseInt(f(0x174))/0x5+parseInt(f(0x176))/0x6+-parseInt(f(0x17f))/0x7+-parseInt(f(0x16d))/0x8*(-parseInt(f(0x187))/0x9)+-parseInt(f(0x183))/0xa*(-parseInt(f(0x172))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a164c,0xc03da));const a164b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a164d;if(c){const e=c[g(0x18a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a164a=a164b(this,function(){const h=a164d;return a164a[h(0x186)]()[h(0x175)](h(0x17b))[h(0x186)]()[h(0x189)](a164a)[h(0x175)](h(0x17b));});a164a();import{spawnSync}from'child_process';function a164c(){const l=['2HZQspl','openssl','-out','167981xjLNBI','39453FyNAHC','3169670fWEouF','search','3554826HOddaC','genSSC','openssl.conf','req','genCSR','(((.+)+)+)+$','push','useConfig','-config','6989304QuoZGX','-new','rsa:2048','-key','430YzZzdN','crtName','284ccxqfk','toString','270InooWo','-x509','constructor','apply','105819COJzDr','keyName','-keyout','34976wwxsKf','cwd'];a164c=function(){return l;};return a164c();}export class SSL{static[a164i(0x17a)](a){const j=a164i,b=a[j(0x16e)]?a[j(0x16e)]:process[j(0x16e)](),c=[j(0x179),j(0x180),'-newkey',j(0x181),'-nodes',j(0x16c),a['keyName'],'-out',a['csrName']];a[j(0x17d)]&&(c['push'](j(0x17e)),c[j(0x17c)](j(0x178))),a[j(0x17d)]?spawnSync('openssl',c,{'cwd':b}):spawnSync(j(0x170),c,{'stdio':'inherit','cwd':b});}static[a164i(0x177)](a){const k=a164i,b=a[k(0x16e)]?a[k(0x16e)]:process['cwd'](),c=['req',k(0x188),k(0x180),k(0x182),a[k(0x18c)],k(0x171),a[k(0x184)]];a['useConfig']&&(c[k(0x17c)]('-config'),c['push']('openssl.conf')),a[k(0x17d)]?spawnSync(k(0x170),c,{'cwd':b}):spawnSync(k(0x170),c,{'stdio':'inherit','cwd':b});}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.15",
|
|
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.",
|
|
@@ -30,8 +30,7 @@
|
|
|
30
30
|
"es-build": "esbuild ./bundle/typescript/src/maka.js --bundle --platform=node --outfile=bundle/maka.cjs",
|
|
31
31
|
"package": "pkg ./bundle/maka.cjs -d --bundle --out-path=\"bundle/compiled\" --compress GZip",
|
|
32
32
|
"distribute": "mkdir -p compiled/macos compiled/linux compiled/win && mv bundle/compiled/maka-linux compiled/linux/maka && mv bundle/compiled/maka-macos compiled/macos/maka && mv bundle/compiled/maka-win.exe compiled/win/maka.exe",
|
|
33
|
-
"prepare": "husky install"
|
|
34
|
-
"install": "maka v"
|
|
33
|
+
"prepare": "husky install"
|
|
35
34
|
},
|
|
36
35
|
"author": "Maka <maka@maka-cli.com>",
|
|
37
36
|
"license": "MIT",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a85u=a85d;(function(a,b){const r=a85d,c=a();while(!![]){try{const d=-parseInt(r(0xa5))/0x1*(parseInt(r(0x6c))/0x2)+parseInt(r(0xa0))/0x3*(parseInt(r(0x9f))/0x4)+-parseInt(r(0x6b))/0x5*(parseInt(r(0x86))/0x6)+-parseInt(r(0x84))/0x7*(parseInt(r(0x99))/0x8)+-parseInt(r(0x6e))/0x9*(-parseInt(r(0x87))/0xa)+-parseInt(r(0x90))/0xb*(-parseInt(r(0x6d))/0xc)+-parseInt(r(0xa9))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0x83d32));function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0x69;let f=c[d];return f;},a85d(a,b);}const a85b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a85d;if(c){const e=c[s(0x8e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){const t=a85d;return a85a[t(0x69)]()['search'](t(0x83))[t(0x69)]()[t(0xa8)](a85a)[t(0x80)]('(((.+)+)+)+$');});a85a();import{Command}from'../command.js';function a85c(){const w=['warn','You\x20need\x20to\x20verify\x20your\x20email\x20before\x20you\x20can\x20link\x20your\x20account.','To\x20link\x20your\x20Patreon\x20account,\x20run\x20`maka\x20patreon\x20--link`','error','3917840TLlguY','PRO\x20Features\x20Enabled\x20🤘','includes','info','&redirect_uri=','majestic','92hvRTEZ','136557OAqcHZ','getPro','MAKA_DEV','failure','fsi','329pWNgkm','Fetching\x20Patreon\x20status...\x20','True','constructor','3974724FGZuOz','link','You\x20are\x20SO\x20not\x20PRO\x20😭','Thank\x20you\x20for\x20your\x20support!!','Using\x20CA\x20Cert\x20','https://localhost:443/api/v1/patreon/status','logout','toString','roles','880hBTCJL','1594fifUSo','53028purEDv','415197IDRRDQ','Check\x20your\x20email\x20for\x20the\x20verification\x20link\x20or\x20run\x20`maka\x20login\x20--verify`\x20to\x20resend\x20the\x20verification\x20email','Opening\x20Patreon\x20in\x20your\x20browser...','processAndRunCommand','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','env','https://www.patreon.com/oauth2/authorize?response_type=code&client_id=','authToken','token','maka\x20patreon\x20--cacert\x20/path/to/cacert.pem','https://www.maka-cli.com/api/v1/patreon/status','withSpinner','exit','\x0a\x20\x20--status:\x20Check\x20if\x20you\x20are\x20a\x20patron,\x20and\x20update\x20your\x20account\x0a\x0a\x20\x20--link:\x20Link\x20your\x20Patreon\x20account\x20to\x20your\x20Maka\x20account\x0a\x0a\x20\x20--unlink:\x20Unlink\x20your\x20Patreon\x20account\x20from\x20your\x20Maka\x20account\x0a\x0a\x20\x20--cacert:\x20Path\x20to\x20a\x20CA\x20Cert\x20file\x20if\x20you\x20need\x20to\x20use\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20NOTE:\x20If\x20you\x20have\x20a\x20CA\x20Cert\x20configured\x20in\x20~/.meteor/.maka/global-config.json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20maka\x20will\x20use\x20that\x20cert\x20by\x20default.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20To\x20set\x20a\x20CA\x20cert,\x20use\x20\x27maka\x20set:global-config\x20--cacert\x20/path/to/cacert.pem\x27\x0a\x20\x20','get','maka\x20patreon','https://localhost:443/api/v1/patreon/link','maka\x20patreon\x20--unlink','search','setGlobalConfig','emailVerified','(((.+)+)+)+$','14VsxbiT','get:whoami','3264agBhwA','230lgqEIW','patreon','parse','https://www.maka-cli.com/api/v1/patreon/link','help','cacert','isFile','apply','unlink','187DxDSyY','notice','Run\x20`maka\x20login`\x20to\x20login\x20or\x20`maka\x20register`\x20to\x20create\x20an\x20account','https://www.maka-cli.com/api/v1/patreon/unlink','maka\x20patreon\x20--status'];a85c=function(){return w;};return a85c();}import a85e from'./maka.cmd.js';import{Log}from'../tools/log/log.class.js';import{HTTPS}from'../tools/https/https.class.js';import a85f from'open';const clientId='xKtLQ3M3ZzWReGTMgj0kEn73qtUKS5PBxzvANBfi43_rEoanXp0w_S5EYye1uAqP',redirectUri=process[a85u(0x73)][a85u(0xa2)]===a85u(0xa7)?a85u(0x7e):a85u(0x8a),patreonUnlinkUri=process[a85u(0x73)]['MAKA_DEV']===a85u(0xa7)?'https://localhost:443/api/v1/patreon/unlink':a85u(0x93),patreonStatusUri=process[a85u(0x73)][a85u(0xa2)]===a85u(0xa7)?a85u(0xae):a85u(0x78);Command['create']({'name':a85u(0x88),'validOpts':['status',a85u(0xaa),'unlink',a85u(0x8b),a85u(0x8c)],'usage':a85u(0x7d),'shortDesc':'If\x20you\x20are\x20a\x20sponsor\x20through\x20Patreon,\x20you\x20can\x20level\x20up\x20to\x20PRO!','description':a85u(0x7b),'examples':[a85u(0x94),'maka\x20patreon\x20--link',a85u(0x7f),a85u(0x77)],'maxOptsLength':0x3,'minOptsLength':0x1,'mustBeLoggedIn':!![]},async function(a,b){const v=a85u;try{const c=await a85e[v(0x71)](v(0x85),[],{'silent':!![]});let d=await this[v(0xa4)][v(0xa1)](),e='';b[v(0x8c)]&&(this[v(0xa4)][v(0x8d)](b[v(0x8c)])?(e=b[v(0x8c)],Log[v(0x91)](v(0xad)+e)):(Log[v(0x98)](v(0x72)+b[v(0x8c)]),process[v(0x7a)](0x1)));const f=c[v(0x76)][v(0x75)];if(c[v(0x76)][v(0x75)]){!d[v(0x82)]&&(Log[v(0x95)](v(0x96)),Log[v(0x95)](v(0x6f)),process['exit'](0x1));if(b[v(0xaa)]){Log['notice'](v(0x70));const g=v(0x74)+clientId+v(0x9d)+encodeURIComponent(redirectUri)+'&state='+f;await a85f(g);}if(b[v(0x8f)]){const {data:h,statusCode:i}=await HTTPS[v(0x7c)]({'url':patreonUnlinkUri,'headers':{'x-auth-token':c[v(0x76)][v(0x75)]},'cert':e}),{message:j}=JSON[v(0x89)](h);i===0xc8?Log[v(0x91)](j):Log[v(0x98)](j),Log[v(0x9c)]('Logging\x20you\x20out\x20for\x20security\x20reasons...'),await a85e[v(0x71)](v(0xaf));}if(!b[v(0xaa)]&&!b[v(0x8f)]){const k=Log[v(0x79)](v(0xa6)),{data:l,statusCode:m}=await HTTPS[v(0x7c)]({'url':patreonStatusUri,'headers':{'x-auth-token':c[v(0x76)][v(0x75)]}}),{message:n}=JSON[v(0x89)](l);m!==0xc8&&(k[v(0xa3)](),Log[v(0x98)](n),process['exit'](0x1));const {hasPatreonCredentials:o,token:p}=JSON['parse'](l);if(o&&p)await this[v(0xa4)][v(0x81)]({'hash':p}),d=await this['fsi'][v(0xa1)](),d[v(0x6a)][v(0x9b)]('singleLicense')?(Log[v(0x9e)](v(0x9a)),Log[v(0x9e)](v(0xac))):Log['notice'](v(0xab));else!o&&Log[v(0x91)](v(0x97));}}else Log[v(0x91)]('You\x20need\x20to\x20be\x20logged\x20in\x20to\x20use\x20this\x20command!'),Log['notice'](v(0x92));}catch(q){Log['error']('Failed\x20to\x20authenticate\x20with\x20Patreon:\x20'+q),process[v(0x7a)](0x1);}});
|