@maka/maka-cli 4.7.11 → 4.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +29 -29
- package/.mocharc.json +3 -3
- package/.vs/VSWorkspaceState.json +12 -0
- package/.vs/maka-cli-src/FileContentIndex/18ca123b-cf4e-4263-8cf0-ed1624e8e918.vsidx +0 -0
- package/.vs/maka-cli-src/FileContentIndex/69d2de39-b193-48d9-b520-96bdb73b7b61.vsidx +0 -0
- package/.vs/maka-cli-src/FileContentIndex/93947812-c77d-4667-aaed-3f9a0df8b484.vsidx +0 -0
- package/.vs/maka-cli-src/FileContentIndex/c4cbf57e-b360-4b2a-8b3d-fc8f800c195a.vsidx +0 -0
- package/.vs/maka-cli-src/FileContentIndex/c9d2ef23-4e6c-46eb-a405-3584022229ed.vsidx +0 -0
- package/.vs/maka-cli-src/config/applicationhost.config +1016 -0
- package/.vs/maka-cli-src/v17/.wsuo +0 -0
- package/.vs/maka-cli-src/v17/workspaceFileList.bin +0 -0
- package/.vs/slnx.sqlite +0 -0
- package/README.md +21 -21
- package/bundle/obf/package.json +127 -127
- package/bundle/obf/src/README.md +21 -21
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/api/api.js +11 -11
- package/bundle/obf/src/templates/meteor/api/api.js.ts +11 -11
- package/bundle/obf/src/templates/meteor/api/collection.js +86 -86
- package/bundle/obf/src/templates/meteor/api/collection.js.ts +94 -94
- package/bundle/obf/src/templates/meteor/api/fixtures.js +23 -23
- package/bundle/obf/src/templates/meteor/api/fixtures.js.ts +23 -23
- package/bundle/obf/src/templates/meteor/api/methods.js +136 -136
- package/bundle/obf/src/templates/meteor/api/methods.js.ts +137 -137
- package/bundle/obf/src/templates/meteor/api/publications.js +31 -31
- package/bundle/obf/src/templates/meteor/api/publications.js.ts +31 -31
- package/bundle/obf/src/templates/meteor/api/register-api.js +15 -15
- package/bundle/obf/src/templates/meteor/api/register-api.js.ts +15 -15
- package/bundle/obf/src/templates/meteor/api/resolvers.js +9 -9
- package/bundle/obf/src/templates/meteor/api/resolvers.js.ts +9 -9
- package/bundle/obf/src/templates/meteor/api/tests.js +1 -1
- package/bundle/obf/src/templates/meteor/api/tests.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/api/typeDefs.js +5 -5
- package/bundle/obf/src/templates/meteor/api/typeDefs.js.ts +5 -5
- package/bundle/obf/src/templates/meteor/app/client/body.html +3 -3
- package/bundle/obf/src/templates/meteor/app/client/head.html +15 -15
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js +9 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.jsx +9 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.ts +9 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.tsx +9 -9
- package/bundle/obf/src/templates/meteor/app/client/main.js +13 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.jsx +13 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.ts +13 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.tsx +13 -13
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js +20 -20
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +117 -117
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.ts +20 -20
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +118 -118
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js +39 -39
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.jsx +48 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.ts +24 -24
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +48 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js +9 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.jsx +9 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.ts +9 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.tsx +9 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js +1 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +21 -21
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +21 -21
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +48 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +48 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js +1 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +152 -152
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +152 -152
- package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js +24 -24
- package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js.ts +24 -24
- package/bundle/obf/src/templates/meteor/app/lib/main.js +1 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.jsx +1 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.tsx +1 -1
- package/bundle/obf/src/templates/meteor/app/maka.d.ts +160 -160
- package/bundle/obf/src/templates/meteor/app/meteor.d.ts +955 -955
- package/bundle/obf/src/templates/meteor/app/public/manifest.json +27 -27
- package/bundle/obf/src/templates/meteor/app/public/sw.js +30 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.jsx +30 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.ts +30 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.tsx +30 -30
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js +179 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.jsx +179 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.ts +179 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.tsx +179 -179
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js +9 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.jsx +9 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.ts +9 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.tsx +9 -9
- package/bundle/obf/src/templates/meteor/app/server/main.js +11 -11
- package/bundle/obf/src/templates/meteor/app/server/main.js.jsx +11 -11
- package/bundle/obf/src/templates/meteor/app/server/main.js.ts +11 -11
- package/bundle/obf/src/templates/meteor/app/server/main.js.tsx +11 -11
- package/bundle/obf/src/templates/meteor/app/tsconfig.json +40 -40
- package/bundle/obf/src/templates/meteor/collection/collection.js +85 -85
- package/bundle/obf/src/templates/meteor/collection/collection.js.ts +97 -97
- package/bundle/obf/src/templates/meteor/collection/tests.js +27 -27
- package/bundle/obf/src/templates/meteor/collection/tests.js.ts +27 -27
- package/bundle/obf/src/templates/meteor/config/docker-compose.yaml +17 -17
- package/bundle/obf/src/templates/meteor/config/pm2.config.js +25 -25
- package/bundle/obf/src/templates/meteor/config/process.env +5 -5
- package/bundle/obf/src/templates/meteor/config/settings.json +11 -11
- package/bundle/obf/src/templates/meteor/config/ssh.json +6 -6
- package/bundle/obf/src/templates/meteor/dbc/config.js +70 -70
- package/bundle/obf/src/templates/meteor/dbc/config.js.ts +70 -70
- package/bundle/obf/src/templates/meteor/dbc/conn.js +37 -37
- package/bundle/obf/src/templates/meteor/dbc/conn.js.ts +37 -37
- package/bundle/obf/src/templates/meteor/dbc/register-dbc.js +3 -3
- package/bundle/obf/src/templates/meteor/dbc/register-dbc.js.ts +3 -3
- package/bundle/obf/src/templates/meteor/method/method.js +48 -48
- package/bundle/obf/src/templates/meteor/method/method.js.ts +48 -48
- package/bundle/obf/src/templates/meteor/package/package.js +37 -37
- package/bundle/obf/src/templates/meteor/package/package.js.jsx +37 -37
- package/bundle/obf/src/templates/meteor/package/package.js.ts +36 -36
- package/bundle/obf/src/templates/meteor/package/package.js.tsx +37 -37
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.jsx +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.ts +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.tsx +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.jsx +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.ts +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.tsx +5 -5
- package/bundle/obf/src/templates/meteor/project/.maka/config.json +29 -29
- package/bundle/obf/src/templates/meteor/project/README.md +1 -1
- package/bundle/obf/src/templates/meteor/project/build/README +4 -4
- package/bundle/obf/src/templates/meteor/project/gitignore +7 -7
- package/bundle/obf/src/templates/meteor/project/package.json +20 -20
- package/bundle/obf/src/templates/meteor/publish/publish.js +3 -3
- package/bundle/obf/src/templates/meteor/publish/publish.js.jsx +3 -3
- package/bundle/obf/src/templates/meteor/publish/publish.js.tsx +3 -3
- package/bundle/obf/src/templates/meteor/publish/publish.ts +3 -3
- package/bundle/obf/src/templates/meteor/service/logger/logger.js +27 -27
- package/bundle/obf/src/templates/meteor/service/logger/logger.js.ts +27 -27
- package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css +5 -5
- package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css.less +5 -5
- package/bundle/obf/src/templates/meteor/template/template-tests.js +1 -1
- package/bundle/obf/src/templates/meteor/template/template-tests.js.jsx +55 -55
- package/bundle/obf/src/templates/meteor/template/template-tests.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/template/template-tests.js.tsx +55 -55
- package/bundle/obf/src/templates/meteor/template/template.css +3 -3
- package/bundle/obf/src/templates/meteor/template/template.css.less +3 -3
- package/bundle/obf/src/templates/meteor/template/template.css.scss +3 -3
- package/bundle/obf/src/templates/meteor/template/template.html +5 -5
- package/bundle/obf/src/templates/meteor/template/template.js +20 -20
- package/bundle/obf/src/templates/meteor/template/template.js.jsx +77 -77
- package/bundle/obf/src/templates/meteor/template/template.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/template/template.js.tsx +89 -89
- package/bundle/obf/src/templates/react/component/component.css +6 -6
- package/bundle/obf/src/templates/react/component/component.css.less +6 -6
- package/bundle/obf/src/templates/react/component/component.css.scss +3 -3
- package/bundle/obf/src/templates/react/component/component.js.jsx +63 -63
- package/bundle/obf/src/templates/react/component/component.js.tsx +68 -68
- package/bundle/obf/src/templates/react/hook/hook.css +3 -3
- package/bundle/obf/src/templates/react/hook/hook.css.scss +3 -3
- package/bundle/obf/src/templates/react/hook/hook.js +1 -1
- package/bundle/obf/src/templates/react/hook/hook.js.jsx +24 -24
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +23 -23
- package/bundle/obf/src/templates/react/kit/esri/map/basic-map.js.jsx +27 -27
- package/bundle/obf/src/templates/react/kit/esri/map/basic-map.js.tsx +29 -29
- package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.jsx +41 -41
- package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.tsx +40 -40
- package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.jsx +118 -118
- package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.tsx +116 -116
- package/bundle/obf/src/templates/react/route/route.js +8 -8
- package/bundle/obf/src/templates/react/route/route.js.jsx +8 -8
- package/bundle/obf/src/templates/react/route/route.js.ts +8 -8
- package/bundle/obf/src/templates/react/route/route.js.tsx +8 -8
- package/bundle/obf/src/templates/react/test/test.js +1 -1
- package/bundle/obf/src/templates/react/test/test.js.jsx +41 -41
- package/bundle/obf/src/templates/react/test/test.js.ts +1 -1
- package/bundle/obf/src/templates/react/test/test.js.tsx +41 -41
- package/bundle/obf/src/templates/service/docker/Dockerfile +54 -54
- package/bundle/obf/src/templates/service/eslint/eslintrc.json +33 -33
- package/bundle/obf/src/templates/service/i18n/i18n.js +33 -33
- package/bundle/obf/src/templates/service/i18n/i18n.js.ts +33 -33
- package/bundle/obf/src/templates/service/i18n/locales.js +3 -3
- package/bundle/obf/src/templates/service/i18n/locales.js.ts +3 -3
- package/bundle/obf/src/templates/service/openssl/openssl.conf +22 -22
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/jest.config.js +11 -11
- package/obfuscator.json +29 -29
- package/package.json +127 -127
- package/tsconfig.json +23 -23
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x79;let f=c[d];return f;},a82d(a,b);}const a82q=a82d;(function(a,b){const n=a82d,c=a();while(!![]){try{const d=-parseInt(n(0x83))/0x1*(parseInt(n(0x94))/0x2)+-parseInt(n(0x79))/0x3*(-parseInt(n(0x8e))/0x4)+parseInt(n(0x7a))/0x5*(parseInt(n(0x8f))/0x6)+-parseInt(n(0x84))/0x7+-parseInt(n(0x7c))/0x8+-parseInt(n(0x7e))/0x9*(-parseInt(n(0x86))/0xa)+-parseInt(n(0x99))/0xb*(-parseInt(n(0xa1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0xa519a));const a82b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a82d;if(c){const e=c[o(0xa3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){const p=a82d;return a82a['toString']()[p(0x87)](p(0x88))[p(0x7d)]()[p(0x95)](a82a)[p(0x87)](p(0x88));});a82a();import a82e from'fs';import a82f from'path';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{SSH}from'../tools/ssh/ssh.class.js';function a82c(){const s=['16BRzfIh','8960042lmHmIg','uname\x20-a','820YVkrSQ','search','(((.+)+)+)+$','exit','create','join','scp','~/pm2.config.js','4pBgRHM','6THRAvC','readFileSync','parse','fsi','Remote\x20host\x20connection\x20successful','118506FfZRiP','constructor','maka\x20reconfig\x20--env\x20prod','Checking\x20remote\x20host\x20availability','ping','242xLpgCM','error','pm2.config.js','echo\x20\x22\x22\x20&&\x20pm2\x20start\x20pm2.config.js\x20&&\x20echo\x20\x22\x22\x20||\x20echo\x20\x22Cound\x20not\x20find\x20PM2,\x20have\x20you\x20deployed\x20the\x20app\x20yet?\x22','env','_keys','ssh.json','assign','767640sHMUkc','success','apply','2975190jikcfi','614615hJxiHH','ssh','6813656aHIxul','toString','135441FbJZhZ','maka\x20reconfig','getAppConfigPath','existsSync','notice'];a82c=function(){return s;};return a82c();}Command[a82q(0x8a)]({'name':'reconfig','validOpts':[''],'requiredOpts':['env'],'mustBeInMakaProject':!![],'usage':a82q(0x7f),'isPro':!![],'shortDesc':'Reconfigure\x20your\x20deployed\x20applications','description':'\x0a\x20\x20If\x20using\x20a\x20remote\x20server\x20(Ubuntu),\x20send\x20up\x20the\x20settings.json\x0a\x20\x20and\x20pm2.config.js\x20files\x20and\x20reloads\x20the\x20PM2\x20service.\x0a\x20\x20','examples':[a82q(0x96)]},async function(a,b){const r=a82q;try{const c=this[r(0x92)][r(0x80)](b[r(0x9d)]),d=a82f[r(0x8b)](c,r(0x9f)),f=a82e[r(0x90)](d)[r(0x7d)](),g=JSON[r(0x91)](f);Object[r(0xa0)](g,{'env':c}),Log[r(0x82)](r(0x97));const h=SSH[r(0x98)](r(0x85),g);if(!h)throw'Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.';if(h)Log[r(0xa2)](r(0x93));const i=a82f[r(0x8b)](c,r(0x9e),'ses.json');if(a82e[r(0x81)](i)){const l={'source':i,'dest':'~/ses.json','verbose':!![]};SSH[r(0x8c)](l,{...g});}const j=a82f[r(0x8b)](c,r(0x9b));SSH[r(0x8c)]({'source':j,'dest':r(0x8d),'verbose':!![]},{...g});const k=a82f[r(0x8b)](c,'settings.json');SSH['scp']({'source':k,'dest':'~/settings.json','verbose':!![]},{...g}),SSH['sshSync']('pm2\x20delete\x20all',g),await SSH[r(0x7b)](r(0x9c),{...g},{'verbose':!![]});}catch(m){console[r(0x9a)](m),process[r(0x89)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a85d,c=a();while(!![]){try{var d=parseInt(f(0x111))/0x1*(parseInt(f(0x10d))/0x2)+parseInt(f(0x114))/0x3+parseInt(f(0x10f))/0x4*(-parseInt(f(0x107))/0x5)+-parseInt(f(0x109))/0x6*(parseInt(f(0x10a))/0x7)+parseInt(f(0x113))/0x8*(parseInt(f(0x104))/0x9)+parseInt(f(0x10c))/0xa*(parseInt(f(0x10b))/0xb)+-parseInt(f(0x112))/0xc*(parseInt(f(0x10e))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0x6689f));function a85d(a,b){var c=a85c();return a85d=function(d,e){d=d-0x104;var f=c[d];return f;},a85d(a,b);}var a85b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a85d;if(c){var e=c[g(0x108)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){var h=a85d;return a85a[h(0x110)]()[h(0x106)](h(0x105))[h(0x110)]()['constructor'](a85a)[h(0x106)](h(0x105));});a85a();import'./run.command.js';import'./docker.sub.cmd.js';function a85c(){var i=['(((.+)+)+)+$','search','20TmnEPk','apply','2542602uVYmnY','7gPFNRt','600908Qcvbnx','80aXNySB','338bExhxI','767FUvaHD','206452bQmnHA','toString','19sUINdH','125748LiHCjL','2196328jcGBcw','2037486SLkjDT','18qfdUQt'];a85c=function(){return i;};return a85c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a83m=a83d;(function(a,b){const j=a83d,c=a();while(!![]){try{const d=parseInt(j(0x198))/0x1+-parseInt(j(0x194))/0x2+-parseInt(j(0x193))/0x3*(parseInt(j(0x18d))/0x4)+-parseInt(j(0x18b))/0x5+parseInt(j(0x187))/0x6+parseInt(j(0x19d))/0x7*(-parseInt(j(0x18c))/0x8)+-parseInt(j(0x197))/0x9*(-parseInt(j(0x189))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0x753ce));const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a83d;if(c){const e=c[k(0x19c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const l=a83d;return a83a[l(0x19b)]()[l(0x190)](l(0x1a3))['toString']()[l(0x1a6)](a83a)[l(0x190)](l(0x1a3));});a83a();import a83e from'./run.command.js';import{execSync}from'child_process';import a83f from'path';import a83g from'fs';import a83h from'open';import{Log}from'../../tools/log/log.class.js';function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x185;let f=c[d];return f;},a83d(a,b);}function a83c(){const o=['exit','getMakaProjectConfig','toString','apply','7bhPvSV','existsSync','docker-compose.yaml','docker','config/docker-compose.yaml','notice','(((.+)+)+)+$','\x20up\x20--remove-orphans','createFile','constructor','docker-compose\x20--project-directory\x20','create','3197670iCJnaz','Docker\x20Compose\x20Path:\x20','10nXctRt','maka\x20run\x20docker','1907565JUaoQg','307960dnVLBs','4764VxxvoP','http://localhost','getAppConfigPath','search','Run\x20your\x20application\x20in\x20a\x20Docker\x20container','fsi','1638KGtyCO','1188514JQGRyV','inherit','appName','7269813RNMNbN','804055JyAGOy'];a83c=function(){return o;};return a83c();}import{Command}from'../../command.js';import{paramCase}from'change-case';Command[a83m(0x186)]({'name':'docker','aliases':['d'],'shortDesc':a83m(0x191),'description':'\x0a\x20\x20Run\x20your\x20application\x20in\x20a\x20Docker\x20container.\x20\x20Docker\x20Desktop\x20or\x20Colmia\x20is\x20required.\x0a\x0a\x20\x20Colima\x20is\x20a\x20great\x20alternative\x20to\x20Docker\x20Desktop,\x20and\x20it\x20is\x20free!\x0a\x20\x20Colima:\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20A\x20docker-compose.yml\x20file\x20(location\x20defaulted\x20to\x20the\x20\x22config/docker\x22\x20folder)\x0a\x20\x20is\x20used\x20to\x20startup\x20mongo\x20and\x20load\x20the\x20built\x20image\x27\x0a\x20\x20','usage':a83m(0x18a),'isPro':!![],'validOpts':['']},async function(){const n=a83m;try{const a=this[n(0x192)][n(0x19a)](),b=this[n(0x192)][n(0x18f)](n(0x1a0)),c=a83f['join'](b,n(0x19f)),d=a83f['join'](b,'pm2.config.js');Log[n(0x1a2)]('PM2\x20Config\x20File:\x20'+d),Log['notice'](n(0x188)+c);if(!a83g[n(0x19e)](c)){const f={'app':a[n(0x196)],'appFileCase':paramCase(a[n(0x196)])},g=this[n(0x192)]['templateContent']({'srcPath':n(0x1a1),'context':f})+'\x0a';this[n(0x192)][n(0x1a5)]({'filePath':c,'data':g});}try{await a83h(n(0x18e));}catch(h){}execSync(n(0x185)+b+n(0x1a4),{'stdio':n(0x195)});}catch(i){process[n(0x199)](0x1);}},a83e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a84d(a,b){const c=a84c();return a84d=function(d,e){d=d-0x97;let f=c[d];return f;},a84d(a,b);}const a84t=a84d;(function(a,b){const p=a84d,c=a();while(!![]){try{const d=parseInt(p(0xc3))/0x1+-parseInt(p(0x9d))/0x2+parseInt(p(0xcd))/0x3+-parseInt(p(0xab))/0x4*(parseInt(p(0xac))/0x5)+parseInt(p(0xc2))/0x6+parseInt(p(0x99))/0x7+parseInt(p(0xa1))/0x8*(-parseInt(p(0xa7))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0xa9ec3));function a84c(){const w=['604570ZcmcSh','isDirectory','warn','port','61064EkmThz','split','toString','argv','cordova-build','createFile','621DKiYqG','Run\x20your\x20Meteor\x20application','--exclude-archs','exit','23116XWRCKz','295qkltir','local','invokeMeteorCommand','join','verbose','notice','concat','forEach','Please\x20provide\x20a\x20URL\x20where\x20your\x20mobile\x20app\x20should\x20connect\x20to\x20your\x20server\x20(e.g.,\x20-m\x20|\x20--mobile-server=https://example-server.com)','search','settings.json','length','process.env','push','excludeArchs','development','Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20','isFile','filter','app','fsi','splice','132528sFZgAr','199213QieZCA','allowIncompatibleUpdate','info','create','rawLogs','checkMeteorPackage','boolean','--production','getAppConfigPath','.meteor','2884956dbtWQh','env','run','settings','error','apply','mobileServer','openSync','android','findProjectDirectory','config','inspect','ios','4780811zGvyYh','Meteor\x20Settings:\x20','(((.+)+)+)+$','--settings'];a84c=function(){return w;};return a84c();}const a84b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a84d;if(c){const e=c[q(0xd2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){const r=a84d;return a84a[r(0xa3)]()[r(0xb5)](r(0x9b))[r(0xa3)]()['constructor'](a84a)[r(0xb5)](r(0x9b));});a84a();import a84e from'path';import a84f from'fs';import a84g from'dotenv';import{rimraf}from'rimraf';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import a84h from'open';const syncSource=function(a){const s=a84d;a84f[s(0xd4)](a,'r'),a84g[s(0xd7)]({'path':a});},Run=Command[a84t(0xc6)]({'name':a84t(0xcf),'mustBeInMakaProject':!![],'shortDesc':a84t(0xa8),'description':'\x0a\x20\x20maka\x20run\x0a\x20\x20-e\x20|\x20--env\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20target\x20environment.\x20\x20Will\x20automatically\x20pull\x20in\x20the\x20meteor\x20settings\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file\x20(settings.json)\x20and\x20any\x20environment\x20options\x20that\x20have\x20been\x20enabled.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Defaults\x20to\x20the\x20development\x20(dev)\x20environment.\x0a\x0a\x20\x20-r\x20|\x20--raw-logs\x20\x20\x20\x20\x20\x20\x20Only\x20output\x20the\x20meteor\x20logs\x20without\x20the\x20timestamp.\x0a\x0a\x20\x20-p\x20|\x20--port\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20port\x20to\x20run\x20the\x20meteor\x20server\x20on.\x20Defaults\x20to\x20port\x203000.\x0a\x0a\x20\x20-i\x20|\x20--inspect\x20\x20\x20\x20\x20\x20\x20\x20Tells\x20the\x20meteor\x20server\x20to\x20run\x20nodejs\x20in\x20debug\x20mode.\x20Starts\x20a\x20debug\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20which\x20can\x20be\x20accessed\x20by\x20Chrome\x20Dev\x20Tools\x20or\x20another\x20debug\x20terminal.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default\x20port\x20is\x209229.\x0a\x0a\x20\x20-m\x20|\x20--mobile-server\x20\x20Specify\x20a\x20different\x20backend\x20server\x20to\x20connect\x20to.\x20\x20Mainly\x20used\x20when\x20running\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mobile\x20app\x20mode\x20with\x20Cordova.\x0a\x0a\x20\x20-x\x20|\x20--exclude-archs\x20\x20Don\x27t\x20create\x20bundles\x20for\x20certain\x20web\x20architectures\x20(comma\x20separated,\x20for\x20example:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--exclude-archs\x20\x22web.browser.legacy,\x20web.cordova\x22)\x0a\x0a\x20\x20--production\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Runs\x20the\x20application\x20in\x20production\x20mode;\x20minifies\x20and\x20bundles\x20all\x20files\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20removes\x20development\x20packages.\x0a\x20\x20','validOpts':[a84t(0xce),a84t(0xc7),a84t(0xa0),a84t(0x97),'mobileServer',a84t(0xb0),a84t(0xc4),'extraPackages','x','excludeArchs','production','ci']},async function(a,b){const u=a84t;try{await this[u(0xc0)][u(0xc8)]('autoupdate',{'shouldInstall':!![]});const c=a[0x0];if(c==='ios'){const l=this[u(0xc0)][u(0xd6)](),m=a84e[u(0xaf)](l,u(0xbf),u(0xcc),u(0xad),u(0xa5));this['fsi'][u(0x9e)](m)&&await rimraf(m);}!b[u(0xba)]&&!b['x']&&(a=a[u(0xb2)]([u(0xa9),'web.browser.legacy']));if(b[u(0xd3)]&&typeof b['mobileServer']===u(0xc9))throw u(0xb4);const d=b[u(0xce)]?b[u(0xce)]:u(0xbb),f=this['fsi'][u(0xcb)](d),g=a84e[u(0xaf)](f,u(0xb8));let h=a84e['join'](f,'settings.json');b['settings']?h=b[u(0xd0)]:h=a84e[u(0xaf)](f,u(0xb6));this[u(0xc0)][u(0xbd)](g)?(Log['notice']('Node\x20Env\x20Config:\x20'+g),syncSource(g)):(Log[u(0xc5)](u(0xbc)+g),this[u(0xc0)][u(0xa6)]({'filePath':g,'data':''}));this[u(0xc0)][u(0xbd)](h)?(Log[u(0xb1)](u(0x9a)+h),a=a[u(0xb2)]([u(0x9c),h])):Log[u(0x9f)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+h);const i=f[u(0xa2)](a84e['sep']),j=i[i[u(0xb7)]-0x1];j==='production'&&a[u(0xb9)](u(0xca));const k=process[u(0xa4)]['slice'](0x2)[u(0xbe)](n=>n!==u(0xcf))[u(0xbe)](n=>n!==a[0x0]);k[u(0xb3)]((n,o)=>{const v=u;n==='--env'&&k['splice'](o,0x2),n==='-e'&&k[v(0xc1)](o,0x2);});try{c!==u(0x98)&&c!==u(0xd5)&&await a84h('http://localhost:'+(b[u(0xa0)]||0xbb8));}catch(n){}this[u(0xc0)][u(0xae)](u(0xcf),a[u(0xb2)](k));}catch(o){Log[u(0xd1)](o),process[u(0xaa)](0x1);}});export default Run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a89d,c=a();while(!![]){try{var d=-parseInt(f(0x11c))/0x1*(-parseInt(f(0x117))/0x2)+parseInt(f(0x119))/0x3+parseInt(f(0x115))/0x4+-parseInt(f(0x116))/0x5+-parseInt(f(0x11e))/0x6*(parseInt(f(0x11a))/0x7)+parseInt(f(0x118))/0x8+-parseInt(f(0x112))/0x9*(-parseInt(f(0x11f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0xa346b));function a89c(){var i=['4553108mLLqRP','6303600CCFWkl','76cOEKJz','7286096QiNEtm','1211970hQHmJy','7CWjVDU','search','194qoFtgR','constructor','4184394eYYcdk','554990EryJPk','apply','27ruDJCU','toString','(((.+)+)+)+$'];a89c=function(){return i;};return a89c();}function a89d(a,b){var c=a89c();return a89d=function(d,e){d=d-0x111;var f=c[d];return f;},a89d(a,b);}var a89b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a89d;if(c){var e=c[g(0x111)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){var h=a89d;return a89a['toString']()['search'](h(0x114))[h(0x113)]()[h(0x11d)](a89a)[h(0x11b)](h(0x114));});a89a();import'./set.command.js';import'./global.sub.cmd.js';import'./local.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a86k=a86d;(function(a,b){const h=a86d,c=a();while(!![]){try{const d=-parseInt(h(0x97))/0x1+parseInt(h(0x80))/0x2*(parseInt(h(0x99))/0x3)+-parseInt(h(0x8d))/0x4*(-parseInt(h(0x7c))/0x5)+-parseInt(h(0x9b))/0x6*(-parseInt(h(0x83))/0x7)+-parseInt(h(0x79))/0x8+parseInt(h(0x87))/0x9*(parseInt(h(0x9a))/0xa)+-parseInt(h(0xa1))/0xb*(parseInt(h(0x93))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0x1e536));function a86c(){const m=['constructor','471348YUOTme','fsi','Set\x20global\x20Maka-CLI\x20settings','63VSUyqG','global-config','maka\x20set:gc\x20--insecure\x20<path>','pallet','54IvLEcS','help','isFile','disallowInsecure','resolve','isDirectory','4eUZxoH','workspace','boolean','Set\x20workspace:\x20','search','Set\x20OpenAI\x20Key:\x20','3552LlMoYQ','Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.','light','exit','154273XaXayB','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','3uxxRZa','300210eJeQqN','9036EbiTmJ','Set\x20color\x20pallet\x20to:\x20','success','apply','Set\x20CA\x20Cert\x20Path:\x20','dark','8338qYUkNG','error','allowInsecure','cacert','openai','(((.+)+)+)+$','setGlobalConfig','maka\x20set:gc\x20--workspace\x20<path>','1096816QeFkUn','Could\x20not\x20find\x20directory','toString','1053015OBjQjf','One\x20or\x20the\x20other\x20buddy','maka\x20set:global-config'];a86c=function(){return m;};return a86c();}const a86b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a86d;if(c){const e=c[i(0x9e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a86a=a86b(this,function(){const j=a86d;return a86a[j(0x7b)]()['search'](j(0x76))[j(0x7b)]()[j(0x7f)](a86a)[j(0x91)](j(0x76));});function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0x75;let f=c[d];return f;},a86d(a,b);}a86a();import a86e from'path';import a86f from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a86k(0x84),'usage':a86k(0x7e),'aliases':['gc'],'maxOptsLength':0x3,'validOpts':[{'name':a86k(0xa4),'boolFlag':![]},{'name':a86k(0xa3),'boolFlag':!![]},{'name':'disallowInsecure','boolFlag':!![]},{'name':a86k(0x8e),'boolFlag':![]},{'name':'openai','boolFlag':![]},{'name':a86k(0x88),'boolFlag':!![]},{'name':'pallet','values':[a86k(0x95),a86k(0xa0)]}],'shortDesc':a86k(0x82),'description':'\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x0a\x20\x20There\x20are\x20occasions\x20where\x20your\x20network\x20may\x20need\x20an\x20intermediate\x20certificate\x0a\x20\x20to\x20allow\x20connections\x20outside.\x20\x20You\x20may\x20set\x20your\x20certificate\x20path\x20using\x20the\x20command:\x0a\x0a\x20\x20maka\x20set:gc\x20--cacert\x0a\x20\x20','examples':['maka\x20set:global-config\x20--cacert\x20<path>',a86k(0x85),a86k(0x78)]},async function(a,b){const l=a86k;try{if(b[l(0xa4)]){if(this['fsi'][l(0x89)](b[l(0xa4)]))await this[l(0x81)][l(0x77)]({'cert':b[l(0xa4)]}),Log['success'](l(0x9f)+b[l(0xa4)]);else{const c=typeof b[l(0xa4)]===l(0x8f)?l(0x94):l(0x98)+b['cacert'];throw Log[l(0xa2)](c);}}if(b[l(0x8e)]){const d=this[l(0x81)][l(0x8c)](b[l(0x8e)]);if(d)await this[l(0x81)][l(0x77)]({'workspace':a86e[l(0x8b)](b['workspace'])}),Log['success'](l(0x90)+a86e[l(0x8b)](b[l(0x8e)]));else throw Log[l(0xa2)](l(0x7a));}b[l(0x75)]&&(await this[l(0x81)][l(0x77)]({'openai':b[l(0x75)]}),Log[l(0x9d)](l(0x92)+b[l(0x75)]));b[l(0x86)]&&(await this[l(0x81)][l(0x77)]({'pallet':b['pallet']}),Log[l(0x9d)](l(0x9c)+b[l(0x86)]));if(b[l(0xa3)]){if(b['allowInsecure']&&b[l(0x8a)])throw Log[l(0xa2)](l(0x7d));let f=b['allowInsecure'];b[l(0x8a)]&&(f=![]),await this[l(0x81)]['setGlobalConfig']({'allowInsecure':f}),Log['success']('Set\x20allowInsecure:\x20'+f);}process[l(0x96)](0x0);}catch(g){console['error'](g),process[l(0x96)](0x0);}},a86f);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a87c(){var j=['(((.+)+)+)+$','77wTTGTi','maka\x20set:local-config','Sorry,\x20not\x20implemented\x20yet','2029035FfYdSg','local-config','6289479VJDgLt','2YAqPeC','1057440gXGgby','create','search','597012avjzum','constructor','2615550QgsRRJ','205222HHwACE','notice','273640ApAMVu','toString'];a87c=function(){return j;};return a87c();}var a87h=a87d;(function(a,b){var f=a87d,c=a();while(!![]){try{var d=-parseInt(f(0x13c))/0x1*(parseInt(f(0x147))/0x2)+parseInt(f(0x14b))/0x3+-parseInt(f(0x148))/0x4+parseInt(f(0x144))/0x5+parseInt(f(0x13b))/0x6+parseInt(f(0x141))/0x7*(parseInt(f(0x13e))/0x8)+-parseInt(f(0x146))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0x3cb02));var a87b=(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;};}()),a87a=a87b(this,function(){var g=a87d;return a87a[g(0x13f)]()[g(0x14a)](g(0x140))[g(0x13f)]()[g(0x13a)](a87a)[g(0x14a)](g(0x140));});a87a();import a87e from'./set.command.js';import{Command}from'../../command.js';function a87d(a,b){var c=a87c();return a87d=function(d,e){d=d-0x13a;var f=c[d];return f;},a87d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a87h(0x149)]({'name':a87h(0x145),'usage':a87h(0x142),'examples':[],'aliases':['lc'],'mustBeInMakaProject':!![],'shortDesc':'Set\x20local\x20maka\x20app\x20settings','validOpts':[],'description':'\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20'},async function(){var i=a87h;Log[i(0x13d)](i(0x143));},a87e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88i=a88d;(function(a,b){const f=a88d,c=a();while(!![]){try{const d=-parseInt(f(0xba))/0x1+-parseInt(f(0xaf))/0x2*(parseInt(f(0xb8))/0x3)+parseInt(f(0xbc))/0x4*(parseInt(f(0xbf))/0x5)+parseInt(f(0xbb))/0x6*(parseInt(f(0xb4))/0x7)+-parseInt(f(0xbd))/0x8*(parseInt(f(0xc0))/0x9)+parseInt(f(0xc2))/0xa+-parseInt(f(0xb9))/0xb*(-parseInt(f(0xb6))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0xa8da7));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a88d;if(c){const e=c[g(0xb0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const h=a88d;return a88a[h(0xb3)]()[h(0xb2)](h(0xb5))[h(0xb3)]()[h(0xb7)](a88a)[h(0xb2)]('(((.+)+)+)+$');});function a88c(){const k=['Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','4190900vLlUuF','create','98YBAFhu','apply','set','search','toString','670481MULwKb','(((.+)+)+)+$','9187044zyIiHS','constructor','2130JFZDnZ','11QRrkcR','1308025bxJnYh','18NnlZvq','19192YVsKhi','16FEXeEo','findSubCommand','1130gYjLkH','2348712xnFhdP'];a88c=function(){return k;};return a88c();}a88a();import{Command}from'../../command.js';function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0xae;let f=c[d];return f;},a88d(a,b);}const SetCommand=Command[a88i(0xae)]({'name':a88i(0xb1),'usage':'maka\x20set:<sub-command>','shortDesc':a88i(0xc1),'description':'\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x20\x20','validOpts':[]},async function(a,b){const j=a88i,c=a[0x0],d=this[j(0xbe)](c);d&&this['runSubCommand'](c,a,b);});export default SetCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90m=a90d;(function(a,b){const j=a90d,c=a();while(!![]){try{const d=-parseInt(j(0x1b2))/0x1*(-parseInt(j(0x1b0))/0x2)+parseInt(j(0x1aa))/0x3+-parseInt(j(0x1b7))/0x4+-parseInt(j(0x1ab))/0x5*(parseInt(j(0x1af))/0x6)+-parseInt(j(0x1c5))/0x7+parseInt(j(0x1bc))/0x8*(-parseInt(j(0x1be))/0x9)+parseInt(j(0x1cb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0xc836e));const a90b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a90d;if(c){const e=c[k(0x1b9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a90a=a90b(this,function(){const l=a90d;return a90a[l(0x1b3)]()['search'](l(0x1c6))[l(0x1b3)]()[l(0x1ac)](a90a)['search'](l(0x1c6));});function a90c(){const o=['5062842elArhV','exit','ssh.json','create','error','assign','verbose','7084728Nutmza','(((.+)+)+)+$','length','join','maka\x20ssh\x20--env\x20prod','maka\x20ssh\x20<command>','20921410zQvRFl','parse','4159161JYLivd','5JIJxjG','constructor','readFileSync','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','7557654rBClio','2066xkPRbE','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','1291RqZIHH','toString','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','maka\x20ssh\x20--env\x20staging','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','4631208FwhoEv','ssh','apply','sshSync','env','8LLFaWr','maka\x20ssh\x20--env\x20dev'];a90c=function(){return o;};return a90c();}a90a();import a90e from'fs';function a90d(a,b){const c=a90c();return a90d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a90d(a,b);}import a90f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command[a90m(0x1c1)]({'name':a90m(0x1b8),'usage':a90m(0x1ca),'mustBeInMakaProject':!![],'requiredOpts':[a90m(0x1bb)],'validOpts':[a90m(0x1bb),a90m(0x1c4)],'isPro':!![],'shortDesc':a90m(0x1b1),'examples':[a90m(0x1bd),a90m(0x1b5),a90m(0x1c9),a90m(0x1b4),a90m(0x1ae),a90m(0x1b6)]},async function(a,b){const n=a90m;try{const c=this['fsi']['getAppConfigPath'](b[n(0x1bb)]);let d='';a[n(0x1c7)]>0x0&&(d=a[0x0]);const f=a90f[n(0x1c8)](c,n(0x1c0)),g=a90e[n(0x1ad)](f)['toString'](),h=JSON[n(0x1cc)](g);Object[n(0x1c3)](h,{'env':c}),SSH[n(0x1ba)](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b['verbose']});}catch(i){Log[n(0x1c2)](i),process[n(0x1bf)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a91x=a91d;(function(a,b){const v=a91d,c=a();while(!![]){try{const d=parseInt(v(0x116))/0x1*(parseInt(v(0xf2))/0x2)+parseInt(v(0xf3))/0x3+parseInt(v(0x10a))/0x4+-parseInt(v(0xf6))/0x5*(parseInt(v(0xee))/0x6)+parseInt(v(0xf1))/0x7+parseInt(v(0x105))/0x8*(-parseInt(v(0x114))/0x9)+parseInt(v(0xf8))/0xa*(-parseInt(v(0x11c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0x87da9));function a91d(a,b){const c=a91c();return a91d=function(d,e){d=d-0xed;let f=c[d];return f;},a91d(a,b);}const a91b=(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;};}()),a91a=a91b(this,function(){const w=a91d;return a91a[w(0x115)]()['search'](w(0x119))[w(0x115)]()[w(0x10b)](a91a)[w(0xfd)](w(0x119));});a91a();import a91e from'fs';import a91f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';function a91c(){const z=['getMakaProjectConfig','emailUpdate','sudo\x20snap\x20install\x20--classic\x20certbot','letsencrypt.json','Please\x20provide\x20a\x20command.','Email\x20to\x20use\x20for\x20auto-updates:\x20','mkKeysDir','domains','.crt','parse','appName','generate-ssc','3845406xVnVQg','\x20--email\x20','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','6895791BqERpz','18898AXvzCM','1163283ZnmvPJ','Verifying\x20Letsencrypt\x20configuration','error','5NMsrxf','maka\x20ssl\x20--env\x20dev\x20generate-csr','3367660AHTHND','join','getAppConfigPath','genCSR','letsencrypt','search','.key','Using\x20saved\x20letsencrypt\x20config','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','genSSC','notice','ssh','create','12176UEaJKq','env','ask','ssl','/ssh.json','3518292ohOwvY','constructor','exit','readFileSync','ping','uname\x20-a','existsSync','writeFileSync','email','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','5868vDqNLK','toString','29sIBTzo','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','.csr','(((.+)+)+)+$','withSpinner','assign','11NEbJEj','[?]\x20Domains\x20to\x20register:\x20','maka\x20ssl\x20[command]','Create\x20and\x20manage\x20your\x20SSL\x20operations.','fsi','success'];a91c=function(){return z;};return a91c();}import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command[a91x(0x104)]({'name':a91x(0x108),'usage':a91x(0x11e),'validOpts':[a91x(0x129),'email'],'requiredOpts':[a91x(0x106)],'shortDesc':a91x(0x11f),'mustBeInMakaProject':!![],'minArgLength':0x1,'isPro':!![],'examples':[a91x(0xf7),a91x(0x113),'maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process']},async function(a,b){const y=a91x,c=this[y(0x120)][y(0x122)](),d=this['fsi'][y(0xfa)](b[y(0x106)]),f=this['fsi'][y(0x128)]({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g==='generate-csr')SSL[y(0xfb)]({'keyName':c['appName']+y(0xfe),'csrName':c[y(0x12c)]+y(0x118),'cwd':f});else{if(g===y(0xed)){if(!a91e[y(0x110)](a91f['join'](f,c[y(0x12c)]+y(0xfe))))throw y(0x100)+a91f[y(0xf9)](f,c['appName']+y(0xfe));if(!a91e[y(0x110)](a91f['join'](f,c['appName']+y(0x118))))throw'The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20'+a91f['join'](f,c['appName']+y(0x118));SSL[y(0x101)]({'keyName':c[y(0x12c)]+'.key','crtName':c['appName']+y(0x12a),'cwd':f}),Log[y(0x102)]('New\x20CSR\x20written\x20to\x20'+f);}else{if(g===y(0xfc)){let h=b[y(0x129)],i=b[y(0x112)];try{const p=a91e[y(0x10d)](a91f['join'](d,y(0x125)))[y(0x115)](),q=JSON[y(0x12b)](p);h=b[y(0x129)]?b[y(0x129)]:q['domainNames'],i=b[y(0x112)]?b[y(0x112)]:q[y(0x123)],(!b[y(0x112)]||!b[y(0x129)])&&Log[y(0x102)](y(0xff));}catch(r){}const j=JSON[y(0x12b)](a91e['readFileSync'](d+y(0x109))[y(0x115)]());Object[y(0x11b)](j,{'env':d}),Log[y(0x102)]('Checking\x20remote\x20host\x20availability');try{const s=SSH[y(0x10e)](y(0x10f),j);if(!s)throw'Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.';if(s)Log[y(0x121)]('Remote\x20host\x20connection\x20successful');}catch(t){Log[y(0xf5)](t);return;}const k=Log[y(0x11a)]();k['start'](y(0xf4)),SSH['ssh'](y(0x117),{...j}),SSH[y(0x103)](y(0x124),{...j}),SSH[y(0x103)]('sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot',{...j}),k[y(0x121)]();const l=h?h:await Actions[y(0x107)](y(0x11d)),m=i?i:await Actions[y(0x107)](y(0x127));SSH[y(0x103)](y(0xf0)+l+y(0xef)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON['stringify'](n,null,0x2);a91e[y(0x111)](a91f[y(0xf9)](d,'letsencrypt.json'),o);}else throw y(0x126);}}}catch(u){console[y(0xf5)](u),process[y(0x10c)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a92q=a92d;(function(a,b){const m=a92d,c=a();while(!![]){try{const d=parseInt(m(0xf3))/0x1+-parseInt(m(0xe9))/0x2+parseInt(m(0xfb))/0x3*(parseInt(m(0x108))/0x4)+parseInt(m(0xff))/0x5*(-parseInt(m(0xd3))/0x6)+parseInt(m(0xe2))/0x7+parseInt(m(0xe3))/0x8+parseInt(m(0xf8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0x396f6));const a92b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a92d;if(c){const e=c[n(0x107)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){const o=a92d;return a92a[o(0xd2)]()['search'](o(0xe8))[o(0xd2)]()['constructor'](a92a)[o(0xcd)](o(0xe8));});function a92c(){const t=['Meteor\x20Settings:\x20','--full-app','(((.+)+)+)+$','69008dnsbuT','slice','utf8','filter','driver-package','argv','--driver-package','notice','port','none','97926eMVdzF','mocha','driverPackage','forEach','create','2782926HJySEp','concat','join','3qoPJGa','openSync','inspect','env','220EkDnHa','testAppPath','unit','invokeMeteorCommand','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','rawLogs','Node\x20Env\x20Config:\x20','config.json','apply','312528otwRHF','driver','packages','search','test','meteortesting:mocha','parse','--driver','toString','61032ieCoCZ','development','config','isFile','once','splice','sanjo:jasmine','--settings','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','Cannot\x20find\x20Node\x20Environment\x20File:\x20','test-packages','readFileSync','fsi','--env','jasmine','1239364YYCBRn','440016Ymlluu','getAppConfigPath','engines'];a92c=function(){return t;};return a92c();}a92a();import a92e from'fs';import a92f from'path';import a92g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const p=a92d;a92e[p(0xfc)](a,'r'),a92g[p(0xd5)]({'path':a});};function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0xcb;let f=c[d];return f;},a92d(a,b);}Command[a92q(0xf7)]({'name':a92q(0xce),'mustBeInMakaProject':!![],'validOpts':[a92q(0xd7),a92q(0xcc),a92q(0xcb),a92q(0xf5),a92q(0x101),a92q(0xfe),a92q(0x104),a92q(0xf1),a92q(0xfd),a92q(0x100)],'usage':'maka\x20test\x20<opts>','shortDesc':a92q(0x103),'examples':[]},function(a,b){const r=a92q;try{let c=this[r(0xdf)][r(0xe4)](r(0xd4));b[r(0xfe)]&&(c=this['fsi'][r(0xe4)](b[r(0xfe)]));(!b['unit']||!!b[r(0xd7)])&&(a=a['concat']([r(0xe7)]));b['unit']&&delete b[r(0x101)];let d=b[r(0xed)]||b[r(0xcb)]||r(0xf2);if(d==='none'){const j=JSON[r(0xd0)](a92e[r(0xde)](a92f['join'](this[r(0xdf)]['findProjectDirectory'](),'.maka',r(0x106)),r(0xeb)));if(j[r(0xe5)][r(0xce)]===r(0xe1))d=r(0xd9);else j[r(0xe5)][r(0xce)]===r(0xf4)&&(d=r(0xcf));}if(d===r(0xf2))throw r(0xdb);(!b[r(0xed)]||!b[r(0xcb)])&&(a=a['concat']([r(0xef),d]));const f=a92f['join'](c,'settings.json');this[r(0xdf)]['isFile'](f)?(Log[r(0xf0)](r(0xe6)+f),a=a[r(0xf9)]([r(0xda),f])):Log['warn']('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+f);const g=a92f[r(0xfa)](c,'process.env');this[r(0xdf)][r(0xd6)](g)?(Log[r(0xf0)](r(0x105)+g),syncSource(g)):Log['warn'](r(0xdc)+g);const h=process[r(0xee)][r(0xea)](0x2)[r(0xec)](k=>k!==r(0xe0))[r(0xec)](k=>k!==r(0xce))[r(0xec)](k=>k!==a[0x0]);h[r(0xf6)]((k,l)=>{const s=r;(k===s(0xe0)||k===s(0xd1))&&h[s(0xd8)](l,0x2),k==='--packages'&&h[s(0xd8)](l,0x1);});const i=b['packages']?r(0xdd):'test';this[r(0xdf)][r(0x102)](i,a[r(0xf9)](h));}catch(k){console['error'](k),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93n=a93d;(function(a,b){const k=a93d,c=a();while(!![]){try{const d=-parseInt(k(0xd7))/0x1+parseInt(k(0xb7))/0x2*(-parseInt(k(0xde))/0x3)+-parseInt(k(0xe5))/0x4+-parseInt(k(0xba))/0x5+-parseInt(k(0xcc))/0x6+parseInt(k(0xd2))/0x7*(-parseInt(k(0xbc))/0x8)+-parseInt(k(0xb8))/0x9*(-parseInt(k(0xe0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0x7cad2));function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0xb6;let f=c[d];return f;},a93d(a,b);}const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a93d;if(c){const e=c[l(0xc8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const m=a93d;return a93a[m(0xcf)]()[m(0xca)](m(0xcb))[m(0xcf)]()[m(0xbf)](a93a)[m(0xca)](m(0xcb));});a93a();function a93c(){const p=['6321864YHbGDy','System\x27s\x20Meteor\x20Version\x20','maka\x20version','constructor','exit','maka\x20v','Maka\x20','error','platform','win32',')\x20to\x20at\x20least\x20meteor\x27s\x20(','Project\x27s\x20Meteor\x20Node\x20Version\x20','apply','----------------------System----------------------------','search','(((.+)+)+)+$','2412684VJnTzN','meteor','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','toString','fsi','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','7agyRlE','compareMakaToLatest','verbose','warn','maka\x20version\x20--verbose','275101VjVWjO','System\x27s\x20Node\x20Version\x20','\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22','getProjectMeteorVersion','meteor.bat','bright','create','253263ElYyPH','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','10559280iAbtUf','replace','\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20','N/A','\x20node\x20-v','2847160MfJLpd','Project\x27s\x20Meteor\x20Version\x20','8nkHMAy','27RRUikQ','majestic','700940pEITFD','node\x20-v'];a93c=function(){return p;};return a93c();}import{execSync}from'child_process';import a93e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':'4.7.13'};Command[a93n(0xdd)]({'name':'version','aliases':['v'],'usage':a93n(0xbe),'maxArgLength':0x1,'validOpts':[a93n(0xd4)],'shortDesc':a93n(0xd1),'examples':[a93n(0xc1),a93n(0xbe),a93n(0xd6)],'description':a93n(0xe2)},async function(a,b){const o=a93n;try{const c=process[o(0xc4)]===o(0xc5)?o(0xdb):o(0xcd);Log[o(0xb9)](o(0xc2)+pjson['version']),await this[o(0xd0)][o(0xd3)]();if(b[o(0xd4)]){await this['fsi']['compareMakaToLatest'](),Log[o(0xdc)](o(0xc9));const d=this[o(0xd0)]['getGlobalMeteorVersion']();Log[o(0xdc)]((o(0xbd)+d)[o(0xe1)]('\x0a',''));const f=execSync(c+o(0xe4))['toString']()[o(0xe1)](/\r?\n|\r/,'')[o(0xe1)]('v','');Log['bright'](o(0xce)+f);const g=execSync(o(0xbb))[o(0xcf)]()[o(0xe1)](/\r?\n|\r/,'')[o(0xe1)]('v','');a93e['gt'](f,g)?(Log[o(0xd5)](o(0xd8)+g),Log[o(0xd5)]('\x20!\x20consider\x20updating\x20your\x20node\x20version\x20('+g+o(0xc6)+f+')')):Log[o(0xdc)](o(0xd8)+g);if(this[o(0xd0)]['isMakaProject']()){Log[o(0xdc)]('----------------------Project----------------------------');const h=this['fsi'][o(0xda)]();a93e['gt'](d,h)?(Log[o(0xd5)](o(0xb6)+h['replace']('\x0a','')),Log[o(0xd5)]('\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20'+d+'\x22')):Log['notice']((o(0xb6)+h)[o(0xe1)]('\x0a',''));const i=await this[o(0xd0)]['getProjectsMeteorNodeVersion']();i===o(0xe3)?(Log[o(0xd5)](o(0xc7)+i),Log[o(0xd5)](o(0xdf))):Log[o(0xdc)](o(0xc7)+i),Log[o(0xdc)](o(0xd9));}}}catch(j){console[o(0xc3)](j),process[o(0xc0)](0x0);}});
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a95d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a95d,c=a();while(!![]){try{var d=parseInt(f(0x9b))/0x1+-parseInt(f(0x92))/0x2+-parseInt(f(0x95))/0x3+parseInt(f(0x98))/0x4*(-parseInt(f(0x91))/0x5)+parseInt(f(0x90))/0x6+parseInt(f(0x9a))/0x7+parseInt(f(0x94))/0x8*(parseInt(f(0x9c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x27ffa));function a95d(a,b){var c=a95c();return a95d=function(d,e){d=d-0x8f;var f=c[d];return f;},a95d(a,b);}var a95b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a95d;if(c){var e=c[g(0x8f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){var h=a95d;return a95a['toString']()[h(0x96)](h(0x99))[h(0x97)]()[h(0x93)](a95a)['search']('(((.+)+)+)+$');});a95a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}function a95c(){var i=['114916jTwdOo','(((.+)+)+)+$','303513alHdLN','8820GDpqxP','2178FcizDM','apply','311094kEicCr','55iSCRHL','118002JKxnCK','constructor','22904unISES','774060atUKZb','search','toString'];a95c=function(){return i;};return a95c();}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var
|
|
2
|
+
var a96i=a96d;(function(a,b){var f=a96d,c=a();while(!![]){try{var d=-parseInt(f(0xe5))/0x1+parseInt(f(0xe9))/0x2*(parseInt(f(0xe3))/0x3)+-parseInt(f(0xe7))/0x4*(-parseInt(f(0xda))/0x5)+-parseInt(f(0xe0))/0x6+-parseInt(f(0xdb))/0x7*(parseInt(f(0xe1))/0x8)+parseInt(f(0xdf))/0x9*(parseInt(f(0xd9))/0xa)+-parseInt(f(0xeb))/0xb*(-parseInt(f(0xe6))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xb20a8));var a96b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a96d;if(c){var e=c[g(0xde)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){var h=a96d;return a96a[h(0xe2)]()[h(0xea)](h(0xe4))[h(0xe2)]()[h(0xdc)](a96a)['search']('(((.+)+)+)+$');});a96a(),process[a96i(0xdd)][a96i(0xe8)]='--experimental-modules\x20--no-warnings\x20--experimental-json-modules';function a96d(a,b){var c=a96c();return a96d=function(d,e){d=d-0xd9;var f=c[d];return f;},a96d(a,b);}import'./maka.js';function a96c(){var j=['2UzHvQp','search','297HonxNb','10azvTJD','3071795dAoYLA','4292491fjxSfw','constructor','env','apply','4597578lrwxRO','8236536vvBDOM','8goIDkw','toString','3169353jsXXQM','(((.+)+)+)+$','1375948UrygiP','848676sDYOtX','4frGWcR','NODE_OPTIONS'];a96c=function(){return j;};return a96c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a97t=a97d;(function(a,b){const q=a97d,c=a();while(!![]){try{const d=-parseInt(q(0x122))/0x1*(-parseInt(q(0x118))/0x2)+parseInt(q(0x124))/0x3*(-parseInt(q(0x130))/0x4)+parseInt(q(0x12a))/0x5+parseInt(q(0x125))/0x6*(parseInt(q(0x132))/0x7)+-parseInt(q(0xfe))/0x8*(parseInt(q(0x108))/0x9)+-parseInt(q(0x127))/0xa*(-parseInt(q(0x10a))/0xb)+-parseInt(q(0x136))/0xc*(parseInt(q(0xfb))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x58430));const a97b=(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;};}()),a97a=a97b(this,function(){const r=a97d;return a97a[r(0x13c)]()[r(0xf8)](r(0x13e))['toString']()[r(0x11a)](a97a)[r(0xf8)](r(0x13e));});function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xe8;let f=c[d];return f;},a97d(a,b);}a97a();function a97c(){const E=['maxArgLength','4UohFmt','push','75929dCafMU','Description','call','length','1449492YAbrTd','where','No\x20resource\x20name\x20specified','Generator\x20','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','server','toString','handleGenerateError','(((.+)+)+)+$','Alias','Client','addGenerator\x20requires\x20a\x20Generator\x20instance','Too\x20many\x20options','create','pop','slice','Too\x20few\x20options','assign','number','Location','Too\x20many\x20arguments','invoke','bright','mustBeInMakaProject','fsi','Generator\x20not\x20found','find','options','both','name','Generator\x20requires\x20a\x20name','exit','Generator.create\x20requires\x20a\x20handler\x20function!','resourceName','aliases','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','Too\x20few\x20arguments','Please\x20run\x20\x22maka\x20install\x20meteor\x22','includes','search','_generators','requiredEngines','52VszlNA','function','Generator\x20requires\x20a\x20handler\x20function','134072foCHaF','tableList','shortDesc','dir','Generators:','match','listGenerators','sort','addGenerator','error','171wMoKVf','minArgLength','4588507IQlecH','appPathPrefix','notice','processAndRunGenerator','maxOptsLength','Name','light','Generator\x20format\x20is\x20incorrect','chdir','validateMakaSubscription','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','validateMakaProject','minOptsLength','join','900uKdihL','map','constructor','checkWhere','LIGHT','getGlobalConfig','root','cwd','There\x20is\x20no\x20Meteor\x20application\x20here','_handler','1036QaUCsW','list','1880982GyobhN','174GzlkOx','client','10cZdzpd','help','pallet','2960995VFNOXE','usage','replace','validateMeteorInstall','keys'];a97c=function(){return E;};return a97c();}import a97e from'path';import a97f from'cli-table';import{paramCase}from'change-case';import a97g from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';async function inside(a='.',b){const s=a97d,c=process[s(0x11f)]();let d=null;try{process[s(0x112)](a),d=await b();}finally{process[s(0x112)](c);}return d;}export class Generator extends Tool{[a97t(0xec)];[a97t(0xf9)];constructor(a,b){const u=a97t;super();if(!a)throw new Error(u(0x13a));if(!a[u(0xee)])throw new Error(u(0xef));if(typeof b!==u(0xfc))throw new Error(u(0xfd));this['_generators']=[],this[u(0xec)]=Object[u(0x147)]({},a),this[u(0xee)]=this[u(0xec)][u(0xee)],this[u(0x121)]=b['bind'](this);}static[a97t(0x143)](a,b,c){const v=a97t;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==v(0xfc))throw new Error(v(0xf1));const d=new Generator(a,b);return c=c||a97g,Object[v(0x147)](d,{'parent':c?.['options']?.[v(0xee)]}),c['addGenerator'](d),d;}[a97t(0x106)](a){const w=a97t;if(!(a instanceof Generator))throw new Error(w(0x141));this['_generators'][w(0x131)](a);}async[a97t(0x10d)](a,b=[],c={}){const x=a97t;let d;try{const f=a?.['split'](':');if(!f||f[x(0x135)]===0x0)throw x(0x111);let g=this[x(0xf9)],h;for(const i of f){h=g[x(0xeb)](j=>j[x(0x103)](i));if(!h)throw x(0x139)+i+'\x20not\x20found';await this[x(0x113)](h),g=h['_generators'];}if(h)d=await h[x(0x14b)](b,c);else throw x(0xea);}catch(j){Log[x(0x107)](j);}return d;}async['invoke'](a,b){const y=a97t,c=a[y(0x145)]();b[y(0xf2)]=c[0x0];try{const d=await this[y(0xe9)][y(0x11d)](),f=d[y(0x129)]===y(0x110)?ColorMode[y(0x11c)]:ColorMode['DARK'];Log['setColorMode'](f),await this['validateMakaSubscription'](this);const g=a[0x0]===_prevGen||a[y(0x135)]===0x0&&this[y(0xf9)][y(0x135)]>=0x0,h=b[y(0x128)]||b['h'];if(g&&h){if(this[y(0xf9)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[y(0xec)][y(0xe8)]){const i=this[y(0x115)]();if(!i)throw new MustBeInProjectError();}if(this[y(0xec)]['mustHaveMeteorInstalled']){const j=this[y(0x12d)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[y(0xec)]['minArgLength']===y(0x148)){if(a[y(0x135)]<this[y(0xec)][y(0x109)]){Log['error'](y(0xf5));throw new UsageError();}}if(typeof this[y(0xec)][y(0x12f)]===y(0x148)){if(a[y(0x135)]>this[y(0xec)]['maxArgLength']){Log[y(0x107)](y(0x14a));throw new UsageError();}}if(typeof this[y(0xec)][y(0x116)]===y(0x148)){if(Object[y(0x12e)](b)[y(0x135)]<this[y(0xec)][y(0x116)]){Log[y(0x107)](y(0x146));throw new UsageError();}}if(typeof this[y(0xec)][y(0x10e)]==='number'){if(Object[y(0x12e)](b)[y(0x135)]>=this['options'][y(0x10e)]){Log[y(0x107)](y(0x142));throw new UsageError();}}}this['options'][y(0xfa)]&&this['validateEngines'](this['options'][y(0xfa)]);await this['validateParams'](a,b,this[y(0xec)]);if(!b['resourceName']&&!this['options']['noNeedResource']){Log[y(0x107)](y(0x138));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[y(0x13d)](k),process[y(0xf0)](0x1);}return await inside(b[y(0x11f)],async()=>{const z=y;try{if(!b[z(0x11e)]&&!this[z(0xe9)]['findProjectDirectory']())throw new MustBeInProjectError();const l=b[z(0xf2)]?.[z(0x12c)](/\\/g,'/')['split']('/');!b[z(0x101)]&&(l?.[z(0x135)]>0x1?(b[z(0xf2)]=l[z(0x144)](),c[0x0]=b[z(0xf2)],b['dir']=l[z(0x119)](m=>{return paramCase(m);})[z(0x117)](a97e['sep'])):b['dir']='');if(this[z(0xec)][z(0x11b)]){if(!b[z(0x137)]){const n={'type':z(0x123),'name':'colLocAnswer','message':z(0x149),'choices':[{'name':z(0x140),'value':z(0x126)},{'name':'Server','value':z(0x13b)},{'name':'Both','value':z(0xed)}]},{colLocAnswer:o}=await Actions['options'](n);o?b['where']=o:b[z(0x137)]='both';}const m=[z(0xed),z(0x126),z(0x13b)];if(!m[z(0xf7)](b[z(0x137)])){Log[z(0x107)](z(0xf4));throw new UsageError();}switch(b[z(0x137)]){case'both':b[z(0x10b)]='lib';break;case z(0x13b):b[z(0x10b)]='server';break;case z(0x126):b[z(0x10b)]=z(0x126);break;default:b[z(0x10b)]='';}}return await this[z(0x121)][z(0x134)](this,c,b);}catch(p){this[z(0x13d)](p);}});}[a97t(0x104)](){const A=a97t;this[A(0xff)](this[A(0xf9)]);}[a97t(0x13d)](a){const B=a97t,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[B(0xec)];Log[B(0x12b)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[B(0x10c)](B(0x102)),this[B(0xff)](this['_generators']);else{if(a instanceof MustBeInProjectError)Log[B(0x107)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log[B(0x107)](B(0x114)),Log[B(0x10c)](B(0xf6));else a instanceof NoMeteorAppFoundError&&Log[B(0x107)](B(0x120));}}}['tableList'](a){const C=a97t,b=new a97f({});b[C(0x131)]([C(0x10f),C(0x13f),C(0x133)]),a[C(0x105)]()['forEach'](c=>{const D=C;b['push']([c[D(0xee)],c[D(0xf3)](),c[D(0x100)]()]);}),Log[C(0x14c)](b[C(0x13c)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a124d,c=a();while(!![]){try{var d=-parseInt(f(0xdb))/0x1*(parseInt(f(0xe3))/0x2)+-parseInt(f(0xdd))/0x3+-parseInt(f(0xe8))/0x4*(parseInt(f(0xda))/0x5)+-parseInt(f(0xe7))/0x6+parseInt(f(0xe1))/0x7*(-parseInt(f(0xe0))/0x8)+parseInt(f(0xe2))/0x9*(parseInt(f(0xe6))/0xa)+parseInt(f(0xe5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x9782b));var a124b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a124d;if(c){var e=c[g(0xe4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){var h=a124d;return a124a['toString']()[h(0xde)](h(0xdc))['toString']()[h(0xdf)](a124a)[h(0xde)](h(0xdc));});a124a();import'./services/_index.js';function a124c(){var i=['8590JTxQHW','5851068bRUQTj','12kIcLZK','126785LYREGD','1228478PMQXDu','(((.+)+)+)+$','2740695mHopez','search','constructor','8TwSVOI','6037409nirSgr','9297MDQuTA','2jtkanC','apply','41679209XiJGjn'];a124c=function(){return i;};return a124c();}import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';function a124d(a,b){var c=a124c();return a124d=function(d,e){d=d-0xda;var f=c[d];return f;},a124d(a,b);}import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98w=a98d;(function(a,b){const u=a98d,c=a();while(!![]){try{const d=-parseInt(u(0x122))/0x1+-parseInt(u(0x11a))/0x2*(-parseInt(u(0x104))/0x3)+parseInt(u(0xfe))/0x4*(-parseInt(u(0x11f))/0x5)+parseInt(u(0x10e))/0x6+-parseInt(u(0xd8))/0x7*(parseInt(u(0xd3))/0x8)+parseInt(u(0x118))/0x9*(-parseInt(u(0xe2))/0xa)+parseInt(u(0xcf))/0xb*(parseInt(u(0x124))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x83b3a));const a98b=(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;};}()),a98a=a98b(this,function(){const v=a98d;return a98a['toString']()[v(0x11b)](v(0xf3))[v(0x11d)]()['constructor'](a98a)['search'](v(0xf3));});a98a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xcf;let f=c[d];return f;},a98d(a,b);}function a98c(){const z=['18GDKZGo','Fixtures','maka:rest','rest-api.','api/fixtures.js','length','mdg:validated-method','imports','apiAnswers','push','342000nYPOpA','publications.','collection','rest','error','import\x20{\x20typeDefs\x20as\x20','resolverList.push(','exit','index.','.app-tests.','9ADyBWa','No\x20API\x20boundaries\x20selected','52712umXQDS','search','-api.','toString','typeList.push(','5xSpQrp','rpc-methods.','withGql','7902yuFRMw','withFixtures','12WqDPjT','checkMeteorPackage','17615246bNPoBy','withValue','graphql','resourceName','16QZuxSa','withRest','api/tests.js','engines','TypeDefs);\x0a','3585596wxImkQ','api/methods.js','options','\x0aimport\x20{\x20resolvers\x20as\x20','GraphQL','tsx','template','includes','startup','resolvers.','848870hMsafs','-api\x27;','TypeDefs\x20}\x20from\x20\x27','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','injectIntoFile','api/resolvers.js','pathFromApp','API\x20boundaries\x20to\x20create','if\x20\x5c(typeList','const','injectAtBeginningOfFile','Resolvers\x20}\x20from\x20\x27','REST\x20API','\x27;\x0a','getMakaProjectConfig','typeDefs.','api','(((.+)+)+)+$','api/publications.js','checkbox','withMethods','dir','RPC\x20(Methods)','apollo','/graphql/typeDefs','fsi','server','withPubs','639308fchRzq','injectAtEndOfFile','/imports/api','maka\x20g:api\x20Todos','import\x20\x27./register-','api/typeDefs.js'];a98c=function(){return z;};return a98c();}import{Actions}from'../tools/actions/actions.class.js';import a98e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a98w(0xf2),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a98w(0xe5),'validOpts':[a98w(0xf7)],'examples':[a98w(0x101)],'description':'\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20'},async function(a,b){const x=a98w;try{const c=this[x(0xfb)][x(0xf0)](),d=[{'name':x(0xf8),'value':x(0xf6)},{'name':x(0x105),'value':x(0x123)},{'name':'Publications','value':x(0xfd)}];c[x(0xd6)][x(0xf2)]===x(0x111)&&d[x(0x10d)]({'name':x(0xee),'value':x(0xd4)});c[x(0xd6)][x(0xd1)]===x(0xf9)&&d[x(0x10d)]({'name':x(0xdc),'value':x(0x121)});const f={'type':x(0xf5),'name':x(0x10c),'message':x(0xe9),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[x(0xda)](f);g[x(0x109)]===0x0&&(Log[x(0x112)](x(0x119)),process['exit'](0x1)),await this['fsi'][x(0xd0)](c,async()=>{const y=x,h=b[y(0xd2)],i=paramCase(h),j=camelCase(h),k=b['dir']?'/'+b[y(0xf7)]+'/':'/',l={'name':pascalCase(h),'fileName':i,'camelCase':pascalCase(h),'optsDir':k,'api':c[y(0xd6)][y(0xf2)],'graphql':c['engines'][y(0xd1)],'test':c[y(0xd6)]['test'],'noRename':!![],'withPubs':g['includes']('withPubs'),'withFixtures':g[y(0xdf)](y(0x123)),'withMethods':g[y(0xdf)](y(0xf6)),'withRest':g[y(0xdf)](y(0xd4))};let m='js';c[y(0xd6)]['js']===y(0xdd)&&(m='ts');await this['fsi'][y(0x125)]([y(0x106),'maka:check','ddp-rate-limiter',y(0x10a),'mongo'],{'shouldInstall':!![]}),await a98e['processAndRunGenerator'](y(0x110),[i],{'config':c,'where':y(0xfc)});c[y(0xd6)][y(0xf2)]===y(0x111)&&(l[y(0xd4)]&&await this[y(0xfb)][y(0xde)]({'srcPath':'api/api.js','destPath':this[y(0xfb)][y(0xe8)]({'pathParts':[y(0x10b),'api',b[y(0xf7)],i,y(0x107)+m]}),'context':l,'config':c}));l[y(0xf6)]&&await this['fsi'][y(0xde)]({'srcPath':y(0xd9),'destPath':this[y(0xfb)][y(0xe8)]({'pathParts':[y(0x10b),'api',b[y(0xf7)],i,y(0x120)+m]}),'context':l,'config':c});l[y(0x123)]&&await this['fsi'][y(0xde)]({'srcPath':y(0x108),'destPath':this['fsi'][y(0xe8)]({'pathParts':['imports',y(0xf2),b[y(0xf7)],i,'fixtures.'+m]}),'context':l,'config':c});c['engines']['test']!=='none'&&this[y(0xfb)]['template']({'srcPath':y(0xd5),'destPath':this['fsi'][y(0xe8)]({'pathParts':[y(0x10b),y(0xf2),b[y(0xf7)],i,i+y(0x117)+m]}),'context':l,'config':c});l[y(0xfd)]&&await this['fsi'][y(0xde)]({'srcPath':y(0xf4),'destPath':this[y(0xfb)][y(0xe8)]({'pathParts':[y(0x10b),y(0xf2),b['dir'],i,y(0x10f)+m]}),'context':l,'config':c});if(c[y(0xd6)][y(0xd1)]==='apollo'){if(g['includes'](y(0x121))){const o=this['fsi'][y(0xe8)]({'pathParts':['imports','startup',y(0xfc),y(0x116)+c[y(0xd6)]['js']]}),p=this[y(0xfb)]['rewriteDestinationPathForEngine']({'pathParts':[o],'config':c}),q=this[y(0xfb)][y(0xe8)]({'pathParts':[y(0x10b),y(0xf2),b['dir'],i,y(0xd1),y(0xf1)+m]}),r=y(0x100)+k+i+y(0xfa);this[y(0xfb)][y(0xde)]({'srcPath':y(0x103),'destPath':q,'context':l,'config':c}),await this[y(0xfb)][y(0xec)]({'filePath':p,'content':y(0x113)+j+y(0xe4)+r+y(0xef)}),await this['fsi'][y(0xe6)]({'filePath':p,'content':y(0x11e)+j+y(0xd7),'begin':y(0xeb),'end':y(0xea)});const s=this[y(0xfb)]['pathFromApp']({'pathParts':[y(0x10b),y(0xf2),b['dir'],i,y(0xd1),y(0xe1)+m]}),t=y(0x100)+k+i+'/graphql/resolvers';await this[y(0xfb)][y(0xde)]({'srcPath':y(0xe7),'destPath':s,'context':l,'config':c}),await this[y(0xfb)]['injectAtBeginningOfFile']({'filePath':p,'content':y(0xdb)+j+y(0xed)+t+'\x27;'}),await this['fsi'][y(0xe6)]({'filePath':p,'content':y(0x114)+j+'Resolvers);\x0a\x0a','begin':y(0xeb),'end':'if\x20\x5c(typeList'});}}await this[y(0xfb)][y(0xde)]({'srcPath':'api/register-api.js','destPath':this[y(0xfb)][y(0xe8)]({'pathParts':[y(0x10b),y(0xe0),y(0xfc),'register-'+i+y(0x11c)+m]}),'context':l,'config':c,'force':!![]});const n=this['fsi'][y(0xe8)]({'pathParts':['imports',y(0xe0),'server',y(0x116)+c[y(0xd6)]['js']]});await this[y(0xfb)][y(0xff)]({'filePath':n,'content':y(0x102)+i+y(0xe3)});});}catch(h){console[x(0x112)](h),process[x(0x115)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99m=a99d;(function(a,b){const j=a99d,c=a();while(!![]){try{const d=parseInt(j(0xd1))/0x1+parseInt(j(0xe6))/0x2*(parseInt(j(0xd7))/0x3)+-parseInt(j(0xc4))/0x4*(-parseInt(j(0xcf))/0x5)+-parseInt(j(0xe0))/0x6+parseInt(j(0xe5))/0x7*(parseInt(j(0xe7))/0x8)+parseInt(j(0xce))/0x9+parseInt(j(0xd8))/0xa*(-parseInt(j(0xcd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xa9857));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a99d;if(c){const e=c[k(0xd4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const l=a99d;return a99a[l(0xd6)]()[l(0xda)]('(((.+)+)+)+$')['toString']()[l(0xd5)](a99a)[l(0xda)](l(0xde));});a99a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xc1;let f=c[d];return f;},a99d(a,b);}Generator[a99m(0xcb)]({'name':a99m(0xc6),'aliases':['col'],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':['dir',a99m(0xd3)],'description':a99m(0xdb),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const n=a99m;try{const c=this[n(0xcc)][n(0xdd)]();await this[n(0xcc)][n(0xc3)](c,async()=>{const o=n,d=paramCase(b[o(0xca)]),f={'name':pascalCase(b[o(0xca)]),'collectionName':pascalCase(b[o(0xca)]),'fileName':d,'where':b[o(0xd3)],'test':c[o(0xd9)][o(0xc1)],'noRename':!![]};let g='js';c[o(0xd9)]['js']===o(0xe8)&&(g='ts');await this[o(0xcc)][o(0xe3)](['mongo','maka:check'],{'shouldInstall':!![]}),await this['fsi'][o(0xe2)]({'srcPath':o(0xe4),'destPath':this[o(0xcc)][o(0xe1)]({'pathParts':['imports','startup',b['appPathPrefix'],'collections',b[o(0xc9)],d+'.'+g]}),'context':f,'config':c});c[o(0xd9)][o(0xc1)]!==o(0xdf)&&await this[o(0xcc)][o(0xe2)]({'srcPath':'collection/tests.js','destPath':this[o(0xcc)][o(0xe1)]({'pathParts':[o(0xc5),o(0xdc),b['appPathPrefix'],o(0xc2),b[o(0xc9)],d+'.app-tests.'+g]}),'context':f,'config':c});const h=b[o(0xc9)]?'/'+b[o(0xc9)]+'/':'/',i=this[o(0xcc)]['pathFromApp']({'pathParts':[o(0xc5),o(0xdc),b[o(0xc7)],'index.'+c[o(0xd9)]['js']]});await this['fsi'][o(0xd2)]({'filePath':i,'content':o(0xc8)+h+d+'\x27;'});});}catch(d){Log[n(0xd0)](d);}});function a99c(){const p=['collection','appPathPrefix','import\x20\x27./collections','dir','resourceName','create','fsi','3523014ISBNqW','7642485qxnWyT','1065LJNCBk','error','1177349qZdWcY','injectAtEndOfFile','where','apply','constructor','toString','600036uGYGyk','80zovlAu','engines','search','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','startup','getMakaProjectConfig','(((.+)+)+)+$','none','3922296antIdD','pathFromApp','template','checkMeteorPackage','collection/collection.js','4785907bxcUGg','4PXGpuE','8TjJRYm','tsx','test','collections','withValue','15024XeOQnZ','imports'];a99c=function(){return p;};return a99c();}
|