@maka/maka-cli 4.7.12 → 4.7.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +29 -29
- package/.mocharc.json +3 -3
- package/.vs/VSWorkspaceState.json +15 -0
- package/.vs/maka-cli-src/FileContentIndex/18ca123b-cf4e-4263-8cf0-ed1624e8e918.vsidx +0 -0
- package/.vs/maka-cli-src/FileContentIndex/4c0a1daa-da96-4fc9-bf6f-ad5a9148b26c.vsidx +0 -0
- package/.vs/maka-cli-src/FileContentIndex/93947812-c77d-4667-aaed-3f9a0df8b484.vsidx +0 -0
- package/.vs/maka-cli-src/FileContentIndex/c4cbf57e-b360-4b2a-8b3d-fc8f800c195a.vsidx +0 -0
- package/.vs/maka-cli-src/FileContentIndex/c9d2ef23-4e6c-46eb-a405-3584022229ed.vsidx +0 -0
- package/.vs/maka-cli-src/config/applicationhost.config +1016 -0
- package/.vs/maka-cli-src/v17/.wsuo +0 -0
- package/.vs/maka-cli-src/v17/workspaceFileList.bin +0 -0
- package/.vs/slnx.sqlite +0 -0
- package/README.md +21 -21
- package/bundle/obf/package.json +127 -127
- package/bundle/obf/src/README.md +21 -21
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/api/api.js +11 -11
- package/bundle/obf/src/templates/meteor/api/api.js.ts +11 -11
- package/bundle/obf/src/templates/meteor/api/collection.js +86 -86
- package/bundle/obf/src/templates/meteor/api/collection.js.ts +94 -94
- package/bundle/obf/src/templates/meteor/api/fixtures.js +23 -23
- package/bundle/obf/src/templates/meteor/api/fixtures.js.ts +23 -23
- package/bundle/obf/src/templates/meteor/api/methods.js +136 -136
- package/bundle/obf/src/templates/meteor/api/methods.js.ts +137 -137
- package/bundle/obf/src/templates/meteor/api/publications.js +31 -31
- package/bundle/obf/src/templates/meteor/api/publications.js.ts +31 -31
- package/bundle/obf/src/templates/meteor/api/register-api.js +15 -15
- package/bundle/obf/src/templates/meteor/api/register-api.js.ts +15 -15
- package/bundle/obf/src/templates/meteor/api/resolvers.js +9 -9
- package/bundle/obf/src/templates/meteor/api/resolvers.js.ts +9 -9
- package/bundle/obf/src/templates/meteor/api/tests.js +1 -1
- package/bundle/obf/src/templates/meteor/api/tests.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/api/typeDefs.js +5 -5
- package/bundle/obf/src/templates/meteor/api/typeDefs.js.ts +5 -5
- package/bundle/obf/src/templates/meteor/app/client/body.html +3 -3
- package/bundle/obf/src/templates/meteor/app/client/head.html +15 -15
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js +9 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.jsx +9 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.ts +9 -9
- package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.tsx +9 -9
- package/bundle/obf/src/templates/meteor/app/client/main.js +13 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.jsx +13 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.ts +13 -13
- package/bundle/obf/src/templates/meteor/app/client/main.js.tsx +13 -13
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js +20 -20
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +117 -117
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.ts +20 -20
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +118 -118
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js +39 -39
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.jsx +48 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.ts +24 -24
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +48 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js +9 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.jsx +9 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.ts +9 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.tsx +9 -9
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js +1 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +21 -21
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +21 -21
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +48 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +48 -48
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js +1 -1
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +152 -152
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +152 -152
- package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js +24 -24
- package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js.ts +24 -24
- package/bundle/obf/src/templates/meteor/app/lib/main.js +1 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.jsx +1 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/app/lib/main.js.tsx +1 -1
- package/bundle/obf/src/templates/meteor/app/maka.d.ts +160 -160
- package/bundle/obf/src/templates/meteor/app/meteor.d.ts +955 -955
- package/bundle/obf/src/templates/meteor/app/public/manifest.json +27 -27
- package/bundle/obf/src/templates/meteor/app/public/sw.js +30 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.jsx +30 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.ts +30 -30
- package/bundle/obf/src/templates/meteor/app/public/sw.js.tsx +30 -30
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js +179 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.jsx +179 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.ts +179 -179
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.tsx +179 -179
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js +9 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.jsx +9 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.ts +9 -9
- package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.tsx +9 -9
- package/bundle/obf/src/templates/meteor/app/server/main.js +11 -11
- package/bundle/obf/src/templates/meteor/app/server/main.js.jsx +11 -11
- package/bundle/obf/src/templates/meteor/app/server/main.js.ts +11 -11
- package/bundle/obf/src/templates/meteor/app/server/main.js.tsx +11 -11
- package/bundle/obf/src/templates/meteor/app/tsconfig.json +40 -40
- package/bundle/obf/src/templates/meteor/collection/collection.js +85 -85
- package/bundle/obf/src/templates/meteor/collection/collection.js.ts +97 -97
- package/bundle/obf/src/templates/meteor/collection/tests.js +27 -27
- package/bundle/obf/src/templates/meteor/collection/tests.js.ts +27 -27
- package/bundle/obf/src/templates/meteor/config/docker-compose.yaml +17 -17
- package/bundle/obf/src/templates/meteor/config/pm2.config.js +25 -25
- package/bundle/obf/src/templates/meteor/config/process.env +5 -5
- package/bundle/obf/src/templates/meteor/config/settings.json +11 -11
- package/bundle/obf/src/templates/meteor/config/ssh.json +6 -6
- package/bundle/obf/src/templates/meteor/dbc/config.js +70 -70
- package/bundle/obf/src/templates/meteor/dbc/config.js.ts +70 -70
- package/bundle/obf/src/templates/meteor/dbc/conn.js +37 -37
- package/bundle/obf/src/templates/meteor/dbc/conn.js.ts +37 -37
- package/bundle/obf/src/templates/meteor/dbc/register-dbc.js +3 -3
- package/bundle/obf/src/templates/meteor/dbc/register-dbc.js.ts +3 -3
- package/bundle/obf/src/templates/meteor/method/method.js +48 -48
- package/bundle/obf/src/templates/meteor/method/method.js.ts +48 -48
- package/bundle/obf/src/templates/meteor/package/package.js +37 -37
- package/bundle/obf/src/templates/meteor/package/package.js.jsx +37 -37
- package/bundle/obf/src/templates/meteor/package/package.js.ts +36 -36
- package/bundle/obf/src/templates/meteor/package/package.js.tsx +37 -37
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.jsx +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.ts +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/client/package.js.tsx +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.jsx +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.ts +5 -5
- package/bundle/obf/src/templates/meteor/package/tests/server/package.js.tsx +5 -5
- package/bundle/obf/src/templates/meteor/project/.maka/config.json +29 -29
- package/bundle/obf/src/templates/meteor/project/README.md +1 -1
- package/bundle/obf/src/templates/meteor/project/build/README +4 -4
- package/bundle/obf/src/templates/meteor/project/gitignore +7 -7
- package/bundle/obf/src/templates/meteor/project/package.json +20 -20
- package/bundle/obf/src/templates/meteor/publish/publish.js +3 -3
- package/bundle/obf/src/templates/meteor/publish/publish.js.jsx +3 -3
- package/bundle/obf/src/templates/meteor/publish/publish.js.tsx +3 -3
- package/bundle/obf/src/templates/meteor/publish/publish.ts +3 -3
- package/bundle/obf/src/templates/meteor/service/logger/logger.js +27 -27
- package/bundle/obf/src/templates/meteor/service/logger/logger.js.ts +27 -27
- package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css +5 -5
- package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css.less +5 -5
- package/bundle/obf/src/templates/meteor/template/template-tests.js +1 -1
- package/bundle/obf/src/templates/meteor/template/template-tests.js.jsx +55 -55
- package/bundle/obf/src/templates/meteor/template/template-tests.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/template/template-tests.js.tsx +55 -55
- package/bundle/obf/src/templates/meteor/template/template.css +3 -3
- package/bundle/obf/src/templates/meteor/template/template.css.less +3 -3
- package/bundle/obf/src/templates/meteor/template/template.css.scss +3 -3
- package/bundle/obf/src/templates/meteor/template/template.html +5 -5
- package/bundle/obf/src/templates/meteor/template/template.js +20 -20
- package/bundle/obf/src/templates/meteor/template/template.js.jsx +77 -77
- package/bundle/obf/src/templates/meteor/template/template.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/template/template.js.tsx +89 -89
- package/bundle/obf/src/templates/react/component/component.css +6 -6
- package/bundle/obf/src/templates/react/component/component.css.less +6 -6
- package/bundle/obf/src/templates/react/component/component.css.scss +3 -3
- package/bundle/obf/src/templates/react/component/component.js.jsx +63 -63
- package/bundle/obf/src/templates/react/component/component.js.tsx +68 -68
- package/bundle/obf/src/templates/react/hook/hook.css +3 -3
- package/bundle/obf/src/templates/react/hook/hook.css.scss +3 -3
- package/bundle/obf/src/templates/react/hook/hook.js +1 -1
- package/bundle/obf/src/templates/react/hook/hook.js.jsx +24 -24
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +23 -23
- package/bundle/obf/src/templates/react/kit/esri/map/basic-map.js.jsx +27 -27
- package/bundle/obf/src/templates/react/kit/esri/map/basic-map.js.tsx +29 -29
- package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.jsx +41 -41
- package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.tsx +40 -40
- package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.jsx +118 -118
- package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.tsx +116 -116
- package/bundle/obf/src/templates/react/route/route.js +8 -8
- package/bundle/obf/src/templates/react/route/route.js.jsx +8 -8
- package/bundle/obf/src/templates/react/route/route.js.ts +8 -8
- package/bundle/obf/src/templates/react/route/route.js.tsx +8 -8
- package/bundle/obf/src/templates/react/test/test.js +1 -1
- package/bundle/obf/src/templates/react/test/test.js.jsx +41 -41
- package/bundle/obf/src/templates/react/test/test.js.ts +1 -1
- package/bundle/obf/src/templates/react/test/test.js.tsx +41 -41
- package/bundle/obf/src/templates/service/docker/Dockerfile +54 -54
- package/bundle/obf/src/templates/service/eslint/eslintrc.json +33 -33
- package/bundle/obf/src/templates/service/i18n/i18n.js +33 -33
- package/bundle/obf/src/templates/service/i18n/i18n.js.ts +33 -33
- package/bundle/obf/src/templates/service/i18n/locales.js +3 -3
- package/bundle/obf/src/templates/service/i18n/locales.js.ts +3 -3
- package/bundle/obf/src/templates/service/openssl/openssl.conf +22 -22
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/jest.config.js +11 -11
- package/obfuscator.json +29 -29
- package/package.json +127 -127
- package/tsconfig.json +23 -23
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x1df;let f=c[d];return f;},a119d(a,b);}const a119B=a119d;(function(a,b){const y=a119d,c=a();while(!![]){try{const d=-parseInt(y(0x20c))/0x1*(parseInt(y(0x21e))/0x2)+parseInt(y(0x1e1))/0x3*(-parseInt(y(0x21d))/0x4)+-parseInt(y(0x215))/0x5+-parseInt(y(0x1e9))/0x6*(-parseInt(y(0x202))/0x7)+parseInt(y(0x218))/0x8+-parseInt(y(0x20a))/0x9+parseInt(y(0x1fa))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x86c02));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a119d;if(c){const e=c[z(0x1fb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const A=a119d;return a119a['toString']()[A(0x1f4)](A(0x1e3))[A(0x22d)]()[A(0x1eb)](a119a)[A(0x1f4)](A(0x1e3));});a119a();import a119e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';function a119c(){const J=['Route\x20','injectAfterLineNumber','true','6875477cYoQqp','\x20already\x20exists.\x20\x20Skipping.','layouts','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','only','templateContent','/imports/ui/pages','withTranslations','5204862SAJSov','replace','4UObBsI','routes.js','private','engines','join','readFileLines','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','dir','const\x20privateRoutes\x20=\x20(<>','3941205hdSnwO','lib','injectAtEndOfFile','3641400fcYtje','react','getMakaProjectConfig','/imports/ui/','route','1822208AdLOxE','325196imtdVW','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','error','fileContainsString','hooks','includes','create','maka\x20g:route\x20pages/about','MasterLayout','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','resourceName','pathFromApp','PrivateLayout','\x20to\x20','length','toString','rewriteDestinationPathForEngine','</Router>','vanilla','client','layout','3kxouJz','maka\x20g:route\x20todosEdit\x20todos/:id/edit','(((.+)+)+)+$','<Route','templateName','filter','route/route.js','Adding\x20route\x20','6qULigJ','toLowerCase','constructor','map','components','config','Valid\x20options\x20are:\x20','info','startup','root','imports','search','fsi','Scaffolding\x20for\x20a\x20Route.','const\x20publicRoutes\x20=\x20(<>','\x0a\x09\x09','Invalid\x20directory\x20option\x20\x22','15870550AWuKZH','apply','baseDir','maka\x20g:route\x20todosIndex\x20todos','pages'];a119c=function(){return J;};return a119c();}const aliases=['r'];Generator[a119B(0x224)]({'name':a119B(0x21c),'aliases':aliases,'validOpts':[a119B(0x20e),a119B(0x1e0),a119B(0x206),'cwd',a119B(0x1ee),a119B(0x1f2),'withHook','url',a119B(0x1fc)],'usage':a119B(0x212),'shortDesc':a119B(0x1f6),'examples':[a119B(0x1fd),a119B(0x1e2),a119B(0x21f),'maka\x20g:route\x20pages/lists/listIndex\x20lists',a119B(0x225)]},async function(a,b){const C=a119B;try{const c=[C(0x222),C(0x1ed),C(0x1fe),C(0x204)];if(b[C(0x1fc)]&&!c[C(0x223)](b['baseDir'])){Log[C(0x220)](C(0x1f9)+b[C(0x1fc)]+'\x22'),Log['error'](C(0x1ef)+c[C(0x210)](',\x20'));throw new UsageError();}const d=this[C(0x1f5)][C(0x21a)]();await this[C(0x1f5)]['withValue'](d,async()=>{const D=C,f=b[D(0x20e)]??![];let g=paramCase(b[D(0x228)]),h='/'+g;a[D(0x22c)]>0x1&&(h='/'+a[D(0x1e6)](function(n){return n!=='/';})[D(0x210)]('/')[D(0x1ea)]());g=camelCase(g);b[D(0x1e0)]&&(b['layout']=camelCase(b[D(0x1e0)]));const i=b[D(0x1fc)]?D(0x21b)+b[D(0x1fc)]:D(0x208),j=a119e[D(0x210)](i,b[D(0x213)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x1e0)]||D(0x226),'templatePath':j,'templateName':pascalCase(g),'client':d[D(0x20f)][D(0x1df)],'newForm':![],'withTranslations':d['features'][D(0x209)]};f&&(k['layout']=D(0x22a));let l,m;if(d['engines']['client']===D(0x219)){if(d[D(0x20f)]['ssr']===D(0x201)){const r=this[D(0x1f5)][D(0x229)]({'pathParts':[D(0x1f3),D(0x1f1),D(0x216),D(0x20d)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[r],'config':d});}else{const s=this[D(0x1f5)][D(0x229)]({'pathParts':[D(0x1f3),'startup',D(0x1df),D(0x20d)]});l=this['fsi'][D(0x22e)]({'pathParts':[s],'config':d});}const n=await this['fsi'][D(0x221)](l,g);if(n){Log['warn'](D(0x1ff)+g+D(0x203));return;}else{const t=this[D(0x1f5)]['pathFromProject'](l);Log[D(0x1f0)](D(0x1e8)+g+D(0x22b)+l[D(0x20b)](t,''));}const o=this['fsi'][D(0x211)](l)[D(0x1ec)]((u,v)=>{const E=D;return u['includes'](E(0x205))?v+0x1:null;})[D(0x1e6)](u=>u!==null);let p=this[D(0x1f5)][D(0x211)](l)[D(0x1ec)]((u,v)=>{const F=D;return u[F(0x223)](F(0x1f7))?v+0x1:null;})[D(0x1e6)](u=>u!==null),q=this[D(0x1f5)][D(0x211)](l)[D(0x1ec)]((u,v)=>{const G=D;return u[G(0x223)](G(0x214))?v+0x1:null;})[D(0x1e6)](u=>u!==null);p[D(0x22c)]>0x0&&q[D(0x22c)]>0x0&&(k['newForm']=!![]);m=this[D(0x1f5)][D(0x207)]({'srcPath':D(0x1e7),'framework':D(0x219),'context':k,'config':d});if(p[D(0x22c)]>0x0||q[D(0x22c)]>0x0){this[D(0x1f5)][D(0x200)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[D(0x22c)]>0x0)q=this[D(0x1f5)][D(0x211)](l)[D(0x1ec)]((u,v)=>{const H=D;return u['includes'](H(0x214))?v+0x1:null;})[D(0x1e6)](u=>u!==null),this[D(0x1f5)][D(0x200)]({'filePath':l,'content':'\x09{'+k[D(0x1e5)]+'}','lineNumber':q[0x0]});else p[D(0x22c)]>0x0?(p=this[D(0x1f5)][D(0x211)](l)['map']((u,v)=>{const I=D;return u['includes'](I(0x1f7))?v+0x1:null;})[D(0x1e6)](u=>u!==null),this[D(0x1f5)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[D(0x1e5)]+'}','lineNumber':p[0x0]})):Log['warn'](D(0x227)+l);}else{const u=this['fsi'][D(0x211)](l)[D(0x1ec)](x=>{return x['includes']('\x22*\x22');}),v=u['indexOf'](!![])>-0x1,w=v?D(0x1e4):D(0x22f);await this[D(0x1f5)]['injectIntoFile']({'filePath':l,'content':'\x0a\x09\x09'+m+D(0x1f8),'begin':'<Router','end':w});}}else{if(d[D(0x20f)][D(0x1df)]===D(0x230)){const x=this[D(0x1f5)]['pathFromApp']({'pathParts':[D(0x1f3),'startup','client',D(0x20d)]});l=this[D(0x1f5)][D(0x22e)]({'pathParts':[x],'config':d}),m=this[D(0x1f5)][D(0x207)]({'srcPath':'route/route.js','context':k}),await this[D(0x1f5)][D(0x217)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0x220)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a120m=a120d;function a120c(){const p=['checkNpmPackage','installNpmPackage','logger','services','service','184542rvkCUD','3759464JRAGBx','engines','(((.+)+)+)+$','withValue','maka\x20g:svc\x20service-logger\x20--type=logger','type','apply','pathFromApp','getMakaProjectConfig','Installing\x20winston','7sDHpww','415078UDlEPH','240Qdiabr','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','5ztyfHk','fsi','service/logger/logger.js','287658wlHrMB','svc','resourceName','10226024XYgFJQ','imports','maka\x20{generate,\x20g}:{service}\x20<resource-name>','945231OVwyxN','toString','winston\x20setimmediate','create','template','2183586QBDoQs'];a120c=function(){return p;};return a120c();}(function(a,b){const j=a120d,c=a();while(!![]){try{const d=-parseInt(j(0xf6))/0x1+-parseInt(j(0xea))/0x2+parseInt(j(0xfb))/0x3+-parseInt(j(0x102))/0x4*(parseInt(j(0xed))/0x5)+-parseInt(j(0x101))/0x6+parseInt(j(0xe9))/0x7*(parseInt(j(0xf3))/0x8)+parseInt(j(0xf0))/0x9*(parseInt(j(0xeb))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x9ea52));const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a120d;if(c){const e=c[k(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const l=a120d;return a120a[l(0xf7)]()['search'](l(0x104))['toString']()['constructor'](a120a)['search'](l(0x104));});a120a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0xe5;let f=c[d];return f;},a120d(a,b);}Generator[a120m(0xf9)]({'name':a120m(0x100),'aliases':[a120m(0xf1)],'usage':a120m(0xf5),'shortDesc':a120m(0xec),'requiredOpts':[{'name':'type','values':[a120m(0xfe)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a120m(0x106)]},async function(a,b){const n=a120m;try{const c=this[n(0xee)][n(0xe7)]();await this[n(0xee)][n(0x105)](c,async()=>{const o=n,d=this[o(0xee)][o(0xe6)]({}),f=paramCase(b[o(0xf2)]),g={'name':pascalCase(b[o(0xf2)]),'fileName':f,'camelCase':camelCase(b[o(0xf2)]),'type':b[o(0x107)],'engine':c[o(0x103)]['js'],'noRename':!![]};let h='js';c[o(0x103)]['js']==='tsx'&&(h='ts');if(b['type']===o(0xfe)){!this[o(0xee)][o(0xfc)]('winston')&&await this[o(0xee)][o(0xfd)](o(0xf8),{'cwd':d,'msg':o(0xe8)});const i=this[o(0xee)][o(0xe6)]({'pathParts':[o(0xf4),'startup','lib',o(0xff),f+'.'+h]});await this[o(0xee)][o(0xfa)]({'srcPath':o(0xef),'destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a123d,c=a();while(!![]){try{var d=parseInt(f(0x160))/0x1+-parseInt(f(0x153))/0x2*(-parseInt(f(0x159))/0x3)+parseInt(f(0x154))/0x4*(-parseInt(f(0x157))/0x5)+-parseInt(f(0x155))/0x6+parseInt(f(0x15b))/0x7*(-parseInt(f(0x15a))/0x8)+parseInt(f(0x158))/0x9+parseInt(f(0x15f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x8cca6));var a123b=(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;};}()),a123a=a123b(this,function(){var g=a123d;return a123a[g(0x15c)]()[g(0x15e)](g(0x156))[g(0x15c)]()[g(0x15d)](a123a)[g(0x15e)](g(0x156));});a123a();function a123c(){var h=['399036DJyPin','206XVMaYR','692336VbxqIT','1883796YGJeMF','(((.+)+)+)+$','25HCKgCM','1578978bQitOI','27801iNjWRW','16tKWNCS','1374002RrjAFR','toString','constructor','search','6196570hkoHgV'];a123c=function(){return h;};return a123c();}import'./translation.js';function a123d(a,b){var c=a123c();return a123d=function(d,e){d=d-0x153;var f=c[d];return f;},a123d(a,b);}import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121l=a121d;(function(a,b){const i=a121d,c=a();while(!![]){try{const d=parseInt(i(0x12c))/0x1*(-parseInt(i(0x12e))/0x2)+parseInt(i(0x144))/0x3+parseInt(i(0x136))/0x4+-parseInt(i(0x13e))/0x5*(-parseInt(i(0x13b))/0x6)+parseInt(i(0x130))/0x7+-parseInt(i(0x13a))/0x8*(parseInt(i(0x13f))/0x9)+-parseInt(i(0x143))/0xa*(parseInt(i(0x133))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x524b3));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a121d;if(c){const e=c[j(0x129)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const k=a121d;return a121a['toString']()[k(0x12b)](k(0x127))[k(0x128)]()[k(0x141)](a121a)[k(0x12b)](k(0x127));});function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x127;let f=c[d];return f;},a121d(a,b);}a121a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a121e from'path';function a121c(){const o=['430gcoeNf','669846aiWevR','getAppConfigPath','(((.+)+)+)+$','toString','apply','openssl.conf','search','3583QWHehi','join','158NuXmkV','sslconfig','2652370frNqpc','maka\x20{generate,\x20g}:sslconfig','getGlobalConfig','36718emntXe','env','appName','2241656LpThxo','error','fsi','Generate\x20a\x20new\x20openssl\x20config\x20file','3992WmAlFo','369822XgILVs','getMakaProjectConfig','withValue','5xgnYEa','8307mKZIAV','create','constructor','maka\x20g:sslconfig\x20--env\x20dev'];a121c=function(){return o;};return a121c();}Generator[a121l(0x140)]({'name':a121l(0x12f),'usage':a121l(0x131),'shortDesc':a121l(0x139),'noNeedResource':!![],'requiredOpts':[a121l(0x134)],'examples':[a121l(0x142)],'validOpts':[]},async function(a,b){const m=a121l;try{const c=await this['fsi'][m(0x13c)](),d=await this['fsi'][m(0x132)](),f=this[m(0x138)][m(0x145)](b[m(0x134)]),g=a121e[m(0x12d)](f,'_keys',m(0x12a));await this['fsi'][m(0x13d)](c,async()=>{const n=m,h={'app':d[n(0x135)],'noRename':!![]};await this[n(0x138)]['template']({'srcPath':'openssl/openssl.conf','destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log[m(0x137)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122A=a122d;(function(a,b){const x=a122d,c=a();while(!![]){try{const d=-parseInt(x(0x136))/0x1*(parseInt(x(0x135))/0x2)+parseInt(x(0x103))/0x3*(-parseInt(x(0xfc))/0x4)+parseInt(x(0x106))/0x5*(-parseInt(x(0x114))/0x6)+-parseInt(x(0x116))/0x7+parseInt(x(0x137))/0x8*(parseInt(x(0x12d))/0x9)+-parseInt(x(0x12a))/0xa+parseInt(x(0x122))/0xb*(parseInt(x(0x111))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x95c1b));const a122b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a122d;if(c){const e=c[y(0x11a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){const z=a122d;return a122a[z(0x113)]()['search'](z(0x119))[z(0x113)]()['constructor'](a122a)[z(0xfa)](z(0x119));});a122a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a122e from'fs';function a122d(a,b){const c=a122c();return a122d=function(d,e){d=d-0xf5;let f=c[d];return f;},a122d(a,b);}Generator[a122A(0x125)]({'name':a122A(0x11d),'usage':a122A(0x11f),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a122A(0xfb),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a122A(0x115),'description':'\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','examples':[a122A(0x10a),a122A(0x107),a122A(0x104)],'validOpts':[]},async function(a,b){const B=a122A;try{const c=this['fsi']['getMakaProjectConfig'](),d=this[B(0x121)][B(0x10c)](),f=this[B(0x121)][B(0x127)]();await this['fsi'][B(0x12e)](c,()=>{const C=B;try{!b[C(0xfb)]&&(b[C(0xfb)]='en');!b[C(0xfd)]&&!this[C(0x121)][C(0x131)](C(0xf5))&&(Log[C(0x12c)](C(0x10b)),this['fsi'][C(0x12b)](C(0x102),{'cwd':f}),this[C(0x121)]['setProjectConfig']('features.withTranslations',!![]));const g=this[C(0x121)]['pathFromApp']({'pathParts':[C(0x129),C(0x110),C(0x11b),C(0x139)]}),h=this[C(0x121)][C(0x117)]({'pathParts':[g],'config':c}),i=this[C(0x121)][C(0x126)](a122e[C(0x133)](h)[C(0x113)](),C(0x118))[0x0]&&!![];if(c[C(0x138)][C(0xf7)]===C(0x108)){!i&&this['fsi'][C(0x134)]({'filePath':h,'content':C(0x109)});const t=this[C(0x121)][C(0x128)]({'pathParts':[C(0x129),C(0x110),'server',C(0x139)]}),u=this[C(0x121)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this[C(0x121)]['grep'](a122e[C(0x133)](u)['toString'](),C(0x118))[0x0]&&!![];!v&&this['fsi'][C(0x134)]({'filePath':u,'content':C(0x109)});}else!i&&this['fsi'][C(0x134)]({'filePath':h,'content':C(0x109)});const j={'app':d[C(0x101)],'config':c},k=this[C(0x121)]['pathFromApp']({'pathParts':[C(0x129),C(0x110),'lib',C(0x120),C(0x130),C(0x10e)]}),l=this[C(0x121)][C(0x12f)](this[C(0x121)][C(0x117)]({'pathParts':[k],'config':c}));!l&&this['fsi'][C(0xfe)]({'srcPath':C(0x105),'destPath':k,'framework':C(0xf6),'context':j,'config':c});const m=this[C(0x121)][C(0x128)]({'pathParts':['imports',C(0x110),C(0x124),C(0x120),C(0x130),C(0x123),b[C(0xfb)]+C(0x10d)]}),n=this[C(0x121)][C(0x117)]({'pathParts':[m],'config':c}),o=this['fsi'][C(0x12f)](n);!o?this['fsi'][C(0xfe)]({'srcPath':'i18n/locales.js','destPath':m,'framework':C(0xf6),'context':j,'config':c}):Log[C(0x12c)](C(0x11c)+n);const p=this['fsi']['pathFromApp']({'pathParts':[C(0x129),C(0x110),C(0x124),C(0x120),C(0x130),'locales',C(0x11e)+c[C(0x138)]['js']]}),q=this['fsi'][C(0x117)]({'pathParts':[p],'config':c}),r=this[C(0x121)][C(0x12f)](q);!r&&this[C(0x121)][C(0xfe)]({'srcPath':C(0x112),'destPath':p,'framework':C(0xf6),'context':j,'config':c});const s=this[C(0x121)][C(0x126)](a122e['readFileSync'](p)[C(0x113)](),'default\x20as\x20'+b['lang'])[0x0]&&!![];!s?this[C(0x121)][C(0x10f)]({'filePath':p,'content':C(0xf8)+b[C(0xfb)]+C(0x100)+b[C(0xfb)]+'\x27;'}):Log['warn'](C(0xff)+p);}catch(w){Log[C(0xf9)](w),process[C(0x132)](0x1);}});}catch(g){Log[B(0xf9)](g),process[B(0x132)](0x1);}});function a122c(){const D=['maka\x20{generate,\x20g}:translation','services','fsi','3905xVVcfP','locales','lib','create','grep','findAppDirectory','pathFromApp','imports','4638720zHBJAj','installNpmPackage','warn','27MAhauo','withValue','isFile','translations','checkNpmPackage','exit','readFileSync','injectAtBeginningOfFile','2YeHwmE','369284wfkTsA','1919168OQkkBs','engines','index.js','i18next','service','ssr','export\x20{\x20default\x20as\x20','error','search','lang','1991548wtAOAQ','root','template','Locale\x20already\x20exported:\x20','\x20}\x20from\x20\x27./','appName','i18next\x20i18next-browser-languagedetector\x20react-i18next','3hSlbwX','maka\x20g:translation\x20--lang=de','i18n/i18n.js','10UWLasi','maka\x20g:translation\x20--lang=fr','true','import\x20\x27../lib/services/translations/i18n\x27;\x0a','maka\x20g:translation\x20--lang=en\x20(default)','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','getGlobalConfig','.js','i18n.js','injectAtEndOfFile','startup','92676vqkYSR','i18n/index.js','toString','2458266eVzsAR','Generate\x20a\x20new\x20locale\x20translation','4882395gAzNns','rewriteDestinationPathForEngine','import\x20\x27../lib/services/translations/i18n\x27;','(((.+)+)+)+$','apply','client','Locale\x20already\x20defined:\x20','translation','index.'];a122c=function(){return D;};return a122c();}
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125l=a125d;(function(a,b){const j=a125d,c=a();while(!![]){try{const d=-parseInt(j(0x16e))/0x1+-parseInt(j(0x169))/0x2+parseInt(j(0x16c))/0x3*(parseInt(j(0x15b))/0x4)+parseInt(j(0x167))/0x5+parseInt(j(0x16b))/0x6*(-parseInt(j(0x15a))/0x7)+-parseInt(j(0x166))/0x8+parseInt(j(0x159))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0xebb03));const a125b=(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;};}()),a125a=a125b(this,function(){const k=a125d;return a125a[k(0x15d)]()[k(0x168)](k(0x15c))['toString']()['constructor'](a125a)['search'](k(0x15c));});a125a();import a125e from'minimist';import a125f from'os';import a125g from'path';import a125h from'humps';import a125i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0x158;let f=c[d];return f;},a125d(a,b);}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a125l(0x16a)]),__dirname=a125g[a125l(0x163)](__filename);global[a125l(0x15e)]=__dirname;const total_memory=a125f['totalmem'](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a125l(0x161)](total_mem_in_mb),process[a125l(0x16d)][a125l(0x158)]=a125l(0x160)+total_mem_in_mb,process[a125l(0x16d)]['BROWSERSLIST_IGNORE_OLD_DATA']='1',process[a125l(0x16d)]['NODE_NO_WARNINGS']='1';const argv=a125e(process[a125l(0x15f)][a125l(0x165)](0x2)),args=argv['_'],deepCopyArgv=JSON[a125l(0x164)](JSON[a125l(0x162)](argv));delete deepCopyArgv['_'];function a125c(){const m=['6396kDkLMU','26097WxGDEF','env','985798VJKHyk','TOOL_NODE_FLAGS','18182349BrxnAo','3934UXVOCB','88wKVrPL','(((.+)+)+)+$','toString','MAKA_COMMAND_PATH','argv','--max-old-space-size=','floor','stringify','dirname','parse','slice','192808SJDvmp','6126270gnmuYj','search','1725046WiBYoe','url'];a125c=function(){return m;};return a125c();}const opts=a125h['camelizeKeys'](deepCopyArgv);a125i['run'](args,opts);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Meteor } from 'meteor/meteor';
|
|
2
|
-
<% if (api === 'rest') { %>import { Restivus } from 'meteor/maka:rest';<% } else { %>import { Restivus } from 'meteor/nimble:restivus';<% } %>
|
|
3
|
-
import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
|
|
4
|
-
|
|
5
|
-
const <%= name %>ApiV1 = new Restivus({
|
|
6
|
-
version: 'v1',
|
|
7
|
-
useDefaultAuth: false,
|
|
8
|
-
prettyJson: Meteor.isDevelopment
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
<%= name %>ApiV1.addCollection(<%= name %>);
|
|
1
|
+
import { Meteor } from 'meteor/meteor';
|
|
2
|
+
<% if (api === 'rest') { %>import { Restivus } from 'meteor/maka:rest';<% } else { %>import { Restivus } from 'meteor/nimble:restivus';<% } %>
|
|
3
|
+
import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
|
|
4
|
+
|
|
5
|
+
const <%= name %>ApiV1 = new Restivus({
|
|
6
|
+
version: 'v1',
|
|
7
|
+
useDefaultAuth: false,
|
|
8
|
+
prettyJson: Meteor.isDevelopment
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
<%= name %>ApiV1.addCollection(<%= name %>);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Meteor } from 'meteor/meteor';
|
|
2
|
-
<% if (api === 'rest') { %>import { Restivus } from 'meteor/maka:rest';<% } else { %>import { Restivus } from 'meteor/nimble:restivus';<% } %>
|
|
3
|
-
import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
|
|
4
|
-
|
|
5
|
-
const <%= name %>ApiV1 = new Restivus({
|
|
6
|
-
version: 'v1',
|
|
7
|
-
useDefaultAuth: false,
|
|
8
|
-
prettyJson: Meteor.isDevelopment
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
<%= name %>ApiV1.addCollection(<%= name %>);
|
|
1
|
+
import { Meteor } from 'meteor/meteor';
|
|
2
|
+
<% if (api === 'rest') { %>import { Restivus } from 'meteor/maka:rest';<% } else { %>import { Restivus } from 'meteor/nimble:restivus';<% } %>
|
|
3
|
+
import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
|
|
4
|
+
|
|
5
|
+
const <%= name %>ApiV1 = new Restivus({
|
|
6
|
+
version: 'v1',
|
|
7
|
+
useDefaultAuth: false,
|
|
8
|
+
prettyJson: Meteor.isDevelopment
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
<%= name %>ApiV1.addCollection(<%= name %>);
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import { Mongo } from 'meteor/mongo';
|
|
2
|
-
import { check, Match } from 'meteor/maka:check';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @memberof Server.<%= name %>
|
|
6
|
-
* @extends Mongo.Collection
|
|
7
|
-
*/
|
|
8
|
-
class <%= name %>Collection extends Mongo.Collection {
|
|
9
|
-
constructor() {
|
|
10
|
-
super('<%= name %>');
|
|
11
|
-
|
|
12
|
-
this.publicFields = {};
|
|
13
|
-
this.privateFields = {};
|
|
14
|
-
this.allow({
|
|
15
|
-
insert() { return false; },
|
|
16
|
-
update() { return false; },
|
|
17
|
-
remove() { return false; },
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
this.insertSchema = {};
|
|
21
|
-
this.updateSchema = {}; // Note: You'll likely want all properties to be Match.Optional()
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
find(selector = {}, modifier) {
|
|
25
|
-
return super.find(selector, modifier);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
findOne(selector = {}, modifier) {
|
|
29
|
-
return super.findOne(selector, modifier);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @public
|
|
34
|
-
* @param { object } doc The document to inserted.
|
|
35
|
-
* @param { object } callback The callback from invocation.
|
|
36
|
-
* @returns { string } The _id of the new doc.
|
|
37
|
-
*/
|
|
38
|
-
insert(doc) {
|
|
39
|
-
if (this._hasSchema()) {
|
|
40
|
-
check(doc, this.insertSchema, 'while validating mongo insert against schema');
|
|
41
|
-
}
|
|
42
|
-
return super.insert(doc);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @public
|
|
47
|
-
* @param { object | string } selector The mongodb selector.
|
|
48
|
-
* @param { object } modifier The mongodb modifier.
|
|
49
|
-
* @returns { string } The _id of the document updated.
|
|
50
|
-
* */
|
|
51
|
-
update(selector, modifier) {
|
|
52
|
-
if (this._hasSchema()) {
|
|
53
|
-
check(modifier.$set, this.updateSchema, 'while validating mongo update against schema');
|
|
54
|
-
}
|
|
55
|
-
return super.update(selector, modifier);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @public
|
|
60
|
-
* @param { object | string } selector The mongodb selector.
|
|
61
|
-
* @returns { string } The _id of the document being removed.
|
|
62
|
-
*/
|
|
63
|
-
remove(selector) {
|
|
64
|
-
return super.remove(selector);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// Helper method
|
|
68
|
-
_hasSchema = () => {
|
|
69
|
-
const { insertSchema, updateSchema } = this;
|
|
70
|
-
if (insertSchema) {
|
|
71
|
-
return (Object.keys(insertSchema).length !== 0
|
|
72
|
-
&& insertSchema.constructor === Object);
|
|
73
|
-
}
|
|
74
|
-
if (updateSchema) {
|
|
75
|
-
return (Object.keys(updateSchema).length !== 0
|
|
76
|
-
&& updateSchema.constructor === Object);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @memberof Server.<%= name %>
|
|
83
|
-
* @member <%= name %>
|
|
84
|
-
*/
|
|
85
|
-
const <%= name %> = new <%= name %>Collection();
|
|
86
|
-
export default <%= name %>;
|
|
1
|
+
import { Mongo } from 'meteor/mongo';
|
|
2
|
+
import { check, Match } from 'meteor/maka:check';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @memberof Server.<%= name %>
|
|
6
|
+
* @extends Mongo.Collection
|
|
7
|
+
*/
|
|
8
|
+
class <%= name %>Collection extends Mongo.Collection {
|
|
9
|
+
constructor() {
|
|
10
|
+
super('<%= name %>');
|
|
11
|
+
|
|
12
|
+
this.publicFields = {};
|
|
13
|
+
this.privateFields = {};
|
|
14
|
+
this.allow({
|
|
15
|
+
insert() { return false; },
|
|
16
|
+
update() { return false; },
|
|
17
|
+
remove() { return false; },
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
this.insertSchema = {};
|
|
21
|
+
this.updateSchema = {}; // Note: You'll likely want all properties to be Match.Optional()
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
find(selector = {}, modifier) {
|
|
25
|
+
return super.find(selector, modifier);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
findOne(selector = {}, modifier) {
|
|
29
|
+
return super.findOne(selector, modifier);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @public
|
|
34
|
+
* @param { object } doc The document to inserted.
|
|
35
|
+
* @param { object } callback The callback from invocation.
|
|
36
|
+
* @returns { string } The _id of the new doc.
|
|
37
|
+
*/
|
|
38
|
+
insert(doc) {
|
|
39
|
+
if (this._hasSchema()) {
|
|
40
|
+
check(doc, this.insertSchema, 'while validating mongo insert against schema');
|
|
41
|
+
}
|
|
42
|
+
return super.insert(doc);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @public
|
|
47
|
+
* @param { object | string } selector The mongodb selector.
|
|
48
|
+
* @param { object } modifier The mongodb modifier.
|
|
49
|
+
* @returns { string } The _id of the document updated.
|
|
50
|
+
* */
|
|
51
|
+
update(selector, modifier) {
|
|
52
|
+
if (this._hasSchema()) {
|
|
53
|
+
check(modifier.$set, this.updateSchema, 'while validating mongo update against schema');
|
|
54
|
+
}
|
|
55
|
+
return super.update(selector, modifier);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @public
|
|
60
|
+
* @param { object | string } selector The mongodb selector.
|
|
61
|
+
* @returns { string } The _id of the document being removed.
|
|
62
|
+
*/
|
|
63
|
+
remove(selector) {
|
|
64
|
+
return super.remove(selector);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Helper method
|
|
68
|
+
_hasSchema = () => {
|
|
69
|
+
const { insertSchema, updateSchema } = this;
|
|
70
|
+
if (insertSchema) {
|
|
71
|
+
return (Object.keys(insertSchema).length !== 0
|
|
72
|
+
&& insertSchema.constructor === Object);
|
|
73
|
+
}
|
|
74
|
+
if (updateSchema) {
|
|
75
|
+
return (Object.keys(updateSchema).length !== 0
|
|
76
|
+
&& updateSchema.constructor === Object);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @memberof Server.<%= name %>
|
|
83
|
+
* @member <%= name %>
|
|
84
|
+
*/
|
|
85
|
+
const <%= name %> = new <%= name %>Collection();
|
|
86
|
+
export default <%= name %>;
|
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
import { Mongo } from 'meteor/mongo';
|
|
2
|
-
import { check, Match } from 'meteor/maka:check';
|
|
3
|
-
|
|
4
|
-
interface <%=name%>Collection {
|
|
5
|
-
publicFields: any;
|
|
6
|
-
privateFields: any;
|
|
7
|
-
deny: any,
|
|
8
|
-
schema: any;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @memberof Server.<%= name %>
|
|
13
|
-
* @extends Mongo.Collection
|
|
14
|
-
*/
|
|
15
|
-
class <%= name %>Collection extends Mongo.Collection<<%=name%>Collection> {
|
|
16
|
-
constructor() {
|
|
17
|
-
super('<%= name %>');
|
|
18
|
-
|
|
19
|
-
this.publicFields = {};
|
|
20
|
-
this.privateFields = {};
|
|
21
|
-
this.allow({
|
|
22
|
-
insert() { return false; },
|
|
23
|
-
update() { return false; },
|
|
24
|
-
remove() { return false; },
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
this.insertSchema = {};
|
|
28
|
-
this.updateSchema = {}; // Note: You'll likely want all properties to be Match.Optional()
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
find(selector:any = {}, modifier:object) {
|
|
32
|
-
return super.find(selector, modifier);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
findOne(selector:any = {}, modifier:object) {
|
|
36
|
-
return super.findOne(selector, modifier);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @public
|
|
41
|
-
* @param { object } doc The document to inserted.
|
|
42
|
-
* @param { object } callback The callback from invocation.
|
|
43
|
-
* @returns { string } The _id of the new doc.
|
|
44
|
-
*/
|
|
45
|
-
insert(doc:any) {
|
|
46
|
-
if (this._hasSchema()) {
|
|
47
|
-
check(doc, this.insertSchema, 'while validating mongo insert against schema');
|
|
48
|
-
}
|
|
49
|
-
return super.insert(doc);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* @public
|
|
54
|
-
* @param { object | string } selector The mongodb selector.
|
|
55
|
-
* @param { object } modifier The mongodb modifier.
|
|
56
|
-
* @returns { string } The _id of the document updated.
|
|
57
|
-
* */
|
|
58
|
-
update(selector:any, modifier:UpdateModifier) {
|
|
59
|
-
if (this._hasSchema()) {
|
|
60
|
-
check(modifier.$set, this.updateSchema, 'while validating mongo update against schema');
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
return super.update(selector, modifier);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @public
|
|
68
|
-
* @param { object | string } selector The mongodb selector.
|
|
69
|
-
* @returns { string } The _id of the document being removed.
|
|
70
|
-
*/
|
|
71
|
-
remove(selector:any) {
|
|
72
|
-
return super.remove(selector);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// Helper method
|
|
76
|
-
_hasSchema = () => {
|
|
77
|
-
const { insertSchema, updateSchema } = this;
|
|
78
|
-
if (insertSchema) {
|
|
79
|
-
return (Object.keys(insertSchema).length !== 0
|
|
80
|
-
&& insertSchema.constructor === Object);
|
|
81
|
-
}
|
|
82
|
-
if (updateSchema) {
|
|
83
|
-
return (Object.keys(updateSchema).length !== 0
|
|
84
|
-
&& updateSchema.constructor === Object);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* @memberof Server.<%= name %>
|
|
91
|
-
* @member <%= name %>
|
|
92
|
-
*/
|
|
93
|
-
const <%= name %> = new <%= name %>Collection();
|
|
94
|
-
export default <%= name %>;
|
|
1
|
+
import { Mongo } from 'meteor/mongo';
|
|
2
|
+
import { check, Match } from 'meteor/maka:check';
|
|
3
|
+
|
|
4
|
+
interface <%=name%>Collection {
|
|
5
|
+
publicFields: any;
|
|
6
|
+
privateFields: any;
|
|
7
|
+
deny: any,
|
|
8
|
+
schema: any;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @memberof Server.<%= name %>
|
|
13
|
+
* @extends Mongo.Collection
|
|
14
|
+
*/
|
|
15
|
+
class <%= name %>Collection extends Mongo.Collection<<%=name%>Collection> {
|
|
16
|
+
constructor() {
|
|
17
|
+
super('<%= name %>');
|
|
18
|
+
|
|
19
|
+
this.publicFields = {};
|
|
20
|
+
this.privateFields = {};
|
|
21
|
+
this.allow({
|
|
22
|
+
insert() { return false; },
|
|
23
|
+
update() { return false; },
|
|
24
|
+
remove() { return false; },
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
this.insertSchema = {};
|
|
28
|
+
this.updateSchema = {}; // Note: You'll likely want all properties to be Match.Optional()
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
find(selector:any = {}, modifier:object) {
|
|
32
|
+
return super.find(selector, modifier);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
findOne(selector:any = {}, modifier:object) {
|
|
36
|
+
return super.findOne(selector, modifier);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
* @param { object } doc The document to inserted.
|
|
42
|
+
* @param { object } callback The callback from invocation.
|
|
43
|
+
* @returns { string } The _id of the new doc.
|
|
44
|
+
*/
|
|
45
|
+
insert(doc:any) {
|
|
46
|
+
if (this._hasSchema()) {
|
|
47
|
+
check(doc, this.insertSchema, 'while validating mongo insert against schema');
|
|
48
|
+
}
|
|
49
|
+
return super.insert(doc);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @public
|
|
54
|
+
* @param { object | string } selector The mongodb selector.
|
|
55
|
+
* @param { object } modifier The mongodb modifier.
|
|
56
|
+
* @returns { string } The _id of the document updated.
|
|
57
|
+
* */
|
|
58
|
+
update(selector:any, modifier:UpdateModifier) {
|
|
59
|
+
if (this._hasSchema()) {
|
|
60
|
+
check(modifier.$set, this.updateSchema, 'while validating mongo update against schema');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return super.update(selector, modifier);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @public
|
|
68
|
+
* @param { object | string } selector The mongodb selector.
|
|
69
|
+
* @returns { string } The _id of the document being removed.
|
|
70
|
+
*/
|
|
71
|
+
remove(selector:any) {
|
|
72
|
+
return super.remove(selector);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Helper method
|
|
76
|
+
_hasSchema = () => {
|
|
77
|
+
const { insertSchema, updateSchema } = this;
|
|
78
|
+
if (insertSchema) {
|
|
79
|
+
return (Object.keys(insertSchema).length !== 0
|
|
80
|
+
&& insertSchema.constructor === Object);
|
|
81
|
+
}
|
|
82
|
+
if (updateSchema) {
|
|
83
|
+
return (Object.keys(updateSchema).length !== 0
|
|
84
|
+
&& updateSchema.constructor === Object);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @memberof Server.<%= name %>
|
|
91
|
+
* @member <%= name %>
|
|
92
|
+
*/
|
|
93
|
+
const <%= name %> = new <%= name %>Collection();
|
|
94
|
+
export default <%= name %>;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { Meteor } from 'meteor/meteor';
|
|
2
|
-
import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* If the <%= name %> collection is empty on server start, and you'd like to
|
|
6
|
-
* populate it with some data here is a handy spot.
|
|
7
|
-
*
|
|
8
|
-
* Example:
|
|
9
|
-
* ```
|
|
10
|
-
* if (<%= name %>.find({}).count() === 0) {
|
|
11
|
-
* const data = JSON.parse(Assets.getText('<%= fileName %>.json')) || [ {} ];
|
|
12
|
-
* data.forEach((datum) => {
|
|
13
|
-
* <%= name %>.insert(datum);
|
|
14
|
-
* });
|
|
15
|
-
* }
|
|
16
|
-
*
|
|
17
|
-
* ```
|
|
18
|
-
* @memberof Server.<%= name %>
|
|
19
|
-
* @member Fixtures
|
|
20
|
-
*/
|
|
21
|
-
Meteor.startup(() => {
|
|
22
|
-
|
|
23
|
-
});
|
|
1
|
+
import { Meteor } from 'meteor/meteor';
|
|
2
|
+
import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* If the <%= name %> collection is empty on server start, and you'd like to
|
|
6
|
+
* populate it with some data here is a handy spot.
|
|
7
|
+
*
|
|
8
|
+
* Example:
|
|
9
|
+
* ```
|
|
10
|
+
* if (<%= name %>.find({}).count() === 0) {
|
|
11
|
+
* const data = JSON.parse(Assets.getText('<%= fileName %>.json')) || [ {} ];
|
|
12
|
+
* data.forEach((datum) => {
|
|
13
|
+
* <%= name %>.insert(datum);
|
|
14
|
+
* });
|
|
15
|
+
* }
|
|
16
|
+
*
|
|
17
|
+
* ```
|
|
18
|
+
* @memberof Server.<%= name %>
|
|
19
|
+
* @member Fixtures
|
|
20
|
+
*/
|
|
21
|
+
Meteor.startup(() => {
|
|
22
|
+
|
|
23
|
+
});
|