@maka/maka-cli 4.2.31 → 4.3.19
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 +13 -5
- package/dist/command.js +1 -1
- package/dist/commands/_index.js +1 -1
- package/dist/commands/aws/_index.js +1 -1
- package/dist/commands/aws/aws.command.js +1 -1
- package/dist/commands/aws/ci.sub.cmd.js +1 -1
- package/dist/commands/aws/ckp.sub.cmd.js +1 -1
- package/dist/commands/aws/csg.sub.cmd.js +1 -1
- package/dist/commands/aws/di.sub.cmd.js +1 -1
- package/dist/commands/aws/dkp.sub.cmd.js +1 -1
- package/dist/commands/aws/dsg.sub.cmd.js +1 -1
- package/dist/commands/aws/rbi.sub.cmd.js +1 -1
- package/dist/commands/aws/rkp.sub.cmd.js +1 -1
- package/dist/commands/aws/sth.sub.cmd.js +1 -1
- package/dist/commands/aws/ti.sub.cmd.js +1 -1
- package/dist/commands/build/_index.js +1 -1
- package/dist/commands/build/build.js +1 -1
- package/dist/commands/build/docker.sub.cmd.js +1 -1
- package/dist/commands/create.js +1 -1
- package/dist/commands/debug.js +1 -1
- package/dist/commands/deploy.js +1 -1
- package/dist/commands/game/_index.js +1 -1
- package/dist/commands/game/battleship.sub.cmd.js +1 -1
- package/dist/commands/game/play.command.js +1 -1
- package/dist/commands/game/pong.sub.cmd.js +1 -1
- package/dist/commands/game/snake.sub.cmd.js +1 -1
- package/dist/commands/game/tetris.sub.cmd.js +1 -1
- package/dist/commands/generate.js +1 -1
- package/dist/commands/get/_index.js +1 -1
- package/dist/commands/get/get.command.js +1 -1
- package/dist/commands/get/global.sub.cmd.js +1 -1
- package/dist/commands/get/local.sub.cmd.js +1 -1
- package/dist/commands/get/whoami.sub.cmd.js +1 -1
- package/dist/commands/help.js +1 -1
- package/dist/commands/install.js +1 -1
- package/dist/commands/jsdoc.js +1 -1
- package/dist/commands/lint.js +1 -0
- package/dist/commands/login.js +1 -1
- package/dist/commands/logout.js +1 -1
- package/dist/commands/logs.js +1 -1
- package/dist/commands/maka.cmd.js +1 -1
- package/dist/commands/murder.js +1 -1
- package/dist/commands/proxy.js +1 -1
- package/dist/commands/reconfig.js +1 -1
- package/dist/commands/run/_index.js +1 -1
- package/dist/commands/run/docker.sub.cmd.js +1 -1
- package/dist/commands/run/run.command.js +1 -1
- package/dist/commands/set/_index.js +1 -1
- package/dist/commands/set/global.sub.cmd.js +1 -1
- package/dist/commands/set/local.sub.cmd.js +1 -1
- package/dist/commands/set/set.command.js +1 -1
- package/dist/commands/ssh.js +1 -1
- package/dist/commands/ssl.js +1 -1
- package/dist/commands/test.js +1 -1
- package/dist/commands/version.js +1 -1
- package/dist/error.js +1 -1
- package/dist/generator.js +1 -1
- package/dist/generators/_index.js +1 -1
- package/dist/generators/api.js +1 -1
- package/dist/generators/collection.js +1 -1
- package/dist/generators/component.js +1 -1
- package/dist/generators/config.js +1 -1
- package/dist/generators/dbc.js +1 -1
- package/dist/generators/dockerfile.js +1 -1
- package/dist/generators/hook.js +1 -1
- package/dist/generators/kit.js +1 -1
- package/dist/generators/layout.js +1 -1
- package/dist/generators/maka.gen.js +1 -1
- package/dist/generators/methods.js +1 -1
- package/dist/generators/package.js +1 -1
- package/dist/generators/page.js +1 -1
- package/dist/generators/publish.js +1 -1
- package/dist/generators/route.js +1 -1
- package/dist/generators/service.js +1 -1
- package/dist/generators/services/_index.js +1 -1
- package/dist/generators/services/openssl.js +1 -1
- package/dist/generators/services/translation.js +1 -1
- package/dist/maka.js +1 -1
- package/dist/templates/meteor/app/imports/startup/client/index.js +1 -0
- package/dist/templates/meteor/app/imports/startup/client/index.js.jsx +2 -1
- package/dist/templates/meteor/app/imports/startup/client/index.js.ts +1 -0
- package/dist/templates/meteor/app/imports/startup/client/index.js.tsx +2 -1
- package/dist/templates/meteor/app/imports/startup/server/index.js.jsx +1 -0
- package/dist/templates/meteor/app/imports/startup/server/index.js.tsx +1 -0
- package/dist/templates/meteor/app/meteor.d.ts +46 -46
- package/dist/templates/meteor/package/package.js.ts +1 -1
- package/dist/templates/meteor/package/package.js.tsx +1 -1
- package/dist/templates/service/eslint/eslintrc.json +33 -0
- package/dist/tool.js +1 -1
- package/dist/tools/actions/actions.class.js +1 -1
- package/dist/tools/actions/actions.test.js +1 -1
- package/dist/tools/aws/aws.class.js +1 -1
- package/dist/tools/aws/aws.interfaces.js +1 -1
- package/dist/tools/docker/docker.class.js +1 -1
- package/dist/tools/docker/docker.interfaces.js +1 -1
- package/dist/tools/fsi/fsi.class.js +1 -1
- package/dist/tools/fsi/fsi.interfaces.js +1 -1
- package/dist/tools/https/https.class.js +1 -1
- package/dist/tools/https/https.interface.js +1 -1
- package/dist/tools/log/log.class.js +1 -1
- package/dist/tools/log/log.interfaces.js +1 -1
- package/dist/tools/spawn-async/spawn-async.class.js +1 -1
- package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/dist/tools/ssh/ssh.class.js +1 -1
- package/dist/tools/ssh/ssh.interfaces.js +1 -1
- package/dist/tools/ssl/ssl.class.js +1 -1
- package/package.json +5 -3
- package/dist/generators/scaffold.js +0 -1
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
// Needed for testing.
|
|
6
|
-
declare
|
|
7
|
-
declare
|
|
8
|
-
declare
|
|
9
|
-
declare
|
|
10
|
-
declare
|
|
11
|
-
declare
|
|
12
|
-
declare
|
|
13
|
-
declare
|
|
14
|
-
declare
|
|
6
|
+
declare let require: Function;
|
|
7
|
+
declare let beforeEach: Function;
|
|
8
|
+
declare let afterEach: Function;
|
|
9
|
+
declare let it: Function;
|
|
10
|
+
declare let describe: Function;
|
|
11
|
+
declare let assert: any;
|
|
12
|
+
declare let equal: any;
|
|
13
|
+
declare let Map: MapConstructor;
|
|
14
|
+
declare let Meteor: any;
|
|
15
15
|
|
|
16
16
|
// TODO: These should be worked out ...
|
|
17
17
|
declare module 'meteor/react-meteor-data';
|
|
@@ -30,10 +30,10 @@ interface EJSONable {
|
|
|
30
30
|
interface JSONable {
|
|
31
31
|
[key: string]: number | string | boolean | Object | number[] | string[] | Object[];
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
type EJSON = EJSONable
|
|
34
34
|
|
|
35
35
|
declare module "meteor/match" {
|
|
36
|
-
export
|
|
36
|
+
export namespace Match {
|
|
37
37
|
export var Any: any;
|
|
38
38
|
export var String: any;
|
|
39
39
|
export var Integer: any;
|
|
@@ -50,7 +50,7 @@ declare module "meteor/match" {
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
declare module "meteor/meteor" {
|
|
53
|
-
export
|
|
53
|
+
export namespace Meteor {
|
|
54
54
|
export var isDevelopment: any;
|
|
55
55
|
export var isServer: any;
|
|
56
56
|
export var isClient: any;
|
|
@@ -86,7 +86,7 @@ declare module "meteor/meteor" {
|
|
|
86
86
|
declare module "meteor/ddp" {
|
|
87
87
|
import { Meteor } from "meteor/meteor";
|
|
88
88
|
|
|
89
|
-
export
|
|
89
|
+
export namespace DDP {
|
|
90
90
|
interface DDPStatic {
|
|
91
91
|
subscribe(name: string, ...rest: any[]): Meteor.SubscriptionHandle;
|
|
92
92
|
call(method: string, ...parameters: any[]): void;
|
|
@@ -110,21 +110,21 @@ declare module "meteor/ddp" {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
declare module "meteor/mongo" {
|
|
113
|
-
export
|
|
113
|
+
export namespace Mongo {
|
|
114
114
|
interface Selector {
|
|
115
115
|
[key: string]: any;
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
type Selector = Object
|
|
118
118
|
interface Modifier { }
|
|
119
119
|
interface SortSpecifier { }
|
|
120
120
|
interface FieldSpecifier {
|
|
121
|
-
[id: string]:
|
|
121
|
+
[id: string]: number;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
declare module "meteor/http" {
|
|
127
|
-
export
|
|
127
|
+
export namespace HTTP {
|
|
128
128
|
|
|
129
129
|
interface HTTPRequest {
|
|
130
130
|
content?: string;
|
|
@@ -153,7 +153,7 @@ declare module "meteor/http" {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
declare module "meteor/random" {
|
|
156
|
-
export
|
|
156
|
+
export namespace Random {
|
|
157
157
|
function id(numberOfChars?: number): string;
|
|
158
158
|
function secret(numberOfChars?: number): string;
|
|
159
159
|
function fraction(): number;
|
|
@@ -170,7 +170,7 @@ declare module "meteor/random" {
|
|
|
170
170
|
declare module "meteor/meteor" {
|
|
171
171
|
import { Blaze } from "meteor/blaze";
|
|
172
172
|
|
|
173
|
-
export
|
|
173
|
+
export namespace Meteor {
|
|
174
174
|
/** Start definitions for Template **/
|
|
175
175
|
interface Event {
|
|
176
176
|
type: string;
|
|
@@ -196,8 +196,8 @@ declare module "meteor/meteor" {
|
|
|
196
196
|
|
|
197
197
|
interface LoginWithExternalServiceOptions {
|
|
198
198
|
requestPermissions?: string[];
|
|
199
|
-
requestOfflineToken?:
|
|
200
|
-
forceApprovalPrompt?:
|
|
199
|
+
requestOfflineToken?: boolean;
|
|
200
|
+
forceApprovalPrompt?: boolean;
|
|
201
201
|
userEmail?: string;
|
|
202
202
|
loginStyle?: string;
|
|
203
203
|
}
|
|
@@ -218,7 +218,7 @@ declare module "meteor/meteor" {
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
declare module "meteor/blaze" {
|
|
221
|
-
export
|
|
221
|
+
export namespace Blaze {
|
|
222
222
|
interface View {
|
|
223
223
|
name: string;
|
|
224
224
|
parentView: Blaze.View;
|
|
@@ -244,7 +244,7 @@ declare module "meteor/blaze" {
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
declare module "meteor/browser-policy" {
|
|
247
|
-
export
|
|
247
|
+
export namespace BrowserPolicy {
|
|
248
248
|
|
|
249
249
|
interface framing {
|
|
250
250
|
disallow(): void;
|
|
@@ -287,7 +287,7 @@ declare module "meteor/browser-policy" {
|
|
|
287
287
|
*/
|
|
288
288
|
|
|
289
289
|
declare module "meteor/meteor" {
|
|
290
|
-
export
|
|
290
|
+
export namespace Meteor {
|
|
291
291
|
interface EmailFields {
|
|
292
292
|
subject?: Function;
|
|
293
293
|
text?: Function;
|
|
@@ -312,7 +312,7 @@ declare module "meteor/meteor" {
|
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
declare module "meteor/mongo" {
|
|
315
|
-
export
|
|
315
|
+
export namespace Mongo {
|
|
316
316
|
interface AllowDenyOptions {
|
|
317
317
|
insert?: (userId: string, doc: any) => boolean;
|
|
318
318
|
update?: (userId: string, doc: any, fieldNames: string[], modifier: any) => boolean;
|
|
@@ -377,7 +377,7 @@ interface ITinytestAssertions {
|
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
declare module "meteor/tiny-test" {
|
|
380
|
-
export
|
|
380
|
+
export namespace Tinytest {
|
|
381
381
|
function add(description: string, func: (test: ITinytestAssertions) => void): void;
|
|
382
382
|
function addAsync(description: string, func: (test: ITinytestAssertions) => void): void;
|
|
383
383
|
}
|
|
@@ -386,7 +386,7 @@ declare module "meteor/tiny-test" {
|
|
|
386
386
|
|
|
387
387
|
// Kept in for backwards compatibility
|
|
388
388
|
declare module "meteor/meteor" {
|
|
389
|
-
export
|
|
389
|
+
export namespace Meteor {
|
|
390
390
|
interface Tinytest {
|
|
391
391
|
add(description: string, func: (test: ITinytestAssertions) => void): void;
|
|
392
392
|
addAsync(description: string, func: (test: ITinytestAssertions) => void): void;
|
|
@@ -397,7 +397,7 @@ declare module "meteor/meteor" {
|
|
|
397
397
|
declare module "meteor/accounts-base" {
|
|
398
398
|
import { Meteor } from "meteor/meteor";
|
|
399
399
|
|
|
400
|
-
export
|
|
400
|
+
export namespace Accounts {
|
|
401
401
|
function addEmail(userId: string, newEmail: string, verified?: boolean): void;
|
|
402
402
|
function changePassword(oldPassword: string, newPassword: string, callback?: Function): void;
|
|
403
403
|
function createUser(options: {
|
|
@@ -453,7 +453,7 @@ declare module "meteor/accounts-base" {
|
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
|
|
456
|
-
declare
|
|
456
|
+
declare namespace App {
|
|
457
457
|
function accessRule(domainRule: string, options?: {
|
|
458
458
|
launchExternal?: boolean;
|
|
459
459
|
}): void;
|
|
@@ -472,14 +472,14 @@ declare module App {
|
|
|
472
472
|
function setPreference(name: string, value: string, platform?: string): void;
|
|
473
473
|
}
|
|
474
474
|
|
|
475
|
-
declare
|
|
475
|
+
declare namespace Assets {
|
|
476
476
|
function getBinary(assetPath: string, asyncCallback?: Function): EJSON;
|
|
477
477
|
function getText(assetPath: string, asyncCallback?: Function): string;
|
|
478
478
|
}
|
|
479
479
|
|
|
480
480
|
declare module "meteor/blaze" {
|
|
481
481
|
import { Meteor } from "meteor/meteor";
|
|
482
|
-
export
|
|
482
|
+
export namespace Blaze {
|
|
483
483
|
function Each(argFunc: Function, contentFunc: Function, elseFunc?: Function): Blaze.View;
|
|
484
484
|
function If(conditionFunc: Function, contentFunc: Function, elseFunc?: Function): Blaze.View;
|
|
485
485
|
function Let(bindings: Function, contentFunc: Function): Blaze.View;
|
|
@@ -534,22 +534,22 @@ declare module "meteor/blaze" {
|
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
-
declare
|
|
537
|
+
declare namespace Cordova {
|
|
538
538
|
function depends(dependencies: { [id: string]: string }): void;
|
|
539
539
|
}
|
|
540
540
|
|
|
541
541
|
declare module "meteor/ddp" {
|
|
542
|
-
export
|
|
542
|
+
export namespace DDP {
|
|
543
543
|
function connect(url: string): DDP.DDPStatic;
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
declare
|
|
547
|
+
declare namespace DDPCommon {
|
|
548
548
|
function MethodInvocation(options: {
|
|
549
549
|
}): any;
|
|
550
550
|
}
|
|
551
551
|
|
|
552
|
-
declare
|
|
552
|
+
declare namespace EJSON {
|
|
553
553
|
var CustomType: CustomTypeStatic;
|
|
554
554
|
interface CustomTypeStatic {
|
|
555
555
|
new (): CustomType;
|
|
@@ -577,14 +577,14 @@ declare module EJSON {
|
|
|
577
577
|
function toJSONValue(val: EJSON): JSONable;
|
|
578
578
|
}
|
|
579
579
|
|
|
580
|
-
declare
|
|
580
|
+
declare namespace Match {
|
|
581
581
|
function test(value: any, pattern: any): boolean;
|
|
582
582
|
}
|
|
583
583
|
|
|
584
584
|
declare module "meteor/meteor" {
|
|
585
585
|
import { Mongo } from "meteor/mongo";
|
|
586
586
|
|
|
587
|
-
export
|
|
587
|
+
export namespace Meteor {
|
|
588
588
|
var Error: ErrorStatic;
|
|
589
589
|
interface ErrorStatic {
|
|
590
590
|
new (error: string | number, reason?: string, details?: string): Error;
|
|
@@ -643,7 +643,7 @@ declare module "meteor/meteor" {
|
|
|
643
643
|
declare module "meteor/mongo" {
|
|
644
644
|
import { Meteor } from "meteor/meteor";
|
|
645
645
|
|
|
646
|
-
export
|
|
646
|
+
export namespace Mongo {
|
|
647
647
|
var Collection: CollectionStatic;
|
|
648
648
|
interface CollectionStatic {
|
|
649
649
|
new <T>(name: string, options?: {
|
|
@@ -719,12 +719,12 @@ declare module "meteor/mongo" {
|
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
721
|
|
|
722
|
-
declare
|
|
722
|
+
declare namespace Npm {
|
|
723
723
|
function depends(dependencies: { [id: string]: string }): void;
|
|
724
724
|
function require(name: string): any;
|
|
725
725
|
}
|
|
726
726
|
|
|
727
|
-
declare
|
|
727
|
+
declare namespace Package {
|
|
728
728
|
function describe(options: {
|
|
729
729
|
summary?: string;
|
|
730
730
|
version?: string;
|
|
@@ -745,7 +745,7 @@ declare module Package {
|
|
|
745
745
|
}
|
|
746
746
|
|
|
747
747
|
declare module "meteor/tracker" {
|
|
748
|
-
export
|
|
748
|
+
export namespace Tracker {
|
|
749
749
|
function Computation(): void;
|
|
750
750
|
interface Computation {
|
|
751
751
|
firstRun: boolean;
|
|
@@ -779,7 +779,7 @@ declare module "meteor/tracker" {
|
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
781
|
|
|
782
|
-
declare
|
|
782
|
+
declare namespace Session {
|
|
783
783
|
function equals(key: string, value: string | number | boolean | any /** Null **/ | any /** Undefined **/): boolean;
|
|
784
784
|
function get(key: string): any;
|
|
785
785
|
function set(key: string, value: EJSONable | any /** Undefined **/): void;
|
|
@@ -788,7 +788,7 @@ declare module Session {
|
|
|
788
788
|
|
|
789
789
|
declare module "meteor/http" {
|
|
790
790
|
import { Meteor } from "meteor/meteor";
|
|
791
|
-
export
|
|
791
|
+
export namespace HTTP {
|
|
792
792
|
|
|
793
793
|
function call(method: string, url: string, options?: {
|
|
794
794
|
content?: string;
|
|
@@ -810,7 +810,7 @@ declare module "meteor/http" {
|
|
|
810
810
|
}
|
|
811
811
|
|
|
812
812
|
declare module "meteor/email" {
|
|
813
|
-
export
|
|
813
|
+
export namespace Email {
|
|
814
814
|
function send(options: {
|
|
815
815
|
from?: string;
|
|
816
816
|
to?: string | string[];
|
|
@@ -950,6 +950,6 @@ declare function execFileSync(command: string, args?: any[], options?: {
|
|
|
950
950
|
stdio?: any[] | string;
|
|
951
951
|
destination?: any;
|
|
952
952
|
waitForClose?: string;
|
|
953
|
-
}):
|
|
954
|
-
declare function getExtension():
|
|
953
|
+
}): string;
|
|
954
|
+
declare function getExtension(): string;
|
|
955
955
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"browser": true,
|
|
4
|
+
"es2021": true,
|
|
5
|
+
"node": true
|
|
6
|
+
},
|
|
7
|
+
"extends": [
|
|
8
|
+
"eslint:recommended",
|
|
9
|
+
"plugin:react/recommended"
|
|
10
|
+
],
|
|
11
|
+
"overrides": [
|
|
12
|
+
],
|
|
13
|
+
"parserOptions": {
|
|
14
|
+
"ecmaVersion": "latest",
|
|
15
|
+
"sourceType": "module"
|
|
16
|
+
},
|
|
17
|
+
"plugins": [
|
|
18
|
+
"react",
|
|
19
|
+
"css"
|
|
20
|
+
],
|
|
21
|
+
"rules": {
|
|
22
|
+
"react/prop-types": "off"
|
|
23
|
+
},
|
|
24
|
+
"ignorePatterns": ["**/*.css", "**/*.scss", "**/*.app-tests.*", "**/*.tests.*"],
|
|
25
|
+
"settings": {
|
|
26
|
+
"react": {
|
|
27
|
+
"createClass": "createReactClass",
|
|
28
|
+
"pragma": "React",
|
|
29
|
+
"fragment": "Fragment",
|
|
30
|
+
"version": "detect"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
package/dist/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){
|
|
1
|
+
const a77H=a77d;(function(a,b){const D=a77d,c=a();while(!![]){try{const d=parseInt(D(0x10e))/0x1*(-parseInt(D(0x112))/0x2)+parseInt(D(0x125))/0x3+parseInt(D(0x10f))/0x4+parseInt(D(0x139))/0x5+-parseInt(D(0x12a))/0x6+-parseInt(D(0x135))/0x7+parseInt(D(0x13d))/0x8*(parseInt(D(0x11c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0x20223));const a77b=(function(){let a=!![];return function(b,c){const E=a77d;if(E(0x12f)==='XqqMs'){if(!f[E(0x133)](g)){k['error'](E(0x13e)+l);throw new m();}}else{const e=a?function(){const F=E;if(c){const f=c[F(0x13b)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a77a=a77b(this,function(){const G=a77d;return a77a[G(0x138)]()[G(0x113)](G(0x131))[G(0x138)]()[G(0x12e)](a77a)[G(0x113)]('(((.+)+)+)+$');});a77a();import a77A from'path';function a77d(a,b){const c=a77c();return a77d=function(d,e){d=d-0x10b;let f=c[d];return f;},a77d(a,b);}import a77B from'os';import a77C from'fs';const homeDir=a77B[a77H(0x122)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{UsageError}from'./error.js';function a77c(){const W=['469265JmboNN','length','apply','Missing\x20required\x20options\x20','22544AYdUWL','Invalid\x20options:\x20','usage','fsi','existsSync','validateMakaProject','shortDesc','help','Invalid\x20argument:\x20','examples','docker','171934utxlnn','345488KGKlcK','dir','dbWqb','2YqNchN','search','win32','None','keys','parent','No\x20usage\x20provided.','REpVU','Local','description','63VHABdM','vkVPx','aliases','goWFA','cwd','push','homedir','Missing\x20required\x20option:\x20','root','717321EfnVhR','config','match','resourceName','forEach','335886fQTFOJ','error','.meteor','options','constructor','kcBgd','jbwLP','(((.+)+)+)+$','join','includes','platform','556668lQRPBv','concat','VkrqV','toString'];a77c=function(){return W;};return a77c();}export class Tool{constructor(){const I=a77H;this[I(0x10d)]=new Docker(),this['fsi']=new FSI();}[a77H(0x127)](a){const J=a77H,b=[this['name']][J(0x136)](this['options'][J(0x11e)]||[]);return this[J(0x117)]&&b['push'](this[J(0x117)]),b[J(0x133)](a);}[a77H(0x142)](){const K=a77H,a=this[K(0x140)]['findProjectDirectory']();return a!==![]?!![]:![];}['validateMeteorInstall'](){const L=a77H;let a=a77A['join'](homeDir,L(0x12c));const b=process[L(0x134)]===L(0x114);if(b){if(L(0x137)===L(0x137)){a=a77A[L(0x132)](homeDir,'AppData',L(0x11a),L(0x12c));if(!a77C[L(0x141)](a)){if(L(0x130)===L(0x130))return![];else this[L(0x10d)]=new c(),this[L(0x140)]=new d();}}else{d[L(0x12b)]('Invalid\x20argument:\x20'+e);throw new f();}}else{if(!a77C['existsSync'](a))return![];}return!![];}['validateParams'](a,b,c){const M=a77H,{requiredOpts:requiredOpts=[],validArgs:d}=c;let {validOpts:validOpts=[]}=c;const e=Object[M(0x116)](b);(d===null||d===void 0x0?void 0x0:d[M(0x13a)])>0x0&&a[M(0x129)](f=>{const N=M;if(N(0x11f)!==N(0x11d)){if(!d['includes'](f)){Log[N(0x12b)](N(0x10b)+f);throw new UsageError();}}else k[N(0x121)](N(0x144)),l[N(0x121)](N(0x128)),m[N(0x121)](N(0x110)),n[N(0x121)](N(0x120)),o[N(0x121)](N(0x124)),p[N(0x121)](N(0x126)),q[N(0x129)](A=>{const O=N;if(!u[O(0x133)](A)){x[O(0x12b)]('Invalid\x20options:\x20'+A);throw new y();}});});if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[M(0x13a)])>0x0){if(e['length']===0x0){Log['error'](M(0x13c)+requiredOpts[M(0x132)](',\x20'));throw new UsageError();}requiredOpts[M(0x129)](f=>{const P=M;if(!e[P(0x133)](f)){if('bYRcm'!==P(0x119)){Log[P(0x12b)](P(0x123)+f);throw new UsageError();}else return this['options'][P(0x13f)]||P(0x118);}});}validOpts=validOpts[M(0x136)](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts['length'])>0x0&&(validOpts[M(0x121)]('help'),validOpts[M(0x121)](M(0x128)),validOpts[M(0x121)](M(0x110)),validOpts[M(0x121)]('cwd'),validOpts['push'](M(0x124)),validOpts[M(0x121)]('config'),e[M(0x129)](f=>{const Q=M;if(!validOpts[Q(0x133)](f)){if(Q(0x111)==='iWKOk'){if(e){const h=i[Q(0x13b)](j,arguments);return k=null,h;}}else{Log[Q(0x12b)]('Invalid\x20options:\x20'+f);throw new UsageError();}}}));}[a77H(0x11b)](){const R=a77H;return this[R(0x12d)][R(0x11b)]||this[R(0x12d)][R(0x143)]||'No\x20description\x20provided.';}[a77H(0x143)](){const S=a77H;return this['options'][S(0x143)]||'NIE';}[a77H(0x13f)](){const T=a77H;return this[T(0x12d)][T(0x13f)]||T(0x118);}[a77H(0x10c)](){const U=a77H;return this[U(0x12d)][U(0x10c)]||[];}[a77H(0x11e)](){const V=a77H;return this[V(0x12d)][V(0x11e)]||V(0x115);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a78y=a78d;(function(a,b){const v=a78d,c=a();while(!![]){try{const d=parseInt(v(0x105))/0x1+-parseInt(v(0xe7))/0x2*(parseInt(v(0xf5))/0x3)+-parseInt(v(0x106))/0x4*(parseInt(v(0xf9))/0x5)+parseInt(v(0xe1))/0x6*(-parseInt(v(0xeb))/0x7)+-parseInt(v(0x104))/0x8*(-parseInt(v(0x101))/0x9)+-parseInt(v(0xe6))/0xa*(-parseInt(v(0xe4))/0xb)+-parseInt(v(0xf8))/0xc*(parseInt(v(0xf7))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0xdb03e));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a78d;if(w(0x108)==='pWDxz'){if(c){const e=c[w(0xe3)](b,arguments);return c=null,e;}}else try{i(j[w(0xfc)](k));}catch(g){m(g);}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const x=a78d;return a78a[x(0xec)]()[x(0xef)](x(0xea))[x(0xec)]()['constructor'](a78a)[x(0xef)](x(0xea));});a78a();function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0xe1;let f=c[d];return f;},a78d(a,b);}var __awaiter=this&&this[a78y(0xee)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a78d;if(z(0xfe)!==z(0xf4))g(f);else{const i=d[z(0xe3)](e,arguments);return f=null,i;}});}return new(c||(c=Promise))(function(f,g){const D=a78d;function h(k){const A=a78d;if('azmrQ'===A(0xed))d(e[A(0x107)](f));else try{A(0xf0)===A(0xff)?c(d):j(d['next'](k));}catch(n){g(n);}}function i(k){const B=a78d;try{if(B(0xe8)!=='WShMb')j(d[B(0x107)](k));else{const n=g?function(){if(n){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],n;}}catch(m){'PrkRf'===B(0xe9)?g(m):c(d);}}function j(k){const C=a78d;k[C(0x100)]?f(k[C(0xfb)]):e(k[C(0xfb)])[C(0x103)](h,i);}j((d=d[D(0xe3)](a,b||[]))[D(0xfc)]());});};function a78c(){const H=['2151453iFxDQe','LIvBF','15317315XtfJlE','12kBoHdr','3207380FMofph','vulHq','value','next','input','PJKZh','vPHLX','done','6188373aEegra','confirm','then','16bLXPbN','1696991rGsgTV','4dSQPSV','throw','pWDxz','6pqIzVF','ask','apply','11ZkxTVp','password','16017730WeQpHI','4QqrfRF','LlXfF','PrkRf','(((.+)+)+)+$','3659873JEgbKz','toString','nXznq','__awaiter','search','WvgAO','answer','prompt','options','yHcPq'];a78c=function(){return H;};return a78c();}import a78u from'inquirer';export class Actions{static[a78y(0xe2)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a78d;if(E(0xfa)!==E(0xf6)){const {answer:c}=yield a78u[E(0xf2)]({'type':b?E(0xe5):E(0xfd),'name':E(0xf1),'message':a});return c;}else try{i(j[E(0x107)](k));}catch(e){m(e);}});}static['confirm'](a,b=![]){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a78d,{answer:c}=yield a78u[F(0xf2)]({'type':F(0x102),'name':'answer','message':a,'default':b});return c;});}static[a78y(0xf3)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a78d,b=yield a78u[G(0xf2)](a);return b;});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a79y=a79d;(function(a,b){const v=a79d,c=a();while(!![]){try{const d=-parseInt(v(
|
|
1
|
+
const a79y=a79d;(function(a,b){const v=a79d,c=a();while(!![]){try{const d=-parseInt(v(0x140))/0x1*(parseInt(v(0x14a))/0x2)+parseInt(v(0x13e))/0x3+parseInt(v(0x135))/0x4+parseInt(v(0x134))/0x5*(parseInt(v(0x146))/0x6)+parseInt(v(0x148))/0x7*(-parseInt(v(0x145))/0x8)+-parseInt(v(0x142))/0x9*(-parseInt(v(0x137))/0xa)+-parseInt(v(0x139))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0xf1e29));const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a79d;if('ZWJKz'!==w(0x131))d(e[w(0x132)](f));else{if(c){if(w(0x138)==='HoofN'){const f=c[w(0x14b)](b,arguments);return c=null,f;}else{const h=d[w(0x14b)](e,arguments);return f=null,h;}}}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const x=a79d;return a79a[x(0x143)]()[x(0x13a)](x(0x147))[x(0x143)]()['constructor'](a79a)[x(0x13a)]('(((.+)+)+)+$');});a79a();var __awaiter=this&&this[a79y(0x136)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const C=a79d;function h(k){const z=a79d;try{if(z(0x12e)!==z(0x149))j(d['next'](k));else return c[z(0x143)]()[z(0x13a)]('(((.+)+)+)+$')[z(0x143)]()[z(0x130)](d)[z(0x13a)]('(((.+)+)+)+$');}catch(m){g(m);}}function i(k){const A=a79d;try{j(d[A(0x132)](k));}catch(l){if(A(0x133)!==A(0x133))try{i(j[A(0x132)](k));}catch(o){m(o);}else g(l);}}function j(k){const B=a79d;B(0x14c)===B(0x13b)?h['done']?i(j[B(0x150)]):k(l['value'])[B(0x151)](m,n):k['done']?f(k['value']):e(k[B(0x150)])['then'](h,i);}j((d=d['apply'](a,b||[]))[C(0x144)]());});};import a79u from'chai';const {expect}=a79u;function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x12e;let f=c[d];return f;},a79d(a,b);}import{describe,it}from'mocha';import{Actions}from'./actions.class.js';function a79c(){const G=['Actions\x20Test','482553AgOTds','toString','next','1384GXtpIz','12DEosKw','(((.+)+)+)+$','72023dCBvto','wKqNB','37946DtUjhe','apply','obECM','log','ask','LgFnO','value','then','VyzLF','PlqYH','constructor','ZWJKz','throw','bsxiv','4916980FwDWYj','5369908YxUuJf','__awaiter','170MnpNDr','HoofN','10980156dBHaeL','search','sRulW','NeYgQ','works','3141189WCBwhV','Password:\x20','79TTLuKw'];a79c=function(){return G;};return a79c();}describe(a79y(0x141),function(){const D=a79y;it(D(0x13d),function(a){const E=D;if(E(0x13c)===E(0x13c))return __awaiter(this,void 0x0,void 0x0,function*(){const F=E;if(F(0x14f)===F(0x12f))c(d);else{const c=yield Actions[F(0x14e)](F(0x13f),!![]);console[F(0x14d)](c),a();}});else d(e['next'](f));});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0x1a4;let f=c[d];return f;},a80d(a,b);}const a80U=a80d;(function(a,b){const R=a80d,c=a();while(!![]){try{const d=parseInt(R(0x205))/0x1*(parseInt(R(0x1ea))/0x2)+-parseInt(R(0x1cb))/0x3+parseInt(R(0x1fb))/0x4+parseInt(R(0x1f0))/0x5*(parseInt(R(0x1f4))/0x6)+-parseInt(R(0x1d4))/0x7+parseInt(R(0x212))/0x8+-parseInt(R(0x257))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x26d1c));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){const S=a80d;if(S(0x1f7)==='WdwYd'){if(c){const e=c[S(0x23e)](b,arguments);return c=null,e;}}else return c[S(0x1a8)](d),{};}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const T=a80d;return a80a[T(0x231)]()[T(0x225)](T(0x1b5))['toString']()[T(0x215)](a80a)[T(0x225)](T(0x1b5));});a80a();function a80c(){const ax=['privateIp','search','name','\x20SGID:\x20','join','SkIAl','sgPorts','uMsZs','__awaiter','deleteSecurityGroup','exit','ENnZl','dhnMU','toString','subnet','DgSKr','wIKML','--repository-name','--instance-ids','bright','bnDqm','ec2','value','xmejB','--query','--cidr','apply','writeFileSync','delete-security-group','imageId','kZLVd','\x22Name=tag:created-by,Values=maka-cli\x22','Key\x20Name:\x20[','--instance-id','config','log','--vpc-id','srUGQ','--force','--description','dyrdI','push','0.0.0.0/0','No\x20instances\x20found','--tag-specifications','cidr','aws\x20','delete-key-pair','file://','PaWXf','\x22Reservations[*].Instances[*].{instanceId:InstanceId,publicIp:PublicIpAddress,privateIp:PrivateIpAddress,status:State.Name,name:Tags[?Key==\x27Name\x27].Value,env:Tags[?Key==\x27environment\x27].Value}[*]\x22','1237509QleWzy','\x20opened!','BJPgX','Invalid\x20choice','UxpOH','vGKrR','MImEE','get-login-password','--port','then','authorize-security-group-ingress','ecrDeleteRepository','ID:\x20','\x20PRIV_IP:\x20','lEwjL','description','\x20ENV:\x20','getConfigPath','BLJHb','error','--group-name','--protocol','create-key-pair','terminated','\x20SG\x20NAME:\x20','cwd','findProjectDirectory','next','terminate-instances','sgId','ask','--region','(((.+)+)+)+$','CidrBlock','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20NAME:\x20','Created:\x20','[-]\x20AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','publicIp','fktGw','parse','lkPTt','instanceId','running','describe-key-pairs','forEach','tags','throw','WcgGP','env','length','--subnet-id','KVFQd','OHdIy','247512zjjhte','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','DGvkY','--key-name','createFile','hlRQm','stringify','confirm','readFileSync','1693888rirVIb','Please\x20choose\x20a\x20VPC:\x20[0]\x20','PjUue','fsi','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','GroupId','\x20VPCID:\x20','chmod\x20400\x20','ec2rebootInstance','Name','ecrGetLoginPassword','\x20CIDR:\x20','\x20INSTANCE_ID:\x20','inherit','KGaUA','VpcId','_keys','ssh.json','pem','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','BsGaC','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','188644vKjgKV','vpcId','ignore','ec2createSG','notice','qKZZm','120EhlJDo','Could\x20not\x20create\x20key.','EcpjR','bcjxU','49638GyWEIP','--count','**\x20Available\x20Security\x20Groups\x20**','WdwYd','WbfQO','ec2terminateInstance','zamNw','1224156hWsRrA','type','ec2key','--group-id','eidzm','--image-id','Xcmmx','ndHol','create-repository','.pem.txt','1IuComJ','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','stCjH','userData','--security-group-ids','PKJwQ','\x20PUB_IP:\x20','chooseVPC','IWUjQ','ec2term','status','utf8','success','176640gnKoQG','reboot-instances','tcp','constructor','deleteKeyPair','ec2create','key','\x20STATUS:\x20','ec2describeInstances','ecr','done','find','unxuo','Pem\x20key\x20saved\x20to\x20','lgvSw','aws\x20ec2\x20describe-vpcs','KeyMaterial','rijbb'];a80c=function(){return ax;};return a80c();}var __awaiter=this&&this[a80U(0x22c)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const Y=a80d;function h(k){const V=a80d;try{if(V(0x201)===V(0x201))j(d[V(0x1b0)](k));else{const m=d[V(0x23e)](e,arguments);return f=null,m;}}catch(m){V(0x25b)===V(0x25d)?c[V(0x1a8)](d):g(m);}}function i(k){const W=a80d;try{j(d[W(0x1c4)](k));}catch(l){if(W(0x1ca)===W(0x1ca))g(l);else throw W(0x1e7);}}function j(k){const X=a80d;X(0x242)!==X(0x242)?c[X(0x1a8)](d):k[X(0x21c)]?f(k['value']):e(k[X(0x23a)])['then'](h,i);}j((d=d[Y(0x23e)](a,b||[]))[Y(0x1b0)]());});};import a80P from'fs';import a80Q from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{Docker}from'../docker/docker.class.js';import{FSI}from'../fsi/fsi.class.js';export class AWS{constructor(){const Z=a80U;this[Z(0x1d7)]=new FSI();}['ecrCreateRepository'](a){const a0=a80U;try{let b=[a0(0x21b),a0(0x203),a0(0x235),a[a0(0x226)],a0(0x1b4),a['region']],c=a0(0x252)+b[a0(0x228)]('\x20'),d=execSync(c)[a0(0x231)]();return d;}catch(f){if(a0(0x202)!==a0(0x230))Log[a0(0x1a8)](f);else return b[a0(0x1a8)](a0(0x24f)),null;}}[a80U(0x1de)]({awsAccountId:a,region:b}){const a1=a80U;try{if(a1(0x23b)!==a1(0x1e8)){let c=[a1(0x21b),a1(0x25e),'|',Docker['awsLogin']({'awsAccountId':a,'region':b})],d=a1(0x252)+c['join']('\x20'),f=execSync(d)[a1(0x231)]();return f;}else d[a1(0x1a8)](e),f[a1(0x22e)](0x1);}catch(h){if(a1(0x255)!==a1(0x1d0))Log['error'](h);else try{let j=['ec2','delete-key-pair',a1(0x1ce),i],k='aws\x20'+j[a1(0x228)]('\x20');j(k,{'stdio':a1(0x1e1)});}catch(l){m['error'](l),n['exit'](0x1);}}}[a80U(0x262)]({repoName:a,region:b}){const a2=a80U;try{if('AcxZt'==='PnZRv')return f instanceof g?h:new i(function(m){m(k);});else{let d=[a2(0x21b),'delete-repository',a2(0x235),a,a2(0x1b4),b,a2(0x24a)],f=a2(0x252)+d[a2(0x228)]('\x20'),g=execSync(f)[a2(0x231)]();return g;}}catch(h){if(a2(0x223)!==a2(0x249))Log[a2(0x1a8)](h);else{let j=f[a2(0x1ae)]?g[a2(0x1ae)]:h[a2(0x1ae)](),n=[a2(0x239),a2(0x1b1),a2(0x236),i[a2(0x1bf)]],o=a2(0x252)+n[a2(0x228)]('\x20');j(o,{'stdio':a2(0x1e1)});}}}[a80U(0x217)](a){const a3=a80U;try{if(a3(0x1c5)!=='WcgGP')k[a3(0x226)]===l?u[a3(0x1ee)]('ID:\x20'+v['id']+a3(0x1ad)+w[a3(0x226)]+a3(0x227)+x[a3(0x1b2)]):y['bright']('ID:\x20'+z['id']+a3(0x1ad)+A[a3(0x226)]+'\x20SGID:\x20'+B[a3(0x1b2)]);else{let c=['ec2','run-instances',a3(0x200),a[a3(0x241)],a3(0x1f5),a['count'],'--instance-type',a[a3(0x1fc)],a3(0x1ce),a[a3(0x218)],a3(0x209),a['sgIds'],a3(0x1c8),a[a3(0x232)],a3(0x250),a[a3(0x1c3)]];a[a3(0x208)]&&(c[a3(0x24d)]('--user-data'),c['push'](a3(0x254)+a[a3(0x208)]));let d='aws\x20'+c['join']('\x20'),f=execSync(d)['toString']();return f;}}catch(g){a3(0x207)===a3(0x1f2)?c[a3(0x1a8)](d):Log[a3(0x1a8)](g);}}[a80U(0x20e)](a){const a4=a80U;try{let b=a[a4(0x1ae)]?a[a4(0x1ae)]:process[a4(0x1ae)](),c=[a4(0x239),'terminate-instances',a4(0x236),a[a4(0x1bf)]],d=a4(0x252)+c[a4(0x228)]('\x20');execSync(d,{'stdio':a4(0x1e1)});}catch(f){return Log[a4(0x1a8)](f),{};}}[a80U(0x1fd)]({fileName:a,env:b}){return __awaiter(this,void 0x0,void 0x0,function*(){const a5=a80d;if(a5(0x1c9)!==a5(0x229)){let c=this[a5(0x1d7)][a5(0x1a6)](b);const d=a80Q[a5(0x228)](c,a5(0x1e4),a+a5(0x204));try{let g=[a5(0x239),a5(0x1ab),a5(0x1ce),a],h=a5(0x252)+g[a5(0x228)]('\x20'),i=execSync(h)[a5(0x231)](),j=JSON['parse'](i),k=j[a5(0x222)];yield this[a5(0x1d7)][a5(0x1cf)]({'filePath':d,'data':k}),execSync(a5(0x1db)+d,{'stdio':a5(0x1ec)}),Log[a5(0x211)](a5(0x21f)+d);}catch(l){return Log['error'](l),![];}const f=this[a5(0x1d7)]['isFile'](d);return f;}else throw a5(0x1ba);});}[a80U(0x1ed)](a){const a6=a80U;try{let b=a[a6(0x1ae)]?a['cwd']:process[a6(0x1ae)](),c=[a6(0x239),'create-security-group',a6(0x24b),a[a6(0x1a4)],a6(0x1a9),a[a6(0x226)],a6(0x248),a[a6(0x1eb)]],d=a6(0x252)+c[a6(0x228)]('\x20'),f=execSync(d,{'cwd':b})[a6(0x231)]();if(!f){if(a6(0x238)!=='ebqDt')throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';else b['error'](a6(0x25a));}let g=JSON['parse'](f);function h(j,k){const a7=a6;let l=[a7(0x239),a7(0x261),'--group-id',k,a7(0x1aa),a7(0x214),a7(0x25f),j,a7(0x23d),a7(0x24e)];return l;}return a[a6(0x22a)]['forEach'](j=>{const a8=a6;let k=a8(0x252)+h(j,g[a8(0x1d9)])[a8(0x228)]('\x20');execSync(k,{'cwd':b,'stdio':a8(0x1ec)}),Log[a8(0x1ee)]('Port\x20'+j+a8(0x258));}),Log[a6(0x211)](a6(0x1b9)+g['GroupId']+a6(0x1b8)+a[a6(0x226)]),!![];}catch(j){if(a6(0x1a7)===a6(0x1a7))Log[a6(0x1a8)](j);else return f(this,void 0x0,void 0x0,function*(){const a9=a6;try{let x=[a9(0x239),a9(0x240),a9(0x1fe),o],y=a9(0x252)+x['join']('\x20');p(y,{'stdio':a9(0x1e1)});}catch(z){s[a9(0x1a8)](z),t[a9(0x22e)](0x1);}});}}['ec2describeKeys'](a){const aa=a80U;try{let b=(a===null||a===void 0x0?void 0x0:a[aa(0x1ae)])?a[aa(0x1ae)]:process['cwd'](),c=[aa(0x239),aa(0x1c1),aa(0x23c),'\x22KeyPairs[*].{name:KeyName}\x22'],d=aa(0x252)+c[aa(0x228)]('\x20'),f=execSync(d)[aa(0x231)]();if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';let g=JSON['parse'](f),h=[];if(g)g[aa(0x1c2)]((i,j)=>{const ab=aa;if(ab(0x1e2)!==ab(0x1ff))h['push']({'id':j,'name':i[ab(0x226)]});else return f(this,void 0x0,void 0x0,function*(){const ac=ab;try{let x=[ac(0x239),ac(0x253),ac(0x1ce),o],y=ac(0x252)+x[ac(0x228)]('\x20');p(y,{'stdio':ac(0x1e1)});}catch(z){s[ac(0x1a8)](z),t[ac(0x22e)](0x1);}});}),h['forEach'](i=>{const ad=aa;if(ad(0x1ef)!==ad(0x259))i['name']===(a===null||a===void 0x0?void 0x0:a['suggestion'])?Log['success'](ad(0x263)+i['id']+ad(0x1b8)+i[ad(0x226)]):Log['notice'](ad(0x263)+i['id']+ad(0x1b8)+i[ad(0x226)]);else try{const k=y[ad(0x1d3)](z['join'](ad(0x246),A,'ssh.json'),ad(0x210)),l=B[ad(0x1bd)](k);l[ad(0x1e6)]=C['join'](ad(0x1e4),D+'.pem.txt'),E[ad(0x23f)](F[ad(0x228)]('config',G,'ssh.json'),H[ad(0x1d1)](l,null,0x2));}catch(m){K[ad(0x1a8)](m),L[ad(0x1a8)](ad(0x206));}});else return Log[aa(0x1a8)](aa(0x1cc)),[];return h;}catch(i){Log[aa(0x1a8)](i);}}[a80U(0x216)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const ae=a80d;try{let b=[ae(0x239),'delete-key-pair',ae(0x1ce),a],c=ae(0x252)+b['join']('\x20');execSync(c,{'stdio':ae(0x1e1)});}catch(d){ae(0x220)!=='zoxLB'?(Log[ae(0x1a8)](d),process[ae(0x22e)](0x1)):d[ae(0x24d)]({'id':d,'name':f[ae(0x226)]});}});}[a80U(0x21a)](a){const af=a80U;let b=[];try{if(af(0x22f)===af(0x22f)){let c=(a===null||a===void 0x0?void 0x0:a[af(0x1ae)])?a[af(0x1ae)]:process[af(0x1ae)](),d=[af(0x239),'describe-instances','--filters',af(0x243),af(0x23c),af(0x256)],f=af(0x252)+d['join']('\x20'),g=execSync(f,{'cwd':c})[af(0x231)]();if(!g){if('drupP'!=='drupP')h[af(0x21c)]?i(j[af(0x23a)]):k(l['value'])[af(0x260)](m,n);else throw af(0x1ba);}let h=JSON[af(0x1bd)](g);h[af(0x1c7)]>0x0?(h=[]['concat'][af(0x23e)]([],h),h[af(0x1c2)](function(j,k){const ag=af;b['push']({'id':k,'instanceId':j['instanceId'],'privateIp':j[ag(0x224)],'publicIp':j[ag(0x1bb)],'status':j[ag(0x20f)],'name':j['name'],'env':j[ag(0x1c6)][0x0]});}),b[af(0x1c2)](j=>{const ah=af;let k=ah(0x263)+j['id']+'\x20NAME:\x20'+j[ah(0x226)]+ah(0x1a5)+j[ah(0x1c6)]+'\x20STATUS:\x20'+j[ah(0x20f)]+ah(0x1e0)+j[ah(0x1bf)]+ah(0x20b)+j[ah(0x1bb)]+ah(0x264)+j[ah(0x224)];if(j['status']===ah(0x1ac))Log[ah(0x1a8)](k);else j[ah(0x20f)]==='running'?ah(0x24c)===ah(0x24c)?Log[ah(0x211)](k):e['log'](ah(0x263)+f['id']+ah(0x1da)+g[ah(0x1eb)]+ah(0x1df)+h[ah(0x251)]):Log['notice'](k);})):Log[af(0x1a8)](af(0x1e9));}else c[af(0x1a8)](d);}catch(k){af(0x1cd)===af(0x22b)?d['success'](af(0x263)+k['id']+af(0x1b8)+f[af(0x226)]):Log[af(0x1a8)](k);}return b;}[a80U(0x1f9)](a){const ai=a80U;try{let b=(a===null||a===void 0x0?void 0x0:a[ai(0x1ae)])?a[ai(0x1ae)]:process[ai(0x1ae)](),c=[ai(0x239),ai(0x1b1),'--instance-id',a[ai(0x1bf)]],d=ai(0x252)+c[ai(0x228)]('\x20'),f=execSync(d)[ai(0x231)]();return f;}catch(g){if('ROEMp'===ai(0x1f8)){const i=g?function(){const aj=ai;if(i){const u=q[aj(0x23e)](r,arguments);return s=null,u;}}:function(){};return l=![],i;}else Log[ai(0x1a8)](g);}}[a80U(0x1dc)](a){const ak=a80U;try{let b=a[ak(0x1ae)]?a[ak(0x1ae)]:process[ak(0x1ae)](),c=[ak(0x239),ak(0x213),ak(0x245),a[ak(0x1bf)]],d='aws\x20'+c[ak(0x228)]('\x20');Log[ak(0x1ee)](d);let f=execSync(d)[ak(0x231)]();return Log[ak(0x1ee)](f),f;}catch(g){Log[ak(0x1a8)](g);}}[a80U(0x20c)](){return __awaiter(this,void 0x0,void 0x0,function*(){const al=a80d;if(al(0x25c)!==al(0x25c)){let b=[al(0x239),al(0x240),al(0x1fe),c],c=al(0x252)+b[al(0x228)]('\x20');d(c,{'stdio':al(0x1e1)});}else{let b='';Log[al(0x1ee)]('**\x20Available\x20\x20VPCs\x20**');let c=execSync(al(0x221))[al(0x231)](),d=JSON[al(0x1bd)](c),e=[];Object['keys'](d)[al(0x1c2)](function(g){const am=al;am(0x21e)===am(0x21e)?d[g]['forEach'](function(h,i){const an=am;if(an(0x234)===an(0x234))e[an(0x24d)]({'id':i,'vpcId':h['VpcId'],'cidr':h[an(0x1b6)]});else{let k='ID:\x20'+m['id']+'\x20NAME:\x20'+n['name']+an(0x1a5)+o[an(0x1c6)]+an(0x219)+p[an(0x20f)]+an(0x1e0)+q['instanceId']+an(0x20b)+r[an(0x1bb)]+an(0x264)+s[an(0x224)];if(t['status']===an(0x1ac))y[an(0x1a8)](k);else v['status']===an(0x1c0)?z[an(0x211)](k):A['notice'](k);}}):d[e][am(0x1c2)](function(j,k){const ao=am;g['push']({'id':k,'vpcId':j[ao(0x1e3)],'cidr':j[ao(0x1b6)]});});}),e[al(0x1c2)](function(g){const ap=al;console[ap(0x247)](ap(0x263)+g['id']+'\x20VPCID:\x20'+g[ap(0x1eb)]+ap(0x1df)+g[ap(0x251)]);});let f=(yield Actions[al(0x1b3)](al(0x1d5)))||0x0;e[al(0x1c2)](function(g){const aq=al;g['id']==f&&('TBUdN'===aq(0x233)?c[aq(0x1a8)](d):(b=g['vpcId'],Log[aq(0x211)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+b+'\x0a')));});if(b==='')return Log[al(0x1a8)](al(0x1b7)),'';return b;}});}['chooseInstance'](){return __awaiter(this,void 0x0,void 0x0,function*(){const ar=a80d;let a=this['ec2describeInstances']({});if(a['length']===0x0){if(ar(0x20d)==='inVFy')e[ar(0x24d)]({'id':f,'vpcId':g['VpcId'],'cidr':h['CidrBlock']});else return Log[ar(0x1a8)](ar(0x24f)),null;}let b=yield Actions['ask'](ar(0x1d8));if(!b){if(ar(0x1d6)===ar(0x1be))try{i(j['throw'](k));}catch(f){m(f);}else Log[ar(0x1a8)](ar(0x25a));}let c=a[ar(0x21d)](({id:f})=>{return f==parseInt(b);})||null;return c;});}['createKeyPair']({env:a}){return __awaiter(this,void 0x0,void 0x0,function*(){const as=a80d;if('PKJwQ'===as(0x20a)){const b=this[as(0x1d7)]['getProjectConfig']();let c;const d=this['fsi'][as(0x1af)](),{appName:f}=b;let g=f+'-'+a;c=(yield Actions[as(0x1b3)](as(0x244)+g+']\x20'))||g;try{const h=yield this['ec2key']({'fileName':c,'env':a});if(!h){if(as(0x1bc)==='fktGw')throw as(0x1f1);else try{let k=(q===null||r===void 0x0?void 0x0:s[as(0x1ae)])?t[as(0x1ae)]:u['cwd'](),l=[as(0x239),as(0x1b1),as(0x245),v[as(0x1bf)]],m=as(0x252)+l['join']('\x20'),n=w(m)[as(0x231)]();return n;}catch(o){y['error'](o);}}const i=yield Actions[as(0x1d2)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?');if(i)try{const k=a80P['readFileSync'](a80Q[as(0x228)]('config',a,'ssh.json'),as(0x210)),l=JSON[as(0x1bd)](k);l['pem']=a80Q['join'](as(0x1e4),c+as(0x204)),a80P[as(0x23f)](a80Q[as(0x228)](as(0x246),a,as(0x1e5)),JSON['stringify'](l,null,0x2));}catch(m){Log['error'](m),Log[as(0x1a8)](as(0x206));}}catch(n){Log[as(0x1a8)](n),process[as(0x22e)](0x1);}return c;}else{if(e){const p=i[as(0x23e)](j,arguments);return k=null,p;}}});}['listSecurityGroups'](a){return __awaiter(this,void 0x0,void 0x0,function*(){const at=a80d;if(at(0x1f3)!=='GYeSW'){Log[at(0x1ee)](at(0x1f6));let b=execSync('aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22')[at(0x231)](),c=JSON[at(0x1bd)](b),d=[];return c['forEach'](function(e,f){const au=at;d[au(0x24d)]({'id':f,'name':e[au(0x1dd)],'sgId':e['ID']});}),d[at(0x1c2)](function(e){const av=at;av(0x265)!==av(0x1fa)?e[av(0x226)]===a?Log[av(0x1ee)](av(0x263)+e['id']+av(0x1ad)+e['name']+av(0x227)+e[av(0x1b2)]):Log[av(0x237)]('ID:\x20'+e['id']+'\x20SG\x20NAME:\x20'+e[av(0x226)]+av(0x227)+e[av(0x1b2)]):c(d);}),d;}else e[at(0x237)](at(0x263)+f['id']+at(0x1ad)+g[at(0x226)]+at(0x227)+h['sgId']);});}[a80U(0x22d)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const aw=a80d;try{let b=[aw(0x239),aw(0x240),aw(0x1fe),a],c=aw(0x252)+b[aw(0x228)]('\x20');execSync(c,{'stdio':aw(0x1e1)});}catch(d){Log[aw(0x1a8)](d),process[aw(0x22e)](0x1);}});}}
|
|
1
|
+
const a80U=a80d;(function(a,b){const R=a80d,c=a();while(!![]){try{const d=parseInt(R(0xfb))/0x1*(-parseInt(R(0x122))/0x2)+-parseInt(R(0x145))/0x3*(parseInt(R(0x131))/0x4)+-parseInt(R(0x183))/0x5+-parseInt(R(0x141))/0x6+parseInt(R(0x119))/0x7*(parseInt(R(0x135))/0x8)+-parseInt(R(0x171))/0x9+-parseInt(R(0xff))/0xa*(-parseInt(R(0x118))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x81263));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){const S=a80d;if(c){if('evuSD'===S(0xd9))k[S(0x175)]===l?u[S(0xcd)]('ID:\x20'+v['id']+S(0xe4)+w[S(0x175)]+S(0x104)+x[S(0x182)]):y['bright'](S(0xdb)+z['id']+S(0xe4)+A[S(0x175)]+S(0x104)+B[S(0x182)]);else{const f=c[S(0xd6)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const T=a80d;return a80a[T(0xdd)]()[T(0xdf)](T(0xde))[T(0xdd)]()[T(0x168)](a80a)[T(0xdf)](T(0xde));});a80a();var __awaiter=this&&this[a80U(0x17a)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const Z=a80d;function h(k){const V=a80d;if('VhKTd'!=='lyMLn')try{j(d[V(0x184)](k));}catch(l){V(0x11a)!==V(0xce)?g(l):(d[V(0x188)](l),f[V(0x112)](0x1));}else b[V(0x188)](V(0xeb));}function i(k){const W=a80d;if(W(0xe2)!=='kCtGe'){const n=g?function(){const X=W;if(n){const u=q[X(0xd6)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else try{j(d[W(0x147)](k));}catch(m){if('EvEvm'!==W(0xdc))g(m);else try{const r=[W(0x153),'delete-repository','--repository-name',i,W(0xda),j,W(0x12b)],s=W(0x10d)+r['join']('\x20'),t=k(s)[W(0xdd)]();return t;}catch(u){m[W(0x188)](u);}}}function j(k){const Y=a80d;if(Y(0x152)==='xIBNW')k[Y(0x114)]?f(k[Y(0xef)]):e(k[Y(0xef)])[Y(0x16b)](h,i);else throw Y(0xe7);}j((d=d[Z(0xd6)](a,b||[]))['next']());});};import a80P from'fs';import a80Q from'path';import{execSync}from'child_process';function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0xc9;let f=c[d];return f;},a80d(a,b);}function a80c(){const ay=['hVNgj','pem','sgId','3441085MjOejF','next','osbfd','deleteSecurityGroup','mYLHO','error','--subnet-id','aws\x20ec2\x20describe-vpcs','SSmEs','\x20STATUS:\x20','tyxxZ','ec2','Port\x20','userData','chooseInstance','createKeyPair','deleteKeyPair','--security-group-ids','FeysH','ssh.json','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','describe-key-pairs','notice','JraSM','--description','\x22Reservations[*].Instances[*].{instanceId:InstanceId,publicIp:PublicIpAddress,privateIp:PrivateIpAddress,status:State.Name,name:Tags[?Key==\x27Name\x27].Value,env:Tags[?Key==\x27environment\x27].Value}[*]\x22','--image-id','getProjectConfig','\x20PRIV_IP:\x20','bright','run-instances','apply','tcp','success','TDaYS','--region','ID:\x20','qzJwA','toString','(((.+)+)+)+$','search','--repository-name','getConfigPath','kCtGe','rYwhm','\x20SG\x20NAME:\x20','inherit','CidrBlock','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','--query','delete-key-pair','Invalid\x20choice','_keys','aHimu','terminated','value','Created:\x20','concat','ZOopG','reboot-instances','tags','0.0.0.0/0','privateIp','GroupId','KtIiR','parse','Could\x20not\x20create\x20key.','3734KIPLLV','weRde','--instance-ids','ztVNF','1932140QFJJIt','Please\x20choose\x20a\x20VPC:\x20[0]\x20','description','--tag-specifications','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','\x20SGID:\x20','ec2describeKeys','hciud','suggestion','fsi','nqbRt','cwd','stringify','Key\x20Name:\x20[','aws\x20','sgIds','--instance-id','forEach','ec2key','exit','describe-instances','done','find','ignore','join','121NLYWFq','837704yMKdUH','gPQtT','ec2term','region','JwDnC','--filters','aJwOg','ingressRule','ask','182TMVUqp','kiVtm','DEEED','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','eqkWf','KeyMaterial','terminate-instances','ec2terminateInstance','instanceId','--force','listSecurityGroups','icuaD','get-login-password','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','key','4ENyzvc','status','RhPLm','file://','64bVpuCl','imageId','publicIp','Name','env','--group-id','ec2describeInstances','--protocol','ecrCreateRepository','.pem.txt','WphUa','delete-repository','6333768kxFoWa','\x20ENV:\x20','emdXp','AeWuW','921321wfFCZu','create-key-pair','throw','VpcId','chooseVPC','**\x20Available\x20Security\x20Groups\x20**','oqama','ec2createSG','writeFileSync','\x20CIDR:\x20','CYyon','cidr','config','xIBNW','ecr','--key-name','running','No\x20instances\x20found','sgPorts','length','create-repository','--instance-type','--cidr','\x20PUB_IP:\x20','Txldn','authorize-security-group-ingress','readFileSync','vpcId','HUTZB','\x20NAME:\x20','tfLUx','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','push','[-]\x20AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','HNZdO','constructor','--user-data','\x20INSTANCE_ID:\x20','then','--port','--vpc-id','awsLogin','\x22Name=tag:created-by,Values=maka-cli\x22','bRfez','1466901uNEEcq','confirm','delete-security-group','count','name','bQqlV','\x20opened!','Pem\x20key\x20saved\x20to\x20','createFile','__awaiter','type','--group-name','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','OaaLx','create-security-group'];a80c=function(){return ay;};return a80c();}import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{Docker}from'../docker/docker.class.js';import{FSI}from'../fsi/fsi.class.js';export class AWS{constructor(){const a0=a80U;this[a0(0x120)]=(a,b)=>{const a1=a0;if(a1(0xc9)===a1(0x163))c[a1(0xcd)](d);else{const d=[a1(0x18e),'authorize-security-group-ingress',a1(0x13a),b,a1(0x13c),'tcp',a1(0x16c),a,a1(0x15b),a1(0xf5)];return d;}},this['fsi']=new FSI();}[a80U(0x13d)](a){const a2=a80U;try{const b=[a2(0x153),a2(0x159),a2(0xe0),a[a2(0x175)],a2(0xda),a[a2(0x11c)]],c='aws\x20'+b[a2(0x117)]('\x20'),d=execSync(c)[a2(0xdd)]();return d;}catch(f){Log[a2(0x188)](f);}}['ecrGetLoginPassword']({awsAccountId:a,region:b}){const a3=a80U;try{const c=[a3(0x153),a3(0x12e),'|',Docker[a3(0x16e)]({'awsAccountId':a,'region':b})],d=a3(0x10d)+c[a3(0x117)]('\x20'),f=execSync(d)[a3(0xdd)]();return f;}catch(g){a3(0x15d)!=='Txldn'?(d[a3(0x188)](g),f[a3(0x112)](0x1)):Log[a3(0x188)](g);}}['ecrDeleteRepository']({repoName:a,region:b}){const a4=a80U;try{const c=[a4(0x153),a4(0x140),a4(0xe0),a,'--region',b,'--force'],d=a4(0x10d)+c[a4(0x117)]('\x20'),f=execSync(d)[a4(0xdd)]();return f;}catch(g){Log['error'](g);}}['ec2create'](a){const a5=a80U;try{const b=[a5(0x18e),a5(0xd5),a5(0xd1),a[a5(0x136)],'--count',a[a5(0x174)],a5(0x15a),a[a5(0x17b)],'--key-name',a[a5(0x130)],a5(0x194),a[a5(0x10e)],a5(0x189),a['subnet'],a5(0x102),a[a5(0xf4)]];a[a5(0x190)]&&(a5(0x167)===a5(0x13f)?d[a5(0xcd)](a5(0xdb)+e['id']+'\x20NAME:\x20'+f[a5(0x175)]):(b[a5(0x165)](a5(0x169)),b[a5(0x165)]('file://'+a[a5(0x190)])));const c=a5(0x10d)+b[a5(0x117)]('\x20'),d=execSync(c)[a5(0xdd)]();return d;}catch(g){Log[a5(0x188)](g);}}[a80U(0x11b)](a){const a6=a80U;try{const b=[a6(0x18e),'terminate-instances',a6(0xfd),a[a6(0x12a)]],c=a6(0x10d)+b[a6(0x117)]('\x20');execSync(c,{'stdio':'inherit'});}catch(d){if(a6(0x124)===a6(0x124))return Log[a6(0x188)](d),{};else try{const g=[a6(0x18e),a6(0x173),a6(0x13a),i],h=a6(0x10d)+g[a6(0x117)]('\x20');j(h,{'stdio':a6(0xe5)});}catch(i){m['error'](i),n['exit'](0x1);}}}[a80U(0x111)]({fileName:a,env:b}){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a80d,c=this[a7(0x108)][a7(0xe1)](b),d=a80Q[a7(0x117)](c,a7(0xec),a+'.pem.txt');try{const g=[a7(0x18e),a7(0x146),a7(0x154),a],h=a7(0x10d)+g['join']('\x20'),i=execSync(h)[a7(0xdd)](),j=JSON[a7(0xf9)](i),k=j[a7(0x127)];yield this[a7(0x108)][a7(0x179)]({'filePath':d,'data':k}),execSync('chmod\x20400\x20'+d,{'stdio':a7(0x116)}),Log[a7(0xd8)](a7(0x178)+d);}catch(l){if('SSmEs'===a7(0x18b))return Log[a7(0x188)](l),![];else{const n=a7(0xdb)+m['id']+a7(0x162)+n[a7(0x175)]+a7(0x142)+o['env']+a7(0x18c)+p['status']+a7(0x16a)+q[a7(0x12a)]+a7(0x15c)+r[a7(0x137)]+a7(0xd3)+s[a7(0xf6)];if(t[a7(0x132)]===a7(0xee))y[a7(0x188)](n);else v[a7(0x132)]===a7(0x155)?z[a7(0xd8)](n):A[a7(0xcd)](n);}}const f=this['fsi']['isFile'](d);return f;});}[a80U(0x14c)](a){const a8=a80U;try{const b=a[a8(0x10a)]?a[a8(0x10a)]:process['cwd'](),c=[a8(0x18e),'create-security-group',a8(0xcf),a[a8(0x101)],a8(0x17c),a[a8(0x175)],a8(0x16d),a[a8(0x160)]],d=a8(0x10d)+c[a8(0x117)]('\x20'),f=execSync(d,{'cwd':b})[a8(0xdd)]();if(!f){if(a8(0x176)!==a8(0xed))throw a8(0xe7);else this['ingressRule']=(i,j)=>{const a9=a8,k=[a9(0x18e),'authorize-security-group-ingress',a9(0x13a),j,a9(0x13c),a9(0xd7),a9(0x16c),i,a9(0x15b),'0.0.0.0/0'];return k;},this['fsi']=new b();}const g=JSON[a8(0xf9)](f);return a[a8(0x157)][a8(0x110)](i=>{const aa=a8;if(aa(0xf2)===aa(0x170)){const k=d[aa(0xd6)](e,arguments);return f=null,k;}else{const k=aa(0x10d)+this['ingressRule'](i,g['GroupId'])['join']('\x20');execSync(k,{'cwd':b,'stdio':aa(0x116)}),Log[aa(0xcd)](aa(0x18f)+i+aa(0x177));}}),Log['success'](a8(0xf0)+g[a8(0xf7)]+a8(0x162)+a[a8(0x175)]),!![];}catch(i){Log['error'](i);}}[a80U(0x105)](a){const ab=a80U;try{if('hciud'===ab(0x106)){const b=[ab(0x18e),ab(0xcc),ab(0xe9),'\x22KeyPairs[*].{name:KeyName}\x22'],c=ab(0x10d)+b['join']('\x20'),d=execSync(c)[ab(0xdd)]();if(!d)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const f=JSON[ab(0xf9)](d),g=[];if(f)f[ab(0x110)]((h,i)=>{const ac=ab;g[ac(0x165)]({'id':i,'name':h['name']});}),g[ab(0x110)](h=>{const ad=ab;if(h[ad(0x175)]===(a===null||a===void 0x0?void 0x0:a[ad(0x107)])){if(ad(0x17e)===ad(0x17e))Log[ad(0xd8)](ad(0xdb)+h['id']+ad(0x162)+h['name']);else{const j=[ad(0x18e),ad(0x15e),ad(0x13a),c,ad(0x13c),ad(0xd7),ad(0x16c),d,ad(0x15b),ad(0xf5)];return j;}}else Log[ad(0xcd)](ad(0xdb)+h['id']+ad(0x162)+h[ad(0x175)]);});else return Log['error']('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).'),[];return g;}else{const i=[ab(0x18e),ab(0x128),'--instance-ids',c['instanceId']],j=ab(0x10d)+i['join']('\x20');d(j,{'stdio':'inherit'});}}catch(i){Log[ab(0x188)](i);}}[a80U(0x193)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const ae=a80d;try{const b=['ec2',ae(0xea),ae(0x154),a],c=ae(0x10d)+b['join']('\x20');execSync(c,{'stdio':ae(0xe5)});}catch(d){ae(0xe3)===ae(0xe3)?(Log[ae(0x188)](d),process[ae(0x112)](0x1)):d[ae(0xd8)](ae(0xdb)+d['id']+ae(0x162)+f[ae(0x175)]);}});}[a80U(0x13b)](a){const af=a80U,b=[];try{const c=(a===null||a===void 0x0?void 0x0:a['cwd'])?a[af(0x10a)]:process[af(0x10a)](),d=[af(0x18e),af(0x113),af(0x11e),af(0x16f),af(0xe9),af(0xd0)],f='aws\x20'+d[af(0x117)]('\x20'),g=execSync(f,{'cwd':c})[af(0xdd)]();if(!g)throw af(0x166);let h=JSON[af(0xf9)](g);h[af(0x158)]>0x0?'LoieW'!=='LoieW'?h[af(0x114)]?i(j['value']):k(l['value'])[af(0x16b)](m,n):(h=[][af(0xf1)][af(0xd6)]([],h),h[af(0x110)](function(j,k){const ag=af;b[ag(0x165)]({'id':k,'instanceId':j[ag(0x12a)],'privateIp':j['privateIp'],'publicIp':j[ag(0x137)],'status':j[ag(0x132)],'name':j[ag(0x175)],'env':j[ag(0x139)][0x0]});}),b[af(0x110)](j=>{const ah=af,k=ah(0xdb)+j['id']+ah(0x162)+j['name']+ah(0x142)+j['env']+ah(0x18c)+j[ah(0x132)]+ah(0x16a)+j[ah(0x12a)]+'\x20PUB_IP:\x20'+j['publicIp']+'\x20PRIV_IP:\x20'+j[ah(0xf6)];if(j['status']===ah(0xee))Log[ah(0x188)](k);else{if(j[ah(0x132)]===ah(0x155)){if(ah(0x161)!=='UNskU')Log[ah(0xd8)](k);else return b[ah(0x188)](ah(0x12f)),'';}else{if('osbfd'===ah(0x185))Log[ah(0xcd)](k);else{const n=n['cwd']?o[ah(0x10a)]:p[ah(0x10a)](),o=['ec2',ah(0x17f),ah(0xcf),q['description'],ah(0x17c),r[ah(0x175)],ah(0x16d),s[ah(0x160)]],p=ah(0x10d)+o[ah(0x117)]('\x20'),q=t(p,{'cwd':n})[ah(0xdd)]();if(!q)throw ah(0xe7);const r=u[ah(0xf9)](q);return v['sgPorts']['forEach'](H=>{const ai=ah,I=ai(0x10d)+this[ai(0x120)](H,r['GroupId'])['join']('\x20');n(I,{'cwd':n,'stdio':ai(0x116)}),o[ai(0xcd)]('Port\x20'+H+'\x20opened!');}),y[ah(0xd8)](ah(0xf0)+r[ah(0xf7)]+ah(0x162)+z[ah(0x175)]),!![];}}}})):'OtskT'==='Orocx'?c[af(0x188)](d):Log[af(0x188)](af(0xcb));}catch(k){af(0x18d)!==af(0x18d)?c[af(0x188)](d):Log[af(0x188)](k);}return b;}[a80U(0x129)](a){const aj=a80U;try{if(aj(0x187)===aj(0x126)){const c=[aj(0x18e),aj(0xf3),aj(0x10f),e['instanceId']],d=aj(0x10d)+c[aj(0x117)]('\x20');f[aj(0xcd)](d);const f=g(d)[aj(0xdd)]();return h['notice'](f),f;}else{const c=[aj(0x18e),aj(0x128),aj(0x10f),a[aj(0x12a)]],d=aj(0x10d)+c[aj(0x117)]('\x20'),f=execSync(d)[aj(0xdd)]();return f;}}catch(g){Log[aj(0x188)](g);}}['ec2rebootInstance'](a){const ak=a80U;try{const b=['ec2',ak(0xf3),ak(0x10f),a['instanceId']],c=ak(0x10d)+b['join']('\x20');Log[ak(0xcd)](c);const d=execSync(c)[ak(0xdd)]();return Log[ak(0xcd)](d),d;}catch(f){if(ak(0x109)===ak(0x109))Log[ak(0x188)](f);else return f(this,void 0x0,void 0x0,function*(){const al=ak;try{const x=[al(0x18e),al(0x173),al(0x13a),o],y=al(0x10d)+x[al(0x117)]('\x20');p(y,{'stdio':al(0xe5)});}catch(z){s[al(0x188)](z),t[al(0x112)](0x1);}});}}[a80U(0x149)](){return __awaiter(this,void 0x0,void 0x0,function*(){const am=a80d;let a='';Log[am(0xcd)]('**\x20Available\x20\x20VPCs\x20**');const b=execSync(am(0x18a))[am(0xdd)](),c=JSON['parse'](b),d=[];Object['keys'](c)[am(0x110)](function(f){const an=am;an(0x12d)===an(0x12d)?c[f][an(0x110)](function(g,h){const ao=an;d['push']({'id':h,'vpcId':g[ao(0x148)],'cidr':g[ao(0xe6)]});}):(d[an(0x165)]('--user-data'),e[an(0x165)](an(0x134)+f[an(0x190)]));}),d[am(0x110)](function(f){const ap=am;ap(0x143)!==ap(0x143)?e[ap(0xcd)](ap(0xdb)+f['id']+ap(0xe4)+g['name']+ap(0x104)+h[ap(0x182)]):console['log'](ap(0xdb)+f['id']+'\x20VPCID:\x20'+f[ap(0x160)]+ap(0x14e)+f[ap(0x150)]);});const e=(yield Actions['ask'](am(0x100)))||0x0;d[am(0x110)](function(f){const aq=am;f['id']==e&&(a=f['vpcId'],Log[aq(0xd8)](aq(0x103)+a+'\x0a'));});if(a==='')return Log[am(0x188)](am(0x12f)),'';return a;});}[a80U(0x191)](){return __awaiter(this,void 0x0,void 0x0,function*(){const ar=a80d;if('yJuNi'==='yJuNi'){const a=this[ar(0x13b)]({});if(a[ar(0x158)]===0x0){if('CYyon'===ar(0x14f))return Log[ar(0x188)](ar(0x156)),null;else{const g=[ar(0x18e),ar(0x173),ar(0x13a),c],h=ar(0x10d)+g[ar(0x117)]('\x20');d(h,{'stdio':ar(0xe5)});}}const b=yield Actions[ar(0x121)](ar(0x17d));if(!b){if(ar(0x133)===ar(0x133))Log['error'](ar(0xeb));else try{const f=[ar(0x18e),ar(0xd5),ar(0xd1),w['imageId'],'--count',x[ar(0x174)],'--instance-type',y[ar(0x17b)],ar(0x154),z[ar(0x130)],ar(0x194),A[ar(0x10e)],ar(0x189),B['subnet'],'--tag-specifications',C[ar(0xf4)]];D[ar(0x190)]&&(f[ar(0x165)](ar(0x169)),f[ar(0x165)](ar(0x134)+G[ar(0x190)]));const g=ar(0x10d)+f[ar(0x117)]('\x20'),h=F(g)[ar(0xdd)]();return h;}catch(i){I[ar(0x188)](i);}}const c=a[ar(0x115)](({id:f})=>{const as=ar;if(as(0x144)!=='AeWuW')c['error'](d);else return f==parseInt(b);})||null;return c;}else c['error'](d);});}[a80U(0x192)]({env:a}){return __awaiter(this,void 0x0,void 0x0,function*(){const at=a80d,b=this[at(0x108)][at(0xd2)](),{appName:c}=b,d=c+'-'+a,f=(yield Actions[at(0x121)](at(0x10c)+d+']\x20'))||d;try{const g=yield this[at(0x111)]({'fileName':f,'env':a});if(!g){if(at(0x14b)!==at(0x11d))throw at(0xfa);else{if(e){const j=i[at(0xd6)](j,arguments);return k=null,j;}}}const h=yield Actions[at(0x172)](at(0x125));if(h)try{const j=a80P[at(0x15f)](a80Q[at(0x117)](at(0x151),a,at(0xca)),'utf8'),k=JSON[at(0xf9)](j);k[at(0x181)]=a80Q[at(0x117)](at(0xec),f+at(0x13e)),a80P[at(0x14d)](a80Q[at(0x117)](at(0x151),a,at(0xca)),JSON[at(0x10b)](k,null,0x2));}catch(l){Log['error'](l),Log[at(0x188)](at(0x164));}}catch(m){at(0x123)!=='YoGkL'?(Log['error'](m),process['exit'](0x1)):c['error'](d);}return f;});}[a80U(0x12c)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const au=a80d;if(au(0x11f)===au(0xfe))try{const c=[au(0x18e),au(0xea),'--key-name',i],d=au(0x10d)+c[au(0x117)]('\x20');j(d,{'stdio':au(0xe5)});}catch(e){m[au(0x188)](e),n[au(0x112)](0x1);}else{Log[au(0xcd)](au(0x14a));const c=execSync(au(0xe8))[au(0xdd)](),d=JSON[au(0xf9)](c),e=[];return d[au(0x110)](function(f,g){const av=au;e[av(0x165)]({'id':g,'name':f[av(0x138)],'sgId':f['ID']});}),e[au(0x110)](function(f){const aw=au;if('UQsLG'===aw(0x180))c[aw(0x188)](d);else{if(f[aw(0x175)]===a)Log[aw(0xcd)]('ID:\x20'+f['id']+aw(0xe4)+f[aw(0x175)]+'\x20SGID:\x20'+f['sgId']);else{if(aw(0xf8)===aw(0xfc))try{i(j[aw(0x147)](k));}catch(i){m(i);}else Log[aw(0xd4)]('ID:\x20'+f['id']+aw(0xe4)+f['name']+aw(0x104)+f[aw(0x182)]);}}}),e;}});}[a80U(0x186)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const ax=a80d;try{const b=[ax(0x18e),ax(0x173),'--group-id',a],c=ax(0x10d)+b['join']('\x20');execSync(c,{'stdio':ax(0xe5)});}catch(d){Log[ax(0x188)](d),process['exit'](0x1);}});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var u=a81d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var u=a81d,c=a();while(!![]){try{var d=-parseInt(u(0x142))/0x1*(-parseInt(u(0x138))/0x2)+-parseInt(u(0x13e))/0x3+-parseInt(u(0x137))/0x4+-parseInt(u(0x140))/0x5*(-parseInt(u(0x13f))/0x6)+parseInt(u(0x13c))/0x7*(-parseInt(u(0x13b))/0x8)+parseInt(u(0x139))/0x9*(parseInt(u(0x13a))/0xa)+parseInt(u(0x145))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0xb4b76));function a81d(a,b){var c=a81c();return a81d=function(d,e){d=d-0x137;var f=c[d];return f;},a81d(a,b);}var a81b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a81d;if(c){var e=c[v(0x143)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){var w=a81d;return a81a[w(0x141)]()[w(0x13d)](w(0x144))[w(0x141)]()['constructor'](a81a)[w(0x13d)](w(0x144));});a81a();export{};function a81c(){var x=['313762CmjyVj','apply','(((.+)+)+)+$','7205583whksnK','5022084wkGwke','4UJejkX','9TTtpSJ','12823670oAUWqu','8kkaDvh','2267230GlVPYn','search','4174230MWyMdX','6876546VxNrVx','5mVmUJQ','toString'];a81c=function(){return x;};return a81c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a83B=a83d;function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x111;let f=c[d];return f;},a83d(a,b);}function a83c(){const E=['inherit','apply','--password-stdin','docker\x20','EXruc','zRJAo','3408076VWEBjs','2BPUfKk','push','1490589JZnKtz','5304JczqQX','toString','awsLogin','--username','sOfkA','3130792sQFUzq','4285rnmgfv','tag','(((.+)+)+)+$','961805ikkkkh','error','AWS','32707900Tklrgr','.amazonaws.com/','.dkr.ecr.','1609683LbtHft','search','16cMSVKQ','constructor','join'];a83c=function(){return E;};return a83c();}(function(a,b){const x=a83d,c=a();while(!![]){try{const d=-parseInt(x(0x12d))/0x1*(-parseInt(x(0x121))/0x2)+parseInt(x(0x115))/0x3+parseInt(x(0x120))/0x4+-parseInt(x(0x12a))/0x5*(-parseInt(x(0x124))/0x6)+parseInt(x(0x129))/0x7+-parseInt(x(0x117))/0x8*(-parseInt(x(0x123))/0x9)+-parseInt(x(0x112))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0x96501));const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a83d;if(y(0x11f)===y(0x11f)){if(c){const e=c['apply'](b,arguments);return c=null,e;}}else try{const g=['tag',m,n+y(0x114)+o+'.amazonaws.com/'+p],h='docker\x20'+g['join']('\x20'),i=q(h,{'stdio':y(0x11a)})['toString']();return i;}catch(j){return s[y(0x12e)](j),'';}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const z=a83d;return a83a[z(0x125)]()['search'](z(0x12c))[z(0x125)]()[z(0x118)](a83a)[z(0x116)](z(0x12c));});a83a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static['tag']({imageName:a,awsAccountId:b,region:c,repoName:d}){const A=a83d;try{const f=[A(0x12b),a,b+A(0x114)+c+A(0x113)+d],g=A(0x11d)+f[A(0x119)]('\x20'),h=execSync(g,{'stdio':A(0x11a)})['toString']();return h;}catch(i){return Log[A(0x12e)](i),'';}}static[a83B(0x126)]({awsAccountId:a,region:b}){const C=a83B;try{if(C(0x128)===C(0x128)){const c=['login',C(0x127),C(0x111),C(0x11c),a+C(0x114)+b+'.amazonaws.com'],d=C(0x11d)+c[C(0x119)]('\x20'),f=execSync(d,{'stdio':'inherit'})[C(0x125)]();return f;}else{const h=d[C(0x11b)](e,arguments);return f=null,h;}}catch(h){return Log[C(0x12e)](h),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const D=a83B;try{const d=[D(0x122),a+D(0x114)+b+D(0x113)+c],f='docker\x20'+d[D(0x119)]('\x20'),g=execSync(f,{'stdio':D(0x11a)})['toString']();return g;}catch(h){if('EXruc'!==D(0x11e)){const j=['tag',f,g+D(0x114)+h+D(0x113)+i],n=D(0x11d)+j[D(0x119)]('\x20'),o=j(n,{'stdio':D(0x11a)})[D(0x125)]();return o;}else return Log['error'](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var u=a84d,c=a();while(!![]){try{var d=-parseInt(u(
|
|
1
|
+
(function(a,b){var u=a84d,c=a();while(!![]){try{var d=-parseInt(u(0x144))/0x1*(parseInt(u(0x149))/0x2)+-parseInt(u(0x150))/0x3*(-parseInt(u(0x153))/0x4)+parseInt(u(0x14b))/0x5*(parseInt(u(0x14f))/0x6)+parseInt(u(0x143))/0x7*(-parseInt(u(0x151))/0x8)+parseInt(u(0x147))/0x9*(parseInt(u(0x152))/0xa)+-parseInt(u(0x145))/0xb*(-parseInt(u(0x14a))/0xc)+parseInt(u(0x14c))/0xd*(-parseInt(u(0x154))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x5d4c3));var a84b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a84d;if(c){var e=c[v(0x14e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){var w=a84d;return a84a[w(0x14d)]()[w(0x148)](w(0x146))[w(0x14d)]()[w(0x155)](a84a)[w(0x148)](w(0x146));});a84a();function a84c(){var x=['1yOYIEw','4143117FZCRwa','(((.+)+)+)+$','9oTlyKH','search','1113006QfdHOj','12stPaLv','341570FHhWXf','13gmEUTV','toString','apply','30cgMPgc','1977LUwlVX','50824FFkfDo','883540msivQV','3756kimbrf','3879022zztZlX','constructor','231wqkpAw'];a84c=function(){return x;};return a84c();}function a84d(a,b){var c=a84c();return a84d=function(d,e){d=d-0x143;var f=c[d];return f;},a84d(a,b);}export{};
|