@maka/maka-cli 4.7.12 → 4.7.14
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/.vs/VSWorkspaceState.json +15 -0
- package/.vs/maka-cli-src/FileContentIndex/18ca123b-cf4e-4263-8cf0-ed1624e8e918.vsidx +0 -0
- package/.vs/maka-cli-src/FileContentIndex/4c0a1daa-da96-4fc9-bf6f-ad5a9148b26c.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 +1016 -0
- 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
- package/README.md +21 -21
- package/bundle/obf/package.json +127 -127
- 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 +127 -127
- package/tsconfig.json +23 -23
|
@@ -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
|
-
|
|
1
|
+
function a126c(){const a0=['options','Local','search','platform','isGenerator','env','\x20installed\x20to\x20use\x20this\x20command.','resourceName','docker','validateEngines','roles','includes','toString','error','exit','NIE','assign','fsi','AppData','Invalid\x20value\x20for\x20','root','parent','Please\x20provide\x20a\x20value\x20for\x20','usage','ask','Invalid\x20option:\x20','win32','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','homedir','cwd','getShortName','find','validateParams','To\x20use\x20this\x20command,\x20\x22','getPro','formatToNamedParam','help','length','name','proGenerators','299515pTaHAA','list','2hNxJuf','every','indexOf','engines','65325uEdTjv','existsSync','1705390txrhEr','match','examples','No\x20usage\x20provided.','9348coQQeX','string','1400120ORyKVu','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','validateMeteorInstall','.meteor','push','getMakaProjectConfig','Please\x20choose\x20an\x20environment','\x20version\x20','proCommands','630UaFomb','disableAuthCheck','keys','config','To\x20use\x20this\x20generator,\x20\x22','(((.+)+)+)+$','None','isPro','findProjectDirectory','shortDesc','1255905gvyrSH','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','1360044udIhSj','Please\x20choose\x20a\x20value\x20for\x20','getAppProjectConfigs','remapShortToLong','isCommand','constructor','aliases','singleLicense'];a126c=function(){return a0;};return a126c();}const a126K=a126d;(function(a,b){const I=a126d,c=a();while(!![]){try{const d=parseInt(I(0x11b))/0x1*(parseInt(I(0x11d))/0x2)+-parseInt(I(0x121))/0x3+-parseInt(I(0xeb))/0x4+parseInt(I(0x123))/0x5+-parseInt(I(0x127))/0x6*(parseInt(I(0x132))/0x7)+parseInt(I(0x129))/0x8+-parseInt(I(0xe9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x2a7e9));const a126b=(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;};}()),a126a=a126b(this,function(){const J=a126d;return a126a[J(0xff)]()['search'](J(0xe4))[J(0xff)]()[J(0xf0)](a126a)[J(0xf5)](J(0xe4));});a126a();import a126e from'path';function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0xe1;let f=c[d];return f;},a126d(a,b);}import a126f from'os';import a126g from'fs';const homeDir=a126f[a126K(0x10f)]();import{Docker}from'./tools/docker/docker.class.js';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{[a126K(0xfb)];['fsi'];['options'];[a126K(0x119)];[a126K(0x108)];['_handler'];constructor(){const L=a126K;this[L(0xfb)]=new Docker(),this[L(0x104)]=new FSI();}[a126K(0x111)](a){return a['charAt'](0x0);}[a126K(0xee)](a,b){const M=a126K,c=this[M(0x116)](b),d={...a};for(const e of c){const f=this[M(0x111)](e[M(0x119)]);a[f]&&(d[e[M(0x119)]]=a[f],delete d[f]);}return d;}['formatToNamedParam'](a){const N=a126K;if(a[N(0x11e)](b=>typeof b===N(0x128)))return a['map'](b=>({'name':b}));return a;}[a126K(0x124)](a){const O=a126K,b=[this[O(0x119)]]['concat'](this[O(0xf3)][O(0xf1)]||[]);return this['parent']&&b['push'](this[O(0x108)]),b[O(0xfe)](a);}['validateMakaProject'](){const P=a126K,a=this[P(0x104)][P(0xe7)]();return a!==![]?!![]:![];}[a126K(0x12b)](){const Q=a126K;let a=a126e['join'](homeDir,Q(0x12c));const b=process[Q(0xf6)]===Q(0x10d);if(b){a=a126e['join'](homeDir,Q(0x105),Q(0xf4),Q(0x12c));if(!a126g[Q(0x122)](a))return![];}else{if(!a126g[Q(0x122)](a))return![];}return!![];}[a126K(0xfc)](a){const R=a126K,b=this[R(0x104)][R(0x12e)](),c=b[R(0x120)],d=Object[R(0xe1)](a);if(d['length']>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[R(0x100)]('You\x20must\x20have\x20'+e+R(0x130)+a[e]+R(0xf9));throw UsageError;}}}async[a126K(0x113)](a,b,c){const S=a126K,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[S(0xe1)](b);if(h[S(0xfe)](S(0xfa))&&b[S(0xfa)]===undefined&&!g){const m=await Actions[S(0x10b)]('Please\x20provide\x20a\x20resource\x20name:');b[S(0xfa)]=m;}let i=[],j=b;if(d){i=this[S(0x116)](d),j=this[S(0xee)](b,i);if(i&&i?.[S(0x118)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[S(0xe1)](j)[S(0xfe)](o)){if(o==='env'){const r=this[S(0x104)][S(0xed)](),s=await Actions[S(0xf3)]({'type':S(0x11c),'name':'env','message':S(0x12f),'choices':r});b['env']=s[S(0xf8)];}else{const t=p;if(t){const u=await Actions['options']({'type':S(0x11c),'name':o,'message':S(0xec)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions['ask'](S(0x109)+o);if(v['match'](q))b[o]=v;else{Log[S(0x100)]('Invalid\x20value\x20for\x20'+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions['ask']('Please\x20provide\x20a\x20value\x20for\x20'+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[S(0xfe)](x)){Log[S(0x100)](S(0x106)+o+':\x20'+x);throw new UsageError();}}}}let k=this['formatToNamedParam'](f),l=b;if(k&&Object[S(0xe1)](k)?.[S(0x118)]>0x0){k=k['concat'](i||[]),k['push']({'name':S(0xfa),'hidden':!![]}),k[S(0x12d)]({'name':S(0x117),'boolFlag':!![]}),k['push']({'name':'dir','hidden':!![]}),k[S(0x12d)]({'name':S(0x110),'hidden':!![]}),k[S(0x12d)]({'name':S(0x107),'hidden':!![]}),k['push']({'name':S(0xe2),'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[S(0xf3)]({'type':S(0x11c),'name':z,'message':'Please\x20choose\x20a\x20valid\x20value\x20for\x20'+z,'choices':A});l[z]=D[z];}}if(k['length']>0x0)for(const E of Object[S(0xe1)](l)){const F=k[S(0x112)](G=>G[S(0x119)]===E);if(!F){Log[S(0x100)](S(0x10c)+E);throw new UsageError();}}}}if(e&&e?.[S(0x118)]>0x0)for(const G of e){if(!e[S(0xfe)](G)){Log[S(0x100)]('Invalid\x20argument:\x20'+G);const H=await Actions[S(0x10b)](S(0x10e)+G);a[a[S(0x11f)](G)]=H;}}return Object[S(0x103)](j,l);}async['validateMakaSubscription'](a){const T=a126K;try{if(!a)return;const b=await this[T(0x104)][T(0x115)]();!b&&(Log[T(0x100)](T(0x12a)),process['exit'](0x1));const c=!b?.['roles'][T(0xfe)](T(0xf2))&&!b?.[T(0xfd)][T(0xfe)]('domainLicense');if(this[T(0xef)](a)){const d=T(0x114)+a['name']+T(0xea);if(a['options'][T(0x133)])return;const f=b?.[T(0x131)]['includes'](a[T(0x119)])||b?.['proCommands'][T(0xfe)](a['parent']||'')||this['options'][T(0xe6)];if(f&&c)throw d;}else{if(this[T(0xf7)](a)){const g=b?.[T(0x11a)][T(0xfe)](a[T(0x119)])||b?.[T(0x11a)][T(0xfe)](a[T(0x108)]||'');if(g&&c)throw T(0xe3)+a[T(0x119)]+T(0xea);}}}catch(h){Log[T(0x100)](h),process[T(0x101)](0x1);}}['isCommand'](a){const U=a126K;return U(0xf3)in a;}[a126K(0xf7)](a){return!('options'in a);}['description'](){const V=a126K;return this[V(0xf3)]['description']||this[V(0xf3)][V(0xe8)]||'No\x20description\x20provided.';}[a126K(0xe8)](){const W=a126K;return this['options'][W(0xe8)]||W(0x102);}[a126K(0x10a)](){const X=a126K;return this[X(0xf3)][X(0x10a)]||X(0x126);}[a126K(0x125)](){const Y=a126K;return this[Y(0xf3)][Y(0x125)]||[];}['aliases'](){const Z=a126K;return this[Z(0xf3)][Z(0xf1)]||Z(0xe5);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a127i=a127d;(function(a,b){const f=a127d,c=a();while(!![]){try{const d
|
|
1
|
+
const a127i=a127d;(function(a,b){const f=a127d,c=a();while(!![]){try{const d=parseInt(f(0x84))/0x1+-parseInt(f(0x7e))/0x2*(parseInt(f(0x85))/0x3)+parseInt(f(0x7c))/0x4+parseInt(f(0x7d))/0x5*(-parseInt(f(0x7b))/0x6)+-parseInt(f(0x86))/0x7+-parseInt(f(0x89))/0x8+parseInt(f(0x79))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x59ea9));function a127c(){const m=['prompt','confirm','constructor','250235JBVTta','3dLVkTX','1157891wvJWSA','search','ask','4307808YSpApz','answer','apply','toString','12513870iVJSKC','password','722334wVRoFF','364208BWwOsD','25txTpdh','115172yPZBEG','(((.+)+)+)+$','options'];a127c=function(){return m;};return a127c();}function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x78;let f=c[d];return f;},a127d(a,b);}const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a127d;if(c){const e=c[g(0x8b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const h=a127d;return a127a[h(0x78)]()[h(0x87)](h(0x7f))['toString']()[h(0x83)](a127a)[h(0x87)]('(((.+)+)+)+$');});a127a();import a127e from'inquirer';export class Actions{static async[a127i(0x88)](a,b){const j=a127i,{answer:c}=await a127e['prompt']({'type':b?j(0x7a):'input','name':j(0x8a),'message':a});return c;}static async[a127i(0x82)](a,b=![]){const k=a127i,{answer:c}=await a127e['prompt']({'type':k(0x82),'name':'answer','message':a,'default':b});return c;}static async[a127i(0x80)](a){const l=a127i,b=await a127e[l(0x81)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a128t=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=parseInt(p(0xf3))/0x1+parseInt(p(0x124))/0x2+-parseInt(p(0xd0))/0x3*(-parseInt(p(0xd3))/0x4)+-parseInt(p(0x14c))/0x5*(-parseInt(p(0xd4))/0x6)+parseInt(p(0x142))/0x7+parseInt(p(0xf5))/0x8*(-parseInt(p(0xd6))/0x9)+-parseInt(p(0x12e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x394e2));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0xf7)]()[r(0x13d)](r(0x128))[r(0xf7)]()[r(0x13b)](a128a)[r(0x13d)](r(0x128));});a128a();import a128e from'fs';import a128f from'path';function a128c(){const W=['ec2terminateInstance','file://','45633GdunuW','Prices','56VqHiaD','isFile','toString','KeyName','exit','success','reason','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','_keys','tags','imageId','ingressRule','config','AVAILABLE','Error\x20fetching\x20domain\x20pricing:','ask','instance','ec2create','ec2describeInstances','ssh.json','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','ID:\x20','pem','checkDomainAvailability','send','The\x20domain\x20\x27','now','name','pop','Invalid\x20choice','terminated','Pem\x20key\x20saved\x20to\x20','forEach','changeResourceRecordSets','push','From\x20AWS:','\x20INSTANCE_ID:\x20','error','fsi','writeFileSync','\x20CIDR:\x20','sgIds','apply','\x20PRIV_IP:\x20','KeyMaterial','warn','Reservations','260814JzksZt','\x20Error\x20Rason:\x20','sgId','userData','(((.+)+)+)+$','deleteSecurityGroup','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','Hosted\x20zone\x20created\x20successfully!','\x20VPCID:\x20','getMakaProjectConfig','3075130WrCaZs','registerDomain','ec2rebootInstance','ec2createSG','instanceId','subnet','sgPorts','parse','suggestion','join','createFile','Availability','vpcId','constructor','Web\x20App','search','\x27\x20has\x20been\x20registered\x20successfully.','\x20PUB_IP:\x20','UserData','Successfully\x20linked\x20EC2\x20instance\x20','627403WVZkas','Value','\x20NAME:\x20','**\x20Available\x20\x20VPCs\x20**','Could\x20not\x20find\x20hosted\x20zone','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','ecrCreateRepository','readFileSync','description','notice','680DJZVBH','\x20opened!','createKeyPair','httpStatusCode','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','16161HNbxdq','deleteKeyPair','/dev/sdh','180eQALce','15564raqCkY','RegistrationPrice','409671FgrPpC','createKeyPairEC2Key','Description:','utf8','minCount','route53CreateHostedZone','cidr','running','confirm','length','GroupId','key','maxCount','status','env','HostedZones','\x20ENV:\x20','linkEC2ToRoute53','chooseInstance','.pem.txt','Port\x20','getAppConfigPath','$response','CidrBlock','privateIp','Instances','Error\x20saving\x20pem\x20file,\x20aborting'];a128c=function(){return W;};return a128c();}import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xce;let f=c[d];return f;},a128d(a,b);}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(0x11b)]=new FSI();}async[a128t(0x148)](a){const u=a128t;try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient['send'](c);return d;}catch(f){Log[u(0x11a)](f);}}async[a128t(0xdb)](a){const v=a128t;try{const b={'CallerReference':''+Date[v(0x10f)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[v(0x10d)](c),Log[v(0xfa)](v(0x12b));}catch(d){Log[v(0x11a)]('Error\x20creating\x20hosted\x20zone'),console[v(0x11a)](d);}}async[a128t(0x12f)](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['send'](f),Log['notice'](w(0x10e)+b+w(0x13e));}catch(g){Log['error'](w(0xfc)),Log[w(0x122)](w(0x118)),console['error']('\x20Status\x20Code:\x20'+g[w(0xec)]['statusCode']),console[w(0x11a)](w(0x125)+g[w(0xec)][w(0xfb)]);}}async[a128t(0x10c)](a){const x=a128t,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0x10d)](c),e=d[x(0x139)]===x(0x102);if(e){const f=a['split']('.')[x(0x111)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[x(0x10d)](h);if(i&&i[x(0xf4)]&&i[x(0xf4)][0x0]?.[x(0xd5)]){const j=i[x(0xf4)][0x0][x(0xd5)];return{'available':e,'cost':j};}}catch(k){console[x(0x11a)](x(0x103),k);}}return{'available':e};}async[a128t(0xe7)](a,b,c){const y=a128t;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.[y(0xe5)])throw Log[y(0x11a)](y(0x146));const e=d?.[y(0xe5)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0x116)](f),Log[y(0x14b)](y(0x141)+a+'\x20to\x20'+c);}catch(g){console[y(0x11a)]('Error\x20linking\x20EC2\x20to\x20Route\x2053:',g);}}async[a128t(0x106)](a){const z=a128t;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0xd2),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0xff)],'InstanceType':a['type'],'KeyName':a[z(0xe1)],'MaxCount':a[z(0xe2)],'MinCount':a[z(0xda)],'SecurityGroupIds':a[z(0x11e)]['split'](','),'SubnetId':a[z(0x133)],'TagSpecifications':[{'ResourceType':z(0x105),'Tags':a[z(0xfe)]}]};a['userData']&&(b[z(0x140)]=z(0xf2)+a[z(0x127)]);const c=new RunInstancesCommand(b),d=await client[z(0x10d)](c);return d;}catch(f){Log[z(0x11a)](f);}}async[a128t(0xf1)](a){const A=a128t;try{const b={'InstanceIds':[a[A(0x132)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[A(0x11a)](f),{};}}async[a128t(0xd7)]({keyName:a,env:b}){const B=a128t,c=this[B(0x11b)][B(0xeb)](b),d=a128f[B(0x137)](c,B(0xfd),a+B(0xe9));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0x10d)](g),i=h[B(0x121)];if(i){await this[B(0x11b)][B(0x138)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':'ignore'});const j=this[B(0x11b)][B(0xf6)](d);if(j)return Log['success'](B(0x114)+d),{'keyName':a,'filePath':d};else throw new Error(B(0xf0));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log['error'](k),process[B(0xf9)](0x1);}}async[a128t(0x100)]({port:a,groupId:b}){const C=a128t,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0x14b)](C(0xea)+a+C(0x14d)),await client['send'](d);}async[a128t(0x131)](a){const D=a128t;try{a[D(0x14a)]===''&&(a[D(0x14a)]=await Actions['ask'](D(0xd8))||D(0x13c));const b={'Description':a[D(0x14a)],'GroupName':a[D(0x110)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client[D(0x10d)](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a[D(0x134)][D(0x115)](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log[D(0xfa)]('Created:\x20'+f+D(0x144)+a[D(0x110)]);}catch(g){return Log[D(0x11a)](g),![];}return!![];}async['ec2describeKeys'](a){const E=a128t,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x10d)](d);if(!f)throw E(0x12a);const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const F=E;h[F(0xf8)]&&b[F(0x117)]({'id':i,'name':h['KeyName']});}),b['length']>0x0&&b['forEach'](h=>{const G=E;h[G(0x110)]===a?.[G(0x136)]?Log[G(0xfa)](G(0x10a)+h['id']+'\x20NAME:\x20'+h[G(0x110)]):Log[G(0x14b)](G(0x10a)+h['id']+'\x20NAME:\x20'+h[G(0x110)]);})):Log[E(0x11a)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log['error'](h);}return b;}async[a128t(0xd1)](a){const H=a128t;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x10d)](c);}catch(d){Log[H(0x11a)](d),process[H(0xf9)](0x1);}}async[a128t(0x107)](){const I=a128t,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[I(0x10d)](c);d[I(0x123)]?.[I(0x115)]((f,g)=>{const J=I;if(f?.[J(0xef)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0xef)][0x0],n=m?.['find'](({Key:o})=>o==='environment');a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[J(0x143)]});}}),a[I(0xdf)]>0x0?a[I(0x115)](f=>{const K=I,g=K(0x10a)+f['id']+K(0x144)+f['name']+K(0xe6)+f[K(0xe4)]+'\x20STATUS:\x20'+f['status']+K(0x119)+f[K(0x132)]+K(0x13f)+f['publicIp']+K(0x120)+f[K(0xee)];if(f[K(0xe3)]===K(0x113))Log[K(0x11a)](g);else f[K(0xe3)]===K(0xdd)?Log['success'](g):Log[K(0x14b)](g);}):Log[I(0x11a)](I(0x147));}catch(f){Log[I(0x11a)](f);}return a;}async[a128t(0x130)](a){const L=a128t;try{const b={'InstanceIds':[a[L(0x132)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d['$metadata'][L(0xce)]===0xc8&&Log['success']('Instance\x20rebooted!'),d;}catch(f){Log['error'](f);}}async['chooseVPC'](){const M=a128t;let a='';Log[M(0x14b)](M(0x145));const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const N=M;g['VpcId']&&g['CidrBlock']&&e[N(0x117)]({'id':h,'vpcId':g['VpcId'],'cidr':g[N(0xed)]});});e[M(0x115)](function(g){const O=M;console['log'](O(0x10a)+g['id']+O(0x12c)+g[O(0x13a)]+O(0x11d)+g[O(0xdc)]);});const f=await Actions[M(0x104)]('Please\x20choose\x20a\x20VPC:\x20[0]\x20')||0x0;e[M(0x115)](function(g){const P=M;g['id']==f&&(a=g[P(0x13a)],Log[P(0xfa)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log[M(0x11a)](M(0xcf)),'';return a;}async[a128t(0xe8)](){const Q=a128t,a=await this[Q(0x107)]();if(a[Q(0xdf)]===0x0)return Log['error']('No\x20instances\x20found'),null;const b=await Actions[Q(0x104)](Q(0x109));!b&&(Log['error'](Q(0x112)),process[Q(0xf9)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128t(0x14e)]({env:a}){const R=a128t,b=this[R(0x11b)][R(0x12d)](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0x104)]('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[R(0xd7)]({'keyName':f,'env':a});try{const h=await Actions[R(0xde)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a128e[R(0x149)](a128f[R(0x137)](R(0x101),a,R(0x108)),R(0xd9)),j=JSON[R(0x135)](i);j[R(0x10b)]=a128f[R(0x137)](R(0xfd),f+R(0xe9)),a128e[R(0x11c)](a128f['join']('config',a,R(0x108)),JSON['stringify'](j,null,0x2));}catch(k){Log['error'](k),Log[R(0x11a)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(l){Log[R(0x11a)](l),process[R(0xf9)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const S=a128t,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x10d)](d),{SecurityGroups:f}=e;f&&f[S(0x115)](function(i,j){const T=S;i['GroupName']&&i[T(0xe0)]&&b[T(0x117)]({'id':j,'name':i['GroupName'],'sgId':i['GroupId']});});let g='',h=0x0;return b[S(0x115)](function(i){const U=S;i[U(0x110)]===a&&(g=i[U(0x126)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128t(0x129)](a){const V=a128t;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[V(0x10d)](c);}catch(d){Log[V(0x11a)](d),process['exit'](0x1);}}}
|
|
1
|
+
const a128r=a128d;function a128c(){const V=['instance','tcp','AVAILABLE','minCount','Error\x20linking\x20EC2\x20to\x20Route\x2053:','\x20opened!','changeResourceRecordSets','KeyMaterial','maka-cli','\x20Status\x20Code:\x20','deleteSecurityGroup','84080XzkSUZ','writeFileSync','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','\x20PRIV_IP:\x20','ssh.json','push','httpStatusCode','\x20VPCID:\x20','listHostedZonesByName','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','Please\x20choose\x20a\x20VPC:\x20[0]\x20','Key\x20Name:\x20[','\x20NAME:\x20','3306642hUgsKo','sgIds','ec2rebootInstance','2025zQWWdh','getMakaProjectConfig','notice','_keys','terminated','createKeyPairEC2Key','ignore','sgPorts','ID:\x20','instanceId','Web\x20App','chmod\x20400\x20','confirm','ask','find','ec2describeInstances','/dev/sdh','UserData','VpcId','386926ysklQZ','GroupName','chooseVPC','name','\x20ENV:\x20','description','subnet','getSecurityGroups','tags','Port\x20','warn','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','suggestion','now','file://','forEach','linkEC2ToRoute53','23468621obgMGG','9HxDQLo','ec2describeKeys','ec2terminateInstance','From\x20AWS:','key','UPSERT','log','createKeyPair','Error\x20generating\x20key\x20pair','7cJnBsP','deleteKeyPair','Instance\x20rebooted!','vpcId','Error\x20fetching\x20domain\x20pricing:','getAppConfigPath','success','Description:','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','status','Could\x20not\x20find\x20hosted\x20zone','userData','pop','KeyName','exit','send','\x20Error\x20Rason:\x20','Reservations','join','registerDomain','environment','(((.+)+)+)+$','reason','Prices','ec2createSG','running','HostedZones','length','imageId','config','$metadata','.pem.txt','53364BaQifQ','Error\x20creating\x20hosted\x20zone','425gGyDoe','publicIp','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','25790XsmVwG','isFile','No\x20instances\x20found','GroupId','search','Hosted\x20zone\x20created\x20successfully!','route53CreateHostedZone','ingressRule','toString','error','createFile','privateIp','Pem\x20key\x20saved\x20to\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','pem','Instances','ecrCreateRepository','57724aVPKUy','Invalid\x20choice','constructor','fsi','split','\x20STATUS:\x20','0.0.0.0/0'];a128c=function(){return V;};return a128c();}(function(a,b){const p=a128d,c=a();while(!![]){try{const d=parseInt(p(0xec))/0x1+-parseInt(p(0x137))/0x2*(-parseInt(p(0x149))/0x3)+parseInt(p(0x102))/0x4*(parseInt(p(0xee))/0x5)+-parseInt(p(0x121))/0x6*(-parseInt(p(0x152))/0x7)+-parseInt(p(0x114))/0x8+parseInt(p(0x124))/0x9*(parseInt(p(0xf1))/0xa)+-parseInt(p(0x148))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xcef85));const a128b=(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;};}()),a128a=a128b(this,function(){const q=a128d;return a128a[q(0xf9)]()[q(0xf5)](q(0x167))[q(0xf9)]()[q(0x104)](a128a)[q(0xf5)](q(0x167));});function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xe3;let f=c[d];return f;},a128d(a,b);}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';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{[a128r(0x105)];constructor(){const s=a128r;this[s(0x105)]=new FSI();}async[a128r(0x101)](a){const t=a128r;try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient[t(0x161)](c);return d;}catch(f){Log['error'](f);}}async[a128r(0xf7)](a){const u=a128r;try{const b={'CallerReference':''+Date[u(0x144)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[u(0x161)](c),Log[u(0x158)](u(0xf6));}catch(d){Log[u(0xfa)](u(0xed)),console[u(0xfa)](d);}}async[a128r(0x165)](a,b,c,d){const v=a128r;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[v(0x161)](f),Log['notice']('The\x20domain\x20\x27'+b+'\x27\x20has\x20been\x20registered\x20successfully.');}catch(g){Log[v(0xfa)](v(0x142)),Log[v(0x141)](v(0x14c)),console[v(0xfa)](v(0x112)+g['$response']['statusCode']),console[v(0xfa)](v(0x162)+g['$response'][v(0x168)]);}}async['checkDomainAvailability'](a){const w=a128r,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[w(0x161)](c),e=d['Availability']===w(0x10b);if(e){const f=a[w(0x106)]('.')[w(0x15e)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[w(0x161)](h);if(i&&i['Prices']&&i[w(0xe3)][0x0]?.['RegistrationPrice']){const j=i['Prices'][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console[w(0xfa)](w(0x156),k);}}return{'available':e};}async[a128r(0x147)](a,b,c){const x=a128r;try{const d=await route53[x(0x11c)]({'DNSName':c});if(!d?.['HostedZones'])throw Log[x(0xfa)](x(0x15c));const e=d?.[x(0xe6)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':x(0x14e),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[x(0x10f)](f),Log[x(0x126)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+'\x20to\x20'+c);}catch(g){console[x(0xfa)](x(0x10d),g);}}async['ec2create'](a){const y=a128r;try{const b={'BlockDeviceMappings':[{'DeviceName':y(0x134),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[y(0xe8)],'InstanceType':a['type'],'KeyName':a[y(0x14d)],'MaxCount':a['maxCount'],'MinCount':a[y(0x10c)],'SecurityGroupIds':a[y(0x122)][y(0x106)](','),'SubnetId':a[y(0x13d)],'TagSpecifications':[{'ResourceType':y(0x109),'Tags':a[y(0x13f)]}]};a[y(0x15d)]&&(b[y(0x135)]=y(0x145)+a['userData']);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log[y(0xfa)](f);}}async[a128r(0x14b)](a){const z=a128r;try{const b={'InstanceIds':[a[z(0x12d)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[z(0xfa)](f),{};}}async[a128r(0x129)]({keyName:a,env:b}){const A=a128r,c=this[A(0x105)][A(0x157)](b),d=a128f[A(0x164)](c,A(0x127),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[A(0x161)](g),i=h[A(0x110)];if(i){await this[A(0x105)][A(0xfb)]({'filePath':d,'data':i}),execSync(A(0x12f)+d,{'stdio':A(0x12a)});const j=this[A(0x105)][A(0xf2)](d);if(j)return Log[A(0x158)](A(0xfd)+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error(A(0x151));}catch(k){Log[A(0xfa)](k),process[A(0x160)](0x1);}}async['ingressRule']({port:a,groupId:b}){const B=a128r,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':B(0x10a),'IpRanges':[{'CidrIp':B(0x108),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[B(0x126)](B(0x140)+a+B(0x10e)),await client[B(0x161)](d);}async[a128r(0xe4)](a){const C=a128r;try{a[C(0x13c)]===''&&(a[C(0x13c)]=await Actions['ask'](C(0x159))||C(0x12e));const b={'Description':a[C(0x13c)],'GroupName':a[C(0x13a)],'VpcId':a[C(0x155)]},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(C(0x11d));f&&a[C(0x12b)][C(0x146)](g=>{const D=C;this[D(0xf8)]({'port':parseInt(g),'groupId':f});}),Log[C(0x158)]('Created:\x20'+f+'\x20NAME:\x20'+a['name']);}catch(g){return Log[C(0xfa)](g),![];}return!![];}async[a128r(0x14a)](a){const E=a128r,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x161)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const F=E;h[F(0x15f)]&&b[F(0x119)]({'id':i,'name':h['KeyName']});}),b[E(0xe7)]>0x0&&b[E(0x146)](h=>{const G=E;h[G(0x13a)]===a?.[G(0x143)]?Log['success'](G(0x12c)+h['id']+G(0x120)+h[G(0x13a)]):Log['notice'](G(0x12c)+h['id']+G(0x120)+h['name']);})):Log[E(0xfa)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[E(0xfa)](h);}return b;}async[a128r(0x153)](a){const H=a128r;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x161)](c);}catch(d){Log['error'](d),process[H(0x160)](0x1);}}async[a128r(0x133)](){const I=a128r,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':[I(0x111)]}]},c=new DescribeInstancesCommand(b),d=await client[I(0x161)](c);d[I(0x163)]?.[I(0x146)]((f,g)=>{const J=I;if(f?.[J(0x100)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0x100)][0x0],n=m?.[J(0x132)](({Key:o})=>o===J(0x166));a[J(0x119)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.['Value']});}}),a[I(0xe7)]>0x0?a[I(0x146)](f=>{const K=I,g=K(0x12c)+f['id']+K(0x120)+f[K(0x13a)]+K(0x13b)+f['env']+K(0x107)+f['status']+'\x20INSTANCE_ID:\x20'+f[K(0x12d)]+'\x20PUB_IP:\x20'+f[K(0xef)]+K(0x117)+f[K(0xfc)];if(f[K(0x15b)]===K(0x128))Log[K(0xfa)](g);else f['status']===K(0xe5)?Log[K(0x158)](g):Log[K(0x126)](g);}):Log['error'](I(0x15a));}catch(f){Log[I(0xfa)](f);}return a;}async[a128r(0x123)](a){const L=a128r;try{const b={'InstanceIds':[a[L(0x12d)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[L(0xea)][L(0x11a)]===0xc8&&Log[L(0x158)](L(0x154)),d;}catch(f){Log[L(0xfa)](f);}}async[a128r(0x139)](){const M=a128r;let a='';Log[M(0x126)]('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[M(0x146)]((g,h)=>{const N=M;g[N(0x136)]&&g['CidrBlock']&&e[N(0x119)]({'id':h,'vpcId':g[N(0x136)],'cidr':g['CidrBlock']});});e['forEach'](function(g){const O=M;console[O(0x14f)](O(0x12c)+g['id']+O(0x11b)+g[O(0x155)]+'\x20CIDR:\x20'+g['cidr']);});const f=await Actions[M(0x131)](M(0x11e))||0x0;e[M(0x146)](function(g){const P=M;g['id']==f&&(a=g[P(0x155)],Log[P(0x158)](P(0x116)+a+'\x0a'));});if(a==='')return Log[M(0xfa)](M(0xfe)),'';return a;}async['chooseInstance'](){const Q=a128r,a=await this[Q(0x133)]();if(a['length']===0x0)return Log[Q(0xfa)](Q(0xf3)),null;const b=await Actions[Q(0x131)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[Q(0xfa)](Q(0x103)),process[Q(0x160)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128r(0x150)]({env:a}){const R=a128r,b=this[R(0x105)][R(0x125)](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0x131)](R(0x11f)+d+']\x20')||d,{filePath:g}=await this[R(0x129)]({'keyName':f,'env':a});try{const h=await Actions[R(0x130)](R(0xf0),!![]);if(h)try{const i=a128e['readFileSync'](a128f[R(0x164)](R(0xe9),a,R(0x118)),'utf8'),j=JSON['parse'](i);j[R(0xff)]=a128f[R(0x164)](R(0x127),f+R(0xeb)),a128e[R(0x115)](a128f['join'](R(0xe9),a,R(0x118)),JSON['stringify'](j,null,0x2));}catch(k){Log[R(0xfa)](k),Log[R(0xfa)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(l){Log[R(0xfa)](l),process[R(0x160)](0x1);}return{'keyName':f,'filePath':g};}async[a128r(0x13e)](a){const S=a128r,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x161)](d),{SecurityGroups:f}=e;f&&f[S(0x146)](function(i,j){const T=S;i[T(0x138)]&&i[T(0xf4)]&&b['push']({'id':j,'name':i[T(0x138)],'sgId':i[T(0xf4)]});});let g='',h=0x0;return b[S(0x146)](function(i){i['name']===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128r(0x113)](a){const U=a128r;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[U(0xfa)](d),process[U(0x160)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var k=a129d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var k=a129d,c=a();while(!![]){try{var d=parseInt(k(0x1f0))/0x1+parseInt(k(0x1ee))/0x2+parseInt(k(0x1f2))/0x3+parseInt(k(0x1ed))/0x4+parseInt(k(0x1f3))/0x5*(-parseInt(k(0x1ec))/0x6)+-parseInt(k(0x1f1))/0x7+parseInt(k(0x1ea))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x9b5b0));function a129c(){var n=['916170vJTMPQ','search','2917264RJZGoh','apply','30niKUCW','4770172pCGOSL','366152OlBWWL','constructor','375085ThSraz','8728020jhOLPE','2052012alnOld'];a129c=function(){return n;};return a129c();}function a129d(a,b){var c=a129c();return a129d=function(d,e){d=d-0x1e9;var f=c[d];return f;},a129d(a,b);}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a129d;if(h){var j=h[l(0x1eb)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a129d;return e['toString']()[m(0x1e9)]('(((.+)+)+)+$')['toString']()[m(0x1ef)](e)[m(0x1e9)]('(((.+)+)+)+$');});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(a,b){const j=a130d,c=a();while(!![]){try{const d
|
|
1
|
+
const a130m=a130d;function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x19a;let f=c[d];return f;},a130d(a,b);}function a130c(){const q=['14179wwPnAz','(((.+)+)+)+$','7sdltmF','1944856KQAonp','awsLogin','1BesVot','tag','11130tiMluX','inherit','1114509JrFXOR','search','763062dLDVrt','constructor','.dkr.ecr.','docker\x20','.amazonaws.com/','apply','login','join','toString','1009612VPjvit','AWS','8387094qcpAyJ','8989326wQxCFW','5BVvaeN','--username','pushImage','error','push','.amazonaws.com'];a130c=function(){return q;};return a130c();}(function(a,b){const j=a130d,c=a();while(!![]){try{const d=-parseInt(j(0x19d))/0x1*(-parseInt(j(0x1a3))/0x2)+-parseInt(j(0x1a1))/0x3+-parseInt(j(0x1ac))/0x4*(parseInt(j(0x1b0))/0x5)+parseInt(j(0x1ae))/0x6+-parseInt(j(0x19a))/0x7*(-parseInt(j(0x19b))/0x8)+parseInt(j(0x1af))/0x9+-parseInt(j(0x19f))/0xa*(parseInt(j(0x1b6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xeb0b2));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a130d;if(c){const e=c[k(0x1a8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const l=a130d;return a130a[l(0x1ab)]()['search'](l(0x1b7))['toString']()[l(0x1a4)](a130a)[l(0x1a2)](l(0x1b7));});a130a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a130m(0x19e)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a130m;try{const f=['tag',a,b+n(0x1a5)+c+n(0x1a7)+d],g=n(0x1a6)+f[n(0x1aa)]('\x20'),h=execSync(g,{'stdio':'inherit'})['toString']();return h;}catch(i){return Log['error'](i),'';}}static[a130m(0x19c)]({awsAccountId:a,region:b}){const o=a130m;try{const c=[o(0x1a9),o(0x1b1),o(0x1ad),'--password-stdin',a+'.dkr.ecr.'+b+o(0x1b5)],d=o(0x1a6)+c[o(0x1aa)]('\x20'),f=execSync(d,{'stdio':'inherit'})['toString']();return f;}catch(g){return Log[o(0x1b3)](g),'';}}static[a130m(0x1b2)]({awsAccountId:a,region:b,repoName:c}){const p=a130m;try{const d=[p(0x1b4),a+p(0x1a5)+b+'.amazonaws.com/'+c],f=p(0x1a6)+d[p(0x1aa)]('\x20'),g=execSync(f,{'stdio':p(0x1a0)})['toString']();return g;}catch(h){return Log[p(0x1b3)](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a131d,c=a();while(!![]){try{var d=parseInt(f(0x81))/0x1*(parseInt(f(0x82))/0x2)+-parseInt(f(0x86))/0x3*(parseInt(f(0x7e))/0x4)+parseInt(f(0x7a))/0x5*(parseInt(f(0x87))/0x6)+parseInt(f(0x83))/0x7+parseInt(f(0x84))/0x8*(parseInt(f(0x85))/0x9)+parseInt(f(0x79))/0xa*(parseInt(f(0x7c))/0xb)+-parseInt(f(0x80))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0xf3bdf));function a131d(a,b){var c=a131c();return a131d=function(d,e){d=d-0x78;var f=c[d];return f;},a131d(a,b);}var a131b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a131d;if(c){var e=c[g(0x7f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){var h=a131d;return a131a['toString']()[h(0x7d)](h(0x78))[h(0x7b)]()['constructor'](a131a)[h(0x7d)](h(0x78));});function a131c(){var i=['toString','230879eAjYwN','search','4XeNQXg','apply','40107276mdpROB','1fhCZUA','2321038oXoDkr','11739847XQjNPz','8QgrxMc','7748199gYEgvE','3740547KsFQxt','31674MjwPCP','(((.+)+)+)+$','490yzzXPA','815VEzGCh'];a131c=function(){return i;};return a131c();}a131a();export{};
|