@maka/maka-cli 5.1.17 → 5.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/testCmd/_index.js +1 -1
- package/bundle/obf/src/commands/testCmd/jest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/testCmd/mocha.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/testCmd/test.command.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/uninstall.js +1 -1
- package/bundle/obf/src/commands/version/_index.js +1 -1
- package/bundle/obf/src/commands/version/list.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/version/use.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/version/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/react/test/test.js +1 -0
- package/bundle/obf/src/templates/react/test/test.js.jsx +38 -0
- package/bundle/obf/src/templates/react/test/test.js.ts +1 -0
- package/bundle/obf/src/templates/react/test/test.js.tsx +38 -0
- package/bundle/obf/src/templates/service/test/jest/jest.config.js +6 -0
- package/bundle/obf/src/templates/service/test/jest/jest.setup.js +7 -0
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
- package/test/integration/default.test.js +84 -0
- package/test/integration/fixtures/blaze/.maka/config.json +30 -0
- package/test/integration/fixtures/blaze/.tern-project +17 -0
- package/test/integration/fixtures/blaze/app/.meteor/.finished-upgraders +17 -0
- package/test/integration/fixtures/blaze/app/.meteor/.id +7 -0
- package/test/integration/fixtures/blaze/app/.meteor/packages +21 -0
- package/test/integration/fixtures/blaze/app/.meteor/platforms +2 -0
- package/test/integration/fixtures/blaze/app/.meteor/release +1 -0
- package/test/integration/fixtures/blaze/app/.meteor/versions +78 -0
- package/test/integration/fixtures/blaze/app/client/.gitkeep +1 -0
- package/test/integration/fixtures/blaze/app/client/body.html +2 -0
- package/test/integration/fixtures/blaze/app/client/head.html +8 -0
- package/test/integration/fixtures/blaze/app/client/main.js +1 -0
- package/test/integration/fixtures/blaze/app/imports/api/.gitkeep +1 -0
- package/test/integration/fixtures/blaze/app/imports/startup/client/index.js +3 -0
- package/test/integration/fixtures/blaze/app/imports/startup/client/routes.js +25 -0
- package/test/integration/fixtures/blaze/app/imports/startup/client/templates.js +15 -0
- package/test/integration/fixtures/blaze/app/imports/startup/lib/index.js +1 -0
- package/test/integration/fixtures/blaze/app/imports/startup/server/index.js +1 -0
- package/test/integration/fixtures/blaze/app/imports/ui/layouts/master-layout/master-layout.css +5 -0
- package/test/integration/fixtures/blaze/app/imports/ui/layouts/master-layout/master-layout.html +3 -0
- package/test/integration/fixtures/blaze/app/imports/ui/layouts/master-layout/master-layout.js +29 -0
- package/test/integration/fixtures/blaze/app/imports/ui/pages/home/home.css +5 -0
- package/test/integration/fixtures/blaze/app/imports/ui/pages/home/home.html +5 -0
- package/test/integration/fixtures/blaze/app/imports/ui/pages/home/home.js +53 -0
- package/test/integration/fixtures/blaze/app/imports/ui/pages/not-found/not-found.css +5 -0
- package/test/integration/fixtures/blaze/app/imports/ui/pages/not-found/not-found.html +5 -0
- package/test/integration/fixtures/blaze/app/imports/ui/pages/not-found/not-found.js +53 -0
- package/test/integration/fixtures/blaze/app/imports/ui/test-helpers.js +25 -0
- package/test/integration/fixtures/blaze/app/lib/.gitkeep +1 -0
- package/test/integration/fixtures/blaze/app/lib/main.js +1 -0
- package/test/integration/fixtures/blaze/app/packages/.gitkeep +1 -0
- package/test/integration/fixtures/blaze/app/private/.gitkeep +1 -0
- package/test/integration/fixtures/blaze/app/public/.gitkeep +1 -0
- package/test/integration/fixtures/blaze/app/public/favicon.ico +0 -0
- package/test/integration/fixtures/blaze/app/server/.gitkeep +1 -0
- package/test/integration/fixtures/blaze/app/server/main.js +1 -0
- package/test/integration/fixtures/blaze/bin/.gitkeep +1 -0
- package/test/integration/fixtures/blaze/build/.gitkeep +1 -0
- package/test/integration/fixtures/blaze/build/README +4 -0
- package/test/integration/fixtures/blaze/config/.gitkeep +1 -0
- package/test/integration/fixtures/blaze/config/development/env.sh +9 -0
- package/test/integration/fixtures/blaze/config/development/settings.json +6 -0
- package/test/integration/fixtures/blaze/config/production/env.sh +9 -0
- package/test/integration/fixtures/blaze/config/production/settings.json +6 -0
- package/test/integration/fixtures/blaze/config/staging/env.sh +9 -0
- package/test/integration/fixtures/blaze/config/staging/settings.json +6 -0
- package/test/integration/fixtures/react/.maka/config.json +30 -0
- package/test/integration/fixtures/react/.tern-project +17 -0
- package/test/integration/fixtures/react/app/.meteor/.finished-upgraders +17 -0
- package/test/integration/fixtures/react/app/.meteor/.id +7 -0
- package/test/integration/fixtures/react/app/.meteor/packages +21 -0
- package/test/integration/fixtures/react/app/.meteor/platforms +2 -0
- package/test/integration/fixtures/react/app/.meteor/release +1 -0
- package/test/integration/fixtures/react/app/.meteor/versions +78 -0
- package/test/integration/fixtures/react/app/client/.gitkeep +1 -0
- package/test/integration/fixtures/react/app/client/body.html +3 -0
- package/test/integration/fixtures/react/app/client/head.html +8 -0
- package/test/integration/fixtures/react/app/client/main.jsx +1 -0
- package/test/integration/fixtures/react/app/imports/api/.gitkeep +1 -0
- package/test/integration/fixtures/react/app/imports/startup/client/index.jsx +12 -0
- package/test/integration/fixtures/react/app/imports/startup/client/routes.jsx +24 -0
- package/test/integration/fixtures/react/app/imports/startup/client/templates.jsx +21 -0
- package/test/integration/fixtures/react/app/imports/startup/lib/index.jsx +1 -0
- package/test/integration/fixtures/react/app/imports/startup/server/index.jsx +1 -0
- package/test/integration/fixtures/react/app/imports/ui/layouts/master-layout/master-layout.css +5 -0
- package/test/integration/fixtures/react/app/imports/ui/layouts/master-layout/master-layout.jsx +28 -0
- package/test/integration/fixtures/react/app/imports/ui/pages/home/home.css +5 -0
- package/test/integration/fixtures/react/app/imports/ui/pages/home/home.jsx +29 -0
- package/test/integration/fixtures/react/app/imports/ui/pages/not-found/not-found.css +5 -0
- package/test/integration/fixtures/react/app/imports/ui/pages/not-found/not-found.jsx +29 -0
- package/test/integration/fixtures/react/app/imports/ui/test-helpers.jsx +1 -0
- package/test/integration/fixtures/react/app/lib/.gitkeep +1 -0
- package/test/integration/fixtures/react/app/lib/main.jsx +1 -0
- package/test/integration/fixtures/react/app/packages/.gitkeep +1 -0
- package/test/integration/fixtures/react/app/private/.gitkeep +1 -0
- package/test/integration/fixtures/react/app/public/.gitkeep +1 -0
- package/test/integration/fixtures/react/app/public/favicon.ico +0 -0
- package/test/integration/fixtures/react/app/server/.gitkeep +1 -0
- package/test/integration/fixtures/react/app/server/main.jsx +1 -0
- package/test/integration/fixtures/react/bin/.gitkeep +1 -0
- package/test/integration/fixtures/react/build/.gitkeep +1 -0
- package/test/integration/fixtures/react/build/README +4 -0
- package/test/integration/fixtures/react/config/.gitkeep +1 -0
- package/test/integration/fixtures/react/config/development/env.sh +9 -0
- package/test/integration/fixtures/react/config/development/settings.json +6 -0
- package/test/integration/fixtures/react/config/production/env.sh +9 -0
- package/test/integration/fixtures/react/config/production/settings.json +6 -0
- package/test/integration/fixtures/react/config/staging/env.sh +9 -0
- package/test/integration/fixtures/react/config/staging/settings.json +6 -0
- package/test/integration/fixtures/react-apollo/.maka/config.json +30 -0
- package/test/integration/fixtures/react-apollo/.tern-project +17 -0
- package/test/integration/fixtures/react-apollo/app/.meteor/.finished-upgraders +17 -0
- package/test/integration/fixtures/react-apollo/app/.meteor/.id +7 -0
- package/test/integration/fixtures/react-apollo/app/.meteor/packages +21 -0
- package/test/integration/fixtures/react-apollo/app/.meteor/platforms +2 -0
- package/test/integration/fixtures/react-apollo/app/.meteor/release +1 -0
- package/test/integration/fixtures/react-apollo/app/.meteor/versions +78 -0
- package/test/integration/fixtures/react-apollo/app/client/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo/app/client/body.html +3 -0
- package/test/integration/fixtures/react-apollo/app/client/head.html +8 -0
- package/test/integration/fixtures/react-apollo/app/client/main.jsx +1 -0
- package/test/integration/fixtures/react-apollo/app/imports/api/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo/app/imports/startup/client/index.jsx +20 -0
- package/test/integration/fixtures/react-apollo/app/imports/startup/client/routes.jsx +24 -0
- package/test/integration/fixtures/react-apollo/app/imports/startup/client/templates.jsx +21 -0
- package/test/integration/fixtures/react-apollo/app/imports/startup/lib/index.jsx +1 -0
- package/test/integration/fixtures/react-apollo/app/imports/startup/server/index.jsx +25 -0
- package/test/integration/fixtures/react-apollo/app/imports/ui/layouts/master-layout/master-layout.css +5 -0
- package/test/integration/fixtures/react-apollo/app/imports/ui/layouts/master-layout/master-layout.jsx +28 -0
- package/test/integration/fixtures/react-apollo/app/imports/ui/pages/home/home.css +5 -0
- package/test/integration/fixtures/react-apollo/app/imports/ui/pages/home/home.jsx +34 -0
- package/test/integration/fixtures/react-apollo/app/imports/ui/pages/not-found/not-found.css +5 -0
- package/test/integration/fixtures/react-apollo/app/imports/ui/pages/not-found/not-found.jsx +34 -0
- package/test/integration/fixtures/react-apollo/app/imports/ui/test-helpers.jsx +1 -0
- package/test/integration/fixtures/react-apollo/app/lib/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo/app/lib/main.jsx +1 -0
- package/test/integration/fixtures/react-apollo/app/packages/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo/app/private/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo/app/public/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo/app/public/favicon.ico +0 -0
- package/test/integration/fixtures/react-apollo/app/server/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo/app/server/main.jsx +1 -0
- package/test/integration/fixtures/react-apollo/bin/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo/build/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo/build/README +4 -0
- package/test/integration/fixtures/react-apollo/config/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo/config/development/env.sh +9 -0
- package/test/integration/fixtures/react-apollo/config/development/settings.json +6 -0
- package/test/integration/fixtures/react-apollo/config/production/env.sh +9 -0
- package/test/integration/fixtures/react-apollo/config/production/settings.json +6 -0
- package/test/integration/fixtures/react-apollo/config/staging/env.sh +9 -0
- package/test/integration/fixtures/react-apollo/config/staging/settings.json +6 -0
- package/test/integration/fixtures/react-apollo-ssr/.maka/config.json +30 -0
- package/test/integration/fixtures/react-apollo-ssr/.tern-project +17 -0
- package/test/integration/fixtures/react-apollo-ssr/app/.meteor/.finished-upgraders +17 -0
- package/test/integration/fixtures/react-apollo-ssr/app/.meteor/.id +7 -0
- package/test/integration/fixtures/react-apollo-ssr/app/.meteor/packages +21 -0
- package/test/integration/fixtures/react-apollo-ssr/app/.meteor/platforms +2 -0
- package/test/integration/fixtures/react-apollo-ssr/app/.meteor/release +1 -0
- package/test/integration/fixtures/react-apollo-ssr/app/.meteor/versions +78 -0
- package/test/integration/fixtures/react-apollo-ssr/app/client/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo-ssr/app/client/body.html +3 -0
- package/test/integration/fixtures/react-apollo-ssr/app/client/head.html +8 -0
- package/test/integration/fixtures/react-apollo-ssr/app/client/main.jsx +1 -0
- package/test/integration/fixtures/react-apollo-ssr/app/imports/api/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo-ssr/app/imports/startup/client/index.jsx +29 -0
- package/test/integration/fixtures/react-apollo-ssr/app/imports/startup/lib/index.jsx +1 -0
- package/test/integration/fixtures/react-apollo-ssr/app/imports/startup/lib/routes.jsx +21 -0
- package/test/integration/fixtures/react-apollo-ssr/app/imports/startup/lib/templates.jsx +21 -0
- package/test/integration/fixtures/react-apollo-ssr/app/imports/startup/server/index.jsx +65 -0
- package/test/integration/fixtures/react-apollo-ssr/app/imports/ui/layouts/master-layout/master-layout.jsx +27 -0
- package/test/integration/fixtures/react-apollo-ssr/app/imports/ui/pages/home/home.jsx +33 -0
- package/test/integration/fixtures/react-apollo-ssr/app/imports/ui/pages/not-found/not-found.jsx +33 -0
- package/test/integration/fixtures/react-apollo-ssr/app/imports/ui/test-helpers.jsx +1 -0
- package/test/integration/fixtures/react-apollo-ssr/app/lib/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo-ssr/app/lib/main.jsx +1 -0
- package/test/integration/fixtures/react-apollo-ssr/app/packages/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo-ssr/app/private/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo-ssr/app/public/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo-ssr/app/public/favicon.ico +0 -0
- package/test/integration/fixtures/react-apollo-ssr/app/server/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo-ssr/app/server/main.jsx +1 -0
- package/test/integration/fixtures/react-apollo-ssr/bin/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo-ssr/build/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo-ssr/build/README +4 -0
- package/test/integration/fixtures/react-apollo-ssr/config/.gitkeep +1 -0
- package/test/integration/fixtures/react-apollo-ssr/config/development/env.sh +9 -0
- package/test/integration/fixtures/react-apollo-ssr/config/development/settings.json +6 -0
- package/test/integration/fixtures/react-apollo-ssr/config/production/env.sh +9 -0
- package/test/integration/fixtures/react-apollo-ssr/config/production/settings.json +6 -0
- package/test/integration/fixtures/react-apollo-ssr/config/staging/env.sh +9 -0
- package/test/integration/fixtures/react-apollo-ssr/config/staging/settings.json +6 -0
- package/test/integration/fixtures/react-material/.maka/config.json +30 -0
- package/test/integration/fixtures/react-material/.tern-project +17 -0
- package/test/integration/fixtures/react-material/app/.meteor/.finished-upgraders +17 -0
- package/test/integration/fixtures/react-material/app/.meteor/.id +7 -0
- package/test/integration/fixtures/react-material/app/.meteor/packages +21 -0
- package/test/integration/fixtures/react-material/app/.meteor/platforms +2 -0
- package/test/integration/fixtures/react-material/app/.meteor/release +1 -0
- package/test/integration/fixtures/react-material/app/.meteor/versions +78 -0
- package/test/integration/fixtures/react-material/app/client/.gitkeep +1 -0
- package/test/integration/fixtures/react-material/app/client/body.html +3 -0
- package/test/integration/fixtures/react-material/app/client/head.html +8 -0
- package/test/integration/fixtures/react-material/app/client/main.jsx +1 -0
- package/test/integration/fixtures/react-material/app/imports/api/.gitkeep +1 -0
- package/test/integration/fixtures/react-material/app/imports/startup/client/index.jsx +19 -0
- package/test/integration/fixtures/react-material/app/imports/startup/client/routes.jsx +24 -0
- package/test/integration/fixtures/react-material/app/imports/startup/client/templates.jsx +21 -0
- package/test/integration/fixtures/react-material/app/imports/startup/lib/index.jsx +1 -0
- package/test/integration/fixtures/react-material/app/imports/startup/server/index.jsx +1 -0
- package/test/integration/fixtures/react-material/app/imports/ui/layouts/master-layout/master-layout.css +5 -0
- package/test/integration/fixtures/react-material/app/imports/ui/layouts/master-layout/master-layout.jsx +28 -0
- package/test/integration/fixtures/react-material/app/imports/ui/pages/home/home.css +5 -0
- package/test/integration/fixtures/react-material/app/imports/ui/pages/home/home.jsx +29 -0
- package/test/integration/fixtures/react-material/app/imports/ui/pages/not-found/not-found.css +5 -0
- package/test/integration/fixtures/react-material/app/imports/ui/pages/not-found/not-found.jsx +29 -0
- package/test/integration/fixtures/react-material/app/imports/ui/test-helpers.jsx +1 -0
- package/test/integration/fixtures/react-material/app/lib/.gitkeep +1 -0
- package/test/integration/fixtures/react-material/app/lib/main.jsx +1 -0
- package/test/integration/fixtures/react-material/app/packages/.gitkeep +1 -0
- package/test/integration/fixtures/react-material/app/private/.gitkeep +1 -0
- package/test/integration/fixtures/react-material/app/public/.gitkeep +1 -0
- package/test/integration/fixtures/react-material/app/public/favicon.ico +0 -0
- package/test/integration/fixtures/react-material/app/server/.gitkeep +1 -0
- package/test/integration/fixtures/react-material/app/server/main.jsx +1 -0
- package/test/integration/fixtures/react-material/bin/.gitkeep +1 -0
- package/test/integration/fixtures/react-material/build/.gitkeep +1 -0
- package/test/integration/fixtures/react-material/build/README +4 -0
- package/test/integration/fixtures/react-material/config/.gitkeep +1 -0
- package/test/integration/fixtures/react-material/config/development/env.sh +9 -0
- package/test/integration/fixtures/react-material/config/development/settings.json +6 -0
- package/test/integration/fixtures/react-material/config/production/env.sh +9 -0
- package/test/integration/fixtures/react-material/config/production/settings.json +6 -0
- package/test/integration/fixtures/react-material/config/staging/env.sh +9 -0
- package/test/integration/fixtures/react-material/config/staging/settings.json +6 -0
- package/test/integration/fixtures/react-ssr/.maka/config.json +30 -0
- package/test/integration/fixtures/react-ssr/.tern-project +17 -0
- package/test/integration/fixtures/react-ssr/app/.meteor/.finished-upgraders +17 -0
- package/test/integration/fixtures/react-ssr/app/.meteor/.id +7 -0
- package/test/integration/fixtures/react-ssr/app/.meteor/packages +21 -0
- package/test/integration/fixtures/react-ssr/app/.meteor/platforms +2 -0
- package/test/integration/fixtures/react-ssr/app/.meteor/release +1 -0
- package/test/integration/fixtures/react-ssr/app/.meteor/versions +78 -0
- package/test/integration/fixtures/react-ssr/app/client/.gitkeep +1 -0
- package/test/integration/fixtures/react-ssr/app/client/body.html +3 -0
- package/test/integration/fixtures/react-ssr/app/client/head.html +8 -0
- package/test/integration/fixtures/react-ssr/app/client/main.jsx +1 -0
- package/test/integration/fixtures/react-ssr/app/imports/api/.gitkeep +1 -0
- package/test/integration/fixtures/react-ssr/app/imports/startup/client/index.jsx +21 -0
- package/test/integration/fixtures/react-ssr/app/imports/startup/lib/index.jsx +1 -0
- package/test/integration/fixtures/react-ssr/app/imports/startup/lib/routes.jsx +21 -0
- package/test/integration/fixtures/react-ssr/app/imports/startup/lib/templates.jsx +21 -0
- package/test/integration/fixtures/react-ssr/app/imports/startup/server/index.jsx +36 -0
- package/test/integration/fixtures/react-ssr/app/imports/ui/layouts/master-layout/master-layout.jsx +27 -0
- package/test/integration/fixtures/react-ssr/app/imports/ui/pages/home/home.jsx +28 -0
- package/test/integration/fixtures/react-ssr/app/imports/ui/pages/not-found/not-found.jsx +28 -0
- package/test/integration/fixtures/react-ssr/app/imports/ui/test-helpers.jsx +1 -0
- package/test/integration/fixtures/react-ssr/app/lib/.gitkeep +1 -0
- package/test/integration/fixtures/react-ssr/app/lib/main.jsx +1 -0
- package/test/integration/fixtures/react-ssr/app/packages/.gitkeep +1 -0
- package/test/integration/fixtures/react-ssr/app/private/.gitkeep +1 -0
- package/test/integration/fixtures/react-ssr/app/public/.gitkeep +1 -0
- package/test/integration/fixtures/react-ssr/app/public/favicon.ico +0 -0
- package/test/integration/fixtures/react-ssr/app/server/.gitkeep +1 -0
- package/test/integration/fixtures/react-ssr/app/server/main.jsx +1 -0
- package/test/integration/fixtures/react-ssr/bin/.gitkeep +1 -0
- package/test/integration/fixtures/react-ssr/build/.gitkeep +1 -0
- package/test/integration/fixtures/react-ssr/build/README +4 -0
- package/test/integration/fixtures/react-ssr/config/.gitkeep +1 -0
- package/test/integration/fixtures/react-ssr/config/development/env.sh +9 -0
- package/test/integration/fixtures/react-ssr/config/development/settings.json +6 -0
- package/test/integration/fixtures/react-ssr/config/production/env.sh +9 -0
- package/test/integration/fixtures/react-ssr/config/production/settings.json +6 -0
- package/test/integration/fixtures/react-ssr/config/staging/env.sh +9 -0
- package/test/integration/fixtures/react-ssr/config/staging/settings.json +6 -0
- package/test/integration/fixtures/reflux/.maka/config.json +30 -0
- package/test/integration/fixtures/reflux/.tern-project +17 -0
- package/test/integration/fixtures/reflux/app/.meteor/.finished-upgraders +17 -0
- package/test/integration/fixtures/reflux/app/.meteor/.id +7 -0
- package/test/integration/fixtures/reflux/app/.meteor/packages +21 -0
- package/test/integration/fixtures/reflux/app/.meteor/platforms +2 -0
- package/test/integration/fixtures/reflux/app/.meteor/release +1 -0
- package/test/integration/fixtures/reflux/app/.meteor/versions +78 -0
- package/test/integration/fixtures/reflux/app/client/.gitkeep +1 -0
- package/test/integration/fixtures/reflux/app/client/body.html +3 -0
- package/test/integration/fixtures/reflux/app/client/head.html +8 -0
- package/test/integration/fixtures/reflux/app/client/main.jsx +1 -0
- package/test/integration/fixtures/reflux/app/imports/api/.gitkeep +1 -0
- package/test/integration/fixtures/reflux/app/imports/startup/client/index.jsx +12 -0
- package/test/integration/fixtures/reflux/app/imports/startup/client/routes.jsx +24 -0
- package/test/integration/fixtures/reflux/app/imports/startup/client/templates.jsx +21 -0
- package/test/integration/fixtures/reflux/app/imports/startup/lib/index.jsx +1 -0
- package/test/integration/fixtures/reflux/app/imports/startup/server/index.jsx +1 -0
- package/test/integration/fixtures/reflux/app/imports/ui/layouts/master-layout/master-layout.css +5 -0
- package/test/integration/fixtures/reflux/app/imports/ui/layouts/master-layout/master-layout.jsx +31 -0
- package/test/integration/fixtures/reflux/app/imports/ui/pages/home/home.css +5 -0
- package/test/integration/fixtures/reflux/app/imports/ui/pages/home/home.jsx +33 -0
- package/test/integration/fixtures/reflux/app/imports/ui/pages/not-found/not-found.css +5 -0
- package/test/integration/fixtures/reflux/app/imports/ui/pages/not-found/not-found.jsx +33 -0
- package/test/integration/fixtures/reflux/app/imports/ui/test-helpers.jsx +1 -0
- package/test/integration/fixtures/reflux/app/lib/.gitkeep +1 -0
- package/test/integration/fixtures/reflux/app/lib/main.jsx +1 -0
- package/test/integration/fixtures/reflux/app/packages/.gitkeep +1 -0
- package/test/integration/fixtures/reflux/app/private/.gitkeep +1 -0
- package/test/integration/fixtures/reflux/app/public/.gitkeep +1 -0
- package/test/integration/fixtures/reflux/app/public/favicon.ico +0 -0
- package/test/integration/fixtures/reflux/app/server/.gitkeep +1 -0
- package/test/integration/fixtures/reflux/app/server/main.jsx +1 -0
- package/test/integration/fixtures/reflux/bin/.gitkeep +1 -0
- package/test/integration/fixtures/reflux/build/.gitkeep +1 -0
- package/test/integration/fixtures/reflux/build/README +4 -0
- package/test/integration/fixtures/reflux/config/.gitkeep +1 -0
- package/test/integration/fixtures/reflux/config/development/env.sh +9 -0
- package/test/integration/fixtures/reflux/config/development/settings.json +6 -0
- package/test/integration/fixtures/reflux/config/production/env.sh +9 -0
- package/test/integration/fixtures/reflux/config/production/settings.json +6 -0
- package/test/integration/fixtures/reflux/config/staging/env.sh +9 -0
- package/test/integration/fixtures/reflux/config/staging/settings.json +6 -0
- package/test/integration/fixtures/reflux-apollo/.maka/config.json +30 -0
- package/test/integration/fixtures/reflux-apollo/.tern-project +17 -0
- package/test/integration/fixtures/reflux-apollo/app/.meteor/.finished-upgraders +17 -0
- package/test/integration/fixtures/reflux-apollo/app/.meteor/.id +7 -0
- package/test/integration/fixtures/reflux-apollo/app/.meteor/packages +21 -0
- package/test/integration/fixtures/reflux-apollo/app/.meteor/platforms +2 -0
- package/test/integration/fixtures/reflux-apollo/app/.meteor/release +1 -0
- package/test/integration/fixtures/reflux-apollo/app/.meteor/versions +78 -0
- package/test/integration/fixtures/reflux-apollo/app/client/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo/app/client/body.html +3 -0
- package/test/integration/fixtures/reflux-apollo/app/client/head.html +8 -0
- package/test/integration/fixtures/reflux-apollo/app/client/main.jsx +1 -0
- package/test/integration/fixtures/reflux-apollo/app/imports/api/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo/app/imports/startup/client/index.jsx +20 -0
- package/test/integration/fixtures/reflux-apollo/app/imports/startup/client/routes.jsx +24 -0
- package/test/integration/fixtures/reflux-apollo/app/imports/startup/client/templates.jsx +21 -0
- package/test/integration/fixtures/reflux-apollo/app/imports/startup/lib/index.jsx +1 -0
- package/test/integration/fixtures/reflux-apollo/app/imports/startup/server/index.jsx +25 -0
- package/test/integration/fixtures/reflux-apollo/app/imports/ui/layouts/master-layout/master-layout.css +5 -0
- package/test/integration/fixtures/reflux-apollo/app/imports/ui/layouts/master-layout/master-layout.jsx +31 -0
- package/test/integration/fixtures/reflux-apollo/app/imports/ui/pages/home/home.css +5 -0
- package/test/integration/fixtures/reflux-apollo/app/imports/ui/pages/home/home.jsx +38 -0
- package/test/integration/fixtures/reflux-apollo/app/imports/ui/pages/not-found/not-found.css +5 -0
- package/test/integration/fixtures/reflux-apollo/app/imports/ui/pages/not-found/not-found.jsx +38 -0
- package/test/integration/fixtures/reflux-apollo/app/imports/ui/test-helpers.jsx +1 -0
- package/test/integration/fixtures/reflux-apollo/app/lib/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo/app/lib/main.jsx +1 -0
- package/test/integration/fixtures/reflux-apollo/app/packages/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo/app/private/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo/app/public/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo/app/public/favicon.ico +0 -0
- package/test/integration/fixtures/reflux-apollo/app/server/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo/app/server/main.jsx +1 -0
- package/test/integration/fixtures/reflux-apollo/bin/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo/build/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo/build/README +4 -0
- package/test/integration/fixtures/reflux-apollo/config/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo/config/development/env.sh +9 -0
- package/test/integration/fixtures/reflux-apollo/config/development/settings.json +6 -0
- package/test/integration/fixtures/reflux-apollo/config/production/env.sh +9 -0
- package/test/integration/fixtures/reflux-apollo/config/production/settings.json +6 -0
- package/test/integration/fixtures/reflux-apollo/config/staging/env.sh +9 -0
- package/test/integration/fixtures/reflux-apollo/config/staging/settings.json +6 -0
- package/test/integration/fixtures/reflux-apollo-ssr/.maka/config.json +30 -0
- package/test/integration/fixtures/reflux-apollo-ssr/.tern-project +17 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/.finished-upgraders +17 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/.id +7 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/packages +21 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/platforms +2 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/release +1 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/.meteor/versions +78 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/client/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/client/body.html +3 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/client/head.html +8 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/client/main.jsx +1 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/imports/api/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/imports/startup/client/index.jsx +29 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/imports/startup/lib/index.jsx +1 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/imports/startup/lib/routes.jsx +21 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/imports/startup/lib/templates.jsx +21 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/imports/startup/server/index.jsx +65 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/imports/ui/layouts/master-layout/master-layout.jsx +27 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/imports/ui/pages/home/home.jsx +33 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/imports/ui/pages/not-found/not-found.jsx +33 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/imports/ui/test-helpers.jsx +1 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/lib/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/lib/main.jsx +1 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/packages/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/private/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/public/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/public/favicon.ico +0 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/server/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo-ssr/app/server/main.jsx +1 -0
- package/test/integration/fixtures/reflux-apollo-ssr/bin/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo-ssr/build/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo-ssr/build/README +4 -0
- package/test/integration/fixtures/reflux-apollo-ssr/config/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-apollo-ssr/config/development/env.sh +9 -0
- package/test/integration/fixtures/reflux-apollo-ssr/config/development/settings.json +6 -0
- package/test/integration/fixtures/reflux-apollo-ssr/config/production/env.sh +9 -0
- package/test/integration/fixtures/reflux-apollo-ssr/config/production/settings.json +6 -0
- package/test/integration/fixtures/reflux-apollo-ssr/config/staging/env.sh +9 -0
- package/test/integration/fixtures/reflux-apollo-ssr/config/staging/settings.json +6 -0
- package/test/integration/fixtures/reflux-material/.maka/config.json +30 -0
- package/test/integration/fixtures/reflux-material/.tern-project +17 -0
- package/test/integration/fixtures/reflux-material/app/.meteor/.finished-upgraders +17 -0
- package/test/integration/fixtures/reflux-material/app/.meteor/.id +7 -0
- package/test/integration/fixtures/reflux-material/app/.meteor/packages +21 -0
- package/test/integration/fixtures/reflux-material/app/.meteor/platforms +2 -0
- package/test/integration/fixtures/reflux-material/app/.meteor/release +1 -0
- package/test/integration/fixtures/reflux-material/app/.meteor/versions +78 -0
- package/test/integration/fixtures/reflux-material/app/client/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-material/app/client/body.html +3 -0
- package/test/integration/fixtures/reflux-material/app/client/head.html +8 -0
- package/test/integration/fixtures/reflux-material/app/client/main.jsx +1 -0
- package/test/integration/fixtures/reflux-material/app/imports/api/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-material/app/imports/startup/client/index.jsx +19 -0
- package/test/integration/fixtures/reflux-material/app/imports/startup/client/routes.jsx +24 -0
- package/test/integration/fixtures/reflux-material/app/imports/startup/client/templates.jsx +21 -0
- package/test/integration/fixtures/reflux-material/app/imports/startup/lib/index.jsx +1 -0
- package/test/integration/fixtures/reflux-material/app/imports/startup/server/index.jsx +1 -0
- package/test/integration/fixtures/reflux-material/app/imports/ui/layouts/master-layout/master-layout.css +5 -0
- package/test/integration/fixtures/reflux-material/app/imports/ui/layouts/master-layout/master-layout.jsx +31 -0
- package/test/integration/fixtures/reflux-material/app/imports/ui/pages/home/home.css +5 -0
- package/test/integration/fixtures/reflux-material/app/imports/ui/pages/home/home.jsx +33 -0
- package/test/integration/fixtures/reflux-material/app/imports/ui/pages/not-found/not-found.css +5 -0
- package/test/integration/fixtures/reflux-material/app/imports/ui/pages/not-found/not-found.jsx +33 -0
- package/test/integration/fixtures/reflux-material/app/imports/ui/test-helpers.jsx +1 -0
- package/test/integration/fixtures/reflux-material/app/lib/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-material/app/lib/main.jsx +1 -0
- package/test/integration/fixtures/reflux-material/app/packages/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-material/app/private/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-material/app/public/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-material/app/public/favicon.ico +0 -0
- package/test/integration/fixtures/reflux-material/app/server/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-material/app/server/main.jsx +1 -0
- package/test/integration/fixtures/reflux-material/bin/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-material/build/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-material/build/README +4 -0
- package/test/integration/fixtures/reflux-material/config/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-material/config/development/env.sh +9 -0
- package/test/integration/fixtures/reflux-material/config/development/settings.json +6 -0
- package/test/integration/fixtures/reflux-material/config/production/env.sh +9 -0
- package/test/integration/fixtures/reflux-material/config/production/settings.json +6 -0
- package/test/integration/fixtures/reflux-material/config/staging/env.sh +9 -0
- package/test/integration/fixtures/reflux-material/config/staging/settings.json +6 -0
- package/test/integration/fixtures/reflux-ssr/.maka/config.json +30 -0
- package/test/integration/fixtures/reflux-ssr/.tern-project +17 -0
- package/test/integration/fixtures/reflux-ssr/app/.meteor/.finished-upgraders +17 -0
- package/test/integration/fixtures/reflux-ssr/app/.meteor/.id +7 -0
- package/test/integration/fixtures/reflux-ssr/app/.meteor/packages +21 -0
- package/test/integration/fixtures/reflux-ssr/app/.meteor/platforms +2 -0
- package/test/integration/fixtures/reflux-ssr/app/.meteor/release +1 -0
- package/test/integration/fixtures/reflux-ssr/app/.meteor/versions +78 -0
- package/test/integration/fixtures/reflux-ssr/app/client/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-ssr/app/client/body.html +3 -0
- package/test/integration/fixtures/reflux-ssr/app/client/head.html +8 -0
- package/test/integration/fixtures/reflux-ssr/app/client/main.jsx +1 -0
- package/test/integration/fixtures/reflux-ssr/app/imports/api/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-ssr/app/imports/startup/client/index.jsx +21 -0
- package/test/integration/fixtures/reflux-ssr/app/imports/startup/lib/index.jsx +1 -0
- package/test/integration/fixtures/reflux-ssr/app/imports/startup/lib/routes.jsx +21 -0
- package/test/integration/fixtures/reflux-ssr/app/imports/startup/lib/templates.jsx +21 -0
- package/test/integration/fixtures/reflux-ssr/app/imports/startup/server/index.jsx +36 -0
- package/test/integration/fixtures/reflux-ssr/app/imports/ui/layouts/master-layout/master-layout.jsx +30 -0
- package/test/integration/fixtures/reflux-ssr/app/imports/ui/pages/home/home.jsx +32 -0
- package/test/integration/fixtures/reflux-ssr/app/imports/ui/pages/not-found/not-found.jsx +32 -0
- package/test/integration/fixtures/reflux-ssr/app/imports/ui/test-helpers.jsx +1 -0
- package/test/integration/fixtures/reflux-ssr/app/lib/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-ssr/app/lib/main.jsx +1 -0
- package/test/integration/fixtures/reflux-ssr/app/packages/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-ssr/app/private/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-ssr/app/public/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-ssr/app/public/favicon.ico +0 -0
- package/test/integration/fixtures/reflux-ssr/app/server/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-ssr/app/server/main.jsx +1 -0
- package/test/integration/fixtures/reflux-ssr/bin/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-ssr/build/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-ssr/build/README +4 -0
- package/test/integration/fixtures/reflux-ssr/config/.gitkeep +1 -0
- package/test/integration/fixtures/reflux-ssr/config/development/env.sh +9 -0
- package/test/integration/fixtures/reflux-ssr/config/development/settings.json +6 -0
- package/test/integration/fixtures/reflux-ssr/config/production/env.sh +9 -0
- package/test/integration/fixtures/reflux-ssr/config/production/settings.json +6 -0
- package/test/integration/fixtures/reflux-ssr/config/staging/env.sh +9 -0
- package/test/integration/fixtures/reflux-ssr/config/staging/settings.json +6 -0
- package/test/integration/integration_helpers.js +60 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
const a151s=a151d;(function(a,b){const p=a151d,c=a();while(!![]){try{const d=parseInt(p(0x13d))/0x1+-parseInt(p(0x1ed))/0x2+parseInt(p(0x1d8))/0x3*(-parseInt(p(0x110))/0x4)+parseInt(p(0x1d4))/0x5+-parseInt(p(0x1ac))/0x6+parseInt(p(0x1cd))/0x7*(parseInt(p(0x176))/0x8)+parseInt(p(0x1e5))/0x9*(parseInt(p(0x17f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a151c,0xbab1a));const a151b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a151d;if(c){const e=c[q(0x11d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a151a=a151b(this,function(){const r=a151d;return a151a[r(0x1d5)]()[r(0x14a)](r(0x134))[r(0x1d5)]()[r(0x144)](a151a)[r(0x14a)](r(0x134));});a151a();import a151e from'fs';import a151f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{MustBeInProjectError}from'../../error.js';import{ChangeResourceRecordSetsCommand,ChangeAction,RRType}from'@aws-sdk/client-route-53';function a151d(a,b){const c=a151c();return a151d=function(d,e){d=d-0x107;let f=c[d];return f;},a151d(a,b);}import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand,DescribeImagesCommand,DescribeSubnetsCommand}from'@aws-sdk/client-ec2';function a151c(){const aa=['map','getAppConfigPath','hvm','search','\x20opened!',',\x20URI:\x20','tags','all','Web\x20App','GroupId','sort','root-device-type','KeyName','Name','imageId','scaffold','virtualization-type','status','error','warn','suggestion','name','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.','vpcId','ec2terminateInstance','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','Authorization\x20token\x20is\x20missing','race','publicIp','An\x20unknown\x20error\x20occurred.','checkDomainAvailability','getTime','\x20SUBNETID:\x20','cfg','filter','\x20STATUS:\x20','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','eu-west-2','RegistrationPrice','exit','UNSUPPORTED','No\x20instances\x20found','ecrDeleteRepository','find','length','ap-northeast-3','maxCount','1480fVXesl','Setting\x20Subnet\x20ID\x20to\x20','bright','Created:\x20','\x20VPCID:\x20','amiId','Repository\x20\x22','pem','\x20DESCRIPTION:\x20','10VebpUe','ap-northeast-1','TLDRulesViolation','...','minCount','ap-southeast-3','start','subnet','\x20to\x20','CreationDate','getInstance','me-central-1','Error\x20fetching\x20domain\x20pricing:','Prices','Value','Successfully\x20linked\x20EC2\x20instance\x20','ec2rebootInstance','\x20CIDR:\x20','desc','instanceId','image-type','utf8','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','**\x20Available\x20Security\x20Groups\x20**','isFile','_keys','ec2createSG','GroupName','Description','\x20INSTANCE_ID:\x20','Port\x20','ap-east-1','chmod\x20400\x20','environment','success','Final\x20list\x20of\x20ECR\x20repositories:','AVAILABLE','deleteKeyPair','chooseSecurityGroup','confirm','nextToken','join','trim','Response:\x20','ecrCreateRepository','5326248zpDInt','key','linkEC2ToRoute53','send','cidr','stringify','ec2create','EKS','withSpinner','eu-central-1','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','KeyMaterial','type','config','stop','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','eu-central-2','\x20SG\x20NAME:\x20','sgPorts','eu-south-2','registerDomain','VpcId','CidrBlock','ID:\x20','notice','\x22\x20created\x20successfully\x20in\x20','ssh.json','base64','0.0.0.0/0','createKeyPair','terminated','info','eu-west-1','30359yebqFS','\x20NAME:\x20','pop','eu-north-1','Setting\x20SG\x20ID\x20to:\x20','eu-south-1','timeout','925960JIExXV','toString','.pem.txt','getSecurityGroups','33ZoOymx','Subnets','getMakaProjectConfig','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','file://','writeFileSync','forEach','/dev/sdh','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','readFileSync','*Kali*','ingressRule','Error\x20saving\x20pem\x20file,\x20aborting','15013359KLVxCE','userData','region','HostedZones','Pem\x20key\x20saved\x20to\x20','Timeout\x20while\x20processing\x20','Error\x20Message:\x20','ignore','578190bqMKii','push','Canonical*Ubuntu*18.04*','No\x20images\x20found.','getSubnetCidr','Instances','tcp','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','ap-south-1','running','Instance\x20rebooted!','message','now','fsi','Setting\x20AMI\x20ID\x20to\x20','parse','authorizationToken','Region:\x20','Failed\x20to\x20create\x20repository\x20in\x20','300268UQIQxg','subnetId','deleteSecurityGroup','authorizationData','ap-south-2','listAvailableSubnets','From\x20AWS:','me-south-1','split','\x20PUB_IP:\x20','Could\x20not\x20find\x20hosted\x20zone','ec2describeInstances','ask','apply','us-east-1','httpStatusCode','sgIds','repositoryName','log','AvailabilityZone','repositories','getEcrLoginPassword','createKeyPairEC2Key',',\x20Name:\x20','Canonical*Ubuntu*20.04*','includes','env','chooseInstance','ebs','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','$metadata','privateIp','sgId','sa-east-1','template','Availability','(((.+)+)+)+$','description','eu-west-3','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','uri','us-west-1','instance','Failed\x20in\x20','\x20SGID:\x20','111550ClxOsl','route53CreateHostedZone','\x20AMIID:\x20','us-west-2','Reservations','us-east-2','ap-southeast-1','constructor','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','state'];a151c=function(){return aa;};return a151c();}import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}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({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{static ['instance'];[a151s(0x10a)];[a151s(0x168)];[a151s(0x156)];constructor(a,b,c){const t=a151s;this[t(0x10a)]=a,this[t(0x168)]=b,this[t(0x156)]=c;}static[a151s(0x189)](a,b,c){const u=a151s;return!AWS[u(0x13a)]&&(AWS[u(0x13a)]=new AWS(a,b,c)),AWS[u(0x13a)];}async[a151s(0x1a5)](a){const v=a151s;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this[v(0x1d7)](a);let f='';if(c===''){Log[v(0x1c4)](v(0x196)),d[v(0x1de)](function(h){const w=v;h[w(0x15c)]===a?Log['notice']('ID:\x20'+h['id']+w(0x1bd)+h[w(0x15c)]+w(0x13c)+h[w(0x130)]):Log[w(0x178)](w(0x1c3)+h['id']+w(0x1bd)+h[w(0x15c)]+w(0x13c)+h['sgId']);});const g=await Actions[v(0x11c)](v(0x195)+b+']\x20')||b['toString']();d[v(0x1de)](function(h){const x=v;h['id']===parseInt(g)&&(f=h[x(0x130)],Log[x(0x1a1)]('Setting\x20SG\x20ID\x20to:\x20'+f+'\x0a'));});}else f=c,Log[v(0x1a1)](v(0x1d1)+f+'\x0a');if(f==='')throw new Error(v(0x1e0));return f;}catch(h){Log[v(0x159)](h);throw h;}}async['listAvailableAMIs'](){const y=a151s;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':'architecture','Values':['x86_64']},{'Name':y(0x157),'Values':[y(0x149)]},{'Name':y(0x152),'Values':[y(0x12c)]},{'Name':y(0x146),'Values':['available']},{'Name':y(0x193),'Values':['machine']},{'Name':y(0x135),'Values':[y(0x1ef),y(0x128),y(0x1e2)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b[y(0x1af)](d);if(f&&f[y(0x173)]>0x0){const g=new Date(),h=new Date(g[y(0x166)]()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[y(0x169)](j=>j['CreationDate']&&!j['Description']?.[y(0x129)](y(0x16f))&&!j[y(0x19b)]?.[y(0x129)](y(0x1b3))&&new Date(j[y(0x188)])>h)[y(0x147)](j=>({'amiId':j['ImageId'],'desc':j[y(0x19b)],'date':j[y(0x188)]}));if(i[y(0x173)]>0x0){i[y(0x151)]((n,o)=>new Date(o['date'])[y(0x166)]()-new Date(n['date'])['getTime']());const j=i['slice'](0x0,0x4),k=j[y(0x147)]((n,o)=>({'id':o,'amiId':n[y(0x17b)],'desc':n[y(0x191)]}));k[y(0x1de)](n=>{const z=y;Log[z(0x178)](z(0x1c3)+n['id']+z(0x13f)+n[z(0x17b)]+z(0x17e)+n[z(0x191)]);});const l=await Actions['ask']('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0',m=k[y(0x172)](n=>n['id']===parseInt(l));if(m)a=m[y(0x17b)],Log['success'](y(0x10b)+a+'\x20:\x20'+m[y(0x191)]);else throw Log['error'](y(0x1e0));}else throw Log[y(0x159)](y(0x15d));}else throw Log[y(0x159)](y(0x1f0));}catch(n){Log[y(0x159)](n);}return a;}async[a151s(0x115)](){const A=a151s;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b['send'](d);if(f&&f[A(0x173)]>0x0){const g=f[A(0x147)]((j,k)=>({'id':k,'cidr':j[A(0x1c2)],'az':j[A(0x123)],'subnetId':j['SubnetId']}));g[A(0x1de)](j=>{const B=A;Log[B(0x178)](B(0x1c3)+j['id']+B(0x190)+j[B(0x1b0)]+'\x20AZONE:\x20'+j['az']+B(0x167)+j[B(0x111)]);});const h=await Actions[A(0x11c)](A(0x1db))||'0',i=g[A(0x172)](j=>j['id']===parseInt(h));if(i)a=i['subnetId'],Log[A(0x1a1)](A(0x177)+a);else throw Log[A(0x159)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}else throw Log[A(0x159)]('No\x20subnets\x20found.');}catch(j){Log[A(0x159)](j);}return a;}async[a151s(0x1f1)](a){const C=a151s;try{const b=new EC2Client({}),c={'Filters':[{'Name':'subnet-id','Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b['send'](d);return e['Subnets']&&e[C(0x1d9)]['length']>0x0?e['Subnets'][0x0][C(0x1c2)]||'':'';}catch(f){return Log[C(0x159)](f),'';}}async[a151s(0x1ab)](a){const D=a151s;try{const b=new ECRClient({'region':a[D(0x1e7)]}),c={'repositoryName':a[D(0x15c)]},d=new CreateRepositoryCommand(c),f=await b[D(0x1af)](d);return Log[D(0x1a1)](D(0x17c)+a[D(0x15c)]+D(0x1c5)+a[D(0x1e7)]+'.'),f;}catch(g){Log[D(0x159)](D(0x10f)+a[D(0x1e7)]+':\x20'+g);throw g;}}async['listAllEcrRepositories'](a){const E=a151s,b=[E(0x11e),E(0x142),E(0x139),E(0x140),E(0x1f5),E(0x174),'ap-northeast-2',E(0x143),'ap-southeast-2',E(0x180),'ca-central-1',E(0x1b5),E(0x1cc),E(0x16c),E(0x136),E(0x1d0),E(0x131),'af-south-1',E(0x19e),E(0x114),E(0x184),'ap-southeast-4','ca-west-1',E(0x1d2),E(0x1bf),E(0x1bc),E(0x117),E(0x18a),'il-central-1'],c=[E(0x11e),E(0x142),E(0x139),E(0x140)],d=a===E(0x14e)?b:a?a[E(0x118)](','):c;let f=[];const g=Log[E(0x1b4)]();for(const h of d){g[E(0x185)]('Processing\x20'+h[E(0x1a9)]()+E(0x182));const i=new ECRClient({'region':h[E(0x1a9)]()});try{let j=undefined;do{const k=await Promise[E(0x162)]([i[E(0x1af)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l('timeout'),0x7d0))]);if(k===E(0x1d3)){Log[E(0x15a)](E(0x1ea)+h[E(0x1a9)]()+'.');break;}else k[E(0x124)]&&k['repositories'][E(0x173)]>0x0&&(f=f['concat'](k[E(0x124)]['map'](l=>({'name':l[E(0x121)],'uri':l['repositoryUri'],'region':h[E(0x1a9)]()}))));j=k[E(0x1a7)];}while(j);}catch(l){Log[E(0x159)](E(0x13b)+h[E(0x1a9)]()+':\x20'+l[E(0x108)]);}finally{g[E(0x1ba)]();}}return f[E(0x173)]>0x0?(console['log'](),Log[E(0x1a1)](E(0x1a2)),f[E(0x1de)](m=>{const F=E;Log[F(0x1cb)](F(0x10e)+m[F(0x1e7)]+F(0x127)+m['name']+F(0x14c)+m[F(0x138)]);})):Log[E(0x15a)](E(0x16b)),f;}async[a151s(0x13e)](a){const G=a151s;try{const b={'CallerReference':''+Date[G(0x109)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[G(0x1af)](c),Log[G(0x1a1)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log['error']('Error\x20creating\x20hosted\x20zone'),console[G(0x159)](d);}}async[a151s(0x1c0)](a,b,c,d){const H=a151s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a,'BillingContact':a},f=new RegisterDomainCommand(e),g=await route53Domains['send'](f);Log[H(0x1c4)]('The\x20domain\x20\x27'+b+'\x27\x20has\x20been\x20registered\x20successfully.'),Log[H(0x1c4)](H(0x1aa)+JSON['stringify'](g));}catch(h){Log[H(0x159)]('There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name'),Log[H(0x15a)](H(0x116)),h[H(0x12e)]&&(Log[H(0x159)]('\x20Status\x20Code:\x20'+h[H(0x12e)][H(0x11f)]),Log[H(0x159)]('\x20Request\x20ID:\x20'+h[H(0x12e)]['requestId'])),Log['error'](H(0x1eb)+h[H(0x108)]),h['name']===H(0x181)?Log[H(0x159)](h[H(0x108)]):Log[H(0x159)](H(0x164)),Log[H(0x159)](h);}}async[a151s(0x165)](a){const I=a151s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[I(0x1af)](c),e=d[I(0x133)]===I(0x1a3);if(e){const f=a[I(0x118)]('.')[I(0x1cf)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i[I(0x18c)]&&i['Prices'][0x0]?.['RegistrationPrice']){const j=i[I(0x18c)][0x0][I(0x16d)];return{'available':e,'cost':j};}}catch(k){console[I(0x159)](I(0x18b),k);}}return{'available':e};}async[a151s(0x1ae)](a,b,c){const J=a151s;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.[J(0x1e8)])throw Log[J(0x159)](J(0x11a));const e=d?.['HostedZones'][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':ChangeAction['UPSERT'],'ResourceRecordSet':{'Name':c,'Type':RRType['A'],'TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e},g=new ChangeResourceRecordSetsCommand(f);await route53[J(0x1af)](g),Log[J(0x1c4)](J(0x18e)+a+J(0x187)+c);}catch(h){console[J(0x159)]('Error\x20linking\x20EC2\x20to\x20Route\x2053:',h);}}async[a151s(0x125)]({awsAccountId:a,region:b}){const K=a151s,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[K(0x1af)](d);if(!f[K(0x113)]||f['authorizationData'][K(0x173)]===0x0)throw new Error('Authorization\x20data\x20is\x20empty');const g=f[K(0x113)][0x0];if(!g[K(0x10d)])throw new Error(K(0x161));const h=g[K(0x10d)];if(!h)throw new Error(K(0x160));const i=Buffer['from'](h,K(0x1c7))[K(0x1d5)](),j=i[K(0x118)](':')[0x1];if(!j)throw new Error(K(0x137));return j;}catch(k){Log[K(0x159)](k);throw k;}}async[a151s(0x171)]({repoName:a,region:b}){const L=a151s,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[L(0x1af)](d);return f;}catch(g){Log[L(0x159)](g);throw g;}}async[a151s(0x1b2)](a){const M=a151s;try{const b={'BlockDeviceMappings':[{'DeviceName':M(0x1df),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[M(0x155)],'InstanceType':a[M(0x1b8)],'KeyName':a[M(0x1ad)],'MaxCount':a[M(0x175)],'MinCount':a[M(0x183)],'SecurityGroupIds':a[M(0x120)][M(0x118)](','),'SubnetId':a[M(0x186)],'TagSpecifications':[{'ResourceType':M(0x13a),'Tags':a[M(0x14d)]}]};a['userData']&&(b['UserData']=M(0x1dc)+a[M(0x1e6)]);const c=new RunInstancesCommand(b),d=await client[M(0x1af)](c);return d;}catch(f){Log[M(0x159)](f);}}async[a151s(0x15f)](a){const N=a151s;try{const b={'InstanceIds':[a[N(0x192)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log['error'](f),{};}}async[a151s(0x126)]({keyName:a,env:b}){const O=a151s,c=this[O(0x168)][O(0x148)](b),d=a151f['join'](c,O(0x198),a+O(0x1d6));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[O(0x1af)](g),i=h[O(0x1b7)];if(i){await this[O(0x10a)]['createFile']({'filePath':d,'data':i}),execSync(O(0x19f)+d,{'stdio':O(0x1ec)});const j=this['fsi'][O(0x197)](d);if(j)return Log[O(0x1a1)](O(0x1e9)+d),{'keyName':a,'filePath':d};else throw new Error(O(0x1e4));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[O(0x159)](k),process[O(0x16e)](0x1);}}async[a151s(0x1e3)]({port:a,groupId:b}){const P=a151s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':P(0x1f3),'IpRanges':[{'CidrIp':P(0x1c8),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[P(0x1c4)](P(0x19d)+a+P(0x14b)),await client[P(0x1af)](d);}async[a151s(0x199)](a){const Q=a151s;try{a[Q(0x135)]===''&&(a[Q(0x135)]=await Actions[Q(0x11c)]('Description:')||Q(0x14f));const b={'Description':a[Q(0x135)],'GroupName':a[Q(0x15c)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a[Q(0x1be)][Q(0x1de)](g=>{const R=Q;this[R(0x1e3)]({'port':parseInt(g),'groupId':f});}),Log[Q(0x1a1)](Q(0x179)+f+Q(0x1ce)+a[Q(0x15c)]);}catch(g){return Log['error'](g),![];}return!![];}async['ec2describeKeys'](a){const S=a151s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[S(0x1af)](d);if(!f)throw S(0x1f4);const {KeyPairs:g}=f;g?(g?.[S(0x1de)]((h,i)=>{const T=S;h[T(0x153)]&&b[T(0x1ee)]({'id':i,'name':h[T(0x153)]});}),b[S(0x173)]>0x0&&b[S(0x1de)](h=>{const U=S;h['name']===a?.[U(0x15b)]?Log[U(0x1a1)](U(0x1c3)+h['id']+U(0x1ce)+h[U(0x15c)]):Log[U(0x1c4)](U(0x1c3)+h['id']+U(0x1ce)+h[U(0x15c)]);})):Log[S(0x159)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[S(0x159)](h);}return b;}async[a151s(0x1a4)](a){const V=a151s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log[V(0x159)](d),process['exit'](0x1);}}async[a151s(0x11b)](){const W=a151s,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[W(0x1af)](c);d[W(0x141)]?.[W(0x1de)]((f,g)=>{const X=W;if(f?.[X(0x1f2)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[X(0x1f2)][0x0],n=m?.['find'](({Key:o})=>o===X(0x1a0));a[X(0x1ee)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[X(0x154)],'name':l,'env':n?.[X(0x18d)]});}}),a[W(0x173)]>0x0?a[W(0x1de)](f=>{const Y=W,g=Y(0x1c3)+f['id']+Y(0x1ce)+f[Y(0x15c)]+'\x20ENV:\x20'+f[Y(0x12a)]+Y(0x16a)+f[Y(0x158)]+Y(0x19c)+f[Y(0x192)]+Y(0x119)+f[Y(0x163)]+'\x20PRIV_IP:\x20'+f[Y(0x12f)];if(f[Y(0x158)]===Y(0x1ca))Log[Y(0x159)](g);else f['status']===Y(0x1f6)?Log['success'](g):Log[Y(0x1c4)](g);}):Log[W(0x159)](W(0x1bb));}catch(f){Log[W(0x159)](f);}return a;}async[a151s(0x18f)](a){const Z=a151s;try{const b={'InstanceIds':[a[Z(0x192)]]},c=new RebootInstancesCommand(b),d=await client[Z(0x1af)](c);return d[Z(0x12e)][Z(0x11f)]===0xc8&&Log['success'](Z(0x107)),d;}catch(f){Log[Z(0x159)](f);}}async['chooseVPC'](){const a0=a151s;let a='';Log[a0(0x1c4)]('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client[a0(0x1af)](b),{Vpcs:d}=c,e=[];d&&d[a0(0x1de)]((g,h)=>{const a1=a0;g[a1(0x1c1)]&&g[a1(0x1c2)]&&e[a1(0x1ee)]({'id':h,'vpcId':g[a1(0x1c1)],'cidr':g[a1(0x1c2)]});});e[a0(0x1de)](function(g){const a2=a0;console[a2(0x122)]('ID:\x20'+g['id']+a2(0x17a)+g[a2(0x15e)]+'\x20CIDR:\x20'+g['cidr']);});const f=await Actions[a0(0x11c)]('Please\x20choose\x20a\x20VPC:\x20[0]\x20')||0x0;e[a0(0x1de)](function(g){const a3=a0;g['id']==f&&(a=g['vpcId'],Log[a3(0x1a1)](a3(0x1b6)+a+'\x0a'));});if(a==='')return Log[a0(0x159)](a0(0x1e0)),'';return a;}async[a151s(0x12b)](){const a4=a151s,a=await this['ec2describeInstances']();if(a[a4(0x173)]===0x0)return Log[a4(0x159)](a4(0x170)),null;const b=await Actions[a4(0x11c)](a4(0x12d));!b&&(Log[a4(0x159)]('Invalid\x20choice'),process[a4(0x16e)](0x0));const c=a[a4(0x172)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a151s(0x1c9)]({env:a}){const a5=a151s;try{const b=this[a5(0x168)][a5(0x1da)]();if(!b)throw MustBeInProjectError;const {appName:c}=b,d=c+'-'+a,f=await Actions[a5(0x11c)]('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[a5(0x126)]({'keyName':f,'env':a}),h=await Actions[a5(0x1a6)](a5(0x145),!![]);if(h)try{const i=a151f[a5(0x1a8)](a5(0x1b9),a,a5(0x1c6));!this[a5(0x10a)][a5(0x197)](i)&&await this[a5(0x156)][a5(0x132)]({'srcPath':'config/ssh.json','destPath':i,'context':{'app':f}});const j=a151e[a5(0x1e1)](a151f[a5(0x1a8)](a5(0x1b9),a,'ssh.json'),a5(0x194)),k=JSON[a5(0x10c)](j);k[a5(0x17d)]=a151f[a5(0x1a8)](a5(0x198),f+'.pem.txt'),a151e[a5(0x1dd)](a151f[a5(0x1a8)](a5(0x1b9),a,a5(0x1c6)),JSON[a5(0x1b1)](k,null,0x2));}catch(l){Log[a5(0x159)](l),Log[a5(0x159)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}return{'keyName':f,'filePath':g};}catch(m){Log[a5(0x159)](m),process[a5(0x16e)](0x1);}}async[a151s(0x1d7)](a){const a6=a151s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a6(0x1af)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const a7=a6;i[a7(0x19a)]&&i[a7(0x150)]&&b[a7(0x1ee)]({'id':j,'name':i[a7(0x19a)],'sgId':i[a7(0x150)]});});let g='',h=0x0;return b[a6(0x1de)](function(i){const a8=a6;i[a8(0x15c)]===a&&(g=i[a8(0x130)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a151s(0x112)](a){const a9=a151s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[a9(0x159)](d),process['exit'](0x1);}}}
|
|
1
|
+
const a151s=a151d;function a151c(){const a9=['state','subnet','error','authorizationData','success','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','region','imageId','Error\x20linking\x20EC2\x20to\x20Route\x2053:','ap-northeast-1','Description:','env','instance','forEach','No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.','toString','**\x20Available\x20Security\x20Groups\x20**','listHostedZonesByName','parse','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','tcp','\x20:\x20','il-central-1','Created:\x20','7fSgvXN','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','ImageId','map','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','fsi','UPSERT','\x20Request\x20ID:\x20','eu-west-3','getInstance','requestId','from','No\x20images\x20found.','ec2describeInstances','createKeyPairEC2Key','environment','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','exit','eu-west-2','readFileSync','\x20AZONE:\x20','RegistrationPrice','amiId','sort','HostedZones','Hosted\x20zone\x20created\x20successfully!','\x20CIDR:\x20','stringify','Setting\x20Subnet\x20ID\x20to\x20','includes','getMakaProjectConfig','KeyName','Web\x20App','4166700RnLFpW','Reservations','The\x20domain\x20\x27','filter','ssh.json','trim','.pem.txt','Authorization\x20data\x20is\x20empty','publicIp','status','Please\x20choose\x20a\x20VPC:\x20[0]\x20','length','Port\x20','constructor','ebs','chmod\x20400\x20','us-west-1','ID:\x20','UserData','search','stop','repositoryName','image-type','ec2describeKeys','1563seGbvI','desc','repositories','Availability','eu-south-2','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','880OFPfVN','\x20STATUS:\x20','eu-central-1','_keys','No\x20subnets\x20found.','VpcId','\x27\x20has\x20been\x20registered\x20successfully.','$metadata','checkDomainAvailability','name','description','\x20DESCRIPTION:\x20','me-south-1','available','linkEC2ToRoute53','CreationDate','\x20NAME:\x20','70BPesIX','ap-southeast-2','0.0.0.0/0','\x20Status\x20Code:\x20','getSubnetCidr','Canonical*Ubuntu*18.04*','665104lYfttK','writeFileSync','warn','ap-northeast-3','Error\x20saving\x20pem\x20file,\x20aborting','push','getTime','ecrDeleteRepository','eu-south-1','virtualization-type','repositoryUri','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Region:\x20','uri','subnetId','send','KeyMaterial','find','ingressRule','maxCount','us-west-2','chooseSecurityGroup','nextToken','ap-south-1','Invalid\x20choice','1245732NRxTkz','ignore','race','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Prices','\x20AMIID:\x20','maka-cli','Subnets','AVAILABLE','notice','ap-southeast-1','authorizationToken','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','subnet-id','deleteSecurityGroup','type','No\x20instances\x20found','ap-northeast-2','SubnetId','**\x20Available\x20\x20VPCs\x20**','vpcId','1641546OJBVhn','\x20SG\x20NAME:\x20','Instance\x20rebooted!','Value','sgIds','config','withSpinner','2121172AOkRNR','terminated','ap-southeast-3','join','ec2createSG','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','isFile','GroupName','af-south-1','eu-north-1','ap-east-1','instanceId','Instances','httpStatusCode','split','...','deleteKeyPair','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','Failed\x20in\x20','sgId','suggestion','ec2create','Response:\x20','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','chooseInstance','Name','key','start','ec2rebootInstance','date','getSecurityGroups','CidrBlock','us-east-2',',\x20Name:\x20','\x22\x20created\x20successfully\x20in\x20','scaffold','ca-central-1','AvailabilityZone','\x20VPCID:\x20','bright','confirm','template','createFile','\x20PRIV_IP:\x20','userData','\x20SGID:\x20','Final\x20list\x20of\x20ECR\x20repositories:','log','Error\x20fetching\x20domain\x20pricing:','us-east-1','\x20SUBNETID:\x20','eu-west-1','GroupId','Timeout\x20while\x20processing\x20','listAvailableAMIs','utf8','ca-west-1','file://','3XKtlat','message','now','eu-central-2','Pem\x20key\x20saved\x20to\x20','pop','concat','apply','ask','x86_64','Canonical*Ubuntu*20.04*','cfg','Setting\x20AMI\x20ID\x20to\x20','Could\x20not\x20find\x20hosted\x20zone','sgPorts','833104iAtgJw'];a151c=function(){return a9;};return a151c();}(function(a,b){const p=a151d,c=a();while(!![]){try{const d=-parseInt(p(0x1fa))/0x1*(-parseInt(p(0x200))/0x2)+-parseInt(p(0x287))/0x3*(-parseInt(p(0x24d))/0x4)+-parseInt(p(0x1e2))/0x5+parseInt(p(0x230))/0x6*(parseInt(p(0x1c0))/0x7)+parseInt(p(0x296))/0x8+parseInt(p(0x246))/0x9+parseInt(p(0x211))/0xa*(-parseInt(p(0x217))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a151c,0x6f39b));const a151b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a151d;if(c){const e=c[q(0x28e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a151a=a151b(this,function(){const r=a151d;return a151a['toString']()[r(0x1f5)]('(((.+)+)+)+$')[r(0x2a6)]()[r(0x1ef)](a151a)['search']('(((.+)+)+)+$');});function a151d(a,b){const c=a151c();return a151d=function(d,e){d=d-0x1b8;let f=c[d];return f;},a151d(a,b);}a151a();import a151e from'fs';import a151f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{MustBeInProjectError}from'../../error.js';import{ChangeResourceRecordSetsCommand,ChangeAction,RRType}from'@aws-sdk/client-route-53';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand,DescribeImagesCommand,DescribeSubnetsCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}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({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{static ['instance'];[a151s(0x1c6)];[a151s(0x292)];['scaffold'];constructor(a,b,c){const t=a151s;this[t(0x1c6)]=a,this[t(0x292)]=b,this[t(0x270)]=c;}static[a151s(0x1ca)](a,b,c){const u=a151s;return!AWS[u(0x2a3)]&&(AWS[u(0x2a3)]=new AWS(a,b,c)),AWS['instance'];}async[a151s(0x22c)](a){const v=a151s;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this[v(0x26b)](a);let f='';if(c===''){Log[v(0x239)](v(0x1b8)),d[v(0x2a4)](function(h){const w=v;h[w(0x209)]===a?Log['notice'](w(0x1f3)+h['id']+w(0x247)+h[w(0x209)]+'\x20SGID:\x20'+h[w(0x260)]):Log[w(0x274)](w(0x1f3)+h['id']+w(0x247)+h[w(0x209)]+w(0x27a)+h['sgId']);});const g=await Actions[v(0x28f)](v(0x233)+b+']\x20')||b[v(0x2a6)]();d['forEach'](function(h){const x=v;h['id']===parseInt(g)&&(f=h[x(0x260)],Log[x(0x29b)]('Setting\x20SG\x20ID\x20to:\x20'+f+'\x0a'));});}else f=c,Log[v(0x29b)]('Setting\x20SG\x20ID\x20to:\x20'+f+'\x0a');if(f==='')throw new Error(v(0x222));return f;}catch(h){Log[v(0x299)](h);throw h;}}async[a151s(0x283)](){const y=a151s;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':'architecture','Values':[y(0x290)]},{'Name':y(0x220),'Values':['hvm']},{'Name':'root-device-type','Values':[y(0x1f0)]},{'Name':y(0x297),'Values':[y(0x20d)]},{'Name':y(0x1f8),'Values':['machine']},{'Name':y(0x20a),'Values':[y(0x216),y(0x291),'*Kali*']}]},d=new DescribeImagesCommand(c),{Images:f}=await b[y(0x226)](d);if(f&&f['length']>0x0){const g=new Date(),h=new Date(g['getTime']()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[y(0x1e5)](j=>j[y(0x20f)]&&!j['Description']?.['includes']('UNSUPPORTED')&&!j['Description']?.[y(0x1de)]('EKS')&&new Date(j[y(0x20f)])>h)[y(0x1c3)](j=>({'amiId':j[y(0x1c2)],'desc':j['Description'],'date':j[y(0x20f)]}));if(i[y(0x1ed)]>0x0){i[y(0x1d8)]((n,o)=>new Date(o[y(0x26a)])[y(0x21d)]()-new Date(n['date'])[y(0x21d)]());const j=i['slice'](0x0,0x4),k=j[y(0x1c3)]((n,o)=>({'id':o,'amiId':n[y(0x1d7)],'desc':n['desc']}));k[y(0x2a4)](n=>{const z=y;Log['bright'](z(0x1f3)+n['id']+z(0x235)+n['amiId']+z(0x20b)+n[z(0x1fb)]);});const l=await Actions[y(0x28f)](y(0x23d))||'0',m=k[y(0x228)](n=>n['id']===parseInt(l));if(m)a=m[y(0x1d7)],Log[y(0x29b)](y(0x293)+a+y(0x1bd)+m[y(0x1fb)]);else throw Log['error'](y(0x222));}else throw Log['error'](y(0x2a5));}else throw Log[y(0x299)](y(0x1cd));}catch(n){Log['error'](n);}return a;}async['listAvailableSubnets'](){const A=a151s;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b[A(0x226)](d);if(f&&f[A(0x1ed)]>0x0){const g=f[A(0x1c3)]((j,k)=>({'id':k,'cidr':j['CidrBlock'],'az':j[A(0x272)],'subnetId':j[A(0x243)]}));g['forEach'](j=>{const B=A;Log[B(0x274)]('ID:\x20'+j['id']+'\x20CIDR:\x20'+j['cidr']+B(0x1d5)+j['az']+B(0x27f)+j[B(0x225)]);});const h=await Actions['ask'](A(0x29c))||'0',i=g['find'](j=>j['id']===parseInt(h));if(i)a=i['subnetId'],Log['success'](A(0x1dd)+a);else throw Log['error'](A(0x222));}else throw Log[A(0x299)](A(0x204));}catch(j){Log[A(0x299)](j);}return a;}async[a151s(0x215)](a){const C=a151s;try{const b=new EC2Client({}),c={'Filters':[{'Name':C(0x23e),'Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b[C(0x226)](d);return e[C(0x237)]&&e[C(0x237)][C(0x1ed)]>0x0?e[C(0x237)][0x0][C(0x26c)]||'':'';}catch(f){return Log[C(0x299)](f),'';}}async['ecrCreateRepository'](a){const D=a151s;try{const b=new ECRClient({'region':a[D(0x29d)]}),c={'repositoryName':a[D(0x209)]},d=new CreateRepositoryCommand(c),f=await b['send'](d);return Log[D(0x29b)]('Repository\x20\x22'+a['name']+D(0x26f)+a[D(0x29d)]+'.'),f;}catch(g){Log[D(0x299)]('Failed\x20to\x20create\x20repository\x20in\x20'+a[D(0x29d)]+':\x20'+g);throw g;}}async['listAllEcrRepositories'](a){const E=a151s,b=[E(0x27e),E(0x26d),E(0x1f2),E(0x22b),E(0x22e),E(0x21a),E(0x242),E(0x23a),E(0x212),E(0x2a0),E(0x271),E(0x202),E(0x280),E(0x1d3),E(0x1c9),E(0x256),'sa-east-1',E(0x255),E(0x257),'ap-south-2',E(0x24f),'ap-southeast-4',E(0x285),E(0x21f),E(0x1fe),E(0x28a),E(0x20c),'me-central-1',E(0x1be)],c=[E(0x27e),E(0x26d),'us-west-1',E(0x22b)],d=a==='all'?b:a?a[E(0x25b)](','):c;let f=[];const g=Log[E(0x24c)]();for(const h of d){g[E(0x268)]('Processing\x20'+h[E(0x1e7)]()+E(0x25c));const i=new ECRClient({'region':h[E(0x1e7)]()});try{let j=undefined;do{const k=await Promise[E(0x232)]([i['send'](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l('timeout'),0x7d0))]);if(k==='timeout'){Log['warn'](E(0x282)+h[E(0x1e7)]()+'.');break;}else k[E(0x1fc)]&&k[E(0x1fc)][E(0x1ed)]>0x0&&(f=f[E(0x28d)](k['repositories']['map'](l=>({'name':l[E(0x1f7)],'uri':l[E(0x221)],'region':h['trim']()}))));j=k[E(0x22d)];}while(j);}catch(l){Log[E(0x299)](E(0x25f)+h[E(0x1e7)]()+':\x20'+l[E(0x288)]);}finally{g[E(0x1f6)]();}}return f['length']>0x0?(console[E(0x27c)](),Log['success'](E(0x27b)),f[E(0x2a4)](m=>{const F=E;Log['info'](F(0x223)+m['region']+F(0x26e)+m[F(0x209)]+',\x20URI:\x20'+m[F(0x224)]);})):Log[E(0x219)](E(0x23c)),f;}async['route53CreateHostedZone'](a){const G=a151s;try{const b={'CallerReference':''+Date[G(0x289)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[G(0x226)](c),Log[G(0x29b)](G(0x1da));}catch(d){Log[G(0x299)]('Error\x20creating\x20hosted\x20zone'),console[G(0x299)](d);}}async['registerDomain'](a,b,c,d){const H=a151s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a,'BillingContact':a},f=new RegisterDomainCommand(e),g=await route53Domains[H(0x226)](f);Log[H(0x239)](H(0x1e4)+b+H(0x206)),Log['notice'](H(0x263)+JSON[H(0x1dc)](g));}catch(h){Log[H(0x299)](H(0x25e)),Log[H(0x219)]('From\x20AWS:'),h[H(0x207)]&&(Log['error'](H(0x214)+h[H(0x207)][H(0x25a)]),Log['error'](H(0x1c8)+h[H(0x207)][H(0x1cb)])),Log[H(0x299)]('Error\x20Message:\x20'+h[H(0x288)]),h[H(0x209)]==='TLDRulesViolation'?Log['error'](h[H(0x288)]):Log['error']('An\x20unknown\x20error\x20occurred.'),Log['error'](h);}}async[a151s(0x208)](a){const I=a151s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[I(0x226)](c),e=d[I(0x1fd)]===I(0x238);if(e){const f=a[I(0x25b)]('.')[I(0x28c)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[I(0x226)](h);if(i&&i[I(0x234)]&&i['Prices'][0x0]?.[I(0x1d6)]){const j=i['Prices'][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console['error'](I(0x27d),k);}}return{'available':e};}async[a151s(0x20e)](a,b,c){const J=a151s;try{const d=await route53[J(0x1b9)]({'DNSName':c});if(!d?.[J(0x1d9)])throw Log[J(0x299)](J(0x294));const e=d?.['HostedZones'][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':ChangeAction[J(0x1c7)],'ResourceRecordSet':{'Name':c,'Type':RRType['A'],'TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e},g=new ChangeResourceRecordSetsCommand(f);await route53[J(0x226)](g),Log[J(0x239)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+'\x20to\x20'+c);}catch(h){console['error'](J(0x29f),h);}}async['getEcrLoginPassword']({awsAccountId:a,region:b}){const K=a151s,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c['send'](d);if(!f[K(0x29a)]||f[K(0x29a)]['length']===0x0)throw new Error(K(0x1e9));const g=f[K(0x29a)][0x0];if(!g[K(0x23b)])throw new Error('Authorization\x20token\x20is\x20missing');const h=g['authorizationToken'];if(!h)throw new Error(K(0x1c1));const i=Buffer[K(0x1cc)](h,'base64')['toString'](),j=i['split'](':')[0x1];if(!j)throw new Error(K(0x252));return j;}catch(k){Log['error'](k);throw k;}}async[a151s(0x21e)]({repoName:a,region:b}){const L=a151s,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[L(0x226)](d);return f;}catch(g){Log['error'](g);throw g;}}async[a151s(0x262)](a){const M=a151s;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[M(0x29e)],'InstanceType':a[M(0x240)],'KeyName':a[M(0x267)],'MaxCount':a[M(0x22a)],'MinCount':a['minCount'],'SecurityGroupIds':a[M(0x24a)]['split'](','),'SubnetId':a[M(0x298)],'TagSpecifications':[{'ResourceType':M(0x2a3),'Tags':a['tags']}]};a['userData']&&(b[M(0x1f4)]=M(0x286)+a[M(0x279)]);const c=new RunInstancesCommand(b),d=await client[M(0x226)](c);return d;}catch(f){Log[M(0x299)](f);}}async['ec2terminateInstance'](a){const N=a151s;try{const b={'InstanceIds':[a[N(0x258)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log['error'](f),{};}}async[a151s(0x1cf)]({keyName:a,env:b}){const O=a151s,c=this[O(0x292)]['getAppConfigPath'](b),d=a151f[O(0x250)](c,O(0x203),a+O(0x1e8));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[O(0x226)](g),i=h[O(0x227)];if(i){await this[O(0x1c6)][O(0x277)]({'filePath':d,'data':i}),execSync(O(0x1f1)+d,{'stdio':O(0x231)});const j=this[O(0x1c6)]['isFile'](d);if(j)return Log[O(0x29b)](O(0x28b)+d),{'keyName':a,'filePath':d};else throw new Error(O(0x21b));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log['error'](k),process[O(0x1d2)](0x1);}}async[a151s(0x229)]({port:a,groupId:b}){const P=a151s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':P(0x1bc),'IpRanges':[{'CidrIp':P(0x213),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[P(0x239)](P(0x1ee)+a+'\x20opened!'),await client[P(0x226)](d);}async[a151s(0x251)](a){const Q=a151s;try{a[Q(0x20a)]===''&&(a[Q(0x20a)]=await Actions[Q(0x28f)](Q(0x2a1))||Q(0x1e1));const b={'Description':a[Q(0x20a)],'GroupName':a[Q(0x209)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client[Q(0x226)](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a[Q(0x295)]['forEach'](g=>{const R=Q;this[R(0x229)]({'port':parseInt(g),'groupId':f});}),Log[Q(0x29b)](Q(0x1bf)+f+Q(0x210)+a[Q(0x209)]);}catch(g){return Log[Q(0x299)](g),![];}return!![];}async[a151s(0x1f9)](a){const S=a151s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[S(0x226)](d);if(!f)throw S(0x1ff);const {KeyPairs:g}=f;g?(g?.[S(0x2a4)]((h,i)=>{const T=S;h[T(0x1e0)]&&b['push']({'id':i,'name':h[T(0x1e0)]});}),b[S(0x1ed)]>0x0&&b[S(0x2a4)](h=>{const U=S;h[U(0x209)]===a?.[U(0x261)]?Log[U(0x29b)](U(0x1f3)+h['id']+U(0x210)+h[U(0x209)]):Log[U(0x239)]('ID:\x20'+h['id']+'\x20NAME:\x20'+h['name']);})):Log['error'](S(0x264));}catch(h){Log[S(0x299)](h);}return b;}async[a151s(0x25d)](a){const V=a151s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[V(0x226)](c);}catch(d){Log['error'](d),process[V(0x1d2)](0x1);}}async[a151s(0x1ce)](){const W=a151s,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':[W(0x236)]}]},c=new DescribeInstancesCommand(b),d=await client[W(0x226)](c);d[W(0x1e3)]?.[W(0x2a4)]((f,g)=>{const X=W;if(f?.[X(0x259)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[X(0x259)][0x0],n=m?.[X(0x228)](({Key:o})=>o===X(0x1d0));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[X(0x266)],'name':l,'env':n?.[X(0x249)]});}}),a['length']>0x0?a['forEach'](f=>{const Y=W,g=Y(0x1f3)+f['id']+Y(0x210)+f[Y(0x209)]+'\x20ENV:\x20'+f[Y(0x2a2)]+Y(0x201)+f[Y(0x1eb)]+'\x20INSTANCE_ID:\x20'+f[Y(0x258)]+'\x20PUB_IP:\x20'+f[Y(0x1ea)]+Y(0x278)+f['privateIp'];if(f[Y(0x1eb)]===Y(0x24e))Log[Y(0x299)](g);else f[Y(0x1eb)]==='running'?Log[Y(0x29b)](g):Log[Y(0x239)](g);}):Log[W(0x299)](W(0x1d1));}catch(f){Log['error'](f);}return a;}async[a151s(0x269)](a){const Z=a151s;try{const b={'InstanceIds':[a[Z(0x258)]]},c=new RebootInstancesCommand(b),d=await client[Z(0x226)](c);return d['$metadata'][Z(0x25a)]===0xc8&&Log[Z(0x29b)](Z(0x248)),d;}catch(f){Log[Z(0x299)](f);}}async['chooseVPC'](){const a0=a151s;let a='';Log['notice'](a0(0x244));const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[a0(0x2a4)]((g,h)=>{const a1=a0;g['VpcId']&&g[a1(0x26c)]&&e[a1(0x21c)]({'id':h,'vpcId':g[a1(0x205)],'cidr':g['CidrBlock']});});e[a0(0x2a4)](function(g){const a2=a0;console['log']('ID:\x20'+g['id']+a2(0x273)+g[a2(0x245)]+a2(0x1db)+g['cidr']);});const f=await Actions[a0(0x28f)](a0(0x1ec))||0x0;e[a0(0x2a4)](function(g){const a3=a0;g['id']==f&&(a=g[a3(0x245)],Log[a3(0x29b)](a3(0x1bb)+a+'\x0a'));});if(a==='')return Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';return a;}async[a151s(0x265)](){const a4=a151s,a=await this[a4(0x1ce)]();if(a['length']===0x0)return Log[a4(0x299)](a4(0x241)),null;const b=await Actions[a4(0x28f)](a4(0x1c5));!b&&(Log['error'](a4(0x22f)),process[a4(0x1d2)](0x0));const c=a[a4(0x228)](({id:d})=>{return d==parseInt(b);})||null;return c;}async['createKeyPair']({env:a}){const a5=a151s;try{const b=this['cfg'][a5(0x1df)]();if(!b)throw MustBeInProjectError;const {appName:c}=b,d=c+'-'+a,f=await Actions[a5(0x28f)]('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[a5(0x1cf)]({'keyName':f,'env':a}),h=await Actions[a5(0x275)](a5(0x1c4),!![]);if(h)try{const i=a151f[a5(0x250)](a5(0x24b),a,'ssh.json');!this[a5(0x1c6)][a5(0x253)](i)&&await this[a5(0x270)][a5(0x276)]({'srcPath':'config/ssh.json','destPath':i,'context':{'app':f}});const j=a151e[a5(0x1d4)](a151f[a5(0x250)](a5(0x24b),a,a5(0x1e6)),a5(0x284)),k=JSON[a5(0x1ba)](j);k['pem']=a151f[a5(0x250)](a5(0x203),f+a5(0x1e8)),a151e[a5(0x218)](a151f[a5(0x250)](a5(0x24b),a,a5(0x1e6)),JSON[a5(0x1dc)](k,null,0x2));}catch(l){Log[a5(0x299)](l),Log[a5(0x299)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}return{'keyName':f,'filePath':g};}catch(m){Log[a5(0x299)](m),process[a5(0x1d2)](0x1);}}async[a151s(0x26b)](a){const a6=a151s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a6(0x226)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const a7=a6;i['GroupName']&&i[a7(0x281)]&&b[a7(0x21c)]({'id':j,'name':i[a7(0x254)],'sgId':i['GroupId']});});let g='',h=0x0;return b[a6(0x2a4)](function(i){const a8=a6;i[a8(0x209)]===a&&(g=i[a8(0x260)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a151s(0x23f)](a){try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log['error'](d),process['exit'](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var k=a152d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var k=a152d,c=a();while(!![]){try{var d=-parseInt(k(0x1cc))/0x1*(-parseInt(k(0x1c9))/0x2)+parseInt(k(0x1c8))/0x3*(parseInt(k(0x1d1))/0x4)+-parseInt(k(0x1c4))/0x5*(parseInt(k(0x1d3))/0x6)+parseInt(k(0x1c3))/0x7+-parseInt(k(0x1d0))/0x8*(-parseInt(k(0x1c7))/0x9)+parseInt(k(0x1c5))/0xa*(-parseInt(k(0x1ca))/0xb)+parseInt(k(0x1ce))/0xc*(-parseInt(k(0x1c6))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a152c,0x9e79d));function a152c(){var n=['11QhXhkc','search','13890HYSnnJ','toString','5052GLtxyK','(((.+)+)+)+$','131704GzEulD','59476BVYDAy','constructor','24222aBPLYK','apply','5997348DupKrd','145ZOcDeC','4508030vWUhGI','17121rIzdCz','261MDlgGz','63ZtVqNs','18qnLuAK'];a152c=function(){return n;};return a152c();}function a152d(a,b){var c=a152c();return a152d=function(d,e){d=d-0x1c3;var f=c[d];return f;},a152d(a,b);}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a152d;if(h){var j=h[l(0x1d4)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a152d;return e['toString']()[m(0x1cb)](m(0x1cf))[m(0x1cd)]()[m(0x1d2)](e)[m(0x1cb)](m(0x1cf));});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 a153w=a153d;(function(a,b){const t=a153d,c=a();while(!![]){try{const d=parseInt(t(0x174))/0x1+parseInt(t(0x1cc))/0x2+parseInt(t(0x1b3))/0x3*(-parseInt(t(0x178))/0x4)+parseInt(t(0x1c1))/0x5+-parseInt(t(0x1d3))/0x6+-parseInt(t(0x1ad))/0x7+-parseInt(t(0x1c9))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a153c,0xb24df));function a153d(a,b){const c=a153c();return a153d=function(d,e){d=d-0x16b;let f=c[d];return f;},a153d(a,b);}const a153b=(function(){let a=!![];return function(b,c){const d=a?function(){const u=a153d;if(c){const e=c[u(0x16c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a153a=a153b(this,function(){const v=a153d;return a153a['toString']()[v(0x19c)]('(((.+)+)+)+$')[v(0x1c2)]()['constructor'](a153a)[v(0x19c)](v(0x1cb));});a153a();import a153e from'fs';import a153f from'path';import a153g from'os';import a153h from'delete';import{Log}from'../log/log.class.js';import{HTTPS}from'../https/https.class.js';function a153c(){const U=['api','Unsupported\x20js\x20engine:\x20','MAKA_DEV','readFileSync','apply','homedir','config.json','setEnvSettings','config','Unsupported\x20css\x20engine:\x20','existsSync','setTemplate()','1390842WSDKPd','Unsupported\x20theme\x20engine:\x20','assign','engines','1568852MHEeZl','Environment\x20argument\x20provided,\x20but\x20its\x20value\x20is\x20not\x20recognized.','success','tsx','/.maka/global-config.json\x20file\x20is\x20not\x20valid\x20JSON.\x20Your\x20global-config.json\x20has\x20been\x20removed.\x20\x20Please\x20re-run\x20your\x20last\x20command.','instance','length','www.maka-cli.com','delGlobalConfig()','min','getAppConfigPath()','No\x20maka\x20project\x20config\x20file\x20found.','Unsupported\x20html\x20engine:\x20','join','Environemnt\x20argument\x20provided,\x20but\x20its\x20value\x20is\x20not\x20recognized.','Are\x20you\x20sure\x20you\x20are\x20in\x20a\x20maka\x20project?','stringify','exit','env','startsWith','getMeteorInstallPath','getGlobalConfig','withValidation','engine','Your\x20','checkGlobalConfigExists()','setTemplate','defaultValue()','getEnvFromShorthand','delGlobalConfigHash()','utf8','none','filter','post','cert','writeToFile','search','fsi','withValidation()','html','getMakaProjectConfig','vanilla','\x20in\x20','No\x20app\x20name\x20present\x20in\x20./maka/config.json.','settings.json','material','Successfully\x20set\x20','withValue','global-config.json','attemptAutoLogin','statSync','setProjectConfig','react','5159707eTjjWu','theme','template','getMakaProjectConfig()','charAt','less','3NsBxur','string','css','rest','getAppProjectConfigs()','defaultValue','resolve',',\x20consider\x20running\x20\x22maka\x20g:config\x20','.meteor','client','getAppProjectConfigs','setProjectConfig()','Error\x20in\x20','false','3958700TMJnlG','toString','createFile','undefined','getAppConfigPath','True','deepen','warn','4507832QvhcoU','.maka','(((.+)+)+)+$','705218fmnHMU','readdirSync','findProjectDirectory','isFile','setGlobalConfig','error','setEngine','672378YnIwIS','pathFromProject','checkConfigExists','delGlobalConfig','jest','parse','setEngine()','No\x20global\x20config\x20file\x20','token','sync','Not\x20in\x20a\x20maka\x20project','\x20to\x20','writeFileSync','includes','setEnvSettings()','apollo'];a153c=function(){return U;};return a153c();}const GLOBAL_CONFIG=a153w(0x1a8),PROJECT_CONFIG=a153w(0x16e),homeDir=a153g[a153w(0x16d)](),errorHandler=(a,b)=>{const x=a153w;process[x(0x18a)][x(0x1e5)]===x(0x1c6)&&Log[x(0x1d1)](x(0x1bf)+a),b&&console[x(0x1d1)](b);};export class CFG{static [a153w(0x17d)];[a153w(0x19d)];constructor(a){this['fsi']=a;}static['getInstance'](a){const y=a153w;return!CFG[y(0x17d)]&&(CFG[y(0x17d)]=new CFG(a)),CFG[y(0x17d)];}[a153w(0x1bd)](){const z=a153w;try{const a=this[z(0x19d)][z(0x1ce)]();if(a===undefined)throw Log[z(0x1d1)](z(0x1dd));else{if(typeof a===z(0x1b4)){const b=a153f[z(0x185)](a,z(0x170)),c=a153e[z(0x1cd)](b)[z(0x198)](d=>!d[z(0x18b)]('.')&&a153e[z(0x1aa)](a153f[z(0x185)](b,d))['isDirectory']());return c;}}return[];}catch(d){errorHandler(z(0x1b7),d),process['exit'](0x1);}}[a153w(0x194)](a){const A=a153w;try{if(!a||typeof a!==A(0x1b4))throw A(0x179);const b=this[A(0x1bd)]();function c(h,k){const B=A,l=[],m=h[B(0x17e)],n=k[B(0x17e)];for(let o=0x0;o<=m;o++){l[o]=[o];}for(let p=0x0;p<=n;p++){l[0x0][p]=p;}for(let q=0x1;q<=m;q++){for(let r=0x1;r<=n;r++){const s=h[q-0x1]===k[r-0x1]?0x0:0x1;l[q][r]=Math[B(0x181)](l[q-0x1][r]+0x1,l[q][r-0x1]+0x1,l[q-0x1][r-0x1]+s);}}return l[m][n];}let d=Infinity,f='';const g=a[A(0x1b1)](0x0);return b['forEach'](h=>{const C=A;if(h[C(0x1b1)](0x0)===g){const i=c(a,h);i<d&&(d=i,f=h);}}),f!==''?f:a;}catch(h){errorHandler('getEnvFromShorthand()',h),process[A(0x189)](0x1);}}['checkGlobalConfigExists'](){const D=a153w;try{const a=a153f[D(0x185)](homeDir,D(0x1bb),D(0x1ca),GLOBAL_CONFIG),b=a153e['existsSync'](a);if(!b)throw Log[D(0x1d1)](D(0x1da)+a);return a;}catch(c){errorHandler(D(0x191),c),process[D(0x189)](0x1);}}[a153w(0x1d5)](a){const E=a153w;try{if(!a||typeof a!==E(0x1b4))throw E(0x186);const b=this[E(0x194)](a),c=this[E(0x19d)]['pathFromProject']({'pathParts':[E(0x170),b]}),d=a153e[E(0x172)](c);if(!d)return![];return!![];}catch(f){errorHandler('checkConfigExists()',f),process[E(0x189)](0x1);}}[a153w(0x1c5)](a){const F=a153w;try{if(!a||typeof a!==F(0x1b4))throw'Environemnt\x20argument\x20provided,\x20but\x20its\x20value\x20is\x20not\x20recognized.';const b=this[F(0x194)](a),c=this[F(0x19d)][F(0x1d4)]({'pathParts':[F(0x170),b]}),d=a153e['existsSync'](c);if(!d)throw Log[F(0x1d1)]('No\x20configuration:\x20'+b+F(0x1ba)+b+'\x22');return c;}catch(f){errorHandler(F(0x182),f),process[F(0x189)](0x1);}}['getEnvSettings'](a){const G=a153w;try{const b=this['getAppConfigPath'](a),c=a153e[G(0x16b)](a153f['join'](b,'settings.json'),'utf8');return c[G(0x1c2)]();}catch(d){errorHandler('getEnvSettings()',d),process[G(0x189)](0x1);}}[a153w(0x16f)](a,b,c){const H=a153w;try{const d=this[H(0x1c5)](a),f=a153e[H(0x16b)](a153f[H(0x185)](d,H(0x1a4)),'utf8'),g=JSON[H(0x1d8)](f['toString']());g[b]=c;const h=JSON[H(0x188)](g,null,0x2);a153e[H(0x1df)](a153f[H(0x185)](d,H(0x1a4)),h),Log[H(0x17a)](H(0x1a6)+b+H(0x1de)+c+H(0x1a2)+a153f[H(0x1b9)](d));}catch(i){errorHandler(H(0x1e1),i),process[H(0x189)](0x1);}}[a153w(0x1a0)](){const I=a153w;try{const a=this[I(0x19d)][I(0x1d4)]({'pathParts':[I(0x1ca),PROJECT_CONFIG]}),b=this['fsi']['isFile'](a);if(!b){Log['error'](I(0x187));throw Log[I(0x1d1)](I(0x183));}const c=JSON[I(0x1d8)](a153e[I(0x16b)](a,'utf8'));return!c['appName']&&(Log[I(0x1c8)](I(0x1a3)),c['appName']='app'),c;}catch(d){errorHandler(I(0x1b0),d),process['exit'](0x1);}}['delGlobalConfigHash'](){const J=a153w;try{const a=a153f[J(0x185)](this[J(0x19d)][J(0x18c)](),'.maka',GLOBAL_CONFIG),b=JSON[J(0x1d8)](a153e['readFileSync'](a)[J(0x1c2)]()),c=JSON[J(0x188)](b,null,0x2);return this[J(0x19d)][J(0x19b)]({'filePath':a,'data':c,'opts':{'absolute':!![],'silent':!![]}}),b;}catch(d){errorHandler(J(0x195),d),process[J(0x189)](0x1);}}['delGlobalConfig'](){const K=a153w;try{const a=a153f[K(0x185)](this[K(0x19d)][K(0x18c)](),K(0x1ca),GLOBAL_CONFIG);a153h['sync'](a,{'force':!![]});}catch(b){errorHandler(K(0x180),b),process[K(0x189)](0x1);}}async[a153w(0x18d)](){const L=a153w;try{const a=a153f[L(0x185)](homeDir,L(0x1ca));a153e['existsSync'](a)&&a153h[L(0x1dc)](a,{'force':!![]});const b=a153f[L(0x185)](this[L(0x19d)]['getMeteorInstallPath'](),L(0x1ca),GLOBAL_CONFIG);if(!this[L(0x19d)][L(0x1cf)](b)){const c={'token':{'authToken':'','userId':'','when':''}},d=JSON[L(0x188)](c,null,0x2);await this[L(0x19d)][L(0x1c3)]({'filePath':b,'data':d,'opts':{'force':!![],'silent':!![]}});}return JSON[L(0x1d8)](a153e[L(0x16b)](b)[L(0x1c2)]());}catch(f){f instanceof SyntaxError?(this[L(0x1d6)](),Log[L(0x1d1)](L(0x190)+this[L(0x19d)][L(0x18c)]()+L(0x17c))):console[L(0x1d1)](f),process[L(0x189)](0x1);}}[a153w(0x1ab)](a,b){const M=a153w;try{const c=this[M(0x19d)]['pathFromProject']({'pathParts':[M(0x1ca),PROJECT_CONFIG]});let d=JSON[M(0x1d8)](a153e[M(0x16b)](c,M(0x196)));const f=this[M(0x19d)][M(0x1c7)]({[a]:b});d=this[M(0x19d)]['deeperAssign'](d,f);const g=JSON[M(0x188)](d,null,0x2);a153e[M(0x1df)](c,g);}catch(h){errorHandler(M(0x1be),h),process[M(0x189)](0x1);}}async[a153w(0x1d0)](a){const N=a153w;try{const b=a153f[N(0x185)](homeDir,'.meteor',N(0x1ca),GLOBAL_CONFIG);if(!this[N(0x19d)][N(0x1cf)](b)){const f=JSON[N(0x188)](a,null,0x2);await this['fsi'][N(0x1c3)]({'filePath':b,'data':f,'opts':{'force':!![],'silent':!![]}});}const c=await this[N(0x18d)]();Object[N(0x176)](c,{...a});const d=JSON[N(0x188)](c,null,0x2);this[N(0x19d)][N(0x19b)]({'filePath':b,'data':d,'opts':{'absolute':!![],'silent':!![]}});}catch(g){errorHandler('setGlobalConfig()',g),process[N(0x189)](0x1);}}async[a153w(0x1a9)](){const O=a153w,a=await this[O(0x18d)](),b=a?.[O(0x1db)],c=a?.[O(0x19a)];if(b?.['authToken']){const d={'hostname':O(0x17f),'path':'/api/v1/encodeJwt','headers':{'x-auth-token':b['authToken']},'data':{}};c&&Object[O(0x176)](d,{'cert':c});const {data:e,statusCode:f}=await HTTPS[O(0x199)](d),{token:g}=JSON[O(0x1d8)](e);g&&f!==0x198&&this['setGlobalConfig'](a);}}[a153w(0x192)](a,b){const P=a153w;try{const c=this['fsi'][P(0x1d4)]({'pathParts':[P(0x1ca),PROJECT_CONFIG]}),d=JSON[P(0x1d8)](a153e[P(0x16b)](c,P(0x196)));d[P(0x1af)][a]=b;const f=JSON['stringify'](d,null,0x2);a153e[P(0x1df)](c,f);}catch(g){errorHandler(P(0x173),g),process[P(0x189)](0x1);}}[a153w(0x1d2)](a,b){const Q=a153w;try{const c=this[Q(0x19d)]['pathFromProject']({'pathParts':['.maka',PROJECT_CONFIG]}),d=JSON[Q(0x1d8)](a153e[Q(0x16b)](c,'utf8'));d[Q(0x18f)][a]=b;const f=JSON[Q(0x188)](d,null,0x2);a153e[Q(0x1df)](c,f);}catch(g){errorHandler(Q(0x1d9),g),process['exit'](0x1);}}[a153w(0x1b8)](a,b){const R=a153w;try{return typeof a===R(0x1c4)?b:a;}catch(c){errorHandler(R(0x193),c);}}async[a153w(0x1a7)](a,b){const S=a153w;try{let c=null;return this[S(0x18e)](a),c=await b(),c;}catch(d){errorHandler('withValue()',d),process[S(0x189)](0x1);}}[a153w(0x18e)](a){const T=a153w;try{const b={'html':[T(0x19f)],'js':['js','jsx','ts',T(0x17b)],'css':[T(0x1b5),'scss',T(0x1b2),T(0x197)],'api':[T(0x1b6),T(0x197)],'test':[T(0x1d7),'mocha',T(0x197)],'client':[T(0x1ac),T(0x1a1)],'graphql':[T(0x1e2)],'ssr':['true',T(0x1c0)],'theme':[T(0x1a5),'none']},c=a[T(0x177)]=this['defaultValue'](a[T(0x177)],{});if(c[T(0x19f)]&&!b[T(0x19f)][T(0x1e0)](c[T(0x19f)]))throw new Error(T(0x184)+c[T(0x19f)]);if(c['js']&&!b['js']['includes'](c['js']))throw new Error(T(0x1e4)+c['js']);if(c[T(0x1b5)]&&!b[T(0x1b5)][T(0x1e0)](c['css']))throw new Error(T(0x171)+c[T(0x1b5)]);if(c[T(0x1e3)]&&!b[T(0x1e3)]['includes'](c[T(0x1e3)]))throw new Error('Unsupported\x20api\x20engine:\x20'+c['api']);if(c[T(0x1bc)]&&!b[T(0x1bc)][T(0x1e0)](c[T(0x1bc)]))throw new Error('Unsupported\x20client\x20engine:\x20'+c[T(0x1bc)]);if(c[T(0x1ae)]&&!b[T(0x1ae)][T(0x1e0)](c[T(0x1ae)]))throw new Error(T(0x175)+c[T(0x1ae)]);return c['html']=this['defaultValue'](c[T(0x19f)],T(0x19f)),c['js']=this[T(0x1b8)](c['js'],'js'),c[T(0x1b5)]=this['defaultValue'](c[T(0x1b5)],'css'),c[T(0x1bc)]=this[T(0x1b8)](c['client'],T(0x1ac)),c[T(0x1e3)]=this['defaultValue'](c[T(0x1e3)],T(0x197)),c[T(0x1ae)]=this[T(0x1b8)](c[T(0x1ae)],'none'),a;}catch(d){errorHandler(T(0x19e),d),process['exit'](0x1);}}}
|
|
1
|
+
const a153w=a153d;(function(a,b){const t=a153d,c=a();while(!![]){try{const d=parseInt(t(0x20b))/0x1*(parseInt(t(0x214))/0x2)+parseInt(t(0x225))/0x3*(-parseInt(t(0x235))/0x4)+parseInt(t(0x200))/0x5+-parseInt(t(0x222))/0x6+-parseInt(t(0x231))/0x7*(parseInt(t(0x253))/0x8)+parseInt(t(0x20e))/0x9*(-parseInt(t(0x25a))/0xa)+parseInt(t(0x1eb))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a153c,0x64e37));const a153b=(function(){let a=!![];return function(b,c){const d=a?function(){const u=a153d;if(c){const e=c[u(0x23a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a153a=a153b(this,function(){const v=a153d;return a153a['toString']()[v(0x210)]('(((.+)+)+)+$')['toString']()['constructor'](a153a)[v(0x210)](v(0x215));});a153a();import a153e from'fs';import a153f from'path';function a153d(a,b){const c=a153c();return a153d=function(d,e){d=d-0x1e0;let f=c[d];return f;},a153d(a,b);}import a153g from'os';import a153h from'delete';import{Log}from'../log/log.class.js';import{HTTPS}from'../https/https.class.js';const GLOBAL_CONFIG='global-config.json',PROJECT_CONFIG=a153w(0x1e9),homeDir=a153g[a153w(0x254)](),errorHandler=(a,b)=>{const x=a153w;process['env']['MAKA_DEV']===x(0x223)&&Log['error'](x(0x248)+a),b&&console[x(0x21f)](b);};export class CFG{static [a153w(0x24f)];[a153w(0x20a)];constructor(a){const y=a153w;this[y(0x20a)]=a;}static[a153w(0x24c)](a){const z=a153w;return!CFG[z(0x24f)]&&(CFG[z(0x24f)]=new CFG(a)),CFG[z(0x24f)];}['getAppProjectConfigs'](){const A=a153w;try{const a=this[A(0x20a)][A(0x23e)]();if(a===undefined)throw Log[A(0x21f)](A(0x227));else{if(typeof a==='string'){const b=a153f[A(0x24b)](a,'config'),c=a153e['readdirSync'](b)[A(0x23d)](d=>!d[A(0x1e2)]('.')&&a153e['statSync'](a153f['join'](b,d))[A(0x257)]());return c;}}return[];}catch(d){errorHandler(A(0x1f4),d),process[A(0x251)](0x1);}}[a153w(0x241)](a){const B=a153w;try{if(!a||typeof a!==B(0x236))throw B(0x252);const b=this[B(0x1ed)]();function c(h,k){const C=B,l=[],m=h[C(0x218)],n=k[C(0x218)];for(let o=0x0;o<=m;o++){l[o]=[o];}for(let p=0x0;p<=n;p++){l[0x0][p]=p;}for(let q=0x1;q<=m;q++){for(let r=0x1;r<=n;r++){const s=h[q-0x1]===k[r-0x1]?0x0:0x1;l[q][r]=Math[C(0x23f)](l[q-0x1][r]+0x1,l[q][r-0x1]+0x1,l[q-0x1][r-0x1]+s);}}return l[m][n];}let d=Infinity,f='';const g=a[B(0x24e)](0x0);return b[B(0x21c)](h=>{const D=B;if(h[D(0x24e)](0x0)===g){const i=c(a,h);i<d&&(d=i,f=h);}}),f!==''?f:a;}catch(h){errorHandler(B(0x1fd),h),process[B(0x251)](0x1);}}[a153w(0x250)](){const E=a153w;try{const a=a153f['join'](homeDir,E(0x244),E(0x1fb),GLOBAL_CONFIG),b=a153e[E(0x22a)](a);if(!b)throw Log['error']('No\x20global\x20config\x20file\x20'+a);return a;}catch(c){errorHandler(E(0x211),c),process[E(0x251)](0x1);}}[a153w(0x1fc)](a){const F=a153w;try{if(!a||typeof a!==F(0x236))throw'Environemnt\x20argument\x20provided,\x20but\x20its\x20value\x20is\x20not\x20recognized.';const b=this[F(0x241)](a),c=this[F(0x20a)]['pathFromProject']({'pathParts':[F(0x1e6),b]}),d=a153e[F(0x22a)](c);if(!d)return![];return!![];}catch(f){errorHandler(F(0x25c),f),process[F(0x251)](0x1);}}[a153w(0x255)](a){const G=a153w;try{if(!a||typeof a!==G(0x236))throw G(0x1fe);const b=this[G(0x241)](a),c=this[G(0x20a)][G(0x1f6)]({'pathParts':[G(0x1e6),b]}),d=a153e[G(0x22a)](c);if(!d)throw Log[G(0x21f)]('No\x20configuration:\x20'+b+G(0x224)+b+'\x22');return c;}catch(f){errorHandler(G(0x22b),f),process[G(0x251)](0x1);}}[a153w(0x238)](a){const H=a153w;try{const b=this[H(0x255)](a),c=a153e[H(0x1f5)](a153f[H(0x24b)](b,H(0x204)),'utf8');return c[H(0x246)]();}catch(d){errorHandler('getEnvSettings()',d),process['exit'](0x1);}}[a153w(0x258)](a,b,c){const I=a153w;try{const d=this['getAppConfigPath'](a),f=a153e[I(0x1f5)](a153f[I(0x24b)](d,'settings.json'),'utf8'),g=JSON[I(0x23c)](f['toString']());g[b]=c;const h=JSON[I(0x233)](g,null,0x2);a153e[I(0x24a)](a153f['join'](d,I(0x204)),h),Log[I(0x1e0)](I(0x22c)+b+I(0x1e4)+c+I(0x21b)+a153f[I(0x21d)](d));}catch(i){errorHandler(I(0x1ef),i),process[I(0x251)](0x1);}}[a153w(0x1e1)](){const J=a153w;try{const a=this[J(0x20a)][J(0x1f6)]({'pathParts':[J(0x1fb),PROJECT_CONFIG]}),b=this[J(0x20a)][J(0x1f9)](a);if(!b){Log['error'](J(0x201));throw Log[J(0x21f)](J(0x229));}const c=JSON[J(0x23c)](a153e[J(0x1f5)](a,'utf8'));return!c[J(0x1f0)]&&(Log[J(0x242)]('No\x20app\x20name\x20present\x20in\x20./maka/config.json.'),c['appName']='app'),c;}catch(d){errorHandler(J(0x1f7),d),process[J(0x251)](0x1);}}[a153w(0x1ee)](){const K=a153w;try{const a=a153f[K(0x24b)](this[K(0x20a)]['getMeteorInstallPath'](),'.maka',GLOBAL_CONFIG),b=JSON[K(0x23c)](a153e[K(0x1f5)](a)[K(0x246)]()),c=JSON[K(0x233)](b,null,0x2);return this[K(0x20a)][K(0x247)]({'filePath':a,'data':c,'opts':{'absolute':!![],'silent':!![]}}),b;}catch(d){errorHandler(K(0x203),d),process['exit'](0x1);}}[a153w(0x256)](){const L=a153w;try{const a=a153f['join'](this[L(0x20a)][L(0x21e)](),L(0x1fb),GLOBAL_CONFIG);a153h[L(0x243)](a,{'force':!![]});}catch(b){errorHandler(L(0x206),b),process[L(0x251)](0x1);}}async[a153w(0x23b)](){const M=a153w;try{const a=a153f[M(0x24b)](homeDir,M(0x1fb));a153e[M(0x22a)](a)&&a153h[M(0x243)](a,{'force':!![]});const b=a153f[M(0x24b)](this['fsi'][M(0x21e)](),'.maka',GLOBAL_CONFIG);if(!this['fsi'][M(0x1f9)](b)){const c={'token':{'authToken':'','userId':'','when':''}},d=JSON[M(0x233)](c,null,0x2);await this[M(0x20a)][M(0x20d)]({'filePath':b,'data':d,'opts':{'force':!![],'silent':!![]}});}return JSON[M(0x23c)](a153e[M(0x1f5)](b)['toString']());}catch(f){f instanceof SyntaxError?(this[M(0x256)](),Log[M(0x21f)](M(0x220)+this[M(0x20a)][M(0x21e)]()+M(0x212))):console['error'](f),process[M(0x251)](0x1);}}[a153w(0x21a)](a,b){const N=a153w;try{const c=this[N(0x20a)][N(0x1f6)]({'pathParts':[N(0x1fb),PROJECT_CONFIG]});let d=JSON[N(0x23c)](a153e['readFileSync'](c,N(0x205)));const f=this[N(0x20a)][N(0x24d)]({[a]:b});d=this['fsi'][N(0x1f3)](d,f);const g=JSON[N(0x233)](d,null,0x2);a153e['writeFileSync'](c,g);}catch(h){errorHandler('setProjectConfig()',h),process[N(0x251)](0x1);}}async['setGlobalConfig'](a){const O=a153w;try{const b=a153f[O(0x24b)](homeDir,O(0x244),'.maka',GLOBAL_CONFIG);if(!this[O(0x20a)][O(0x1f9)](b)){const f=JSON[O(0x233)](a,null,0x2);await this[O(0x20a)][O(0x20d)]({'filePath':b,'data':f,'opts':{'force':!![],'silent':!![]}});}const c=await this[O(0x23b)]();Object[O(0x1e7)](c,{...a});const d=JSON[O(0x233)](c,null,0x2);this[O(0x20a)]['writeToFile']({'filePath':b,'data':d,'opts':{'absolute':!![],'silent':!![]}});}catch(g){errorHandler(O(0x232),g),process[O(0x251)](0x1);}}async[a153w(0x22f)](){const P=a153w,a=await this['getGlobalConfig'](),b=a?.[P(0x1f2)],c=a?.[P(0x25f)];if(b?.[P(0x219)]){const d={'hostname':P(0x213),'path':P(0x234),'headers':{'x-auth-token':b[P(0x219)]},'data':{}};c&&Object[P(0x1e7)](d,{'cert':c});const {data:e,statusCode:f}=await HTTPS[P(0x208)](d),{token:g}=JSON['parse'](e);g&&f!==0x198&&this[P(0x1ea)](a);}}[a153w(0x1e5)](a,b){const Q=a153w;try{const c=this['fsi'][Q(0x1f6)]({'pathParts':[Q(0x1fb),PROJECT_CONFIG]}),d=JSON[Q(0x23c)](a153e[Q(0x1f5)](c,Q(0x205)));d[Q(0x249)][a]=b;const f=JSON[Q(0x233)](d,null,0x2);a153e[Q(0x24a)](c,f);}catch(g){errorHandler('setTemplate()',g),process[Q(0x251)](0x1);}}['setEngine'](a,b){const R=a153w;try{const c=this[R(0x20a)][R(0x1f6)]({'pathParts':['.maka',PROJECT_CONFIG]}),d=JSON[R(0x23c)](a153e[R(0x1f5)](c,R(0x205)));d['engine'][a]=b;const f=JSON[R(0x233)](d,null,0x2);a153e[R(0x24a)](c,f);}catch(g){errorHandler(R(0x1f1),g),process['exit'](0x1);}}['defaultValue'](a,b){const S=a153w;try{return typeof a===S(0x1ff)?b:a;}catch(c){errorHandler(S(0x1ec),c);}}async[a153w(0x221)](a,b){const T=a153w;try{let c=null;return this[T(0x259)](a),c=await b(),c;}catch(d){errorHandler('withValue()',d),process['exit'](0x1);}}[a153w(0x259)](a){const U=a153w;try{const b={'html':[U(0x22e)],'js':['js',U(0x245),'ts',U(0x25b)],'css':[U(0x207),U(0x209),U(0x216),'none'],'api':[U(0x1e3),U(0x25e)],'test':[U(0x230),'mocha',U(0x25e)],'client':['react','vanilla'],'graphql':[U(0x202)],'ssr':['true','false'],'theme':[U(0x240),U(0x25e)]},c=a[U(0x20f)]=this[U(0x1fa)](a[U(0x20f)],{});if(c[U(0x22e)]&&!b['html']['includes'](c['html']))throw new Error('Unsupported\x20html\x20engine:\x20'+c[U(0x22e)]);if(c['js']&&!b['js']['includes'](c['js']))throw new Error(U(0x1e8)+c['js']);if(c[U(0x207)]&&!b[U(0x207)][U(0x22d)](c[U(0x207)]))throw new Error(U(0x228)+c[U(0x207)]);if(c[U(0x239)]&&!b[U(0x239)][U(0x22d)](c[U(0x239)]))throw new Error(U(0x20c)+c[U(0x239)]);if(c['client']&&!b['client']['includes'](c['client']))throw new Error(U(0x217)+c[U(0x25d)]);if(c[U(0x237)]&&!b[U(0x237)]['includes'](c[U(0x237)]))throw new Error('Unsupported\x20theme\x20engine:\x20'+c['theme']);return c[U(0x22e)]=this[U(0x1fa)](c[U(0x22e)],U(0x22e)),c['js']=this[U(0x1fa)](c['js'],'js'),c['css']=this[U(0x1fa)](c[U(0x207)],'css'),c[U(0x25d)]=this[U(0x1fa)](c[U(0x25d)],U(0x1f8)),c[U(0x239)]=this['defaultValue'](c[U(0x239)],U(0x25e)),c['theme']=this['defaultValue'](c['theme'],U(0x25e)),a;}catch(d){errorHandler(U(0x226),d),process['exit'](0x1);}}}function a153c(){const V=['readFileSync','pathFromProject','getMakaProjectConfig()','react','isFile','defaultValue','.maka','checkConfigExists','getEnvFromShorthand()','Environemnt\x20argument\x20provided,\x20but\x20its\x20value\x20is\x20not\x20recognized.','undefined','2620435jqlIje','Are\x20you\x20sure\x20you\x20are\x20in\x20a\x20maka\x20project?','apollo','delGlobalConfigHash()','settings.json','utf8','delGlobalConfig()','css','post','scss','fsi','38555jjYIdx','Unsupported\x20api\x20engine:\x20','createFile','7119999LXeMrK','engines','search','checkGlobalConfigExists()','/.maka/global-config.json\x20file\x20is\x20not\x20valid\x20JSON.\x20Your\x20global-config.json\x20has\x20been\x20removed.\x20\x20Please\x20re-run\x20your\x20last\x20command.','www.maka-cli.com','2kMfcFb','(((.+)+)+)+$','less','Unsupported\x20client\x20engine:\x20','length','authToken','setProjectConfig','\x20in\x20','forEach','resolve','getMeteorInstallPath','error','Your\x20','withValue','2574246gYTGXC','True',',\x20consider\x20running\x20\x22maka\x20g:config\x20','2211ITZTGR','withValidation()','Not\x20in\x20a\x20maka\x20project','Unsupported\x20css\x20engine:\x20','No\x20maka\x20project\x20config\x20file\x20found.','existsSync','getAppConfigPath()','Successfully\x20set\x20','includes','html','attemptAutoLogin','jest','161plcejX','setGlobalConfig()','stringify','/api/v1/encodeJwt','2168jOULNW','string','theme','getEnvSettings','api','apply','getGlobalConfig','parse','filter','findProjectDirectory','min','material','getEnvFromShorthand','warn','sync','.meteor','jsx','toString','writeToFile','Error\x20in\x20','template','writeFileSync','join','getInstance','deepen','charAt','instance','checkGlobalConfigExists','exit','Environment\x20argument\x20provided,\x20but\x20its\x20value\x20is\x20not\x20recognized.','210488gDNVsy','homedir','getAppConfigPath','delGlobalConfig','isDirectory','setEnvSettings','withValidation','10PlbeIm','tsx','checkConfigExists()','client','none','cert','success','getMakaProjectConfig','startsWith','rest','\x20to\x20','setTemplate','config','assign','Unsupported\x20js\x20engine:\x20','config.json','setGlobalConfig','22828916tzUvni','defaultValue()','getAppProjectConfigs','delGlobalConfigHash','setEnvSettings()','appName','setEngine()','token','deeperAssign','getAppProjectConfigs()'];a153c=function(){return V;};return a153c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a154m=a154d;(function(a,b){const j=a154d,c=a();while(!![]){try{const d=parseInt(j(0xab))/0x1*(parseInt(j(0xb7))/0x2)+parseInt(j(0xb2))/0x3*(parseInt(j(0xa8))/0x4)+parseInt(j(0xb8))/0x5*(parseInt(j(0xad))/0x6)+parseInt(j(0xba))/0x7*(parseInt(j(0xae))/0x8)+parseInt(j(0xb4))/0x9*(-parseInt(j(0xbf))/0xa)+-parseInt(j(0xaa))/0xb+parseInt(j(0xb9))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a154c,0xe0f41));function a154d(a,b){const c=a154c();return a154d=function(d,e){d=d-0xa7;let f=c[d];return f;},a154d(a,b);}const a154b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a154d;if(c){const e=c[k(0xa9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a154a=a154b(this,function(){const l=a154d;return a154a[l(0xb0)]()['search'](l(0xbb))[l(0xb0)]()[l(0xb3)](a154a)['search'](l(0xbb));});a154a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';function a154c(){const q=['12AExwoQ','8gpmsYX','.dkr.ecr.','toString','join','87KpfNdA','constructor','225HRYuaI','awsLogin','error','1482oBbuQZ','2772565XHbbAb','13419288PDtZMv','4688411dJDrPg','(((.+)+)+)+$','.amazonaws.com','tag','.amazonaws.com/','697630qwsJPa','docker\x20','inherit','59804SoiDpN','apply','15280375MnDDzX','977bCtKiP','pushImage'];a154c=function(){return q;};return a154c();}export class Docker{static[a154m(0xbd)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a154m;try{const f=[n(0xbd),a,b+n(0xaf)+c+n(0xbe)+d],g=n(0xc0)+f[n(0xb1)]('\x20'),h=execSync(g,{'stdio':n(0xa7)})[n(0xb0)]();return h;}catch(i){return Log['error'](i),'';}}static[a154m(0xb5)]({awsAccountId:a,region:b,password:c}){const o=a154m;try{const d='echo\x20'+c+'\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20'+a+o(0xaf)+b+o(0xbc);return execSync(d,{'stdio':o(0xa7)}),d;}catch(f){return Log['error'](f),'';}}static[a154m(0xac)]({awsAccountId:a,region:b,repoName:c}){const p=a154m;try{const d=['push',a+'.dkr.ecr.'+b+p(0xbe)+c],f=p(0xc0)+d['join']('\x20'),g=execSync(f,{'stdio':p(0xa7)})[p(0xb0)]();return g;}catch(h){return Log[p(0xb6)](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a155d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
function a155d(a,b){var c=a155c();return a155d=function(d,e){d=d-0xba;var f=c[d];return f;},a155d(a,b);}function a155c(){var i=['107056GvxQuj','22NpTBpg','constructor','749OqINMv','(((.+)+)+)+$','10103103uHezSv','20683650xRSQZc','501780NqvjrZ','apply','5413735yQWkqY','toString','4qFxNJu','search','5640900mZxAWS','149763dJuwbj'];a155c=function(){return i;};return a155c();}(function(a,b){var f=a155d,c=a();while(!![]){try{var d=parseInt(f(0xba))/0x1+-parseInt(f(0xc3))/0x2*(-parseInt(f(0xc1))/0x3)+-parseInt(f(0xbe))/0x4*(parseInt(f(0xbc))/0x5)+-parseInt(f(0xc0))/0x6+-parseInt(f(0xc5))/0x7*(parseInt(f(0xc2))/0x8)+parseInt(f(0xc7))/0x9+parseInt(f(0xc8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a155c,0xc0280));var a155b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a155d;if(c){var e=c[g(0xbb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a155a=a155b(this,function(){var h=a155d;return a155a[h(0xbd)]()[h(0xbf)](h(0xc6))[h(0xbd)]()[h(0xc4)](a155a)[h(0xbf)]('(((.+)+)+)+$');});a155a();export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a156q=a156d;function a156d(a,b){const c=a156c();return a156d=function(d,e){d=d-0x1a7;let f=c[d];return f;},a156d(a,b);}function a156c(){const a9=['isSelfTest','utf8','getDirectories()','string','665GsrxVS','sync','omit','\x20...\x0a','code','search','.maka','True','readFile','app','Error\x20in\x20','findProjectDirectory()','\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20overwrite\x20it?','deeperAssign','5.1.17','0.0.0.0','parse','Error\x20reading\x20file:\x20','directoryEntries()','checkPortInUse','Created\x20','\x20is\x20already\x20in\x20use,\x20trying\x20','findDirectoryUp','platform','isMakaProject','fileContainsString','meteor','resolve','forEach','saveInit()','failure','constructor','instance','info','replace','findProjectDirectory','Local','promises','absolute','Cannot\x20write\x20data\x20to\x20a\x20directory','unlink','pathFromProject()','Setting\x20up\x20the\x20npm\x20packages','writeToFile()','complete','readFileLines','warn','Extracting','6sGHVqF','compareMakaToLatest','listen','Uh-oh,\x20the\x20directory\x20is\x20not\x20a\x20directory\x20','extractTarGz','grep()','build','apply','split','data','isDirectory','createDirectory','pathFromProject','directoryEntries','No\x20directory\x20path\x20provided','saveInit','getMeteorInstallPath','Please\x20update\x20with:\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20npm\x20i\x20-g\x20@maka/maka-cli@latest\x0a\x0a\x20\x20\x20\x20\x20\x20','confirm','AppData','silent','File\x20not\x20written','ignore','env','10OrBKlN','exit','552ShmswO','object','filter','File\x20exists\x20at\x20that\x20location','base64','2436288LnyMXq','length','readFileSync','N/A','appName','bright','toString','join','60111shxHGD','readdirSync','mkdirSync','Port\x20','level','.node_version.txt','mkKeysDir','writeFile','isArray','(((.+)+)+)+$','isFile','@maka/maka-cli','\x20is\x20already\x20in\x20use,\x20exiting\x20...','concat','2947970NIvhzg','479166zOrnsp','sep','^.*(','Invalid\x20directory','140684pEzZod','utf-8','getProjectMeteorVersion()','local','writeFileSync','.meteor',').*$','singleLine','getInstance','dirname','createReadStream','success','isImage','cache.json','error','EADDRINUSE','getLatestMakaVersion','match','win32','force','4759986MEZykU','normalize','MAKA_DEV','config.json','createServer','extname','getProjectsMeteorNodeVersion()','extensions','Latest\x20version\x20of\x20maka-cli\x20is\x20','getProjectsMeteorNodeVersion','initNpm','writeToFile','getGlobalMakaDir','findAppDirectory','createFile()','deepen','9JEJfNh','verbose','entries','relative','getProjectMeteorVersion','once','grep','message','cwd','meteorCommand','statSync','getUserDataDirectory','getDirectories','cacheResult','getCachedResult','push','createFile','stringify'];a156c=function(){return a9;};return a156c();}(function(a,b){const n=a156d,c=a();while(!![]){try{const d=parseInt(n(0x20d))/0x1*(-parseInt(n(0x1e6))/0x2)+-parseInt(n(0x21c))/0x3+-parseInt(n(0x220))/0x4*(-parseInt(n(0x1fe))/0x5)+-parseInt(n(0x200))/0x6*(-parseInt(n(0x1b6))/0x7)+-parseInt(n(0x205))/0x8+-parseInt(n(0x244))/0x9*(-parseInt(n(0x21b))/0xa)+parseInt(n(0x234))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a156c,0x278de));const a156b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a156d;if(c){const e=c[o(0x1ed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a156a=a156b(this,function(){const p=a156d;return a156a[p(0x20b)]()['search'](p(0x216))[p(0x20b)]()[p(0x1d5)](a156a)[p(0x1bb)]('(((.+)+)+)+$');});a156a();import a156e from'path';import a156f from'net';import a156g from'@maka/tar';import a156h from'fs';import a156i from'os';import a156j from'delete';import{exec}from'child_process';import a156k from'latest-version';import a156l from'semver';import{promises as a156m}from'fs';import{Log}from'../log/log.class.js';import{Actions}from'../actions/actions.class.js';import{Progress}from'../progress/progress.class.js';const pjson={'version':a156q(0x1c4)},PROJECT_CONFIG=a156q(0x237),GLOBAL_CACHE=a156q(0x22d),homeDir=a156i['homedir'](),errorHandler=(a,b)=>{const r=a156q;process[r(0x1fd)][r(0x236)]===r(0x1bd)&&Log['error'](r(0x1c0)+a),b&&console['error'](b);};export class FSI{static ['instance'];[a156q(0x209)];constructor(){}static[a156q(0x228)](){const s=a156q;return!FSI[s(0x1d6)]&&(FSI['instance']=new FSI()),FSI[s(0x1d6)];}[a156q(0x1ab)](){const t=a156q,a=process['platform']===t(0x232);return a?a156e[t(0x20c)](homeDir,t(0x1f9),t(0x1da)):a156e['join'](homeDir);}[a156q(0x1f6)](){const u=a156q,a=process['platform']===u(0x232);return a?a156e[u(0x20c)](homeDir,u(0x1f9),u(0x1da),'.meteor'):a156e[u(0x20c)](homeDir,'.meteor');}[a156q(0x1a9)](){const v=a156q;return a156e[v(0x20c)](this[v(0x1f6)](),v(0x1d0));}[a156q(0x1ac)](a){const w=a156q;try{return a156h['readdirSync'](a)[w(0x202)](b=>{const x=w;return a156h[x(0x1aa)](a156e[x(0x20c)](a,b))[x(0x1f0)]();});}catch(b){errorHandler(w(0x1b4),b),process[w(0x1ff)](0x1);}}async[a156q(0x1b0)]({filePath:a,data:b,opts:c}){const y=a156q,d=c?.[y(0x1dc)]?a156e[y(0x20c)](process['cwd'](),a):a156e[y(0x247)](process['cwd'](),a);try{const f=a156e[y(0x235)](a)['split'](a156e[y(0x21d)]);f['pop']();const g=f[y(0x20c)](a156e[y(0x21d)]),h=!this['isDirectory'](g);h&&await this[y(0x1f1)]({'dirPath':g,'force':c?.[y(0x233)],'silent':c?.[y(0x1fa)]});if(this['isFile'](a)&&!c?.[y(0x233)]){const i=await Actions[y(0x1f8)](a+y(0x1c2));if(!i){if(c?.[y(0x1fc)])return;else throw{'msg':y(0x1fb),'level':'info','verbose':!![]};}else await a156m[y(0x1de)](a);}if(c?.[y(0x22c)]){const j=Buffer['from'](b,y(0x204));await a156m[y(0x214)](a,j);}else await a156m[y(0x214)](a,b);!c?.[y(0x1fa)]&&Log[y(0x20a)]('\x20created\x20file\x20'+d);}catch(k){k?.[y(0x245)]?k[y(0x211)]===y(0x1d7)?Log[y(0x22e)](k['msg']):errorHandler('createFile()',k['msg']):errorHandler(y(0x242),k);}}['getFiles'](a,b){const z=a156q;try{const c=a156h[z(0x20e)](a)['filter'](d=>{const A=z,f=a156e['join'](a,d);if(this[A(0x1f0)](f))return![];if(b?.[A(0x1b8)]){const g=Array[A(0x215)](b['omit'])?b[A(0x1b8)]:[b[A(0x1b8)]];for(const h of g){if(d['includes'](h))return![];}}if(b?.[A(0x23b)]){const i=a156e[A(0x239)](f);if(!i)return![];if(!b[A(0x23b)]['includes'](i[A(0x1d8)]('.','')))return![];return!![];}return!![];});return c;}catch(d){errorHandler('getFiles()',d),process[z(0x1ff)](0x1);}}[a156q(0x213)]({configPath:a}){const B=a156q;if(!this[B(0x1f0)](a))throw B(0x21f);const b=a156e[B(0x20c)](a,'_keys');try{a156h[B(0x1aa)](b);}catch(c){Log[B(0x1e4)](c['message']),a156h[B(0x20f)](b,{'recursive':!![]});}return b;}[a156q(0x23f)]({filePath:a,data:b,opts:c}){const C=a156q,d=c?.['absolute']?a156e['join'](process[C(0x1a8)](),a):a156e['relative'](process['cwd'](),a);try{if(this['isDirectory'](a))throw Log['error'](C(0x1dd));a156h['writeFileSync'](a,b),!c?.[C(0x1fa)]&&Log['bright']('Updated\x20file\x20'+d);}catch(f){errorHandler(C(0x1e1),f);}}async[a156q(0x1f1)]({dirPath:a,force:b,silent:c}){const D=a156q;if(!a)throw Log[D(0x22e)](D(0x1f4));try{b&&a156j[D(0x1b7)](a);if(this[D(0x217)](a))throw Log[D(0x22e)](D(0x203));const d=this[D(0x1f0)](a);if(!d){a156h[D(0x20f)](a,{'recursive':!![]});if(!this[D(0x1f0)](a))throw D(0x1e9)+a;!c&&Log[D(0x22b)](D(0x1ca)+a156e[D(0x247)](process['cwd'](),a));}}catch(f){errorHandler('createDirectory()',f);}}[a156q(0x1cc)]({predicate:a,startPath:b}){const E=a156q;try{let c=b||process[E(0x1a8)]();while(c){if(a(c))break;const d=a156e[E(0x229)](c);d===c?c=undefined:c=d;}return c;}catch(f){errorHandler('findDirectoryUp()',f),process[E(0x1ff)](0x1);}}[a156q(0x1d9)](a=process['cwd']()){const F=a156q;try{const b=this[F(0x1cc)]({'predicate':c=>{const G=F;return this[G(0x217)](a156e[G(0x20c)](c,G(0x1bc),PROJECT_CONFIG));},'startPath':a||process[F(0x1a8)]()});if(!b)return'';return b;}catch(c){errorHandler(F(0x1c1),c),process[F(0x1ff)](0x1);}}[a156q(0x241)](a=process[a156q(0x1a8)]()){const H=a156q;try{const b=this[H(0x1d9)](a);return b&&typeof b===H(0x1b5)?a156e[H(0x20c)](b,'app'):'';}catch(c){errorHandler('findAppDirectory()',c),process[H(0x1ff)](0x1);}}[a156q(0x1f2)]({pathParts:a}){const I=a156q;try{const b=a?.['join'](a156e[I(0x21d)]),c=this[I(0x1d9)]();return c&&typeof c===I(0x1b5)?a156e[I(0x20c)](c,b||''):'';}catch(d){errorHandler(I(0x1df),d),process[I(0x1ff)](0x1);}}[a156q(0x217)](a){const J=a156q;try{const b=a156e[J(0x1d1)](a),c=a156h[J(0x1aa)](b);return c[J(0x217)]();}catch(d){return![];}}[a156q(0x1f0)](a){const K=a156q;try{const b=a156h['statSync'](a);return b[K(0x1f0)]();}catch(c){return![];}}[a156q(0x1e3)](a){const L=a156q;try{const b=a156h[L(0x207)](a,'utf8'),c=b[L(0x1ee)](/\r*\n\r*/);while(c['length']){const d=c[c[L(0x206)]-0x1];if(d[L(0x231)](/\S/))break;c['pop']();}return c;}catch(f){errorHandler('readFileLines()',f),process['exit'](0x1);}}[a156q(0x248)](){const M=a156q;try{const a=this[M(0x1f2)]({'pathParts':[M(0x1bf),M(0x225),'release']}),b=a156h['readFileSync'](a,M(0x1b3));let c=b['replace']('METEOR@','')[M(0x1d8)]('\x0a','');const d=c['split']('.')['length'];return d<0x3&&(c=c+'.0'),c;}catch(f){errorHandler(M(0x222),f),process[M(0x1ff)](0x1);}}async[a156q(0x23d)](){const N=a156q;try{const a=this[N(0x1f2)]({'pathParts':[N(0x1bf),N(0x225),'local',N(0x1ec),N(0x212)]});if(!this['isFile'](a))return N(0x208);else{const b=this[N(0x1f2)]({'pathParts':[N(0x1bf),N(0x225),N(0x223),N(0x1ec),N(0x212)]}),c=a156h[N(0x207)](b,N(0x1b3)),d=c[N(0x1d8)]('v','')[N(0x1d8)]('\x0a','');return d;}}catch(f){errorHandler(N(0x23a),f),process[N(0x1ff)](0x1);}}async[a156q(0x230)](){const O=a156q,a=await a156k(O(0x218));return a;}async[a156q(0x1e7)](){const P=a156q,a=await this[P(0x230)]();a156l['gt'](a,pjson['version'])&&(Log[P(0x1e4)](P(0x23c)+a),Log[P(0x1e4)](P(0x1f7)));return;}['directoryEntries'](a){const Q=a156q;try{let b=[];const c=a156h[Q(0x20e)](a);for(const d of c){const f=a156e[Q(0x20c)](a,d);b[Q(0x1af)](f),this['isDirectory'](f)&&(b=b[Q(0x21a)](this[Q(0x1f3)](f)));}return b;}catch(g){errorHandler(Q(0x1c8),g),process[Q(0x1ff)](0x1);}}[a156q(0x1ce)](){const R=a156q,a=this[R(0x1d9)]();return a!==''?!![]:![];}[a156q(0x24a)](a,b){const S=a156q;try{const c=new RegExp(S(0x21e)+b+S(0x226),'mg'),d=a[S(0x231)](c);return d||[];}catch(f){errorHandler(S(0x1eb),f),process[S(0x1ff)](0x1);}}async[a156q(0x1cf)](a,b){const T=a156q;try{if(a156h['existsSync'](a)===![])return![];const c=await a156h[T(0x1db)][T(0x1be)](a,T(0x1b3));return c['includes'](b);}catch(d){console[T(0x22e)](T(0x1c7)+d);throw d;}}[a156q(0x1ae)](a){const U=a156q,b=a156e[U(0x20c)](this['getMeteorInstallPath'](),U(0x1bc),GLOBAL_CACHE);try{const c=JSON['parse'](a156h[U(0x207)](b,U(0x221)));return c[a]||null;}catch(d){return null;}}[a156q(0x1ad)](a,b){const V=a156q,c=a156e['join'](this[V(0x1f6)](),V(0x1bc),GLOBAL_CACHE);try{const d=JSON[V(0x1c6)](a156h[V(0x207)](c,V(0x221)));d[a]=b,a156h['writeFileSync'](c,JSON[V(0x1b1)](d));}catch(f){const g={[a]:b};a156h[V(0x224)](c,JSON[V(0x1b1)](g));}}[a156q(0x240)](){const W=a156q;return a156e['join'](this[W(0x1f6)](),W(0x1bc));}async[a156q(0x1f5)](a,b){const X=a156q;try{const c=JSON[X(0x1b1)](a,null,0x2);await this[X(0x1b0)]({'filePath':b,'data':c,'opts':{'force':!![]}});}catch(d){errorHandler(X(0x1d3),d),process[X(0x1ff)](0x1);}}[a156q(0x243)](a){const Y=a156q,b={};for(const c in a){const d=c['split']('.');let e=b;while(d?.[Y(0x206)]>0x1){const f=d?.['shift']();f&&(e=e[f]=e[f]||{});}e[d[0x0]]=a[c];}return b;}[a156q(0x1c3)](c,d){const Z=a156q;return Object[Z(0x246)](d)[Z(0x1d2)](([e,f])=>c[e]=f&&typeof f===Z(0x201)?this[Z(0x1c3)](c[e]=c[e]||{},f):f),c;}[a156q(0x23e)](a){return new Promise((b,c)=>{const a0=a156d;a=a||{},a['cwd']=a[a0(0x1a8)]||'.';if(!a[a0(0x1b2)]){const d=this[a0(0x241)](a[a0(0x1a8)]);if(!d)Log[a0(0x22e)]('Couldn\x27t\x20find\x20an\x20app\x20directory\x20to\x20init\x20npm\x20into.'),c();else{const f=Log['withSpinner']();try{f['start'](a0(0x1e0)),exec('npm\x20init\x20-f\x20',{'cwd':d},g=>{const a1=a0;g&&(Log['error']('\x0a'+g[a1(0x1a7)]),c(),process['exit'](0x1)),f[a1(0x22b)](),b();});}catch(g){Log['error'](g),f[a0(0x1d4)](),c();}}}});}async[a156q(0x1c9)](a){return new Promise((b,c)=>{const a2=a156d,d=a156f[a2(0x238)]();d[a2(0x249)](a2(0x22e),async e=>{const a3=a2;if(e[a3(0x1ba)]===a3(0x22f)){const f=await Actions['confirm'](a3(0x210)+a+'\x20is\x20already\x20in\x20use,\x20try\x20another?\x20[yN]',![]);!f&&(Log[a3(0x22e)]('Port\x20'+a+a3(0x219)),process[a3(0x1ff)](0x1)),Log[a3(0x227)](a3(0x210)+a+a3(0x1cb)+(a+0x64)+a3(0x1b9)),b(!![]);}else c(e);}),d['once']('listening',()=>{d['close'](),b(![]);}),d[a2(0x1e8)](a,a2(0x1c5));});}async['getAvailablePort'](a){const a4=a156q;while(await this[a4(0x1c9)](a)){a+=0x64;}return a;}async[a156q(0x1ea)](a,b){const a6=a156q;function c(g){const a5=a156d,h=a156h[a5(0x1aa)](g);return h['size'];}const d=process[a6(0x1cd)]===a6(0x232)?'>':'📦',e=c(a),f=new Progress(e,a6(0x1e5),d);return new Promise((g,h)=>{const a7=a6;a156h[a7(0x22a)](a)['on'](a7(0x1ef),i=>{f['update'](i['length']);})['pipe'](a156g['x']({'gzip':!![],'cwd':b}))['on']('end',()=>{const a8=a7;f[a8(0x1e2)](),g();})['on'](a7(0x22e),i=>{h(i);});});}}
|
|
1
|
+
const a156q=a156d;(function(a,b){const n=a156d,c=a();while(!![]){try{const d=parseInt(n(0x1e6))/0x1*(-parseInt(n(0x1e0))/0x2)+parseInt(n(0x198))/0x3+-parseInt(n(0x19c))/0x4*(parseInt(n(0x1f3))/0x5)+parseInt(n(0x204))/0x6+parseInt(n(0x18f))/0x7*(parseInt(n(0x1dc))/0x8)+-parseInt(n(0x1c4))/0x9+parseInt(n(0x1c7))/0xa*(-parseInt(n(0x1b6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a156c,0xd3376));const a156b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a156d;if(c){const e=c[o(0x1c5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a156a=a156b(this,function(){const p=a156d;return a156a['toString']()[p(0x191)](p(0x1ee))['toString']()[p(0x214)](a156a)[p(0x191)](p(0x1ee));});a156a();import a156e from'path';import a156f from'net';import a156g from'@maka/tar';import a156h from'fs';import a156i from'os';import a156j from'delete';function a156d(a,b){const c=a156c();return a156d=function(d,e){d=d-0x186;let f=c[d];return f;},a156d(a,b);}import{exec}from'child_process';function a156c(){const a8=['2043004xvYrAz','grep()','Uh-oh,\x20the\x20directory\x20is\x20not\x20a\x20directory\x20','^.*(','Error\x20in\x20','True','AppData','saveInit()','instance','Latest\x20version\x20of\x20maka-cli\x20is\x20','end','msg','stringify','utf-8','findProjectDirectory','writeFileSync','Invalid\x20directory','getProjectMeteorVersion()','getDirectories()','ignore','Error\x20reading\x20file:\x20','findDirectoryUp()','isMakaProject','force','update','fileContainsString','214137cYnrxS','findAppDirectory()','failure','length','cwd','readFileSync','createDirectory','object','message','getUserDataDirectory','directoryEntries()','sync','config.json','directoryEntries','1653039FtLefy','apply','getMeteorInstallPath','30wBGBAe','EADDRINUSE','win32','checkPortInUse','utf8','_keys','Setting\x20up\x20the\x20npm\x20packages','.maka','existsSync','createFile()','\x20is\x20already\x20in\x20use,\x20try\x20another?\x20[yN]','saveInit','shift','readFileLines','isArray','readFileLines()','\x20...\x0a','getProjectsMeteorNodeVersion','confirm','app','deeperAssign','8gHuvYy','absolute','pathFromProject','sep','20122FhMNFV','relative','local','meteor','includes','env','31MNiQBe','unlink','bright','findAppDirectory','platform','Please\x20update\x20with:\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20npm\x20i\x20-g\x20@maka/maka-cli@latest\x0a\x0a\x20\x20\x20\x20\x20\x20','complete','data','(((.+)+)+)+$','pathFromProject()','readdirSync','getGlobalMakaDir','entries','5SsZkHO','isDirectory','readFile','homedir','createDirectory()','success','dirname','Cannot\x20write\x20data\x20to\x20a\x20directory','start','File\x20exists\x20at\x20that\x20location','base64','Port\x20','info','mkdirSync','extractTarGz','isFile','omit','4791720krnLOE','N/A','npm\x20init\x20-f\x20','replace','createFile','concat','listen','.node_version.txt','error','extensions','once','0.0.0.0','singleLine','5.1.18','.meteor','match','constructor','release','getLatestMakaVersion','filter','cache.json','warn','MAKA_DEV','getInstance','writeToFile()','METEOR@','\x20is\x20already\x20in\x20use,\x20exiting\x20...','silent','statSync','\x20created\x20file\x20','Local','writeFile','code','exit','meteorCommand','createReadStream','normalize','initNpm','pop','build','34118HwMYDJ','join','search','listening','Couldn\x27t\x20find\x20an\x20app\x20directory\x20to\x20init\x20npm\x20into.','verbose','Created\x20','getFiles','split','3379086NgCyft','getCachedResult','appName','\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20overwrite\x20it?'];a156c=function(){return a8;};return a156c();}import a156k from'latest-version';import a156l from'semver';import{promises as a156m}from'fs';import{Log}from'../log/log.class.js';import{Actions}from'../actions/actions.class.js';import{Progress}from'../progress/progress.class.js';const pjson={'version':a156q(0x211)},PROJECT_CONFIG=a156q(0x1c2),GLOBAL_CACHE=a156q(0x218),homeDir=a156i[a156q(0x1f6)](),errorHandler=(a,b)=>{const r=a156q;process[r(0x1e5)][r(0x21a)]===r(0x1a1)&&Log[r(0x20c)](r(0x1a0)+a),b&&console[r(0x20c)](b);};export class FSI{static [a156q(0x1a4)];[a156q(0x19a)];constructor(){}static[a156q(0x21b)](){const s=a156q;return!FSI['instance']&&(FSI[s(0x1a4)]=new FSI()),FSI['instance'];}[a156q(0x1bf)](){const t=a156q,a=process[t(0x1ea)]===t(0x1c9);return a?a156e['join'](homeDir,t(0x1a2),'Local'):a156e[t(0x190)](homeDir);}['getMeteorInstallPath'](){const u=a156q,a=process['platform']===u(0x1c9);return a?a156e[u(0x190)](homeDir,u(0x1a2),u(0x222),u(0x212)):a156e[u(0x190)](homeDir,u(0x212));}[a156q(0x189)](){const v=a156q;return a156e[v(0x190)](this[v(0x1c6)](),v(0x1e3));}['getDirectories'](a){const w=a156q;try{return a156h[w(0x1f0)](a)[w(0x217)](b=>{const x=w;return a156h[x(0x220)](a156e[x(0x190)](a,b))[x(0x1f4)]();});}catch(b){errorHandler(w(0x1ae),b),process[w(0x188)](0x1);}}async[a156q(0x208)]({filePath:a,data:b,opts:c}){const y=a156q,d=c?.['absolute']?a156e[y(0x190)](process[y(0x1ba)](),a):a156e[y(0x1e1)](process[y(0x1ba)](),a);try{const f=a156e[y(0x18b)](a)[y(0x197)](a156e[y(0x1df)]);f['pop']();const g=f[y(0x190)](a156e[y(0x1df)]),h=!this[y(0x1f4)](g);h&&await this[y(0x1bc)]({'dirPath':g,'force':c?.[y(0x1b3)],'silent':c?.[y(0x21f)]});if(this[y(0x202)](a)&&!c?.[y(0x1b3)]){const i=await Actions[y(0x1d9)](a+y(0x19b));if(!i){if(c?.[y(0x1af)])return;else throw{'msg':'File\x20not\x20written','level':y(0x1ff),'verbose':!![]};}else await a156m[y(0x1e7)](a);}if(c?.['isImage']){const j=Buffer['from'](b,y(0x1fd));await a156m['writeFile'](a,j);}else await a156m[y(0x186)](a,b);!c?.[y(0x21f)]&&Log[y(0x1e8)](y(0x221)+d);}catch(k){k?.[y(0x194)]?k['level']==='info'?Log['error'](k[y(0x1a7)]):errorHandler(y(0x1d0),k['msg']):errorHandler(y(0x1d0),k);}}[a156q(0x196)](a,b){const z=a156q;try{const c=a156h[z(0x1f0)](a)['filter'](d=>{const A=z,f=a156e['join'](a,d);if(this[A(0x1f4)](f))return![];if(b?.['omit']){const g=Array[A(0x1d5)](b['omit'])?b['omit']:[b[A(0x203)]];for(const h of g){if(d[A(0x1e4)](h))return![];}}if(b?.[A(0x20d)]){const i=a156e['extname'](f);if(!i)return![];if(!b[A(0x20d)][A(0x1e4)](i[A(0x207)]('.','')))return![];return!![];}return!![];});return c;}catch(d){errorHandler('getFiles()',d),process[z(0x188)](0x1);}}['mkKeysDir']({configPath:a}){const B=a156q;if(!this[B(0x1f4)](a))throw B(0x1ac);const b=a156e[B(0x190)](a,B(0x1cc));try{a156h[B(0x220)](b);}catch(c){Log['warn'](c[B(0x1be)]),a156h['mkdirSync'](b,{'recursive':!![]});}return b;}['writeToFile']({filePath:a,data:b,opts:c}){const C=a156q,d=c?.[C(0x1dd)]?a156e['join'](process[C(0x1ba)](),a):a156e[C(0x1e1)](process['cwd'](),a);try{if(this[C(0x1f4)](a))throw Log[C(0x20c)](C(0x1fa));a156h[C(0x1ab)](a,b),!c?.['silent']&&Log['bright']('Updated\x20file\x20'+d);}catch(f){errorHandler(C(0x21c),f);}}async['createDirectory']({dirPath:a,force:b,silent:c}){const D=a156q;if(!a)throw Log['error']('No\x20directory\x20path\x20provided');try{b&&a156j[D(0x1c1)](a);if(this[D(0x202)](a))throw Log['error'](D(0x1fc));const d=this['isDirectory'](a);if(!d){a156h[D(0x200)](a,{'recursive':!![]});if(!this[D(0x1f4)](a))throw D(0x19e)+a;!c&&Log['success'](D(0x195)+a156e[D(0x1e1)](process[D(0x1ba)](),a));}}catch(f){errorHandler(D(0x1f7),f);}}['findDirectoryUp']({predicate:a,startPath:b}){const E=a156q;try{let c=b||process[E(0x1ba)]();while(c){if(a(c))break;const d=a156e[E(0x1f9)](c);d===c?c=undefined:c=d;}return c;}catch(f){errorHandler(E(0x1b1),f),process[E(0x188)](0x1);}}[a156q(0x1aa)](a=process[a156q(0x1ba)]()){const G=a156q;try{const b=this['findDirectoryUp']({'predicate':c=>{const F=a156d;return this[F(0x202)](a156e[F(0x190)](c,'.maka',PROJECT_CONFIG));},'startPath':a||process[G(0x1ba)]()});if(!b)return'';return b;}catch(c){errorHandler('findProjectDirectory()',c),process[G(0x188)](0x1);}}[a156q(0x1e9)](a=process[a156q(0x1ba)]()){const H=a156q;try{const b=this[H(0x1aa)](a);return b&&typeof b==='string'?a156e[H(0x190)](b,H(0x1da)):'';}catch(c){errorHandler(H(0x1b7),c),process['exit'](0x1);}}[a156q(0x1de)]({pathParts:a}){const I=a156q;try{const b=a?.['join'](a156e[I(0x1df)]),c=this['findProjectDirectory']();return c&&typeof c==='string'?a156e[I(0x190)](c,b||''):'';}catch(d){errorHandler(I(0x1ef),d),process[I(0x188)](0x1);}}[a156q(0x202)](a){const J=a156q;try{const b=a156e['resolve'](a),c=a156h[J(0x220)](b);return c[J(0x202)]();}catch(d){return![];}}[a156q(0x1f4)](a){const K=a156q;try{const b=a156h[K(0x220)](a);return b['isDirectory']();}catch(c){return![];}}[a156q(0x1d4)](a){const L=a156q;try{const b=a156h['readFileSync'](a,L(0x1cb)),c=b[L(0x197)](/\r*\n\r*/);while(c['length']){const d=c[c[L(0x1b9)]-0x1];if(d[L(0x213)](/\S/))break;c[L(0x18d)]();}return c;}catch(f){errorHandler(L(0x1d6),f),process[L(0x188)](0x1);}}['getProjectMeteorVersion'](){const M=a156q;try{const a=this['pathFromProject']({'pathParts':['app','.meteor',M(0x215)]}),b=a156h['readFileSync'](a,'utf8');let c=b[M(0x207)](M(0x21d),'')[M(0x207)]('\x0a','');const d=c[M(0x197)]('.')[M(0x1b9)];return d<0x3&&(c=c+'.0'),c;}catch(f){errorHandler(M(0x1ad),f),process[M(0x188)](0x1);}}async[a156q(0x1d8)](){const N=a156q;try{const a=this[N(0x1de)]({'pathParts':[N(0x1da),'.meteor',N(0x1e2),N(0x18e),N(0x20b)]});if(!this['isFile'](a))return N(0x205);else{const b=this[N(0x1de)]({'pathParts':['app',N(0x212),N(0x1e2),N(0x18e),N(0x20b)]}),c=a156h['readFileSync'](b,N(0x1cb)),d=c['replace']('v','')[N(0x207)]('\x0a','');return d;}}catch(f){errorHandler('getProjectsMeteorNodeVersion()',f),process[N(0x188)](0x1);}}async[a156q(0x216)](){const a=await a156k('@maka/maka-cli');return a;}async['compareMakaToLatest'](){const O=a156q,a=await this[O(0x216)]();a156l['gt'](a,pjson['version'])&&(Log['warn'](O(0x1a5)+a),Log[O(0x219)](O(0x1eb)));return;}[a156q(0x1c3)](a){const P=a156q;try{let b=[];const c=a156h[P(0x1f0)](a);for(const d of c){const f=a156e[P(0x190)](a,d);b['push'](f),this[P(0x1f4)](f)&&(b=b[P(0x209)](this[P(0x1c3)](f)));}return b;}catch(g){errorHandler(P(0x1c0),g),process[P(0x188)](0x1);}}[a156q(0x1b2)](){const Q=a156q,a=this[Q(0x1aa)]();return a!==''?!![]:![];}['grep'](a,b){const R=a156q;try{const c=new RegExp(R(0x19f)+b+').*$','mg'),d=a[R(0x213)](c);return d||[];}catch(f){errorHandler(R(0x19d),f),process[R(0x188)](0x1);}}async[a156q(0x1b5)](a,b){const S=a156q;try{if(a156h[S(0x1cf)](a)===![])return![];const c=await a156h['promises'][S(0x1f5)](a,S(0x1cb));return c['includes'](b);}catch(d){console[S(0x20c)](S(0x1b0)+d);throw d;}}[a156q(0x199)](a){const T=a156q,b=a156e['join'](this[T(0x1c6)](),T(0x1ce),GLOBAL_CACHE);try{const c=JSON['parse'](a156h[T(0x1bb)](b,T(0x1a9)));return c[a]||null;}catch(d){return null;}}['cacheResult'](a,b){const U=a156q,c=a156e[U(0x190)](this['getMeteorInstallPath'](),U(0x1ce),GLOBAL_CACHE);try{const d=JSON['parse'](a156h[U(0x1bb)](c,U(0x1a9)));d[a]=b,a156h[U(0x1ab)](c,JSON[U(0x1a8)](d));}catch(f){const g={[a]:b};a156h[U(0x1ab)](c,JSON[U(0x1a8)](g));}}[a156q(0x1f1)](){const V=a156q;return a156e[V(0x190)](this[V(0x1c6)](),'.maka');}async[a156q(0x1d2)](a,b){const W=a156q;try{const c=JSON[W(0x1a8)](a,null,0x2);await this['createFile']({'filePath':b,'data':c,'opts':{'force':!![]}});}catch(d){errorHandler(W(0x1a3),d),process[W(0x188)](0x1);}}['deepen'](a){const X=a156q,b={};for(const c in a){const d=c[X(0x197)]('.');let e=b;while(d?.[X(0x1b9)]>0x1){const f=d?.[X(0x1d3)]();f&&(e=e[f]=e[f]||{});}e[d[0x0]]=a[c];}return b;}[a156q(0x1db)](c,d){const Y=a156q;return Object[Y(0x1f2)](d)['forEach'](([e,f])=>c[e]=f&&typeof f===Y(0x1bd)?this['deeperAssign'](c[e]=c[e]||{},f):f),c;}[a156q(0x18c)](a){return new Promise((b,c)=>{const Z=a156d;a=a||{},a['cwd']=a['cwd']||'.';if(!a['isSelfTest']){const d=this['findAppDirectory'](a[Z(0x1ba)]);if(!d)Log[Z(0x20c)](Z(0x193)),c();else{const f=Log['withSpinner']();try{f[Z(0x1fb)](Z(0x1cd)),exec(Z(0x206),{'cwd':d},g=>{const a0=Z;g&&(Log[a0(0x20c)]('\x0a'+g[a0(0x1be)]),c(),process['exit'](0x1)),f[a0(0x1f8)](),b();});}catch(g){Log[Z(0x20c)](g),f[Z(0x1b8)](),c();}}}});}async[a156q(0x1ca)](a){return new Promise((b,c)=>{const a1=a156d,d=a156f['createServer']();d[a1(0x20e)]('error',async e=>{const a2=a1;if(e[a2(0x187)]===a2(0x1c8)){const f=await Actions['confirm']('Port\x20'+a+a2(0x1d1),![]);!f&&(Log[a2(0x20c)]('Port\x20'+a+a2(0x21e)),process[a2(0x188)](0x1)),Log[a2(0x210)](a2(0x1fe)+a+'\x20is\x20already\x20in\x20use,\x20trying\x20'+(a+0x64)+a2(0x1d7)),b(!![]);}else c(e);}),d[a1(0x20e)](a1(0x192),()=>{d['close'](),b(![]);}),d[a1(0x20a)](a,a1(0x20f));});}async['getAvailablePort'](a){while(await this['checkPortInUse'](a)){a+=0x64;}return a;}async[a156q(0x201)](a,b){const a4=a156q;function c(g){const a3=a156d,h=a156h[a3(0x220)](g);return h['size'];}const d=process[a4(0x1ea)]===a4(0x1c9)?'>':'📦',e=c(a),f=new Progress(e,'Extracting',d);return new Promise((g,h)=>{const a5=a4;a156h[a5(0x18a)](a)['on'](a5(0x1ed),i=>{const a6=a5;f[a6(0x1b4)](i['length']);})['pipe'](a156g['x']({'gzip':!![],'cwd':b}))['on'](a5(0x1a6),()=>{const a7=a5;f[a7(0x1ec)](),g();})['on'](a5(0x20c),i=>{h(i);});});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a157l=a157d;(function(a,b){var k=a157d,c=a();while(!![]){try{var d=-parseInt(k(
|
|
1
|
+
var a157l=a157d;(function(a,b){var k=a157d,c=a();while(!![]){try{var d=-parseInt(k(0x118))/0x1+parseInt(k(0x106))/0x2+parseInt(k(0x125))/0x3*(parseInt(k(0x11b))/0x4)+parseInt(k(0x10a))/0x5+-parseInt(k(0x101))/0x6+parseInt(k(0x102))/0x7+parseInt(k(0x122))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a157c,0x2b06f));function a157d(a,b){var c=a157c();return a157d=function(d,e){d=d-0x100;var f=c[d];return f;},a157d(a,b);}export const supportedEngines={'html':['html'],'js':['js',a157l(0x107),'ts',a157l(0x10b)],'css':[a157l(0x113),a157l(0x117),a157l(0x11a),a157l(0x127)],'api':['rest',a157l(0x127)],'test':['jasmine','mocha',a157l(0x127)],'client':[a157l(0x108),a157l(0x11e)],'graphql':[a157l(0x121)],'ssr':[!![],![]],'theme':['material','none']};export var HtmlEngines;(function(a){var m=a157l;a[m(0x112)]=m(0x115);}(HtmlEngines||(HtmlEngines={})));export var JsEngines;(function(c){var p=a157l,d=(function(){var f=!![];return function(g,h){var i=f?function(){var n=a157d;if(h){var j=h[n(0x123)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var o=a157d;return e['toString']()['search'](o(0x11f))['toString']()[o(0x10f)](e)[o(0x10e)]('(((.+)+)+)+$');});e(),c['JS']='js',c[p(0x105)]='jsx',c['TS']='ts',c[p(0x103)]=p(0x10b);}(JsEngines||(JsEngines={})));export var CssEngines;(function(a){var q=a157l;a[q(0x126)]=q(0x113),a[q(0x100)]=q(0x117),a[q(0x110)]=q(0x11a),a['NONE']=q(0x127);}(CssEngines||(CssEngines={})));export var ApiEngines;(function(a){var r=a157l;a[r(0x11d)]=r(0x11c),a[r(0x111)]=r(0x127);}(ApiEngines||(ApiEngines={})));export var TestEngines;(function(a){var s=a157l;a[s(0x119)]=s(0x124),a[s(0x10c)]='mocha',a[s(0x111)]=s(0x127);}(TestEngines||(TestEngines={})));export var ClientEngines;(function(a){var t=a157l;a[t(0x116)]='react',a[t(0x10d)]=t(0x11e);}(ClientEngines||(ClientEngines={})));export var GraphqlEngines;(function(a){var u=a157l;a[u(0x111)]='none',a[u(0x120)]='apollo';}(GraphqlEngines||(GraphqlEngines={})));function a157c(){var x=['845960eclYgO','tsx','MOCHA','VANILLA','search','constructor','SCSS','NONE','HTML','css','meteor','html','REACT','less','279317tVnjlR','JASMINE','scss','267388LJEEqO','rest','REST','vanilla','(((.+)+)+)+$','APOLLO','apollo','94120CfbZXf','apply','jasmine','3ZFuEgt','CSS','none','material','LESS','711108qSAyIx','1053689aHUUzT','TSX','MATERIAL','JSX','351486DVMWbm','jsx','react','METEOR'];a157c=function(){return x;};return a157c();}export var SsrEngines;(function(a){var v=a157l;a[v(0x111)]=v(0x127),a[v(0x109)]=v(0x114);}(SsrEngines||(SsrEngines={})));export var ThemeEngines;(function(a){var w=a157l;a[w(0x104)]=w(0x128),a['NONE']=w(0x127);}(ThemeEngines||(ThemeEngines={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a158t=a158d;(function(a,b){const q=a158d,c=a();while(!![]){try{const d
|
|
1
|
+
const a158t=a158d;(function(a,b){const q=a158d,c=a();while(!![]){try{const d=parseInt(q(0x180))/0x1*(-parseInt(q(0x1a4))/0x2)+parseInt(q(0x1b2))/0x3+-parseInt(q(0x1a3))/0x4*(parseInt(q(0x18c))/0x5)+parseInt(q(0x194))/0x6*(parseInt(q(0x1ac))/0x7)+-parseInt(q(0x1ad))/0x8*(-parseInt(q(0x1a8))/0x9)+parseInt(q(0x196))/0xa+parseInt(q(0x1a7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a158c,0xcb7fd));const a158b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a158d;if(c){const e=c[r(0x1a0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a158a=a158b(this,function(){const s=a158d;return a158a[s(0x1b9)]()[s(0x18e)]('(((.+)+)+)+$')['toString']()[s(0x19a)](a158a)[s(0x18e)](s(0x1b1));});function a158d(a,b){const c=a158c();return a158d=function(d,e){d=d-0x180;let f=c[d];return f;},a158d(a,b);}a158a();import a158e from'https';import a158f from'fs';import{Progress}from'../progress/progress.class.js';function a158c(){const S=['length','stringify','assign','Request\x20timeout','error','downloadFile','data','catch','24665ThjqIO','Request\x20Failed\x20with\x20Status\x20Code:\x20','search','statusMessage','No\x20content','update','close','end','23946MxHXiu','askGPT','7133230xeVVmf','then','application/octet-stream','readFileSync','constructor','NODE_NO_WARNINGS','hostname','checkAvailability','complete','timeout','apply','request','location','1156NNxVWy','2aKCRrD','HEAD','createWriteStream','15994297oZueMa','395550RuYLaq','env','content-length','NODE_TLS_REJECT_UNAUTHORIZED','553bgUSRk','112EdhUGC','MAKA_DEV','pathname','application/json','(((.+)+)+)+$','1382976YLhvuI','headers','post','write','api.openai.com','get','BAD\x20RETURN','toString','1299761fBhURh','statusCode','True','destroy'];a158c=function(){return S;};return a158c();}const TIMEOUT=0x493e0;process[a158t(0x1a9)][a158t(0x1ab)]=process['env'][a158t(0x1ae)]===a158t(0x182)?'0':'1',process[a158t(0x1a9)][a158t(0x19b)]=process[a158t(0x1a9)][a158t(0x1ae)]===a158t(0x182)?'1':'0';export class HTTPS{static async[a158t(0x1b4)]({hostname:a,path:b,data:c,headers:d,cert:e,timeout:f}){const u=a158t,g=JSON[u(0x185)](c),h={'Content-Type':u(0x1b0),'Content-Length':g[u(0x184)]};Object[u(0x186)](h,d);const i={'hostname':a,'port':0x1bb,'path':b,'method':'POST','headers':h,'timeout':f?f:TIMEOUT};return e&&Object['assign'](i,{'cert':a158f[u(0x199)](e)}),new Promise((j,k)=>{const v=u,l=a158e[v(0x1a1)](i,m=>{const w=v;let n='';m['on'](w(0x18a),o=>{const x=w;n+=o[x(0x1b9)]();}),m['on'](w(0x193),()=>{const y=w;m[y(0x181)]===0x12d&&m[y(0x1b3)]['location']?this['post']({'hostname':new URL(m['headers'][y(0x1a2)])[y(0x19c)],'path':new URL(m[y(0x1b3)]['location'])[y(0x1af)],'data':c,'headers':d,'cert':e})[y(0x197)](j)['catch'](k):(!n&&j({'statusCode':0xcc,'statusMessage':m[y(0x18f)]||y(0x1b8),'data':JSON[y(0x185)]({'message':y(0x190)})}),j({'statusCode':m[y(0x181)]||0x1f4,'statusMessage':m[y(0x18f)]||y(0x1b8),'data':n}));});});l['on'](v(0x188),m=>{k(m);}),l['on'](v(0x19f),()=>{const z=v;l[z(0x183)](),k({'statusCode':0x198,'statusMessage':'Request\x20timeout'});}),l[v(0x1b5)](g),l[v(0x193)]();});}static[a158t(0x1b7)]({url:a,headers:b,cert:c,timeout:d}){const A=a158t,e={'Content-Type':'application/json'};Object[A(0x186)](e,b);const f={'headers':e,'timeout':d?d:TIMEOUT};return c&&Object[A(0x186)](f,{'cert':a158f['readFileSync'](c)}),new Promise((g,h)=>{const B=A,i=a158e[B(0x1b7)](a,f,j=>{const C=B;let k='';j['on'](C(0x18a),l=>{const D=C;k+=l[D(0x1b9)]();}),j['on'](C(0x193),()=>{const E=C;j['statusCode']===0x12d&&j['headers'][E(0x1a2)]?this[E(0x1b7)]({'url':j[E(0x1b3)][E(0x1a2)],'headers':b,'cert':c})[E(0x197)](g)[E(0x18b)](h):g({'statusCode':j[E(0x181)]||0x1f4,'statusMessage':j[E(0x18f)]||E(0x1b8),'data':k});});});i['on'](B(0x188),j=>{h(j);}),i['on'](B(0x19f),()=>{const F=B;i[F(0x183)](),h({'statusCode':0x198,'statusMessage':'Request\x20timeout'});});});}static[a158t(0x189)]({url:a,headers:b,cert:c,destPath:d,timeout:e}){const G=a158t,f={'Content-Type':G(0x198)};Object[G(0x186)](f,b);const g={'headers':f,'timeout':e?e:TIMEOUT};return c&&Object['assign'](g,{'cert':a158f[G(0x199)](c)}),new Promise((h,i)=>{const L=G,j=l=>{const H=a158d;if(l[H(0x181)]===0x12e||l[H(0x181)]===0x12d){if(!l[H(0x1b3)][H(0x1a2)])return i(new Error('Redirected\x20response\x20without\x20Location\x20header'));return this[H(0x189)]({'url':l[H(0x1b3)][H(0x1a2)],'headers':b,'cert':c,'destPath':d})[H(0x197)](h)[H(0x18b)](i);}if(l[H(0x181)]&&(l[H(0x181)]<0xc8||l[H(0x181)]>=0x12c))return i(new Error(H(0x18d)+l[H(0x181)]));const m=parseInt(l[H(0x1b3)][H(0x1aa)],0xa),n=new Progress(m),o=a158f[H(0x1a6)](d);l['on'](H(0x18a),p=>{const I=H;n[I(0x191)](p[I(0x184)]),o[I(0x1b5)](p);}),l['on'](H(0x193),()=>{const J=H;o[J(0x193)](),n[J(0x19e)]();}),o['on']('finish',()=>{const K=H;o[K(0x192)]();}),o['on'](H(0x192),h);},k=a158e[L(0x1b7)](a,g,j);k['on'](L(0x188),l=>{i(l);}),k['on']('timeout',()=>{const M=L;k[M(0x183)](),i({'statusCode':0x198,'statusMessage':M(0x187)});});});}static[a158t(0x19d)]({url:a,headers:b,cert:c,maxRedirects:maxRedirects=0x5,timeout:d}){const N=a158t,e={'Content-Type':N(0x1b0)};Object[N(0x186)](e,b);const f={'method':N(0x1a5),'headers':e,'timeout':d?d:TIMEOUT};return c&&Object[N(0x186)](f,{'cert':a158f[N(0x199)](c)}),new Promise((g,h)=>{const P=N,i=a158e['request'](a,f,j=>{const O=a158d;if(j[O(0x181)]&&(j[O(0x181)]>=0xc8&&j[O(0x181)]<0x12c))g(!![]);else j[O(0x181)]&&(j[O(0x181)]>=0x12c&&j[O(0x181)]<0x190)&&j[O(0x1b3)][O(0x1a2)]?maxRedirects<=0x0?g(![]):this['checkAvailability']({'url':new URL(j[O(0x1b3)][O(0x1a2)],a)[O(0x1b9)](),'headers':b,'cert':c,'maxRedirects':maxRedirects-0x1})['then'](g)[O(0x18b)](h):g(![]);});i['on'](P(0x188),j=>{h(j);}),i['on'](P(0x19f),()=>{const Q=P;i[Q(0x183)](),h({'statusCode':0x198,'statusMessage':Q(0x187)});}),i[P(0x193)]();});}static async[a158t(0x195)]({prompt:a,openApiKey:b,certPath:c}){const R=a158t,d={'prompt':a,'max_tokens':0x96},e={'Authorization':'Bearer\x20'+b},f=await this['post']({'hostname':R(0x1b6),'path':'/v1/engines/davinci/completions','data':d,'headers':e,'cert':c});return f;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a159d,c=a();while(!![]){try{var d=-parseInt(f(0xae))/0x1*(-parseInt(f(0xac))/0x2)+parseInt(f(0xa6))/0x3+parseInt(f(0xa4))/0x4*(parseInt(f(0xad))/0x5)+parseInt(f(0xaf))/0x6+-parseInt(f(0xa8))/0x7+parseInt(f(0xab))/0x8*(parseInt(f(0xa2))/0x9)+-parseInt(f(0xa7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a159c,0x7ea29));var a159b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a159a=a159b(this,function(){var g=a159d;return a159a['toString']()['search'](g(0xa5))[g(0xa3)]()[g(0xa9)](a159a)[g(0xaa)]('(((.+)+)+)+$');});a159a();export{};function a159d(a,b){var c=a159c();return a159d=function(d,e){d=d-0xa2;var f=c[d];return f;},a159d(a,b);}function a159c(){var h=['1472kFMDuR','132882tIMbva','2083615KunfWg','1MpoZNj','5472084dkNgms','49779EbZGuP','toString','4HSorld','(((.+)+)+)+$','249450koGqpA','16718790ljKhIm','2138192hkjTIj','constructor','search'];a159c=function(){return h;};return a159c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a160t=a160d;(function(a,b){const p=a160d,c=a();while(!![]){try{const d
|
|
1
|
+
const a160t=a160d;(function(a,b){const p=a160d,c=a();while(!![]){try{const d=parseInt(p(0x171))/0x1*(-parseInt(p(0x178))/0x2)+parseInt(p(0x1a6))/0x3+-parseInt(p(0x18a))/0x4+parseInt(p(0x190))/0x5*(parseInt(p(0x195))/0x6)+parseInt(p(0x181))/0x7+parseInt(p(0x182))/0x8+parseInt(p(0x169))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a160c,0x1a79e));import*as a160e from'single-line-log2';import a160f from'cli-color';import a160g from'cli-cursor';import a160h from'elegant-spinner';import a160i from'fs';import{camelCase}from'change-case';const check='✔',cross='✘';export var ColorMode;function a160d(a,b){const c=a160c();return a160d=function(d,e){d=d-0x164;let f=c[d];return f;},a160d(a,b);}(function(c){const s=a160d,d=(function(){let f=!![];return function(g,h){const i=f?function(){const q=a160d;if(h){const j=h[q(0x17a)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){const r=a160d;return e[r(0x19e)]()[r(0x18b)](r(0x1a7))[r(0x19e)]()['constructor'](e)[r(0x18b)](r(0x1a7));});e(),c[c[s(0x165)]=0x0]=s(0x165),c[c['LIGHT']=0x1]='LIGHT';}(ColorMode||(ColorMode={})));const DarkColors={'success':a160f['greenBright'],'warn':a160f[a160t(0x170)],'notice':a160f[a160t(0x1a8)],'error':a160f['red'][a160t(0x19a)],'header':a160f[a160t(0x194)],'bright':a160f[a160t(0x166)],'info':a160f[a160t(0x1a8)],'majestic':a160f[a160t(0x173)]},LightColors={'success':a160f[a160t(0x177)],'warn':a160f[a160t(0x1ab)],'notice':a160f['cyan'],'error':a160f[a160t(0x1aa)],'header':a160f['black'],'bright':a160f[a160t(0x196)],'info':a160f[a160t(0x1a1)],'majestic':a160f[a160t(0x188)]},formatOptionalOpts=a=>{const v=a160t;return a['map'](b=>{const u=a160d;if(typeof b===u(0x16d)){if(b?.[u(0x185)])return'';if(b['boolFlag'])return u(0x172)+camelCase(b[u(0x17f)])+']';return u(0x172)+camelCase(b[u(0x17f)])+'='+(b?.[u(0x175)]?b[u(0x175)][u(0x18d)]('|'):u(0x193))+']';}return b?u(0x172)+camelCase(b)+']':'';})[v(0x18d)]('\x20');},formatRequiredOpts=a=>{const x=a160t;return a['map'](b=>{const w=a160d;if(typeof b===w(0x16d)){if(b?.[w(0x185)])return'';if(b[w(0x19c)])return'--'+camelCase(b['name']);return'--'+camelCase(b[w(0x17f)])+'='+(b?.['values']?b[w(0x175)]['join']('|'):w(0x193));}return'--'+camelCase(b);})[x(0x18d)]('\x20');};export class Log{static [a160t(0x192)]=ColorMode[a160t(0x165)];static get[a160t(0x18f)](){return Log['colorMode']===ColorMode['DARK']?DarkColors:LightColors;}static[a160t(0x17d)](a){const y=a160t;Log[y(0x192)]=a;}static[a160t(0x19f)](a){const z=a160t;a&&console[z(0x1a5)](Log['colors']['success'](a));}static['warn'](a){const A=a160t;a&&console[A(0x1a5)](Log['colors'][A(0x183)](a));}static[a160t(0x167)](a){const B=a160t;a&&console[B(0x1a5)](Log['colors'][B(0x167)](a));}static[a160t(0x186)](a){const C=a160t;a&&console[C(0x1a5)](Log['colors'][C(0x186)](a));}static[a160t(0x18c)](a){const D=a160t;a&&console[D(0x1a5)](Log[D(0x18f)]['header'](a));}static['bright'](a){const E=a160t;a&&console[E(0x1a5)](Log[E(0x18f)]['bright'](a));}static['info'](a){const F=a160t;a&&console[F(0x1a5)](Log[F(0x18f)][F(0x17c)](a));}static[a160t(0x198)](a){const G=a160t;a&&console[G(0x1a5)](Log['colors'][G(0x198)](a));}static[a160t(0x168)](a,b,c,d,e,f,g){const J=a160t,h=l=>{const H=a160d;return l[H(0x16e)](m=>!m[H(0x185)])[H(0x16b)](m=>{const I=H,n=m[I(0x19c)]?'--'+camelCase(m['name']):'--'+camelCase(m[I(0x17f)])+'='+(m[I(0x175)]?m[I(0x175)][I(0x18d)]('|'):I(0x193)),o=m[I(0x16a)]?'\x20-\x20'+m[I(0x16a)]:'';return'\x20\x20'+a160f[I(0x174)](n)+o;})['join']('\x0a');},i=a160f[J(0x194)];g&&Log[J(0x183)](J(0x16f));Log[J(0x17e)](d);b&&b?.[J(0x1a3)]>0x0&&(Log[J(0x17e)](i(J(0x1a2))),b[J(0x199)](l=>{const K=J;Log['bright'](K(0x19d)+l);}));a&&(Log[J(0x18c)](J(0x17b)),Log[J(0x167)]('\x20\x20'+a[J(0x164)]()));c&&Log['bright']('\x0a'+i('Usage:')+'\x20'+c+'\x20'+formatRequiredOpts(e)+'\x20'+formatOptionalOpts(f)+'\x0a');const j=[...e,...f],k=j[0x0]&&typeof j[0x0]===J(0x16d)?h(j):'';k&&(Log['header']('\x0aOptions:'),console[J(0x1a5)](k)),Log['header'](J(0x180)),Log[J(0x18c)](J(0x1a0));}static[a160t(0x187)](a=''){const L=a160t;a160g[L(0x189)]();const b=a160h();a160g['hide']();let c;return{'start'(d){d&&(a=d),c=setInterval(function(){const M=a160d;a160e[M(0x1a9)](a160f['cyan'](b())+'\x20'+a);},0x5a);},'success'(d=''){const N=L;clearInterval(c),a160e[N(0x1a9)](a160f['greenBright'](check)+'\x20'+a+'\x20'+d),console[N(0x1a5)](),a160g[N(0x191)]();},'failure'(d=''){const O=L;clearInterval(c),a160e['stdout'](a160f[O(0x1aa)]['bold'](cross)+'\x20'+a+'\x20'+d),console['log'](),a160g[O(0x191)]();},'stop'(){clearInterval(c),a160g['show']();},'update'(d){d&&(a=d);}};}static[a160t(0x1a4)](a){const P=a160t;a160e[P(0x1a9)](a);}static[a160t(0x176)](a){const Q=a160t;a160e[Q(0x1a9)](a160f[Q(0x19b)](check)+'\x20'+a);}static[a160t(0x18e)](a){const R=a160t;try{const b=a160i[R(0x16c)](a,R(0x179));console['log'](a160f[R(0x166)](b));}catch(c){console[R(0x186)](a160f[R(0x1aa)](R(0x197)+c[R(0x184)]));}}}function a160c(){const S=['setColorMode','bright','name','\x0aFor\x20more\x20information,\x20visit\x20https://www.maka-cli.com','500297gurJCo','142264YOHEfJ','warn','message','hidden','error','withSpinner','magenta','hide','189028CEbEFJ','search','header','join','file','colors','948775eHHrEU','show','colorMode','<value>','blackBright','6qVJFti','black','Error\x20reading\x20file:\x20','majestic','forEach','bold','greenBright','boolFlag','\x20>\x20','toString','success','All\x20commands\x20accept\x20the\x20--help\x20or\x20-h\x20flag\x20for\x20more\x20information','cyan','Examples:','length','singleLine','log','217551YORkPH','(((.+)+)+)+$','cyanBright','stdout','red','yellow','trim','DARK','whiteBright','notice','usage','131904AzeeuY','description','map','readFileSync','object','filter','This\x20command\x20is\x20experimental\x20and\x20may\x20not\x20be\x20fully\x20functional.','yellowBright','210479maXPeP','[--','magentaBright','white','values','singleLineSuccess','green','2IRupXX','utf8','apply','\x0aManual:','info'];a160c=function(){return S;};return a160c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a161d,c=a();while(!![]){try{var d=parseInt(f(0x100))/0x1*(-parseInt(f(0x104))/0x2)+parseInt(f(0x103))/0x3*(parseInt(f(0xfd))/0x4)+-parseInt(f(0xf5))/0x5+-parseInt(f(0xf6))/0x6*(parseInt(f(0xff))/0x7)+parseInt(f(0xfc))/0x8*(parseInt(f(0xf9))/0x9)+-parseInt(f(0xf7))/0xa+parseInt(f(0x102))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a161c,0xe3108));var a161b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a161d;if(c){var e=c[g(0xfe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a161a=a161b(this,function(){var h=a161d;return a161a[h(0xfa)]()[h(0xf8)]('(((.+)+)+)+$')[h(0xfa)]()[h(0x101)](a161a)[h(0xf8)](h(0xfb));});function a161d(a,b){var c=a161c();return a161d=function(d,e){d=d-0xf5;var f=c[d];return f;},a161d(a,b);}function a161c(){var i=['(((.+)+)+)+$','48wiSMbY','12oVdbJe','apply','865655PxhLJF','141501DOclDK','constructor','11495011uBwaWx','1232895miqrLi','20QeyMBT','1510830IJWPug','6pocjUb','6317530RqUYFq','search','1687131digqwo','toString'];a161c=function(){return i;};return a161c();}a161a();export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a162w=a162d;(function(a,b){const u=a162d,c=a();while(!![]){try{const d=parseInt(u(0x122))/0x1+parseInt(u(0x106))/0x2+-parseInt(u(0x16b))/0x3+-parseInt(u(0x10c))/0x4+-parseInt(u(0x123))/0x5*(parseInt(u(0x107))/0x6)+-parseInt(u(0x158))/0x7*(parseInt(u(0x134))/0x8)+-parseInt(u(0x13b))/0x9*(-parseInt(u(0x176))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0x891bf));const a162b=(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;};}()),a162a=a162b(this,function(){const v=a162d;return a162a[v(0xee)]()[v(0x14a)](v(0x129))['toString']()[v(0x100)](a162a)[v(0x14a)](v(0x129));});a162a();import a162e from'path';function a162c(){const M=['0.0.0','@echo\x20off\x0d\x0a\x22','VERSION','publish','constructor','maybeProxyCommandToMeteor()','remove','message','linkVersionAsCurrent','\x09version:\x20\x270.0.1\x27,\x0a','1794124HtXQdi','12MFEzdM','This\x20project\x27s\x20version\x20is\x20at\x20','Meteor','string','exit','4121972kIvFwW','\x09name:\x20\x27','claim',':\x20Target\x20binary\x20not\x20found\x20at\x20','cordova-build','trim',',\x20however\x20you\x20are\x20using\x20','includes','releases','app','maybeProxyCommandToMeteor','--mobile-server','build','list','show','ignore','run','installNpmPackage','Mobile\x20app\x20configuration\x20written\x20to\x20','list-platforms','getGlobalMeteorVersion','fsi','258199KdtbLh','103255hJYOKW','realpathSync','invokeMeteorCommand','concat','getMeteorReleaseVersion','http://127.0.0.1:9999','(((.+)+)+)+$','add-platform','test-packages','ENOENT','platform','ask','publish-for-arch','lstatSync','env','Don\x27t\x20forget\x20these\x20commands:\x20\x0a\x20sudo\x20xcode-select\x20-s\x20/Applications/Xcode.app/Contents/Developer\x20\x0a\x20sudo\x20gem\x20install\x20cocoapods\x20\x0a\x20sudo\x20xcodebuild\x20-license\x20accept\x20\x0a\x20brew\x20install\x20ios-deploy','npm','184jGtXGP','meteor','reset','isMeteorInstalled','appName','logout','pkg','14779701lBNfPW','update','checkForMeteorVersionMismatch','length','indexOf','Could\x20not\x20remove\x20old\x20file\x20','cfg','isSymbolicLink','--ssl','\x27,\x0a','remove-platform','utf8','Command\x20not\x20found','readFileSync','isFile','search','--exclude-archs','\x09id:\x20\x27com.meteor.maka.','Meteor\x20','homedir','meteorRelease','login','win32','shell','logs','existsSync','open','admin','split','130403BjlaDa','getAvailablePort','join','dirname','meteor.cmd','notice','bin','--port','meteor.bat','release','A\x20mobile-config.js\x20already\x20exists,\x20not\x20over\x20writing','--raw-logs','PORT','Meteor\x20release\x20version\x20set\x20to\x20','//\x20https://docs.meteor.com/api/mobile-config.html\x0a','findProjectDirectory','writeFileSync','True','getMakaProjectConfig','2206767BWosCJ','A\x20mobile-config.js\x20file\x20already\x20exists,\x20overwrite?\x20[yN]','MAKA_DEV','App\x20name?\x20[','.meteor','\x20in\x20','invokeMeteorCommand()','getInstalledMeteorVersion','mkdirSync','mongo','METEOR@','10cHGjDP','getMeteorReleaseVersion()','Run\x20\x22maka\x20--help\x22\x20for\x20a\x20list\x20of\x20commands','write','configure-android','\x20--version','slice','error','plugins','getMeteorExePath','confirm','Attempting\x20to\x20use\x20','splice','end','Error\x20in\x20','cordova-plugin-meteor-webapp','\x20is\x20now\x20the\x20active\x20version','App.info({\x0a','toString','replace','Cannot\x20link\x20Meteor\x20','});\x0a','success','argv','findAppDirectory','setMeteorReleaseVersion()','symlinkSync','list-sites','instance','cordova@latest','createWriteStream','setMeteorReleaseVersion'];a162c=function(){return M;};return a162c();}import a162f from'fs';import a162g from'os';import{execSync}from'child_process';import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';import{Actions}from'../actions/actions.class.js';import{MustBeInProjectError}from'../../error.js';function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0xeb;let f=c[d];return f;},a162d(a,b);}const homeDir=a162g[a162w(0x14e)](),errorHandler=(a,b)=>{const x=a162w;process[x(0x131)][x(0x16d)]===x(0x169)&&Log[x(0x17d)](x(0x184)+a),b&&console['error'](b);};export class MPI{static [a162w(0xf8)];[a162w(0x121)];[a162w(0x141)];[a162w(0x13a)];[a162w(0x135)];[a162w(0x14f)];constructor(a,b,c){const y=a162w;this[y(0x121)]=a,this['cfg']=b,this[y(0x13a)]=c;const d=this[y(0x17f)]();this[y(0x14f)]=this[y(0x127)](),this['meteor']=d;}static['getInstance'](a,b,c){const z=a162w;return!MPI[z(0xf8)]&&(MPI[z(0xf8)]=new MPI(a,b,c)),MPI['instance'];}[a162w(0x17f)](){const A=a162w,a=process[A(0x12d)]===A(0x151),b=a?A(0x15c):A(0x135);return a162e[A(0x15a)](homeDir,'.meteor',A(0x15e),b);}[a162w(0x137)](){const B=a162w;try{const a=this[B(0x17f)]();if(!a162f[B(0x154)](a))return![];const b=a162f[B(0x130)](a);if(b[B(0x142)]()){const c=a162f[B(0x124)](a);return a162f['existsSync'](c)&&a162f['statSync'](c)['isFile']();}return b[B(0x149)]();}catch(d){return![];}}['setMeteorReleaseVersion'](a){const C=a162w;try{const b=a162e[C(0x15a)](homeDir,C(0x16f),C(0xfe)),c=a162e[C(0x15b)](b);!a162f[C(0x154)](c)&&a162f[C(0x173)](c,{'recursive':!![]}),a162f['writeFileSync'](b,a,C(0x146)),Log[C(0xf2)](C(0x165)+a+C(0x170)+b);}catch(d){errorHandler(C(0xf5),d),process[C(0x10b)](0x1);}}[a162w(0x127)](){const D=a162w;try{const a=a162e[D(0x15a)](homeDir,'.meteor',D(0xfe));if(a162f[D(0x154)](a)){const b=a162f[D(0x148)](a,'utf8')['trim']();return b;}else return null;}catch(c){return errorHandler(D(0x177),c),null;}}async[a162w(0x120)](){const E=a162w;let a=this[E(0x127)]()||E(0xfc);try{a=execSync(this['meteor']+E(0x17b),{'stdio':E(0x11b),'cwd':this[E(0x121)][E(0xf4)](),'env':{...process[E(0x131)],'HTTP_PROXY':E(0x128),'HTTPS_PROXY':E(0x128)}})[E(0xee)]()['replace'](E(0x109),'')[E(0x111)]();}catch(c){}const b=a[E(0x157)]('.')[E(0x13e)];return b<0x3&&(a=a+'.0'),a;}['checkForMeteorVersionMismatch'](){const F=a162w;try{const a=this[F(0x121)][F(0xf4)](),b=a162e[F(0x15a)](a,'.meteor','release');if(!a162f[F(0x154)](b))return![];const c=a162f['readFileSync'](b,F(0x146))[F(0x111)](),d=this[F(0x127)]();return c!==d;}catch(f){return errorHandler('checkForMeteorVersionMismatch()',f),![];}}async[a162w(0x116)](){const G=a162w;try{const a=[G(0x155),G(0x133),'run',G(0x13c),'add',G(0x102),G(0x119),G(0x12a),'install-sdk',G(0x145),G(0x11f),G(0x17a),G(0x118),G(0x152),G(0x174),G(0x136),G(0x153),'authorized',G(0x10e),G(0x150),G(0x139),'whoami',G(0x12b),G(0x156),G(0xf7),'publish-release',G(0xff),G(0x12f),G(0x14a),G(0x11a),'node'],b=process[G(0xf3)][G(0x17c)](0x2),c=b[0x0],d=b[G(0x17c)](0x1);if(!a['includes'](c)){Log['error'](G(0x147));throw Log[G(0x17d)](G(0x178));}if(c===G(0x12a)){const f=this[G(0x121)]['findAppDirectory'](),g=this[G(0x141)][G(0x16a)]();if(!g)throw MustBeInProjectError;const h=a162e['join'](f,'mobile-config.js');let i=![];a162f[G(0x154)](h)&&(i=await Actions[G(0x180)](G(0x16c),![]));if(typeof f==='string'){const j=this[G(0x121)][G(0x149)](h);if(!j||i){const k=await Actions[G(0x12e)](G(0x16e)+g[G(0x138)]+']')||g[G(0x138)],l=a162f[G(0xfa)](h,{'flags':'w'});l['on'](G(0x155),function(){const H=G;l[H(0x179)]('//\x20For\x20more\x20information\x20on\x20mobile\x20config,\x20visit:\x0a'),l[H(0x179)](H(0x166)),l[H(0x179)](H(0xed)),l[H(0x179)](H(0x14c)+pascalCase(g['appName'])+H(0x144)),l[H(0x179)](H(0x10d)+k+'\x27,\x0a'),l[H(0x179)](H(0x105)),l['write'](H(0xf1)),l[H(0x183)]();}),l['on']('finish',function(){const I=G;Log[I(0xf2)](I(0x11e)+h);});}else Log['warn'](G(0x162));}if(d[0x0]==='ios'){const m=this['fsi'][G(0x167)]();if(typeof m===G(0x10a)){await this[G(0x125)](c,d);const n=a162e[G(0x15a)](m,G(0x115),G(0x16f),'local',G(0x110),G(0x17e),G(0xeb));if(n){const o=['ios-sim@latest',G(0xf9)];await this[G(0x13a)][G(0x11d)](o[G(0x15a)]('\x20'),{'cwd':f,'saveDev':!![],'msg':'Patching\x20ios-sim\x20and\x20cordova'}),Log['notice'](G(0x132));}}process[G(0x10b)](0x0);}}await this[G(0x125)](c,d),process[G(0x10b)](0x0);}catch(p){errorHandler(G(0x101),p),process[G(0x10b)](0x1);}}[a162w(0x172)](a){const J=a162w,b=process[J(0x12d)]==='win32',c=b?'meteor.bat':J(0x135);return a162e[J(0x15a)](homeDir,J(0x16f),'releases',a,J(0x16f),c);}[a162w(0x104)](a){const K=a162w,b=process[K(0x12d)]==='win32',c=a162e[K(0x15a)](homeDir,K(0x16f),K(0x114)),d=a162e[K(0x15a)](homeDir,K(0x16f),K(0x15e)),e=a162e[K(0x15a)](c,a,K(0x16f),b?K(0x160):K(0x135)),f=a162e[K(0x15a)](d,b?K(0x15c):K(0x135)),g=a162e[K(0x15a)](homeDir,K(0x16f),b?K(0x160):K(0x135));if(!a162f['existsSync'](e))throw new Error(K(0xf0)+a+K(0x10f)+e);a162f[K(0x173)](d,{'recursive':!![]});for(const h of[f,g]){try{a162f[K(0x154)](h)&&a162f['unlinkSync'](h);}catch(i){if(i['code']!==K(0x12c))Log['warn'](K(0x140)+h+':\x20'+i[K(0x103)]);}}if(b){const j=K(0xfd)+e+'\x22\x20%*\x0d\x0a';a162f[K(0x168)](f,j,{'mode':0x1ed}),a162f[K(0x168)](g,j,{'mode':0x1ed});}else a162f[K(0xf6)](e,f),a162f[K(0xf6)](e,g);this[K(0xfb)](a),Log['success'](K(0x14d)+a+K(0xec));}async[a162w(0x125)](a,b){const L=a162w;try{const c=this['fsi'][L(0x167)]();if(!c)throw new MustBeInProjectError();if(a===L(0x11c)){const f=b[L(0x13f)]('-p');f>0x0&&(b[f]='--port');const g=b['indexOf'](L(0x15f));if(f>0x0){let m=parseInt(b[f+0x1],0xa);m=await this[L(0x121)][L(0x159)](m),b[f+0x1]=m[L(0xee)]();}else{if(g>0x0){let n=parseInt(b[g+0x1],0xa);n=await this['fsi'][L(0x159)](n),b[g+0x1]=n['toString']();}else{let o=parseInt('3000',0xa);o=await this[L(0x121)][L(0x159)](o),b=b[L(0x126)]([L(0x15f),o[L(0xee)]()]);}}const h=b[L(0x13f)]('-r');h>0x0&&(b[h]=L(0x163));const i=b[L(0x13f)]('-i');i>0x0&&(b[i]='--inspect');const j=b[L(0x13f)]('-x');j>0x0&&(b[j]=L(0x14b));const k=b[L(0x13f)]('-m');k>0x0&&(b[k]=L(0x117));const l=b[L(0x13f)](L(0x143));l>0x0&&b[L(0x182)](l,0x1),process['env'][L(0x164)]&&!b['includes'](L(0x15f))&&(b=b['concat'](['--port',process[L(0x131)]['PORT']])),process[L(0x131)]['BIND_IP']&&!b[L(0x113)](L(0x15f))&&(b=b[L(0x126)](['--port',process[L(0x131)]['BIND_IP']]));}const d=[a]['concat'](b);if(this[L(0x13d)]()){const p=this[L(0x121)][L(0xf4)](),q=a162f[L(0x148)](a162e['join'](p,L(0x16f),L(0x161)),L(0x146))[L(0xef)](L(0x175),'')['trim'](),r=this['getMeteorReleaseVersion']();try{Log[L(0x15d)](L(0x181)+q),this['linkVersionAsCurrent'](q);}catch(s){Log[L(0x17d)](L(0x108)+q+L(0x112)+r+'.'),Log['notice']('Consider\x20updating\x20this\x20project,\x20or\x20installing\x20the\x20version\x20of\x20Meteor\x20using\x20\x27maka\x20install\x20meteor\x20--release\x20'+q+'\x27'),process[L(0x10b)](0x0);}}a===L(0xff)?execSync(this['meteor']+'\x20'+d['join']('\x20'),{'stdio':'inherit'}):execSync(this[L(0x135)]+'\x20'+d[L(0x15a)]('\x20'),{'stdio':'inherit','cwd':this[L(0x121)]['findAppDirectory']()});}catch(t){errorHandler(L(0x171),t),process['exit'](0x1);}}}
|
|
1
|
+
const a162y=a162d;(function(a,b){const u=a162d,c=a();while(!![]){try{const d=parseInt(u(0x1ec))/0x1+-parseInt(u(0x269))/0x2*(-parseInt(u(0x215))/0x3)+-parseInt(u(0x225))/0x4*(parseInt(u(0x1f4))/0x5)+-parseInt(u(0x240))/0x6*(-parseInt(u(0x24c))/0x7)+-parseInt(u(0x1f6))/0x8+-parseInt(u(0x212))/0x9*(parseInt(u(0x23d))/0xa)+-parseInt(u(0x26e))/0xb*(-parseInt(u(0x24e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0x2cf0e));const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a162d;if(c){const e=c[v(0x226)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const w=a162d;return a162a[w(0x1e8)]()[w(0x238)]('(((.+)+)+)+$')[w(0x1e8)]()[w(0x1f8)](a162a)[w(0x238)](w(0x1fd));});function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0x1e0;let f=c[d];return f;},a162d(a,b);}a162a();import a162e from'path';import a162f from'fs';import a162g from'os';function a162c(){const N=['publish-for-arch','599444oVSxvw','ignore','isMeteorInstalled','node','--inspect','44gdHYAf','BIND_IP','login','meteor.bat','ENOENT','\x20is\x20now\x20the\x20active\x20version','METEOR@','publish','logs','--port','isFile','whoami','maybeProxyCommandToMeteor()','authorized','join','.meteor','warn','string','length','Attempting\x20to\x20use\x20','includes','Consider\x20updating\x20this\x20project,\x20or\x20installing\x20the\x20version\x20of\x20Meteor\x20using\x20\x27maka\x20install\x20meteor\x20--release\x20','toString','remove','App.info({\x0a','indexOf','201011jblvyd','--raw-logs','error','build','npm','confirm','add-platform','local','20vlcVGf','readFileSync','2652824pYeeMr','Meteor\x20','constructor','releases','@echo\x20off\x0d\x0a\x22','add','replace','(((.+)+)+)+$','cfg','getInstance','getAvailablePort','Mobile\x20app\x20configuration\x20written\x20to\x20','\x09version:\x20\x270.0.1\x27,\x0a','createWriteStream','getGlobalMeteorVersion','mkdirSync','finish','publish-release','\x27,\x0a','checkForMeteorVersionMismatch()','env','setMeteorReleaseVersion()','write','This\x20project\x27s\x20version\x20is\x20at\x20','cordova-plugin-meteor-webapp','win32','Don\x27t\x20forget\x20these\x20commands:\x20\x0a\x20sudo\x20xcode-select\x20-s\x20/Applications/Xcode.app/Contents/Developer\x20\x0a\x20sudo\x20gem\x20install\x20cocoapods\x20\x0a\x20sudo\x20xcodebuild\x20-license\x20accept\x20\x0a\x20brew\x20install\x20ios-deploy','instance','9GipGgy','setMeteorReleaseVersion','findAppDirectory','3IbvIhR','3000','Patching\x20ios-sim\x20and\x20cordova','bin','getMeteorReleaseVersion','inherit','symlinkSync','realpathSync','invokeMeteorCommand()','release','writeFileSync','concat','exit','getMakaProjectConfig','existsSync','pkg','88444HXTQNA','apply','meteor','VERSION','slice','\x22\x20%*\x0d\x0a','show','--mobile-server','cordova-build','mobile-config.js','logout','platform','ios-sim@latest','//\x20For\x20more\x20information\x20on\x20mobile\x20config,\x20visit:\x0a','\x20--version','ask','install-sdk','\x09id:\x20\x27com.meteor.maka.','update','search','appName','A\x20mobile-config.js\x20already\x20exists,\x20not\x20over\x20writing','list-platforms','getMeteorExePath','3620930qLOTAE','trim','MAKA_DEV','6hkfXRE','--ssl','findProjectDirectory','//\x20https://docs.meteor.com/api/mobile-config.html\x0a','configure-android','message','meteor.cmd','\x09name:\x20\x27','App\x20name?\x20[','isSymbolicLink','meteorRelease','utf8','1570639FzFufn','invokeMeteorCommand','723324HJHlFc','fsi','notice','list',':\x20Target\x20binary\x20not\x20found\x20at\x20','Error\x20in\x20','True','Could\x20not\x20remove\x20old\x20file\x20','PORT','ios','app','checkForMeteorVersionMismatch','success','mongo','plugins','installNpmPackage','http://127.0.0.1:9999','admin','shell','0.0.0','Command\x20not\x20found','getInstalledMeteorVersion','linkVersionAsCurrent','Cannot\x20link\x20Meteor\x20','argv','maybeProxyCommandToMeteor'];a162c=function(){return N;};return a162c();}import{execSync}from'child_process';import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';import{Actions}from'../actions/actions.class.js';import{MustBeInProjectError}from'../../error.js';const homeDir=a162g['homedir'](),errorHandler=(a,b)=>{const x=a162d;process['env'][x(0x23f)]===x(0x254)&&Log[x(0x1ee)](x(0x253)+a),b&&console['error'](b);};export class MPI{static [a162y(0x211)];[a162y(0x24f)];[a162y(0x1fe)];[a162y(0x224)];['meteor'];['meteorRelease'];constructor(a,b,c){const z=a162y;this[z(0x24f)]=a,this[z(0x1fe)]=b,this[z(0x224)]=c;const d=this[z(0x23c)]();this[z(0x24a)]=this[z(0x219)](),this[z(0x227)]=d;}static[a162y(0x1ff)](a,b,c){const A=a162y;return!MPI[A(0x211)]&&(MPI['instance']=new MPI(a,b,c)),MPI['instance'];}[a162y(0x23c)](){const B=a162y,a=process[B(0x230)]===B(0x20f),b=a?B(0x246):B(0x227);return a162e['join'](homeDir,'.meteor',B(0x218),b);}[a162y(0x26b)](){const C=a162y;try{const a=this[C(0x23c)]();if(!a162f[C(0x223)](a))return![];const b=a162f['lstatSync'](a);if(b[C(0x249)]()){const c=a162f[C(0x21c)](a);return a162f[C(0x223)](c)&&a162f['statSync'](c)[C(0x278)]();}return b[C(0x278)]();}catch(d){return![];}}[a162y(0x213)](a){const D=a162y;try{const b=a162e['join'](homeDir,D(0x1e1),D(0x228)),c=a162e['dirname'](b);!a162f['existsSync'](c)&&a162f['mkdirSync'](c,{'recursive':!![]}),a162f[D(0x21f)](b,a,D(0x24b)),Log[D(0x25a)]('Meteor\x20release\x20version\x20set\x20to\x20'+a+'\x20in\x20'+b);}catch(d){errorHandler(D(0x20b),d),process[D(0x221)](0x1);}}[a162y(0x219)](){const E=a162y;try{const a=a162e[E(0x1e0)](homeDir,E(0x1e1),E(0x228));if(a162f['existsSync'](a)){const b=a162f[E(0x1f5)](a,'utf8')[E(0x23e)]();return b;}else return null;}catch(c){return errorHandler('getMeteorReleaseVersion()',c),null;}}async[a162y(0x204)](){const F=a162y;let a=this['getMeteorReleaseVersion']()||F(0x261);try{a=execSync(this[F(0x227)]+F(0x233),{'stdio':F(0x26a),'cwd':this[F(0x24f)][F(0x214)](),'env':{...process['env'],'HTTP_PROXY':'http://127.0.0.1:9999','HTTPS_PROXY':F(0x25e)}})[F(0x1e8)]()[F(0x1fc)]('Meteor','')[F(0x23e)]();}catch(c){}const b=a['split']('.')[F(0x1e4)];return b<0x3&&(a=a+'.0'),a;}[a162y(0x259)](){const G=a162y;try{const a=this[G(0x24f)][G(0x214)](),b=a162e[G(0x1e0)](a,'.meteor',G(0x21e));if(!a162f['existsSync'](b))return![];const c=a162f[G(0x1f5)](b,G(0x24b))[G(0x23e)](),d=this[G(0x219)]();return c!==d;}catch(f){return errorHandler(G(0x209),f),![];}}async[a162y(0x267)](){const H=a162y;try{const a=['open',H(0x1f0),'run',H(0x237),H(0x1fb),H(0x1e9),H(0x251),H(0x1f2),H(0x235),'remove-platform',H(0x23b),H(0x244),H(0x1ef),H(0x260),H(0x25b),'reset',H(0x276),H(0x27b),'claim',H(0x270),H(0x22f),H(0x279),'test-packages',H(0x25f),'list-sites',H(0x207),H(0x275),H(0x268),H(0x238),H(0x22b),H(0x26c)],b=process[H(0x266)][H(0x229)](0x2),c=b[0x0],d=b['slice'](0x1);if(!a[H(0x1e6)](c)){Log[H(0x1ee)](H(0x262));throw Log[H(0x1ee)]('Run\x20\x22maka\x20--help\x22\x20for\x20a\x20list\x20of\x20commands');}if(c===H(0x1f2)){const f=this[H(0x24f)][H(0x214)](),g=this[H(0x1fe)][H(0x222)]();if(!g)throw MustBeInProjectError;const h=a162e['join'](f,H(0x22e));let i=![];a162f[H(0x223)](h)&&(i=await Actions[H(0x1f1)]('A\x20mobile-config.js\x20file\x20already\x20exists,\x20overwrite?\x20[yN]',![]));if(typeof f===H(0x1e3)){const j=this[H(0x24f)][H(0x278)](h);if(!j||i){const k=await Actions[H(0x234)](H(0x248)+g[H(0x239)]+']')||g[H(0x239)],l=a162f[H(0x203)](h,{'flags':'w'});l['on']('open',function(){const I=H;l[I(0x20c)](I(0x232)),l[I(0x20c)](I(0x243)),l['write'](I(0x1ea)),l['write'](I(0x236)+pascalCase(g[I(0x239)])+I(0x208)),l[I(0x20c)](I(0x247)+k+I(0x208)),l[I(0x20c)](I(0x202)),l[I(0x20c)]('});\x0a'),l['end']();}),l['on'](H(0x206),function(){const J=H;Log['success'](J(0x201)+h);});}else Log[H(0x1e2)](H(0x23a));}if(d[0x0]===H(0x257)){const m=this[H(0x24f)][H(0x242)]();if(typeof m==='string'){await this[H(0x24d)](c,d);const n=a162e[H(0x1e0)](m,H(0x258),H(0x1e1),H(0x1f3),H(0x22d),H(0x25c),H(0x20e));if(n){const o=[H(0x231),'cordova@latest'];await this[H(0x224)][H(0x25d)](o['join']('\x20'),{'cwd':f,'saveDev':!![],'msg':H(0x217)}),Log[H(0x250)](H(0x210));}}process[H(0x221)](0x0);}}await this[H(0x24d)](c,d),process['exit'](0x0);}catch(p){errorHandler(H(0x27a),p),process[H(0x221)](0x1);}}[a162y(0x263)](a){const K=a162y,b=process[K(0x230)]===K(0x20f),c=b?K(0x271):K(0x227);return a162e[K(0x1e0)](homeDir,'.meteor',K(0x1f9),a,K(0x1e1),c);}[a162y(0x264)](a){const L=a162y,b=process[L(0x230)]==='win32',c=a162e[L(0x1e0)](homeDir,L(0x1e1),L(0x1f9)),d=a162e[L(0x1e0)](homeDir,L(0x1e1),L(0x218)),e=a162e[L(0x1e0)](c,a,L(0x1e1),b?'meteor.bat':'meteor'),f=a162e[L(0x1e0)](d,b?L(0x246):L(0x227)),g=a162e[L(0x1e0)](homeDir,L(0x1e1),b?'meteor.bat':L(0x227));if(!a162f[L(0x223)](e))throw new Error(L(0x265)+a+L(0x252)+e);a162f[L(0x205)](d,{'recursive':!![]});for(const h of[f,g]){try{a162f[L(0x223)](h)&&a162f['unlinkSync'](h);}catch(i){if(i['code']!==L(0x272))Log[L(0x1e2)](L(0x255)+h+':\x20'+i[L(0x245)]);}}if(b){const j=L(0x1fa)+e+L(0x22a);a162f[L(0x21f)](f,j,{'mode':0x1ed}),a162f[L(0x21f)](g,j,{'mode':0x1ed});}else a162f[L(0x21b)](e,f),a162f[L(0x21b)](e,g);this[L(0x213)](a),Log[L(0x25a)](L(0x1f7)+a+L(0x273));}async[a162y(0x24d)](a,b){const M=a162y;try{const c=this['fsi']['findProjectDirectory']();if(!c)throw new MustBeInProjectError();if(a==='run'){const f=b[M(0x1eb)]('-p');f>0x0&&(b[f]=M(0x277));const g=b[M(0x1eb)](M(0x277));if(f>0x0){let m=parseInt(b[f+0x1],0xa);m=await this[M(0x24f)]['getAvailablePort'](m),b[f+0x1]=m['toString']();}else{if(g>0x0){let n=parseInt(b[g+0x1],0xa);n=await this[M(0x24f)][M(0x200)](n),b[g+0x1]=n[M(0x1e8)]();}else{let o=parseInt(M(0x216),0xa);o=await this[M(0x24f)][M(0x200)](o),b=b['concat'](['--port',o[M(0x1e8)]()]);}}const h=b[M(0x1eb)]('-r');h>0x0&&(b[h]=M(0x1ed));const i=b['indexOf']('-i');i>0x0&&(b[i]=M(0x26d));const j=b[M(0x1eb)]('-x');j>0x0&&(b[j]='--exclude-archs');const k=b[M(0x1eb)]('-m');k>0x0&&(b[k]=M(0x22c));const l=b['indexOf'](M(0x241));l>0x0&&b['splice'](l,0x1),process['env'][M(0x256)]&&!b['includes'](M(0x277))&&(b=b[M(0x220)]([M(0x277),process['env'][M(0x256)]])),process[M(0x20a)][M(0x26f)]&&!b['includes']('--port')&&(b=b['concat']([M(0x277),process[M(0x20a)][M(0x26f)]]));}const d=[a][M(0x220)](b);if(this[M(0x259)]()){const p=this[M(0x24f)][M(0x214)](),q=a162f[M(0x1f5)](a162e[M(0x1e0)](p,'.meteor',M(0x21e)),M(0x24b))['replace'](M(0x274),'')['trim'](),r=this[M(0x219)]();try{Log[M(0x250)](M(0x1e5)+q),this[M(0x264)](q);}catch(s){Log['error'](M(0x20d)+q+',\x20however\x20you\x20are\x20using\x20'+r+'.'),Log['notice'](M(0x1e7)+q+'\x27'),process[M(0x221)](0x0);}}a===M(0x275)?execSync(this[M(0x227)]+'\x20'+d[M(0x1e0)]('\x20'),{'stdio':M(0x21a)}):execSync(this[M(0x227)]+'\x20'+d[M(0x1e0)]('\x20'),{'stdio':M(0x21a),'cwd':this['fsi'][M(0x214)]()});}catch(t){errorHandler(M(0x21d),t),process[M(0x221)](0x1);}}}
|