@maka/maka-cli 4.9.8 → 4.9.11
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 +1 -1
- package/bundle/obf/package.json +1 -2
- package/bundle/obf/src/README.md +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/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/patreon.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.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 +1 -1
- package/bundle/obf/src/templates/meteor/api/api.js.ts +0 -1
- package/bundle/obf/src/templates/meteor/collection/collection.js +15 -49
- package/bundle/obf/src/templates/meteor/collection/collection.js.ts +19 -61
- package/bundle/obf/src/templates/meteor/project/package.json +1 -1
- 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/package.json +1 -2
- package/bundle/obf/src/templates/meteor/api/collection.js +0 -86
- package/bundle/obf/src/templates/meteor/api/collection.js.ts +0 -94
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
import { Mongo } from 'meteor/mongo'
|
|
2
|
-
|
|
1
|
+
import { Mongo } from 'meteor/mongo';<% if (where === 'client') { -%>
|
|
2
|
+
export const <%= name %> = new Mongo.Collection(null);<% } else { %>
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<% } else { %>
|
|
7
|
-
interface <%=name%>Collection {
|
|
8
|
-
publicFields: any;
|
|
4
|
+
class <%= name %>Collection extends Mongo.Collection<<%=name%>Collection> {
|
|
5
|
+
publicFields: any;
|
|
9
6
|
privateFields: any;
|
|
10
|
-
|
|
11
|
-
schema: any;
|
|
12
|
-
}
|
|
7
|
+
allow: any = () => {};
|
|
13
8
|
|
|
14
|
-
/**
|
|
15
|
-
* @memberof Server.<%= name %>
|
|
16
|
-
* @extends Mongo.Collection
|
|
17
|
-
*/
|
|
18
|
-
class <%= name %>Collection extends Mongo.Collection<<%=name%>Collection> {
|
|
19
9
|
constructor() {
|
|
20
10
|
super('<%= name %>');
|
|
21
11
|
|
|
@@ -26,66 +16,34 @@ class <%= name %>Collection extends Mongo.Collection<<%=name%>Collection> {
|
|
|
26
16
|
update() { return false; },
|
|
27
17
|
remove() { return false; },
|
|
28
18
|
});
|
|
19
|
+
}
|
|
29
20
|
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
async createIndexAsync(index: any, options: any) {
|
|
22
|
+
return await createIndexAsync(index, options);
|
|
32
23
|
}
|
|
33
24
|
|
|
34
|
-
find(selector
|
|
25
|
+
find(selector = {}, modifier?: any) {
|
|
35
26
|
return super.find(selector, modifier);
|
|
36
27
|
}
|
|
37
28
|
|
|
38
|
-
|
|
39
|
-
return super.
|
|
29
|
+
async findOneAsync(selector = {}, modifier?: any) {
|
|
30
|
+
return super.findOneAsync(selector, modifier);
|
|
40
31
|
}
|
|
41
32
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
* @param { object } doc The document to inserted.
|
|
45
|
-
* @param { object } callback The callback from invocation.
|
|
46
|
-
* @returns { string } The _id of the new doc.
|
|
47
|
-
*/
|
|
48
|
-
insert(doc:any) {
|
|
49
|
-
if (this._hasSchema()) {
|
|
50
|
-
check(doc, this.insertSchema, 'while validating mongo insert against schema');
|
|
51
|
-
}
|
|
52
|
-
return super.insert(doc);
|
|
33
|
+
async insertAsync(doc: any) {
|
|
34
|
+
return await super.insertAsync(doc);
|
|
53
35
|
}
|
|
54
36
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
* @param { object | string } selector The mongodb selector.
|
|
58
|
-
* @param { object } modifier The mongodb modifier.
|
|
59
|
-
* @returns { string } The _id of the document updated.
|
|
60
|
-
* */
|
|
61
|
-
update(selector:any, modifier:UpdateModifier) {
|
|
62
|
-
if (this._hasSchema()) {
|
|
63
|
-
check(modifier.$set, this.updateSchema, 'while validating mongo update against schema');
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return super.update(selector, modifier);
|
|
37
|
+
async updateAsync(selector: any, modifier?: any) {
|
|
38
|
+
return await super.updateAsync(selector, modifier);
|
|
67
39
|
}
|
|
68
40
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
* @param { object | string } selector The mongodb selector.
|
|
72
|
-
* @returns { string } The _id of the document being removed.
|
|
73
|
-
*/
|
|
74
|
-
remove(selector:any) {
|
|
75
|
-
return super.remove(selector);
|
|
41
|
+
async upsertAsync(selector: any, modifier?: any, options?: any) {
|
|
42
|
+
return await super.upsertAsync(selector, modifier, options);
|
|
76
43
|
}
|
|
77
44
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
const { insertSchema, updateSchema } = this;
|
|
81
|
-
if (insertSchema) {
|
|
82
|
-
return (Object.keys(insertSchema).length !== 0
|
|
83
|
-
&& insertSchema.constructor === Object);
|
|
84
|
-
}
|
|
85
|
-
if (updateSchema) {
|
|
86
|
-
return (Object.keys(updateSchema).length !== 0
|
|
87
|
-
&& updateSchema.constructor === Object);
|
|
88
|
-
}
|
|
45
|
+
async removeAsync(selector: any) {
|
|
46
|
+
return await super.removeAsync(selector);
|
|
89
47
|
}
|
|
90
48
|
}
|
|
91
49
|
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a129K=a129d;(function(a,b){const I=a129d,c=a();while(!![]){try{const d
|
|
1
|
+
function a129d(a,b){const c=a129c();return a129d=function(d,e){d=d-0x1c5;let f=c[d];return f;},a129d(a,b);}const a129K=a129d;(function(a,b){const I=a129d,c=a();while(!![]){try{const d=-parseInt(I(0x1f2))/0x1*(parseInt(I(0x1d1))/0x2)+parseInt(I(0x1d9))/0x3*(parseInt(I(0x1fe))/0x4)+parseInt(I(0x216))/0x5+parseInt(I(0x211))/0x6*(-parseInt(I(0x1f9))/0x7)+parseInt(I(0x1da))/0x8+parseInt(I(0x1ff))/0x9*(parseInt(I(0x1ef))/0xa)+parseInt(I(0x200))/0xb*(-parseInt(I(0x1cd))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0xad747));const a129b=(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;};}()),a129a=a129b(this,function(){const J=a129d;return a129a['toString']()['search'](J(0x217))['toString']()[J(0x205)](a129a)[J(0x207)](J(0x217));});a129a();import a129e from'path';import a129f from'os';import a129g from'fs';const homeDir=a129f['homedir']();import{Docker}from'./tools/docker/docker.class.js';function a129c(){const a1=['search','domainLicense','isGenerator','existsSync','parent','push','usage','guest','ask','validateUserIsLoggedIn','126qVzxDR','roles','root','error','cwd','464840QGQfRm','(((.+)+)+)+$','formatToNamedParam','shortDesc','resourceName','.meteor','length','config','validateMakaProject','aliases','includes','22344DqOzKG','Local','docker','Please\x20choose\x20a\x20valid\x20value\x20for\x20','611634OIdeRd','help','join','isCommand','Please\x20provide\x20a\x20resource\x20name:','None','proCommands','Invalid\x20option:\x20','366078RRlAsy','7196320sPElli','list','env','getMakaProjectConfig','Invalid\x20value\x20for\x20','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','match','map','validateParams','getAppProjectConfigs','remapShortToLong','keys','every','find','exit','examples','_handler','indexOf','Invalid\x20argument:\x20','No\x20description\x20provided.','10nlXGoD','concat','fsi','1KJXADz','dir','\x20version\x20','To\x20use\x20this\x20command,\x20\x22','getPro','user','charAt','278397awrqvx','proGenerators','disableAuthCheck','string','name','12NzErOM','5156631tSaFSG','473XUFRVE','win32','platform','description','singleLicense','constructor','options'];a129c=function(){return a1;};return a129c();}import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{[a129K(0x1cf)];['fsi'];[a129K(0x206)];[a129K(0x1fd)];['parent'];[a129K(0x1eb)];constructor(){const L=a129K;this[L(0x1cf)]=new Docker(),this[L(0x1f1)]=new FSI();}['getShortName'](a){const M=a129K;return a[M(0x1f8)](0x0);}['remapShortToLong'](a,b){const N=a129K,c=this[N(0x218)](b),d={...a};for(const e of c){const f=this['getShortName'](e[N(0x1fd)]);a[f]&&(d[e[N(0x1fd)]]=a[f],delete d[f]);}return d;}[a129K(0x218)](a){const O=a129K;if(a[O(0x1e7)](b=>typeof b===O(0x1fc)))return a[O(0x1e2)](b=>({'name':b}));return a;}[a129K(0x1e1)](a){const P=a129K,b=[this[P(0x1fd)]][P(0x1f0)](this[P(0x206)][P(0x1cb)]||[]);return this[P(0x20b)]&&b[P(0x20c)](this[P(0x20b)]),b[P(0x1cc)](a);}[a129K(0x1ca)](){const a=this['fsi']['findProjectDirectory']();return a!==![]?!![]:![];}async[a129K(0x210)](){const Q=a129K,a=await this[Q(0x1f1)][Q(0x1f6)]();return a?.['user']&&a?.[Q(0x1f7)]!==Q(0x20e)?!![]:![];}['validateMeteorInstall'](){const R=a129K;let a=a129e[R(0x1d3)](homeDir,'.meteor');const b=process[R(0x202)]===R(0x201);if(b){a=a129e[R(0x1d3)](homeDir,'AppData',R(0x1ce),R(0x1c7));if(!a129g[R(0x20a)](a))return![];}else{if(!a129g['existsSync'](a))return![];}return!![];}['validateEngines'](a){const S=a129K,b=this[S(0x1f1)][S(0x1dd)](),c=b['engines'],d=Object['keys'](a);if(d[S(0x1c8)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log['error']('You\x20must\x20have\x20'+e+S(0x1f4)+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async[a129K(0x1e3)](a,b,c){const T=a129K,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object['keys'](b);if(h[T(0x1cc)](T(0x1c6))&&b[T(0x1c6)]===undefined&&!g){const m=await Actions['ask'](T(0x1d5));b[T(0x1c6)]=m;}let i=[],j=b;if(d){i=this[T(0x218)](d),j=this[T(0x1e5)](b,i);if(i&&i?.[T(0x1c8)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[T(0x1e6)](j)[T(0x1cc)](o)){if(o==='env'){const r=this[T(0x1f1)][T(0x1e4)](),s=await Actions[T(0x206)]({'type':T(0x1db),'name':T(0x1dc),'message':'Please\x20choose\x20an\x20environment','choices':r});b[T(0x1dc)]=s[T(0x1dc)];}else{const t=p;if(t){const u=await Actions[T(0x206)]({'type':T(0x1db),'name':o,'message':'Please\x20choose\x20a\x20value\x20for\x20'+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[T(0x20f)]('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v[T(0x1e1)](q))b[o]=v;else{Log[T(0x214)](T(0x1de)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[T(0x20f)]('Please\x20provide\x20a\x20value\x20for\x20'+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[T(0x1cc)](x)){Log[T(0x214)](T(0x1de)+o+':\x20'+x);throw new UsageError();}}}}let k=this[T(0x218)](f),l=b;if(k&&Object[T(0x1e6)](k)?.['length']>0x0){k=k[T(0x1f0)](i||[]),k['push']({'name':T(0x1c6),'hidden':!![]}),k[T(0x20c)]({'name':T(0x1d2),'boolFlag':!![]}),k[T(0x20c)]({'name':T(0x1f3),'hidden':!![]}),k[T(0x20c)]({'name':T(0x215),'hidden':!![]}),k[T(0x20c)]({'name':T(0x213),'hidden':!![]}),k['push']({'name':T(0x1c9),'hidden':!![]}),l=this[T(0x1e5)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[T(0x1cc)](B))){const C=A;if(C){const D=await Actions[T(0x206)]({'type':T(0x1db),'name':z,'message':T(0x1d0)+z,'choices':A});l[z]=D[z];}}if(k['length']>0x0)for(const E of Object['keys'](l)){const F=k[T(0x1e8)](G=>G['name']===E);if(!F){Log[T(0x214)](T(0x1d8)+E);throw new UsageError();}}}}if(e&&e?.[T(0x1c8)]>0x0)for(const G of e){if(!e['includes'](G)){Log[T(0x214)](T(0x1ed)+G);const H=await Actions[T(0x20f)](T(0x1e0)+G);a[a[T(0x1ec)](G)]=H;}}return Object['assign'](j,l);}async['validateMakaSubscription'](a){const U=a129K;try{if(!a)return;const b=await this['fsi'][U(0x1f6)]();!b&&(Log['error']('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process['exit'](0x1));const c=!b?.[U(0x212)][U(0x1cc)](U(0x204))&&!b?.[U(0x212)][U(0x1cc)](U(0x208));if(this['isCommand'](a)){const d=U(0x1f5)+a[U(0x1fd)]+'\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27';if(a['options'][U(0x1fb)])return;const f=b?.[U(0x1d7)][U(0x1cc)](a[U(0x1fd)])||b?.[U(0x1d7)][U(0x1cc)](a[U(0x20b)]||'')||this[U(0x206)]['isPro'];if(f&&c)throw d;}else{if(this[U(0x209)](a)){const g=b?.[U(0x1fa)]['includes'](a[U(0x1fd)])||b?.[U(0x1fa)][U(0x1cc)](a['parent']||'');if(g&&c)throw'To\x20use\x20this\x20generator,\x20\x22'+a[U(0x1fd)]+U(0x1df);}}}catch(h){Log[U(0x214)](h),process[U(0x1e9)](0x1);}}[a129K(0x1d4)](a){return'options'in a;}[a129K(0x209)](a){const V=a129K;return!(V(0x206)in a);}[a129K(0x203)](){const W=a129K;return this['options']['description']||this[W(0x206)][W(0x1c5)]||W(0x1ee);}[a129K(0x1c5)](){const X=a129K;return this[X(0x206)]['shortDesc']||'NIE';}['usage'](){const Y=a129K;return this[Y(0x206)][Y(0x20d)]||'No\x20usage\x20provided.';}[a129K(0x1ea)](){const Z=a129K;return this['options'][Z(0x1ea)]||[];}[a129K(0x1cb)](){const a0=a129K;return this[a0(0x206)][a0(0x1cb)]||a0(0x1d6);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a130j=a130d;(function(a,b){const f=a130d,c=a();while(!![]){try{const d=parseInt(f(0x16b))/0x1*(parseInt(f(0x16f))/0x2)+-parseInt(f(0x168))/0x3+parseInt(f(0x16e))/0x4+-parseInt(f(0x166))/0x5+parseInt(f(0x16d))/0x6*(parseInt(f(0x164))/0x7)+parseInt(f(0x171))/0x8*(-parseInt(f(0x161))/0x9)+-parseInt(f(0x15f))/0xa*(-parseInt(f(0x162))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xcdc3a));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a130d;if(c){const e=c[g(0x172)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const h=a130d;return a130a[h(0x16c)]()[h(0x163)](h(0x170))[h(0x16c)]()[h(0x165)](a130a)['search'](h(0x170));});a130a();function a130c(){const m=['toString','1200SwEuBQ','5697700ZhxPoB','13836BjGdrJ','(((.+)+)+)+$','7352pJlnEV','apply','password','confirm','165730UMEEsS','options','8001sMwoyo','913cDmhju','search','4942vDyWHZ','constructor','5353545JYZCFw','answer','2043294XBKvvP','prompt','input','68dqWmdx'];a130c=function(){return m;};return a130c();}function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x15f;let f=c[d];return f;},a130d(a,b);}import a130e from'inquirer';export class Actions{static async['ask'](a,b){const i=a130d,{answer:c}=await a130e[i(0x169)]({'type':b?i(0x173):i(0x16a),'name':'answer','message':a});return c;}static async[a130j(0x174)](a,b=![]){const k=a130j,{answer:c}=await a130e[k(0x169)]({'type':k(0x174),'name':k(0x167),'message':a,'default':b});return c;}static async[a130j(0x160)](a){const l=a130j,b=await a130e[l(0x169)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a131d(a,b){const c=a131c();return a131d=function(d,e){d=d-0x1a8;let f=c[d];return f;},a131d(a,b);}const a131r=a131d;(function(a,b){const p=a131d,c=a();while(!![]){try{const d=parseInt(p(0x20a))/0x1*(-parseInt(p(0x1b2))/0x2)+-parseInt(p(0x1d2))/0x3*(parseInt(p(0x1da))/0x4)+parseInt(p(0x20e))/0x5*(parseInt(p(0x1a8))/0x6)+parseInt(p(0x222))/0x7*(parseInt(p(0x20d))/0x8)+-parseInt(p(0x21d))/0x9*(-parseInt(p(0x20f))/0xa)+-parseInt(p(0x1bf))/0xb+parseInt(p(0x232))/0xc*(parseInt(p(0x1af))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x76d4d));const a131b=(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;};}()),a131a=a131b(this,function(){const q=a131d;return a131a['toString']()[q(0x1ff)](q(0x1d1))['toString']()['constructor'](a131a)[q(0x1ff)]('(((.+)+)+)+$');});a131a();import a131e from'fs';import a131f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';function a131c(){const U=['isFile','notice','imageId','Error\x20fetching\x20domain\x20pricing:','136067SgChwz','sgId','find','99784yxMtrK','12205JDLwYV','10mznLAg','ask','success','minCount','KeyName','cidr','length','statusCode','\x20Status\x20Code:\x20','ecrCreateRepository','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','getMakaProjectConfig','\x20NAME:\x20','ec2terminateInstance','4336686xMqsBi','KeyMaterial','terminated','httpStatusCode','readFileSync','357hCQzvS','AVAILABLE','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','pem','HostedZones','UPSERT','instance','description','Availability','registerDomain','$response','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','$metadata','status','now','\x20PUB_IP:\x20','3360FjxdBZ','Prices','744OfiscQ','\x20ENV:\x20','deleteSecurityGroup','deleteKeyPair','RegistrationPrice','suggestion','Port\x20','10985DBicBc','.pem.txt','ec2rebootInstance','2kxqQKu','ingressRule','environment','Pem\x20key\x20saved\x20to\x20','ec2describeInstances','utf8','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Key\x20Name:\x20[','type','file://','push','fsi','subnet','7619876fBSkoU','The\x20domain\x20\x27','Error\x20linking\x20EC2\x20to\x20Route\x2053:','send','\x20INSTANCE_ID:\x20','key','Hosted\x20zone\x20created\x20successfully!','createKeyPairEC2Key','ec2describeKeys','Error\x20saving\x20pem\x20file,\x20aborting','ID:\x20','parse','ec2create','Error\x20generating\x20key\x20pair','Web\x20App','Value','No\x20instances\x20found','exit','(((.+)+)+)+$','68349MZEMbD','join','running','0.0.0.0/0','instanceId','maxCount','reason','GroupId','60qsslBX','ignore','log','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','createKeyPair','Instances','VpcId','checkDomainAvailability','\x20PRIV_IP:\x20','vpcId','Please\x20choose\x20a\x20VPC:\x20[0]\x20','name','error','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','split','forEach','chooseInstance','Could\x20not\x20find\x20hosted\x20zone','\x20to\x20','Description:','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','ec2createSG','config','publicIp','getSecurityGroups','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','UserData','Created:\x20','\x20CIDR:\x20','\x20VPCID:\x20','changeResourceRecordSets','maka-cli','_keys','privateIp','userData','listHostedZonesByName','search','/dev/sdh','tag:created-by','ssh.json','chmod\x20400\x20','**\x20Available\x20\x20VPCs\x20**','CidrBlock'];a131c=function(){return U;};return a131c();}import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a131r(0x1bd)];constructor(){this['fsi']=new FSI();}async[a131r(0x218)](a){const s=a131r;try{const b={'repositoryName':a[s(0x1e5)]},c=new CreateRepositoryCommand(b),d=await ecrClient[s(0x1c2)](c);return d;}catch(f){Log[s(0x1e6)](f);}}async['route53CreateHostedZone'](a){const t=a131r;try{const b={'CallerReference':''+Date[t(0x230)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[t(0x1c2)](c),Log[t(0x211)](t(0x1c5));}catch(d){Log[t(0x1e6)]('Error\x20creating\x20hosted\x20zone'),console['error'](d);}}async[a131r(0x22b)](a,b,c,d){const u=a131r;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[u(0x1c2)](f),Log[u(0x207)](u(0x1c0)+b+'\x27\x20has\x20been\x20registered\x20successfully.');}catch(g){Log[u(0x1e6)](u(0x1ee)),Log['warn']('From\x20AWS:'),console[u(0x1e6)](u(0x217)+g[u(0x22c)][u(0x216)]),console[u(0x1e6)]('\x20Error\x20Rason:\x20'+g['$response'][u(0x1d8)]);}}async[a131r(0x1e1)](a){const v=a131r,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains['send'](c),e=d[v(0x22a)]===v(0x223);if(e){const f=a[v(0x1e8)]('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[v(0x1c2)](h);if(i&&i[v(0x233)]&&i[v(0x233)][0x0]?.[v(0x1ac)]){const j=i['Prices'][0x0][v(0x1ac)];return{'available':e,'cost':j};}}catch(k){console[v(0x1e6)](v(0x209),k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const w=a131r;try{const d=await route53[w(0x1fe)]({'DNSName':c});if(!d?.[w(0x226)])throw Log[w(0x1e6)](w(0x1eb));const e=d?.[w(0x226)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':w(0x227),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[w(0x1f9)](f),Log[w(0x207)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+w(0x1ec)+c);}catch(g){console[w(0x1e6)](w(0x1c1),g);}}async[a131r(0x1cb)](a){const x=a131r;try{const b={'BlockDeviceMappings':[{'DeviceName':x(0x200),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[x(0x208)],'InstanceType':a[x(0x1ba)],'KeyName':a[x(0x1c4)],'MaxCount':a[x(0x1d7)],'MinCount':a[x(0x212)],'SecurityGroupIds':a['sgIds'][x(0x1e8)](','),'SubnetId':a[x(0x1be)],'TagSpecifications':[{'ResourceType':x(0x228),'Tags':a['tags']}]};a[x(0x1fd)]&&(b[x(0x1f5)]=x(0x1bb)+a['userData']);const c=new RunInstancesCommand(b),d=await client[x(0x1c2)](c);return d;}catch(f){Log[x(0x1e6)](f);}}async[a131r(0x21c)](a){const y=a131r;try{const b={'InstanceIds':[a[y(0x1d6)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[y(0x1e6)](f),{};}}async[a131r(0x1c6)]({keyName:a,env:b}){const z=a131r,c=this['fsi']['getAppConfigPath'](b),d=a131f[z(0x1d3)](c,z(0x1fb),a+z(0x1b0));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[z(0x1c2)](g),i=h[z(0x21e)];if(i){await this[z(0x1bd)]['createFile']({'filePath':d,'data':i}),execSync(z(0x203)+d,{'stdio':z(0x1db)});const j=this['fsi'][z(0x206)](d);if(j)return Log[z(0x211)](z(0x1b5)+d),{'keyName':a,'filePath':d};else throw new Error(z(0x1c8));}else throw new Error(z(0x1cc));}catch(k){Log[z(0x1e6)](k),process[z(0x1d0)](0x1);}}async[a131r(0x1b3)]({port:a,groupId:b}){const A=a131r,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':A(0x1d5),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[A(0x207)](A(0x1ae)+a+'\x20opened!'),await client[A(0x1c2)](d);}async[a131r(0x1ef)](a){const B=a131r;try{a[B(0x229)]===''&&(a[B(0x229)]=await Actions['ask'](B(0x1ed))||B(0x1cd));const b={'Description':a[B(0x229)],'GroupName':a[B(0x1e5)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(B(0x1f4));f&&a['sgPorts'][B(0x1e9)](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log[B(0x211)](B(0x1f6)+f+B(0x21b)+a['name']);}catch(g){return Log[B(0x1e6)](g),![];}return!![];}async[a131r(0x1c7)](a){const C=a131r,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client['send'](d);if(!f)throw C(0x1f4);const {KeyPairs:g}=f;g?(g?.[C(0x1e9)]((h,i)=>{const D=C;h[D(0x213)]&&b[D(0x1bc)]({'id':i,'name':h[D(0x213)]});}),b['length']>0x0&&b['forEach'](h=>{const E=C;h['name']===a?.[E(0x1ad)]?Log[E(0x211)]('ID:\x20'+h['id']+E(0x21b)+h[E(0x1e5)]):Log[E(0x207)](E(0x1c9)+h['id']+E(0x21b)+h[E(0x1e5)]);})):Log['error'](C(0x1dd));}catch(h){Log[C(0x1e6)](h);}return b;}async[a131r(0x1ab)](a){const F=a131r;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[F(0x1c2)](c);}catch(d){Log[F(0x1e6)](d),process[F(0x1d0)](0x1);}}async[a131r(0x1b6)](){const G=a131r,a=[];try{const b={'Filters':[{'Name':G(0x201),'Values':[G(0x1fa)]}]},c=new DescribeInstancesCommand(b),d=await client[G(0x1c2)](c);d['Reservations']?.[G(0x1e9)]((f,g)=>{const H=G;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[H(0x1df)][0x0],n=m?.[H(0x20c)](({Key:o})=>o===H(0x1b4));a[H(0x1bc)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[H(0x1ce)]});}}),a[G(0x215)]>0x0?a['forEach'](f=>{const I=G,g=I(0x1c9)+f['id']+I(0x21b)+f[I(0x1e5)]+I(0x1a9)+f['env']+'\x20STATUS:\x20'+f[I(0x22f)]+I(0x1c3)+f[I(0x1d6)]+I(0x231)+f[I(0x1f1)]+I(0x1e2)+f[I(0x1fc)];if(f[I(0x22f)]===I(0x21f))Log[I(0x1e6)](g);else f[I(0x22f)]===I(0x1d4)?Log['success'](g):Log['notice'](g);}):Log[G(0x1e6)](G(0x1e7));}catch(f){Log[G(0x1e6)](f);}return a;}async[a131r(0x1b1)](a){const J=a131r;try{const b={'InstanceIds':[a[J(0x1d6)]]},c=new RebootInstancesCommand(b),d=await client[J(0x1c2)](c);return d[J(0x22e)][J(0x220)]===0xc8&&Log['success']('Instance\x20rebooted!'),d;}catch(f){Log[J(0x1e6)](f);}}async['chooseVPC'](){const K=a131r;let a='';Log['notice'](K(0x204));const b=new DescribeVpcsCommand({}),c=await client[K(0x1c2)](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const L=K;g[L(0x1e0)]&&g[L(0x205)]&&e[L(0x1bc)]({'id':h,'vpcId':g[L(0x1e0)],'cidr':g['CidrBlock']});});e[K(0x1e9)](function(g){const M=K;console[M(0x1dc)](M(0x1c9)+g['id']+M(0x1f8)+g[M(0x1e3)]+M(0x1f7)+g[M(0x214)]);});const f=await Actions['ask'](K(0x1e4))||0x0;e[K(0x1e9)](function(g){const N=K;g['id']==f&&(a=g[N(0x1e3)],Log['success'](N(0x1f3)+a+'\x0a'));});if(a==='')return Log['error'](K(0x1b8)),'';return a;}async[a131r(0x1ea)](){const O=a131r,a=await this[O(0x1b6)]();if(a['length']===0x0)return Log[O(0x1e6)](O(0x1cf)),null;const b=await Actions[O(0x210)](O(0x224));!b&&(Log[O(0x1e6)]('Invalid\x20choice'),process[O(0x1d0)](0x0));const c=a[O(0x20c)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a131r(0x1de)]({env:a}){const P=a131r,b=this['fsi'][P(0x21a)](),{appName:c}=b,d=c+'-'+a,f=await Actions[P(0x210)](P(0x1b9)+d+']\x20')||d,{filePath:g}=await this[P(0x1c6)]({'keyName':f,'env':a});try{const h=await Actions['confirm'](P(0x219),!![]);if(h)try{const i=a131e[P(0x221)](a131f['join'](P(0x1f0),a,'ssh.json'),P(0x1b7)),j=JSON[P(0x1ca)](i);j[P(0x225)]=a131f[P(0x1d3)]('_keys',f+'.pem.txt'),a131e['writeFileSync'](a131f['join'](P(0x1f0),a,P(0x202)),JSON['stringify'](j,null,0x2));}catch(k){Log[P(0x1e6)](k),Log[P(0x1e6)](P(0x22d));}}catch(l){Log[P(0x1e6)](l),process[P(0x1d0)](0x1);}return{'keyName':f,'filePath':g};}async[a131r(0x1f2)](a){const Q=a131r,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[Q(0x1c2)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const R=Q;i['GroupName']&&i[R(0x1d9)]&&b['push']({'id':j,'name':i['GroupName'],'sgId':i[R(0x1d9)]});});let g='',h=0x0;return b[Q(0x1e9)](function(i){const S=Q;i[S(0x1e5)]===a&&(g=i[S(0x20b)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a131r(0x1aa)](a){const T=a131r;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[T(0x1c2)](c);}catch(d){Log[T(0x1e6)](d),process[T(0x1d0)](0x1);}}}
|
|
1
|
+
const a131s=a131d;function a131c(){const W=['8374815PFXXyh','tags','maka-cli','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','Instance\x20rebooted!','No\x20instances\x20found','join','\x20to\x20','RegistrationPrice','Key\x20Name:\x20[','parse','exit','ec2createSG','chmod\x20400\x20','ID:\x20','(((.+)+)+)+$','statusCode','The\x20domain\x20\x27','forEach','/dev/sdh','running','UserData','send','deleteSecurityGroup','.pem.txt','\x20PRIV_IP:\x20','error','name','success','30513hSANSk','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','suggestion','Name','\x20Status\x20Code:\x20','\x20STATUS:\x20','\x27\x20has\x20been\x20registered\x20successfully.','find','confirm','\x20INSTANCE_ID:\x20','\x20PUB_IP:\x20','pop','9380720vHltkp','httpStatusCode','search','ssh.json','ec2describeInstances','length','Created:\x20','tcp','now','sgId','Successfully\x20linked\x20EC2\x20instance\x20','listHostedZonesByName','KeyMaterial','key','description','createKeyPair','createKeyPairEC2Key','ingressRule','KeyName','chooseVPC','getMakaProjectConfig','linkEC2ToRoute53','stringify','Error\x20creating\x20hosted\x20zone','\x20VPCID:\x20','instance','imageId','Web\x20App','\x20opened!','fsi','Reservations','Invalid\x20choice','constructor','HostedZones','type','Description:','9487596UzJnje','toString','readFileSync','ask','From\x20AWS:','apply','\x20Error\x20Rason:\x20','Could\x20not\x20find\x20hosted\x20zone','cidr','getAppConfigPath','status','chooseInstance','tag:created-by','Error\x20generating\x20key\x20pair','config','instanceId','isFile','Hosted\x20zone\x20created\x20successfully!','checkDomainAvailability','\x20NAME:\x20','VpcId','createFile','Error\x20fetching\x20domain\x20pricing:','environment','CidrBlock','route53CreateHostedZone','pem','subnet','Prices','**\x20Available\x20\x20VPCs\x20**','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','notice','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','$response','16565463sFPjsr','push','856XrfkON','910197kABjiW','GroupId','_keys','Availability','userData','terminated','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','Value','Error\x20saving\x20pem\x20file,\x20aborting','GroupName','1eUHhHs','Port\x20','Pem\x20key\x20saved\x20to\x20','writeFileSync','2494894yQnMKo','sgIds','12qEIhEX','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','warn','publicIp','vpcId','env','UPSERT','minCount','0.0.0.0/0','AVAILABLE'];a131c=function(){return W;};return a131c();}(function(a,b){const p=a131d,c=a();while(!![]){try{const d=-parseInt(p(0x180))/0x1*(parseInt(p(0x184))/0x2)+-parseInt(p(0x176))/0x3*(parseInt(p(0x186))/0x4)+-parseInt(p(0x104))/0x5+parseInt(p(0x151))/0x6+-parseInt(p(0x121))/0x7*(-parseInt(p(0x175))/0x8)+parseInt(p(0x173))/0x9+parseInt(p(0x12d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0xf29d7));const a131b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a131d;if(c){const e=c[q(0x156)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){const r=a131d;return a131a['toString']()[r(0x12f)](r(0x113))[r(0x152)]()[r(0x14d)](a131a)['search'](r(0x113));});a131a();import a131e from'fs';import a131f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';function a131d(a,b){const c=a131c();return a131d=function(d,e){d=d-0x102;let f=c[d];return f;},a131d(a,b);}const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a131s(0x14a)];constructor(){this['fsi']=new FSI();}async['ecrCreateRepository'](a){const t=a131s;try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient[t(0x11a)](c);return d;}catch(f){Log['error'](f);}}async[a131s(0x16a)](a){const u=a131s;try{const b={'CallerReference':''+Date[u(0x135)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[u(0x120)](u(0x162));}catch(d){Log['error'](u(0x144)),console[u(0x11e)](d);}}async['registerDomain'](a,b,c,d){const v=a131s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[v(0x11a)](f),Log[v(0x170)](v(0x115)+b+v(0x127));}catch(g){Log[v(0x11e)](v(0x187)),Log[v(0x188)](v(0x155)),console['error'](v(0x125)+g[v(0x172)][v(0x114)]),console[v(0x11e)](v(0x157)+g[v(0x172)]['reason']);}}async[a131s(0x163)](a){const w=a131s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[w(0x11a)](c),e=d[w(0x179)]===w(0x103);if(e){const f=a['split']('.')[w(0x12c)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i[w(0x16d)]&&i[w(0x16d)][0x0]?.[w(0x10c)]){const j=i[w(0x16d)][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console[w(0x11e)](w(0x167),k);}}return{'available':e};}async[a131s(0x142)](a,b,c){const x=a131s;try{const d=await route53[x(0x138)]({'DNSName':c});if(!d?.[x(0x14e)])throw Log[x(0x11e)](x(0x158));const e=d?.[x(0x14e)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':x(0x18c),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53['changeResourceRecordSets'](f),Log[x(0x170)](x(0x137)+a+x(0x10b)+c);}catch(g){console[x(0x11e)]('Error\x20linking\x20EC2\x20to\x20Route\x2053:',g);}}async['ec2create'](a){const y=a131s;try{const b={'BlockDeviceMappings':[{'DeviceName':y(0x117),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[y(0x147)],'InstanceType':a[y(0x14f)],'KeyName':a[y(0x13a)],'MaxCount':a['maxCount'],'MinCount':a[y(0x18d)],'SecurityGroupIds':a[y(0x185)]['split'](','),'SubnetId':a[y(0x16c)],'TagSpecifications':[{'ResourceType':y(0x146),'Tags':a[y(0x105)]}]};a[y(0x17a)]&&(b[y(0x119)]='file://'+a[y(0x17a)]);const c=new RunInstancesCommand(b),d=await client[y(0x11a)](c);return d;}catch(f){Log[y(0x11e)](f);}}async['ec2terminateInstance'](a){const z=a131s;try{const b={'InstanceIds':[a[z(0x160)]]},c=new TerminateInstancesCommand(b),d=await client[z(0x11a)](c);return d;}catch(f){return Log[z(0x11e)](f),{};}}async[a131s(0x13d)]({keyName:a,env:b}){const A=a131s,c=this['fsi'][A(0x15a)](b),d=a131f['join'](c,'_keys',a+A(0x11c));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[A(0x11a)](g),i=h[A(0x139)];if(i){await this['fsi'][A(0x166)]({'filePath':d,'data':i}),execSync(A(0x111)+d,{'stdio':'ignore'});const j=this['fsi'][A(0x161)](d);if(j)return Log['success'](A(0x182)+d),{'keyName':a,'filePath':d};else throw new Error(A(0x17e));}else throw new Error(A(0x15e));}catch(k){Log['error'](k),process[A(0x10f)](0x1);}}async[a131s(0x13e)]({port:a,groupId:b}){const B=a131s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':B(0x134),'IpRanges':[{'CidrIp':B(0x102),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[B(0x170)](B(0x181)+a+B(0x149)),await client['send'](d);}async[a131s(0x110)](a){const C=a131s;try{a[C(0x13b)]===''&&(a[C(0x13b)]=await Actions[C(0x154)](C(0x150))||C(0x148));const b={'Description':a[C(0x13b)],'GroupName':a[C(0x11f)],'VpcId':a[C(0x18a)]},c=new CreateSecurityGroupCommand(b),d=await client[C(0x11a)](c),{GroupId:f}=d;if(!d)throw new Error(C(0x17c));f&&a['sgPorts']['forEach'](g=>{const D=C;this[D(0x13e)]({'port':parseInt(g),'groupId':f});}),Log[C(0x120)](C(0x133)+f+C(0x164)+a[C(0x11f)]);}catch(g){return Log['error'](g),![];}return!![];}async['ec2describeKeys'](a){const E=a131s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x11a)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.[E(0x116)]((h,i)=>{const F=E;h[F(0x13f)]&&b[F(0x174)]({'id':i,'name':h[F(0x13f)]});}),b[E(0x132)]>0x0&&b['forEach'](h=>{const G=E;h[G(0x11f)]===a?.[G(0x123)]?Log['success'](G(0x112)+h['id']+G(0x164)+h[G(0x11f)]):Log['notice']('ID:\x20'+h['id']+G(0x164)+h['name']);})):Log[E(0x11e)](E(0x122));}catch(h){Log[E(0x11e)](h);}return b;}async['deleteKeyPair'](a){const H=a131s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x11a)](c);}catch(d){Log[H(0x11e)](d),process['exit'](0x1);}}async[a131s(0x131)](){const I=a131s,a=[];try{const b={'Filters':[{'Name':I(0x15d),'Values':[I(0x106)]}]},c=new DescribeInstancesCommand(b),d=await client[I(0x11a)](c);d[I(0x14b)]?.[I(0x116)]((f,g)=>{const J=I;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f['Instances'][0x0],n=m?.['find'](({Key:o})=>o===J(0x168));a[J(0x174)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[J(0x124)],'name':l,'env':n?.[J(0x17d)]});}}),a[I(0x132)]>0x0?a[I(0x116)](f=>{const K=I,g='ID:\x20'+f['id']+'\x20NAME:\x20'+f['name']+'\x20ENV:\x20'+f[K(0x18b)]+K(0x126)+f[K(0x15b)]+K(0x12a)+f[K(0x160)]+K(0x12b)+f[K(0x189)]+K(0x11d)+f['privateIp'];if(f['status']===K(0x17b))Log[K(0x11e)](g);else f[K(0x15b)]===K(0x118)?Log[K(0x120)](g):Log[K(0x170)](g);}):Log[I(0x11e)](I(0x107));}catch(f){Log[I(0x11e)](f);}return a;}async['ec2rebootInstance'](a){const L=a131s;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client[L(0x11a)](c);return d['$metadata'][L(0x12e)]===0xc8&&Log[L(0x120)](L(0x108)),d;}catch(f){Log[L(0x11e)](f);}}async[a131s(0x140)](){const M=a131s;let a='';Log[M(0x170)](M(0x16e));const b=new DescribeVpcsCommand({}),c=await client[M(0x11a)](b),{Vpcs:d}=c,e=[];d&&d[M(0x116)]((g,h)=>{const N=M;g[N(0x165)]&&g[N(0x169)]&&e['push']({'id':h,'vpcId':g[N(0x165)],'cidr':g[N(0x169)]});});e['forEach'](function(g){const O=M;console['log'](O(0x112)+g['id']+O(0x145)+g['vpcId']+'\x20CIDR:\x20'+g[O(0x159)]);});const f=await Actions[M(0x154)]('Please\x20choose\x20a\x20VPC:\x20[0]\x20')||0x0;e['forEach'](function(g){const P=M;g['id']==f&&(a=g[P(0x18a)],Log[P(0x120)](P(0x16f)+a+'\x0a'));});if(a==='')return Log[M(0x11e)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';return a;}async[a131s(0x15c)](){const Q=a131s,a=await this[Q(0x131)]();if(a[Q(0x132)]===0x0)return Log[Q(0x11e)](Q(0x109)),null;const b=await Actions['ask']('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[Q(0x11e)](Q(0x14c)),process[Q(0x10f)](0x0));const c=a[Q(0x128)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a131s(0x13c)]({env:a}){const R=a131s,b=this[R(0x14a)][R(0x141)](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0x154)](R(0x10d)+d+']\x20')||d,{filePath:g}=await this[R(0x13d)]({'keyName':f,'env':a});try{const h=await Actions[R(0x129)](R(0x171),!![]);if(h)try{const i=a131e[R(0x153)](a131f[R(0x10a)](R(0x15f),a,R(0x130)),'utf8'),j=JSON[R(0x10e)](i);j[R(0x16b)]=a131f[R(0x10a)](R(0x178),f+R(0x11c)),a131e[R(0x183)](a131f[R(0x10a)]('config',a,'ssh.json'),JSON[R(0x143)](j,null,0x2));}catch(k){Log['error'](k),Log['error']('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(l){Log[R(0x11e)](l),process['exit'](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const S=a131s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x11a)](d),{SecurityGroups:f}=e;f&&f[S(0x116)](function(i,j){const T=S;i[T(0x17f)]&&i[T(0x177)]&&b['push']({'id':j,'name':i[T(0x17f)],'sgId':i[T(0x177)]});});let g='',h=0x0;return b[S(0x116)](function(i){const U=S;i['name']===a&&(g=i[U(0x136)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a131s(0x11b)](a){const V=a131s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[V(0x11a)](c);}catch(d){Log['error'](d),process[V(0x10f)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a132d(a,b){var c=a132c();return a132d=function(d,e){d=d-
|
|
1
|
+
function a132d(a,b){var c=a132c();return a132d=function(d,e){d=d-0xd9;var f=c[d];return f;},a132d(a,b);}(function(a,b){var k=a132d,c=a();while(!![]){try{var d=parseInt(k(0xe5))/0x1+-parseInt(k(0xdd))/0x2*(parseInt(k(0xe6))/0x3)+parseInt(k(0xe0))/0x4*(-parseInt(k(0xe4))/0x5)+parseInt(k(0xe1))/0x6+-parseInt(k(0xdb))/0x7*(-parseInt(k(0xe2))/0x8)+parseInt(k(0xde))/0x9+-parseInt(k(0xda))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0xa3777));export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){if(h){var j=h['apply'](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var l=a132d;return e[l(0xdf)]()['search'](l(0xd9))['toString']()[l(0xe3)](e)[l(0xdc)]('(((.+)+)+)+$');});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));function a132c(){var m=['search','24806NaMvtu','5020227jiTPSM','toString','16DSOHLg','7174956SryXoX','5304936MsUIeR','constructor','396860ciKMHM','1259102JsHVRZ','177dwqoUh','(((.+)+)+)+$','19570240kjwlSP','7TMahDl'];a132c=function(){return m;};return a132c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-
|
|
1
|
+
const a133n=a133d;function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0xc5;let f=c[d];return f;},a133d(a,b);}(function(a,b){const j=a133d,c=a();while(!![]){try{const d=-parseInt(j(0xcf))/0x1*(-parseInt(j(0xd3))/0x2)+-parseInt(j(0xd2))/0x3+parseInt(j(0xc5))/0x4+-parseInt(j(0xca))/0x5+-parseInt(j(0xc9))/0x6+-parseInt(j(0xd4))/0x7+parseInt(j(0xd1))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0x1caf9));const a133b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a133d;if(c){const e=c[k(0xd8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a133a=a133b(this,function(){const l=a133d;return a133a[l(0xcd)]()['search'](l(0xc6))[l(0xcd)]()[l(0xd5)](a133a)['search'](l(0xc6));});a133a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';function a133c(){const q=['push','5113176mTCgnv','650751yXhhjg','18zcksOT','1061088XEvxnV','constructor','error','awsLogin','apply','inherit','AWS','pushImage','583908YnCQzC','(((.+)+)+)+$','.amazonaws.com','.amazonaws.com/','1183650PytoKq','570500GnMYeJ','tag','.dkr.ecr.','toString','docker\x20','1361fSSURd'];a133c=function(){return q;};return a133c();}export class Docker{static['tag']({imageName:a,awsAccountId:b,region:c,repoName:d}){const m=a133d;try{const f=[m(0xcb),a,b+m(0xcc)+c+m(0xc8)+d],g='docker\x20'+f['join']('\x20'),h=execSync(g,{'stdio':'inherit'})[m(0xcd)]();return h;}catch(i){return Log[m(0xd6)](i),'';}}static[a133n(0xd7)]({awsAccountId:a,region:b}){const o=a133n;try{const c=['login','--username',o(0xda),'--password-stdin',a+o(0xcc)+b+o(0xc7)],d=o(0xce)+c['join']('\x20'),f=execSync(d,{'stdio':o(0xd9)})['toString']();return f;}catch(g){return Log[o(0xd6)](g),'';}}static[a133n(0xdb)]({awsAccountId:a,region:b,repoName:c}){const p=a133n;try{const d=[p(0xd0),a+p(0xcc)+b+'.amazonaws.com/'+c],f=p(0xce)+d['join']('\x20'),g=execSync(f,{'stdio':p(0xd9)})['toString']();return g;}catch(h){return Log[p(0xd6)](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a134d(a,b){var c=a134c();return a134d=function(d,e){d=d-
|
|
1
|
+
function a134d(a,b){var c=a134c();return a134d=function(d,e){d=d-0xeb;var f=c[d];return f;},a134d(a,b);}(function(a,b){var f=a134d,c=a();while(!![]){try{var d=-parseInt(f(0xf6))/0x1*(-parseInt(f(0xef))/0x2)+parseInt(f(0xf4))/0x3+parseInt(f(0xf8))/0x4+-parseInt(f(0xf3))/0x5+-parseInt(f(0xec))/0x6*(-parseInt(f(0xf2))/0x7)+-parseInt(f(0xf7))/0x8+-parseInt(f(0xf5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0x9caab));var a134b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a134d;if(c){var e=c[g(0xeb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){var h=a134d;return a134a[h(0xee)]()[h(0xf1)](h(0xf0))['toString']()[h(0xed)](a134a)['search']('(((.+)+)+)+$');});function a134c(){var i=['(((.+)+)+)+$','search','140MJxxej','3927385ysaFLF','992331WcgGlo','11586411HFuDpa','1031848oOYTQU','2792960ezwfnf','3976152mUuicf','apply','212106QSwdKS','constructor','toString','2YXtcia'];a134c=function(){return i;};return a134c();}a134a();export{};
|