@maka/maka-cli 4.5.3 → 4.5.6
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/README.md +4 -0
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.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/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.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/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/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/kit.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/app/imports/startup/client/index.js.jsx +20 -6
- package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +21 -7
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +10 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +10 -0
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +25 -14
- package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +25 -13
- package/bundle/obf/src/templates/meteor/template/template.js.jsx +1 -1
- package/bundle/obf/src/templates/meteor/template/template.js.tsx +1 -1
- package/bundle/obf/src/templates/react/component/component.js.jsx +2 -6
- package/bundle/obf/src/templates/react/component/component.js.tsx +2 -6
- package/bundle/obf/src/templates/react/hook/hook.js.jsx +1 -5
- package/bundle/obf/src/templates/react/hook/hook.js.tsx +1 -5
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/actions/actions.test.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/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 -0
- package/package.json +5 -4
- package/tsconfig.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a97d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a97d,c=a();while(!![]){try{var d=-parseInt(f(0x1d6))/0x1+-parseInt(f(0x1d7))/0x2+-parseInt(f(0x1d4))/0x3+parseInt(f(0x1cd))/0x4+-parseInt(f(0x1d5))/0x5*(parseInt(f(0x1d2))/0x6)+-parseInt(f(0x1d3))/0x7*(parseInt(f(0x1cb))/0x8)+parseInt(f(0x1ce))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x4112e));var a97b=(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;};}()),a97a=a97b(this,function(){var g=a97d;return a97a[g(0x1cf)]()[g(0x1cc)]('(((.+)+)+)+$')[g(0x1cf)]()[g(0x1d1)](a97a)[g(0x1cc)](g(0x1d0));});function a97d(a,b){var c=a97c();return a97d=function(d,e){d=d-0x1cb;var f=c[d];return f;},a97d(a,b);}a97a();export{};function a97c(){var h=['15dbeynl','441460WlmgPN','732782vfLiFZ','8fdJOor','search','1522020TsUxwx','9826407azyXEq','toString','(((.+)+)+)+$','constructor','754674UHEhEd','53977zdVhOE','38661NwasHx'];a97c=function(){return h;};return a97c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x1db;let f=c[d];return f;},a99d(a,b);}const a99i=a99d;(function(a,b){const f=a99d,c=a();while(!![]){try{const d=parseInt(f(0x1e1))/0x1+parseInt(f(0x1ef))/0x2+parseInt(f(0x1f8))/0x3*(-parseInt(f(0x1ec))/0x4)+-parseInt(f(0x1fc))/0x5*(-parseInt(f(0x1e5))/0x6)+-parseInt(f(0x1f5))/0x7*(parseInt(f(0x1db))/0x8)+-parseInt(f(0x1f0))/0x9*(parseInt(f(0x1ed))/0xa)+-parseInt(f(0x1f7))/0xb*(-parseInt(f(0x1e3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x6c5f9));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a99d;if(c){const e=c[g(0x1dd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const h=a99d;return a99a[h(0x1de)]()['search'](h(0x1ee))['toString']()[h(0x1dc)](a99a)[h(0x1f6)](h(0x1ee));});a99a();function a99c(){const l=['6112aGjULk','-out','5292bhZqNF','-key','12xNzoXR','-new','useConfig','-nodes','inherit','csrName','openssl.conf','8HdxrHR','100XzFzri','(((.+)+)+)+$','1485628VjBsjF','697725EcYmSp','crtName','-config','cwd','keyName','14UamvUI','search','17897CnvcpC','225372rkDwNh','push','-x509','genCSR','840820hbGres','1733464xsTJpR','constructor','apply','toString','req','genSSC'];a99c=function(){return l;};return a99c();}import{spawnSync}from'child_process';export class SSL{static[a99i(0x1fb)](a){const j=a99i,b=a['cwd']?a[j(0x1f3)]:process[j(0x1f3)](),c=[j(0x1df),'-new','-newkey','rsa:2048',j(0x1e8),'-keyout',a[j(0x1f4)],j(0x1e2),a[j(0x1ea)]];a[j(0x1e7)]&&(c[j(0x1f9)](j(0x1f2)),c[j(0x1f9)](j(0x1eb))),spawnSync('openssl',c,{'stdio':'inherit','cwd':b});}static[a99i(0x1e0)](a){const k=a99i,b=a[k(0x1f3)]?a[k(0x1f3)]:process['cwd'](),c=['req',k(0x1fa),k(0x1e6),k(0x1e4),a[k(0x1f4)],'-out',a[k(0x1f1)]];a[k(0x1e7)]&&(c[k(0x1f9)](k(0x1f2)),c[k(0x1f9)](k(0x1eb))),spawnSync('openssl',c,{'stdio':k(0x1e9),'cwd':b});}}
|
package/jest.config.js
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
3
|
"//": "NOTE: don't forget to update version.ts and fsi.class.ts",
|
|
4
|
-
"version": "4.5.
|
|
4
|
+
"version": "4.5.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
|
|
7
7
|
"description": "A command line tool for scaffolding Meteor 2.x applications using React.",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"scripts": {
|
|
23
23
|
"lint": "eslint src/ --fix",
|
|
24
24
|
"maka": "./typescript/src/maka.js",
|
|
25
|
-
"test": "
|
|
25
|
+
"test": "jest",
|
|
26
26
|
"develop": "npm run build && concurrently \"tsc -w\" \"wait-on -d 10 ./bundle/typescript/src/maka.js && chmod +x ./bundle/typescript/src/maka.js\" \"cp -R ./src/templates ./bundle/typescript/src/templates/\"",
|
|
27
27
|
"build": "npm run lint && rm -rf ./bundle && rm -rf ./compiled && tsc && npm run obf && npm run prep",
|
|
28
28
|
"obf": "javascript-obfuscator ./bundle/typescript/src --exclude=bundle/typescript/src/templates/**/** --output ./bundle/obf/src/ --config=obfuscator.json",
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"@types/fibers": "^3.1.1",
|
|
72
72
|
"@types/humps": "^2.0.2",
|
|
73
73
|
"@types/inquirer": "^9.0.3",
|
|
74
|
+
"@types/jest": "^29.5.3",
|
|
74
75
|
"@types/jsonwebtoken": "^9.0.2",
|
|
75
76
|
"@types/meteor": "^2.9.2",
|
|
76
77
|
"@types/minimist": "^1.2.2",
|
|
77
|
-
"@types/mocha": "^10.0.1",
|
|
78
78
|
"@types/node": "^20.1.1",
|
|
79
79
|
"@types/react": "^18.2.6",
|
|
80
80
|
"@types/react-dom": "^18.2.4",
|
|
@@ -90,9 +90,10 @@
|
|
|
90
90
|
"eslint-plugin-import": "^2.27.5",
|
|
91
91
|
"husky": "^8.0.3",
|
|
92
92
|
"javascript-obfuscator": "^4.0.2",
|
|
93
|
+
"jest": "^29.6.2",
|
|
93
94
|
"mkdirp": "^3.0.1",
|
|
94
|
-
"mocha": "^10.2.0",
|
|
95
95
|
"pkg": "^5.8.1",
|
|
96
|
+
"ts-jest": "^29.1.1",
|
|
96
97
|
"typescript": "^5.0.4",
|
|
97
98
|
"wait-on": "^7.0.1"
|
|
98
99
|
},
|