@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.
Files changed (112) hide show
  1. package/README.md +4 -0
  2. package/bundle/obf/package.json +1 -1
  3. package/bundle/obf/src/command.js +1 -1
  4. package/bundle/obf/src/commands/_index.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/build/_index.js +1 -1
  18. package/bundle/obf/src/commands/build/build.js +1 -1
  19. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/create.js +1 -1
  21. package/bundle/obf/src/commands/debug.js +1 -1
  22. package/bundle/obf/src/commands/deploy.js +1 -1
  23. package/bundle/obf/src/commands/game/_index.js +1 -1
  24. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/game/play.command.js +1 -1
  26. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/generate.js +1 -1
  30. package/bundle/obf/src/commands/get/_index.js +1 -1
  31. package/bundle/obf/src/commands/get/get.command.js +1 -1
  32. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  34. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/help.js +1 -1
  36. package/bundle/obf/src/commands/install.js +1 -1
  37. package/bundle/obf/src/commands/jsdoc.js +1 -1
  38. package/bundle/obf/src/commands/lint.js +1 -1
  39. package/bundle/obf/src/commands/login.js +1 -1
  40. package/bundle/obf/src/commands/logout.js +1 -1
  41. package/bundle/obf/src/commands/logs.js +1 -1
  42. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  43. package/bundle/obf/src/commands/murder.js +1 -1
  44. package/bundle/obf/src/commands/proxy.js +1 -1
  45. package/bundle/obf/src/commands/reconfig.js +1 -1
  46. package/bundle/obf/src/commands/run/_index.js +1 -1
  47. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  48. package/bundle/obf/src/commands/run/run.command.js +1 -1
  49. package/bundle/obf/src/commands/set/_index.js +1 -1
  50. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  51. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  52. package/bundle/obf/src/commands/set/set.command.js +1 -1
  53. package/bundle/obf/src/commands/ssh.js +1 -1
  54. package/bundle/obf/src/commands/ssl.js +1 -1
  55. package/bundle/obf/src/commands/test.js +1 -1
  56. package/bundle/obf/src/commands/version.js +1 -1
  57. package/bundle/obf/src/error.js +1 -1
  58. package/bundle/obf/src/generator.js +1 -1
  59. package/bundle/obf/src/generators/_index.js +1 -1
  60. package/bundle/obf/src/generators/api.js +1 -1
  61. package/bundle/obf/src/generators/collection.js +1 -1
  62. package/bundle/obf/src/generators/component.js +1 -1
  63. package/bundle/obf/src/generators/config.js +1 -1
  64. package/bundle/obf/src/generators/dbc.js +1 -1
  65. package/bundle/obf/src/generators/dockerfile.js +1 -1
  66. package/bundle/obf/src/generators/hook.js +1 -1
  67. package/bundle/obf/src/generators/kit.js +1 -1
  68. package/bundle/obf/src/generators/layout.js +1 -1
  69. package/bundle/obf/src/generators/maka.gen.js +1 -1
  70. package/bundle/obf/src/generators/methods.js +1 -1
  71. package/bundle/obf/src/generators/package.js +1 -1
  72. package/bundle/obf/src/generators/page.js +1 -1
  73. package/bundle/obf/src/generators/publish.js +1 -1
  74. package/bundle/obf/src/generators/route.js +1 -1
  75. package/bundle/obf/src/generators/service.js +1 -1
  76. package/bundle/obf/src/generators/services/_index.js +1 -1
  77. package/bundle/obf/src/generators/services/openssl.js +1 -1
  78. package/bundle/obf/src/generators/services/translation.js +1 -1
  79. package/bundle/obf/src/maka.js +1 -1
  80. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +20 -6
  81. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +21 -7
  82. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +10 -0
  83. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +10 -0
  84. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +25 -14
  85. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +25 -13
  86. package/bundle/obf/src/templates/meteor/template/template.js.jsx +1 -1
  87. package/bundle/obf/src/templates/meteor/template/template.js.tsx +1 -1
  88. package/bundle/obf/src/templates/react/component/component.js.jsx +2 -6
  89. package/bundle/obf/src/templates/react/component/component.js.tsx +2 -6
  90. package/bundle/obf/src/templates/react/hook/hook.js.jsx +1 -5
  91. package/bundle/obf/src/templates/react/hook/hook.js.tsx +1 -5
  92. package/bundle/obf/src/tool.js +1 -1
  93. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  94. package/bundle/obf/src/tools/actions/actions.test.js +1 -1
  95. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  96. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  97. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  98. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  99. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  100. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  101. package/bundle/obf/src/tools/https/https.class.js +1 -1
  102. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  103. package/bundle/obf/src/tools/log/log.class.js +1 -1
  104. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  105. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  106. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  107. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  108. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  109. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  110. package/jest.config.js +11 -0
  111. package/package.json +5 -4
  112. package/tsconfig.json +1 -1
@@ -1 +1 @@
1
- (function(a,b){var f=a97d,c=a();while(!![]){try{var d=-parseInt(f(0x1b6))/0x1*(parseInt(f(0x1b9))/0x2)+-parseInt(f(0x1af))/0x3*(-parseInt(f(0x1b4))/0x4)+-parseInt(f(0x1b2))/0x5*(parseInt(f(0x1b5))/0x6)+parseInt(f(0x1b3))/0x7*(parseInt(f(0x1b1))/0x8)+parseInt(f(0x1ae))/0x9+parseInt(f(0x1b8))/0xa+parseInt(f(0x1ad))/0xb*(-parseInt(f(0x1ba))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x4e77f));function a97c(){var h=['2JyjlZY','toString','3280140AcBYGA','570544oKsBCz','300OwPJJm','63316LCMWMr','5397435dIvXRi','299067SveyBr','(((.+)+)+)+$','33688YzyEdw','171585kCTVRa','196tQMXqv','12AYEQpD','54YibJJQ'];a97c=function(){return h;};return a97c();}function a97d(a,b){var c=a97c();return a97d=function(d,e){d=d-0x1ad;var f=c[d];return f;},a97d(a,b);}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(0x1b7)]()['search'](g(0x1b0))['toString']()['constructor'](a97a)['search']('(((.+)+)+)+$');});a97a();export{};
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 a99h=a99d;(function(a,b){const f=a99d,c=a();while(!![]){try{const d=-parseInt(f(0x152))/0x1+-parseInt(f(0x14b))/0x2*(-parseInt(f(0x146))/0x3)+parseInt(f(0x148))/0x4+-parseInt(f(0x157))/0x5+-parseInt(f(0x15e))/0x6*(parseInt(f(0x15d))/0x7)+-parseInt(f(0x151))/0x8+parseInt(f(0x14e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xa7520));function a99c(){const k=['-new','openssl','1713272AYeFYI','319653JOmTPL','search','openssl.conf','-x509','-newkey','4842770YffBvy','-keyout','useConfig','toString','-config','constructor','827869lbaQol','6JjWaje','(((.+)+)+)+$','genSSC','-nodes','-out','crtName','genCSR','inherit','push','cwd','507531kaXukR','req','415872PTzube','-key','rsa:2048','6JlkOYD','keyName','csrName','15250302YazCmG'];a99c=function(){return k;};return a99c();}function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x142;let f=c[d];return f;},a99d(a,b);}const a99b=(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;};}()),a99a=a99b(this,function(){const g=a99d;return a99a['toString']()[g(0x153)](g(0x15f))[g(0x15a)]()[g(0x15c)](a99a)[g(0x153)](g(0x15f));});a99a();import{spawnSync}from'child_process';export class SSL{static[a99h(0x142)](a){const i=a99h,b=a[i(0x145)]?a[i(0x145)]:process[i(0x145)](),c=['req',i(0x14f),i(0x156),i(0x14a),i(0x161),i(0x158),a[i(0x14c)],i(0x162),a[i(0x14d)]];a[i(0x159)]&&(c[i(0x144)]('-config'),c[i(0x144)](i(0x154))),spawnSync(i(0x150),c,{'stdio':i(0x143),'cwd':b});}static[a99h(0x160)](a){const j=a99h,b=a[j(0x145)]?a[j(0x145)]:process[j(0x145)](),c=[j(0x147),j(0x155),j(0x14f),j(0x149),a[j(0x14c)],j(0x162),a[j(0x163)]];a[j(0x159)]&&(c[j(0x144)](j(0x15b)),c[j(0x144)](j(0x154))),spawnSync(j(0x150),c,{'stdio':'inherit','cwd':b});}}
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
@@ -0,0 +1,11 @@
1
+ export default {
2
+ preset: 'ts-jest',
3
+ testEnvironment: 'node',
4
+ testMatch: ['**/*.test.ts'],
5
+ moduleFileExtensions: ['ts', 'js'],
6
+ transform: {
7
+ '^.+\\.ts$': 'ts-jest',
8
+ },
9
+ coveragePathIgnorePatterns: ['/bundle'],
10
+ };
11
+
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.3",
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": "mocha 'src/**/*.test.ts'",
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
  },
package/tsconfig.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "sourceMap": true,
17
17
  "baseUrl": "."
18
18
  },
19
- "exclude": ["node_modules", "bundle", "src/templates"],
19
+ "exclude": ["node_modules", "bundle", "src/templates", "**/*.test.ts", "**/*.test.js"],
20
20
  "include": [
21
21
  "./src"
22
22
  ]