@maka/maka-cli 4.5.17 → 4.5.19
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/package.json +1 -1
- package/bundle/obf/package.json +0 -127
- package/bundle/obf/src/README.md +0 -31
- package/bundle/obf/src/command.js +0 -1
- package/bundle/obf/src/commands/_index.js +0 -1
- package/bundle/obf/src/commands/aws/_index.js +0 -1
- package/bundle/obf/src/commands/aws/aws.command.js +0 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/build/_index.js +0 -1
- package/bundle/obf/src/commands/build/build.js +0 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/create.js +0 -1
- package/bundle/obf/src/commands/debug.js +0 -1
- package/bundle/obf/src/commands/deploy.js +0 -1
- package/bundle/obf/src/commands/game/_index.js +0 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/game/play.command.js +0 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/commands.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/door.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/inventory.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/items.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/player.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/puzzles.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/room.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/rooms.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/types.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/eventBus.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +0 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/generate.js +0 -1
- package/bundle/obf/src/commands/get/_index.js +0 -1
- package/bundle/obf/src/commands/get/get.command.js +0 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/help.js +0 -1
- package/bundle/obf/src/commands/jsdoc.js +0 -1
- package/bundle/obf/src/commands/lint.js +0 -1
- package/bundle/obf/src/commands/login.js +0 -1
- package/bundle/obf/src/commands/logout.js +0 -1
- package/bundle/obf/src/commands/logs.js +0 -1
- package/bundle/obf/src/commands/maka.cmd.js +0 -1
- package/bundle/obf/src/commands/murder.js +0 -1
- package/bundle/obf/src/commands/proxy.js +0 -1
- package/bundle/obf/src/commands/reconfig.js +0 -1
- package/bundle/obf/src/commands/run/_index.js +0 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/run/run.command.js +0 -1
- package/bundle/obf/src/commands/set/_index.js +0 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +0 -1
- package/bundle/obf/src/commands/set/set.command.js +0 -1
- package/bundle/obf/src/commands/ssh.js +0 -1
- package/bundle/obf/src/commands/ssl.js +0 -1
- package/bundle/obf/src/commands/test.js +0 -1
- package/bundle/obf/src/commands/version.js +0 -1
- package/bundle/obf/src/error.js +0 -1
- package/bundle/obf/src/generator.js +0 -1
- package/bundle/obf/src/generators/_index.js +0 -1
- package/bundle/obf/src/generators/api.js +0 -1
- package/bundle/obf/src/generators/collection.js +0 -1
- package/bundle/obf/src/generators/component.js +0 -1
- package/bundle/obf/src/generators/config.js +0 -1
- package/bundle/obf/src/generators/dbc.js +0 -1
- package/bundle/obf/src/generators/dockerfile.js +0 -1
- package/bundle/obf/src/generators/hook.js +0 -1
- package/bundle/obf/src/generators/kit.js +0 -1
- package/bundle/obf/src/generators/layout.js +0 -1
- package/bundle/obf/src/generators/maka.gen.js +0 -1
- package/bundle/obf/src/generators/methods.js +0 -1
- package/bundle/obf/src/generators/package.js +0 -1
- package/bundle/obf/src/generators/page.js +0 -1
- package/bundle/obf/src/generators/publish.js +0 -1
- package/bundle/obf/src/generators/route.js +0 -1
- package/bundle/obf/src/generators/service.js +0 -1
- package/bundle/obf/src/generators/services/_index.js +0 -1
- package/bundle/obf/src/generators/services/openssl.js +0 -1
- package/bundle/obf/src/generators/services/translation.js +0 -1
- package/bundle/obf/src/maka.js +0 -2
- package/bundle/obf/src/templates/meteor/api/api.js +0 -11
- package/bundle/obf/src/templates/meteor/api/api.js.ts +0 -11
- package/bundle/obf/src/templates/meteor/api/collection.js +0 -86
- package/bundle/obf/src/templates/meteor/api/collection.js.ts +0 -94
- package/bundle/obf/src/templates/meteor/api/fixtures.js +0 -23
- package/bundle/obf/src/templates/meteor/api/fixtures.js.ts +0 -23
- package/bundle/obf/src/templates/meteor/api/methods.js +0 -136
- package/bundle/obf/src/templates/meteor/api/methods.js.ts +0 -137
- package/bundle/obf/src/templates/meteor/api/publications.js +0 -31
- package/bundle/obf/src/templates/meteor/api/publications.js.ts +0 -31
- package/bundle/obf/src/templates/meteor/api/register-api.js +0 -15
- package/bundle/obf/src/templates/meteor/api/register-api.js.ts +0 -15
- package/bundle/obf/src/templates/meteor/api/resolvers.js +0 -9
- package/bundle/obf/src/templates/meteor/api/resolvers.js.ts +0 -9
- package/bundle/obf/src/templates/meteor/api/tests.js +0 -1
- package/bundle/obf/src/templates/meteor/api/tests.js.ts +0 -1
- package/bundle/obf/src/templates/meteor/api/typeDefs.js +0 -5
- package/bundle/obf/src/templates/meteor/api/typeDefs.js.ts +0 -5
- package/bundle/obf/src/templates/meteor/app/client/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/client/body.html +0 -3
- package/bundle/obf/src/templates/meteor/app/client/head.html +0 -15
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js +0 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.jsx +0 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.ts +0 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.tsx +0 -9
- package/bundle/obf/src/templates/meteor/app/client/main.js +0 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.jsx +0 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.ts +0 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.tsx +0 -13
- package/bundle/obf/src/templates/meteor/app/imports/api/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js +0 -20
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +0 -117
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.ts +0 -20
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +0 -118
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js +0 -39
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.jsx +0 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.ts +0 -24
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +0 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js +0 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.jsx +0 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.ts +0 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.tsx +0 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js +0 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +0 -21
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.ts +0 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +0 -21
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +0 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +0 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/templates.js.jsx +0 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/templates.js.tsx +0 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js +0 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +0 -152
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.ts +0 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +0 -152
- package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js +0 -24
- package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js.ts +0 -24
- package/bundle/obf/src/templates/meteor/app/lib/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/lib/main.js +0 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.jsx +0 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.ts +0 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.tsx +0 -1
- package/bundle/obf/src/templates/meteor/app/maka.d.ts +0 -160
- package/bundle/obf/src/templates/meteor/app/meteor.d.ts +0 -955
- package/bundle/obf/src/templates/meteor/app/packages/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/private/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/public/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/public/favicon.ico +0 -0
- package/bundle/obf/src/templates/meteor/app/public/maka-144x144.png +0 -0
- package/bundle/obf/src/templates/meteor/app/public/maka-192x192.png +0 -0
- package/bundle/obf/src/templates/meteor/app/public/maka-512x512.png +0 -0
- package/bundle/obf/src/templates/meteor/app/public/manifest.json +0 -27
- package/bundle/obf/src/templates/meteor/app/public/sw.js +0 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.jsx +0 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.ts +0 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.tsx +0 -30
- package/bundle/obf/src/templates/meteor/app/server/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js +0 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.jsx +0 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.ts +0 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.tsx +0 -179
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js +0 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.jsx +0 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.ts +0 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.tsx +0 -9
- package/bundle/obf/src/templates/meteor/app/server/main.js +0 -8
- package/bundle/obf/src/templates/meteor/app/server/main.js.jsx +0 -8
- package/bundle/obf/src/templates/meteor/app/server/main.js.ts +0 -8
- package/bundle/obf/src/templates/meteor/app/server/main.js.tsx +0 -8
- package/bundle/obf/src/templates/meteor/app/tsconfig.json +0 -28
- package/bundle/obf/src/templates/meteor/collection/collection.js +0 -85
- package/bundle/obf/src/templates/meteor/collection/collection.js.ts +0 -97
- package/bundle/obf/src/templates/meteor/collection/tests.js +0 -27
- package/bundle/obf/src/templates/meteor/collection/tests.js.ts +0 -27
- package/bundle/obf/src/templates/meteor/config/docker-compose.yaml +0 -17
- package/bundle/obf/src/templates/meteor/config/pm2.config.js +0 -25
- package/bundle/obf/src/templates/meteor/config/process.env +0 -5
- package/bundle/obf/src/templates/meteor/config/settings.json +0 -10
- package/bundle/obf/src/templates/meteor/config/ssh.json +0 -6
- package/bundle/obf/src/templates/meteor/dbc/config.js +0 -70
- package/bundle/obf/src/templates/meteor/dbc/config.js.ts +0 -70
- package/bundle/obf/src/templates/meteor/dbc/conn.js +0 -37
- package/bundle/obf/src/templates/meteor/dbc/conn.js.ts +0 -37
- package/bundle/obf/src/templates/meteor/dbc/register-dbc.js +0 -3
- package/bundle/obf/src/templates/meteor/dbc/register-dbc.js.ts +0 -3
- package/bundle/obf/src/templates/meteor/method/method.js +0 -48
- package/bundle/obf/src/templates/meteor/method/method.js.ts +0 -48
- package/bundle/obf/src/templates/meteor/package/client/package.js +0 -0
- package/bundle/obf/src/templates/meteor/package/client/package.js.jsx +0 -0
- package/bundle/obf/src/templates/meteor/package/client/package.js.ts +0 -0
- package/bundle/obf/src/templates/meteor/package/client/package.js.tsx +0 -0
- package/bundle/obf/src/templates/meteor/package/lib/package.js +0 -0
- package/bundle/obf/src/templates/meteor/package/lib/package.js.jsx +0 -0
- package/bundle/obf/src/templates/meteor/package/lib/package.js.ts +0 -0
- package/bundle/obf/src/templates/meteor/package/lib/package.js.tsx +0 -0
- package/bundle/obf/src/templates/meteor/package/package.js +0 -37
- package/bundle/obf/src/templates/meteor/package/package.js.jsx +0 -37
- package/bundle/obf/src/templates/meteor/package/package.js.ts +0 -36
- package/bundle/obf/src/templates/meteor/package/package.js.tsx +0 -37
- package/bundle/obf/src/templates/meteor/package/server/package.js +0 -0
- package/bundle/obf/src/templates/meteor/package/server/package.js.jsx +0 -0
- package/bundle/obf/src/templates/meteor/package/server/package.js.ts +0 -0
- package/bundle/obf/src/templates/meteor/package/server/package.js.tsx +0 -0
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js +0 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.jsx +0 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.ts +0 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.tsx +0 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js +0 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.jsx +0 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.ts +0 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.tsx +0 -5
- package/bundle/obf/src/templates/meteor/project/.maka/config.json +0 -29
- package/bundle/obf/src/templates/meteor/project/README.md +0 -1
- package/bundle/obf/src/templates/meteor/project/build/.gitkeep +0 -0
- package/bundle/obf/src/templates/meteor/project/build/README +0 -4
- package/bundle/obf/src/templates/meteor/project/gitignore +0 -6
- package/bundle/obf/src/templates/meteor/publish/publish.js +0 -3
- package/bundle/obf/src/templates/meteor/publish/publish.js.jsx +0 -3
- package/bundle/obf/src/templates/meteor/publish/publish.js.tsx +0 -3
- package/bundle/obf/src/templates/meteor/publish/publish.ts +0 -3
- package/bundle/obf/src/templates/meteor/service/logger/logger.js +0 -27
- package/bundle/obf/src/templates/meteor/service/logger/logger.js.ts +0 -27
- package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css +0 -5
- package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css.less +0 -5
- package/bundle/obf/src/templates/meteor/template/template-tests.js +0 -1
- package/bundle/obf/src/templates/meteor/template/template-tests.js.jsx +0 -55
- package/bundle/obf/src/templates/meteor/template/template-tests.js.ts +0 -1
- package/bundle/obf/src/templates/meteor/template/template-tests.js.tsx +0 -55
- package/bundle/obf/src/templates/meteor/template/template.css +0 -6
- package/bundle/obf/src/templates/meteor/template/template.css.less +0 -6
- package/bundle/obf/src/templates/meteor/template/template.html +0 -5
- package/bundle/obf/src/templates/meteor/template/template.js +0 -20
- package/bundle/obf/src/templates/meteor/template/template.js.jsx +0 -77
- package/bundle/obf/src/templates/meteor/template/template.js.ts +0 -1
- package/bundle/obf/src/templates/meteor/template/template.js.tsx +0 -89
- package/bundle/obf/src/templates/react/component/component.css +0 -6
- package/bundle/obf/src/templates/react/component/component.css.less +0 -6
- package/bundle/obf/src/templates/react/component/component.js +0 -0
- package/bundle/obf/src/templates/react/component/component.js.jsx +0 -63
- package/bundle/obf/src/templates/react/component/component.js.ts +0 -0
- package/bundle/obf/src/templates/react/component/component.js.tsx +0 -68
- package/bundle/obf/src/templates/react/hook/hook.js +0 -1
- package/bundle/obf/src/templates/react/hook/hook.js.jsx +0 -24
- package/bundle/obf/src/templates/react/hook/hook.js.ts +0 -0
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +0 -23
- package/bundle/obf/src/templates/react/route/route.js +0 -8
- package/bundle/obf/src/templates/react/route/route.js.jsx +0 -8
- package/bundle/obf/src/templates/react/route/route.js.ts +0 -8
- package/bundle/obf/src/templates/react/route/route.js.tsx +0 -8
- package/bundle/obf/src/templates/react/test/test.js +0 -1
- package/bundle/obf/src/templates/react/test/test.js.jsx +0 -41
- package/bundle/obf/src/templates/react/test/test.js.ts +0 -1
- package/bundle/obf/src/templates/react/test/test.js.tsx +0 -41
- package/bundle/obf/src/templates/service/docker/Dockerfile +0 -54
- package/bundle/obf/src/templates/service/eslint/eslintrc.json +0 -33
- package/bundle/obf/src/templates/service/i18n/i18n.js +0 -33
- package/bundle/obf/src/templates/service/i18n/i18n.js.ts +0 -33
- package/bundle/obf/src/templates/service/i18n/index.js +0 -0
- package/bundle/obf/src/templates/service/i18n/index.js.jsx +0 -0
- package/bundle/obf/src/templates/service/i18n/locales.js +0 -3
- package/bundle/obf/src/templates/service/i18n/locales.js.ts +0 -3
- package/bundle/obf/src/templates/service/openssl/openssl.conf +0 -22
- package/bundle/obf/src/tool.js +0 -1
- package/bundle/obf/src/tools/actions/actions.class.js +0 -1
- package/bundle/obf/src/tools/aws/aws.class.js +0 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +0 -1
- package/bundle/obf/src/tools/docker/docker.class.js +0 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +0 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +0 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +0 -1
- package/bundle/obf/src/tools/https/https.class.js +0 -1
- package/bundle/obf/src/tools/https/https.interface.js +0 -1
- package/bundle/obf/src/tools/log/log.class.js +0 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +0 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +0 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +0 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +0 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +0 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +0 -1
- package/bundle/obf/src/tools/ssl/ssl.interfaces.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a25d(a,b){var c=a25c();return a25d=function(d,e){d=d-0x1d0;var f=c[d];return f;},a25d(a,b);}var a25i=a25d;(function(a,b){var f=a25d,c=a();while(!![]){try{var d=parseInt(f(0x1e8))/0x1*(-parseInt(f(0x1dd))/0x2)+parseInt(f(0x1e4))/0x3*(parseInt(f(0x1d4))/0x4)+parseInt(f(0x1e1))/0x5+-parseInt(f(0x1df))/0x6*(-parseInt(f(0x1d8))/0x7)+parseInt(f(0x1ea))/0x8*(parseInt(f(0x1d9))/0x9)+parseInt(f(0x1ef))/0xa*(parseInt(f(0x1d7))/0xb)+-parseInt(f(0x1e2))/0xc*(parseInt(f(0x1d0))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a25c,0x220b0));var a25b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a25d;if(c){var e=c[g(0x1d6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a25a=a25b(this,function(){var h=a25d;return a25a[h(0x1ec)]()['search'](h(0x1dc))[h(0x1ec)]()['constructor'](a25a)[h(0x1ee)](h(0x1dc));});a25a();import{capitalCase}from'change-case';import a25e from'./utilities/logger.js';export class Door{['roomA'];[a25i(0x1e7)];[a25i(0x1da)];[a25i(0x1e3)];[a25i(0x1d2)];[a25i(0x1eb)];[a25i(0x1e0)];constructor(a,b,c=![],d,e){var j=a25i;this[j(0x1d3)]=a,this[j(0x1e7)]=b,this[j(0x1da)]=c,this[j(0x1e3)]=d,this[j(0x1d2)]=e?capitalCase(e):j(0x1ed),this[j(0x1eb)]=a25e[j(0x1e5)](),this[j(0x1e0)]=!!d,this['logger'][j(0x1e6)](j(0x1d5)+this[j(0x1d3)][j(0x1d2)]+j(0x1db)+this[j(0x1e7)][j(0x1d2)]+'.\x20Is\x20Locked:\x20'+this[j(0x1da)]);}[a25i(0x1d1)](a){var k=a25i;return this[k(0x1d3)]===a?this[k(0x1e7)]:this[k(0x1d3)];}['attemptUnlock'](a){var l=a25i;if(this[l(0x1da)]&&this['unlockItemOrSolution']&&this['unlockItemOrSolution']===a)return this[l(0x1da)]=![],this['logger'][l(0x1e6)]('Door\x20unlocked:\x20'+this['name']+l(0x1e9)+a),!![];return this[l(0x1eb)][l(0x1e6)]('Failed\x20to\x20unlock\x20door:\x20'+this[l(0x1d2)]+l(0x1e9)+a),![];}['checkIfLocked'](){return this['isLocked'];}[a25i(0x1de)](){var m=a25i;return this[m(0x1e0)];}}function a25c(){var n=['1688coLEvF','logger','toString','Door','search','10GhKYwQ','52WAdlcw','getOtherSide','name','roomA','140LkOGIQ','Door\x20created\x20between\x20','apply','909942Fqyirv','266HoejIP','11007UBodPm','isLocked','\x20and\x20','(((.+)+)+)+$','14UvZSlb','checkIfLockable','15468mfZaxv','isLockable','1088020PwwVyj','1205028IFdudz','unlockItemOrSolution','9327wShYbN','getInstance','write','roomB','32006RapwBB','.\x20Used:\x20'];a25c=function(){return n;};return a25c();}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a26i=a26d;(function(a,b){const g=a26d,c=a();while(!![]){try{const d=-parseInt(g(0x1c6))/0x1*(parseInt(g(0x1b3))/0x2)+parseInt(g(0x1c4))/0x3*(-parseInt(g(0x1ce))/0x4)+parseInt(g(0x1cc))/0x5+-parseInt(g(0x1b8))/0x6+parseInt(g(0x1ca))/0x7*(-parseInt(g(0x1cb))/0x8)+parseInt(g(0x1af))/0x9*(-parseInt(g(0x1ab))/0xa)+parseInt(g(0x1c8))/0xb*(parseInt(g(0x1a4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a26c,0x5a7f0));const a26b=(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;};}()),a26a=a26b(this,function(){const h=a26d;return a26a[h(0x1b4)]()[h(0x1b0)](h(0x1bf))[h(0x1b4)]()[h(0x1b2)](a26a)[h(0x1b0)](h(0x1bf));});a26a();function a26d(a,b){const c=a26c();return a26d=function(d,e){d=d-0x1a3;let f=c[d];return f;},a26d(a,b);}import{GoCommand,LookCommand,TakeCommand,UseCommand,EquipCommand,UnequipCommand,SolveCommand,DropCommand,UnlockCommand,LockCommand,SearchCommand}from'./commands.js';export default class Game{static ['instance'];[a26i(0x1ad)];[a26i(0x1a5)];['rooms'];constructor(a,b){const j=a26i;this['player']=a,this[j(0x1d2)]=b,this[j(0x1ad)]['currentLocation']=this[j(0x1d1)]();}[a26i(0x1d1)](){const k=a26i;for(const b in this[k(0x1d2)]){if(this['rooms'][k(0x1b7)](b)){const c=this[k(0x1d2)][b];if(c[k(0x1d0)][k(0x1bb)](k(0x1c5)))return c;}}const a=Object[k(0x1ae)](this[k(0x1d2)]);if(a[k(0x1c3)]===0x0)throw new Error(k(0x1c0));return console['warn']('No\x20starting\x20room\x20designated.\x20Defaulting\x20to\x20the\x20first\x20room.'),this[k(0x1d2)][a[0x0]];}[a26i(0x1b9)](){const l=a26i;return l(0x1c1)+this['player'][l(0x1a7)]+l(0x1aa);}static['getInstance'](a,b){const m=a26i;return!Game['instance']&&(Game[m(0x1d4)]=new Game(a,b)),Game['instance'];}[a26i(0x1c2)](a){const n=a26i,b=a['trim']()[n(0x1d3)]('\x20'),c=b[0x0][n(0x1b1)](),d=b['slice'](0x1);if(c===n(0x1c9))return null;if(c===n(0x1a6))return n(0x1a9);if(c===n(0x1a8))return this[n(0x1cf)]();if(c===n(0x1b5))return'';let e=null;switch(c){case n(0x1c7):e=new LookCommand(this);break;case'go':e=new GoCommand(this);break;case n(0x1bc):e=new TakeCommand(this);break;case'drop':e=new DropCommand(this);break;case'use':e=new UseCommand(this);break;case'equip':e=new EquipCommand(this);break;case n(0x1a3):e=new UnequipCommand(this);break;case n(0x1ac):e=new SolveCommand(this);break;case n(0x1b6):e=new UnlockCommand(this);break;case n(0x1ba):e=new LockCommand(this);break;case n(0x1b0):e=new SearchCommand(this);break;default:return n(0x1bd)+c+'\x22.';}const f=e[n(0x1cd)](d);return f;}[a26i(0x1cf)](){const o=a26i;return o(0x1be);}}function a26c(){const p=['solve','player','keys','18NmEwId','search','toLowerCase','constructor','1592vsamhW','toString','clear','unlock','hasOwnProperty','1511790aEHUwq','getWelcomeMessage','lock','includes','take','I\x20don\x27t\x20understand\x20the\x20command\x20\x22','\x0a\x20\x20\x20\x20Available\x20Commands:\x0a\x20\x20\x20\x20-\x20look:\x20Examine\x20your\x20surroundings.\x0a\x20\x20\x20\x20-\x20search:\x20Search\x20for\x20items\x20in\x20your\x20area.\x0a\x20\x20\x20\x20-\x20go\x20[direction]:\x20Move\x20in\x20the\x20specified\x20direction.\x0a\x20\x20\x20\x20-\x20take\x20[item]:\x20Pick\x20up\x20an\x20item.\x0a\x20\x20\x20\x20-\x20drop\x20[item]:\x20Drop\x20an\x20item\x20from\x20your\x20inventory.\x0a\x20\x20\x20\x20-\x20use\x20[item]:\x20Use\x20an\x20item.\x0a\x20\x20\x20\x20-\x20equip\x20[item]:\x20Equip\x20an\x20item.\x0a\x20\x20\x20\x20-\x20unequip\x20[item]:\x20Unequip\x20an\x20item.\x0a\x20\x20\x20\x20-\x20solve\x20[puzzle]:\x20Attempt\x20to\x20solve\x20a\x20puzzle.\x0a\x20\x20\x20\x20-\x20unlock\x20[door]:\x20Unlock\x20a\x20door.\x0a\x20\x20\x20\x20-\x20lock\x20[door]:\x20Lock\x20a\x20door.\x0a\x20\x20\x20\x20-\x20clear:\x20Clear\x20the\x20screen.\x0a\x20\x20\x20\x20-\x20quit:\x20Exit\x20the\x20game.\x0a\x20\x20\x20\x20','(((.+)+)+)+$','No\x20rooms\x20have\x20been\x20defined\x20in\x20the\x20game.','Hey\x20','handleInput','length','3HQCkkX','[START]','788bZtPaI','look','11ferhrv','quit','7gSHvFy','1535192dkuclN','2528570YnLHEW','execute','1223900mgsylO','getHelpMessage','description','determineStartRoom','rooms','split','instance','unequip','21415236nGCutp','currentRoom','maka','name','help','You\x20are\x20still\x20in\x20the\x20game,\x20type\x20\x22quit\x22\x20to\x20exit',',\x20Ready\x20to\x20embark\x20on\x20a\x20Side\x20Quest?!\x20(type\x20\x22help\x22\x20for\x20a\x20list\x20of\x20commands)\x0a{green-fg}This\x20game\x20is\x20in\x20development\x20;){/green-fg}','2712790iaRdtn'];a26c=function(){return p;};return a26c();}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a27i=a27d;function a27d(a,b){const c=a27c();return a27d=function(d,e){d=d-0x10c;let f=c[d];return f;},a27d(a,b);}(function(a,b){const f=a27d,c=a();while(!![]){try{const d=-parseInt(f(0x11f))/0x1+-parseInt(f(0x111))/0x2+-parseInt(f(0x118))/0x3+-parseInt(f(0x126))/0x4*(parseInt(f(0x114))/0x5)+parseInt(f(0x119))/0x6*(parseInt(f(0x10f))/0x7)+parseInt(f(0x131))/0x8*(parseInt(f(0x124))/0x9)+parseInt(f(0x133))/0xa*(parseInt(f(0x116))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a27c,0xcae91));const a27b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a27d;if(c){const e=c[g(0x112)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a27a=a27b(this,function(){const h=a27d;return a27a[h(0x10d)]()[h(0x115)]('(((.+)+)+)+$')['toString']()[h(0x128)](a27a)[h(0x115)]('(((.+)+)+)+$');});function a27c(){const q=['toLowerCase','100atQyuv','search','1991vuJLBQ','join','2597658GzZieS','762oZwyHg','Failed\x20to\x20remove\x20item:\x20','keys','getItem','Retrieved\x20details\x20for\x20item:\x20','write','592876NQkxQB','getAllItems','Listed\x20items\x20in\x20inventory:\x20','\x20from\x20inventory.','items','7307919XfMFsQ','Failed\x20to\x20retrieve\x20details\x20for\x20item:\x20','96768FOBIzQ','getInstance','constructor','hasItem','Removed\x20item:\x20','set','get','listItems','\x20to\x20inventory.','removeItem','.\x20Exists:\x20','8rDeyOG','logger','107650idaKKq','getWeight','toString','weight','3269CsIAXZ','.\x20Item\x20not\x20found.','92084VRcdWv','apply'];a27c=function(){return q;};return a27c();}a27a();import{capitalCase}from'change-case';import a27e from'./utilities/logger.js';export class Inventory{[a27i(0x123)];[a27i(0x132)];constructor(){const j=a27i;this[j(0x123)]=new Map(),this[j(0x132)]=a27e[j(0x127)]();}['addItem'](a){const k=a27i;this['items'][k(0x12b)](a['name'][k(0x113)](),a),this[k(0x132)][k(0x11e)]('Added\x20item:\x20'+a['name']+k(0x12e));}[a27i(0x12f)](a){const l=a27i,b=this[l(0x11c)](a);if(b)return this[l(0x123)]['delete'](a['toLowerCase']()),this['logger']['write'](l(0x12a)+a+l(0x122)),b;return this[l(0x132)][l(0x11e)](l(0x11a)+a+l(0x110)),null;}[a27i(0x129)](a){const m=a27i,b=this[m(0x123)]['has'](a[m(0x113)]()),c=[...this['items'][m(0x11b)]()];return this[m(0x132)][m(0x11e)]('Checked\x20for\x20item:\x20'+a+'\x20in\x20'+c[m(0x117)](',\x20')+m(0x130)+b+'.'),b;}[a27i(0x11c)](a){const n=a27i,b=this[n(0x123)][n(0x12c)](a[n(0x113)]())||null;return b?this[n(0x132)][n(0x11e)](n(0x11d)+a+'.'):this[n(0x132)][n(0x11e)](n(0x125)+a+n(0x110)),b;}[a27i(0x12d)](){const o=a27i,a=[...this[o(0x123)]['keys']()],b=a['map'](c=>capitalCase(c));return this[o(0x132)]['write'](o(0x121)+b['join'](',\x20')+'.'),a;}[a27i(0x10c)](){const p=a27i;let a=0x0;for(const b of this['items']['values']()){a+=b[p(0x10e)];}return a;}[a27i(0x120)](){return[...this['items']['values']()];}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a28d(a,b){var c=a28c();return a28d=function(d,e){d=d-0x1a5;var f=c[d];return f;},a28d(a,b);}var a28i=a28d;(function(a,b){var f=a28d,c=a();while(!![]){try{var d=parseInt(f(0x1ba))/0x1+parseInt(f(0x1b2))/0x2+-parseInt(f(0x1b6))/0x3+-parseInt(f(0x1d3))/0x4*(parseInt(f(0x1ac))/0x5)+-parseInt(f(0x1ab))/0x6*(-parseInt(f(0x1de))/0x7)+parseInt(f(0x1b0))/0x8*(parseInt(f(0x1ca))/0x9)+-parseInt(f(0x1b9))/0xa*(parseInt(f(0x1d2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a28c,0x5a1a4));var a28b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a28d;if(c){var e=c[g(0x1c9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a28a=a28b(this,function(){var h=a28d;return a28a['toString']()['search'](h(0x1dc))[h(0x1ce)]()[h(0x1dd)](a28a)['search'](h(0x1dc));});function a28c(){var u=['Small','1445391wpRtNT','Metallic','Large','75050NuFLOj','477983KWrdpp','pageCount','.\x20Nothing\x20special\x20happens.','texture','publishDate','weight','You\x20use\x20the\x20','use','Book','A\x20well-balanced\x20short\x20sword,\x20ideal\x20for\x20close\x20combat.','rating','\x20aloft,\x20feeling\x20its\x20immense\x20power.','Legendary','You\x20suck\x20at\x20using\x20it.\x20\x20Try\x20equipping\x20it\x20\x22equip\x20sniper\x20rifle\x22','Grey','apply','2108907CdywyR','name','Short\x20Sword','Brown','toString','size','Common','Rifle','1551JiAeja','587108XRkmQp','Weapon','uuid','Medium','Tiny','Use\x20it\x20for\x20what?\x20Try\x20equipping\x20it\x20\x22equip\x20short\x20sword\x22','You\x20hold\x20the\x20','Yellow','Gold','(((.+)+)+)+$','constructor','5649ZDWPGI','shape','This\x20is\x20a\x20key,\x20and\x20you\x20cannot\x20just\x20\x22use\x22\x20it.\x20Try\x20\x22unlock\x22','color','Smooth','Sniper\x20Rifle','author','4842rehvjv','5ZshORX','A\x20legendary\x20cup\x20believed\x20to\x20have\x20miraculous\x20powers.\x20It\x20shimmers\x20with\x20an\x20ethereal\x20glow.','category','Unknown\x20Author','16BdYdRj','Rectangle','915922eHMgil','description','Cup'];a28c=function(){return u;};return a28c();}a28a();import{Size,Category,Shape,Color,Texture,Rating}from'./types.js';import{v4 as a28e}from'uuid';export class Item{['uuid'];['name'];['description'];[a28i(0x1cf)];['category'];[a28i(0x1a5)];['color'];[a28i(0x1bd)];[a28i(0x1c4)];[a28i(0x1bf)];constructor(a){var j=a28i;this[j(0x1cb)]=a[j(0x1cb)],this[j(0x1b3)]=a['description'],this[j(0x1cf)]=a[j(0x1cf)],this[j(0x1ae)]=a[j(0x1ae)],this[j(0x1a5)]=a[j(0x1a5)],this[j(0x1a7)]=a[j(0x1a7)],this['texture']=a[j(0x1bd)],this[j(0x1c4)]=a[j(0x1c4)],this[j(0x1bf)]=a[j(0x1bf)],this[j(0x1d5)]=a28e();}[a28i(0x1c1)](){var k=a28i;return k(0x1c0)+this['name']+k(0x1bc);}}export class Key extends Item{constructor(a,b){var l=a28i;super({'name':a,'description':b,'size':Size[l(0x1d7)],'category':Category['Key'],'shape':Shape[l(0x1b1)],'color':Color[l(0x1da)],'texture':Texture['Smooth'],'rating':Rating[l(0x1d0)],'weight':0x0});}[a28i(0x1c1)](){var m=a28i;return m(0x1a6);}}export class Book extends Item{[a28i(0x1aa)];[a28i(0x1be)];[a28i(0x1bb)];constructor(a,b='A\x20mysterious\x20book.',c=a28i(0x1af)){var n=a28i;super({'name':a,'description':b,'size':Size[n(0x1d6)],'category':Category[n(0x1c2)],'shape':Shape[n(0x1b1)],'color':Color['Brown'],'texture':Texture[n(0x1a8)],'rating':Rating[n(0x1d0)],'weight':0x1}),this[n(0x1aa)]=c,this[n(0x1be)]=new Date(),this[n(0x1bb)]=0x64;}[a28i(0x1c1)](){return'There\x20is\x20a\x20bookmark,\x20you\x20open\x20the\x20book\x20to\x20the\x20page\x20and\x20you\x20see\x20a\x20note\x20saying\x20\x22secret123\x22';}}export class ShortSword extends Item{constructor(){var o=a28i;super({'name':o(0x1cc),'description':o(0x1c3),'size':Size['Medium'],'category':Category[o(0x1d4)],'shape':Shape['Blade'],'color':Color[o(0x1c8)],'texture':Texture['Metallic'],'rating':Rating[o(0x1d0)],'weight':0x3});}[a28i(0x1c1)](){var p=a28i;return p(0x1d8);}}export class SniperRifle extends Item{constructor(){var q=a28i;super({'name':q(0x1a9),'description':'An\x20accurate,\x20long\x20range,\x205\x20round\x20rifle\x20with\x20a\x208x\x20scope.','size':Size[q(0x1b8)],'category':Category[q(0x1d4)],'shape':Shape[q(0x1d1)],'color':Color[q(0x1cd)],'texture':Texture['Smooth'],'rating':Rating[q(0x1d0)],'weight':0x5});}[a28i(0x1c1)](){var r=a28i;return r(0x1c7);}}export class HolyGrail extends Item{constructor(){var s=a28i;super({'name':'Holy\x20Grail','description':s(0x1ad),'size':Size[s(0x1b5)],'category':Category[s(0x1b4)],'shape':Shape['Circle'],'color':Color[s(0x1db)],'texture':Texture[s(0x1b7)],'rating':Rating[s(0x1c6)],'weight':0x1});}[a28i(0x1c1)](){var t=a28i;return t(0x1d9)+this['name']+t(0x1c5);}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a29h=a29d;(function(a,b){const f=a29d,c=a();while(!![]){try{const d=parseInt(f(0x13e))/0x1*(parseInt(f(0x157))/0x2)+-parseInt(f(0x17b))/0x3+-parseInt(f(0x186))/0x4+-parseInt(f(0x181))/0x5+parseInt(f(0x16f))/0x6+-parseInt(f(0x14c))/0x7+parseInt(f(0x158))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a29c,0xd5ece));const a29b=(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;};}()),a29a=a29b(this,function(){const g=a29d;return a29a['toString']()['search'](g(0x17c))[g(0x168)]()[g(0x167)](a29a)[g(0x150)]('(((.+)+)+)+$');});a29a();import{camelCase}from'change-case';function a29c(){const y=['37657272pIicqR','Hat','category','You\x20can\x27t\x20equip\x20','write','leftHand','currentLocation','_currentLocation','You\x20don\x27t\x20have\x20','\x20slot.','Weapon','Shield','rightHand','ArmArmor','_maxCarryingWeight','constructor','toString','currentWeight','canEquip','unequipBySlot','_inventory','feet','\x20doesn\x27t\x20fit\x20any\x20known\x20equipment\x20slot.','1361442QmJFQK','The\x20item\x20is\x20too\x20heavy\x20to\x20add\x20to\x20your\x20inventory.','.\x20You\x20must\x20unequip\x20it\x20first.','head','getInstance','\x20in\x20your\x20inventory.','weapon','arm\x20armor','hat','Failed\x20to\x20remove\x20','weight','You\x20equipped\x20','5147781IaLVAF','(((.+)+)+)+$','Boots','maxCarryingWeight','body\x20armor','boots','5304685GasqnQ','error','leg\x20armor','arms','BodyArmor','4324012qHvHVY','You\x20unequipped\x20','\x20from\x20player\x27s\x20inventory.','A\x20featureless\x20room','determineEquipmentSlot','equipment','toLowerCase','legarmor','legs','1250191BwgQxH','Gloves','removeInventory','gloves','hasItem','bodyarmor','removeItem','Start\x20Room','getWeight','Failed\x20to\x20add\x20item\x20to\x20inventory\x20due\x20to\x20weight\x20limits.','LegArmor','inventory','addInventory','You\x20don\x27t\x20have\x20anything\x20equipped\x20in\x20the\x20','10151064OSmMAW','armarmor','torso','_playerName','search','name','logger','helmet','Removed\x20','_equipment','Max\x20carrying\x20weight\x20must\x20be\x20positive.','2CieatN'];a29c=function(){return y;};return a29c();}function a29d(a,b){const c=a29c();return a29d=function(d,e){d=d-0x13e;let f=c[d];return f;},a29d(a,b);}import{Room}from'./room.js';import{Category}from'./types.js';import{Inventory}from'./inventory.js';import a29e from'./utilities/logger.js';export class Player{[a29h(0x14f)];[a29h(0x15f)];[a29h(0x16c)];[a29h(0x155)];['_maxCarryingWeight']=0x32;[a29h(0x152)];constructor(a,b,c,d){const i=a29h;this['_playerName']=a,this[i(0x15f)]=b||new Room(i(0x145),i(0x189)),this['_inventory']=new Inventory(),this[i(0x152)]=a29e[i(0x173)]();if(c)for(const e of c){this[i(0x16c)]['addItem'](e);}this[i(0x155)]=d||{'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};}get['name'](){return this['_playerName'];}set[a29h(0x151)](a){const j=a29h;this[j(0x14f)]=a;}get[a29h(0x15e)](){const k=a29h;return this[k(0x15f)];}set['currentLocation'](a){const l=a29h;this[l(0x15f)]=a;}get[a29h(0x149)](){const m=a29h;return this[m(0x16c)];}get[a29h(0x18b)](){return this['_equipment'];}set[a29h(0x18b)](a){const n=a29h;this[n(0x155)]=a;}get['maxCarryingWeight'](){const o=a29h;return this[o(0x166)];}set[a29h(0x17e)](a){const p=a29h;a>0x0?this[p(0x166)]=a:console[p(0x182)](p(0x156));}get[a29h(0x169)](){const q=a29h;let a=this[q(0x16c)][q(0x146)]();for(const b in this[q(0x155)]){const c=this[q(0x155)][b];c&&(a+=c[q(0x179)]);}return a;}[a29h(0x14a)](a){const r=a29h;if(this[r(0x169)]+a['weight']>this[r(0x17e)]){this[r(0x152)][r(0x15c)](r(0x147));throw new Error(r(0x170));}this[r(0x16c)]['addItem'](a),this[r(0x152)][r(0x15c)]('Added\x20'+a[r(0x151)]+'\x20to\x20player\x27s\x20inventory.');}['removeInventory'](a){const s=a29h;if(this['_inventory'][s(0x144)](a[s(0x151)]))return this[s(0x152)][s(0x15c)](s(0x154)+a[s(0x151)]+s(0x188)),!![];return this[s(0x152)][s(0x15c)](s(0x178)+a['name']+s(0x188)),![];}['equip'](a){const t=a29h;if(!this[t(0x16c)][t(0x142)](a[t(0x151)]))return t(0x160)+a[t(0x151)]+t(0x174);if(!this[t(0x16a)](a))return t(0x15b)+a[t(0x151)]+'.';const b=this[t(0x18a)](a[t(0x15a)]);if(!b)return a[t(0x151)]+t(0x16e);if(this[t(0x18b)][b])return'You\x20are\x20already\x20wearing\x20something\x20on\x20your\x20'+b+t(0x171);return this['equipment'][b]=a,this[t(0x140)](a),t(0x17a)+a['name']+'.';}['unequip'](a){const u=a29h;let b=a;if(!this[u(0x18b)][camelCase(b)]){b=this['determineEquipmentSlot'](a);if(!b)return'Invalid\x20category\x20or\x20slot:\x20'+a+'.';}return this[u(0x16b)](b);}[a29h(0x18a)](a){const v=a29h;switch(a['toLowerCase']()){case Category[v(0x162)][v(0x18c)]():return'rightHand';case Category[v(0x163)][v(0x18c)]():return v(0x15d);case Category[v(0x13f)][v(0x18c)]():return v(0x141);case Category['Helmet']['toLowerCase']():case Category[v(0x159)][v(0x18c)]():return v(0x172);case Category[v(0x17d)][v(0x18c)]():return v(0x16d);case Category[v(0x148)][v(0x18c)]():return v(0x18e);case Category[v(0x165)][v(0x18c)]():return v(0x184);case Category[v(0x185)]['toLowerCase']():return v(0x14e);case v(0x175):return v(0x164);case'shield':return'leftHand';case v(0x141):return v(0x141);case v(0x153):case v(0x177):return v(0x172);case v(0x180):return'feet';case v(0x183):case v(0x18d):return v(0x18e);case v(0x176):case v(0x14d):return v(0x184);case v(0x17f):case v(0x143):case v(0x14e):return v(0x14e);default:return null;}}[a29h(0x16a)](a){const w=a29h;return Object['values'](Category)['includes'](a[w(0x15a)]);}['unequipBySlot'](a){const x=a29h,b=this[x(0x18b)][a];if(!b)return x(0x14b)+a+x(0x161);return this[x(0x14a)](b),this[x(0x18b)][a]=null,x(0x187)+b[x(0x151)]+'.';}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a30i=a30d;function a30c(){var n=['30wcdHBG','write','(((.+)+)+)+$','749NkBnZz','560AbcMln','139124SDnCAD','Puzzle:\x20Attempted\x20to\x20solve\x20an\x20already\x20solved\x20puzzle.','195546dheMuw','2433MADAcx','toString','requiredPhrase','You\x20have\x20already\x20solved\x20this\x20puzzle.','You\x20don\x27t\x20have\x20the\x20necessary\x20item\x20or\x20the\x20correct\x20phrase\x20to\x20solve\x20the\x20puzzle.','requiredItem','rewardItem','getInstance','successMessage','4400EsxGAw','riddle','65571hoVBHm','apply','Puzzle:\x20Correct\x20solution\x20provided.','matchesRequiredPhrase','failureMessage','hasRequiredItem','2426202InGzxq','solved','logger','345668wTcFNz','84nMsCsQ','Puzzle:\x20Necessary\x20item\x20or\x20correct\x20phrase\x20not\x20provided.'];a30c=function(){return n;};return a30c();}(function(a,b){var f=a30d,c=a();while(!![]){try{var d=parseInt(f(0x1bc))/0x1+parseInt(f(0x1b4))/0x2+-parseInt(f(0x1bf))/0x3*(-parseInt(f(0x1b5))/0x4)+-parseInt(f(0x1b7))/0x5*(parseInt(f(0x1be))/0x6)+-parseInt(f(0x1ba))/0x7*(parseInt(f(0x1a9))/0x8)+-parseInt(f(0x1b1))/0x9+parseInt(f(0x1bb))/0xa*(parseInt(f(0x1ab))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a30c,0x21e4f));var a30b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a30d;if(c){var e=c[g(0x1ac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a30a=a30b(this,function(){var h=a30d;return a30a['toString']()['search'](h(0x1b9))[h(0x1c0)]()['constructor'](a30a)['search'](h(0x1b9));});a30a();function a30d(a,b){var c=a30c();return a30d=function(d,e){d=d-0x1a8;var f=c[d];return f;},a30d(a,b);}import a30e from'./utilities/logger.js';export class Puzzle{[a30i(0x1b3)]=a30e[a30i(0x1c6)]();[a30i(0x1b2)]=![];[a30i(0x1c4)];[a30i(0x1c1)];[a30i(0x1aa)];[a30i(0x1c5)];[a30i(0x1a8)];[a30i(0x1af)];constructor(a){var j=a30i;this['requiredItem']=a['requiredItem'],this[j(0x1c1)]=a[j(0x1c1)],this[j(0x1aa)]=a[j(0x1aa)],this[j(0x1c5)]=a[j(0x1c5)],this[j(0x1a8)]=a['successMessage']||'You\x20solved\x20the\x20puzzle!',this[j(0x1af)]=a[j(0x1af)]||j(0x1c3);}[a30i(0x1b0)](a){var k=a30i;if(this[k(0x1c4)])return a['hasItem'](this[k(0x1c4)]);return![];}[a30i(0x1ae)](a){var l=a30i;return this[l(0x1c1)]===a;}['solve'](a,b){var m=a30i;if(this[m(0x1b2)])return this[m(0x1b3)]['write'](m(0x1bd)),{'success':![],'message':m(0x1c2)};return this[m(0x1b0)](b)||this[m(0x1ae)](a)?(this[m(0x1b2)]=!![],this[m(0x1b3)][m(0x1b8)](m(0x1ad)),{'success':!![],'message':this[m(0x1a8)]}):(this['logger'][m(0x1b8)](m(0x1b6)),{'success':![],'message':this[m(0x1af)]});}}export class BasicPuzzle extends Puzzle{constructor(a){super(a);}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a31i=a31d;function a31c(){const u=['getInstance','3867knUFnN','getOppositeDirection','Item\x20added\x20to\x20room\x20','748480JJLfkt','Invalid\x20direction:\x20','toString','north','(((.+)+)+)+$','Fetching\x20exit\x20in\x20direction:\x20','west','5974120oxhXaH','.\x20Success:\x20','checkIfLocked','5ICcTsu','name','attemptUnlock','removeItem','apply','2246WyZUyZ','913MXvyNr','east','3419016LvvgRm','isExitLocked','320691segNsu','setPuzzle','roomA','search','hasItem','addItem','Puzzle\x20set\x20for\x20room\x20','roomType','210WtErhu','write','constructor','attemptUnlockExit','roomB','exits','415812HMAnYf','set','inventory','get','32lJCJrb','Room\x20created:\x20','riddle','down','The\x20','Attempted\x20to\x20unlock\x20exit\x20in\x20direction\x20','\x20is\x20locked.\x20Result:\x20','3815946bPAThh','Item\x20removed\x20from\x20room\x20','south','\x20unlocked!','Attempted\x20to\x20remove\x20item\x20that\x27s\x20not\x20in\x20room\x20','findExistingDoor','oppositeDirection','No\x20locked\x20exit\x20found\x20in\x20direction\x20','values'];a31c=function(){return u;};return a31c();}(function(a,b){const f=a31d,c=a();while(!![]){try{const d=-parseInt(f(0xba))/0x1+-parseInt(f(0x8f))/0x2*(-parseInt(f(0xb7))/0x3)+parseInt(f(0x92))/0x4*(-parseInt(f(0x8a))/0x5)+parseInt(f(0x9c))/0x6*(parseInt(f(0x94))/0x7)+-parseInt(f(0xa6))/0x8*(-parseInt(f(0xad))/0x9)+parseInt(f(0xc1))/0xa+-parseInt(f(0x90))/0xb*(parseInt(f(0xa2))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a31c,0xd3363));const a31b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a31d;if(c){const e=c[g(0x8e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a31a=a31b(this,function(){const h=a31d;return a31a['toString']()['search']('(((.+)+)+)+$')[h(0xbc)]()[h(0x9e)](a31a)[h(0x97)](h(0xbe));});a31a();import{Door}from'./door.js';import a31e from'./utilities/logger.js';import{RoomType}from'./types.js';import{Inventory}from'./inventory.js';function a31d(a,b){const c=a31c();return a31d=function(d,e){d=d-0x89;let f=c[d];return f;},a31d(a,b);}const gameLog=a31e[a31i(0xb6)]();export class Room{[a31i(0x8b)];['description'];['exits']=new Map();[a31i(0xa4)]=new Inventory();['puzzle'];[a31i(0x9b)];constructor(a,b,c=RoomType['INSIDE']){const j=a31i;this[j(0x8b)]=a,this['description']=b,this[j(0x9b)]=c,gameLog[j(0x9d)](j(0xa7)+a);}['addExit'](a,b,c){const k=a31i;let d=this[k(0xb2)](b);!d&&(d=new Door(this,b,Boolean(c),c)),this['exits'][k(0xa3)](a,d),b['exits']['set'](this[k(0xb8)](a),d);}[a31i(0x9f)](a,b){const l=a31i,c=this['exits']['get'](a);if(c instanceof Door){const d=c[l(0x8c)](b);return gameLog['write'](l(0xab)+a+l(0xc2)+d),d?l(0xaa)+c[l(0x8b)]+l(0xb0):l(0xaa)+c[l(0x8b)]+'\x20remains\x20locked.';}return gameLog['write'](l(0xb4)+a),'There\x27s\x20no\x20locked\x20exit\x20in\x20that\x20direction.';}['getExit'](a){const m=a31i;return gameLog['write'](m(0xbf)+a),this['exits'][m(0xa5)](a);}[a31i(0x93)](a){const n=a31i,b=this[n(0xa1)][n(0xa5)](a),c=b instanceof Door&&b[n(0x89)]();return gameLog[n(0x9d)]('Checking\x20if\x20exit\x20in\x20direction\x20'+a+n(0xac)+c),c;}[a31i(0x99)](a){const o=a31i;this[o(0xa4)]['addItem'](a),gameLog[o(0x9d)](o(0xb9)+this[o(0x8b)]+':\x20'+a[o(0x8b)]);}[a31i(0x8d)](a){const p=a31i;this['inventory'][p(0x98)](a[p(0x8b)])?(this[p(0xa4)]['removeItem'](a[p(0x8b)]),gameLog['write'](p(0xae)+this[p(0x8b)]+':\x20'+a[p(0x8b)])):gameLog['write'](p(0xb1)+this[p(0x8b)]+':\x20'+a['name']);}[a31i(0x95)](a){const q=a31i;this['puzzle']=a,gameLog[q(0x9d)](q(0x9a)+this[q(0x8b)]+':\x20'+a[q(0xa8)]);}['getOppositeDirection'](a){const r=a31i;switch(a){case r(0xbd):return r(0xaf);case'south':return'north';case r(0x91):return'west';case'west':return r(0x91);case'up':return'down';case r(0xa9):return'up';default:throw new Error(r(0xbb)+a);}}[a31i(0xb3)](a){const s=a31i,b={'north':s(0xaf),'south':'north','east':s(0xc0),'west':s(0x91),'up':'down','down':'up'};return b[a];}[a31i(0xb2)](a){const t=a31i;for(const b of this[t(0xa1)][t(0xb5)]()){if(b instanceof Door){if(b[t(0x96)]===this&&b[t(0xa0)]===a||b['roomB']===this&&b[t(0x96)]===a)return b;}}return undefined;}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a32i=a32d;(function(a,b){const f=a32d,c=a();while(!![]){try{const d=parseInt(f(0x168))/0x1+-parseInt(f(0x178))/0x2*(-parseInt(f(0x164))/0x3)+-parseInt(f(0x15e))/0x4+-parseInt(f(0x165))/0x5+-parseInt(f(0x17c))/0x6+-parseInt(f(0x169))/0x7+parseInt(f(0x167))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a32c,0x6c0b4));const a32b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a32d;if(c){const e=c[g(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a32a=a32b(this,function(){const h=a32d;return a32a[h(0x163)]()[h(0x15b)](h(0x16e))[h(0x163)]()[h(0x16c)](a32a)[h(0x15b)](h(0x16e));});a32a();import{RoomType}from'./types.js';import{Room}from'./room.js';import{Key,SniperRifle,HolyGrail,Book}from'./items.js';import{BasicPuzzle}from'./puzzles.js';function a32d(a,b){const c=a32c();return a32d=function(d,e){d=d-0x15a;let f=c[d];return f;},a32d(a,b);}function a32c(){const j=['A\x20shiny\x20golden\x20key\x20with\x20intricate\x20engravings.','4967526gmjRkx','OUTSIDE','A\x20serene\x20courtyard\x20with\x20a\x20gentle\x20fountain.\x20There\x20are\x20birds\x20bathing.','search','A\x20thin\x20log\x20book','Treasure\x20Room','374496BBZrmX','That\x20passcode\x20is\x20incorrect','Library','Secret\x20Passage','A\x20dimly\x20lit\x20passage\x20with\x20walls\x20made\x20of\x20stone.','toString','9OHoylz','4404430hblrOl','apply','17576216qsSPJD','633396gVjwKo','4228875xeRqKn','secret123','You\x20pull\x20the\x20sniper\x20rifle\x20from\x20the\x20gun\x20cabinet.\x20\x20Just\x20as\x20you\x20do,\x20you\x20hear\x20a\x20guy\x20from\x20the\x20Courtyard\x20yell\x20\x22HEY!\x20WHAT\x27S\x20YA\x20NAME?!\x22','constructor','name','(((.+)+)+)+$','A\x20room\x20glittering\x20with\x20gold\x20and\x20jewels.','east','Chad\x20the\x20stupid\x20guard','A\x20locked\x20glass\x20gun\x20cabinet\x20stands\x20here,\x20with\x20a\x20keypad\x20awaiting\x20a\x20password.','addItem','south','setPuzzle','Guard\x27s\x20Log\x20Book','Watch\x20Tower','12454JYRMJX','A\x20towering\x20structure\x20giving\x20a\x20bird’s-eye\x20view\x20of\x20the\x20surroundings.','addExit'];a32c=function(){return j;};return a32c();}const library=new Room(a32i(0x160),'A\x20vast\x20library\x20filled\x20with\x20ancient\x20books.\x20[START]'),secretPassage=new Room(a32i(0x161),a32i(0x162)),treasureRoom=new Room(a32i(0x15d),a32i(0x16f)),courtyard=new Room('Courtyard',a32i(0x15a),RoomType[a32i(0x17d)]),watchTower=new Room(a32i(0x177),a32i(0x179),RoomType['OUTSIDE']),gunCabinetPuzzle=new BasicPuzzle({'requiredPhrase':a32i(0x16a),'riddle':a32i(0x172),'rewardItem':new SniperRifle(),'successMessage':a32i(0x16b),'failureMessage':a32i(0x15f)}),goldenKey=new Key('Golden\x20Key',a32i(0x17b)),logBook=new Book(a32i(0x176),a32i(0x15c),a32i(0x171)),holyGrail=new HolyGrail();library[a32i(0x173)](goldenKey),library[a32i(0x173)](logBook),watchTower[a32i(0x175)](gunCabinetPuzzle),treasureRoom[a32i(0x173)](holyGrail),library[a32i(0x17a)](a32i(0x170),secretPassage),secretPassage[a32i(0x17a)]('north',treasureRoom,goldenKey[a32i(0x16d)]),secretPassage[a32i(0x17a)](a32i(0x174),courtyard),courtyard['addExit']('up',watchTower);const rooms={'library':library,'secretPassage':secretPassage,'treasureRoom':treasureRoom,'courtyard':courtyard,'watchTower':watchTower};export default rooms;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(a,b){var k=a33d,c=a();while(!![]){try{var d=parseInt(k(0xb6))/0x1+parseInt(k(0xb8))/0x2+parseInt(k(0xb0))/0x3+parseInt(k(0x7d))/0x4+-parseInt(k(0x6c))/0x5*(-parseInt(k(0x9d))/0x6)+-parseInt(k(0x89))/0x7+-parseInt(k(0x97))/0x8*(parseInt(k(0xa9))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a33c,0x620ab));export var Size;function a33d(a,b){var c=a33c();return a33d=function(d,e){d=d-0x69;var f=c[d];return f;},a33d(a,b);}(function(a){var l=a33d;a[l(0x72)]=l(0xb9),a['Small']=l(0x8b),a[l(0x8e)]=l(0x8f),a[l(0xb4)]=l(0x98),a[l(0x96)]=l(0xb2);}(Size||(Size={})));export var Rating;function a33c(){var u=['bumpy','ArmArmor','fuzzy','leg\x20armor','circle','Gold','MOUNTAIN','Brown','Green','900088MYWGtE','Hat','rare','UNDERGROUND','Rough','Blade','key','sea','DESERT','Red','FOREST','grey','2127125tfGCVj','mountain','small','inside','Boots','Medium','medium','desert','body\x20armor','Key','rectangle','metallic','Fuzzy','VeryLarge','128iCnOgJ','large','Grey','blade','Weapon','beach','1494CRfBgm','blue','apply','Circle','search','smooth','CAVE','constructor','Rectangle','BEACH','Gloves','Blue','745299MgFaEi','Purple','TOWER','triangle','Grainy','helmet','Helmet','2258769acREEW','brown','very\x20large','Metallic','Large','hat','255037eEQanq','tower','1579458pdxpYB','tiny','Book','common','forest','Yellow','155pWPzne','underground','OUTSIDE','gold','Triangle','SEA','Tiny','orange'];a33c=function(){return u;};return a33c();}(function(a){var m=a33d;a['Common']=m(0x69),a['Rare']=m(0x7f),a['Legendary']='legendary';}(Rating||(Rating={})));export var Category;(function(a){var n=a33d;a[n(0x9b)]='weapon',a['Shield']='shield',a[n(0x92)]=n(0x83),a[n(0xa7)]='gloves',a[n(0xaf)]=n(0xae),a[n(0x7e)]=n(0xb5),a[n(0x8d)]='boots',a['LegArmor']=n(0x77),a[n(0x75)]='arm\x20armor',a['BodyArmor']=n(0x91),a[n(0xba)]='book',a['Cup']='cup';}(Category||(Category={})));export var Shape;(function(a){var o=a33d;a[o(0xa0)]=o(0x78),a['Square']='square',a[o(0x70)]=o(0xac),a[o(0xa5)]=o(0x93),a[o(0x82)]=o(0x9a),a['Rifle']='rifle';}(Shape||(Shape={})));export var Color;(function(a){var p=a33d;a[p(0x86)]='red',a[p(0xa8)]=p(0x9e),a[p(0x7c)]='green',a[p(0x6b)]='yellow',a['Orange']=p(0x73),a[p(0xaa)]='purple',a[p(0x99)]=p(0x88),a[p(0x7b)]=p(0xb1),a[p(0x79)]=p(0x6f);}(Color||(Color={})));export var Texture;(function(c){var s=a33d,d=(function(){var f=!![];return function(g,h){var i=f?function(){var q=a33d;if(h){var j=h[q(0x9f)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var r=a33d;return e['toString']()[r(0xa1)]('(((.+)+)+)+$')['toString']()[r(0xa4)](e)[r(0xa1)]('(((.+)+)+)+$');});e(),c['Smooth']=s(0xa2),c[s(0x81)]='rough',c['Bumpy']=s(0x74),c[s(0x95)]=s(0x76),c[s(0xad)]='grainy',c[s(0xb3)]=s(0x94);}(Texture||(Texture={})));export var RoomType;(function(a){var t=a33d;a['INSIDE']=t(0x8c),a[t(0x6e)]='outside',a[t(0x80)]=t(0x6d),a[t(0xa3)]='cave',a[t(0xab)]=t(0xb7),a[t(0x87)]=t(0x6a),a[t(0x85)]=t(0x90),a[t(0x7a)]=t(0x8a),a[t(0xa6)]=t(0x9c),a[t(0x71)]=t(0x84);}(RoomType||(RoomType={})));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(a,b){const t=a34d,c=a();while(!![]){try{const d=parseInt(t(0x1f3))/0x1*(-parseInt(t(0x1ce))/0x2)+parseInt(t(0x1bf))/0x3*(parseInt(t(0x1dc))/0x4)+parseInt(t(0x1e9))/0x5*(-parseInt(t(0x1ae))/0x6)+-parseInt(t(0x1ee))/0x7*(parseInt(t(0x1bd))/0x8)+-parseInt(t(0x1f6))/0x9*(-parseInt(t(0x1c7))/0xa)+-parseInt(t(0x1ea))/0xb*(parseInt(t(0x1f8))/0xc)+parseInt(t(0x1df))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a34c,0x1a68f));const a34b=(function(){let a=!![];return function(b,c){const d=a?function(){const u=a34d;if(c){const e=c[u(0x1d4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a34a=a34b(this,function(){const v=a34d;return a34a['toString']()[v(0x1ac)]('(((.+)+)+)+$')[v(0x1c3)]()[v(0x1ad)](a34a)['search']('(((.+)+)+)+$');});a34a();import a34e from'blessed';import{capitalCase}from'change-case';import a34f from'./game.js';import{RoomType}from'./types.js';function a34c(){const E=['log','line','----->>>>>>\x20Initializing\x20Game','unequip','focus','stringify','\x20(Locked)','checkIfLocked','\x20Inventory\x20','getValue','exits','cyan','75%','1296QbTUbp','rightHand','104541ZYBjAw','box','{/yellow-fg}','screen','toString','feet','name','currentLocation','60KAnOoQ','Left\x20Hand:\x20','None','70%','legs','enter','checkIfLockable','12yheqoV','Your\x20items\x20will\x20be\x20listed\x20here...','setContent','25%','append','\x20Equipment\x20','apply','key','getInstance','{/red-fg}','textbox','escape','{red-fg}===Error:\x20','yellow','12irsiMs','getOtherSide','\x0aThere\x20are\x20no\x20exits\x20here.','5539001YcqmoJ','lock','handleInput','\x20Exits\x20','render','size','\x20(Unlocked)','setRawMode','white','<<<<<<<<---------\x20Terminating\x20game','230sRKXyh','11TuFaki','Torso:\x20','join','clearValue','8176vlYCOk','clear','Feet:\x20','Gloves:\x20','player','9589YTyqgc','write','Legs:\x20','271179IPbtDW','90%','2239212YzKwhv','Side\x20Quest\x20Adventure\x20Game','leftHand','equipment','gloves','stdin','getAllItems','head','forEach','logFilePath','split','\x20Game\x20Log\x20','arms','inventory','45%','Right\x20Hand:\x20','search','constructor','22158RUaMeo','pushLine'];a34c=function(){return E;};return a34c();}import{Door}from'./door.js';import{eventBus}from'./utilities/eventBus.js';function a34d(a,b){const c=a34c();return a34d=function(d,e){d=d-0x1a1;let f=c[d];return f;},a34d(a,b);}import a34g from'./utilities/logger.js';export async function main(a,b,c){const w=a34d,d=a34g[w(0x1d6)](c[w(0x1a5)]);process[w(0x1a1)][w(0x1e6)](!![]),process['stdin']['resume']();const e=a34e[w(0x1c2)]({'smartCSR':!![],'title':w(0x1f9)}),f=a34e[w(0x1c0)]({'top':'0%','left':w(0x1bc),'width':w(0x1d1),'height':w(0x1aa),'border':{'type':w(0x1b1)},'label':w(0x1b8),'content':w(0x1cf),'tags':!![],'scrollable':!![],'scrollbar':{'ch':'\x20','track':{'bg':w(0x1db)},'style':{'inverse':!![]}},'keys':!![],'mouse':!![]}),g=o=>{const x=w,p=o[x(0x1a2)]()['map'](q=>q[x(0x1c5)]);f['setContent'](p[x(0x1ec)]('\x0a')),e[x(0x1e3)]();};e[w(0x1d2)](f);const h=a34e[w(0x1c0)]({'top':w(0x1aa),'left':'75%','width':'25%','height':w(0x1d1),'border':{'type':w(0x1b1)},'label':w(0x1d3),'content':'Your\x20equipped\x20items\x20will\x20be\x20listed\x20here...','tags':!![],'scrollable':!![],'scrollbar':{'ch':'\x20','track':{'bg':w(0x1db)},'style':{'inverse':!![]}},'keys':!![],'mouse':!![]});e[w(0x1d2)](h);function i(o){const y=w;h[y(0x1d0)]('Head:\x20'+(o[y(0x1a3)]?o[y(0x1a3)][y(0x1c5)]:'None')+'\x0a'+(y(0x1eb)+(o['torso']?o['torso'][y(0x1c5)]:y(0x1c9))+'\x0a')+(y(0x1f5)+(o[y(0x1cb)]?o['legs']['name']:y(0x1c9))+'\x0a')+(y(0x1f0)+(o[y(0x1c4)]?o[y(0x1c4)][y(0x1c5)]:'None')+'\x0a')+('Arms:\x20'+(o[y(0x1a8)]?o[y(0x1a8)][y(0x1c5)]:y(0x1c9))+'\x0a')+(y(0x1f1)+(o[y(0x1fc)]?o['gloves']['name']:y(0x1c9))+'\x0a')+(y(0x1c8)+(o['leftHand']?o[y(0x1fa)][y(0x1c5)]:y(0x1c9))+'\x0a')+(y(0x1ab)+(o[y(0x1be)]?o[y(0x1be)][y(0x1c5)]:y(0x1c9))+'\x0a')),e[y(0x1e3)]();}const j=a34e[w(0x1c0)]({'top':w(0x1ca),'left':'75%','width':'25%','height':'22%','border':{'type':w(0x1b1)},'label':w(0x1e2),'content':'Available\x20exits\x20will\x20be\x20shown\x20here...','tags':!![],'scrollable':!![],'scrollbar':{'ch':'\x20','track':{'bg':'yellow'},'style':{'inverse':!![]}},'keys':!![],'mouse':!![]});e[w(0x1d2)](j);function k(o){const z=w;let p='';o[z(0x1ba)][z(0x1e4)]>0x0?o[z(0x1ba)][z(0x1a4)]((q,r)=>{const A=z;if(q instanceof Door){const s=q[A(0x1dd)](o);s['roomType']===RoomType['OUTSIDE']?p+=capitalCase(r)+':\x20'+s[A(0x1c5)]:p+=capitalCase(r)+':\x20'+q[A(0x1c5)];if(q[A(0x1b7)]())p+=A(0x1b6);else q[A(0x1cd)]()&&(p+=A(0x1e5));p+='\x0a';}else p+=capitalCase(r)+'\x0a';}):p+=z(0x1de),j['setContent'](p),e[z(0x1e3)]();}const l=a34e[w(0x1c0)]({'top':'0%','left':'0%','width':'75%','height':w(0x1f7),'border':{'type':'line'},'label':w(0x1a7),'scrollable':!![],'alwaysScroll':!![],'scrollbar':{'ch':'\x20','track':{'bg':w(0x1db)},'style':{'inverse':!![]}},'keys':!![],'mouse':!![],'tags':!![]});e[w(0x1d2)](l);const m=a34e[w(0x1d8)]({'bottom':0x0,'left':0x0,'width':'100%','height':'10%','tags':!![],'border':{'type':w(0x1b1)},'style':{'fg':w(0x1e7),'border':{'fg':w(0x1bb)}},'keys':!![],'mouse':!![],'inputOnFocus':!![]});e[w(0x1d2)](m),e[w(0x1d5)]([w(0x1d9),'C-c'],()=>process['exit'](0x0)),m[w(0x1b4)](),e[w(0x1e3)]();c['debug']&&(eventBus['on']('logError',o=>{const B=w;l[B(0x1af)](B(0x1da)+o+B(0x1d7)),l['scroll'](0x1),m[B(0x1ed)](),d[B(0x1f4)](JSON[B(0x1b5)](o));}),eventBus['on'](w(0x1b0),o=>{const C=w;l[C(0x1af)]('{yellow-fg}===Log:\x20'+o+C(0x1c1)),l['scroll'](0x1),m[C(0x1ed)](),d[C(0x1f4)](JSON[C(0x1b5)](o));}));d['write'](w(0x1b2));const n=a34f[w(0x1d6)](a,b);l[w(0x1d0)](n['getWelcomeMessage']()),i(n[w(0x1f2)]['equipment']),g(n[w(0x1f2)]['inventory']),k(n[w(0x1f2)][w(0x1c6)]),m[w(0x1d5)]([w(0x1cc)],async()=>{const D=w,o=m[D(0x1b9)](),p=n[D(0x1e1)](o);(o[D(0x1a6)]('\x20')[0x0]==='take'||'equip'||D(0x1b3))&&(g(n[D(0x1f2)][D(0x1a9)]),i(n[D(0x1f2)][D(0x1fb)])),(o[D(0x1a6)]('\x20')[0x0]==='go'||D(0x1e0)||'unlock')&&k(n[D(0x1f2)]['currentLocation']),o[D(0x1a6)]('\x20')[0x0]===D(0x1ef)&&l[D(0x1d0)](''),p===null&&(l[D(0x1af)]('Thanks\x20for\x20playing!'),e[D(0x1e3)](),d[D(0x1f4)](D(0x1e8)),process['exit'](0x0)),l[D(0x1af)](p),l['scroll'](0x1),m[D(0x1ed)](),m[D(0x1b4)](),e[D(0x1e3)]();});}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(a,b){const f=a35d,c=a();while(!![]){try{const d=-parseInt(f(0x190))/0x1*(parseInt(f(0x192))/0x2)+parseInt(f(0x199))/0x3+parseInt(f(0x194))/0x4+parseInt(f(0x19b))/0x5*(-parseInt(f(0x19a))/0x6)+parseInt(f(0x191))/0x7*(parseInt(f(0x197))/0x8)+parseInt(f(0x19c))/0x9+parseInt(f(0x193))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a35c,0x26768));const a35b=(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;};}()),a35a=a35b(this,function(){const g=a35d;return a35a[g(0x196)]()[g(0x198)](g(0x195))[g(0x196)]()['constructor'](a35a)[g(0x198)](g(0x195));});function a35d(a,b){const c=a35c();return a35d=function(d,e){d=d-0x190;let f=c[d];return f;},a35d(a,b);}a35a();import{EventEmitter}from'events';export const eventBus=new EventEmitter();function a35c(){const h=['70459FtzOvq','7LPVTsv','8rMHDFJ','1005890qcuHAY','883828rdxttp','(((.+)+)+)+$','toString','80iASUVX','search','752004YOnlJH','18WmVTJD','414655rczwoU','1043541PIuFSs'];a35c=function(){return h;};return a35c();}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a36k=a36d;(function(a,b){const h=a36d,c=a();while(!![]){try{const d=-parseInt(h(0x18f))/0x1*(parseInt(h(0x186))/0x2)+-parseInt(h(0x192))/0x3*(-parseInt(h(0x188))/0x4)+-parseInt(h(0x191))/0x5*(parseInt(h(0x189))/0x6)+parseInt(h(0x18a))/0x7*(-parseInt(h(0x17c))/0x8)+parseInt(h(0x18d))/0x9*(parseInt(h(0x18e))/0xa)+-parseInt(h(0x17e))/0xb+-parseInt(h(0x190))/0xc*(-parseInt(h(0x193))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x35cd4));const a36b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a36d;if(c){const e=c[i(0x18b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a36a=a36b(this,function(){const j=a36d;return a36a['toString']()[j(0x182)](j(0x17f))[j(0x197)]()[j(0x18c)](a36a)[j(0x182)]('(((.+)+)+)+$');});a36a();import a36e from'fs';import a36f from'os';function a36c(){const o=['64253uwoEoD','apply','constructor','276417MULAaV','10DomUVQ','1ltIIpO','7802472VaLVaK','130tEpMrz','25419oPxHkJ','13ZkxwUK','appendFileSync','homedir','error','toString','88lRurCd','[ERROR]\x20[','2330240KrdxqW','(((.+)+)+)+$','[INFO]\x20[','filePath','search','getInstance','.maka','toISOString','5614lsYKHb','instance','44iqBJYB','54954ddHqJc'];a36c=function(){return o;};return a36c();}import a36g from'path';const homeDir=a36f[a36k(0x195)]();class Logger{static [a36k(0x187)];['filePath'];constructor(a){this['filePath']=a;}static[a36k(0x183)](a=a36g['join'](homeDir,a36k(0x184),'side-quest.log')){const l=a36k;return!Logger[l(0x187)]&&(Logger[l(0x187)]=new Logger(a)),Logger[l(0x187)];}['write'](a){const m=a36k,b=new Date()[m(0x185)]();a36e[m(0x194)](this[m(0x181)],m(0x180)+b+']\x20'+a+'\x0a');}[a36k(0x196)](a){const n=a36k,b=new Date()[n(0x185)]();a36e[n(0x194)](this[n(0x181)],n(0x17d)+b+']\x20'+a+'\x0a');}}function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x17c;let f=c[d];return f;},a36d(a,b);}export default Logger;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a37k=a37d;(function(a,b){const h=a37d,c=a();while(!![]){try{const d=-parseInt(h(0xce))/0x1*(parseInt(h(0xc5))/0x2)+-parseInt(h(0xd0))/0x3+parseInt(h(0xd6))/0x4*(-parseInt(h(0xd4))/0x5)+-parseInt(h(0xd7))/0x6+parseInt(h(0xd1))/0x7+parseInt(h(0xcb))/0x8+-parseInt(h(0xd8))/0x9*(-parseInt(h(0xcc))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x936f5));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a37d;if(c){const e=c[i(0xd5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const j=a37d;return a37a[j(0xc7)]()[j(0xc0)]('(((.+)+)+)+$')[j(0xc7)]()[j(0xca)](a37a)[j(0xc0)](j(0xc2));});function a37c(){const m=['player','constructor','261792VNUMBP','18287110FWXCJQ','Just\x20a\x20little\x20pet\x20project...\x20I\x20really\x20liked\x20the\x20Dunnet\x20game\x20that\x0a\x20\x20came\x20with\x20MacOS\x20but\x20has\x20been\x20removed.\x20\x20Just\x20messing\x20around\x20and\x20building\x0a\x20\x20out\x20a\x20similar\x20thing...','647wOiutp','stdout','2578575wbpjJM','6888567GIcJLA','fsi','Commoner','92995mLNLmk','apply','164nmkcoM','72036bxYtMp','9nXpdnd','Play\x20a\x20little\x20side-quest','search','create','(((.+)+)+)+$','maka\x20play:side-quest','join','1878Roecwk','write','toString','debug'];a37c=function(){return m;};return a37c();}a37a();import a37e from'path';import a37f from'./play.command.js';import{Command}from'../../command.js';import{main}from'./sideQuest/ui.js';import a37g from'./sideQuest/rooms.js';import{Player}from'./sideQuest/player.js';const playerInventory=[],playerEquipment={'head':null,'torso':null,'legs':null,'feet':null,'arms':null,'gloves':null,'leftHand':null,'rightHand':null};function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0xc0;let f=c[d];return f;},a37d(a,b);}Command[a37k(0xc1)]({'name':'side-quest','usage':a37k(0xc3),'shortDesc':a37k(0xd9),'aliases':['sq'],'description':a37k(0xcd),'validOpts':[a37k(0xc8),a37k(0xc9)]},async function(a,b){const l=a37k,c=this[l(0xd2)]['getGlobalMakaDir'](),d=a37e[l(0xc4)](c,'side-quest.log'),e=b[l(0xc9)]?b[l(0xc9)]:l(0xd3),f=new Player(e);process[l(0xcf)][l(0xc6)]('\x1bc');const g={...b,'logFilePath':d};main(f,a37g,g);},a37f);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a38c(){var k=['4197618KpigMY','snake','search','9RXUXyi','1465107ERCdhy','8EMcQTt','(((.+)+)+)+$','npx\x20command-line-snake','27162hsGBPo','43481660eioqKh','toString','apply','create','835oTNoJR','1358108XdcvFa','2568700akAvHJ','153702bgEkPe'];a38c=function(){return k;};return a38c();}var a38i=a38d;(function(a,b){var f=a38d,c=a();while(!![]){try{var d=-parseInt(f(0xa1))/0x1+-parseInt(f(0xa3))/0x2*(parseInt(f(0x96))/0x3)+-parseInt(f(0xa2))/0x4+parseInt(f(0xa0))/0x5*(-parseInt(f(0x9b))/0x6)+-parseInt(f(0x97))/0x7+-parseInt(f(0x98))/0x8*(parseInt(f(0xa4))/0x9)+parseInt(f(0x9c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0xa7632));var a38b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a38d;if(c){var e=c[g(0x9e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){var h=a38d;return a38a[h(0x9d)]()[h(0xa6)](h(0x99))[h(0x9d)]()['constructor'](a38a)[h(0xa6)](h(0x99));});a38a();import a38e from'./play.command.js';import{Command}from'../../command.js';import{execSync}from'child_process';function a38d(a,b){var c=a38c();return a38d=function(d,e){d=d-0x96;var f=c[d];return f;},a38d(a,b);}Command[a38i(0x9f)]({'name':a38i(0xa5),'usage':'maka\x20game:snake','shortDesc':'Play\x20Snake:\x20https://www.npmjs.com/package/command-line-snake','validOpts':[]},async function(){var j=a38i;execSync(j(0x9a),{'stdio':'inherit'});},a38e);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a39i=a39d;function a39d(a,b){var c=a39c();return a39d=function(d,e){d=d-0x15f;var f=c[d];return f;},a39d(a,b);}(function(a,b){var f=a39d,c=a();while(!![]){try{var d=-parseInt(f(0x168))/0x1+parseInt(f(0x169))/0x2+-parseInt(f(0x16c))/0x3*(-parseInt(f(0x165))/0x4)+-parseInt(f(0x16b))/0x5+parseInt(f(0x16a))/0x6*(parseInt(f(0x16f))/0x7)+parseInt(f(0x16d))/0x8+-parseInt(f(0x170))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x5ce34));var a39b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a39d;if(c){var e=c[g(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){var h=a39d;return a39a['toString']()[h(0x171)](h(0x160))[h(0x16e)]()[h(0x167)](a39a)[h(0x171)](h(0x160));});a39a();import a39e from'./play.command.js';import{Command}from'../../command.js';function a39c(){var k=['571752dTmSex','search','create','(((.+)+)+)+$','maka\x20game:tetris','Play\x20Tetris:\x20https://github.com/robertrypula/simple-tetris','npx\x20simple-tetris','tetris','472ErqydB','apply','constructor','122774bknvMX','606746HDXYBa','6IPdTPY','3280670baVwUU','5262owBJYf','138528jeqQtl','toString','4866701ldtuPX'];a39c=function(){return k;};return a39c();}import{execSync}from'child_process';Command[a39i(0x15f)]({'name':a39i(0x164),'usage':a39i(0x161),'shortDesc':a39i(0x162),'validOpts':[]},async function(){var j=a39i;execSync(j(0x163),{'stdio':'inherit'});},a39e);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a40h=a40d;(function(a,b){const f=a40d,c=a();while(!![]){try{const d=parseInt(f(0x193))/0x1*(parseInt(f(0x19b))/0x2)+parseInt(f(0x1a2))/0x3*(-parseInt(f(0x1a3))/0x4)+parseInt(f(0x1a4))/0x5*(parseInt(f(0x191))/0x6)+parseInt(f(0x18b))/0x7*(-parseInt(f(0x198))/0x8)+parseInt(f(0x190))/0x9*(parseInt(f(0x18c))/0xa)+parseInt(f(0x19a))/0xb+-parseInt(f(0x186))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0xe0a31));const a40b=(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;};}()),a40a=a40b(this,function(){const g=a40d;return a40a[g(0x192)]()[g(0x18d)](g(0x18e))[g(0x192)]()[g(0x1a6)](a40a)['search'](g(0x18e));});a40a();import{Command}from'../command.js';function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0x186;let f=c[d];return f;},a40d(a,b);}function a40c(){const j=['12855227WLiSoS','2638414nULbqN','Could\x20not\x20find\x20generator','maka\x20g:api\x20trucks','Generators:','maka\x20g:route\x20todos/edit','help','Scaffold\x20various\x20parts\x20of\x20your\x20application','22926rVTvIh','340jhJEae','12630NxExJj','slice','constructor','17107452LigcIE','maka\x20g:template\x20todos/todo_item','\x0a\x20\x20For\x20a\x20list\x20of\x20generators,\x20run\x20\x22maka\x20generate\x20--help\x22\x20or\x20\x22maka\x20g\x20--help\x22\x0a\x20\x20','maka\x20g:package\x20package:name','dir','28rDoPty','7620WqWJMk','search','(((.+)+)+)+$','notice','10539WkpLkM','3306MdJoDX','toString','1FsxfZe','generate','maka\x20{generate,\x20g}:<generator>\x20<name>','invoke','create','3553376eOcpwr','maka\x20g:dbc\x20geoserver\x20--type=pgsql'];a40c=function(){return j;};return a40c();}import{Log}from'../tools/log/log.class.js';import a40e from'../generators/maka.gen.js';import{UsageError}from'../error.js';Command[a40h(0x197)]({'name':a40h(0x194),'aliases':['g'],'usage':a40h(0x195),'validOpts':[a40h(0x18a),'where',a40h(0x1a0)],'mustBeInMakaProject':!![],'isRoot':!![],'shortDesc':a40h(0x1a1),'description':a40h(0x188),'examples':['maka\x20generate:scaffold\x20todos','maka\x20g:scaffold\x20todos',a40h(0x187),a40h(0x189),a40h(0x19f),a40h(0x19d),a40h(0x199)]},async function(a,b){const i=a40h,c=a[0x0],d=a40e['findGenerator'](c);if(!d){b[i(0x1a0)]?(Log[i(0x18f)](i(0x19e)),a40e['listGenerators']()):Log['error'](i(0x19c));throw new UsageError();}await d[i(0x196)](a[i(0x1a5)](0x1),b);});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(a,b){var f=a41d,c=a();while(!![]){try{var d=-parseInt(f(0xc3))/0x1*(-parseInt(f(0xc0))/0x2)+parseInt(f(0xbc))/0x3*(-parseInt(f(0xc1))/0x4)+-parseInt(f(0xbd))/0x5*(-parseInt(f(0xb4))/0x6)+-parseInt(f(0xba))/0x7+parseInt(f(0xc2))/0x8*(parseInt(f(0xb7))/0x9)+-parseInt(f(0xc4))/0xa+-parseInt(f(0xb5))/0xb*(-parseInt(f(0xbb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x4ad28));function a41d(a,b){var c=a41c();return a41d=function(d,e){d=d-0xb4;var f=c[d];return f;},a41d(a,b);}var a41b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a41d;if(c){var e=c[g(0xbe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){var h=a41d;return a41a[h(0xb8)]()['search']('(((.+)+)+)+$')['toString']()[h(0xbf)](a41a)[h(0xb6)](h(0xb9));});a41a();import'./get.command.js';import'./global.sub.cmd.js';function a41c(){var i=['12dfBgJl','11922lGSBUh','10ZAqxxf','apply','constructor','2mfjftb','244nbjkrF','72kHCjPQ','313387iLtLCq','4321920UcirEe','1775802jaEDeL','1116181RAEnmq','search','118791YfOTRO','toString','(((.+)+)+)+$','1011535KoIwhW'];a41c=function(){return i;};return a41c();}import'./local.sub.cmd.js';import'./whoami.sub.cmd.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a42i=a42d;(function(a,b){const f=a42d,c=a();while(!![]){try{const d=parseInt(f(0xf5))/0x1*(parseInt(f(0xfd))/0x2)+parseInt(f(0xfb))/0x3*(parseInt(f(0xff))/0x4)+parseInt(f(0xf3))/0x5*(parseInt(f(0xfc))/0x6)+-parseInt(f(0xfa))/0x7*(-parseInt(f(0x101))/0x8)+-parseInt(f(0xfe))/0x9+-parseInt(f(0xf4))/0xa+parseInt(f(0x102))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0xc47bf));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a42d;if(c){const e=c[g(0x100)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const h=a42d;return a42a[h(0xf7)]()[h(0xf6)]('(((.+)+)+)+$')[h(0xf7)]()['constructor'](a42a)[h(0xf6)]('(((.+)+)+)+$');});a42a();import{Command}from'../../command.js';function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0xf3;let f=c[d];return f;},a42d(a,b);}import{Log}from'../../tools/log/log.class.js';import{UsageErrorWithSubs}from'../../error.js';function a42c(){const k=['apply','8razNsX','4025241HQgbOt','590oSLrHe','4460410pHtPkd','998CLtwap','search','toString','create','error','1899653BWOtwY','12amOvgr','34446LNqaPv','1608YaUfOL','8754120rCCkXn','106380CJmDRC'];a42c=function(){return k;};return a42c();}const GetCommand=Command[a42i(0xf8)]({'name':'get','usage':'maka\x20get:<sub-command>','minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Get\x20various\x20Maka\x20variables\x20and\x20configurations','validOpts':[]},async function(a,b){const j=a42i,c=a[0x0],d=this['findSubCommand'](c);if(d)this['runSubCommand'](c,a,b);else{Log[j(0xf9)]('Sub-Command\x20not\x20found');throw new UsageErrorWithSubs();}});export default GetCommand;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a43i=a43d;(function(a,b){const f=a43d,c=a();while(!![]){try{const d=-parseInt(f(0x1a2))/0x1+parseInt(f(0x1aa))/0x2+parseInt(f(0x1a9))/0x3+-parseInt(f(0x1b2))/0x4+parseInt(f(0x1ab))/0x5+-parseInt(f(0x1ad))/0x6*(parseInt(f(0x1ac))/0x7)+-parseInt(f(0x1a8))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x5462e));const a43b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a43d;if(c){const e=c[g(0x1a7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){const h=a43d;return a43a[h(0x1b1)]()[h(0x1a4)](h(0x1a3))['toString']()[h(0x1a0)](a43a)[h(0x1a4)]('(((.+)+)+)+$');});a43a();import a43e from'./get.command.js';function a43c(){const k=['search','fsi','error','apply','5602256CbmMCG','1092669BQKojl','1159168SwvDJn','3305210kjwRdM','44674wMCVie','396RwdpKs','log','create','getGlobalConfig','toString','102512vnnxnO','constructor','maka\x20get:global-config','112081WpIJPN','(((.+)+)+)+$'];a43c=function(){return k;};return a43c();}function a43d(a,b){const c=a43c();return a43d=function(d,e){d=d-0x1a0;let f=c[d];return f;},a43d(a,b);}import{Command}from'../../command.js';Command[a43i(0x1af)]({'name':'global-config','usage':a43i(0x1a1),'aliases':['gc'],'shortDesc':'Get\x20maka\x20configurations\x20in\x20the\x20global\x20~/.maka/global-config.json\x20file','validOpts':[],'minArgLength':0x1,'maxArgLength':0x2},async function(){const j=a43i;try{const a=await this[j(0x1a5)][j(0x1b0)]();console[j(0x1ae)](a);}catch(b){console[j(0x1a6)](b),process['exit'](0x0);}},a43e);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a44i=a44d;(function(a,b){const f=a44d,c=a();while(!![]){try{const d=-parseInt(f(0xd1))/0x1*(parseInt(f(0xc0))/0x2)+parseInt(f(0xd2))/0x3*(parseInt(f(0xd0))/0x4)+-parseInt(f(0xc8))/0x5*(parseInt(f(0xc2))/0x6)+parseInt(f(0xcb))/0x7+-parseInt(f(0xc9))/0x8+parseInt(f(0xc7))/0x9+-parseInt(f(0xd3))/0xa*(-parseInt(f(0xce))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0x92bdc));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a44d;if(c){const e=c[g(0xc4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const h=a44d;return a44a[h(0xc3)]()[h(0xca)]('(((.+)+)+)+$')[h(0xc3)]()[h(0xcc)](a44a)[h(0xca)](h(0xc1));});function a44c(){const k=['6952976nIzDTe','search','295743RmleOP','constructor','log','154bWCcZg','Get\x20maka\x20configurations\x20in\x20the\x20local\x20.maka/config.json\x20file','1325708qEYJwt','484604KZRnEM','9JKDCVq','617210JVjLic','local-config','maka\x20get:local-config','fsi','4YVhErN','(((.+)+)+)+$','1032ZHcpsi','toString','apply','getProjectConfig','create','8771454bAXIRt','12670sJnCDV'];a44c=function(){return k;};return a44c();}a44a();function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0xbe;let f=c[d];return f;},a44d(a,b);}import a44e from'./get.command.js';import{Command}from'../../command.js';Command[a44i(0xc6)]({'name':a44i(0xd4),'usage':a44i(0xbe),'mustBeInMakaProject':!![],'aliases':['lc'],'shortDesc':a44i(0xcf),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2},async function(){const j=a44i,a=await this[j(0xbf)][j(0xc5)]();console[j(0xcd)](a);},a44e);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a45j=a45d;(function(a,b){const g=a45d,c=a();while(!![]){try{const d=-parseInt(g(0x1c2))/0x1*(parseInt(g(0x1bd))/0x2)+-parseInt(g(0x1b3))/0x3*(-parseInt(g(0x1b4))/0x4)+-parseInt(g(0x1ad))/0x5*(-parseInt(g(0x1b1))/0x6)+-parseInt(g(0x1b2))/0x7*(parseInt(g(0x1b8))/0x8)+parseInt(g(0x1a9))/0x9+-parseInt(g(0x1c3))/0xa+parseInt(g(0x1ac))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x9ee9a));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a45d;if(c){const e=c[h(0x1af)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const i=a45d;return a45a[i(0x1b6)]()[i(0x1ab)](i(0x1c1))['toString']()[i(0x1bf)](a45a)[i(0x1ab)]('(((.+)+)+)+$');});a45a();import a45e from'./get.command.js';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x1a9;let f=c[d];return f;},a45d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a45c(){const l=['exit','join','error','4778WkbVJL','whoami','constructor','notice','(((.+)+)+)+$','293bimRoq','12904120fWqgud','User\x20Email:\x20\x20\x20\x20\x20\x20\x20\x20\x20','hash','authToken','fsi','Licenses:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','10835910pAmrix','User\x20Access\x20Token:\x20\x20','search','4670600VxFcVa','5snfVen','create','apply','user','4092534iTUgtV','49IfHcsd','2980443qvSNOG','4OQEyld','roles','toString','If\x20logged\x20in,\x20get\x20the\x20current\x20user\x27s\x20information','757560HiErBj','token'];a45c=function(){return l;};return a45c();}import a45f from'jsonwebtoken';Command[a45j(0x1ae)]({'name':a45j(0x1be),'usage':'maka\x20get:whoami','shortDesc':a45j(0x1b7),'validOpts':[],'minArgLength':0x1,'maxArgLength':0x2},async function(){const k=a45j;try{const a=await this[k(0x1c7)]['getGlobalConfig']();if(a[k(0x1c5)]){const b=a45f['decode'](a[k(0x1c5)]);Log[k(0x1c0)](k(0x1c4)+b?.[k(0x1b0)]),Log['notice']('User\x20ID:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a[k(0x1b9)]?.['userId']),Log[k(0x1c0)](k(0x1aa)+a[k(0x1b9)]?.[k(0x1c6)]),Log[k(0x1c0)](k(0x1c8)+b?.[k(0x1b5)][k(0x1bb)](',\x20'));}}catch(c){console[k(0x1bc)](c),process[k(0x1ba)](0x0);}},a45e);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a46h=a46d;function a46c(){var i=['30178512YvuFJb','help','16VJTHZs','123455UPrnQM','730Qcrnuy','42242tSZpue','2180358QdNYhY','(((.+)+)+)+$','102058mcWtDv','Try,\x20maka\x20--help','5981248gLQDyc','Deprecated:\x20use\x20--help\x20instead','1233knDxPK','toString','6WPQZsI','8888MKrcjt','constructor','32lIXkNr','search','create'];a46c=function(){return i;};return a46c();}(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(0x1a5))/0x1*(-parseInt(f(0x1a8))/0x2)+parseInt(f(0x1af))/0x3*(parseInt(f(0x1b2))/0x4)+parseInt(f(0x1a6))/0x5*(-parseInt(f(0x1b1))/0x6)+-parseInt(f(0x1ad))/0x7+-parseInt(f(0x1a0))/0x8*(parseInt(f(0x1a9))/0x9)+-parseInt(f(0x1a7))/0xa*(parseInt(f(0x1ab))/0xb)+parseInt(f(0x1a3))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0x89dcd));var a46b=(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;};}()),a46a=a46b(this,function(){var g=a46d;return a46a[g(0x1b0)]()[g(0x1a1)]('(((.+)+)+)+$')[g(0x1b0)]()[g(0x1b3)](a46a)['search'](g(0x1aa));});a46a();import{Command}from'../command.js';function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x1a0;var f=c[d];return f;},a46d(a,b);}import{UsageError}from'../error.js';Command[a46h(0x1a2)]({'name':a46h(0x1a4),'description':a46h(0x1ac),'aliases':['h'],'validOpts':[],'shortDesc':a46h(0x1ae)},async function(){throw new UsageError();});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a47l=a47d;(function(a,b){const j=a47d,c=a();while(!![]){try{const d=-parseInt(j(0x158))/0x1*(-parseInt(j(0x162))/0x2)+-parseInt(j(0x167))/0x3*(parseInt(j(0x161))/0x4)+-parseInt(j(0x15e))/0x5*(parseInt(j(0x156))/0x6)+parseInt(j(0x150))/0x7*(parseInt(j(0x14e))/0x8)+parseInt(j(0x157))/0x9+parseInt(j(0x14c))/0xa*(parseInt(j(0x169))/0xb)+-parseInt(j(0x159))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x672dd));function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x14b;let f=c[d];return f;},a47d(a,b);}const a47b=(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;};}()),a47a=a47b(this,function(){const k=a47d;return a47a['toString']()[k(0x16a)](k(0x14b))[k(0x14d)]()[k(0x16d)](a47a)[k(0x16a)](k(0x14b));});a47a();import a47e from'path';import a47f from'fs';import{execSync}from'child_process';import{Command}from'../command.js';function a47c(){const n=['5107995xeseKZ','42889LmEGWi','5387292LwaQJp','\x0a[+]\x20Documentation\x20written\x20to\x20','Use\x20the\x20popular\x20JSDoc\x20documentation\x20generator','closure','app/packages','5MVCDvW','pathFromProject','\x20-c\x20','3224BEpafq','4ToLTvp','maka\x20jsdoc\x20--init','app/public','fsi','isFile','972zQaLpw','logWithSpinner','6456714DjOoms','search','join','[-]\x20You\x20may\x20need\x20to\x20install\x20jsdoc:\x20\x22npm\x20i\x20-g\x20jsdoc\x22','constructor','\x20-d\x20','jsdoc-config.json','sep','docs','(((.+)+)+)+$','10FdrEtn','toString','16gsPXhi','maka\x20jsdoc','2075486YjKKjn','jsdoc','.+\x5c.(j|t)s(doc|x)?$','stop','stringify','plugins/markdown','4203582DoeOeZ'];a47c=function(){return n;};return a47c();}Command['create']({'name':a47l(0x151),'usage':a47l(0x14f),'mustBeInMakaProject':!![],'shortDesc':a47l(0x15b),'examples':[a47l(0x163),'maka\x20jsdoc'],'validOpts':[]},function(){const m=a47l,a=a47e[m(0x16b)](this[m(0x165)][m(0x15f)]({}),m(0x171)+a47e['sep']),b=a47e[m(0x16b)](this[m(0x165)][m(0x15f)]({}),'config',m(0x16f)),c=this[m(0x165)][m(0x15f)]({}),d=m(0x151);if(!this[m(0x166)](b)){const g={'plugins':[m(0x155)],'tags':{'allowUnknownTags':!![],'dictionaries':[m(0x151),m(0x15c)]},'source':{'includePattern':m(0x152),'excludePattern':'(.+\x5c.app-tests.js)|(^|\x5c/|\x5c\x5c)_','exclude':[m(0x15d),'app/node_modules',m(0x164),'app/private']},'templates':{'cleverLinks':![],'monospaceLinks':![]},'opts':{'recursive':!![],'encoding':'utf-8'}};a47f['writeFileSync'](b,JSON[m(0x154)](g,null,0x4));}const f=this[m(0x168)]('Running\x20'+d);try{const h=d+m(0x160)+b+'\x20-r\x20app'+a47e[m(0x170)]+m(0x16e)+a;execSync(h,{'cwd':c,'stdio':'inherit'}),this['logNotice'](m(0x15a)+a);}catch(i){this['logError'](i),this['logError'](m(0x16c));}finally{f[m(0x153)]();}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a48r=a48d;function a48c(){const t=['maka\x20lint','477SQhzmI','Use\x20ESLint\x20to\x20lint\x20the\x20imports\x20directory','lintFiles','fsi','imports','lint','constructor','175641xpwWne','8sgSiVP','template','installNpmPackage','Lint\x20results\x20for\x20','eslint','Run\x20\x22maka\x20lint\x20--fix\x22\x20to\x20auto\x20fix','53585dNCmmu','toString','2EPmBoe','maka\x20lint\x20--fix','loadFormatter','eslint-plugin-css','join','length','/imports','push','.eslintrc.json','11980PAIVDM','error','All\x20good!\x20:)','checkNpmPackage','fix','990218CEJoBs','isFile','25358952HlVLGC','72yKZbMH','create','2180472iMeEmi','outputFixes','notice','5UUYbbY','2375450qlkuXm','eslint-plugin-react'];a48c=function(){return t;};return a48c();}(function(a,b){const p=a48d,c=a();while(!![]){try{const d=-parseInt(p(0x168))/0x1*(-parseInt(p(0x176))/0x2)+-parseInt(p(0x15f))/0x3*(-parseInt(p(0x179))/0x4)+parseInt(p(0x154))/0x5*(parseInt(p(0x17b))/0x6)+parseInt(p(0x166))/0x7*(parseInt(p(0x160))/0x8)+parseInt(p(0x158))/0x9*(parseInt(p(0x171))/0xa)+parseInt(p(0x155))/0xb+-parseInt(p(0x178))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x8ded1));const a48b=(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;};}()),a48a=a48b(this,function(){const q=a48d;return a48a[q(0x167)]()['search']('(((.+)+)+)+$')[q(0x167)]()[q(0x15e)](a48a)['search']('(((.+)+)+)+$');});a48a();import a48e from'path';function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x154;let f=c[d];return f;},a48d(a,b);}import{ESLint}from'eslint';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';Command[a48r(0x17a)]({'name':a48r(0x15d),'usage':a48r(0x157),'maxArgLength':0x1,'validOpts':[a48r(0x175)],'mustBeInMakaProject':!![],'shortDesc':a48r(0x159),'description':'\x0a\x20\x20Lint\x20the\x20\x22./app/imports\x22\x20directory.\x0a\x0a\x20\x20This\x20command\x20will\x20install\x20and\x20conigure\x20ESLint\x20if\x20not\x20already\x20setup.\x0a\x0a\x20\x20You\x20can\x20find\x20the\x20eslint\x20config\x20at\x20\x22./app/.eslintrc.json\x22\x0a\x20\x20','examples':[a48r(0x169)]},async function(a,b){const s=a48r;try{const c=this[s(0x15b)]['findAppDirectory'](),d=this[s(0x15b)]['checkNpmPackage'](s(0x164)),f=this[s(0x15b)][s(0x174)](s(0x156)),g=this[s(0x15b)][s(0x174)](s(0x16b)),h=[];!d&&h[s(0x16f)](s(0x164));!f&&h[s(0x16f)](s(0x156));!g&&h[s(0x16f)](s(0x16b));h[s(0x16d)]>0x0&&await this[s(0x15b)][s(0x162)](h[s(0x16c)]('\x20'),{'dev':!![]});const i=this[s(0x15b)][s(0x177)](a48e[s(0x16c)](c,s(0x170)));if(!i){const n={'noRename':!![]};await this[s(0x15b)][s(0x161)]({'srcPath':'eslint/eslintrc.json','destPath':a48e[s(0x16c)](c,s(0x170)),'framework':'service','context':n});}const j=new ESLint(),k=await j[s(0x15a)]([a48e[s(0x16c)](c,s(0x15c),'**')]),l=await j[s(0x16a)]('stylish'),m=l['format'](k);m[s(0x16d)]>0x0?Log['bright'](m):Log['success'](s(0x173)),Log['notice'](s(0x163)+c+s(0x16e)),b[s(0x175)]?await ESLint[s(0x17c)](k):Log[s(0x17d)](s(0x165));}catch(o){console[s(0x172)](o);}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a49z=a49d;(function(a,b){const w=a49d,c=a();while(!![]){try{const d=parseInt(w(0x1ac))/0x1*(-parseInt(w(0x195))/0x2)+parseInt(w(0x19a))/0x3+parseInt(w(0x18a))/0x4*(parseInt(w(0x1a0))/0x5)+parseInt(w(0x196))/0x6*(parseInt(w(0x1b4))/0x7)+-parseInt(w(0x1b3))/0x8+parseInt(w(0x18b))/0x9*(-parseInt(w(0x192))/0xa)+parseInt(w(0x19d))/0xb*(-parseInt(w(0x1b2))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xea150));const a49b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a49d;if(c){const e=c[x(0x1aa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){const y=a49d;return a49a[y(0x198)]()['search'](y(0x18f))[y(0x198)]()['constructor'](a49a)[y(0x1b6)](y(0x18f));});a49a();function a49c(){const B=['sha256','\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli','568084EgRVTa','12GzErKh','isFile','toString','Retrieves\x20login\x20information\x20from\x20www.maka-cli.com,\x20and\x20stores\x20a\x20hash\x20in\x20~/.maka','2174193JWPfwD','create','password','11ZhslFu','assign','maka\x20login','500995Zytnos','cert','toHex','exit','Email:','https://','parse','header','cacert','help','apply','setGlobalConfig','2wduXgP','Logging\x20into\x20https://','/api/v1/login','failure','Could\x20not\x20make\x20a\x20secure\x20connection.\x0a[-]\x20Please\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://','start','2390280AoHfDH','3868168SMGJqD','4489289gmKkGs','error','search','Logging\x20in','get','post','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','env','localhost','fsi','authToken','login','email','Preflight\x20Check','20GxvSFo','896355PpNRVi','www.maka-cli.com','Using\x20CA\x20Cert\x20','getGlobalConfig','(((.+)+)+)+$','notice','success','30PIEHuQ'];a49c=function(){return B;};return a49c();}import a49e from'node-forge';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a49d(a,b){const c=a49c();return a49d=function(d,e){d=d-0x189;let f=c[d];return f;},a49d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import{HTTPS}from'../tools/https/https.class.js';const hostname=process[a49z(0x1bb)]['MAKA_DEV']==='True'?a49z(0x1bc):a49z(0x18c);Command[a49z(0x19b)]({'name':a49z(0x1bf),'validOpts':['email','password',a49z(0x1a9),'cacert','debug'],'usage':'maka\x20login','maxArgLength':0x2,'disableAuthCheck':!![],'shortDesc':a49z(0x199),'examples':[a49z(0x19f),'maka\x20login\x20--email\x20<address>\x20--password\x20<password>']},async function(a,b){const A=a49z,c=Log['withSpinner']();try{let d='';b['cacert']&&(this[A(0x1bd)][A(0x197)](b['cacert'])?(d=b[A(0x1a8)],Log[A(0x190)](A(0x18d)+d)):Log[A(0x1b5)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+d));const f=await this[A(0x1bd)][A(0x18e)]();if(f[A(0x1a1)]){if(this[A(0x1bd)][A(0x197)](f[A(0x1a1)]))d=f['cert'];else{Log[A(0x1b5)]('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+d);return;}}Log[A(0x1a7)](A(0x1ad)+hostname);const g={'url':A(0x1a5)+hostname+'/api/v1/status'};b[A(0x1a8)]&&Object[A(0x19e)](g,{'cert':d});c[A(0x1b1)](A(0x189));const {statusCode:h}=await HTTPS[A(0x1b8)](g);if(h===0x198){c[A(0x1af)]();throw A(0x1ba);}if(h!==0xc8){c[A(0x1af)]();throw A(0x1a5)+hostname+A(0x194);}c[A(0x191)]();const i=b[A(0x1c0)]?b[A(0x1c0)]:await Actions['ask'](A(0x1a4)),j=b[A(0x19c)]?b['password']:await Actions['ask']('Password:\x20',!![]),k=a49e['md'][A(0x193)][A(0x19b)]();k['update'](j);const l=k['digest']()[A(0x1a2)](),m={'hostname':hostname,'path':A(0x1ae),'data':{'email':i,'password':l,'hashed':!![]}};b[A(0x1a8)]&&Object[A(0x19e)](m,{'cert':d});c['start'](A(0x1b7));const {data:n,statusCode:o}=await HTTPS['post'](m);if(o===0x198){c[A(0x1af)]('\x0a');throw A(0x1b0)+hostname;}const p=JSON[A(0x1a6)](n);if(p[A(0x1be)]){const q={'hostname':hostname,'path':'/api/v1/encodeJwt','headers':{'x-auth-token':p[A(0x1be)]},'data':{}};b[A(0x1a8)]&&Object[A(0x19e)](q,{'cert':d});const {data:r,statusCode:s}=await HTTPS[A(0x1b9)](q),{token:t}=JSON['parse'](r);if(s===0x198)throw A(0x1b0)+hostname;const u={'token':p,'hash':t};this[A(0x1bd)][A(0x1ab)](u);}else{c[A(0x1af)]();throw p;}c[A(0x191)]();}catch(v){c[A(0x1af)](),console['error'](v),process[A(0x1a3)](0x0);}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a50o=a50d;(function(a,b){const l=a50d,c=a();while(!![]){try{const d=parseInt(l(0x97))/0x1*(parseInt(l(0x88))/0x2)+-parseInt(l(0x92))/0x3*(-parseInt(l(0x9d))/0x4)+parseInt(l(0x83))/0x5+-parseInt(l(0x7b))/0x6+-parseInt(l(0x9b))/0x7*(parseInt(l(0x84))/0x8)+-parseInt(l(0x8e))/0x9+parseInt(l(0x8a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0xa0f25));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a50d;if(c){const e=c[m(0x75)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const n=a50d;return a50a['toString']()[n(0x8d)]('(((.+)+)+)+$')[n(0x7e)]()[n(0x79)](a50a)[n(0x8d)](n(0x82));});a50a();import{Command}from'../command.js';function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x6f;let f=c[d];return f;},a50d(a,b);}function a50c(){const q=['assign','maka\x20logout','(((.+)+)+)+$','1980335iNyBZP','88KmsKnO','failure','exit','Logging\x20out\x20of\x20https://','16vVAiAn','withSpinner','20391610PpPvbc','get','https://','search','8513730xEDJGF','post','start','token','22947ZjfuNy','env','Using\x20CA\x20Cert\x20','cacert','authToken','68979NaryFH','/api/v1/logoutAll','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','www.maka-cli.com','106687QEWiga','cert','44qludjB','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','Logs\x20out\x20of\x20all\x20user\x20sessions\x20(CLI\x20and\x20browser).','logout','/api/v1/status','header','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','apply','Logging\x20out','isFile','error','constructor','success','7790046wXfWfY','True','fsi','toString','MAKA_DEV'];a50c=function(){return q;};return a50c();}import{Log}from'../tools/log/log.class.js';import{HTTPS}from'../tools/https/https.class.js';const hostname=process[a50o(0x93)][a50o(0x7f)]===a50o(0x7c)?'localhost':a50o(0x9a);Command['create']({'name':a50o(0x71),'validOpts':[a50o(0x95)],'usage':a50o(0x81),'maxArgLength':0x2,'shortDesc':a50o(0x70),'disableAuthCheck':!![],'examples':[a50o(0x81)]},async function(a,b){const p=a50o,c=Log[p(0x89)]();try{let d='';b['cacert']&&(this[p(0x7d)][p(0x77)](b[p(0x95)])?(d=b[p(0x95)],Log['notice'](p(0x94)+d)):Log['error'](p(0x74)+d));const f=await this[p(0x7d)]['getGlobalConfig']();if(f[p(0x9c)]){if(this[p(0x7d)][p(0x77)](f[p(0x9c)]))d=f[p(0x9c)];else{c[p(0x85)]();throw Log[p(0x78)](p(0x6f)+d);}}Log[p(0x73)](p(0x87)+hostname);const g={'url':p(0x8c)+hostname+p(0x72)};b[p(0x95)]&&Object[p(0x80)](g,{'cert':d});c[p(0x90)]('Preflight\x20Check');const {statusCode:h}=await HTTPS[p(0x8b)](g);if(h===0x198){c[p(0x85)]();throw p(0x99);}c['success']();if(h!==0xc8){c[p(0x85)]();throw'https://www.maka-cli.com\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli';}if(!f?.[p(0x91)]?.['authToken'])throw Log[p(0x78)]('Cannot\x20find\x20login\x20token,\x20are\x20you\x20sure\x20you\x20are\x20logged\x20in?');c[p(0x90)](p(0x76));const i={'hostname':hostname,'path':p(0x98),'data':{},'headers':{'x-auth-token':f[p(0x91)][p(0x96)]}};b[p(0x95)]&&Object[p(0x80)](i,{'cert':d});const {statusCode:j}=await HTTPS[p(0x8f)](i);if(j===0x198){c[p(0x85)]('\x0a');throw p(0x99);}this[p(0x7d)]['setGlobalConfig']({'token':{'authToken':'','userId':'','when':''},'hash':''}),c[p(0x7a)]();}catch(k){k&&console['error'](k),process[p(0x86)](0x0);}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a51k=a51d;(function(a,b){const h=a51d,c=a();while(!![]){try{const d=-parseInt(h(0x1bb))/0x1*(-parseInt(h(0x1b3))/0x2)+-parseInt(h(0x1bf))/0x3*(-parseInt(h(0x1b2))/0x4)+-parseInt(h(0x1b9))/0x5+parseInt(h(0x1c4))/0x6*(-parseInt(h(0x1b4))/0x7)+-parseInt(h(0x1cd))/0x8*(parseInt(h(0x1c2))/0x9)+-parseInt(h(0x1cc))/0xa*(-parseInt(h(0x1c7))/0xb)+-parseInt(h(0x1c0))/0xc*(parseInt(h(0x1c9))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0xd2887));function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x1b1;let f=c[d];return f;},a51d(a,b);}const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a51d;if(c){const e=c[i(0x1c1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const j=a51d;return a51a[j(0x1c5)]()[j(0x1c3)](j(0x1b5))[j(0x1c5)]()[j(0x1b1)](a51a)[j(0x1c3)]('(((.+)+)+)+$');});a51a();import a51e from'fs';import a51f from'path';function a51c(){const m=['getConfigPath','readFileSync','log','4596153tBKtUe','162540crRfyA','apply','2668617LQiGrK','search','6TuOmlM','toString','sshSync','11FnyaxQ','pm2\x20logs','182yfNdij','maka\x20l\x20-e\x20p','maka\x20logs','11358230jMEnXM','16AbErTs','constructor','4YocFMw','85024FJtGFJ','2543177OAIIif','(((.+)+)+)+$','create','maka\x20logs\x20--env\x20dev','env','5635980joZtEG','View\x20the\x20PM2\x20logs','11bRlGZy'];a51c=function(){return m;};return a51c();}import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';Command[a51k(0x1b6)]({'name':'logs','aliases':['l',a51k(0x1be)],'usage':a51k(0x1cb),'requiredOpts':[a51k(0x1b8)],'mustBeInMakaProject':!![],'validOpts':[''],'shortDesc':a51k(0x1ba),'examples':[a51k(0x1b7),'maka\x20logs\x20--env\x20staging',a51k(0x1ca)]},function(a,b){const l=a51k,c=l(0x1c8),d=this['fsi'][l(0x1bc)](b[l(0x1b8)]),e=a51f['join'](d,'ssh.json'),f=a51e[l(0x1bd)](e),g=JSON['parse'](f[l(0x1c5)]());Object['assign'](g,{'env':d}),SSH[l(0x1c6)](c,g,{'tty':!![],'verbose':!![]});});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a52j=a52d;function a52c(){const l=['372797Zlwfwf','\x0a\x0a\x20\x20Scaffold\x20Web\x20Applications\x20with\x20Meteor\x20and\x20Maka-CLI\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.-:\x20\x20-:\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20\x20\x20:-.\x20\x20\x20\x20\x20:--\x20\x20-:\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.::\x20\x20::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20.\x20.:::::::\x20.:::::::\x20..\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20..:.....\x20.::..::.\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::\x20.::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::::::\x20\x20\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20:--\x20\x20--\x20\x20\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.------\x20.-----:\x20\x20\x20\x20\x20\x20..\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20----.\x20\x20\x20\x20\x20.--\x20\x20-:\x20\x20\x20\x20\x20\x20::\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::\x20\x20:::\x20:.\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20...\x20\x20\x20\x20\x20.::::::\x20\x20\x20\x20\x20\x20::\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:..\x20\x20\x20\x20::----::\x20.::\x20.::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.-:::::\x20.-:\x20\x20-:\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.::\x20.::\x20\x20\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.:.\x20.:::..:::::\x20\x20\x20\x20\x20.--.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20.:\x20--------\x20.-------.::\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20:-:\x20\x20-:\x20\x20\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20\x20\x20:-.\x20\x20\x20\x20\x20:--\x20\x20--\x20\x20\x20\x20\x20.--.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.::::::\x20.::\x20\x20::\x20\x20\x20\x20\x20.--.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20\x20::::::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.::..-::.\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20.\x20.:::....\x20\x20::..---:..\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20.\x20.:::::::\x20\x20::..::.\x20..\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::\x20\x20:.\x20\x20\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:--\x20\x20\x20\x20\x20\x20\x20\x20\x20.--.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.-:\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20:\x0a.:..::...::.\x20\x20\x20....:\x20\x20\x20.:\x20\x20\x20::\x20\x20....:.\x20\x20\x20\x20\x20\x20\x20\x20.::::\x20\x20.:\x20\x20::\x0a\x20:.\x20\x20\x20:.\x20\x20\x20:.\x20\x20....:-\x20\x20.-..:.\x20\x20\x20....:-\x20\x20...\x20\x20:.\x20\x20\x20\x20\x20\x20.:\x20\x20.:\x0a\x20:.\x20\x20\x20:.\x20\x20\x20:.\x20.:\x20\x20\x20:-\x20\x20.-\x20\x20.:\x20\x20.:\x20\x20\x20:-\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20\x20\x20\x20.:\x20\x20.:\x0a.:.\x20\x20\x20:.\x20\x20\x20.:\x20\x20....\x20:.\x20.:.\x20\x20..\x20\x20....\x20:.\x20\x20\x20\x20\x20\x20\x20.....\x20\x20.:.\x20.:.\x0a\x0a\x20\x20','maka\x20create\x20Todo','874686qCEEJD','error','20748160BbKbrP','3661029zQDFnW','5DXrQgF','A\x20command\x20line\x20scaffolding\x20and\x20Dev\x20Ops\x20tool\x20for\x20Meteor\x20applications.','3hoTthj','maka\x20--help','114569ywZAss','(((.+)+)+)+$','maka\x20run','5218796ukshcA','maka','maybeProxyCommandToMeteor','constructor','1015914kFWHOk','exit','fsi','maka\x20<command>\x20[<args>]\x20[<opts>]','slice','apply','600AaRoRj','findSubCommand','search'];a52c=function(){return l;};return a52c();}function a52d(a,b){const c=a52c();return a52d=function(d,e){d=d-0xcc;let f=c[d];return f;},a52d(a,b);}(function(a,b){const g=a52d,c=a();while(!![]){try{const d=parseInt(g(0xe3))/0x1+parseInt(g(0xda))/0x2*(-parseInt(g(0xd1))/0x3)+parseInt(g(0xd6))/0x4+-parseInt(g(0xcf))/0x5*(-parseInt(g(0xe6))/0x6)+-parseInt(g(0xd3))/0x7*(-parseInt(g(0xe0))/0x8)+parseInt(g(0xce))/0x9+-parseInt(g(0xcd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xd593a));const a52b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a52d;if(c){const e=c[h(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){const i=a52d;return a52a['toString']()[i(0xe2)]('(((.+)+)+)+$')['toString']()[i(0xd9)](a52a)[i(0xe2)](i(0xd4));});a52a();import{Command}from'../command.js';const Maka=new Command({'name':a52j(0xd7),'minArgLength':0x1,'shortDesc':a52j(0xd0),'validOpts':[],'usage':a52j(0xdd),'disableAuthCheck':!![],'examples':[a52j(0xd2),'maka\x20install\x20meteor',a52j(0xe5),a52j(0xd5)],'description':a52j(0xe4)},async function(a,b){const k=a52j;try{const c=a[0x0],d=this[k(0xe1)](c);d?this['runSubCommand'](c,a[k(0xde)](0x1),b):this[k(0xdc)][k(0xd8)]();}catch(f){console[k(0xcc)](f),process[k(0xdb)](0x1);}});export default Maka;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a53i=a53d;(function(a,b){var f=a53d,c=a();while(!![]){try{var d=parseInt(f(0x8d))/0x1+parseInt(f(0x7b))/0x2*(-parseInt(f(0x7d))/0x3)+parseInt(f(0x83))/0x4+parseInt(f(0x8e))/0x5*(-parseInt(f(0x91))/0x6)+-parseInt(f(0x8c))/0x7*(-parseInt(f(0x90))/0x8)+parseInt(f(0x8a))/0x9*(-parseInt(f(0x7f))/0xa)+parseInt(f(0x85))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x72741));var a53b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a53d;if(c){var e=c[g(0x7c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){var h=a53d;return a53a[h(0x89)]()[h(0x86)](h(0x88))[h(0x89)]()[h(0x80)](a53a)[h(0x86)](h(0x88));});function a53d(a,b){var c=a53c();return a53d=function(d,e){d=d-0x7b;var f=c[d];return f;},a53d(a,b);}a53a();import{Command}from'../command.js';function a53c(){var k=['toString','120753xpmgYB','%c\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.___.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20,-^\x20\x20\x20\x20\x20^-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x0a.-------|\x20|--------------/\x20\x20__\x20\x20\x20\x20\x20__\x20\x20\x5c-------------------.__\x0a|WMWMWMW|\x20|>>>>>>>>>>>>>\x20|\x20/>>\x5c\x20\x20\x20/>>\x5c\x20|>>>>>>>>>>>>>>>>>>>>>>:>\x0a`-------|\x20|--------------|\x20\x5c__/\x20\x20\x20\x5c__/\x20|-------------------\x27^^\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x5c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x20/|\x5c\x20\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x5c_/\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20\x20\x20\x20\x20\x20\x20|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|+H+H+H+|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x20\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20^-----^\x0a\x0a','252DbfBqY','28300nVJHBW','25BuTwHA','exit','57648QYPfLY','704118MxwBIy','202bCMUDO','apply','3699WdvAqM','maka\x20murder','250YQRjgO','constructor','Murrrrderrrrr','font-family:\x20monospace','512084VdctjJ','log','12097657hoUFbl','search','murder','(((.+)+)+)+$'];a53c=function(){return k;};return a53c();}Command['create']({'name':a53i(0x87),'usage':a53i(0x7e),'maxArgLength':0x1,'shortDesc':a53i(0x81),'validOpts':[]},async function(){var j=a53i;try{console[j(0x84)](j(0x8b),j(0x82));}catch(a){console['error'](a),process[j(0x8f)](0x0);}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a54p=a54d;(function(a,b){const n=a54d,c=a();while(!![]){try{const d=parseInt(n(0xf1))/0x1*(-parseInt(n(0xef))/0x2)+-parseInt(n(0xfa))/0x3*(-parseInt(n(0xed))/0x4)+-parseInt(n(0xf8))/0x5+-parseInt(n(0xe7))/0x6*(parseInt(n(0x101))/0x7)+-parseInt(n(0x105))/0x8*(-parseInt(n(0xec))/0x9)+parseInt(n(0x106))/0xa+parseInt(n(0xe8))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x71944));const a54b=(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;};}()),a54a=a54b(this,function(){const o=a54d;return a54a[o(0xe0)]()[o(0xfd)](o(0xf3))[o(0xe0)]()[o(0x102)](a54a)['search']('(((.+)+)+)+$');});a54a();import a54e from'fs';import a54f from'path';import a54g from'http-proxy';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0xdf;let f=c[d];return f;},a54d(a,b);}function a54c(){const r=['findGenerator','join','fsi','56ydvoaB','constructor','appName','bright','945448MXjbJy','7263690pVHYTP','isFile','toString','sslconfig','=>\x20SSL\x20Proxy\x20forwarding\x20','\x0a\x20\x20If\x20you\x27re\x20running\x20your\x20Meteor\x20service,\x20and\x20need\x20to\x20stand\x20up\x20an\x20SSL\x0a\x20\x20Proxy,\x20this\x20command\x20will\x20automatically\x20create\x20a\x20key\x20pair\x20for\x20use\x20in\x20an\x20HTTPS\x0a\x20\x20proxy.\x0a\x0a\x20\x20For\x20example,\x20you\x27re\x20running\x20http://localhost:3000\x20with\x20\x22maka\x20run\x22\x20then\x20open\x20a\x20new\x0a\x20\x20terminal\x20and\x20run\x20\x22maka\x20proxy\x22\x20to\x20standup\x20https://localhost:3443.\x0a\x20\x20Then\x20open\x20your\x20browser\x20to\x20that\x20URL\x20(you\x20may\x20need\x20to\x20trust\x20the\x20certificates\x0a\x20\x20because\x20they\x20are\x20self-signed)\x20and\x20you\x27ll\x20have\x20an\x20SSL\x20connection\x20to\x20your\x0a\x20\x20http://localhost:3000.\x0a\x0a\x20\x20To\x20avoid\x20possibly\x20overwriting\x20PKI\x20files\x20in\x20higher\x20environments,\x20\x22maka\x20proxy\x22\x0a\x20\x20will\x20try\x20to\x20only\x20generate\x20/\x20store\x20PKI\x20keys\x20in\x20the\x20development\x20environment.\x0a\x20\x20','maka\x20proxy','listenPort','.crt','562332Ietdqf','6039121BtmksQ','.key','development','genCSR','54edYfbC','452peYYtl','targetPort','2FclyVT','invoke','766859ZpsbPy','Target\x20and\x20Listen\x20ports\x20cannot\x20be\x20the\x20same.','(((.+)+)+)+$','localhost','listen','utf8','maka\x20proxy\x20--target-host\x20http://192.168.1.20','4358470ZswobO','.csr','23073NxjvLp','mkKeysDir','targetHost','search'];a54c=function(){return r;};return a54c();}import{SSL}from'../tools/ssl/ssl.class.js';import a54h from'../generators/maka.gen.js';Command['create']({'name':'proxy','usage':'maka\x20proxy','mustBeInMakaProject':!![],'validOpts':['help',a54p(0xee),a54p(0xe5),a54p(0xfc)],'maxArgLength':0x1,'shortDesc':'Proxy\x20HTTPS\x20requests\x20to\x20another\x20Server','description':a54p(0xe3),'examples':[a54p(0xe4),'maka\x20proxy\x20--target-port\x203000\x20--listen-port\x204000',a54p(0xf7)]},async function(a,b){const q=a54p,c=this[q(0x100)]['getProjectConfig'](),d=q(0xea),e=this[q(0x100)]['getConfigPath'](d),f=this[q(0x100)][q(0xfb)]({'configPath':e}),g=b[q(0xee)]?Number(b['targetPort']):0xbb8,h=b[q(0xe5)]?Number(b[q(0xe5)]):0xd73,i=b[q(0xfc)]?b[q(0xfc)]:q(0xf4),j=a54f[q(0xff)](f,c[q(0x103)]+q(0xe9)),k=a54f[q(0xff)](f,c[q(0x103)]+q(0xe6));if(!this[q(0x100)][q(0xdf)](j)||!this['fsi'][q(0xdf)](k)){const m=a54h[q(0xfe)]('sslconfig');m&&await m[q(0xf0)]([q(0xe1)],{'env':d}),SSL[q(0xeb)]({'keyName':c[q(0x103)]+q(0xe9),'csrName':c[q(0x103)]+q(0xf9),'cwd':f}),SSL['genSSC']({'keyName':c['appName']+q(0xe9),'crtName':c['appName']+q(0xe6),'cwd':f});}if(g===h){Log['error'](q(0xf2));throw new UsageError();}const l={'ssl':{'key':a54e['readFileSync'](j,q(0xf6)),'cert':a54e['readFileSync'](k,'utf8')},'target':{'host':i,'port':Number(g)},'ws':!![],'xfwd':!![]};a54g['createProxyServer'](l)[q(0xf5)](Number(h)),Log[q(0x104)](q(0xe2)+h+'\x20to\x20'+g);});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a55q=a55d;(function(a,b){const n=a55d,c=a();while(!![]){try{const d=parseInt(n(0x1ba))/0x1*(-parseInt(n(0x1a2))/0x2)+parseInt(n(0x1aa))/0x3*(parseInt(n(0x1a7))/0x4)+parseInt(n(0x1a4))/0x5+parseInt(n(0x19f))/0x6+parseInt(n(0x1b8))/0x7*(-parseInt(n(0x19a))/0x8)+-parseInt(n(0x196))/0x9+-parseInt(n(0x1a0))/0xa*(parseInt(n(0x199))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x9198a));const a55b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a55d;if(c){const e=c[o(0x19d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){const p=a55d;return a55a[p(0x1b6)]()[p(0x194)]('(((.+)+)+)+$')[p(0x1b6)]()[p(0x19b)](a55a)[p(0x194)](p(0x1a3));});a55a();import a55e from'fs';function a55c(){const s=['6103524OGTBBv','9530xzcZGQ','env','302UKhMso','(((.+)+)+)+$','4663130QrfNhj','notice','~/pm2.config.js','4jqSjxe','create','exit','2821809WvKmeT','Checking\x20remote\x20host\x20availability','ssh','join','error','maka\x20reconfig\x20--env\x20prod','ping','readFileSync','Remote\x20host\x20connection\x20successful','getConfigPath','~/ses.json','settings.json','toString','uname\x20-a','21MoNzei','existsSync','913ELgXRU','_keys','pm2\x20delete\x20all','search','pm2.config.js','9890046ZLqMdE','assign','~/settings.json','8987utpAUo','743368JQpXJy','constructor','scp','apply','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.'];a55c=function(){return s;};return a55c();}import a55f from'path';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a55d(a,b){const c=a55c();return a55d=function(d,e){d=d-0x194;let f=c[d];return f;},a55d(a,b);}import{SSH}from'../tools/ssh/ssh.class.js';Command[a55q(0x1a8)]({'name':'reconfig','validOpts':[''],'requiredOpts':['env'],'mustBeInMakaProject':!![],'usage':'maka\x20reconfig','shortDesc':'Reconfigure\x20your\x20deployed\x20applications','description':'\x0a\x20\x20If\x20using\x20a\x20remote\x20server\x20(Ubuntu),\x20send\x20up\x20the\x20settings.json\x0a\x20\x20and\x20pm2.config.js\x20files\x20and\x20reloads\x20the\x20PM2\x20service.\x0a\x20\x20','examples':[a55q(0x1af)]},async function(a,b){const r=a55q;try{const c=this['fsi'][r(0x1b3)](b[r(0x1a1)]),d=a55f[r(0x1ad)](c,'ssh.json'),f=a55e[r(0x1b1)](d)[r(0x1b6)](),g=JSON['parse'](f);Object[r(0x197)](g,{'env':c}),Log[r(0x1a5)](r(0x1ab));const h=SSH[r(0x1b0)](r(0x1b7),g);if(!h)throw r(0x19e);if(h)Log['success'](r(0x1b2));const i=a55f[r(0x1ad)](c,r(0x1bb),'ses.json');if(a55e[r(0x1b9)](i)){const l={'source':i,'dest':r(0x1b4),'verbose':!![]};SSH['scp'](l,{...g});}const j=a55f[r(0x1ad)](c,r(0x195));SSH['scp']({'source':j,'dest':r(0x1a6),'verbose':!![]},{...g});const k=a55f[r(0x1ad)](c,r(0x1b5));SSH[r(0x19c)]({'source':k,'dest':r(0x198),'verbose':!![]},{...g}),SSH['sshSync'](r(0x1bc),g),await SSH[r(0x1ac)]('echo\x20\x22\x22\x20&&\x20pm2\x20start\x20pm2.config.js\x20&&\x20echo\x20\x22\x22\x20||\x20echo\x20\x22Cound\x20not\x20find\x20PM2,\x20have\x20you\x20deployed\x20the\x20app\x20yet?\x22',{...g},{'verbose':!![]});}catch(m){console[r(0x1ae)](m),process[r(0x1a9)](0x0);}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(a,b){var f=a56d,c=a();while(!![]){try{var d=parseInt(f(0xc4))/0x1*(parseInt(f(0xc6))/0x2)+parseInt(f(0xcc))/0x3+-parseInt(f(0xca))/0x4*(parseInt(f(0xc7))/0x5)+-parseInt(f(0xc2))/0x6+parseInt(f(0xcb))/0x7+-parseInt(f(0xc3))/0x8*(-parseInt(f(0xc5))/0x9)+parseInt(f(0xce))/0xa*(-parseInt(f(0xcf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x88eae));var a56b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a56d;if(c){var e=c[g(0xc8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){var h=a56d;return a56a[h(0xc1)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a56a)[h(0xcd)](h(0xc9));});a56a();function a56d(a,b){var c=a56c();return a56d=function(d,e){d=d-0xc1;var f=c[d];return f;},a56d(a,b);}import'./run.command.js';function a56c(){var i=['toString','2277162qesfHy','16DRRcYM','1xNqaUp','277713CVvAXO','2204798bZnCuG','5395310pMKfnE','apply','(((.+)+)+)+$','4kyMEuo','7231903knnPbO','2783133rWmFYt','search','10nmucFt','12161050bMddek'];a56c=function(){return i;};return a56c();}import'./docker.sub.cmd.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a57l=a57d;(function(a,b){const i=a57d,c=a();while(!![]){try{const d=parseInt(i(0x146))/0x1*(-parseInt(i(0x153))/0x2)+parseInt(i(0x137))/0x3+-parseInt(i(0x147))/0x4*(parseInt(i(0x150))/0x5)+-parseInt(i(0x155))/0x6*(parseInt(i(0x143))/0x7)+parseInt(i(0x13e))/0x8+parseInt(i(0x148))/0x9*(-parseInt(i(0x140))/0xa)+parseInt(i(0x152))/0xb*(parseInt(i(0x14a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0xd8b9d));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a57d;if(c){const e=c[j(0x156)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const k=a57d;return a57a[k(0x13f)]()['search'](k(0x149))['toString']()[k(0x139)](a57a)['search'](k(0x149));});function a57c(){const n=['1535090XrjYMs','templateContent','Docker\x20Compose\x20Path:\x20','1239cCmAGT','docker','notice','2083Jdvxqw','780936MpZevl','99CyePOw','(((.+)+)+)+$','1197528HVvghI','Run\x20your\x20application\x20in\x20a\x20Docker\x20container','join','maka\x20run\x20docker','\x20up\x20--remove-orphans','getProjectConfig','5OkyaGY','exit','110LWcrDE','572HULVFL','\x0a\x20\x20Run\x20your\x20application\x20in\x20a\x20Docker\x20container.\x20\x20Docker\x20Desktop\x20or\x20Colmia\x20is\x20required.\x0a\x0a\x20\x20Colima\x20is\x20a\x20great\x20alternative\x20to\x20Docker\x20Desktop,\x20and\x20it\x20is\x20free!\x0a\x20\x20Colima:\x20https://github.com/abiosoft/colima\x0a\x0a\x0a\x20\x20A\x20docker-compose.yml\x20file\x20(location\x20defaulted\x20to\x20the\x20\x22config/docker\x22\x20folder)\x0a\x20\x20is\x20used\x20to\x20startup\x20mongo\x20and\x20load\x20the\x20built\x20image\x27\x0a\x20\x20','7602WMuiUy','apply','existsSync','inherit','4658934OwzDFa','pm2.config.js','constructor','getConfigPath','fsi','appName','PM2\x20Config\x20File:\x20','8324968jKqtPu','toString'];a57c=function(){return n;};return a57c();}a57a();import a57e from'./run.command.js';function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x135;let f=c[d];return f;},a57d(a,b);}import{execSync}from'child_process';import a57f from'path';import a57g from'fs';import{Log}from'../../tools/log/log.class.js';import{Command}from'../../command.js';import{paramCase}from'change-case';Command['create']({'name':a57l(0x144),'aliases':['d'],'shortDesc':a57l(0x14b),'description':a57l(0x154),'usage':a57l(0x14d),'validOpts':['']},async function(){const m=a57l;try{const a=this[m(0x13b)][m(0x14f)](),b=this[m(0x13b)][m(0x13a)]('docker'),c=a57f['join'](b,'docker-compose.yaml'),d=a57f[m(0x14c)](b,m(0x138));Log[m(0x145)](m(0x13d)+d),Log[m(0x145)](m(0x142)+c);if(!a57g[m(0x135)](c)){const f={'app':a[m(0x13c)],'appFileCase':paramCase(a[m(0x13c)])},g=this[m(0x13b)][m(0x141)]({'srcPath':'config/docker-compose.yaml','context':f})+'\x0a';this[m(0x13b)]['createFile']({'filePath':c,'data':g});}execSync('docker-compose\x20--project-directory\x20'+b+m(0x14e),{'stdio':m(0x136)});}catch(h){process[m(0x151)](0x1);}},a57e);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a58u=a58d;(function(a,b){const q=a58d,c=a();while(!![]){try{const d=-parseInt(q(0x1ff))/0x1+-parseInt(q(0x1fe))/0x2+parseInt(q(0x201))/0x3*(parseInt(q(0x1f0))/0x4)+-parseInt(q(0x1d0))/0x5*(-parseInt(q(0x1e7))/0x6)+-parseInt(q(0x1db))/0x7*(parseInt(q(0x1d6))/0x8)+parseInt(q(0x1d3))/0x9+parseInt(q(0x1e1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0xdacdd));const a58b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a58d;if(c){const e=c[r(0x1f2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){const s=a58d;return a58a['toString']()['search'](s(0x1e0))[s(0x1d8)]()[s(0x1f7)](a58a)[s(0x1d9)]('(((.+)+)+)+$');});a58a();import a58e from'path';import a58f from'fs';import a58g from'dotenv';function a58c(){const x=['inspect','42712MPXAWR','--settings','toString','search','mobileServer','119KXZBFC','filter','docker','--env','concat','(((.+)+)+)+$','21064000hBjOtt','Cannot\x20find\x20Node\x20Environment\x20File:\x20','mobile-server','\x0a\x20\x20maka\x20run\x0a\x20\x20-e\x20|\x20--env\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20target\x20environment.\x20\x20Will\x20automatically\x20pull\x20in\x20the\x20meteor\x20settings\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file\x20(settings.json)\x20and\x20any\x20environment\x20options\x20that\x20have\x20been\x20enabled.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Defaults\x20to\x20the\x20development\x20(dev)\x20environment.\x0a\x0a\x20\x20-r\x20|\x20--raw-logs\x20\x20\x20\x20\x20\x20\x20Only\x20output\x20the\x20meteor\x20logs\x20without\x20the\x20timestamp.\x0a\x0a\x20\x20-p\x20|\x20--port\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20port\x20to\x20run\x20the\x20meteor\x20server\x20on.\x20Defaults\x20to\x20port\x203000.\x0a\x0a\x20\x20-i\x20|\x20--inspect\x20\x20\x20\x20\x20\x20\x20\x20Tells\x20the\x20meteor\x20server\x20to\x20run\x20nodejs\x20in\x20debug\x20mode.\x20Starts\x20a\x20debug\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20which\x20can\x20be\x20accessed\x20by\x20Chrome\x20Dev\x20Tools\x20or\x20another\x20debug\x20terminal.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default\x20port\x20is\x209229.\x0a\x0a\x20\x20-m\x20|\x20--mobile-server\x20\x20Specify\x20a\x20different\x20backend\x20server\x20to\x20connect\x20to.\x20\x20Mainly\x20used\x20when\x20running\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mobile\x20app\x20mode\x20with\x20Cordova.\x0a\x0a\x20\x20-x\x20|\x20--exclude-archs\x20\x20Don\x27t\x20create\x20bundles\x20for\x20certain\x20web\x20architectures\x20(comma\x20separated,\x20for\x20example:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--exclude-archs\x20\x22web.browser.legacy,\x20web.cordova\x22)\x0a\x0a\x20\x20--production\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Runs\x20the\x20application\x20in\x20production\x20mode;\x20minifies\x20and\x20bundles\x20all\x20files\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20removes\x20development\x20packages.','rawLogs','config','6HZHtEh','isDirectory','error','development','production','run','split','compareMakaToLatest','exit','52SQSHQH','port','apply','exclude-archs','.meteor','runSubCommand','join','constructor','create','extraPackages','findProjectDirectory','app','cordova-build','sep','2227254JOkBrz','1331939AQXbQK','openSync','184563CcClhv','fsi','warn','getConfigPath','Meteor\x20Settings:\x20','env','Run\x20your\x20Meteor\x20application','length','forEach','--production','notice','verbose','invokeMeteorCommand','argv','248725TEJsUc','findSubCommand','process.env','4289688vqzvzH','settings'];a58c=function(){return x;};return a58c();}function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0x1c5;let f=c[d];return f;},a58d(a,b);}import{rimraf}from'rimraf';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const syncSource=function(a){const t=a58d;a58f[t(0x200)](a,'r'),a58g[t(0x1e6)]({'path':a});},Run=Command[a58u(0x1f8)]({'name':a58u(0x1ec),'mustBeInMakaProject':!![],'shortDesc':a58u(0x1c8),'description':a58u(0x1e4),'validOpts':[a58u(0x1c7),a58u(0x1dd),'r',a58u(0x1e5),'p',a58u(0x1f1),'i',a58u(0x1d5),'m',a58u(0x1da),'v',a58u(0x1cd),'allowIncompatibleUpdate',a58u(0x1f9),'x',a58u(0x1f3),a58u(0x1eb)]},async function(a,b){const v=a58u;try{const c=a[0x0],d=this[v(0x1d1)](c);d&&this[v(0x1f5)](c,a,b);if(c==='ios'){const m=this['fsi'][v(0x1fa)](),n=a58e[v(0x1f6)](m,v(0x1fb),v(0x1f4),'local',v(0x1fc));this[v(0x202)][v(0x1e8)](n)&&await rimraf(n);}if(b[v(0x1e3)]&&b[v(0x1e3)]===!![]||b['m']&&b['m']===!![])throw'Please\x20provide\x20a\x20URL\x20where\x20your\x20mobile\x20app\x20should\x20connect\x20to\x20your\x20server\x20(e.g.,\x20-m\x20|\x20--mobile-server=https://example-server.com)';await this[v(0x202)][v(0x1ee)]();const f=b[v(0x1c7)]?b[v(0x1c7)]:v(0x1ea),g=this[v(0x202)][v(0x1c5)](f),h=a58e[v(0x1f6)](g,v(0x1d2));let i=a58e[v(0x1f6)](g,'settings.json');b[v(0x1d4)]?i=b[v(0x1d4)]:i=a58e[v(0x1f6)](g,'settings.json');if(this['fsi']['isFile'](h)&&!b['docker'])Log[v(0x1cc)]('Node\x20Env\x20Config:\x20'+h),syncSource(h);else!b[v(0x1dd)]&&Log[v(0x203)](v(0x1e2)+h);this['fsi']['isFile'](i)?(Log[v(0x1cc)](v(0x1c6)+i),a=a[v(0x1df)]([v(0x1d7),i])):Log[v(0x203)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+i);const j=g[v(0x1ed)](a58e[v(0x1fd)]),k=j[j[v(0x1c9)]-0x1];k===v(0x1eb)&&a['push'](v(0x1cb));const l=process[v(0x1cf)]['slice'](0x2)[v(0x1dc)](o=>o!==v(0x1ec))['filter'](o=>o!==a[0x0]);l[v(0x1ca)]((o,p)=>{const w=v;o===w(0x1de)&&l['splice'](p,0x2),o==='-e'&&l['splice'](p,0x2);}),this['fsi'][v(0x1ce)]('run',a[v(0x1df)](l));}catch(o){console[v(0x1e9)](o),process[v(0x1ef)](0x1);}});export default Run;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(a,b){var f=a59d,c=a();while(!![]){try{var d=parseInt(f(0xe6))/0x1+-parseInt(f(0xe5))/0x2+-parseInt(f(0xe2))/0x3+parseInt(f(0xef))/0x4*(-parseInt(f(0xe4))/0x5)+-parseInt(f(0xe3))/0x6*(parseInt(f(0xe1))/0x7)+-parseInt(f(0xe7))/0x8*(-parseInt(f(0xee))/0x9)+parseInt(f(0xed))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0xb14e8));var a59b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a59d;if(c){var e=c[g(0xea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a59a=a59b(this,function(){var h=a59d;return a59a[h(0xec)]()['search']('(((.+)+)+)+$')[h(0xec)]()[h(0xeb)](a59a)[h(0xe8)](h(0xe9));});function a59d(a,b){var c=a59c();return a59d=function(d,e){d=d-0xe1;var f=c[d];return f;},a59d(a,b);}a59a();import'./set.command.js';import'./global.sub.cmd.js';function a59c(){var i=['209688moIzsv','5JcFltq','2527562oWolem','1406656fTFZcd','4206824vefAkg','search','(((.+)+)+)+$','apply','constructor','toString','17961550obUhml','9GSIFKA','3842548RVuHRU','84hOqpSl','1075866RrHyiL'];a59c=function(){return i;};return a59c();}import'./local.sub.cmd.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a60k=a60d;(function(a,b){const h=a60d,c=a();while(!![]){try{const d=parseInt(h(0x192))/0x1*(parseInt(h(0x196))/0x2)+-parseInt(h(0x188))/0x3*(-parseInt(h(0x183))/0x4)+parseInt(h(0x198))/0x5*(-parseInt(h(0x186))/0x6)+-parseInt(h(0x182))/0x7+-parseInt(h(0x18c))/0x8+-parseInt(h(0x1a1))/0x9+parseInt(h(0x17e))/0xa*(parseInt(h(0x17f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0x70ec7));const a60b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a60d;if(c){const e=c[i(0x19d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a60a=a60b(this,function(){const j=a60d;return a60a[j(0x1a3)]()[j(0x1a4)]('(((.+)+)+)+$')[j(0x1a3)]()['constructor'](a60a)['search'](j(0x199));});function a60c(){const m=['apply','resolve','maka\x20set:gc\x20--insecure\x20<path>','boolean','6070401lyQKWT','disallowInsecure','toString','search','10VZbyyK','13255198YlJmIE','exit','error','3212489QAKRUa','208756AwsRVF','setGlobalConfig','maka\x20set:global-config\x20<args>','240cTmgTa','Set\x20CA\x20Cert\x20Path:\x20','24SbuyaZ','Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.','isDirectory','workspace','3256224ILKxTG','Set\x20global\x20Maka-CLI\x20settings','cacert','success','Could\x20not\x20find\x20directory','isFile','792849svLVQj','create','global-config','maka\x20set:gc\x20--workspace\x20<path>','2IcoWMF','Set\x20allowInsecure:\x20','51550orcXAF','(((.+)+)+)+$','help','fsi','allowInsecure'];a60c=function(){return m;};return a60c();}a60a();import a60e from'path';function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0x17e;let f=c[d];return f;},a60d(a,b);}import a60f from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a60k(0x193)]({'name':a60k(0x194),'usage':a60k(0x185),'aliases':['gc'],'minOptsLength':0x1,'maxOptsLength':0x3,'validOpts':[a60k(0x18e),a60k(0x19c),a60k(0x1a2),a60k(0x18b),a60k(0x19a)],'shortDesc':a60k(0x18d),'description':'\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x0a\x20\x20There\x20are\x20occasions\x20where\x20your\x20network\x20may\x20need\x20an\x20intermediate\x20certificate\x0a\x20\x20to\x20allow\x20connections\x20outside.\x20\x20You\x20may\x20set\x20your\x20certificate\x20path\x20using\x20the\x20command:\x0a\x0a\x20\x20maka\x20set:gc\x20--cacert\x0a\x20\x20','examples':['maka\x20set:global-config\x20--cacert\x20<path>',a60k(0x19f),a60k(0x195)]},async function(a,b){const l=a60k;try{if(b[l(0x18e)]){if(this[l(0x19b)][l(0x191)](b[l(0x18e)]))this[l(0x19b)][l(0x184)]({'cert':b[l(0x18e)]}),Log[l(0x18f)](l(0x187)+b[l(0x18e)]);else{const c=typeof b['cacert']===l(0x1a0)?l(0x189):'CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+b[l(0x18e)];throw Log['error'](c);}}if(b[l(0x18b)]){const d=this['fsi'][l(0x18a)](b[l(0x18b)]);if(d)this['fsi'][l(0x184)]({'workspace':a60e[l(0x19e)](b[l(0x18b)])}),Log['success']('Set\x20workspace:\x20'+a60e[l(0x19e)](b[l(0x18b)]));else throw Log[l(0x181)](l(0x190));}if(b[l(0x19c)]){if(b[l(0x19c)]&&b[l(0x1a2)])throw Log[l(0x181)]('One\x20or\x20the\x20other\x20buddy');let f=b['allowInsecure'];b[l(0x1a2)]&&(f=![]),this[l(0x19b)][l(0x184)]({'allowInsecure':f}),Log['success'](l(0x197)+f);}}catch(g){console['error'](g),process[l(0x180)](0x0);}},a60f);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a61h=a61d;(function(a,b){var f=a61d,c=a();while(!![]){try{var d=parseInt(f(0x1c3))/0x1+-parseInt(f(0x1bd))/0x2*(-parseInt(f(0x1cb))/0x3)+parseInt(f(0x1bf))/0x4*(parseInt(f(0x1c7))/0x5)+-parseInt(f(0x1c5))/0x6+parseInt(f(0x1c0))/0x7*(parseInt(f(0x1ca))/0x8)+parseInt(f(0x1cd))/0x9+parseInt(f(0x1c2))/0xa*(parseInt(f(0x1cf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0x3662a));var a61b=(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;};}()),a61a=a61b(this,function(){var g=a61d;return a61a[g(0x1be)]()[g(0x1c9)](g(0x1c8))[g(0x1be)]()['constructor'](a61a)['search'](g(0x1c8));});a61a();import a61e from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a61d(a,b){var c=a61c();return a61d=function(d,e){d=d-0x1bd;var f=c[d];return f;},a61d(a,b);}function a61c(){var j=['97243LQjtUT','maka\x20set:local-config\x20<opts>','1845618irUKtm','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20','190vzNznx','(((.+)+)+)+$','search','8MbJfwN','2517bGsvGU','Sorry,\x20not\x20implemented\x20yet','593271IKZryu','create','11ApBiuj','278ztHqLv','toString','10504fpDCLw','74074uYHycS','notice','1402120IgoXcW'];a61c=function(){return j;};return a61c();}Command[a61h(0x1ce)]({'name':'local-config','usage':a61h(0x1c4),'examples':['maka\x20set:lc\x20<opts>',a61h(0x1c4)],'aliases':['lc'],'mustBeInMakaProject':!![],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Set\x20local\x20maka\x20app\x20settings','validOpts':[],'description':a61h(0x1c6)},async function(){var i=a61h;Log[i(0x1c1)](i(0x1cc));},a61e);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a62i=a62d;(function(a,b){const f=a62d,c=a();while(!![]){try{const d=parseInt(f(0x1fa))/0x1*(parseInt(f(0x1f4))/0x2)+-parseInt(f(0x204))/0x3*(parseInt(f(0x1f2))/0x4)+-parseInt(f(0x1fc))/0x5*(parseInt(f(0x1ef))/0x6)+-parseInt(f(0x1f5))/0x7*(parseInt(f(0x1ec))/0x8)+-parseInt(f(0x1f0))/0x9+parseInt(f(0x1fb))/0xa*(parseInt(f(0x1f1))/0xb)+parseInt(f(0x1f8))/0xc*(parseInt(f(0x1f3))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0xc2715));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a62d;if(c){const e=c[g(0x203)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const h=a62d;return a62a[h(0x1fe)]()[h(0x1fd)]('(((.+)+)+)+$')[h(0x1fe)]()[h(0x1f6)](a62a)[h(0x1fd)](h(0x1f9));});a62a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const SetCommand=Command[a62i(0x1ff)]({'name':a62i(0x1f7),'usage':a62i(0x1ee),'minArgLength':0x1,'shortDesc':a62i(0x1ed),'description':a62i(0x201),'validOpts':[]},async function(a,b){const j=a62i,c=a[0x0];if(b[j(0x200)])throw new UsageError();const d=this['findSubCommand'](c);d&&this[j(0x202)](c,a,b);});function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a62d(a,b);}function a62c(){const k=['toString','create','help','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x20\x20','runSubCommand','apply','250911idPpqO','26120FFXYUC','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','maka\x20set:<sub-command>\x20<opts>','26682EipgKh','5762727ofCCoD','1199oXdvPu','76GexfRz','52WDrIyh','8294VCFsuO','3038twNgMC','constructor','set','8204688oleaho','(((.+)+)+)+$','239YwatmV','102890vqymVu','455nQxioc','search'];a62c=function(){return k;};return a62c();}export default SetCommand;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a63m=a63d;(function(a,b){const j=a63d,c=a();while(!![]){try{const d=-parseInt(j(0x13b))/0x1*(-parseInt(j(0x155))/0x2)+-parseInt(j(0x14c))/0x3*(-parseInt(j(0x149))/0x4)+-parseInt(j(0x151))/0x5*(parseInt(j(0x143))/0x6)+parseInt(j(0x15b))/0x7*(parseInt(j(0x153))/0x8)+parseInt(j(0x154))/0x9*(parseInt(j(0x147))/0xa)+parseInt(j(0x14f))/0xb*(parseInt(j(0x146))/0xc)+-parseInt(j(0x152))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0xda6e0));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a63d;if(c){const e=c[k(0x13d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const l=a63d;return a63a['toString']()['search']('(((.+)+)+)+$')[l(0x15c)]()[l(0x157)](a63a)['search'](l(0x144));});a63a();import a63e from'fs';import a63f from'path';import{Command}from'../command.js';function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x13b;let f=c[d];return f;},a63d(a,b);}import{SSH}from'../tools/ssh/ssh.class.js';Command[a63m(0x158)]({'name':a63m(0x14a),'usage':'maka\x20ssh\x20<command>','mustBeInMakaProject':!![],'requiredOpts':[a63m(0x140)],'validOpts':[a63m(0x140),'v'],'shortDesc':a63m(0x148),'examples':[a63m(0x14b),a63m(0x14e),'maka\x20ssh\x20--env\x20prod',a63m(0x142),a63m(0x15d),a63m(0x15e)]},async function(a,b){const n=a63m;try{const c=this[n(0x156)][n(0x150)](b['env']);let d='';a[n(0x15a)]>0x0&&(d=a[0x0]);const f=a63f[n(0x141)](c,n(0x145)),g=a63e[n(0x14d)](f)[n(0x15c)](),h=JSON[n(0x159)](g);Object[n(0x13c)](h,{'env':c}),SSH[n(0x13f)](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b['v']});}catch(i){console[n(0x13e)](i),process['exit'](0x0);}});function a63c(){const o=['error','sshSync','env','join','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','8136432pewEWJ','(((.+)+)+)+$','ssh.json','6204LBfTNu','79010bYsMTH','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','4HAhZiP','ssh','maka\x20ssh\x20--env\x20dev','2972019otVZtL','readFileSync','maka\x20ssh\x20--env\x20staging','23221TCMRWY','getConfigPath','5eChzOu','44148507qDfkCx','648fxLdGs','1638WmvMPN','28qLtIue','fsi','constructor','create','parse','length','97503LEcXmE','toString','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','71322rkyXog','assign','apply'];a63c=function(){return o;};return a63c();}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a64c(){const A=['ask','maka\x20ssl\x20--env\x20dev\x20generate-csr','stringify','success','516NwplwC','error','1070289CBoJTm','genCSR','ssh','exit','domainNames','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','env','sudo\x20snap\x20install\x20--classic\x20certbot','emailUpdate','readFileSync','\x20--email\x20','fsi','Checking\x20remote\x20host\x20availability','Please\x20provide\x20a\x20command.','existsSync','email','appName','Create\x20and\x20manage\x20your\x20SSL\x20operations.','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','toString','getConfigPath','apply','419783jKNJoz','withSpinner','(((.+)+)+)+$','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','.key','1686454qMpfEh','10AQXEDA','uname\x20-a','maka\x20ssl\x20[command]','mkKeysDir','getProjectConfig','1063692GJuPSG','10865moMikO','join','start','/ssh.json','472437vnVNgb','search','.crt','8UuQDGH','domains','860452lpvZTG','assign','.csr','genSSC','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','Using\x20saved\x20letsencrypt\x20config','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','[?]\x20Domains\x20to\x20register:\x20','parse','Email\x20to\x20use\x20for\x20auto-updates:\x20','notice','generate-ssc','writeFileSync','letsencrypt.json'];a64c=function(){return A;};return a64c();}const a64y=a64d;(function(a,b){const v=a64d,c=a();while(!![]){try{const d=parseInt(v(0x1fe))/0x1+-parseInt(v(0x213))/0x2+parseInt(v(0x227))/0x3+parseInt(v(0x209))/0x4+-parseInt(v(0x20a))/0x5*(parseInt(v(0x225))/0x6)+parseInt(v(0x203))/0x7*(-parseInt(v(0x211))/0x8)+-parseInt(v(0x20e))/0x9*(-parseInt(v(0x204))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0x39d88));const a64b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a64d;if(c){const e=c[w(0x1fd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a64a=a64b(this,function(){const x=a64d;return a64a[x(0x1fb)]()[x(0x20f)](x(0x200))[x(0x1fb)]()['constructor'](a64a)[x(0x20f)](x(0x200));});a64a();import a64e from'fs';import a64f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a64d(a,b);}import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command['create']({'name':'ssl','usage':a64y(0x206),'validOpts':[a64y(0x212),'email'],'requiredOpts':[a64y(0x1ee)],'shortDesc':a64y(0x1f9),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a64y(0x222),a64y(0x201),'maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process']},async function(a,b){const z=a64y,c=this['fsi'][z(0x208)](),d=this[z(0x1f3)][z(0x1fc)](b['env']),f=this['fsi'][z(0x207)]({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g==='generate-csr')SSL[z(0x228)]({'keyName':c[z(0x1f8)]+'.key','csrName':c['appName']+z(0x215),'cwd':f});else{if(g===z(0x21e)){if(!a64e[z(0x1f6)](a64f[z(0x20b)](f,c[z(0x1f8)]+z(0x202))))throw'The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20'+a64f[z(0x20b)](f,c[z(0x1f8)]+z(0x202));if(!a64e[z(0x1f6)](a64f[z(0x20b)](f,c[z(0x1f8)]+'.csr')))throw z(0x1fa)+a64f[z(0x20b)](f,c[z(0x1f8)]+'.csr');SSL[z(0x216)]({'keyName':c[z(0x1f8)]+z(0x202),'crtName':c[z(0x1f8)]+z(0x210),'cwd':f}),Log[z(0x21d)]('New\x20CSR\x20written\x20to\x20'+f);}else{if(g==='letsencrypt'){let h=b[z(0x212)],i=b[z(0x1f7)];try{const p=a64e[z(0x1f1)](a64f[z(0x20b)](d,z(0x220)))[z(0x1fb)](),q=JSON[z(0x21b)](p);h=b['domains']?b[z(0x212)]:q[z(0x1ec)],i=b[z(0x1f7)]?b[z(0x1f7)]:q[z(0x1f0)],(!b['email']||!b['domains'])&&Log[z(0x21d)](z(0x218));}catch(r){}const j=JSON[z(0x21b)](a64e[z(0x1f1)](d+z(0x20d))['toString']());Object[z(0x214)](j,{'env':d}),Log[z(0x21d)](z(0x1f4));try{const s=SSH['ping'](z(0x205),j);if(!s)throw z(0x1ed);if(s)Log[z(0x224)]('Remote\x20host\x20connection\x20successful');}catch(t){Log[z(0x226)](t);return;}const k=Log[z(0x1ff)]();k[z(0x20c)]('Verifying\x20Letsencrypt\x20configuration'),SSH[z(0x229)](z(0x217),{...j}),SSH['ssh'](z(0x1ef),{...j}),SSH[z(0x229)]('sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot',{...j}),k[z(0x224)]();const l=h?h:await Actions[z(0x221)](z(0x21a)),m=i?i:await Actions['ask'](z(0x21c));SSH[z(0x229)](z(0x219)+l+z(0x1f2)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON[z(0x223)](n,null,0x2);a64e[z(0x21f)](a64f[z(0x20b)](d,'letsencrypt.json'),o);}else throw z(0x1f5);}}}catch(u){console[z(0x226)](u),process[z(0x22a)](0x0);}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a65q=a65d;function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x66;let f=c[d];return f;},a65d(a,b);}(function(a,b){const m=a65d,c=a();while(!![]){try{const d=-parseInt(m(0x78))/0x1+parseInt(m(0x80))/0x2+-parseInt(m(0x67))/0x3+-parseInt(m(0x87))/0x4*(-parseInt(m(0x7d))/0x5)+parseInt(m(0x91))/0x6+parseInt(m(0x74))/0x7+-parseInt(m(0x6a))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0x25550));function a65c(){const t=['--driver-package','settings.json','1655970paKyJC','Node\x20Env\x20Config:\x20','driverPackage','--env','create','mocha','inspect','test','test-packages','packages','Cannot\x20find\x20Node\x20Environment\x20File:\x20','maka\x20test\x20<opts>','testAppPath','invokeMeteorCommand','process.env','(((.+)+)+)+$','development','getConfigPath','findProjectDirectory','isFile','none','driver','concat','727674wYxuIt','--settings','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','1574112tNeSLY','unit','search','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','apply','port','driver-package','warn','argv','1284619dPUYPa','meteortesting:mocha','--full-app','--packages','189349weQiOc','slice','join','filter','openSync','100715VOJfJn','forEach','once','241282dvBwPn','.maka','sanjo:jasmine','error','rawLogs','fsi','env','40dzQzkZ','config.json','readFileSync','splice','notice','toString','--driver','engines'];a65c=function(){return t;};return a65c();}const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a65d;if(c){const e=c[n(0x6f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const o=a65d;return a65a[o(0x8c)]()[o(0x6c)](o(0xa0))[o(0x8c)]()['constructor'](a65a)[o(0x6c)]('(((.+)+)+)+$');});a65a();import a65e from'fs';import a65f from'path';import a65g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const p=a65d;a65e[p(0x7c)](a,'r'),a65g['config']({'path':a});};Command[a65q(0x95)]({'name':'test','mustBeInMakaProject':!![],'validOpts':[a65q(0x7f),a65q(0x9a),a65q(0xa6),a65q(0x93),a65q(0x6b),a65q(0x86),a65q(0x84),a65q(0x70),a65q(0x97),a65q(0x9d)],'usage':a65q(0x9c),'shortDesc':a65q(0x6e),'examples':[]},function(a,b){const r=a65q;try{let c=this[r(0x85)][r(0xa2)](r(0xa1));b[r(0x86)]&&(c=this['fsi'][r(0xa2)](b[r(0x86)]));(!b[r(0x6b)]||!!b[r(0x7f)])&&(a=a[r(0x66)]([r(0x76)]));b[r(0x6b)]&&delete b[r(0x6b)];let d=b[r(0x71)]||b[r(0xa6)]||r(0xa5);if(d==='none'){const j=JSON['parse'](a65e[r(0x89)](a65f['join'](this[r(0x85)][r(0xa3)](),r(0x81),r(0x88)),'utf8'));if(j[r(0x8e)][r(0x98)]==='jasmine')d=r(0x82);else j[r(0x8e)]['test']===r(0x96)&&(d=r(0x75));}if(d===r(0xa5))throw r(0x69);(!b[r(0x71)]||!b['driver'])&&(a=a[r(0x66)]([r(0x8f),d]));const f=a65f[r(0x7a)](c,r(0x90));this[r(0x85)][r(0xa4)](f)?(Log['notice']('Meteor\x20Settings:\x20'+f),a=a[r(0x66)]([r(0x68),f])):Log[r(0x72)](r(0x6d)+f);const g=a65f[r(0x7a)](c,r(0x9f));this[r(0x85)][r(0xa4)](g)?(Log[r(0x8b)](r(0x92)+g),syncSource(g)):Log['warn'](r(0x9b)+g);const h=process[r(0x73)][r(0x79)](0x2)[r(0x7b)](k=>k!=='--env')[r(0x7b)](k=>k!=='test')[r(0x7b)](k=>k!==a[0x0]);h[r(0x7e)]((k,l)=>{const s=r;(k===s(0x94)||k===s(0x8d))&&h[s(0x8a)](l,0x2),k===s(0x77)&&h[s(0x8a)](l,0x1);});const i=b[r(0x9a)]?r(0x99):r(0x98);this['fsi'][r(0x9e)](i,a['concat'](h));}catch(k){console[r(0x83)](k),process['exit'](0x0);}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a66l=a66d;function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0x172;let f=c[d];return f;},a66d(a,b);}(function(a,b){const i=a66d,c=a();while(!![]){try{const d=-parseInt(i(0x185))/0x1+parseInt(i(0x183))/0x2*(parseInt(i(0x193))/0x3)+-parseInt(i(0x1a3))/0x4*(-parseInt(i(0x180))/0x5)+parseInt(i(0x174))/0x6*(-parseInt(i(0x178))/0x7)+-parseInt(i(0x18c))/0x8*(parseInt(i(0x173))/0x9)+parseInt(i(0x18e))/0xa+-parseInt(i(0x181))/0xb*(-parseInt(i(0x198))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0xcbf45));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a66d;if(c){const e=c[j(0x186)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const k=a66d;return a66a[k(0x191)]()[k(0x17c)](k(0x190))[k(0x191)]()[k(0x17b)](a66a)['search'](k(0x190));});a66a();function a66c(){const n=['error','fsi','compareMakaToLatest','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','replace',')\x20to\x20at\x20least\x20meteor\x27s\x20(','100KUnCcc','getGlobalMeteorVersion','getProjectMeteorVersion','27TlIUnM','8854668LThRBI','Maka\x20','maka\x20version','System\x27s\x20Node\x20Version\x20','7ydXdAl','Project\x27s\x20Meteor\x20Version\x20','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','constructor','search','maka\x20v','node\x20-v','System\x27s\x20Meteor\x20Version\x20','81195jAHPvh','9436845UhAYxJ','platform','2233186XtWnoE','win32','1386582bjnzPL','apply','bright','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','version','isMakaProject','----------------------Project----------------------------','2232616EwlZgC','4.5.17','12966300pkQEmX','Project\x27s\x20Meteor\x20Node\x20Version\x20','(((.+)+)+)+$','toString','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','3Ykdvzn','\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','notice','meteor','24sOGywI','create','warn','\x20node\x20-v','----------------------System----------------------------'];a66c=function(){return n;};return a66c();}import{execSync}from'child_process';import a66e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a66l(0x18d)};Command[a66l(0x199)]({'name':a66l(0x189),'aliases':['v'],'usage':a66l(0x176),'maxArgLength':0x1,'validOpts':[],'shortDesc':a66l(0x192),'examples':[a66l(0x17d),a66l(0x176)]},async function(){const m=a66l;try{const a=process[m(0x182)]===m(0x184)?'meteor.bat':m(0x197);Log['majestic'](m(0x175)+pjson[m(0x189)]),await this[m(0x19e)][m(0x19f)](),Log[m(0x187)](m(0x19c));const b=this[m(0x19e)][m(0x1a4)]();Log['bright']((m(0x17f)+b)[m(0x1a1)]('\x0a',''));const c=execSync(a+m(0x19b))[m(0x191)]()[m(0x1a1)](/\r?\n|\r/,'')[m(0x1a1)]('v','');Log[m(0x187)](m(0x1a0)+c);const d=execSync(m(0x17e))[m(0x191)]()['replace'](/\r?\n|\r/,'')['replace']('v','');a66e['gt'](c,d)?(Log['warn']('System\x27s\x20Node\x20Version\x20'+d),Log[m(0x19a)](m(0x188)+d+m(0x1a2)+c+')')):Log['bright'](m(0x177)+d);if(this[m(0x19e)][m(0x18a)]()){Log[m(0x187)](m(0x18b));const f=this[m(0x19e)][m(0x172)]();a66e['gt'](b,f)?(Log[m(0x19a)](m(0x179)+f['replace']('\x0a','')),Log[m(0x19a)](m(0x195)+b+'\x22')):Log[m(0x196)](('Project\x27s\x20Meteor\x20Version\x20'+f)['replace']('\x0a',''));const g=await this[m(0x19e)]['getProjectsMeteorNodeVersion']();g==='N/A'?(Log[m(0x19a)](m(0x18f)+g),Log[m(0x19a)](m(0x17a))):Log[m(0x187)](m(0x18f)+g),Log['bright'](m(0x194));}}catch(h){console[m(0x19d)](h),process['exit'](0x0);}});
|
package/bundle/obf/src/error.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(a,b){var f=a67d,c=a();while(!![]){try{var d=parseInt(f(0xda))/0x1+parseInt(f(0xd6))/0x2+parseInt(f(0xdf))/0x3*(-parseInt(f(0xd4))/0x4)+parseInt(f(0xdd))/0x5+-parseInt(f(0xe0))/0x6+-parseInt(f(0xde))/0x7*(-parseInt(f(0xd5))/0x8)+-parseInt(f(0xdb))/0x9*(parseInt(f(0xd9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0xa1d7b));var a67b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a67d;if(c){var e=c[g(0xd3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){var h=a67d;return a67a[h(0xd8)]()[h(0xd7)]('(((.+)+)+)+$')['toString']()['constructor'](a67a)[h(0xd7)](h(0xdc));});a67a();export class UsageError{}function a67c(){var i=['934176rUXpXw','apply','501712QmfHyu','2378192YWCchA','1387758YmkPZU','search','toString','1190vJzcTH','454126OWzFIM','10719kHYjsg','(((.+)+)+)+$','246785lxvphQ','21cTHKaL','27zqOKKh'];a67c=function(){return i;};return a67c();}export class UsageErrorWithSubs{}function a67d(a,b){var c=a67c();return a67d=function(d,e){d=d-0xd3;var f=c[d];return f;},a67d(a,b);}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x1a3;let f=c[d];return f;},a68d(a,b);}const a68t=a68d;(function(a,b){const q=a68d,c=a();while(!![]){try{const d=-parseInt(q(0x1dc))/0x1*(-parseInt(q(0x1ee))/0x2)+parseInt(q(0x1fb))/0x3+-parseInt(q(0x1c3))/0x4+-parseInt(q(0x20c))/0x5*(-parseInt(q(0x1d6))/0x6)+-parseInt(q(0x1b8))/0x7*(parseInt(q(0x1e9))/0x8)+-parseInt(q(0x1f0))/0x9*(parseInt(q(0x1be))/0xa)+-parseInt(q(0x1b9))/0xb*(-parseInt(q(0x1d0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0xdc93a));const a68b=(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;};}()),a68a=a68b(this,function(){const r=a68d;return a68a[r(0x1d4)]()[r(0x1cb)](r(0x1b6))[r(0x1d4)]()[r(0x1a5)](a68a)[r(0x1cb)](r(0x1b6));});a68a();import a68e from'path';import a68f from'cli-table';import{paramCase}from'change-case';function a68c(){const E=['4456335FRSDuQ','addGenerator','appPathPrefix','To\x20use\x20these\x20pro\x20flags,\x20\x22','roles','Alias','aliases','Too\x20many\x20options','addGenerator\x20requires\x20a\x20Generator\x20instance','replace','join','includes','colLocAnswer','dir','listGenerators','Generator\x20requires\x20a\x20name','Location','3397115BklcAe','push','options','constructor','error','minArgLength','_generators','Generator.create\x20requires\x20some\x20options!','maxOptsLength','client','mustHaveMeteorInstalled','resourceName','domainLicense','parent','findGenerator','findProjectDirectory','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','slice','create','exit','(((.+)+)+)+$','validateMeteorInstall','21zNcrVU','345499yHXaKC','validateMakaProject','shortDesc','Description','Please\x20run\x20\x22maka\x20install\x20meteor\x22','20oAToph','root','To\x20use\x20this\x20generator,\x20\x22','tableList','name','6263212ukorbk','validateParams','_handler','pop','There\x20is\x20no\x20Meteor\x20application\x20here','bind','singleLicense','noResource','search','length','server','forEach','cwd','408OrcLhR','where','checkWhere','number','toString','Too\x20few\x20options','12BcZHFY','invoke','maxArgLength','No\x20resource\x20name\x20specified','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','keys','70094nlPqlt','assign','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','fsi','both','match','map','bright','Client','chdir','notice','proFlags','Generator\x20requires\x20a\x20handler\x20function','4293648cWgwaD','mustBeInMakaProject','sep','function','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','6JDRZyT','validateMakaSubscription','193842csAkvK','help','Server','minOptsLength','filter','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','call','lib','proGenerators','Generators:','Generator.create\x20requires\x20a\x20handler\x20function!'];a68c=function(){return E;};return a68c();}import a68g from'./generators/maka.gen.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function inside(a='.',b){const s=a68d,c=process[s(0x1cf)]();let d=null;try{process[s(0x1e5)](a),d=b();}finally{process[s(0x1e5)](c);}return d;}export class Generator extends Tool{[a68t(0x1a4)];[a68t(0x1a8)];constructor(a,b){const u=a68t;super();if(!a)throw new Error(u(0x1f5));if(!a[u(0x1c2)])throw new Error(u(0x20a));if(typeof b!=='function')throw new Error(u(0x1e8));this['_generators']=[],this[u(0x1a4)]=Object[u(0x1dd)]({},a),this[u(0x1c2)]=this[u(0x1a4)][u(0x1c2)],this[u(0x1c5)]=b[u(0x1c8)](this);}static[a68t(0x1b4)](a,b,c){const v=a68t;if(!a)throw new Error(v(0x1a9));if(typeof b!==v(0x1ec))throw new Error(v(0x1fa));const d=new Generator(a,b);return c=c||a68g,Object['assign'](d,{'parent':c?.['options']?.[v(0x1c2)]}),c[v(0x1fc)](d),d;}[a68t(0x1fc)](a){const w=a68t;if(!(a instanceof Generator))throw new Error(w(0x203));this[w(0x1a8)][w(0x1a3)](a);}['findGenerator'](a){const x=a68t,b=this[x(0x1a8)]['find'](c=>c[x(0x1e1)](a));return b;}async[a68t(0x1ef)](a,b){const y=a68t,c=this[y(0x1b0)](a[0x0]);if(c){const d=c?.[y(0x1c2)]||a[0x0],e=c?.[y(0x1af)]||'',f=Object[y(0x1db)](b),g=await this[y(0x1df)]['getPro']();!g&&(Log[y(0x1a6)](y(0x1b2)),process[y(0x1b5)](0x1));const h=!g?.[y(0x1ff)][y(0x206)](y(0x1c9))&&!g?.[y(0x1ff)]['includes'](y(0x1ae)),i=g?.[y(0x1f8)][y(0x206)](d)||g?.['proGenerators']['includes'](e);if(i&&h)throw y(0x1c0)+d+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';if(f[y(0x1cc)]>0x0){const j=g?.[y(0x1e7)][y(0x1f4)](k=>f[y(0x206)](k));if(j&&j[y(0x1cc)]>0x0&&h)throw y(0x1fe)+j?.[y(0x205)](',\x20')+y(0x1de);}}}async[a68t(0x1d7)](a,b){const z=a68t,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[z(0x1a4)];try{await this[z(0x1ef)](a,b);}catch(g){Log[z(0x1a6)](g),process[z(0x1b5)](0x1);}const f=a[z(0x1b3)]();b[z(0x1ad)]=f[0x0];try{if((a[0x0]===_prevGen||a['length']===0x0)&&b[z(0x1f1)])throw new UsageError();if(this[z(0x1a4)][z(0x1ea)]){const h=this[z(0x1ba)]();if(!h)throw new MustBeInProjectError();}if(this[z(0x1a4)][z(0x1ac)]){const i=this[z(0x1b7)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[z(0x1a4)][z(0x1a7)]===z(0x1d3)){if(a[z(0x1cc)]<this[z(0x1a4)][z(0x1a7)]){Log[z(0x1a6)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this['options'][z(0x1d8)]==='number'){if(a[z(0x1cc)]>this[z(0x1a4)][z(0x1d8)]){Log[z(0x1a6)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[z(0x1a4)]['minOptsLength']===z(0x1d3)){if(Object['keys'](b)[z(0x1cc)]<this[z(0x1a4)][z(0x1f3)]){Log[z(0x1a6)](z(0x1d5));throw new UsageError();}}if(typeof this[z(0x1a4)][z(0x1aa)]===z(0x1d3)){if(Object[z(0x1db)](b)[z(0x1cc)]>=this[z(0x1a4)][z(0x1aa)]){Log[z(0x1a6)](z(0x202));throw new UsageError();}}this[z(0x1c4)](a,b,this['options']);if(!b['resourceName']&&!this[z(0x1a4)][z(0x1ca)]){Log[z(0x1a6)](z(0x1d9));throw new UsageError();}_prevGen=a[0x0];}catch(j){Log['usage'](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this['_generators'][z(0x1cc)]>0x0&&b[z(0x1f1)]&&(Log[z(0x1e6)](z(0x1f9)),this['tableList'](this[z(0x1a8)]));else{if(j instanceof MustBeInProjectError)Log[z(0x1a6)](z(0x1da));else{if(j instanceof NoMeteorFoundError)Log[z(0x1a6)](z(0x1ed)),Log[z(0x1e6)](z(0x1bd));else{if(j instanceof NoMeteorAppFoundError)Log[z(0x1a6)](z(0x1c7));else throw j;}}}process[z(0x1b5)](0x1);}return new Promise(k=>{inside(b['cwd'],async()=>{const A=a68d;try{if(!b[A(0x1bf)]&&!this[A(0x1df)][A(0x1b1)]())throw new MustBeInProjectError();const l=b[A(0x1ad)]?.[A(0x204)](/\\/g,'/')['split']('/');!b['dir']&&(l?.[A(0x1cc)]>0x1?(b[A(0x1ad)]=l[A(0x1c6)](),f[0x0]=b[A(0x1ad)],b[A(0x208)]=l[A(0x1e2)](m=>{return paramCase(m);})[A(0x205)](a68e[A(0x1eb)])):b[A(0x208)]='');if(this[A(0x1a4)][A(0x1d2)]){if(!b['where']){const n={'type':'list','name':A(0x207),'message':A(0x20b),'choices':[{'name':A(0x1e4),'value':'client'},{'name':A(0x1f2),'value':'server'},{'name':'Both','value':'both'}]},{colLocAnswer:o}=await Actions[A(0x1a4)](n);o?b[A(0x1d1)]=o:b[A(0x1d1)]=A(0x1e0);}const m=[A(0x1e0),A(0x1ab),A(0x1cd)];if(!m[A(0x206)](b[A(0x1d1)])){Log[A(0x1a6)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[A(0x1d1)]){case A(0x1e0):b[A(0x1fd)]=A(0x1f7);break;case A(0x1cd):b[A(0x1fd)]=A(0x1cd);break;case'client':b[A(0x1fd)]=A(0x1ab);break;default:b[A(0x1fd)]='';}}k(this['_handler'][A(0x1f6)](this,f,b));}catch(p){console['error'](p);}});});}[a68t(0x209)](){const B=a68t;this[B(0x1c1)](this['_generators']);}[a68t(0x1c1)](a){const C=a68t,b=new a68f({});b[C(0x1a3)](['Name',C(0x200),C(0x1bc)]),a['sort']()[C(0x1ce)](c=>{const D=C;b[D(0x1a3)]([c['name'],c[D(0x201)](),c[D(0x1bb)]()]);}),Log[C(0x1e3)](b[C(0x1d4)]());}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(a,b){var f=a69d,c=a();while(!![]){try{var d=-parseInt(f(0xf8))/0x1+parseInt(f(0xf6))/0x2*(-parseInt(f(0xfe))/0x3)+-parseInt(f(0xf7))/0x4+parseInt(f(0x101))/0x5*(-parseInt(f(0xfa))/0x6)+-parseInt(f(0x102))/0x7*(parseInt(f(0xfc))/0x8)+-parseInt(f(0x103))/0x9+parseInt(f(0xf9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x78667));var a69b=(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;};}()),a69a=a69b(this,function(){var g=a69d;return a69a[g(0xfd)]()[g(0xfb)](g(0x100))[g(0xfd)]()[g(0xff)](a69a)[g(0xfb)]('(((.+)+)+)+$');});a69a();import'./services/_index.js';import'./api.js';function a69d(a,b){var c=a69c();return a69d=function(d,e){d=d-0xf6;var f=c[d];return f;},a69d(a,b);}import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';function a69c(){var h=['(((.+)+)+)+$','5AoLIYw','7EYweqM','9792WTlcDd','36292CSeYur','1072664XhSKRZ','49643cIhbBe','24486940lOfWtP','3934734vZNmOB','search','1023896OarFkd','toString','141TfuZyM','constructor'];a69c=function(){return h;};return a69c();}import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a70y=a70d;(function(a,b){const w=a70d,c=a();while(!![]){try{const d=-parseInt(w(0x15f))/0x1*(-parseInt(w(0x1aa))/0x2)+parseInt(w(0x17f))/0x3+parseInt(w(0x1a9))/0x4*(parseInt(w(0x167))/0x5)+parseInt(w(0x19c))/0x6+-parseInt(w(0x17a))/0x7*(-parseInt(w(0x165))/0x8)+-parseInt(w(0x166))/0x9+parseInt(w(0x15e))/0xa*(-parseInt(w(0x16a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0xb1200));const a70b=(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;};}()),a70a=a70b(this,function(){const x=a70d;return a70a['toString']()[x(0x170)]('(((.+)+)+)+$')[x(0x195)]()['constructor'](a70a)['search'](x(0x1a6));});a70a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a70e from'../generators/maka.gen.js';function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x154;let f=c[d];return f;},a70d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';function a70c(){const B=['resolvers.','/imports/api','installMeteorPackage','push','startup','apollo','register-','api/resolvers.js','Verifying\x20meteor\x20package\x20requirements\x20...','maka:rest','resolverList.push(','rpc-methods.','ddp-rate-limiter','index.','tsx','api/methods.js','.app-tests.','toString','exit','includes','withMethods','test','api/api.js','log','3078384sqzuAV','/graphql/typeDefs','api/typeDefs.js','\x27;\x0a','rest','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','template','options','api','RPC\x20(Methods)','(((.+)+)+)+$','injectAtEndOfFile','publications.','2212YAOArd','2005362AutlVf','api/publications.js','typeList.push(','dir','api/register-api.js','const','injectAtBeginningOfFile','import\x20\x27./register-','fsi','rewriteDestinationPathForEngine','api/tests.js','graphql','290XADNtn','1jHiiXo','No\x20API\x20boundaries\x20selected','maka\x20g:api\x20todos','collection','checkMeteorPackage','withFixtures','1648AaEXYA','995697facENr','2695cjYHQQ','typeDefs.','REST\x20API','961532woQdhO','rest-api.','-api\x27;','pathFromApp','Resolvers\x20}\x20from\x20\x27','none','search','error','api/fixtures.js','Resolvers);\x0a\x0a','TypeDefs\x20}\x20from\x20\x27','TypeDefs);\x0a','injectIntoFile','engines','/graphql/resolvers','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','26348yncgiu','import\x20{\x20typeDefs\x20as\x20','if\x20\x5c(typeList','imports','server','2345667mlSEtk','mdg:validated-method','withGql','withRest','withPubs'];a70c=function(){return B;};return a70c();}Generator['create']({'name':a70y(0x1a4),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a70y(0x1a1),'validOpts':[a70y(0x155)],'examples':[a70y(0x161)]},async function(a,b){const z=a70y;try{const c=this[z(0x15a)]['getProjectConfig'](),d=[{'name':z(0x1a5),'value':'withMethods'},{'name':'Fixtures','value':z(0x164)},{'name':'Publications','value':z(0x183)}];c[z(0x177)][z(0x1a4)]===z(0x1a0)&&d[z(0x187)]({'name':z(0x169),'value':z(0x182)});c[z(0x177)]['graphql']===z(0x189)&&d[z(0x187)]({'name':'GraphQL','value':z(0x181)});const f={'type':'checkbox','name':'apiAnswers','message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[z(0x1a3)](f);g['length']===0x0&&(Log[z(0x171)](z(0x160)),process[z(0x196)](0x1)),this['fsi']['withValue'](c,async()=>{const A=z,h=this['fsi'][A(0x16d)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[A(0x155)]?'/'+b[A(0x155)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x177)][A(0x1a4)],'graphql':c['engines']['graphql'],'test':c['engines'][A(0x199)],'noRename':!![],'withPubs':g[A(0x197)]('withPubs'),'withFixtures':g[A(0x197)](A(0x164)),'withMethods':g['includes'](A(0x198)),'withRest':g[A(0x197)](A(0x182))};let n='js';c['engines']['js']===A(0x192)&&(n='ts');(!this[A(0x15a)][A(0x163)](A(0x18d))||!this[A(0x15a)][A(0x163)]('maka:check')||!this['fsi'][A(0x163)](A(0x190))||!this[A(0x15a)][A(0x163)](A(0x180))||!this[A(0x15a)][A(0x163)]('mongo'))&&(Log['notice'](A(0x18c)),await this[A(0x15a)][A(0x186)](A(0x179),{'cwd':h}));const o=a70e['findGenerator'](A(0x162));o&&await o['invoke']([j],{'config':c,'where':'server'});c[A(0x177)]['api']==='rest'&&(m['withRest']&&this['fsi']['template']({'srcPath':A(0x19a),'destPath':this[A(0x15a)][A(0x16d)]({'pathParts':['imports','api',b[A(0x155)],j,A(0x16b)+n]}),'context':m,'config':c}));m[A(0x198)]&&this[A(0x15a)][A(0x1a2)]({'srcPath':A(0x193),'destPath':this[A(0x15a)][A(0x16d)]({'pathParts':[A(0x17d),'api',b[A(0x155)],j,A(0x18f)+n]}),'context':m,'config':c});m[A(0x164)]&&this['fsi'][A(0x1a2)]({'srcPath':A(0x172),'destPath':this[A(0x15a)]['pathFromApp']({'pathParts':[A(0x17d),A(0x1a4),b['dir'],j,'fixtures.'+n]}),'context':m,'config':c});c[A(0x177)][A(0x199)]!==A(0x16f)&&this['fsi'][A(0x1a2)]({'srcPath':A(0x15c),'destPath':this[A(0x15a)][A(0x16d)]({'pathParts':['imports','api',b['dir'],j,j+A(0x194)+n]}),'context':m,'config':c});m[A(0x183)]&&this[A(0x15a)][A(0x1a2)]({'srcPath':A(0x1ab),'destPath':this[A(0x15a)]['pathFromApp']({'pathParts':[A(0x17d),A(0x1a4),b[A(0x155)],j,A(0x1a8)+n]}),'context':m,'config':c});if(c[A(0x177)]['graphql']===A(0x189)){if(g[A(0x197)]('withGql')){const q=this[A(0x15a)][A(0x16d)]({'pathParts':[A(0x17d),A(0x188),A(0x17e),A(0x191)+c[A(0x177)]['js']]}),r=this[A(0x15a)][A(0x15b)]({'pathParts':[q],'config':c}),s=this[A(0x15a)]['pathFromApp']({'pathParts':[A(0x17d),A(0x1a4),b['dir'],j,A(0x15d),A(0x168)+n]}),t=A(0x185)+l+j+A(0x19d);this[A(0x15a)][A(0x1a2)]({'srcPath':A(0x19e),'destPath':s,'context':m,'config':c}),this['fsi'][A(0x158)]({'filePath':r,'content':A(0x17b)+k+A(0x174)+t+A(0x19f)}),this[A(0x15a)][A(0x176)]({'filePath':r,'content':A(0x154)+k+A(0x175),'begin':A(0x157),'end':A(0x17c)});const u=this[A(0x15a)][A(0x16d)]({'pathParts':[A(0x17d),A(0x1a4),b[A(0x155)],j,A(0x15d),A(0x184)+n]}),v=A(0x185)+l+j+A(0x178);this['fsi'][A(0x1a2)]({'srcPath':A(0x18b),'destPath':u,'context':m,'config':c}),this[A(0x15a)]['injectAtBeginningOfFile']({'filePath':r,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+A(0x16e)+v+'\x27;'}),this[A(0x15a)][A(0x176)]({'filePath':r,'content':A(0x18e)+k+A(0x173),'begin':'const','end':A(0x17c)});}}this['fsi'][A(0x1a2)]({'srcPath':A(0x156),'destPath':this[A(0x15a)][A(0x16d)]({'pathParts':[A(0x17d),A(0x188),A(0x17e),A(0x18a)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this[A(0x15a)][A(0x16d)]({'pathParts':['imports',A(0x188),'server',A(0x191)+c[A(0x177)]['js']]});this[A(0x15a)][A(0x1a7)]({'filePath':p,'content':A(0x159)+j+A(0x16c)});});}catch(h){console[z(0x19b)](h),process[z(0x196)](0x0);}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a71n=a71d;(function(a,b){const k=a71d,c=a();while(!![]){try{const d=parseInt(k(0xa0))/0x1+-parseInt(k(0x9b))/0x2*(parseInt(k(0x8f))/0x3)+-parseInt(k(0x82))/0x4*(-parseInt(k(0x84))/0x5)+parseInt(k(0x90))/0x6*(-parseInt(k(0xa1))/0x7)+parseInt(k(0x94))/0x8*(-parseInt(k(0xa7))/0x9)+parseInt(k(0xa9))/0xa+-parseInt(k(0x8a))/0xb*(-parseInt(k(0x8e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x4f937));const a71b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a71d;if(c){const e=c[l(0x9e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a71a=a71b(this,function(){const m=a71d;return a71a[m(0x83)]()[m(0xb1)]('(((.+)+)+)+$')[m(0x83)]()[m(0x95)](a71a)[m(0xb1)](m(0xa2));});a71a();function a71c(){const q=['Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','resourceName','import\x20\x27./collections','test','installMeteorPackage','tsx','search','248oFZUZR','toString','34435SKBSGS','withValue','col','collections','where','engines','352SgYWuT','pathFromApp','injectAtEndOfFile','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','288552fHlJCE','3nSWCeE','5262WyqUmn','checkMeteorPackage','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','error','473328MTiijE','constructor','imports','template','fsi','getProjectConfig','notice','948610ZGEqvb','mongo','.app-tests.','apply','startup','417222RvmNIq','4984qzLzyv','(((.+)+)+)+$','collection/tests.js','index.','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','maka\x20g:collection\x20todos','54PbxXRi','maka:check','1659800zVyQpy','dir'];a71c=function(){return q;};return a71c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x82;let f=c[d];return f;},a71d(a,b);}Generator['create']({'name':'collection','aliases':[a71n(0x86)],'usage':a71n(0x92),'checkWhere':!![],'shortDesc':a71n(0xa5),'validOpts':[a71n(0xaa),a71n(0x88)],'description':'\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','examples':[a71n(0xa6)]},async function(a,b){const o=a71n;try{const c=this['fsi'][o(0x8b)]({}),d=this['fsi'][o(0x99)]();this['fsi'][o(0x85)](d,async()=>{const p=o,f=paramCase(b[p(0xac)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x88)],'test':d['engines']['test'],'noRename':!![]};let h='js';d[p(0x89)]['js']===p(0xb0)&&(h='ts');!this[p(0x98)][p(0x91)](p(0x9c))&&(Log[p(0x9a)](p(0x8d)),await this[p(0x98)]['installMeteorPackage'](p(0x9c),{'cwd':c}));!this['fsi']['checkMeteorPackage'](p(0xa8))&&(Log[p(0x9a)](p(0xab)),await this[p(0x98)][p(0xaf)](p(0xa8),{'cwd':c}));this[p(0x98)][p(0x97)]({'srcPath':'collection/collection.js','destPath':this[p(0x98)]['pathFromApp']({'pathParts':[p(0x96),p(0x9f),b['appPathPrefix'],p(0x87),b[p(0xaa)],f+'.'+h]}),'context':g,'config':d});d['engines'][p(0xae)]!=='none'&&this[p(0x98)][p(0x97)]({'srcPath':p(0xa3),'destPath':this[p(0x98)][p(0x8b)]({'pathParts':[p(0x96),p(0x9f),b['appPathPrefix'],'collections',b[p(0xaa)],f+p(0x9d)+h]}),'context':g,'config':d});const i=b[p(0xaa)]?'/'+b['dir']+'/':'/',j=this['fsi'][p(0x8b)]({'pathParts':[p(0x96),p(0x9f),b['appPathPrefix'],p(0xa4)+d['engines']['js']]});this[p(0x98)][p(0x8c)]({'filePath':j,'content':p(0xad)+i+f+'\x27;'});});}catch(f){Log[o(0x93)](f);}});
|