@maka/maka-cli 4.7.16 → 4.7.17
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/.eslintrc.json +29 -29
- package/.mocharc.json +3 -3
- package/README.md +21 -21
- package/bundle/obf/package.json +126 -126
- package/bundle/obf/src/README.md +21 -21
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/api/api.js +11 -11
- package/bundle/obf/src/templates/meteor/api/api.js.ts +11 -11
- package/bundle/obf/src/templates/meteor/api/collection.js +86 -86
- package/bundle/obf/src/templates/meteor/api/collection.js.ts +94 -94
- package/bundle/obf/src/templates/meteor/api/fixtures.js +23 -23
- package/bundle/obf/src/templates/meteor/api/fixtures.js.ts +23 -23
- package/bundle/obf/src/templates/meteor/api/methods.js +136 -136
- package/bundle/obf/src/templates/meteor/api/methods.js.ts +137 -137
- package/bundle/obf/src/templates/meteor/api/publications.js +31 -31
- package/bundle/obf/src/templates/meteor/api/publications.js.ts +31 -31
- package/bundle/obf/src/templates/meteor/api/register-api.js +15 -15
- package/bundle/obf/src/templates/meteor/api/register-api.js.ts +15 -15
- package/bundle/obf/src/templates/meteor/api/resolvers.js +9 -9
- package/bundle/obf/src/templates/meteor/api/resolvers.js.ts +9 -9
- package/bundle/obf/src/templates/meteor/api/tests.js +1 -1
- package/bundle/obf/src/templates/meteor/api/tests.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/api/typeDefs.js +5 -5
- package/bundle/obf/src/templates/meteor/api/typeDefs.js.ts +5 -5
- package/bundle/obf/src/templates/meteor/app/client/body.html +3 -3
- package/bundle/obf/src/templates/meteor/app/client/head.html +15 -15
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js +9 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.jsx +9 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.ts +9 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.tsx +9 -9
- package/bundle/obf/src/templates/meteor/app/client/main.js +13 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.jsx +13 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.ts +13 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.tsx +13 -13
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js +20 -20
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +117 -117
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.ts +20 -20
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +118 -118
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js +39 -39
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.jsx +48 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.ts +24 -24
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +48 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js +9 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.jsx +9 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.ts +9 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.tsx +9 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js +1 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +21 -21
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +21 -21
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +48 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +48 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js +1 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +152 -152
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +152 -152
- package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js +24 -24
- package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js.ts +24 -24
- package/bundle/obf/src/templates/meteor/app/lib/main.js +1 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.jsx +1 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.tsx +1 -1
- package/bundle/obf/src/templates/meteor/app/maka.d.ts +160 -160
- package/bundle/obf/src/templates/meteor/app/meteor.d.ts +955 -955
- package/bundle/obf/src/templates/meteor/app/public/manifest.json +27 -27
- package/bundle/obf/src/templates/meteor/app/public/sw.js +30 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.jsx +30 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.ts +30 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.tsx +30 -30
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js +179 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.jsx +179 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.ts +179 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.tsx +179 -179
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js +9 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.jsx +9 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.ts +9 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.tsx +9 -9
- package/bundle/obf/src/templates/meteor/app/server/main.js +11 -11
- package/bundle/obf/src/templates/meteor/app/server/main.js.jsx +11 -11
- package/bundle/obf/src/templates/meteor/app/server/main.js.ts +11 -11
- package/bundle/obf/src/templates/meteor/app/server/main.js.tsx +11 -11
- package/bundle/obf/src/templates/meteor/app/tsconfig.json +40 -40
- package/bundle/obf/src/templates/meteor/collection/collection.js +85 -85
- package/bundle/obf/src/templates/meteor/collection/collection.js.ts +97 -97
- package/bundle/obf/src/templates/meteor/collection/tests.js +27 -27
- package/bundle/obf/src/templates/meteor/collection/tests.js.ts +27 -27
- package/bundle/obf/src/templates/meteor/config/docker-compose.yaml +17 -17
- package/bundle/obf/src/templates/meteor/config/pm2.config.js +25 -25
- package/bundle/obf/src/templates/meteor/config/process.env +5 -5
- package/bundle/obf/src/templates/meteor/config/settings.json +11 -11
- package/bundle/obf/src/templates/meteor/config/ssh.json +6 -6
- package/bundle/obf/src/templates/meteor/dbc/config.js +70 -70
- package/bundle/obf/src/templates/meteor/dbc/config.js.ts +70 -70
- package/bundle/obf/src/templates/meteor/dbc/conn.js +37 -37
- package/bundle/obf/src/templates/meteor/dbc/conn.js.ts +37 -37
- package/bundle/obf/src/templates/meteor/dbc/register-dbc.js +3 -3
- package/bundle/obf/src/templates/meteor/dbc/register-dbc.js.ts +3 -3
- package/bundle/obf/src/templates/meteor/method/method.js +48 -48
- package/bundle/obf/src/templates/meteor/method/method.js.ts +48 -48
- package/bundle/obf/src/templates/meteor/package/package.js +37 -37
- package/bundle/obf/src/templates/meteor/package/package.js.jsx +37 -37
- package/bundle/obf/src/templates/meteor/package/package.js.ts +36 -36
- package/bundle/obf/src/templates/meteor/package/package.js.tsx +37 -37
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.jsx +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.ts +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.tsx +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.jsx +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.ts +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.tsx +5 -5
- package/bundle/obf/src/templates/meteor/project/.maka/config.json +29 -29
- package/bundle/obf/src/templates/meteor/project/README.md +1 -1
- package/bundle/obf/src/templates/meteor/project/build/README +4 -4
- package/bundle/obf/src/templates/meteor/project/gitignore +7 -7
- package/bundle/obf/src/templates/meteor/project/package.json +20 -20
- package/bundle/obf/src/templates/meteor/publish/publish.js +3 -3
- package/bundle/obf/src/templates/meteor/publish/publish.js.jsx +3 -3
- package/bundle/obf/src/templates/meteor/publish/publish.js.tsx +3 -3
- package/bundle/obf/src/templates/meteor/publish/publish.ts +3 -3
- package/bundle/obf/src/templates/meteor/service/logger/logger.js +27 -27
- package/bundle/obf/src/templates/meteor/service/logger/logger.js.ts +27 -27
- package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css +5 -5
- package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css.less +5 -5
- package/bundle/obf/src/templates/meteor/template/template-tests.js +1 -1
- package/bundle/obf/src/templates/meteor/template/template-tests.js.jsx +55 -55
- package/bundle/obf/src/templates/meteor/template/template-tests.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/template/template-tests.js.tsx +55 -55
- package/bundle/obf/src/templates/meteor/template/template.css +3 -3
- package/bundle/obf/src/templates/meteor/template/template.css.less +3 -3
- package/bundle/obf/src/templates/meteor/template/template.css.scss +3 -3
- package/bundle/obf/src/templates/meteor/template/template.html +5 -5
- package/bundle/obf/src/templates/meteor/template/template.js +20 -20
- package/bundle/obf/src/templates/meteor/template/template.js.jsx +77 -77
- package/bundle/obf/src/templates/meteor/template/template.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/template/template.js.tsx +89 -89
- package/bundle/obf/src/templates/react/component/component.css +6 -6
- package/bundle/obf/src/templates/react/component/component.css.less +6 -6
- package/bundle/obf/src/templates/react/component/component.css.scss +3 -3
- package/bundle/obf/src/templates/react/component/component.js.jsx +63 -63
- package/bundle/obf/src/templates/react/component/component.js.tsx +68 -68
- package/bundle/obf/src/templates/react/hook/hook.css +3 -3
- package/bundle/obf/src/templates/react/hook/hook.css.scss +3 -3
- package/bundle/obf/src/templates/react/hook/hook.js +1 -1
- package/bundle/obf/src/templates/react/hook/hook.js.jsx +24 -24
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +23 -23
- package/bundle/obf/src/templates/react/kit/esri/map/basic-map.js.jsx +27 -27
- package/bundle/obf/src/templates/react/kit/esri/map/basic-map.js.tsx +29 -29
- package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.jsx +41 -41
- package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.tsx +40 -40
- package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.jsx +118 -118
- package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.tsx +116 -116
- package/bundle/obf/src/templates/react/route/route.js +8 -8
- package/bundle/obf/src/templates/react/route/route.js.jsx +8 -8
- package/bundle/obf/src/templates/react/route/route.js.ts +8 -8
- package/bundle/obf/src/templates/react/route/route.js.tsx +8 -8
- package/bundle/obf/src/templates/react/test/test.js +1 -1
- package/bundle/obf/src/templates/react/test/test.js.jsx +41 -41
- package/bundle/obf/src/templates/react/test/test.js.ts +1 -1
- package/bundle/obf/src/templates/react/test/test.js.tsx +41 -41
- package/bundle/obf/src/templates/service/docker/Dockerfile +54 -54
- package/bundle/obf/src/templates/service/eslint/eslintrc.json +33 -33
- package/bundle/obf/src/templates/service/i18n/i18n.js +33 -33
- package/bundle/obf/src/templates/service/i18n/i18n.js.ts +33 -33
- package/bundle/obf/src/templates/service/i18n/locales.js +3 -3
- package/bundle/obf/src/templates/service/i18n/locales.js.ts +3 -3
- package/bundle/obf/src/templates/service/openssl/openssl.conf +22 -22
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/jest.config.js +11 -11
- package/obfuscator.json +29 -29
- package/package.json +126 -126
- package/tsconfig.json +23 -23
- package/.vs/VSWorkspaceState.json +0 -15
- package/.vs/maka-cli-src/FileContentIndex/18ca123b-cf4e-4263-8cf0-ed1624e8e918.vsidx +0 -0
- package/.vs/maka-cli-src/FileContentIndex/79ef20d9-272b-4d5b-9ece-bc61eda1bad6.vsidx +0 -0
- package/.vs/maka-cli-src/FileContentIndex/93947812-c77d-4667-aaed-3f9a0df8b484.vsidx +0 -0
- package/.vs/maka-cli-src/FileContentIndex/c4cbf57e-b360-4b2a-8b3d-fc8f800c195a.vsidx +0 -0
- package/.vs/maka-cli-src/FileContentIndex/c9d2ef23-4e6c-46eb-a405-3584022229ed.vsidx +0 -0
- package/.vs/maka-cli-src/config/applicationhost.config +0 -1016
- package/.vs/maka-cli-src/v17/.wsuo +0 -0
- package/.vs/maka-cli-src/v17/workspaceFileList.bin +0 -0
- package/.vs/slnx.sqlite +0 -0
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import i18n from 'i18next';
|
|
2
|
-
import { initReactI18next } from 'react-i18next';
|
|
3
|
-
import LanguageDetector from 'i18next-browser-languagedetector';
|
|
4
|
-
import * as resources from './locales'
|
|
5
|
-
|
|
6
|
-
i18n
|
|
7
|
-
// detect user language
|
|
8
|
-
// learn more: https://github.com/i18next/i18next-browser-languageDetector
|
|
9
|
-
.use(LanguageDetector)
|
|
10
|
-
// pass the i18n instance to react-i18next.
|
|
11
|
-
.use(initReactI18next)
|
|
12
|
-
// init i18next
|
|
13
|
-
// for all options read: https://www.i18next.com/overview/configuration-options
|
|
14
|
-
.init({
|
|
15
|
-
debug: false,
|
|
16
|
-
fallbackLng: 'en',
|
|
17
|
-
interpolation: {
|
|
18
|
-
escapeValue: false, // not needed for react as it escapes by default
|
|
19
|
-
},
|
|
20
|
-
resources: {
|
|
21
|
-
...Object.entries(resources).reduce(
|
|
22
|
-
(acc, [key, value]) => ({
|
|
23
|
-
...acc,
|
|
24
|
-
[key]: {
|
|
25
|
-
translation: value,
|
|
26
|
-
},
|
|
27
|
-
}),
|
|
28
|
-
{},
|
|
29
|
-
),
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export default i18n;
|
|
1
|
+
import i18n from 'i18next';
|
|
2
|
+
import { initReactI18next } from 'react-i18next';
|
|
3
|
+
import LanguageDetector from 'i18next-browser-languagedetector';
|
|
4
|
+
import * as resources from './locales'
|
|
5
|
+
|
|
6
|
+
i18n
|
|
7
|
+
// detect user language
|
|
8
|
+
// learn more: https://github.com/i18next/i18next-browser-languageDetector
|
|
9
|
+
.use(LanguageDetector)
|
|
10
|
+
// pass the i18n instance to react-i18next.
|
|
11
|
+
.use(initReactI18next)
|
|
12
|
+
// init i18next
|
|
13
|
+
// for all options read: https://www.i18next.com/overview/configuration-options
|
|
14
|
+
.init({
|
|
15
|
+
debug: false,
|
|
16
|
+
fallbackLng: 'en',
|
|
17
|
+
interpolation: {
|
|
18
|
+
escapeValue: false, // not needed for react as it escapes by default
|
|
19
|
+
},
|
|
20
|
+
resources: {
|
|
21
|
+
...Object.entries(resources).reduce(
|
|
22
|
+
(acc, [key, value]) => ({
|
|
23
|
+
...acc,
|
|
24
|
+
[key]: {
|
|
25
|
+
translation: value,
|
|
26
|
+
},
|
|
27
|
+
}),
|
|
28
|
+
{},
|
|
29
|
+
),
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export default i18n;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import i18n from 'i18next';
|
|
2
|
-
import { initReactI18next } from 'react-i18next';
|
|
3
|
-
import LanguageDetector from 'i18next-browser-languagedetector';
|
|
4
|
-
import * as resources from './locales'
|
|
5
|
-
|
|
6
|
-
i18n
|
|
7
|
-
// detect user language
|
|
8
|
-
// learn more: https://github.com/i18next/i18next-browser-languageDetector
|
|
9
|
-
.use(LanguageDetector)
|
|
10
|
-
// pass the i18n instance to react-i18next.
|
|
11
|
-
.use(initReactI18next)
|
|
12
|
-
// init i18next
|
|
13
|
-
// for all options read: https://www.i18next.com/overview/configuration-options
|
|
14
|
-
.init({
|
|
15
|
-
debug: false,
|
|
16
|
-
fallbackLng: 'en',
|
|
17
|
-
interpolation: {
|
|
18
|
-
escapeValue: false, // not needed for react as it escapes by default
|
|
19
|
-
},
|
|
20
|
-
resources: {
|
|
21
|
-
...Object.entries(resources).reduce(
|
|
22
|
-
(acc, [key, value]) => ({
|
|
23
|
-
...acc,
|
|
24
|
-
[key]: {
|
|
25
|
-
translation: value,
|
|
26
|
-
},
|
|
27
|
-
}),
|
|
28
|
-
{},
|
|
29
|
-
),
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export default i18n;
|
|
1
|
+
import i18n from 'i18next';
|
|
2
|
+
import { initReactI18next } from 'react-i18next';
|
|
3
|
+
import LanguageDetector from 'i18next-browser-languagedetector';
|
|
4
|
+
import * as resources from './locales'
|
|
5
|
+
|
|
6
|
+
i18n
|
|
7
|
+
// detect user language
|
|
8
|
+
// learn more: https://github.com/i18next/i18next-browser-languageDetector
|
|
9
|
+
.use(LanguageDetector)
|
|
10
|
+
// pass the i18n instance to react-i18next.
|
|
11
|
+
.use(initReactI18next)
|
|
12
|
+
// init i18next
|
|
13
|
+
// for all options read: https://www.i18next.com/overview/configuration-options
|
|
14
|
+
.init({
|
|
15
|
+
debug: false,
|
|
16
|
+
fallbackLng: 'en',
|
|
17
|
+
interpolation: {
|
|
18
|
+
escapeValue: false, // not needed for react as it escapes by default
|
|
19
|
+
},
|
|
20
|
+
resources: {
|
|
21
|
+
...Object.entries(resources).reduce(
|
|
22
|
+
(acc, [key, value]) => ({
|
|
23
|
+
...acc,
|
|
24
|
+
[key]: {
|
|
25
|
+
translation: value,
|
|
26
|
+
},
|
|
27
|
+
}),
|
|
28
|
+
{},
|
|
29
|
+
),
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export default i18n;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
example: 'Find me in {{page}}'
|
|
3
|
-
}
|
|
1
|
+
export default {
|
|
2
|
+
example: 'Find me in {{page}}'
|
|
3
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
example: 'Find me in {{page}}'
|
|
3
|
-
}
|
|
1
|
+
export default {
|
|
2
|
+
example: 'Find me in {{page}}'
|
|
3
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
[req]
|
|
2
|
-
prompt = no
|
|
3
|
-
distinguished_name = req_distinguished_name
|
|
4
|
-
req_extensions = v3_req
|
|
5
|
-
|
|
6
|
-
[req_distinguished_name]
|
|
7
|
-
C = US
|
|
8
|
-
ST = California
|
|
9
|
-
L = Los Angeles
|
|
10
|
-
O = Our Company Llc
|
|
11
|
-
#OU = Org Unit Name
|
|
12
|
-
CN = Our Company Llc
|
|
13
|
-
#emailAddress = email@example.com
|
|
14
|
-
|
|
15
|
-
[v3_req]
|
|
16
|
-
basicConstraints = CA:FALSE
|
|
17
|
-
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
|
|
18
|
-
subjectAltName = @alt_names
|
|
19
|
-
|
|
20
|
-
[alt_names]
|
|
21
|
-
DNS.1 = example.com
|
|
22
|
-
DNS.2 = www.example.com
|
|
1
|
+
[req]
|
|
2
|
+
prompt = no
|
|
3
|
+
distinguished_name = req_distinguished_name
|
|
4
|
+
req_extensions = v3_req
|
|
5
|
+
|
|
6
|
+
[req_distinguished_name]
|
|
7
|
+
C = US
|
|
8
|
+
ST = California
|
|
9
|
+
L = Los Angeles
|
|
10
|
+
O = Our Company Llc
|
|
11
|
+
#OU = Org Unit Name
|
|
12
|
+
CN = Our Company Llc
|
|
13
|
+
#emailAddress = email@example.com
|
|
14
|
+
|
|
15
|
+
[v3_req]
|
|
16
|
+
basicConstraints = CA:FALSE
|
|
17
|
+
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
|
|
18
|
+
subjectAltName = @alt_names
|
|
19
|
+
|
|
20
|
+
[alt_names]
|
|
21
|
+
DNS.1 = example.com
|
|
22
|
+
DNS.2 = www.example.com
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a126L=a126d;(function(a,b){const I=a126d,c=a();while(!![]){try{const d
|
|
1
|
+
const a126L=a126d;(function(a,b){const I=a126d,c=a();while(!![]){try{const d=-parseInt(I(0x153))/0x1+parseInt(I(0x12d))/0x2+-parseInt(I(0x111))/0x3+-parseInt(I(0x142))/0x4+-parseInt(I(0x147))/0x5+parseInt(I(0x15d))/0x6+parseInt(I(0x154))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x2944b));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a126d;if(c){const e=c[J(0x133)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const K=a126d;return a126a[K(0x11f)]()['search'](K(0x11d))[K(0x11f)]()['constructor'](a126a)['search'](K(0x11d));});a126a();import a126e from'path';function a126c(){const a3=['keys','getPro','parent','description','validateParams','Invalid\x20value\x20for\x20','error','558374vrmMpq','find','Please\x20choose\x20a\x20valid\x20value\x20for\x20','roles','Invalid\x20option:\x20','aliases','apply','formatToNamedParam','getShortName','shortDesc','options','match','singleLicense','isGenerator','includes','existsSync','Invalid\x20argument:\x20','homedir','length','remapShortToLong','domainLicense','537728fpAPjZ','isPro','env','dir','platform','268910atiUUS','_handler','You\x20must\x20have\x20','concat','join','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','AppData','Please\x20provide\x20a\x20value\x20for\x20','\x20version\x20','cwd','docker','ask','265780VaUXEk','969892ZRDccu','proGenerators','No\x20description\x20provided.','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','resourceName','isCommand','win32','No\x20usage\x20provided.','Please\x20choose\x20a\x20value\x20for\x20','1428144lsNOpU','98214xMGQtd','string','Please\x20choose\x20an\x20environment','fsi','exit','usage','examples','getAppProjectConfigs','indexOf','list','name','push','(((.+)+)+)+$','charAt','toString','.meteor','root','To\x20use\x20this\x20generator,\x20\x22','validateMakaSubscription','assign','validateEngines'];a126c=function(){return a3;};return a126c();}import a126f from'os';import a126g from'fs';const homeDir=a126f[a126L(0x13e)]();import{Docker}from'./tools/docker/docker.class.js';function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x111;let f=c[d];return f;},a126d(a,b);}import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{[a126L(0x151)];[a126L(0x114)];[a126L(0x137)];['name'];[a126L(0x128)];[a126L(0x148)];constructor(){const M=a126L;this['docker']=new Docker(),this[M(0x114)]=new FSI();}[a126L(0x135)](a){const N=a126L;return a[N(0x11e)](0x0);}[a126L(0x140)](a,b){const O=a126L,c=this[O(0x134)](b),d={...a};for(const e of c){const f=this['getShortName'](e[O(0x11b)]);a[f]&&(d[e[O(0x11b)]]=a[f],delete d[f]);}return d;}[a126L(0x134)](a){const P=a126L;if(a['every'](b=>typeof b===P(0x112)))return a['map'](b=>({'name':b}));return a;}[a126L(0x138)](a){const Q=a126L,b=[this[Q(0x11b)]][Q(0x14a)](this[Q(0x137)]['aliases']||[]);return this[Q(0x128)]&&b[Q(0x11c)](this[Q(0x128)]),b[Q(0x13b)](a);}['validateMakaProject'](){const R=a126L,a=this[R(0x114)]['findProjectDirectory']();return a!==![]?!![]:![];}['validateMeteorInstall'](){const S=a126L;let a=a126e[S(0x14b)](homeDir,S(0x120));const b=process[S(0x146)]===S(0x15a);if(b){a=a126e[S(0x14b)](homeDir,S(0x14d),'Local',S(0x120));if(!a126g[S(0x13c)](a))return![];}else{if(!a126g[S(0x13c)](a))return![];}return!![];}[a126L(0x125)](a){const T=a126L,b=this[T(0x114)]['getMakaProjectConfig'](),c=b['engines'],d=Object[T(0x126)](a);if(d[T(0x13f)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[T(0x12c)](T(0x149)+e+T(0x14f)+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async[a126L(0x12a)](a,b,c){const U=a126L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[U(0x126)](b);if(h[U(0x13b)](U(0x158))&&b[U(0x158)]===undefined&&!g){const m=await Actions[U(0x152)]('Please\x20provide\x20a\x20resource\x20name:');b[U(0x158)]=m;}let i=[],j=b;if(d){i=this[U(0x134)](d),j=this[U(0x140)](b,i);if(i&&i?.[U(0x13f)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object['keys'](j)[U(0x13b)](o)){if(o===U(0x144)){const r=this[U(0x114)][U(0x118)](),s=await Actions[U(0x137)]({'type':'list','name':U(0x144),'message':U(0x113),'choices':r});b[U(0x144)]=s[U(0x144)];}else{const t=p;if(t){const u=await Actions[U(0x137)]({'type':U(0x11a),'name':o,'message':U(0x15c)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[U(0x152)]('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v[U(0x138)](q))b[o]=v;else{Log[U(0x12c)](U(0x12b)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions['ask'](U(0x14e)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[U(0x13b)](x)){Log[U(0x12c)]('Invalid\x20value\x20for\x20'+o+':\x20'+x);throw new UsageError();}}}}let k=this[U(0x134)](f),l=b;if(k&&Object[U(0x126)](k)?.[U(0x13f)]>0x0){k=k[U(0x14a)](i||[]),k[U(0x11c)]({'name':'resourceName','hidden':!![]}),k['push']({'name':'help','boolFlag':!![]}),k[U(0x11c)]({'name':U(0x145),'hidden':!![]}),k[U(0x11c)]({'name':U(0x150),'hidden':!![]}),k[U(0x11c)]({'name':U(0x121),'hidden':!![]}),k[U(0x11c)]({'name':'config','hidden':!![]}),l=this['remapShortToLong'](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A['includes'](B))){const C=A;if(C){const D=await Actions['options']({'type':'list','name':z,'message':U(0x12f)+z,'choices':A});l[z]=D[z];}}if(k[U(0x13f)]>0x0)for(const E of Object[U(0x126)](l)){const F=k[U(0x12e)](G=>G['name']===E);if(!F){Log[U(0x12c)](U(0x131)+E);throw new UsageError();}}}}if(e&&e?.[U(0x13f)]>0x0)for(const G of e){if(!e[U(0x13b)](G)){Log[U(0x12c)](U(0x13d)+G);const H=await Actions['ask'](U(0x157)+G);a[a[U(0x119)](G)]=H;}}return Object[U(0x124)](j,l);}async[a126L(0x123)](a){const V=a126L;try{if(!a)return;const b=await this[V(0x114)][V(0x127)]();!b&&(Log[V(0x12c)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process['exit'](0x1));const c=!b?.['roles']['includes'](V(0x139))&&!b?.[V(0x130)][V(0x13b)](V(0x141));if(this[V(0x159)](a)){const d='To\x20use\x20this\x20command,\x20\x22'+a[V(0x11b)]+V(0x14c);if(a[V(0x137)]['disableAuthCheck'])return;const f=b?.['proCommands'][V(0x13b)](a[V(0x11b)])||b?.['proCommands'][V(0x13b)](a[V(0x128)]||'')||this[V(0x137)][V(0x143)];if(f&&c)throw d;}else{if(this[V(0x13a)](a)){const g=b?.[V(0x155)][V(0x13b)](a[V(0x11b)])||b?.[V(0x155)][V(0x13b)](a[V(0x128)]||'');if(g&&c)throw V(0x122)+a[V(0x11b)]+V(0x14c);}}}catch(h){Log[V(0x12c)](h),process[V(0x115)](0x1);}}[a126L(0x159)](a){const W=a126L;return W(0x137)in a;}[a126L(0x13a)](a){const X=a126L;return!(X(0x137)in a);}['description'](){const Y=a126L;return this[Y(0x137)][Y(0x129)]||this[Y(0x137)]['shortDesc']||Y(0x156);}[a126L(0x136)](){const Z=a126L;return this[Z(0x137)][Z(0x136)]||'NIE';}[a126L(0x116)](){const a0=a126L;return this['options'][a0(0x116)]||a0(0x15b);}[a126L(0x117)](){const a1=a126L;return this[a1(0x137)][a1(0x117)]||[];}[a126L(0x132)](){const a2=a126L;return this[a2(0x137)][a2(0x132)]||'None';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a127c(){const m=['54WQcWQA','2025234lFlgWa','confirm','prompt','152ARogDc','1546787AkTYGk','apply','search','constructor','answer','200VRJTpL','(((.+)+)+)+$','233216jzbCca','123564rcMecD','toString','694190bNoYEB','1281621UAiRzf','password','5srqVXQ','91196GXPfps'];a127c=function(){return m;};return a127c();}const a127j=a127d;function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x19a;let f=c[d];return f;},a127d(a,b);}(function(a,b){const f=a127d,c=a();while(!![]){try{const d=-parseInt(f(0x1ad))/0x1*(parseInt(f(0x1a7))/0x2)+-parseInt(f(0x1ab))/0x3+parseInt(f(0x19a))/0x4*(parseInt(f(0x1a5))/0x5)+parseInt(f(0x19c))/0x6+-parseInt(f(0x1a8))/0x7*(parseInt(f(0x19f))/0x8)+parseInt(f(0x19b))/0x9*(parseInt(f(0x1aa))/0xa)+parseInt(f(0x1a0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x708c3));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a127d;if(c){const e=c[g(0x1a1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const h=a127d;return a127a[h(0x1a9)]()[h(0x1a2)](h(0x1a6))[h(0x1a9)]()[h(0x1a3)](a127a)[h(0x1a2)](h(0x1a6));});a127a();import a127e from'inquirer';export class Actions{static async['ask'](a,b){const i=a127d,{answer:c}=await a127e[i(0x19e)]({'type':b?i(0x1ac):'input','name':i(0x1a4),'message':a});return c;}static async[a127j(0x19d)](a,b=![]){const k=a127j,{answer:c}=await a127e[k(0x19e)]({'type':k(0x19d),'name':k(0x1a4),'message':a,'default':b});return c;}static async['options'](a){const l=a127j,b=await a127e[l(0x19e)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a128s=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=-parseInt(p(0x132))/0x1*(parseInt(p(0x143))/0x2)+-parseInt(p(0x179))/0x3+parseInt(p(0x170))/0x4*(parseInt(p(0x124))/0x5)+parseInt(p(0x158))/0x6+-parseInt(p(0x149))/0x7*(-parseInt(p(0x17b))/0x8)+-parseInt(p(0x106))/0x9+parseInt(p(0x10a))/0xa*(-parseInt(p(0x113))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x79fce));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0x13c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0x188)]()[r(0x108)](r(0x148))[r(0x188)]()[r(0x174)](a128a)['search']('(((.+)+)+)+$');});a128a();import a128e from'fs';import a128f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xfb;let f=c[d];return f;},a128d(a,b);}import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';function a128c(){const V=['\x20INSTANCE_ID:\x20','.pem.txt','5415900vHTYRk','suggestion','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','instanceId','vpcId','AVAILABLE','deleteSecurityGroup','ingressRule','notice','type','running','\x20PRIV_IP:\x20','\x20STATUS:\x20','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','writeFileSync','Availability','env','KeyMaterial','GroupName','tags','Successfully\x20linked\x20EC2\x20instance\x20','error','name','tcp','4pLfXBf','HostedZones','instance','\x27\x20has\x20been\x20registered\x20successfully.','constructor','Name','forEach','deleteKeyPair','$metadata','784194SlqYkL','privateIp','112nMDGuF','\x20Status\x20Code:\x20','pop','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','Web\x20App','Error\x20creating\x20hosted\x20zone','fsi','terminated','success','chooseInstance','listHostedZonesByName','ask','description','toString','confirm','warn','ID:\x20','Instances','Error\x20linking\x20EC2\x20to\x20Route\x2053:','No\x20instances\x20found','ec2terminateInstance','statusCode','linkEC2ToRoute53','Pem\x20key\x20saved\x20to\x20','file://','721602nGSIGU','\x20PUB_IP:\x20','search','CidrBlock','50cPKaIw','RegistrationPrice','subnet','checkDomainAvailability','Value','exit','Instance\x20rebooted!','createFile','pem','200981QneSIi','The\x20domain\x20\x27','Please\x20choose\x20a\x20VPC:\x20[0]\x20','log','\x20ENV:\x20','config','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','userData','length','imageId','environment','httpStatusCode','now','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','$response','UPSERT','\x20NAME:\x20','1392775JsISRX','\x20opened!','parse','Port\x20','Error\x20fetching\x20domain\x20pricing:','KeyName','ec2describeKeys','UserData','changeResourceRecordSets','_keys','split','sgIds','Description:','chmod\x20400\x20','26FOQMPR','utf8','registerDomain','\x20CIDR:\x20','getSecurityGroups','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','cidr','ec2describeInstances','ssh.json','tag:created-by','apply','publicIp','push','maka-cli','getMakaProjectConfig','/dev/sdh','Error\x20generating\x20key\x20pair','45262OsVNjx','createKeyPair','sgPorts','Hosted\x20zone\x20created\x20successfully!','send','(((.+)+)+)+$','169897EdjJPc','ec2create','createKeyPairEC2Key','status','join','From\x20AWS:','find','Reservations','minCount','GroupId','ecrCreateRepository','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name'];a128c=function(){return V;};return a128c();}import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a128s(0x181)];constructor(){const t=a128s;this[t(0x181)]=new FSI();}async[a128s(0x153)](a){const u=a128s;try{const b={'repositoryName':a[u(0x16e)]},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0x147)](c);return d;}catch(f){Log[u(0x16d)](f);}}async['route53CreateHostedZone'](a){const v=a128s;try{const b={'CallerReference':''+Date[v(0x11f)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[v(0x147)](c),Log[v(0x183)](v(0x146));}catch(d){Log[v(0x16d)](v(0x180)),console[v(0x16d)](d);}}async[a128s(0x134)](a,b,c,d){const w=a128s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[w(0x147)](f),Log['notice'](w(0x114)+b+w(0x173));}catch(g){Log[w(0x16d)](w(0x155)),Log[w(0xfc)](w(0x14e)),console[w(0x16d)](w(0x17c)+g[w(0x121)][w(0x102)]),console['error']('\x20Error\x20Rason:\x20'+g[w(0x121)]['reason']);}}async[a128s(0x10d)](a){const x=a128s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0x147)](c),e=d[x(0x167)]===x(0x15d);if(e){const f=a[x(0x12e)]('.')[x(0x17d)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[x(0x147)](h);if(i&&i['Prices']&&i['Prices'][0x0]?.[x(0x10b)]){const j=i['Prices'][0x0][x(0x10b)];return{'available':e,'cost':j};}}catch(k){console['error'](x(0x128),k);}}return{'available':e};}async[a128s(0x103)](a,b,c){const y=a128s;try{const d=await route53[y(0x185)]({'DNSName':c});if(!d?.[y(0x171)])throw Log['error']('Could\x20not\x20find\x20hosted\x20zone');const e=d?.[y(0x171)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':y(0x122),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0x12c)](f),Log['notice'](y(0x16c)+a+'\x20to\x20'+c);}catch(g){console['error'](y(0xff),g);}}async[a128s(0x14a)](a){const z=a128s;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0x141),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0x11c)],'InstanceType':a[z(0x161)],'KeyName':a['key'],'MaxCount':a['maxCount'],'MinCount':a[z(0x151)],'SecurityGroupIds':a[z(0x12f)][z(0x12e)](','),'SubnetId':a[z(0x10c)],'TagSpecifications':[{'ResourceType':z(0x172),'Tags':a[z(0x16b)]}]};a['userData']&&(b[z(0x12b)]=z(0x105)+a[z(0x11a)]);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log[z(0x16d)](f);}}async[a128s(0x101)](a){const A=a128s;try{const b={'InstanceIds':[a[A(0x15b)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[A(0x16d)](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const B=a128s,c=this['fsi']['getAppConfigPath'](b),d=a128f[B(0x14d)](c,B(0x12d),a+B(0x157));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0x147)](g),i=h[B(0x169)];if(i){await this[B(0x181)][B(0x111)]({'filePath':d,'data':i}),execSync(B(0x131)+d,{'stdio':'ignore'});const j=this['fsi']['isFile'](d);if(j)return Log['success'](B(0x104)+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error(B(0x142));}catch(k){Log[B(0x16d)](k),process[B(0x10f)](0x1);}}async[a128s(0x15f)]({port:a,groupId:b}){const C=a128s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0x16f),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0x160)](C(0x127)+a+C(0x125)),await client[C(0x147)](d);}async['ec2createSG'](a){const D=a128s;try{a[D(0x187)]===''&&(a[D(0x187)]=await Actions[D(0x186)](D(0x130))||D(0x17f));const b={'Description':a[D(0x187)],'GroupName':a[D(0x16e)],'VpcId':a[D(0x15c)]},c=new CreateSecurityGroupCommand(b),d=await client[D(0x147)](c),{GroupId:f}=d;if(!d)throw new Error(D(0x120));f&&a[D(0x145)]['forEach'](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log['success']('Created:\x20'+f+D(0x123)+a['name']);}catch(g){return Log[D(0x16d)](g),![];}return!![];}async[a128s(0x12a)](a){const E=a128s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x147)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.[E(0x176)]((h,i)=>{const F=E;h['KeyName']&&b[F(0x13e)]({'id':i,'name':h[F(0x129)]});}),b[E(0x11b)]>0x0&&b['forEach'](h=>{const G=E;h[G(0x16e)]===a?.[G(0x159)]?Log['success']('ID:\x20'+h['id']+'\x20NAME:\x20'+h['name']):Log['notice'](G(0xfd)+h['id']+'\x20NAME:\x20'+h[G(0x16e)]);})):Log[E(0x16d)](E(0x165));}catch(h){Log[E(0x16d)](h);}return b;}async[a128s(0x177)](a){const H=a128s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x147)](c);}catch(d){Log['error'](d),process[H(0x10f)](0x1);}}async['ec2describeInstances'](){const I=a128s,a=[];try{const b={'Filters':[{'Name':I(0x13b),'Values':[I(0x13f)]}]},c=new DescribeInstancesCommand(b),d=await client[I(0x147)](c);d[I(0x150)]?.[I(0x176)]((f,g)=>{const J=I;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0xfe)][0x0],n=m?.[J(0x14f)](({Key:o})=>o===J(0x11d));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[J(0x175)],'name':l,'env':n?.[J(0x10e)]});}}),a['length']>0x0?a[I(0x176)](f=>{const K=I,g=K(0xfd)+f['id']+K(0x123)+f[K(0x16e)]+K(0x117)+f[K(0x168)]+K(0x164)+f[K(0x14c)]+K(0x156)+f[K(0x15b)]+K(0x107)+f[K(0x13d)]+K(0x163)+f[K(0x17a)];if(f[K(0x14c)]===K(0x182))Log[K(0x16d)](g);else f[K(0x14c)]===K(0x162)?Log[K(0x183)](g):Log['notice'](g);}):Log['error'](I(0x154));}catch(f){Log[I(0x16d)](f);}return a;}async['ec2rebootInstance'](a){const L=a128s;try{const b={'InstanceIds':[a[L(0x15b)]]},c=new RebootInstancesCommand(b),d=await client[L(0x147)](c);return d[L(0x178)][L(0x11e)]===0xc8&&Log[L(0x183)](L(0x110)),d;}catch(f){Log[L(0x16d)](f);}}async['chooseVPC'](){const M=a128s;let a='';Log['notice']('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[M(0x176)]((g,h)=>{const N=M;g['VpcId']&&g[N(0x109)]&&e['push']({'id':h,'vpcId':g['VpcId'],'cidr':g[N(0x109)]});});e['forEach'](function(g){const O=M;console[O(0x116)](O(0xfd)+g['id']+'\x20VPCID:\x20'+g[O(0x15c)]+O(0x135)+g[O(0x138)]);});const f=await Actions[M(0x186)](M(0x115))||0x0;e[M(0x176)](function(g){const P=M;g['id']==f&&(a=g[P(0x15c)],Log[P(0x183)](P(0x119)+a+'\x0a'));});if(a==='')return Log['error'](M(0x137)),'';return a;}async[a128s(0x184)](){const Q=a128s,a=await this[Q(0x139)]();if(a[Q(0x11b)]===0x0)return Log['error'](Q(0x100)),null;const b=await Actions[Q(0x186)](Q(0x17e));!b&&(Log[Q(0x16d)]('Invalid\x20choice'),process[Q(0x10f)](0x0));const c=a[Q(0x14f)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128s(0x144)]({env:a}){const R=a128s,b=this[R(0x181)][R(0x140)](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0x186)]('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[R(0x14b)]({'keyName':f,'env':a});try{const h=await Actions[R(0xfb)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a128e['readFileSync'](a128f[R(0x14d)](R(0x118),a,R(0x13a)),R(0x133)),j=JSON[R(0x126)](i);j[R(0x112)]=a128f['join']('_keys',f+'.pem.txt'),a128e[R(0x166)](a128f[R(0x14d)](R(0x118),a,R(0x13a)),JSON['stringify'](j,null,0x2));}catch(k){Log[R(0x16d)](k),Log[R(0x16d)](R(0x15a));}}catch(l){Log[R(0x16d)](l),process['exit'](0x1);}return{'keyName':f,'filePath':g};}async[a128s(0x136)](a){const S=a128s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x147)](d),{SecurityGroups:f}=e;f&&f[S(0x176)](function(i,j){const T=S;i[T(0x16a)]&&i[T(0x152)]&&b[T(0x13e)]({'id':j,'name':i[T(0x16a)],'sgId':i[T(0x152)]});});let g='',h=0x0;return b['forEach'](function(i){i['name']===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128s(0x15e)](a){const U=a128s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[U(0x147)](c);}catch(d){Log[U(0x16d)](d),process[U(0x10f)](0x1);}}}
|
|
1
|
+
const a128t=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=parseInt(p(0x19f))/0x1*(-parseInt(p(0x132))/0x2)+-parseInt(p(0x192))/0x3*(parseInt(p(0x19d))/0x4)+-parseInt(p(0x15f))/0x5+parseInt(p(0x138))/0x6*(-parseInt(p(0x190))/0x7)+parseInt(p(0x17c))/0x8*(-parseInt(p(0x16b))/0x9)+parseInt(p(0x137))/0xa*(-parseInt(p(0x133))/0xb)+parseInt(p(0x134))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x7359d));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0x17e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0x14e)]()['search'](r(0x177))['toString']()[r(0x15e)](a128a)[r(0x1ac)]('(((.+)+)+)+$');});a128a();import a128e from'fs';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x126;let f=c[d];return f;},a128d(a,b);}import a128f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{['fsi'];constructor(){const s=a128d;this[s(0x198)]=new FSI();}async[a128t(0x14f)](a){const u=a128t;try{const b={'repositoryName':a[u(0x181)]},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0x162)](c);return d;}catch(f){Log['error'](f);}}async[a128t(0x158)](a){const v=a128t;try{const b={'CallerReference':''+Date[v(0x174)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[v(0x162)](c),Log[v(0x1aa)](v(0x180));}catch(d){Log[v(0x12f)](v(0x182)),console[v(0x12f)](d);}}async[a128t(0x150)](a,b,c,d){const w=a128t;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[w(0x162)](f),Log[w(0x144)](w(0x16d)+b+w(0x12b));}catch(g){Log[w(0x12f)]('There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name'),Log[w(0x199)](w(0x196)),console['error'](w(0x13d)+g[w(0x12c)][w(0x13b)]),console['error'](w(0x189)+g['$response'][w(0x140)]);}}async[a128t(0x16f)](a){const x=a128t,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0x162)](c),e=d[x(0x1a7)]==='AVAILABLE';if(e){const f=a[x(0x147)]('.')[x(0x17f)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i[x(0x13f)]&&i[x(0x13f)][0x0]?.[x(0x145)]){const j=i[x(0x13f)][0x0][x(0x145)];return{'available':e,'cost':j};}}catch(k){console[x(0x12f)](x(0x14b),k);}}return{'available':e};}async[a128t(0x17d)](a,b,c){const y=a128t;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.[y(0x166)])throw Log[y(0x12f)](y(0x167));const e=d?.[y(0x166)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53['changeResourceRecordSets'](f),Log[y(0x144)](y(0x13c)+a+y(0x142)+c);}catch(g){console[y(0x12f)]('Error\x20linking\x20EC2\x20to\x20Route\x2053:',g);}}async[a128t(0x1b0)](a){const z=a128t;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0x146),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0x1ab)],'InstanceType':a['type'],'KeyName':a[z(0x163)],'MaxCount':a[z(0x165)],'MinCount':a[z(0x1a1)],'SecurityGroupIds':a[z(0x152)][z(0x147)](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':z(0x12d),'Tags':a[z(0x14a)]}]};a[z(0x160)]&&(b['UserData']=z(0x129)+a['userData']);const c=new RunInstancesCommand(b),d=await client[z(0x162)](c);return d;}catch(f){Log['error'](f);}}async[a128t(0x15c)](a){try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log['error'](f),{};}}async[a128t(0x186)]({keyName:a,env:b}){const A=a128t,c=this[A(0x198)][A(0x197)](b),d=a128f[A(0x161)](c,A(0x153),a+A(0x19b));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client['send'](g),i=h[A(0x1a4)];if(i){await this[A(0x198)][A(0x148)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':A(0x183)});const j=this['fsi'][A(0x157)](d);if(j)return Log[A(0x1aa)](A(0x1af)+d),{'keyName':a,'filePath':d};else throw new Error(A(0x159));}else throw new Error(A(0x179));}catch(k){Log[A(0x12f)](k),process[A(0x130)](0x1);}}async[a128t(0x14d)]({port:a,groupId:b}){const B=a128t,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':B(0x18a),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[B(0x144)](B(0x168)+a+B(0x193)),await client['send'](d);}async[a128t(0x191)](a){const C=a128t;try{a[C(0x18f)]===''&&(a[C(0x18f)]=await Actions[C(0x188)](C(0x13e))||C(0x16a));const b={'Description':a[C(0x18f)],'GroupName':a[C(0x181)],'VpcId':a[C(0x18c)]},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(C(0x187));f&&a['sgPorts'][C(0x1a9)](g=>{const D=C;this[D(0x14d)]({'port':parseInt(g),'groupId':f});}),Log['success']('Created:\x20'+f+C(0x135)+a[C(0x181)]);}catch(g){return Log[C(0x12f)](g),![];}return!![];}async[a128t(0x18e)](a){const E=a128t,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x162)](d);if(!f)throw E(0x187);const {KeyPairs:g}=f;g?(g?.[E(0x1a9)]((h,i)=>{const F=E;h[F(0x172)]&&b[F(0x164)]({'id':i,'name':h[F(0x172)]});}),b[E(0x171)]>0x0&&b[E(0x1a9)](h=>{const G=E;h[G(0x181)]===a?.['suggestion']?Log[G(0x1aa)](G(0x1a3)+h['id']+'\x20NAME:\x20'+h[G(0x181)]):Log[G(0x144)](G(0x1a3)+h['id']+G(0x135)+h[G(0x181)]);})):Log[E(0x12f)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[E(0x12f)](h);}return b;}async[a128t(0x143)](a){const H=a128t;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x162)](c);}catch(d){Log[H(0x12f)](d),process[H(0x130)](0x1);}}async[a128t(0x173)](){const I=a128t,a=[];try{const b={'Filters':[{'Name':I(0x19e),'Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[I(0x162)](c);d['Reservations']?.[I(0x1a9)]((f,g)=>{const J=I;if(f?.[J(0x15d)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0x15d)][0x0],n=m?.[J(0x15b)](({Key:o})=>o===J(0x1a0));a[J(0x164)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[J(0x19c)],'name':l,'env':n?.[J(0x1ae)]});}}),a['length']>0x0?a[I(0x1a9)](f=>{const K=I,g=K(0x1a3)+f['id']+'\x20NAME:\x20'+f['name']+K(0x18d)+f[K(0x151)]+K(0x1ad)+f[K(0x184)]+K(0x178)+f['instanceId']+K(0x149)+f['publicIp']+K(0x169)+f['privateIp'];if(f[K(0x184)]===K(0x15a))Log[K(0x12f)](g);else f[K(0x184)]===K(0x141)?Log[K(0x1aa)](g):Log[K(0x144)](g);}):Log[I(0x12f)](I(0x195));}catch(f){Log['error'](f);}return a;}async[a128t(0x14c)](a){const L=a128t;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client[L(0x162)](c);return d[L(0x17a)][L(0x131)]===0xc8&&Log[L(0x1aa)](L(0x12e)),d;}catch(f){Log[L(0x12f)](f);}}async['chooseVPC'](){const M=a128t;let a='';Log[M(0x144)]('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client[M(0x162)](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const N=M;g[N(0x194)]&&g[N(0x1a6)]&&e[N(0x164)]({'id':h,'vpcId':g[N(0x194)],'cidr':g['CidrBlock']});});e['forEach'](function(g){const O=M;console['log'](O(0x1a3)+g['id']+O(0x176)+g[O(0x18c)]+'\x20CIDR:\x20'+g['cidr']);});const f=await Actions[M(0x188)](M(0x185))||0x0;e[M(0x1a9)](function(g){const P=M;g['id']==f&&(a=g[P(0x18c)],Log[P(0x1aa)](P(0x1a2)+a+'\x0a'));});if(a==='')return Log[M(0x12f)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';return a;}async[a128t(0x16c)](){const Q=a128t,a=await this[Q(0x173)]();if(a[Q(0x171)]===0x0)return Log['error'](Q(0x136)),null;const b=await Actions[Q(0x188)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[Q(0x12f)](Q(0x1a8)),process[Q(0x130)](0x0));const c=a[Q(0x15b)](({id:d})=>{return d==parseInt(b);})||null;return c;}async['createKeyPair']({env:a}){const R=a128t,b=this[R(0x198)]['getMakaProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0x188)](R(0x19a)+d+']\x20')||d,{filePath:g}=await this[R(0x186)]({'keyName':f,'env':a});try{const h=await Actions[R(0x17b)](R(0x13a),!![]);if(h)try{const i=a128e[R(0x16e)](a128f['join']('config',a,R(0x126)),R(0x1a5)),j=JSON[R(0x155)](i);j[R(0x128)]=a128f[R(0x161)]('_keys',f+'.pem.txt'),a128e[R(0x156)](a128f[R(0x161)](R(0x18b),a,R(0x126)),JSON[R(0x175)](j,null,0x2));}catch(k){Log[R(0x12f)](k),Log['error'](R(0x154));}}catch(l){Log['error'](l),process['exit'](0x1);}return{'keyName':f,'filePath':g};}async[a128t(0x139)](a){const S=a128t,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client['send'](d),{SecurityGroups:f}=e;f&&f[S(0x1a9)](function(i,j){const T=S;i[T(0x170)]&&i[T(0x127)]&&b['push']({'id':j,'name':i[T(0x170)],'sgId':i[T(0x127)]});});let g='',h=0x0;return b[S(0x1a9)](function(i){const U=S;i['name']===a&&(g=i[U(0x12a)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async['deleteSecurityGroup'](a){const V=a128t;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[V(0x162)](c);}catch(d){Log[V(0x12f)](d),process[V(0x130)](0x1);}}}function a128c(){const W=['httpStatusCode','81486NTamjO','3519439xVNQjE','45644448IpObsf','\x20NAME:\x20','No\x20instances\x20found','20EccNwE','408JsfSpl','getSecurityGroups','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','statusCode','Successfully\x20linked\x20EC2\x20instance\x20','\x20Status\x20Code:\x20','Description:','Prices','reason','running','\x20to\x20','deleteKeyPair','notice','RegistrationPrice','/dev/sdh','split','createFile','\x20PUB_IP:\x20','tags','Error\x20fetching\x20domain\x20pricing:','ec2rebootInstance','ingressRule','toString','ecrCreateRepository','registerDomain','env','sgIds','_keys','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','parse','writeFileSync','isFile','route53CreateHostedZone','Error\x20saving\x20pem\x20file,\x20aborting','terminated','find','ec2terminateInstance','Instances','constructor','3904920ksTBdY','userData','join','send','key','push','maxCount','HostedZones','Could\x20not\x20find\x20hosted\x20zone','Port\x20','\x20PRIV_IP:\x20','Web\x20App','636903sWZkgg','chooseInstance','The\x20domain\x20\x27','readFileSync','checkDomainAvailability','GroupName','length','KeyName','ec2describeInstances','now','stringify','\x20VPCID:\x20','(((.+)+)+)+$','\x20INSTANCE_ID:\x20','Error\x20generating\x20key\x20pair','$metadata','confirm','40ukByWP','linkEC2ToRoute53','apply','pop','Hosted\x20zone\x20created\x20successfully!','name','Error\x20creating\x20hosted\x20zone','ignore','status','Please\x20choose\x20a\x20VPC:\x20[0]\x20','createKeyPairEC2Key','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','ask','\x20Error\x20Rason:\x20','0.0.0.0/0','config','vpcId','\x20ENV:\x20','ec2describeKeys','description','61579zYCOBJ','ec2createSG','417GELRzz','\x20opened!','VpcId','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','From\x20AWS:','getAppConfigPath','fsi','warn','Key\x20Name:\x20[','.pem.txt','Name','24060hVdzqU','tag:created-by','3DaOUix','environment','minCount','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','ID:\x20','KeyMaterial','utf8','CidrBlock','Availability','Invalid\x20choice','forEach','success','imageId','search','\x20STATUS:\x20','Value','Pem\x20key\x20saved\x20to\x20','ec2create','ssh.json','GroupId','pem','file://','sgId','\x27\x20has\x20been\x20registered\x20successfully.','$response','instance','Instance\x20rebooted!','error','exit'];a128c=function(){return W;};return a128c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var k=a129d,c=a();while(!![]){try{var d=-parseInt(k(
|
|
1
|
+
function a129c(){var n=['70108QgMpCx','(((.+)+)+)+$','17889732amShzz','14576wtsVrI','search','toString','16zqOECC','3872600GmtiVj','1825bPhnJh','2689071kVwzGv','888342SfkvvX','apply','constructor','2716305yMHAnk'];a129c=function(){return n;};return a129c();}(function(a,b){var k=a129d,c=a();while(!![]){try{var d=-parseInt(k(0x1bf))/0x1*(-parseInt(k(0x1c5))/0x2)+parseInt(k(0x1be))/0x3+parseInt(k(0x1c2))/0x4*(parseInt(k(0x1b9))/0x5)+-parseInt(k(0x1bb))/0x6+-parseInt(k(0x1ba))/0x7+parseInt(k(0x1b8))/0x8+-parseInt(k(0x1c1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0xb9a9c));export var CountryCode;function a129d(a,b){var c=a129c();return a129d=function(d,e){d=d-0x1b8;var f=c[d];return f;},a129d(a,b);}(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a129d;if(h){var j=h[l(0x1bc)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a129d;return e[m(0x1c4)]()[m(0x1c3)](m(0x1c0))[m(0x1c4)]()[m(0x1bd)](e)[m(0x1c3)](m(0x1c0));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a130m=a130d;function
|
|
1
|
+
const a130m=a130d;function a130c(){const q=['1502960chDZPB','login','toString','AWS','30491262KemybQ','590875KVVBJm','search','join','pushImage','.dkr.ecr.','35OUBodn','5039830PodONS','509190fNmSSz','tag','--username','(((.+)+)+)+$','1005870FYcDdl','docker\x20','apply','error','4864236FdFfee','4YlBrRe','.amazonaws.com/','constructor','awsLogin','.amazonaws.com','--password-stdin','inherit'];a130c=function(){return q;};return a130c();}(function(a,b){const j=a130d,c=a();while(!![]){try{const d=-parseInt(j(0x18b))/0x1+parseInt(j(0x196))/0x2+parseInt(j(0x19a))/0x3*(-parseInt(j(0x19b))/0x4)+-parseInt(j(0x191))/0x5+-parseInt(j(0x192))/0x6*(-parseInt(j(0x190))/0x7)+-parseInt(j(0x186))/0x8+parseInt(j(0x18a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xdd72f));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a130d;if(c){const e=c[k(0x198)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const l=a130d;return a130a[l(0x188)]()[l(0x18c)](l(0x195))[l(0x188)]()[l(0x181)](a130a)['search']('(((.+)+)+)+$');});a130a();import{execSync}from'child_process';function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x180;let f=c[d];return f;},a130d(a,b);}import{Log}from'../log/log.class.js';export class Docker{static[a130m(0x193)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a130m;try{const f=['tag',a,b+n(0x18f)+c+n(0x180)+d],g=n(0x197)+f[n(0x18d)]('\x20'),h=execSync(g,{'stdio':n(0x185)})[n(0x188)]();return h;}catch(i){return Log[n(0x199)](i),'';}}static[a130m(0x182)]({awsAccountId:a,region:b}){const o=a130m;try{const c=[o(0x187),o(0x194),o(0x189),o(0x184),a+o(0x18f)+b+o(0x183)],d=o(0x197)+c['join']('\x20'),f=execSync(d,{'stdio':o(0x185)})[o(0x188)]();return f;}catch(g){return Log[o(0x199)](g),'';}}static[a130m(0x18e)]({awsAccountId:a,region:b,repoName:c}){const p=a130m;try{const d=['push',a+p(0x18f)+b+'.amazonaws.com/'+c],f=p(0x197)+d[p(0x18d)]('\x20'),g=execSync(f,{'stdio':p(0x185)})[p(0x188)]();return g;}catch(h){return Log['error'](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a131d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a131d,c=a();while(!![]){try{var d=parseInt(f(0x1be))/0x1+-parseInt(f(0x1c1))/0x2*(-parseInt(f(0x1c9))/0x3)+parseInt(f(0x1c7))/0x4+-parseInt(f(0x1c8))/0x5+parseInt(f(0x1c2))/0x6*(parseInt(f(0x1c0))/0x7)+-parseInt(f(0x1cb))/0x8*(parseInt(f(0x1c3))/0x9)+parseInt(f(0x1c6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x9c207));function a131c(){var i=['16BrwOfk','apply','75828JPBZEU','search','9121MXAbKX','30166bWkPvY','1398PaqmNt','5646573jBsrry','toString','constructor','19258280TFIfQV','2183104YkWvgU','5764105MpbJeD','39BXSxuC','(((.+)+)+)+$'];a131c=function(){return i;};return a131c();}var a131b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a131d;if(c){var e=c[g(0x1bd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){var h=a131d;return a131a[h(0x1c4)]()[h(0x1bf)](h(0x1ca))[h(0x1c4)]()[h(0x1c5)](a131a)[h(0x1bf)](h(0x1ca));});function a131d(a,b){var c=a131c();return a131d=function(d,e){d=d-0x1bd;var f=c[d];return f;},a131d(a,b);}a131a();export{};
|