@maka/maka-cli 5.1.16 → 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(0xd1))/0x1+parseInt(p(0x11b))/0x2+parseInt(p(0xa3))/0x3+parseInt(p(0x141))/0x4+-parseInt(p(0x170))/0x5+parseInt(p(0xd0))/0x6+-parseInt(p(0xf6))/0x7*(parseInt(p(0xc9))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a151c,0xca3ae));const a151b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a151d;if(c){const e=c[q(0x176)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a151a=a151b(this,function(){const r=a151d;return a151a['toString']()[r(0xab)](r(0xe5))[r(0x13c)]()[r(0x13f)](a151a)[r(0xab)](r(0xe5));});a151a();import a151e from'fs';import a151f from'path';function a151d(a,b){const c=a151c();return a151d=function(d,e){d=d-0x9f;let f=c[d];return f;},a151d(a,b);}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';function a151c(){const aa=['Setting\x20Subnet\x20ID\x20to\x20','\x20AMIID:\x20','\x20VPCID:\x20','Prices','includes','**\x20Available\x20Security\x20Groups\x20**','createKeyPairEC2Key','forEach','us-west-2','listAllEcrRepositories','ap-south-1','Instance\x20rebooted!','route53CreateHostedZone','listAvailableSubnets','ask','ap-southeast-1','eu-west-2','GroupName','VpcId','CreationDate','Successfully\x20linked\x20EC2\x20instance\x20','hvm','eu-south-1','machine','utf8','linkEC2ToRoute53','Authorization\x20data\x20is\x20empty','UPSERT','info','Setting\x20SG\x20ID\x20to:\x20','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','AVAILABLE','eu-central-1','Invalid\x20choice','fsi','4718840PzRryI','error','**\x20Available\x20\x20VPCs\x20**','Error\x20creating\x20hosted\x20zone','file://','scaffold','apply','amiId','ap-east-1','stringify','message','environment','exit','split',',\x20URI:\x20','getMakaProjectConfig','chmod\x20400\x20','ec2describeKeys','createFile','notice','*Kali*','repositories','UserData','config/ssh.json','.pem.txt','\x27\x20has\x20been\x20registered\x20successfully.','\x20DESCRIPTION:\x20','virtualization-type','chooseInstance','tcp','pop','Port\x20','privateIp','deleteSecurityGroup','3529287YhqGzA','start','listAvailableAMIs','vpcId','ingressRule','ca-west-1','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','description','search','imageId','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','sgPorts','minCount','stop','isFile','instanceId','map','Error\x20linking\x20EC2\x20to\x20Route\x2053:','eu-west-3','getInstance','\x20SGID:\x20','writeFileSync','us-west-1','\x20Status\x20Code:\x20','Description','\x20AZONE:\x20','subnetId','Please\x20choose\x20a\x20VPC:\x20[0]\x20','Canonical*Ubuntu*18.04*','timeout','/dev/sdh','ec2describeInstances','join','KeyMaterial','\x20NAME:\x20','terminated','desc','Key\x20Name:\x20[','8ddWZOa','from','us-east-2','\x20SG\x20NAME:\x20','eu-north-1','chooseVPC','withSpinner','557760dYQkxy','1444387jJRsBk','Instances','state','\x20ENV:\x20','race','ssh.json','$metadata','ec2create','getSecurityGroups','RegistrationPrice','Processing\x20','config','status','architecture','uri','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','From\x20AWS:','listHostedZonesByName','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','getAppConfigPath','(((.+)+)+)+$','slice','checkDomainAvailability','af-south-1','suggestion','name','concat','sort','getTime','length','getEcrLoginPassword','eu-south-2','ebs','all','ID:\x20','Repository\x20\x22','Error\x20generating\x20key\x20pair','20120065QBvxVY','cfg','httpStatusCode','nextToken','\x20INSTANCE_ID:\x20','\x20Request\x20ID:\x20','ignore','Name','Error\x20Message:\x20','No\x20subnets\x20found.','cidr','The\x20domain\x20\x27','Response:\x20','ec2terminateInstance','parse','sgId','\x20CIDR:\x20','me-central-1','0.0.0.0/0','tags','ap-south-2','image-type','Subnets','success','Setting\x20AMI\x20ID\x20to\x20','Failed\x20in\x20','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','registerDomain','instance','push','maka-cli','SubnetId','date','An\x20unknown\x20error\x20occurred.','Reservations','env','eu-west-1','3293312cIJNbQ','Timeout\x20while\x20processing\x20','\x20STATUS:\x20','bright','sa-east-1','authorizationToken','filter','Description:','AvailabilityZone','log','Availability',',\x20Name:\x20','confirm','KeyName','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','CidrBlock','template','ap-northeast-3','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','deleteKeyPair','_keys','tag:created-by','us-east-1','HostedZones','Web\x20App','ap-southeast-4','me-south-1','warn','authorizationData','find','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','now','No\x20instances\x20found','toString','ap-northeast-1','send','constructor','UNSUPPORTED','1143860uDqjhW','trim','Region:\x20','Created:\x20','region','createKeyPair','subnet-id','eu-central-2','ImageId','Value','Authorization\x20token\x20is\x20missing','repositoryName'];a151c=function(){return aa;};return a151c();}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 [a151s(0x112)];[a151s(0x16f)];[a151s(0xf7)];[a151s(0x175)];constructor(a,b,c){const t=a151s;this[t(0x16f)]=a,this[t(0xf7)]=b,this[t(0x175)]=c;}static[a151s(0xb6)](a,b,c){const u=a151s;return!AWS[u(0x112)]&&(AWS[u(0x112)]=new AWS(a,b,c)),AWS[u(0x112)];}async['chooseSecurityGroup'](a){const v=a151s;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this['getSecurityGroups'](a);let f='';if(c===''){Log[v(0x183)](v(0x152)),d[v(0x154)](function(h){const w=v;h[w(0xea)]===a?Log[w(0x183)](w(0xf3)+h['id']+w(0xcc)+h[w(0xea)]+'\x20SGID:\x20'+h['sgId']):Log['bright'](w(0xf3)+h['id']+w(0xcc)+h[w(0xea)]+w(0xb7)+h[w(0x105)]);});const g=await Actions[v(0x15b)](v(0x129)+b+']\x20')||b[v(0x13c)]();d['forEach'](function(h){const x=v;h['id']===parseInt(g)&&(f=h['sgId'],Log[x(0x10d)]('Setting\x20SG\x20ID\x20to:\x20'+f+'\x0a'));});}else f=c,Log[v(0x10d)](v(0x16a)+f+'\x0a');if(f==='')throw new Error('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');return f;}catch(h){Log['error'](h);throw h;}}async[a151s(0xa5)](){const y=a151s;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':y(0xde),'Values':['x86_64']},{'Name':y(0x18b),'Values':[y(0x162)]},{'Name':'root-device-type','Values':[y(0xf1)]},{'Name':y(0xd3),'Values':['available']},{'Name':y(0x10b),'Values':[y(0x164)]},{'Name':y(0xaa),'Values':[y(0xbf),'Canonical*Ubuntu*20.04*',y(0x184)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b['send'](d);if(f&&f['length']>0x0){const g=new Date(),h=new Date(g[y(0xed)]()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[y(0x121)](j=>j[y(0x160)]&&!j[y(0xbb)]?.[y(0x151)](y(0x140))&&!j[y(0xbb)]?.['includes']('EKS')&&new Date(j[y(0x160)])>h)[y(0xb3)](j=>({'amiId':j[y(0x149)],'desc':j[y(0xbb)],'date':j[y(0x160)]}));if(i['length']>0x0){i[y(0xec)]((n,o)=>new Date(o[y(0x116)])[y(0xed)]()-new Date(n[y(0x116)])[y(0xed)]());const j=i[y(0xe6)](0x0,0x4),k=j['map']((n,o)=>({'id':o,'amiId':n[y(0x177)],'desc':n[y(0xc7)]}));k['forEach'](n=>{const z=y;Log['bright'](z(0xf3)+n['id']+z(0x14e)+n['amiId']+z(0x18a)+n[z(0xc7)]);});const l=await Actions[y(0x15b)](y(0xa9))||'0',m=k[y(0x138)](n=>n['id']===parseInt(l));if(m)a=m['amiId'],Log['success'](y(0x10e)+a+'\x20:\x20'+m[y(0xc7)]);else throw Log[y(0x171)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}else throw Log[y(0x171)]('No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.');}else throw Log[y(0x171)]('No\x20images\x20found.');}catch(n){Log['error'](n);}return a;}async[a151s(0x15a)](){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(0xee)]>0x0){const g=f['map']((j,k)=>({'id':k,'cidr':j[A(0x12a)],'az':j[A(0x123)],'subnetId':j[A(0x115)]}));g['forEach'](j=>{const B=A;Log[B(0x11e)](B(0xf3)+j['id']+'\x20CIDR:\x20'+j[B(0x100)]+B(0xbc)+j['az']+'\x20SUBNETID:\x20'+j[B(0xbd)]);});const h=await Actions['ask']('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20')||'0',i=g['find'](j=>j['id']===parseInt(h));if(i)a=i['subnetId'],Log['success'](A(0x14d)+a);else throw Log[A(0x171)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}else throw Log[A(0x171)](A(0xff));}catch(j){Log[A(0x171)](j);}return a;}async['getSubnetCidr'](a){const C=a151s;try{const b=new EC2Client({}),c={'Filters':[{'Name':C(0x147),'Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b[C(0x13e)](d);return e['Subnets']&&e[C(0x10c)][C(0xee)]>0x0?e[C(0x10c)][0x0][C(0x12a)]||'':'';}catch(f){return Log[C(0x171)](f),'';}}async['ecrCreateRepository'](a){const D=a151s;try{const b=new ECRClient({'region':a[D(0x145)]}),c={'repositoryName':a[D(0xea)]},d=new CreateRepositoryCommand(c),f=await b['send'](d);return Log[D(0x10d)](D(0xf4)+a[D(0xea)]+'\x22\x20created\x20successfully\x20in\x20'+a['region']+'.'),f;}catch(g){Log['error']('Failed\x20to\x20create\x20repository\x20in\x20'+a[D(0x145)]+':\x20'+g);throw g;}}async[a151s(0x156)](a){const E=a151s,b=[E(0x131),E(0xcb),E(0xb9),'us-west-2',E(0x157),E(0x12c),'ap-northeast-2',E(0x15c),'ap-southeast-2',E(0x13d),'ca-central-1',E(0x16d),E(0x11a),E(0x15d),E(0xb5),E(0xcd),E(0x11f),E(0xe8),E(0x178),E(0x10a),'ap-southeast-3',E(0x134),E(0xa8),E(0x163),E(0xf0),E(0x148),E(0x135),E(0x107),'il-central-1'],c=[E(0x131),E(0xcb),E(0xb9),E(0x155)],d=a===E(0xf2)?b:a?a[E(0x17d)](','):c;let f=[];const g=Log[E(0xcf)]();for(const h of d){g[E(0xa4)](E(0xdb)+h['trim']()+'...');const i=new ECRClient({'region':h['trim']()});try{let j=undefined;do{const k=await Promise[E(0xd5)]([i[E(0x13e)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l('timeout'),0x7d0))]);if(k===E(0xc0)){Log[E(0x136)](E(0x11c)+h[E(0x142)]()+'.');break;}else k[E(0x185)]&&k[E(0x185)][E(0xee)]>0x0&&(f=f[E(0xeb)](k[E(0x185)][E(0xb3)](l=>({'name':l[E(0x14c)],'uri':l['repositoryUri'],'region':h[E(0x142)]()}))));j=k[E(0xf9)];}while(j);}catch(l){Log['error'](E(0x10f)+h[E(0x142)]()+':\x20'+l[E(0x17a)]);}finally{g[E(0xb0)]();}}return f['length']>0x0?(console[E(0x124)](),Log[E(0x10d)]('Final\x20list\x20of\x20ECR\x20repositories:'),f[E(0x154)](m=>{const F=E;Log[F(0x169)](F(0x143)+m['region']+F(0x126)+m[F(0xea)]+F(0x17e)+m[F(0xdf)]);})):Log['warn'](E(0x139)),f;}async[a151s(0x159)](a){const G=a151s;try{const b={'CallerReference':''+Date[G(0x13a)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[G(0x13e)](c),Log[G(0x10d)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log[G(0x171)](G(0x173)),console[G(0x171)](d);}}async[a151s(0x111)](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(0x13e)](f);Log['notice'](H(0x101)+b+H(0x189)),Log[H(0x183)](H(0x102)+JSON[H(0x179)](g));}catch(h){Log[H(0x171)](H(0x16b)),Log[H(0x136)](H(0xe1)),h[H(0xd7)]&&(Log['error'](H(0xba)+h[H(0xd7)][H(0xf8)]),Log[H(0x171)](H(0xfb)+h[H(0xd7)]['requestId'])),Log[H(0x171)](H(0xfe)+h[H(0x17a)]),h[H(0xea)]==='TLDRulesViolation'?Log[H(0x171)](h['message']):Log[H(0x171)](H(0x117)),Log['error'](h);}}async[a151s(0xe7)](a){const I=a151s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[I(0x13e)](c),e=d[I(0x125)]===I(0x16c);if(e){const f=a[I(0x17d)]('.')[I(0x9f)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[I(0x13e)](h);if(i&&i[I(0x150)]&&i[I(0x150)][0x0]?.[I(0xda)]){const j=i['Prices'][0x0][I(0xda)];return{'available':e,'cost':j};}}catch(k){console[I(0x171)]('Error\x20fetching\x20domain\x20pricing:',k);}}return{'available':e};}async[a151s(0x166)](a,b,c){const J=a151s;try{const d=await route53[J(0xe2)]({'DNSName':c});if(!d?.[J(0x132)])throw Log[J(0x171)]('Could\x20not\x20find\x20hosted\x20zone');const e=d?.[J(0x132)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':ChangeAction[J(0x168)],'ResourceRecordSet':{'Name':c,'Type':RRType['A'],'TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e},g=new ChangeResourceRecordSetsCommand(f);await route53['send'](g),Log[J(0x183)](J(0x161)+a+'\x20to\x20'+c);}catch(h){console[J(0x171)](J(0xb4),h);}}async[a151s(0xef)]({awsAccountId:a,region:b}){const K=a151s,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[K(0x13e)](d);if(!f[K(0x137)]||f[K(0x137)][K(0xee)]===0x0)throw new Error(K(0x167));const g=f['authorizationData'][0x0];if(!g[K(0x120)])throw new Error(K(0x14b));const h=g[K(0x120)];if(!h)throw new Error(K(0xe0));const i=Buffer[K(0xca)](h,'base64')[K(0x13c)](),j=i['split'](':')[0x1];if(!j)throw new Error('Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token');return j;}catch(k){Log[K(0x171)](k);throw k;}}async['ecrDeleteRepository']({repoName:a,region:b}){const L=a151s,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[L(0x13e)](d);return f;}catch(g){Log[L(0x171)](g);throw g;}}async[a151s(0xd8)](a){const M=a151s;try{const b={'BlockDeviceMappings':[{'DeviceName':M(0xc1),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[M(0xac)],'InstanceType':a['type'],'KeyName':a['key'],'MaxCount':a['maxCount'],'MinCount':a[M(0xaf)],'SecurityGroupIds':a['sgIds'][M(0x17d)](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':M(0x112),'Tags':a[M(0x109)]}]};a['userData']&&(b[M(0x186)]=M(0x174)+a['userData']);const c=new RunInstancesCommand(b),d=await client[M(0x13e)](c);return d;}catch(f){Log[M(0x171)](f);}}async[a151s(0x103)](a){const N=a151s;try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client[N(0x13e)](c);return d;}catch(f){return Log[N(0x171)](f),{};}}async[a151s(0x153)]({keyName:a,env:b}){const O=a151s,c=this[O(0xf7)][O(0xe4)](b),d=a151f[O(0xc3)](c,O(0x12f),a+O(0x188));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[O(0x13e)](g),i=h[O(0xc4)];if(i){await this[O(0x16f)][O(0x182)]({'filePath':d,'data':i}),execSync(O(0x180)+d,{'stdio':O(0xfc)});const j=this[O(0x16f)][O(0xb1)](d);if(j)return Log['success']('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error(O(0xf5));}catch(k){Log[O(0x171)](k),process[O(0x17c)](0x1);}}async[a151s(0xa7)]({port:a,groupId:b}){const P=a151s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':P(0x18d),'IpRanges':[{'CidrIp':P(0x108),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log['notice'](P(0xa0)+a+'\x20opened!'),await client[P(0x13e)](d);}async['ec2createSG'](a){const Q=a151s;try{a[Q(0xaa)]===''&&(a[Q(0xaa)]=await Actions['ask'](Q(0x122))||Q(0x133));const b={'Description':a[Q(0xaa)],'GroupName':a[Q(0xea)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client[Q(0x13e)](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a[Q(0xae)]['forEach'](g=>{const R=Q;this[R(0xa7)]({'port':parseInt(g),'groupId':f});}),Log[Q(0x10d)](Q(0x144)+f+Q(0xc5)+a[Q(0xea)]);}catch(g){return Log[Q(0x171)](g),![];}return!![];}async[a151s(0x181)](a){const S=a151s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[S(0x13e)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const T=S;h['KeyName']&&b['push']({'id':i,'name':h[T(0x128)]});}),b[S(0xee)]>0x0&&b[S(0x154)](h=>{const U=S;h[U(0xea)]===a?.[U(0xe9)]?Log[U(0x10d)](U(0xf3)+h['id']+U(0xc5)+h['name']):Log[U(0x183)]('ID:\x20'+h['id']+U(0xc5)+h[U(0xea)]);})):Log[S(0x171)](S(0x110));}catch(h){Log[S(0x171)](h);}return b;}async[a151s(0x12e)](a){const V=a151s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[V(0x13e)](c);}catch(d){Log['error'](d),process[V(0x17c)](0x1);}}async[a151s(0xc2)](){const W=a151s,a=[];try{const b={'Filters':[{'Name':W(0x130),'Values':[W(0x114)]}]},c=new DescribeInstancesCommand(b),d=await client[W(0x13e)](c);d[W(0x118)]?.[W(0x154)]((f,g)=>{const X=W;if(f?.[X(0xd2)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[X(0xd2)][0x0],n=m?.[X(0x138)](({Key:o})=>o===X(0x17b));a[X(0x113)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[X(0xfd)],'name':l,'env':n?.[X(0x14a)]});}}),a[W(0xee)]>0x0?a[W(0x154)](f=>{const Y=W,g=Y(0xf3)+f['id']+'\x20NAME:\x20'+f[Y(0xea)]+Y(0xd4)+f[Y(0x119)]+Y(0x11d)+f['status']+Y(0xfa)+f[Y(0xb2)]+'\x20PUB_IP:\x20'+f['publicIp']+'\x20PRIV_IP:\x20'+f[Y(0xa1)];if(f[Y(0xdd)]===Y(0xc6))Log['error'](g);else f[Y(0xdd)]==='running'?Log['success'](g):Log[Y(0x183)](g);}):Log['error'](W(0xe3));}catch(f){Log[W(0x171)](f);}return a;}async['ec2rebootInstance'](a){const Z=a151s;try{const b={'InstanceIds':[a[Z(0xb2)]]},c=new RebootInstancesCommand(b),d=await client[Z(0x13e)](c);return d['$metadata']['httpStatusCode']===0xc8&&Log[Z(0x10d)](Z(0x158)),d;}catch(f){Log[Z(0x171)](f);}}async[a151s(0xce)](){const a0=a151s;let a='';Log['notice'](a0(0x172));const b=new DescribeVpcsCommand({}),c=await client[a0(0x13e)](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const a1=a0;g[a1(0x15f)]&&g[a1(0x12a)]&&e[a1(0x113)]({'id':h,'vpcId':g[a1(0x15f)],'cidr':g[a1(0x12a)]});});e[a0(0x154)](function(g){const a2=a0;console[a2(0x124)](a2(0xf3)+g['id']+a2(0x14f)+g[a2(0xa6)]+a2(0x106)+g[a2(0x100)]);});const f=await Actions[a0(0x15b)](a0(0xbe))||0x0;e['forEach'](function(g){const a3=a0;g['id']==f&&(a=g[a3(0xa6)],Log[a3(0x10d)](a3(0xad)+a+'\x0a'));});if(a==='')return Log[a0(0x171)](a0(0x12d)),'';return a;}async[a151s(0x18c)](){const a4=a151s,a=await this['ec2describeInstances']();if(a[a4(0xee)]===0x0)return Log['error'](a4(0x13b)),null;const b=await Actions[a4(0x15b)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[a4(0x171)](a4(0x16e)),process[a4(0x17c)](0x0));const c=a[a4(0x138)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a151s(0x146)]({env:a}){const a5=a151s;try{const b=this['cfg'][a5(0x17f)]();if(!b)throw MustBeInProjectError;const {appName:c}=b,d=c+'-'+a,f=await Actions[a5(0x15b)](a5(0xc8)+d+']\x20')||d,{filePath:g}=await this[a5(0x153)]({'keyName':f,'env':a}),h=await Actions[a5(0x127)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a151f[a5(0xc3)](a5(0xdc),a,a5(0xd6));!this['fsi']['isFile'](i)&&await this[a5(0x175)][a5(0x12b)]({'srcPath':a5(0x187),'destPath':i,'context':{'app':f}});const j=a151e['readFileSync'](a151f[a5(0xc3)]('config',a,a5(0xd6)),a5(0x165)),k=JSON[a5(0x104)](j);k['pem']=a151f['join'](a5(0x12f),f+'.pem.txt'),a151e[a5(0xb8)](a151f[a5(0xc3)](a5(0xdc),a,'ssh.json'),JSON[a5(0x179)](k,null,0x2));}catch(l){Log['error'](l),Log[a5(0x171)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}return{'keyName':f,'filePath':g};}catch(m){Log[a5(0x171)](m),process[a5(0x17c)](0x1);}}async[a151s(0xd9)](a){const a6=a151s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a6(0x13e)](d),{SecurityGroups:f}=e;f&&f[a6(0x154)](function(i,j){const a7=a6;i['GroupName']&&i['GroupId']&&b[a7(0x113)]({'id':j,'name':i[a7(0x15e)],'sgId':i['GroupId']});});let g='',h=0x0;return b[a6(0x154)](function(i){const a8=a6;i['name']===a&&(g=i[a8(0x105)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a151s(0xa2)](a){const a9=a151s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[a9(0x13e)](c);}catch(d){Log[a9(0x171)](d),process[a9(0x17c)](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
|
-
|
|
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 a153v=a153d;(function(a,b){const t=a153d,c=a();while(!![]){try{const d=-parseInt(t(0x127))/0x1+parseInt(t(0x123))/0x2+parseInt(t(0x18b))/0x3*(-parseInt(t(0x14d))/0x4)+-parseInt(t(0x145))/0x5+-parseInt(t(0x171))/0x6*(parseInt(t(0x144))/0x7)+parseInt(t(0x118))/0x8*(parseInt(t(0x18a))/0x9)+parseInt(t(0x180))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a153c,0xdcf5a));const a153b=(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;};}()),a153a=a153b(this,function(){const u=a153d;return a153a[u(0x112)]()[u(0x193)](u(0x126))[u(0x112)]()[u(0x146)](a153a)[u(0x193)]('(((.+)+)+)+$');});a153a();function a153c(){const U=['setTemplate()','No\x20maka\x20project\x20config\x20file\x20found.','engines','8793135bZKpsL','3PbGBHg','setEngine','settings.json','Not\x20in\x20a\x20maka\x20project','Unsupported\x20theme\x20engine:\x20','Unsupported\x20html\x20engine:\x20','resolve','setEngine()','search','success','No\x20global\x20config\x20file\x20','getEnvSettings','Unsupported\x20client\x20engine:\x20','toString','setGlobalConfig','checkGlobalConfigExists','none','less',',\x20consider\x20running\x20\x22maka\x20g:config\x20','8OQQeCB','writeFileSync','.meteor','undefined','getAppProjectConfigs()','homedir','findProjectDirectory','getEnvFromShorthand','theme','Error\x20in\x20','/api/v1/encodeJwt','2266094SRPgUr','fsi','Successfully\x20set\x20','(((.+)+)+)+$','1136915ciJpgx','getInstance','includes','Unsupported\x20js\x20engine:\x20','readdirSync','rest','tsx','join','authToken','checkConfigExists()','warn','defaultValue()','True','instance','delGlobalConfigHash','getAppConfigPath','setEnvSettings','sync','api','setTemplate','stringify','assign','\x20to\x20','Unsupported\x20api\x20engine:\x20','error','engine','getGlobalConfig','setProjectConfig','css','7eRJEAD','8293000MTXTiM','constructor','mocha','config','appName','setEnvSettings()','existsSync','getMakaProjectConfig','3048512cXTKOd','deeperAssign','utf8','app','startsWith','html','length','jest','isFile','Environment\x20argument\x20provided,\x20but\x20its\x20value\x20is\x20not\x20recognized.','withValidation()','false','attemptAutoLogin','apollo','deepen','post','config.json','env','getEnvSettings()','withValidation','setGlobalConfig()','pathFromProject','checkConfigExists','\x20in\x20','token','parse','Environemnt\x20argument\x20provided,\x20but\x20its\x20value\x20is\x20not\x20recognized.','charAt','material','writeToFile','string','client','setProjectConfig()','min','cert','jsx','8695092xJHzwC','createFile','react','Unsupported\x20css\x20engine:\x20','getMeteorInstallPath','.maka','delGlobalConfig()','getAppProjectConfigs','delGlobalConfig','vanilla','forEach','true','defaultValue','withValue','Are\x20you\x20sure\x20you\x20are\x20in\x20a\x20maka\x20project?','38018130JdjXFS','exit','MAKA_DEV','www.maka-cli.com','filter','readFileSync','checkGlobalConfigExists()'];a153c=function(){return U;};return a153c();}import a153e from'fs';import a153f from'path';import a153g from'os';function a153d(a,b){const c=a153c();return a153d=function(d,e){d=d-0x111;let f=c[d];return f;},a153d(a,b);}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=a153v(0x15d),homeDir=a153g[a153v(0x11d)](),errorHandler=(a,b)=>{const w=a153v;process[w(0x15e)][w(0x182)]===w(0x133)&&Log['error'](w(0x121)+a),b&&console[w(0x13f)](b);};export class CFG{static [a153v(0x134)];[a153v(0x124)];constructor(a){const x=a153v;this[x(0x124)]=a;}static[a153v(0x128)](a){const y=a153v;return!CFG[y(0x134)]&&(CFG[y(0x134)]=new CFG(a)),CFG['instance'];}[a153v(0x178)](){const z=a153v;try{const a=this[z(0x124)][z(0x11e)]();if(a===undefined)throw Log[z(0x13f)](z(0x18e));else{if(typeof a==='string'){const b=a153f['join'](a,z(0x148)),c=a153e[z(0x12b)](b)[z(0x184)](d=>!d[z(0x151)]('.')&&a153e['statSync'](a153f[z(0x12e)](b,d))['isDirectory']());return c;}}return[];}catch(d){errorHandler(z(0x11c),d),process['exit'](0x1);}}[a153v(0x11f)](a){const A=a153v;try{if(!a||typeof a!==A(0x16b))throw A(0x156);const b=this['getAppProjectConfigs']();function c(h,k){const B=A,l=[],m=h[B(0x153)],n=k[B(0x153)];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(0x16e)](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(0x168)](0x0);return b[A(0x17b)](h=>{const C=A;if(h[C(0x168)](0x0)===g){const i=c(a,h);i<d&&(d=i,f=h);}}),f!==''?f:a;}catch(h){errorHandler('getEnvFromShorthand()',h),process[A(0x181)](0x1);}}[a153v(0x114)](){const D=a153v;try{const a=a153f[D(0x12e)](homeDir,D(0x11a),D(0x176),GLOBAL_CONFIG),b=a153e[D(0x14b)](a);if(!b)throw Log[D(0x13f)](D(0x195)+a);return a;}catch(c){errorHandler(D(0x186),c),process[D(0x181)](0x1);}}[a153v(0x163)](a){const E=a153v;try{if(!a||typeof a!==E(0x16b))throw E(0x167);const b=this[E(0x11f)](a),c=this[E(0x124)]['pathFromProject']({'pathParts':[E(0x148),b]}),d=a153e['existsSync'](c);if(!d)return![];return!![];}catch(f){errorHandler(E(0x130),f),process[E(0x181)](0x1);}}['getAppConfigPath'](a){const F=a153v;try{if(!a||typeof a!=='string')throw F(0x167);const b=this[F(0x11f)](a),c=this[F(0x124)]['pathFromProject']({'pathParts':[F(0x148),b]}),d=a153e[F(0x14b)](c);if(!d)throw Log[F(0x13f)]('No\x20configuration:\x20'+b+F(0x117)+b+'\x22');return c;}catch(f){errorHandler('getAppConfigPath()',f),process[F(0x181)](0x1);}}[a153v(0x196)](a){const G=a153v;try{const b=this[G(0x136)](a),c=a153e['readFileSync'](a153f[G(0x12e)](b,G(0x18d)),'utf8');return c[G(0x112)]();}catch(d){errorHandler(G(0x15f),d),process[G(0x181)](0x1);}}[a153v(0x137)](a,b,c){const H=a153v;try{const d=this[H(0x136)](a),f=a153e[H(0x185)](a153f['join'](d,H(0x18d)),H(0x14f)),g=JSON['parse'](f[H(0x112)]());g[b]=c;const h=JSON['stringify'](g,null,0x2);a153e['writeFileSync'](a153f[H(0x12e)](d,'settings.json'),h),Log[H(0x194)](H(0x125)+b+H(0x13d)+c+H(0x164)+a153f[H(0x191)](d));}catch(i){errorHandler(H(0x14a),i),process['exit'](0x1);}}[a153v(0x14c)](){const I=a153v;try{const a=this[I(0x124)]['pathFromProject']({'pathParts':[I(0x176),PROJECT_CONFIG]}),b=this[I(0x124)][I(0x155)](a);if(!b){Log[I(0x13f)](I(0x17f));throw Log[I(0x13f)](I(0x188));}const c=JSON['parse'](a153e[I(0x185)](a,I(0x14f)));return!c[I(0x149)]&&(Log[I(0x131)]('No\x20app\x20name\x20present\x20in\x20./maka/config.json.'),c['appName']=I(0x150)),c;}catch(d){errorHandler('getMakaProjectConfig()',d),process[I(0x181)](0x1);}}[a153v(0x135)](){const J=a153v;try{const a=a153f[J(0x12e)](this['fsi'][J(0x175)](),J(0x176),GLOBAL_CONFIG),b=JSON['parse'](a153e['readFileSync'](a)['toString']()),c=JSON[J(0x13b)](b,null,0x2);return this[J(0x124)]['writeToFile']({'filePath':a,'data':c,'opts':{'absolute':!![],'silent':!![]}}),b;}catch(d){errorHandler('delGlobalConfigHash()',d),process[J(0x181)](0x1);}}[a153v(0x179)](){const K=a153v;try{const a=a153f[K(0x12e)](this[K(0x124)][K(0x175)](),K(0x176),GLOBAL_CONFIG);a153h['sync'](a,{'force':!![]});}catch(b){errorHandler(K(0x177),b),process[K(0x181)](0x1);}}async['getGlobalConfig'](){const L=a153v;try{const a=a153f[L(0x12e)](homeDir,'.maka');a153e[L(0x14b)](a)&&a153h[L(0x138)](a,{'force':!![]});const b=a153f[L(0x12e)](this['fsi'][L(0x175)](),L(0x176),GLOBAL_CONFIG);if(!this[L(0x124)][L(0x155)](b)){const c={'token':{'authToken':'','userId':'','when':''}},d=JSON[L(0x13b)](c,null,0x2);await this['fsi'][L(0x172)]({'filePath':b,'data':d,'opts':{'force':!![],'silent':!![]}});}return JSON[L(0x166)](a153e[L(0x185)](b)[L(0x112)]());}catch(f){f instanceof SyntaxError?(this['delGlobalConfig'](),Log[L(0x13f)]('Your\x20'+this[L(0x124)][L(0x175)]()+'/.maka/global-config.json\x20file\x20is\x20not\x20valid\x20JSON.\x20Your\x20global-config.json\x20has\x20been\x20removed.\x20\x20Please\x20re-run\x20your\x20last\x20command.')):console[L(0x13f)](f),process['exit'](0x1);}}[a153v(0x142)](a,b){const M=a153v;try{const c=this[M(0x124)][M(0x162)]({'pathParts':[M(0x176),PROJECT_CONFIG]});let d=JSON[M(0x166)](a153e[M(0x185)](c,M(0x14f)));const f=this[M(0x124)][M(0x15b)]({[a]:b});d=this['fsi'][M(0x14e)](d,f);const g=JSON['stringify'](d,null,0x2);a153e[M(0x119)](c,g);}catch(h){errorHandler(M(0x16d),h),process['exit'](0x1);}}async[a153v(0x113)](a){const N=a153v;try{const b=a153f[N(0x12e)](homeDir,N(0x11a),N(0x176),GLOBAL_CONFIG);if(!this[N(0x124)][N(0x155)](b)){const f=JSON[N(0x13b)](a,null,0x2);await this[N(0x124)][N(0x172)]({'filePath':b,'data':f,'opts':{'force':!![],'silent':!![]}});}const c=await this['getGlobalConfig']();Object[N(0x13c)](c,{...a});const d=JSON[N(0x13b)](c,null,0x2);this[N(0x124)][N(0x16a)]({'filePath':b,'data':d,'opts':{'absolute':!![],'silent':!![]}});}catch(g){errorHandler(N(0x161),g),process['exit'](0x1);}}async[a153v(0x159)](){const O=a153v,a=await this[O(0x141)](),b=a?.[O(0x165)],c=a?.[O(0x16f)];if(b?.['authToken']){const d={'hostname':O(0x183),'path':O(0x122),'headers':{'x-auth-token':b[O(0x12f)]},'data':{}};c&&Object[O(0x13c)](d,{'cert':c});const {data:e,statusCode:f}=await HTTPS[O(0x15c)](d),{token:g}=JSON[O(0x166)](e);g&&f!==0x198&&this[O(0x113)](a);}}[a153v(0x13a)](a,b){const P=a153v;try{const c=this[P(0x124)][P(0x162)]({'pathParts':[P(0x176),PROJECT_CONFIG]}),d=JSON[P(0x166)](a153e[P(0x185)](c,P(0x14f)));d['template'][a]=b;const f=JSON[P(0x13b)](d,null,0x2);a153e[P(0x119)](c,f);}catch(g){errorHandler(P(0x187),g),process[P(0x181)](0x1);}}[a153v(0x18c)](a,b){const Q=a153v;try{const c=this['fsi'][Q(0x162)]({'pathParts':['.maka',PROJECT_CONFIG]}),d=JSON['parse'](a153e['readFileSync'](c,'utf8'));d[Q(0x140)][a]=b;const f=JSON[Q(0x13b)](d,null,0x2);a153e[Q(0x119)](c,f);}catch(g){errorHandler(Q(0x192),g),process[Q(0x181)](0x1);}}[a153v(0x17d)](a,b){const R=a153v;try{return typeof a===R(0x11b)?b:a;}catch(c){errorHandler(R(0x132),c);}}async[a153v(0x17e)](a,b){const S=a153v;try{let c=null;return this['withValidation'](a),c=await b(),c;}catch(d){errorHandler('withValue()',d),process[S(0x181)](0x1);}}[a153v(0x160)](a){const T=a153v;try{const b={'html':[T(0x152)],'js':['js',T(0x170),'ts',T(0x12d)],'css':[T(0x143),'scss',T(0x116),'none'],'api':[T(0x12c),'none'],'test':[T(0x154),T(0x147),T(0x115)],'client':[T(0x173),T(0x17a)],'graphql':[T(0x15a)],'ssr':[T(0x17c),T(0x158)],'theme':[T(0x169),T(0x115)]},c=a[T(0x189)]=this[T(0x17d)](a['engines'],{});if(c[T(0x152)]&&!b[T(0x152)][T(0x129)](c[T(0x152)]))throw new Error(T(0x190)+c['html']);if(c['js']&&!b['js'][T(0x129)](c['js']))throw new Error(T(0x12a)+c['js']);if(c[T(0x143)]&&!b[T(0x143)]['includes'](c['css']))throw new Error(T(0x174)+c['css']);if(c['api']&&!b[T(0x139)][T(0x129)](c[T(0x139)]))throw new Error(T(0x13e)+c[T(0x139)]);if(c[T(0x16c)]&&!b['client']['includes'](c['client']))throw new Error(T(0x111)+c['client']);if(c[T(0x120)]&&!b[T(0x120)][T(0x129)](c['theme']))throw new Error(T(0x18f)+c['theme']);return c[T(0x152)]=this[T(0x17d)](c['html'],T(0x152)),c['js']=this[T(0x17d)](c['js'],'js'),c[T(0x143)]=this['defaultValue'](c[T(0x143)],T(0x143)),c['client']=this[T(0x17d)](c['client'],T(0x173)),c[T(0x139)]=this[T(0x17d)](c[T(0x139)],T(0x115)),c[T(0x120)]=this[T(0x17d)](c['theme'],'none'),a;}catch(d){errorHandler(T(0x157),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 a154m=a154d;(function(a,b){const j=a154d,c=a();while(!![]){try{const d
|
|
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(a,b){const n=a156d,c=a();while(!![]){try{const d=-parseInt(n(0x1e0))/0x1+parseInt(n(0x229))/0x2+parseInt(n(0x261))/0x3+-parseInt(n(0x1e8))/0x4*(-parseInt(n(0x20f))/0x5)+-parseInt(n(0x1f6))/0x6+-parseInt(n(0x21a))/0x7*(parseInt(n(0x1e7))/0x8)+-parseInt(n(0x1dd))/0x9*(parseInt(n(0x206))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a156c,0x1df38));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['toString']()[p(0x1c1)](p(0x225))[p(0x20b)]()[p(0x227)](a156a)['search'](p(0x225));});function a156c(){const aa=['_keys','checkPortInUse','(((.+)+)+)+$','includes','constructor','True','297994xxurlA','grep','base64','createFile','writeToFile','pathFromProject()','readFileSync','getUserDataDirectory','resolve','confirm','build',').*$','isFile','getFiles','MAKA_DEV','METEOR@','close','Cannot\x20write\x20data\x20to\x20a\x20directory','error','isDirectory','string','Local','local','getInstance','getMeteorInstallPath','extname','pathFromProject','app','silent','File\x20not\x20written','exit','singleLine','Invalid\x20directory','fileContainsString','msg','omit','withSpinner','findDirectoryUp','cwd','verbose','createFile()','File\x20exists\x20at\x20that\x20location','findDirectoryUp()','writeFileSync','entries','success','pipe','env','absolute','promises','data','EADDRINUSE','\x20is\x20already\x20in\x20use,\x20trying\x20','getProjectsMeteorNodeVersion()','Uh-oh,\x20the\x20directory\x20is\x20not\x20a\x20directory\x20','deeperAssign','120312Vpgqdk','writeToFile()','\x20...\x0a','search','message','mkKeysDir','complete','\x20created\x20file\x20','0.0.0.0','once','Extracting','failure','meteorCommand','compareMakaToLatest','warn','unlink','listening','size','join','getDirectories()','findAppDirectory()','bright','createDirectory','statSync','readFile','mkdirSync','filter','pop','utf-8','isSelfTest','Error\x20reading\x20file:\x20','6714CtanLb','stringify','getCachedResult','25284yicFtn','from','utf8','length','.node_version.txt','Error\x20in\x20','split','54616hQMssQ','4jmGvrU','extensions','existsSync','level','getDirectories','apply','release','instance','sep','object','end','readdirSync','\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20overwrite\x20it?','@maka/maka-cli','293892fdWpzY','homedir','writeFile','AppData','.meteor','createReadStream','ignore','getFiles()','match','force','deepen','Updated\x20file\x20','relative','cacheResult','Port\x20','platform','120SlbFUO','dirname','saveInit()','getProjectMeteorVersion()','extractTarGz','toString','concat','win32','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','118120uJUMLu','cache.json','findAppDirectory','grep()','isMakaProject','shift','directoryEntries','sync','replace','findProjectDirectory()','getLatestMakaVersion','7LtRoQt','createServer','saveInit','findProjectDirectory','initNpm','Latest\x20version\x20of\x20maka-cli\x20is\x20','No\x20directory\x20path\x20provided','normalize','createDirectory()'];a156c=function(){return aa;};return a156c();}a156a();import a156e from'path';import a156f from'net';import a156g from'@maka/tar';import a156h from'fs';function a156d(a,b){const c=a156c();return a156d=function(d,e){d=d-0x1bf;let f=c[d];return f;},a156d(a,b);}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':'5.1.16'},PROJECT_CONFIG='config.json',GLOBAL_CACHE=a156q(0x210),homeDir=a156i[a156q(0x1f7)](),errorHandler=(a,b)=>{const r=a156q;process[r(0x258)][r(0x237)]===r(0x228)&&Log[r(0x23b)](r(0x1e5)+a),b&&console[r(0x23b)](b);};export class FSI{static [a156q(0x1ef)];['appName'];constructor(){}static[a156q(0x240)](){const s=a156q;return!FSI[s(0x1ef)]&&(FSI[s(0x1ef)]=new FSI()),FSI['instance'];}[a156q(0x230)](){const t=a156q,a=process[t(0x205)]===t(0x20d);return a?a156e[t(0x1d0)](homeDir,t(0x1f9),t(0x23e)):a156e[t(0x1d0)](homeDir);}[a156q(0x241)](){const u=a156q,a=process[u(0x205)]==='win32';return a?a156e[u(0x1d0)](homeDir,'AppData',u(0x23e),u(0x1fa)):a156e[u(0x1d0)](homeDir,u(0x1fa));}[a156q(0x1ca)](){const v=a156q;return a156e['join'](this[v(0x241)](),'meteor');}[a156q(0x1ec)](a){const w=a156q;try{return a156h[w(0x1f3)](a)[w(0x1d8)](b=>{const x=w;return a156h[x(0x1d5)](a156e[x(0x1d0)](a,b))['isDirectory']();});}catch(b){errorHandler(w(0x1d1),b),process[w(0x247)](0x1);}}async[a156q(0x22c)]({filePath:a,data:b,opts:c}){const y=a156q,d=c?.['absolute']?a156e['join'](process[y(0x24f)](),a):a156e[y(0x202)](process[y(0x24f)](),a);try{const f=a156e[y(0x221)](a)[y(0x1e6)](a156e['sep']);f[y(0x1d9)]();const g=f[y(0x1d0)](a156e[y(0x1f0)]),h=!this['isDirectory'](g);h&&await this[y(0x1d4)]({'dirPath':g,'force':c?.[y(0x1ff)],'silent':c?.[y(0x245)]});if(this[y(0x235)](a)&&!c?.[y(0x1ff)]){const i=await Actions[y(0x232)](a+y(0x1f4));if(!i){if(c?.[y(0x1fc)])return;else throw{'msg':y(0x246),'level':'info','verbose':!![]};}else await a156m[y(0x1cd)](a);}if(c?.['isImage']){const j=Buffer[y(0x1e1)](b,y(0x22b));await a156m[y(0x1f8)](a,j);}else await a156m[y(0x1f8)](a,b);!c?.['silent']&&Log[y(0x1d3)](y(0x1c5)+d);}catch(k){k?.[y(0x250)]?k[y(0x1eb)]==='info'?Log[y(0x23b)](k['msg']):errorHandler(y(0x251),k[y(0x24b)]):errorHandler('createFile()',k);}}[a156q(0x236)](a,b){const z=a156q;try{const c=a156h[z(0x1f3)](a)[z(0x1d8)](d=>{const A=z,f=a156e['join'](a,d);if(this[A(0x23c)](f))return![];if(b?.['omit']){const g=Array['isArray'](b[A(0x24c)])?b[A(0x24c)]:[b[A(0x24c)]];for(const h of g){if(d['includes'](h))return![];}}if(b?.[A(0x1e9)]){const i=a156e[A(0x242)](f);if(!i)return![];if(!b[A(0x1e9)]['includes'](i['replace']('.','')))return![];return!![];}return!![];});return c;}catch(d){errorHandler(z(0x1fd),d),process[z(0x247)](0x1);}}[a156q(0x1c3)]({configPath:a}){const B=a156q;if(!this[B(0x23c)](a))throw B(0x249);const b=a156e[B(0x1d0)](a,B(0x223));try{a156h['statSync'](b);}catch(c){Log[B(0x1cc)](c[B(0x1c2)]),a156h[B(0x1d7)](b,{'recursive':!![]});}return b;}[a156q(0x22d)]({filePath:a,data:b,opts:c}){const C=a156q,d=c?.[C(0x259)]?a156e[C(0x1d0)](process[C(0x24f)](),a):a156e[C(0x202)](process['cwd'](),a);try{if(this[C(0x23c)](a))throw Log[C(0x23b)](C(0x23a));a156h[C(0x254)](a,b),!c?.['silent']&&Log[C(0x1d3)](C(0x201)+d);}catch(f){errorHandler(C(0x1bf),f);}}async[a156q(0x1d4)]({dirPath:a,force:b,silent:c}){const D=a156q;if(!a)throw Log[D(0x23b)](D(0x220));try{b&&a156j[D(0x216)](a);if(this[D(0x235)](a))throw Log[D(0x23b)](D(0x252));const d=this[D(0x23c)](a);if(!d){a156h[D(0x1d7)](a,{'recursive':!![]});if(!this[D(0x23c)](a))throw D(0x25f)+a;!c&&Log[D(0x256)]('Created\x20'+a156e[D(0x202)](process[D(0x24f)](),a));}}catch(f){errorHandler(D(0x222),f);}}[a156q(0x24e)]({predicate:a,startPath:b}){const E=a156q;try{let c=b||process[E(0x24f)]();while(c){if(a(c))break;const d=a156e[E(0x207)](c);d===c?c=undefined:c=d;}return c;}catch(f){errorHandler(E(0x253),f),process[E(0x247)](0x1);}}[a156q(0x21d)](a=process[a156q(0x24f)]()){const F=a156q;try{const b=this[F(0x24e)]({'predicate':c=>{const G=F;return this[G(0x235)](a156e[G(0x1d0)](c,'.maka',PROJECT_CONFIG));},'startPath':a||process[F(0x24f)]()});if(!b)return'';return b;}catch(c){errorHandler(F(0x218),c),process[F(0x247)](0x1);}}[a156q(0x211)](a=process[a156q(0x24f)]()){const H=a156q;try{const b=this[H(0x21d)](a);return b&&typeof b===H(0x23d)?a156e[H(0x1d0)](b,'app'):'';}catch(c){errorHandler(H(0x1d2),c),process[H(0x247)](0x1);}}[a156q(0x243)]({pathParts:a}){const I=a156q;try{const b=a?.['join'](a156e[I(0x1f0)]),c=this[I(0x21d)]();return c&&typeof c==='string'?a156e[I(0x1d0)](c,b||''):'';}catch(d){errorHandler(I(0x22e),d),process[I(0x247)](0x1);}}['isFile'](a){const J=a156q;try{const b=a156e[J(0x231)](a),c=a156h[J(0x1d5)](b);return c['isFile']();}catch(d){return![];}}[a156q(0x23c)](a){const K=a156q;try{const b=a156h[K(0x1d5)](a);return b[K(0x23c)]();}catch(c){return![];}}['readFileLines'](a){const L=a156q;try{const b=a156h[L(0x22f)](a,L(0x1e2)),c=b[L(0x1e6)](/\r*\n\r*/);while(c[L(0x1e3)]){const d=c[c[L(0x1e3)]-0x1];if(d[L(0x1fe)](/\S/))break;c[L(0x1d9)]();}return c;}catch(f){errorHandler('readFileLines()',f),process[L(0x247)](0x1);}}['getProjectMeteorVersion'](){const M=a156q;try{const a=this[M(0x243)]({'pathParts':[M(0x244),M(0x1fa),M(0x1ee)]}),b=a156h[M(0x22f)](a,M(0x1e2));let c=b[M(0x217)](M(0x238),'')[M(0x217)]('\x0a','');const d=c[M(0x1e6)]('.')[M(0x1e3)];return d<0x3&&(c=c+'.0'),c;}catch(f){errorHandler(M(0x209),f),process[M(0x247)](0x1);}}async['getProjectsMeteorNodeVersion'](){const N=a156q;try{const a=this[N(0x243)]({'pathParts':['app',N(0x1fa),N(0x23f),N(0x233),'.node_version.txt']});if(!this[N(0x235)](a))return'N/A';else{const b=this['pathFromProject']({'pathParts':[N(0x244),N(0x1fa),'local','build',N(0x1e4)]}),c=a156h['readFileSync'](b,N(0x1e2)),d=c[N(0x217)]('v','')[N(0x217)]('\x0a','');return d;}}catch(f){errorHandler(N(0x25e),f),process[N(0x247)](0x1);}}async['getLatestMakaVersion'](){const O=a156q,a=await a156k(O(0x1f5));return a;}async[a156q(0x1cb)](){const P=a156q,a=await this[P(0x219)]();a156l['gt'](a,pjson['version'])&&(Log[P(0x1cc)](P(0x21f)+a),Log[P(0x1cc)](P(0x20e)));return;}[a156q(0x215)](a){const Q=a156q;try{let b=[];const c=a156h[Q(0x1f3)](a);for(const d of c){const f=a156e['join'](a,d);b['push'](f),this[Q(0x23c)](f)&&(b=b[Q(0x20c)](this[Q(0x215)](f)));}return b;}catch(g){errorHandler('directoryEntries()',g),process[Q(0x247)](0x1);}}[a156q(0x213)](){const R=a156q,a=this[R(0x21d)]();return a!==''?!![]:![];}[a156q(0x22a)](a,b){const S=a156q;try{const c=new RegExp('^.*('+b+S(0x234),'mg'),d=a[S(0x1fe)](c);return d||[];}catch(f){errorHandler(S(0x212),f),process[S(0x247)](0x1);}}async[a156q(0x24a)](a,b){const T=a156q;try{if(a156h[T(0x1ea)](a)===![])return![];const c=await a156h[T(0x25a)][T(0x1d6)](a,'utf8');return c[T(0x226)](b);}catch(d){console[T(0x23b)](T(0x1dc)+d);throw d;}}[a156q(0x1df)](a){const U=a156q,b=a156e['join'](this[U(0x241)](),'.maka',GLOBAL_CACHE);try{const c=JSON['parse'](a156h['readFileSync'](b,U(0x1da)));return c[a]||null;}catch(d){return null;}}[a156q(0x203)](a,b){const V=a156q,c=a156e[V(0x1d0)](this[V(0x241)](),'.maka',GLOBAL_CACHE);try{const d=JSON['parse'](a156h[V(0x22f)](c,'utf-8'));d[a]=b,a156h['writeFileSync'](c,JSON[V(0x1de)](d));}catch(f){const g={[a]:b};a156h[V(0x254)](c,JSON[V(0x1de)](g));}}['getGlobalMakaDir'](){const W=a156q;return a156e[W(0x1d0)](this[W(0x241)](),'.maka');}async[a156q(0x21c)](a,b){const X=a156q;try{const c=JSON[X(0x1de)](a,null,0x2);await this['createFile']({'filePath':b,'data':c,'opts':{'force':!![]}});}catch(d){errorHandler(X(0x208),d),process['exit'](0x1);}}[a156q(0x200)](a){const Y=a156q,b={};for(const c in a){const d=c[Y(0x1e6)]('.');let e=b;while(d?.[Y(0x1e3)]>0x1){const f=d?.[Y(0x214)]();f&&(e=e[f]=e[f]||{});}e[d[0x0]]=a[c];}return b;}[a156q(0x260)](c,d){const Z=a156q;return Object[Z(0x255)](d)['forEach'](([e,f])=>c[e]=f&&typeof f===Z(0x1f1)?this[Z(0x260)](c[e]=c[e]||{},f):f),c;}[a156q(0x21e)](a){return new Promise((b,c)=>{const a0=a156d;a=a||{},a[a0(0x24f)]=a[a0(0x24f)]||'.';if(!a[a0(0x1db)]){const d=this[a0(0x211)](a['cwd']);if(!d)Log[a0(0x23b)]('Couldn\x27t\x20find\x20an\x20app\x20directory\x20to\x20init\x20npm\x20into.'),c();else{const f=Log[a0(0x24d)]();try{f['start']('Setting\x20up\x20the\x20npm\x20packages'),exec('npm\x20init\x20-f\x20',{'cwd':d},g=>{const a1=a0;g&&(Log[a1(0x23b)]('\x0a'+g[a1(0x1c2)]),c(),process[a1(0x247)](0x1)),f[a1(0x256)](),b();});}catch(g){Log[a0(0x23b)](g),f[a0(0x1c9)](),c();}}}});}async['checkPortInUse'](a){return new Promise((b,c)=>{const a2=a156d,d=a156f[a2(0x21b)]();d[a2(0x1c7)](a2(0x23b),async e=>{const a3=a2;if(e['code']===a3(0x25c)){const f=await Actions[a3(0x232)]('Port\x20'+a+'\x20is\x20already\x20in\x20use,\x20try\x20another?\x20[yN]',![]);!f&&(Log[a3(0x23b)](a3(0x204)+a+'\x20is\x20already\x20in\x20use,\x20exiting\x20...'),process[a3(0x247)](0x1)),Log[a3(0x248)](a3(0x204)+a+a3(0x25d)+(a+0x64)+a3(0x1c0)),b(!![]);}else c(e);}),d[a2(0x1c7)](a2(0x1ce),()=>{const a4=a2;d[a4(0x239)](),b(![]);}),d['listen'](a,a2(0x1c6));});}async['getAvailablePort'](a){const a5=a156q;while(await this[a5(0x224)](a)){a+=0x64;}return a;}async[a156q(0x20a)](a,b){const a7=a156q;function c(g){const a6=a156d,h=a156h[a6(0x1d5)](g);return h[a6(0x1cf)];}const d=process[a7(0x205)]===a7(0x20d)?'>':'📦',e=c(a),f=new Progress(e,a7(0x1c8),d);return new Promise((g,h)=>{const a8=a7;a156h[a8(0x1fb)](a)['on'](a8(0x25b),i=>{f['update'](i['length']);})[a8(0x257)](a156g['x']({'gzip':!![],'cwd':b}))['on'](a8(0x1f2),()=>{const a9=a8;f[a9(0x1c4)](),g();})['on']('error',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;
|
|
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
|
-
(function(a,b){var f=a159d,c=a();while(!![]){try{var d
|
|
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;
|
|
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
|
-
(function(a,b){var f=a161d,c=a();while(!![]){try{var d=parseInt(f(
|
|
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 a162x=a162d;(function(a,b){const u=a162d,c=a();while(!![]){try{const d=parseInt(u(0x1c3))/0x1*(-parseInt(u(0x1c7))/0x2)+parseInt(u(0x1b7))/0x3+-parseInt(u(0x17b))/0x4*(-parseInt(u(0x1be))/0x5)+-parseInt(u(0x166))/0x6+parseInt(u(0x1b5))/0x7+-parseInt(u(0x1e8))/0x8*(-parseInt(u(0x189))/0x9)+-parseInt(u(0x1ea))/0xa*(parseInt(u(0x19a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0x287c2));const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a162d;if(c){const e=c[v(0x183)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const w=a162d;return a162a[w(0x1ab)]()[w(0x1c5)]('(((.+)+)+)+$')[w(0x1ab)]()[w(0x1dc)](a162a)[w(0x1c5)](w(0x1c6));});a162a();import a162e from'path';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-0x157;let f=c[d];return f;},a162d(a,b);}const homeDir=a162g[a162x(0x185)](),errorHandler=(a,b)=>{const y=a162x;process['env'][y(0x1b9)]==='True'&&Log['error'](y(0x17f)+a),b&&console[y(0x159)](b);};function a162c(){const N=['apply','App\x20name?\x20[','homedir','test-packages','VERSION','--raw-logs','64485TsALdf','isFile','maybeProxyCommandToMeteor()','confirm','invokeMeteorCommand','\x09version:\x20\x270.0.1\x27,\x0a','0.0.0','mongo','\x09name:\x20\x27','mobile-config.js','login','cfg','inherit','dirname','warn','Mobile\x20app\x20configuration\x20written\x20to\x20','\x09id:\x20\x27com.meteor.maka.','22DMubmz','success','--port','//\x20https://docs.meteor.com/api/mobile-config.html\x0a','Meteor\x20release\x20version\x20set\x20to\x20','\x27,\x0a','appName','checkForMeteorVersionMismatch','platform','statSync','@echo\x20off\x0d\x0a\x22','finish','win32','Run\x20\x22maka\x20--help\x22\x20for\x20a\x20list\x20of\x20commands','run','\x20is\x20now\x20the\x20active\x20version','admin','toString',',\x20however\x20you\x20are\x20using\x20','bin','getGlobalMeteorVersion','setMeteorReleaseVersion()','getMeteorExePath','list','npm','symlinkSync','write','1770699eKUoVV','local','830388JoufIP','indexOf','MAKA_DEV','includes','--inspect','Patching\x20ios-sim\x20and\x20cordova','publish-release','3035fDOkpt','linkVersionAsCurrent','open','Meteor','maybeProxyCommandToMeteor','1sbbAqY','join','search','(((.+)+)+)+$','249008hLxqGy','existsSync','fsi','.meteor','--exclude-archs','getMeteorReleaseVersion','getAvailablePort','//\x20For\x20more\x20information\x20on\x20mobile\x20config,\x20visit:\x0a','replace','Meteor\x20','getMeteorReleaseVersion()','meteorRelease','pkg','--mobile-server','meteor','trim','BIND_IP','ios-sim@latest','utf8','slice','string','constructor','meteor.bat','authorized','Command\x20not\x20found','concat','configure-android','Error\x20creating\x20meteor\x20wrapper:\x20','getMakaProjectConfig','exit','message','readFileSync','update','264zsYBYu','\x20in\x20','2882610FUEoVf','PORT','getInstalledMeteorVersion','--ssl','writeFileSync','end','notice','error','instance','ios','checkForMeteorVersionMismatch()','publish','node','remove-platform','realpathSync','log','http://127.0.0.1:9999','findAppDirectory','splice','list-platforms','1060470mLcjps','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','This\x20project\x27s\x20version\x20is\x20at\x20','Could\x20not\x20remove\x20old\x20meteor\x20wrapper:\x20','mkdirSync','build','add-platform','shell','isSymbolicLink','A\x20mobile-config.js\x20already\x20exists,\x20not\x20over\x20writing','unlinkSync','installNpmPackage','meteor.cmd','Consider\x20updating\x20this\x20project,\x20or\x20installing\x20the\x20version\x20of\x20Meteor\x20using\x20\x27maka\x20install\x20meteor\x20--release\x20','argv','release','isMeteorInstalled','install-sdk','publish-for-arch','app','env','1828oIJIyz','releases','cordova@latest','lstatSync','Error\x20in\x20','A\x20mobile-config.js\x20file\x20already\x20exists,\x20overwrite?\x20[yN]','setMeteorReleaseVersion','Attempting\x20to\x20use\x20'];a162c=function(){return N;};return a162c();}export class MPI{static [a162x(0x15a)];[a162x(0x1c9)];[a162x(0x194)];[a162x(0x1d3)];[a162x(0x1d5)];[a162x(0x1d2)];constructor(a,b,c){const z=a162x;this[z(0x1c9)]=a,this[z(0x194)]=b,this['pkg']=c;const d=this[z(0x1b0)]();this[z(0x1d2)]=this[z(0x1cc)](),this[z(0x1d5)]=d;}static['getInstance'](a,b,c){const A=a162x;return!MPI[A(0x15a)]&&(MPI[A(0x15a)]=new MPI(a,b,c)),MPI[A(0x15a)];}[a162x(0x1b0)](){const B=a162x,a=process[B(0x1a2)]===B(0x1a6),b=a?B(0x172):'meteor';return a162e[B(0x1c4)](homeDir,B(0x1ca),'bin',b);}[a162x(0x176)](){const C=a162x;try{const a=this['getMeteorExePath']();console[C(0x161)](a);if(!a162f[C(0x1c8)](a))return![];const b=a162f[C(0x17e)](a);if(b[C(0x16e)]()){const c=a162f[C(0x160)](a);return a162f['existsSync'](c)&&a162f[C(0x1a3)](c)['isFile']();}return b[C(0x18a)]();}catch(d){return![];}}['setMeteorReleaseVersion'](a){const D=a162x;try{const b=a162e[D(0x1c4)](homeDir,D(0x1ca),D(0x187)),c=a162e[D(0x196)](b);!a162f[D(0x1c8)](c)&&a162f[D(0x16a)](c,{'recursive':!![]}),a162f[D(0x1ee)](b,a,'utf8'),Log[D(0x19b)](D(0x19e)+a+D(0x1e9)+b);}catch(d){errorHandler(D(0x1af),d),process['exit'](0x1);}}[a162x(0x1cc)](){const E=a162x;try{const a=a162e['join'](homeDir,'.meteor',E(0x187));if(a162f[E(0x1c8)](a)){const b=a162f['readFileSync'](a,E(0x1d9))[E(0x1d6)]();return b;}else return null;}catch(c){return errorHandler(E(0x1d1),c),null;}}async[a162x(0x1ae)](){const F=a162x;let a=this[F(0x1cc)]()||F(0x18f);try{a=execSync(this[F(0x1d5)]+'\x20--version',{'stdio':'ignore','cwd':this[F(0x1c9)][F(0x163)](),'env':{...process[F(0x17a)],'HTTP_PROXY':F(0x162),'HTTPS_PROXY':'http://127.0.0.1:9999'}})[F(0x1ab)]()['replace'](F(0x1c1),'')[F(0x1d6)]();}catch(c){}const b=a['split']('.')['length'];return b<0x3&&(a=a+'.0'),a;}[a162x(0x1a1)](){const G=a162x;try{const a=this['fsi'][G(0x163)](),b=a162e[G(0x1c4)](a,G(0x1ca),G(0x175));if(!a162f[G(0x1c8)](b))return![];const c=a162f[G(0x1e6)](b,G(0x1d9))[G(0x1d6)](),d=this[G(0x1cc)]();return c!==d;}catch(f){return errorHandler(G(0x15c),f),![];}}async[a162x(0x1c2)](){const H=a162x;try{const a=[H(0x1c0),H(0x1b2),H(0x1a8),H(0x1e7),'add','remove',H(0x1b1),H(0x16c),H(0x177),H(0x15f),H(0x165),H(0x1e1),H(0x16b),H(0x16d),H(0x190),'reset','logs',H(0x1de),'claim',H(0x193),'logout','whoami',H(0x186),H(0x1aa),'list-sites',H(0x1bd),'publish',H(0x178),H(0x1c5),'show',H(0x15e)],b=process[H(0x174)]['slice'](0x2),c=b[0x0],d=b[H(0x1da)](0x1);if(!a['includes'](c)){Log[H(0x159)](H(0x1df));throw Log[H(0x159)](H(0x1a7));}if(c==='add-platform'){const f=this[H(0x1c9)][H(0x163)](),g=this[H(0x194)][H(0x1e3)]();if(!g)throw MustBeInProjectError;const h=a162e[H(0x1c4)](f,H(0x192));let i=![];a162f['existsSync'](h)&&(i=await Actions[H(0x18c)](H(0x180),![]));if(typeof f===H(0x1db)){const j=this[H(0x1c9)]['isFile'](h);if(!j||i){const k=await Actions['ask'](H(0x184)+g['appName']+']')||g[H(0x1a0)],l=a162f['createWriteStream'](h,{'flags':'w'});l['on'](H(0x1c0),function(){const I=H;l[I(0x1b4)](I(0x1ce)),l[I(0x1b4)](I(0x19d)),l[I(0x1b4)]('App.info({\x0a'),l[I(0x1b4)](I(0x199)+pascalCase(g[I(0x1a0)])+I(0x19f)),l['write'](I(0x191)+k+'\x27,\x0a'),l[I(0x1b4)](I(0x18e)),l[I(0x1b4)]('});\x0a'),l[I(0x157)]();}),l['on'](H(0x1a5),function(){const J=H;Log[J(0x19b)](J(0x198)+h);});}else Log[H(0x197)](H(0x16f));}if(d[0x0]===H(0x15b)){const m=this['fsi']['findProjectDirectory']();if(typeof m===H(0x1db)){await this[H(0x18d)](c,d);const n=a162e[H(0x1c4)](m,H(0x179),'.meteor',H(0x1b6),'cordova-build','plugins','cordova-plugin-meteor-webapp');if(n){const o=[H(0x1d8),H(0x17d)];await this[H(0x1d3)][H(0x171)](o['join']('\x20'),{'cwd':f,'saveDev':!![],'msg':H(0x1bc)}),Log[H(0x158)](H(0x167));}}process[H(0x1e4)](0x0);}}await this[H(0x18d)](c,d),process[H(0x1e4)](0x0);}catch(p){errorHandler(H(0x18b),p),process[H(0x1e4)](0x1);}}[a162x(0x1ec)](a){const K=a162x,b=process[K(0x1a2)]===K(0x1a6),c=b?K(0x1dd):K(0x1d5);return a162e[K(0x1c4)](homeDir,K(0x1ca),'releases',a,'.meteor',c);}[a162x(0x1bf)](a){const L=a162x,b=a162e[L(0x1c4)](homeDir,L(0x1ca),L(0x1ad)),c=process['platform']===L(0x1a6),d=a162e[L(0x1c4)](homeDir,'.meteor',L(0x17c),a,L(0x1ca),c?L(0x1dd):'meteor');a162f['mkdirSync'](b,{'recursive':!![]});const e=a162e[L(0x1c4)](b,c?L(0x172):L(0x1d5));try{a162f[L(0x1c8)](e)&&a162f[L(0x170)](e);}catch(f){Log[L(0x197)](L(0x169)+f['message']);}try{if(c){const g=L(0x1a4)+d+'\x22\x20%*\x0d\x0a';a162f[L(0x1ee)](e,g,{'mode':0x1ed});}else a162f[L(0x1b3)](d,e);this[L(0x181)](a),Log[L(0x19b)](L(0x1d0)+a+L(0x1a9));}catch(h){Log['error'](L(0x1e2)+h[L(0x1e5)]);}}async[a162x(0x18d)](a,b){const M=a162x;try{const c=this[M(0x1c9)]['findProjectDirectory']();if(!c)throw new MustBeInProjectError();if(a==='run'){const f=b[M(0x1b8)]('-p');f>0x0&&(b[f]=M(0x19c));const g=b[M(0x1b8)](M(0x19c));if(f>0x0){let m=parseInt(b[f+0x1],0xa);m=await this[M(0x1c9)][M(0x1cd)](m),b[f+0x1]=m[M(0x1ab)]();}else{if(g>0x0){let n=parseInt(b[g+0x1],0xa);n=await this[M(0x1c9)]['getAvailablePort'](n),b[g+0x1]=n['toString']();}else{let o=parseInt('3000',0xa);o=await this['fsi'][M(0x1cd)](o),b=b['concat']([M(0x19c),o['toString']()]);}}const h=b[M(0x1b8)]('-r');h>0x0&&(b[h]=M(0x188));const i=b['indexOf']('-i');i>0x0&&(b[i]=M(0x1bb));const j=b[M(0x1b8)]('-x');j>0x0&&(b[j]=M(0x1cb));const k=b[M(0x1b8)]('-m');k>0x0&&(b[k]=M(0x1d4));const l=b[M(0x1b8)](M(0x1ed));l>0x0&&b[M(0x164)](l,0x1),process[M(0x17a)][M(0x1eb)]&&!b[M(0x1ba)]('--port')&&(b=b[M(0x1e0)]([M(0x19c),process['env'][M(0x1eb)]])),process[M(0x17a)][M(0x1d7)]&&!b[M(0x1ba)](M(0x19c))&&(b=b['concat']([M(0x19c),process[M(0x17a)][M(0x1d7)]]));}const d=[a][M(0x1e0)](b);if(this[M(0x1a1)]()){const p=this[M(0x1c9)][M(0x163)](),q=a162f[M(0x1e6)](a162e['join'](p,M(0x1ca),'release'),M(0x1d9))[M(0x1cf)]('METEOR@','')[M(0x1d6)](),r=this[M(0x1cc)]();try{Log[M(0x158)](M(0x182)+q),this[M(0x1bf)](q);}catch(s){Log['error'](M(0x168)+q+M(0x1ac)+r+'.'),Log[M(0x158)](M(0x173)+q+'\x27'),process[M(0x1e4)](0x0);}}a===M(0x15d)?execSync(this['meteor']+'\x20'+d[M(0x1c4)]('\x20'),{'stdio':M(0x195)}):execSync(this['meteor']+'\x20'+d[M(0x1c4)]('\x20'),{'stdio':'inherit','cwd':this[M(0x1c9)][M(0x163)]()});}catch(t){errorHandler('invokeMeteorCommand()',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);}}}
|