@maka/maka-cli 4.0.86 → 4.0.87
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/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/dks.sub.cmd.js +1 -1
- package/dist/commands/aws/rbi.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/help.js +1 -1
- package/dist/commands/install.js +1 -1
- package/dist/commands/jsdoc.js +1 -1
- 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/reconfig.js +1 -1
- package/dist/commands/run.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/scaffold.js +1 -1
- package/dist/generators/service.js +1 -1
- package/dist/maka.js +1 -1
- package/dist/templates/meteor/app/imports/startup/client/routes.js.jsx +2 -2
- package/dist/templates/meteor/app/imports/startup/client/routes.js.tsx +2 -2
- package/dist/templates/meteor/app/imports/startup/lib/routes.js.jsx +2 -2
- package/dist/templates/meteor/app/imports/startup/lib/routes.js.tsx +2 -2
- package/dist/templates/meteor/app/server/helmet-csp.js +19 -14
- package/dist/templates/meteor/app/server/helmet-csp.js.jsx +19 -14
- package/dist/templates/meteor/app/server/helmet-csp.js.ts +19 -14
- package/dist/templates/meteor/app/server/helmet-csp.js.tsx +19 -14
- package/dist/templates/meteor/config/settings.json +1 -1
- 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 +1 -1
|
@@ -22,8 +22,7 @@ const CatchAll = (
|
|
|
22
22
|
);
|
|
23
23
|
|
|
24
24
|
const privateRoutes = (<>
|
|
25
|
-
|
|
26
|
-
{CatchAll}
|
|
25
|
+
|
|
27
26
|
</>);
|
|
28
27
|
|
|
29
28
|
const publicRoutes = (<>
|
|
@@ -34,6 +33,7 @@ const publicRoutes = (<>
|
|
|
34
33
|
const PrivateRoutes = ({ history }) => (
|
|
35
34
|
<Router history={ history }>
|
|
36
35
|
{privateRoutes}
|
|
36
|
+
{publicRoutes}
|
|
37
37
|
</Router>
|
|
38
38
|
);
|
|
39
39
|
const PublicRoutes = ({ history }) => (
|
|
@@ -22,8 +22,7 @@ const CatchAll = (
|
|
|
22
22
|
);
|
|
23
23
|
|
|
24
24
|
const privateRoutes = (<>
|
|
25
|
-
|
|
26
|
-
{CatchAll}
|
|
25
|
+
|
|
27
26
|
</>);
|
|
28
27
|
|
|
29
28
|
const publicRoutes = (<>
|
|
@@ -34,6 +33,7 @@ const publicRoutes = (<>
|
|
|
34
33
|
const PrivateRoutes = ({ history }) => (
|
|
35
34
|
<Router history={ history }>
|
|
36
35
|
{privateRoutes}
|
|
36
|
+
{publicRoutes}
|
|
37
37
|
</Router>
|
|
38
38
|
);
|
|
39
39
|
const PublicRoutes = ({ history }) => (
|
|
@@ -22,8 +22,7 @@ const CatchAll = (
|
|
|
22
22
|
);
|
|
23
23
|
|
|
24
24
|
const privateRoutes = (<>
|
|
25
|
-
|
|
26
|
-
{CatchAll}
|
|
25
|
+
|
|
27
26
|
</>);
|
|
28
27
|
|
|
29
28
|
const publicRoutes = (<>
|
|
@@ -34,6 +33,7 @@ const publicRoutes = (<>
|
|
|
34
33
|
const PrivateRoutes = ({ history }) => (
|
|
35
34
|
<Router history={ history }>
|
|
36
35
|
{privateRoutes}
|
|
36
|
+
{publicRoutes}
|
|
37
37
|
</Router>
|
|
38
38
|
);
|
|
39
39
|
const PublicRoutes = ({ history }) => (
|
|
@@ -22,8 +22,7 @@ const CatchAll = (
|
|
|
22
22
|
);
|
|
23
23
|
|
|
24
24
|
const privateRoutes = (<>
|
|
25
|
-
|
|
26
|
-
{CatchAll}
|
|
25
|
+
|
|
27
26
|
</>);
|
|
28
27
|
|
|
29
28
|
const publicRoutes = (<>
|
|
@@ -34,6 +33,7 @@ const publicRoutes = (<>
|
|
|
34
33
|
const PrivateRoutes = ({ history }) => (
|
|
35
34
|
<Router history={ history }>
|
|
36
35
|
{privateRoutes}
|
|
36
|
+
{publicRoutes}
|
|
37
37
|
</Router>
|
|
38
38
|
);
|
|
39
39
|
const PublicRoutes = ({ history }) => (
|
|
@@ -55,10 +55,15 @@ const runtimeConfigScript = `__meteor_runtime_config__ = JSON.parse(decodeURICom
|
|
|
55
55
|
const runtimeConfigHash = crypto.createHash('sha256').update(runtimeConfigScript).digest('base64')
|
|
56
56
|
|
|
57
57
|
const helmetOptions = {
|
|
58
|
+
crossOriginResourcePolicy: { policy: "cross-origin" },
|
|
59
|
+
crossOriginOpenerPolicy: { policy: "same-origin-allow-popups" },
|
|
60
|
+
crossOriginResourcePolicy: { policy: "cross-origin" },
|
|
61
|
+
//If you want to embed something like an iframe, set to false
|
|
62
|
+
crossOriginEmbedderPolicy: true,
|
|
58
63
|
contentSecurityPolicy: {
|
|
59
|
-
blockAllMixedContent:
|
|
64
|
+
blockAllMixedContent: false,
|
|
60
65
|
directives: {
|
|
61
|
-
defaultSrc: [self],
|
|
66
|
+
defaultSrc: [self].concat(allowedOrigins),
|
|
62
67
|
scriptSrc: [
|
|
63
68
|
self,
|
|
64
69
|
// Remove / comment out unsafeEval if you do not use dynamic imports
|
|
@@ -66,24 +71,24 @@ const helmetOptions = {
|
|
|
66
71
|
// must be kept in order to make them work.
|
|
67
72
|
unsafeEval,
|
|
68
73
|
`'sha256-${runtimeConfigHash}'`
|
|
69
|
-
],
|
|
70
|
-
childSrc: [self],
|
|
74
|
+
].concat(allowedOrigins),
|
|
75
|
+
childSrc: [self].concat(allowedOrigins),
|
|
71
76
|
// If you have external apps, that should be allowed as sources for
|
|
72
77
|
// connections or images, your should add them here
|
|
73
78
|
// Call helmetOptions() without args if you have no external sources
|
|
74
79
|
// Note, that this is just an example and you may configure this to your needs
|
|
75
80
|
connectSrc: connectSrc.concat(allowedOrigins),
|
|
76
|
-
fontSrc: [self, data],
|
|
77
|
-
formAction: [self],
|
|
78
|
-
frameAncestors: [self],
|
|
79
|
-
frameSrc: [
|
|
81
|
+
fontSrc: [self, data].concat(allowedOrigins),
|
|
82
|
+
formAction: [self].concat(allowedOrigins),
|
|
83
|
+
frameAncestors: [self].concat(allowedOrigins),
|
|
84
|
+
frameSrc: [self].concat(allowedOrigins),
|
|
80
85
|
// This is an example to show, that we can define to show images only
|
|
81
86
|
// from our self, browser data/blob and a defined set of hosts.
|
|
82
87
|
// Configure to your needs.
|
|
83
88
|
imgSrc: [self, data, 'blob:'].concat(allowedOrigins),
|
|
84
|
-
manifestSrc: [self],
|
|
85
|
-
mediaSrc: [self],
|
|
86
|
-
objectSrc: [self],
|
|
89
|
+
manifestSrc: [self].concat(allowedOrigins),
|
|
90
|
+
mediaSrc: [self].concat(allowedOrigins),
|
|
91
|
+
objectSrc: [self].concat(allowedOrigins),
|
|
87
92
|
// these are just examples, configure to your needs, see
|
|
88
93
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox
|
|
89
94
|
sandbox: [
|
|
@@ -101,8 +106,8 @@ const helmetOptions = {
|
|
|
101
106
|
// 'allow-top-navigation',
|
|
102
107
|
// 'allow-top-navigation-by-user-activation'
|
|
103
108
|
],
|
|
104
|
-
styleSrc: [self, unsafeInline],
|
|
105
|
-
workerSrc: [self, 'blob:']
|
|
109
|
+
styleSrc: [self, unsafeInline].concat(allowedOrigins),
|
|
110
|
+
workerSrc: [self, 'blob:'].concat(allowedOrigins)
|
|
106
111
|
}
|
|
107
112
|
},
|
|
108
113
|
// see the helmet documentation to get a better understanding of
|
|
@@ -128,7 +133,7 @@ const helmetOptions = {
|
|
|
128
133
|
permittedCrossDomainPolicies: {
|
|
129
134
|
permittedPolicies: 'none'
|
|
130
135
|
}
|
|
131
|
-
}
|
|
136
|
+
};
|
|
132
137
|
|
|
133
138
|
// We assume, that we are working on a localhost when there is no https
|
|
134
139
|
// connection available.
|
|
@@ -55,10 +55,15 @@ const runtimeConfigScript = `__meteor_runtime_config__ = JSON.parse(decodeURICom
|
|
|
55
55
|
const runtimeConfigHash = crypto.createHash('sha256').update(runtimeConfigScript).digest('base64')
|
|
56
56
|
|
|
57
57
|
const helmetOptions = {
|
|
58
|
+
crossOriginResourcePolicy: { policy: "cross-origin" },
|
|
59
|
+
crossOriginOpenerPolicy: { policy: "same-origin-allow-popups" },
|
|
60
|
+
crossOriginResourcePolicy: { policy: "cross-origin" },
|
|
61
|
+
//If you want to embed something like an iframe, set to false
|
|
62
|
+
crossOriginEmbedderPolicy: true,
|
|
58
63
|
contentSecurityPolicy: {
|
|
59
|
-
blockAllMixedContent:
|
|
64
|
+
blockAllMixedContent: false,
|
|
60
65
|
directives: {
|
|
61
|
-
defaultSrc: [self],
|
|
66
|
+
defaultSrc: [self].concat(allowedOrigins),
|
|
62
67
|
scriptSrc: [
|
|
63
68
|
self,
|
|
64
69
|
// Remove / comment out unsafeEval if you do not use dynamic imports
|
|
@@ -66,24 +71,24 @@ const helmetOptions = {
|
|
|
66
71
|
// must be kept in order to make them work.
|
|
67
72
|
unsafeEval,
|
|
68
73
|
`'sha256-${runtimeConfigHash}'`
|
|
69
|
-
],
|
|
70
|
-
childSrc: [self],
|
|
74
|
+
].concat(allowedOrigins),
|
|
75
|
+
childSrc: [self].concat(allowedOrigins),
|
|
71
76
|
// If you have external apps, that should be allowed as sources for
|
|
72
77
|
// connections or images, your should add them here
|
|
73
78
|
// Call helmetOptions() without args if you have no external sources
|
|
74
79
|
// Note, that this is just an example and you may configure this to your needs
|
|
75
80
|
connectSrc: connectSrc.concat(allowedOrigins),
|
|
76
|
-
fontSrc: [self, data],
|
|
77
|
-
formAction: [self],
|
|
78
|
-
frameAncestors: [self],
|
|
79
|
-
frameSrc: [
|
|
81
|
+
fontSrc: [self, data].concat(allowedOrigins),
|
|
82
|
+
formAction: [self].concat(allowedOrigins),
|
|
83
|
+
frameAncestors: [self].concat(allowedOrigins),
|
|
84
|
+
frameSrc: [self].concat(allowedOrigins),
|
|
80
85
|
// This is an example to show, that we can define to show images only
|
|
81
86
|
// from our self, browser data/blob and a defined set of hosts.
|
|
82
87
|
// Configure to your needs.
|
|
83
88
|
imgSrc: [self, data, 'blob:'].concat(allowedOrigins),
|
|
84
|
-
manifestSrc: [self],
|
|
85
|
-
mediaSrc: [self],
|
|
86
|
-
objectSrc: [self],
|
|
89
|
+
manifestSrc: [self].concat(allowedOrigins),
|
|
90
|
+
mediaSrc: [self].concat(allowedOrigins),
|
|
91
|
+
objectSrc: [self].concat(allowedOrigins),
|
|
87
92
|
// these are just examples, configure to your needs, see
|
|
88
93
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox
|
|
89
94
|
sandbox: [
|
|
@@ -101,8 +106,8 @@ const helmetOptions = {
|
|
|
101
106
|
// 'allow-top-navigation',
|
|
102
107
|
// 'allow-top-navigation-by-user-activation'
|
|
103
108
|
],
|
|
104
|
-
styleSrc: [self, unsafeInline],
|
|
105
|
-
workerSrc: [self, 'blob:']
|
|
109
|
+
styleSrc: [self, unsafeInline].concat(allowedOrigins),
|
|
110
|
+
workerSrc: [self, 'blob:'].concat(allowedOrigins)
|
|
106
111
|
}
|
|
107
112
|
},
|
|
108
113
|
// see the helmet documentation to get a better understanding of
|
|
@@ -128,7 +133,7 @@ const helmetOptions = {
|
|
|
128
133
|
permittedCrossDomainPolicies: {
|
|
129
134
|
permittedPolicies: 'none'
|
|
130
135
|
}
|
|
131
|
-
}
|
|
136
|
+
};
|
|
132
137
|
|
|
133
138
|
// We assume, that we are working on a localhost when there is no https
|
|
134
139
|
// connection available.
|
|
@@ -55,10 +55,15 @@ const runtimeConfigScript = `__meteor_runtime_config__ = JSON.parse(decodeURICom
|
|
|
55
55
|
const runtimeConfigHash = crypto.createHash('sha256').update(runtimeConfigScript).digest('base64')
|
|
56
56
|
|
|
57
57
|
const helmetOptions = {
|
|
58
|
+
crossOriginResourcePolicy: { policy: "cross-origin" },
|
|
59
|
+
crossOriginOpenerPolicy: { policy: "same-origin-allow-popups" },
|
|
60
|
+
crossOriginResourcePolicy: { policy: "cross-origin" },
|
|
61
|
+
//If you want to embed something like an iframe, set to false
|
|
62
|
+
crossOriginEmbedderPolicy: true,
|
|
58
63
|
contentSecurityPolicy: {
|
|
59
|
-
blockAllMixedContent:
|
|
64
|
+
blockAllMixedContent: false,
|
|
60
65
|
directives: {
|
|
61
|
-
defaultSrc: [self],
|
|
66
|
+
defaultSrc: [self].concat(allowedOrigins),
|
|
62
67
|
scriptSrc: [
|
|
63
68
|
self,
|
|
64
69
|
// Remove / comment out unsafeEval if you do not use dynamic imports
|
|
@@ -66,24 +71,24 @@ const helmetOptions = {
|
|
|
66
71
|
// must be kept in order to make them work.
|
|
67
72
|
unsafeEval,
|
|
68
73
|
`'sha256-${runtimeConfigHash}'`
|
|
69
|
-
],
|
|
70
|
-
childSrc: [self],
|
|
74
|
+
].concat(allowedOrigins),
|
|
75
|
+
childSrc: [self].concat(allowedOrigins),
|
|
71
76
|
// If you have external apps, that should be allowed as sources for
|
|
72
77
|
// connections or images, your should add them here
|
|
73
78
|
// Call helmetOptions() without args if you have no external sources
|
|
74
79
|
// Note, that this is just an example and you may configure this to your needs
|
|
75
80
|
connectSrc: connectSrc.concat(allowedOrigins),
|
|
76
|
-
fontSrc: [self, data],
|
|
77
|
-
formAction: [self],
|
|
78
|
-
frameAncestors: [self],
|
|
79
|
-
frameSrc: [
|
|
81
|
+
fontSrc: [self, data].concat(allowedOrigins),
|
|
82
|
+
formAction: [self].concat(allowedOrigins),
|
|
83
|
+
frameAncestors: [self].concat(allowedOrigins),
|
|
84
|
+
frameSrc: [self].concat(allowedOrigins),
|
|
80
85
|
// This is an example to show, that we can define to show images only
|
|
81
86
|
// from our self, browser data/blob and a defined set of hosts.
|
|
82
87
|
// Configure to your needs.
|
|
83
88
|
imgSrc: [self, data, 'blob:'].concat(allowedOrigins),
|
|
84
|
-
manifestSrc: [self],
|
|
85
|
-
mediaSrc: [self],
|
|
86
|
-
objectSrc: [self],
|
|
89
|
+
manifestSrc: [self].concat(allowedOrigins),
|
|
90
|
+
mediaSrc: [self].concat(allowedOrigins),
|
|
91
|
+
objectSrc: [self].concat(allowedOrigins),
|
|
87
92
|
// these are just examples, configure to your needs, see
|
|
88
93
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox
|
|
89
94
|
sandbox: [
|
|
@@ -101,8 +106,8 @@ const helmetOptions = {
|
|
|
101
106
|
// 'allow-top-navigation',
|
|
102
107
|
// 'allow-top-navigation-by-user-activation'
|
|
103
108
|
],
|
|
104
|
-
styleSrc: [self, unsafeInline],
|
|
105
|
-
workerSrc: [self, 'blob:']
|
|
109
|
+
styleSrc: [self, unsafeInline].concat(allowedOrigins),
|
|
110
|
+
workerSrc: [self, 'blob:'].concat(allowedOrigins)
|
|
106
111
|
}
|
|
107
112
|
},
|
|
108
113
|
// see the helmet documentation to get a better understanding of
|
|
@@ -128,7 +133,7 @@ const helmetOptions = {
|
|
|
128
133
|
permittedCrossDomainPolicies: {
|
|
129
134
|
permittedPolicies: 'none'
|
|
130
135
|
}
|
|
131
|
-
}
|
|
136
|
+
};
|
|
132
137
|
|
|
133
138
|
// We assume, that we are working on a localhost when there is no https
|
|
134
139
|
// connection available.
|
|
@@ -55,10 +55,15 @@ const runtimeConfigScript = `__meteor_runtime_config__ = JSON.parse(decodeURICom
|
|
|
55
55
|
const runtimeConfigHash = crypto.createHash('sha256').update(runtimeConfigScript).digest('base64')
|
|
56
56
|
|
|
57
57
|
const helmetOptions = {
|
|
58
|
+
crossOriginResourcePolicy: { policy: "cross-origin" },
|
|
59
|
+
crossOriginOpenerPolicy: { policy: "same-origin-allow-popups" },
|
|
60
|
+
crossOriginResourcePolicy: { policy: "cross-origin" },
|
|
61
|
+
//If you want to embed something like an iframe, set to false
|
|
62
|
+
crossOriginEmbedderPolicy: true,
|
|
58
63
|
contentSecurityPolicy: {
|
|
59
|
-
blockAllMixedContent:
|
|
64
|
+
blockAllMixedContent: false,
|
|
60
65
|
directives: {
|
|
61
|
-
defaultSrc: [self],
|
|
66
|
+
defaultSrc: [self].concat(allowedOrigins),
|
|
62
67
|
scriptSrc: [
|
|
63
68
|
self,
|
|
64
69
|
// Remove / comment out unsafeEval if you do not use dynamic imports
|
|
@@ -66,24 +71,24 @@ const helmetOptions = {
|
|
|
66
71
|
// must be kept in order to make them work.
|
|
67
72
|
unsafeEval,
|
|
68
73
|
`'sha256-${runtimeConfigHash}'`
|
|
69
|
-
],
|
|
70
|
-
childSrc: [self],
|
|
74
|
+
].concat(allowedOrigins),
|
|
75
|
+
childSrc: [self].concat(allowedOrigins),
|
|
71
76
|
// If you have external apps, that should be allowed as sources for
|
|
72
77
|
// connections or images, your should add them here
|
|
73
78
|
// Call helmetOptions() without args if you have no external sources
|
|
74
79
|
// Note, that this is just an example and you may configure this to your needs
|
|
75
80
|
connectSrc: connectSrc.concat(allowedOrigins),
|
|
76
|
-
fontSrc: [self, data],
|
|
77
|
-
formAction: [self],
|
|
78
|
-
frameAncestors: [self],
|
|
79
|
-
frameSrc: [
|
|
81
|
+
fontSrc: [self, data].concat(allowedOrigins),
|
|
82
|
+
formAction: [self].concat(allowedOrigins),
|
|
83
|
+
frameAncestors: [self].concat(allowedOrigins),
|
|
84
|
+
frameSrc: [self].concat(allowedOrigins),
|
|
80
85
|
// This is an example to show, that we can define to show images only
|
|
81
86
|
// from our self, browser data/blob and a defined set of hosts.
|
|
82
87
|
// Configure to your needs.
|
|
83
88
|
imgSrc: [self, data, 'blob:'].concat(allowedOrigins),
|
|
84
|
-
manifestSrc: [self],
|
|
85
|
-
mediaSrc: [self],
|
|
86
|
-
objectSrc: [self],
|
|
89
|
+
manifestSrc: [self].concat(allowedOrigins),
|
|
90
|
+
mediaSrc: [self].concat(allowedOrigins),
|
|
91
|
+
objectSrc: [self].concat(allowedOrigins),
|
|
87
92
|
// these are just examples, configure to your needs, see
|
|
88
93
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox
|
|
89
94
|
sandbox: [
|
|
@@ -101,8 +106,8 @@ const helmetOptions = {
|
|
|
101
106
|
// 'allow-top-navigation',
|
|
102
107
|
// 'allow-top-navigation-by-user-activation'
|
|
103
108
|
],
|
|
104
|
-
styleSrc: [self, unsafeInline],
|
|
105
|
-
workerSrc: [self, 'blob:']
|
|
109
|
+
styleSrc: [self, unsafeInline].concat(allowedOrigins),
|
|
110
|
+
workerSrc: [self, 'blob:'].concat(allowedOrigins)
|
|
106
111
|
}
|
|
107
112
|
},
|
|
108
113
|
// see the helmet documentation to get a better understanding of
|
|
@@ -128,7 +133,7 @@ const helmetOptions = {
|
|
|
128
133
|
permittedCrossDomainPolicies: {
|
|
129
134
|
permittedPolicies: 'none'
|
|
130
135
|
}
|
|
131
|
-
}
|
|
136
|
+
};
|
|
132
137
|
|
|
133
138
|
// We assume, that we are working on a localhost when there is no https
|
|
134
139
|
// connection available.
|
package/dist/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var u=a68d,c=a();while(!![]){try{var d=-parseInt(u(0xe1))/0x1+-parseInt(u(0xdc))/0x2*(-parseInt(u(0xd3))/0x3)+-parseInt(u(0xd1))/0x4+-parseInt(u(0xd5))/0x5+parseInt(u(0xe0))/0x6*(-parseInt(u(0xd6))/0x7)+-parseInt(u(0xd7))/0x8+parseInt(u(0xd2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x6ce3a));var a68b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a68d;if(c){if(v(0xdd)!==v(0xde)){var e=c[v(0xd4)](b,arguments);return c=null,e;}else{var h=d[v(0xd4)](e,arguments);return f=null,h;}}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){var w=a68d;return a68a['toString']()['search'](w(0xda))[w(0xdb)]()[w(0xd0)](a68a)[w(0xd9)](w(0xda));});a68a();function a68d(a,b){var c=a68c();return a68d=function(d,e){d=d-0xd0;var f=c[d];return f;},a68d(a,b);}function a68c(){var y=['132548owhXTO','eWTax','qpmHL','fsi','48JPurcI','63890SuCXFk','constructor','494672lVKfGw','6755346sdabDS','24ztUhtH','apply','142405qDHRBw','18718THtzNI','4778760ETukHQ','docker','search','(((.+)+)+)+$','toString'];a68c=function(){return y;};return a68c();}import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';export class Tool{constructor(){var x=a68d;this[x(0xd8)]=new Docker(),this[x(0xdf)]=new FSI();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a69A=a69d;(function(a,b){const v=a69d,c=a();while(!![]){try{const d=-parseInt(v(0x17a))/0x1+-parseInt(v(0x177))/0x2*(parseInt(v(0x172))/0x3)+-parseInt(v(0x16b))/0x4+-parseInt(v(0x168))/0x5+parseInt(v(0x16c))/0x6*(parseInt(v(0x173))/0x7)+-parseInt(v(0x174))/0x8+-parseInt(v(0x160))/0x9*(-parseInt(v(0x176))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x74b08));function a69c(){const K=['753qYBcOE','852523CWNMxP','3892080SdqhzO','done','19470SxRBoH','550JKdNFf','ItyPJ','QCcXP','858312IQUBDS','rjpMY','ask','fhPLO','__awaiter','search','prompt','answer','NOFfI','apply','8865xQuwVb','zMIoZ','JJDQE','value','next','YqCxI','then','confirm','2738390loQFcp','toString','constructor','836176dyUqqX','36GfHGqg','throw','vdluK','Idkrp','input','(((.+)+)+)+$'];a69c=function(){return K;};return a69c();}const a69b=(function(){let a=!![];return function(b,c){const w=a69d;if(w(0x15e)!==w(0x179)){const d=a?function(){const x=w;if('XrHfo'==='XrHfo'){if(c){const e=c[x(0x15f)](b,arguments);return c=null,e;}}else try{i(j[x(0x16d)](k));}catch(g){m(g);}}:function(){};return a=![],d;}else{const f=g?function(){const y=w;if(f){const u=q[y(0x15f)](r,arguments);return s=null,u;}}:function(){};return l=![],f;}};}()),a69a=a69b(this,function(){const z=a69d;return a69a[z(0x169)]()[z(0x17f)](z(0x171))[z(0x169)]()[z(0x16a)](a69a)[z(0x17f)](z(0x171));});function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x15e;let f=c[d];return f;},a69d(a,b);}a69a();var __awaiter=this&&this[a69A(0x17e)]||function(a,b,c,d){function e(f){const B=a69d;if(B(0x161)!==B(0x161))c(d);else return f instanceof c?f:new c(function(h){const C=B;if('Pyhxa'===C(0x165))try{i(j[C(0x164)](k));}catch(j){m(j);}else h(f);});}return new(c||(c=Promise))(function(f,g){const G=a69d;function h(k){const D=a69d;if(D(0x17b)===D(0x17b))try{if(D(0x16f)===D(0x162))return f instanceof g?h:new i(function(m){m(k);});else j(d[D(0x164)](k));}catch(m){g(m);}else h[D(0x175)]?i(j['value']):k(l[D(0x163)])[D(0x166)](m,n);}function i(k){const E=a69d;try{j(d['throw'](k));}catch(l){'sfGzh'===E(0x178)?c(d):g(l);}}function j(k){const F=a69d;if(F(0x16e)===F(0x16e))k[F(0x175)]?f(k[F(0x163)]):e(k['value'])[F(0x166)](h,i);else{const m=d[F(0x15f)](e,arguments);return f=null,m;}}j((d=d[G(0x15f)](a,b||[]))[G(0x164)]());});};import a69u from'inquirer';export class Actions{constructor(){}static[a69A(0x17c)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const H=a69d;if(H(0x17d)===H(0x17d)){const {answer:c}=yield a69u[H(0x180)]({'type':b?'password':H(0x170),'name':'answer','message':a});return c;}else d(e[H(0x164)](f));});}static[a69A(0x167)](a){return __awaiter(this,void 0x0,void 0x0,function*(){const I=a69d,{answer:b}=yield a69u[I(0x180)]({'type':'confirm','name':I(0x181),'message':a,'default':![]});return b;});}static['options'](a){return __awaiter(this,void 0x0,void 0x0,function*(){const J=a69d,b=yield a69u[J(0x180)](a);return b;});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a70y=a70d;(function(a,b){const v=a70d,c=a();while(!![]){try{const d=-parseInt(v(
|
|
1
|
+
const a70y=a70d;(function(a,b){const v=a70d,c=a();while(!![]){try{const d=-parseInt(v(0x144))/0x1+parseInt(v(0x142))/0x2+parseInt(v(0x151))/0x3*(-parseInt(v(0x136))/0x4)+-parseInt(v(0x143))/0x5*(parseInt(v(0x137))/0x6)+parseInt(v(0x13b))/0x7*(-parseInt(v(0x147))/0x8)+parseInt(v(0x13d))/0x9*(parseInt(v(0x154))/0xa)+-parseInt(v(0x13e))/0xb*(-parseInt(v(0x13c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0x686d8));const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a70d;if(w(0x139)!==w(0x139))try{i(j['throw'](k));}catch(f){m(f);}else{if(c){const f=c[w(0x13a)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const x=a70d;return a70a[x(0x153)]()['search'](x(0x152))[x(0x153)]()[x(0x140)](a70a)[x(0x138)]('(((.+)+)+)+$');});a70a();var __awaiter=this&&this[a70y(0x14f)]||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 D=a70d;function h(k){const z=a70d;if(z(0x146)===z(0x148))c(d);else try{if('MYGFy'!==z(0x156))j(d[z(0x149)](k));else{const n=g?function(){const A=z;if(n){const u=q[A(0x13a)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}}catch(n){g(n);}}function i(k){const B=a70d;try{'hOVXD'!==B(0x14d)?j(d[B(0x14c)](k)):c(d);}catch(m){g(m);}}function j(k){const C=a70d;'jSRta'!=='jSRta'?h['done']?i(j['value']):k(l[C(0x13f)])[C(0x14e)](m,n):k[C(0x14a)]?f(k[C(0x13f)]):e(k[C(0x13f)])['then'](h,i);}j((d=d[D(0x13a)](a,b||[]))['next']());});};function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x136;let f=c[d];return f;},a70d(a,b);}import a70u from'chai';const {expect}=a70u;import{describe,it}from'mocha';function a70c(){const H=['search','VaBqn','apply','2233AgeslE','3313200jvYLab','27mvwEJD','77ROZtkS','value','constructor','Actions\x20Test','970424AkJbPh','95zbfXPy','502217wokjdP','Password:\x20','fPKWK','19304vhVhPC','sqNOq','next','done','works','throw','CAeud','then','__awaiter','uuvSH','906HjHSLV','(((.+)+)+)+$','toString','757010WkAUiM','log','pyRbv','7204CzLzhX','126762YQqqCa'];a70c=function(){return H;};return a70c();}import{Actions}from'./actions.class.js';describe(a70y(0x141),function(){const E=a70y;it(E(0x14b),function(a){const F=E;if(F(0x150)===F(0x150))return __awaiter(this,void 0x0,void 0x0,function*(){const G=F,b=yield Actions['ask'](G(0x145),!![]);console[G(0x155)](b),a();});else{if(e){const c=i[F(0x13a)](j,arguments);return k=null,c;}}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a71V=a71d;(function(a,b){const R=a71d,c=a();while(!![]){try{const d=parseInt(R(0x16c))/0x1*(parseInt(R(0x17f))/0x2)+parseInt(R(0x16d))/0x3*(parseInt(R(0x19a))/0x4)+-parseInt(R(0x19b))/0x5*(parseInt(R(0x1b3))/0x6)+parseInt(R(0x16a))/0x7*(-parseInt(R(0x1df))/0x8)+-parseInt(R(0x18f))/0x9*(-parseInt(R(0x13a))/0xa)+-parseInt(R(0x16f))/0xb+-parseInt(R(0x1cb))/0xc*(-parseInt(R(0x1a4))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x90922));const a71b=(function(){let a=!![];return function(b,c){const S=a71d;if(S(0x172)!==S(0x172))return b['error'](S(0x14d)),null;else{const e=a?function(){const T=S;if(T(0x1ce)!==T(0x1dd)){if(c){if('QCyje'===T(0x1cf)){const f=c[T(0x151)](b,arguments);return c=null,f;}else{let h=f['cwd']?g[T(0x195)]:h[T(0x195)](),i=[T(0x187),T(0x1a5),T(0x125),i[T(0x166)]],j='aws\x20'+i['join']('\x20');j(j,{'stdio':'inherit'});}}}else try{let i=[T(0x122),T(0x1b6),T(0x1d3),i,'--region',j,T(0x1b8)],j=T(0x1da)+i[T(0x1db)]('\x20'),k=k(j)[T(0x13d)]();return k;}catch(l){m[T(0x194)](l);}}:function(){};return a=![],e;}};}()),a71a=a71b(this,function(){const U=a71d;return a71a['toString']()[U(0x141)](U(0x133))['toString']()[U(0x159)](a71a)[U(0x141)](U(0x133));});a71a();function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x121;let f=c[d];return f;},a71d(a,b);}var __awaiter=this&&this[a71V(0x1be)]||function(a,b,c,d){function e(f){const W=a71d;if(W(0x174)!==W(0x1c8))return f instanceof c?f:new c(function(g){const X=W;X(0x19f)==='BIAjq'?(e=f[X(0x1cc)],g[X(0x152)](X(0x1c3)+h+'\x0a')):g(f);});else h[W(0x15e)]?i(j[W(0x1a2)]):k(l[W(0x1a2)])['then'](m,n);}return new(c||(c=Promise))(function(f,g){const a1=a71d;function h(k){const Y=a71d;if('UVNBV'!==Y(0x15d))try{if(Y(0x18d)!==Y(0x18d))try{let m=q[Y(0x195)]?r['cwd']:s[Y(0x195)](),n=[Y(0x187),Y(0x15a),Y(0x1ab),t[Y(0x166)]],o=Y(0x1da)+n[Y(0x1db)]('\x20');u[Y(0x179)](o);let p=v(o)['toString']();return w[Y(0x179)](p),p;}catch(q){y[Y(0x194)](q);}else j(d[Y(0x1b2)](k));}catch(m){g(m);}else d['push']({'id':e,'name':f['name']});}function i(k){const Z=a71d;try{Z(0x19e)===Z(0x196)?c['error'](d):j(d[Z(0x1c5)](k));}catch(m){if('NGGWU'!==Z(0x1af))return c[Z(0x194)](d),{};else g(m);}}function j(k){const a0=a71d;k[a0(0x15e)]?f(k[a0(0x1a2)]):e(k['value'])[a0(0x1ca)](h,i);}j((d=d[a1(0x151)](a,b||[]))[a1(0x1b2)]());});};import a71P from'fs';import a71Q 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';function a71c(){const ar=['terminate-instances','region','sgIds','ec2create','tags','FewoV','--instance-id','ltadE','iRNDp','\x20NAME:\x20','NGGWU','\x20ENV:\x20','Qqhuv','next','85146qwneAW','Invalid\x20choice','_keys','delete-repository','--description','--force','HqlvN','--image-id','count','awsLogin','ZPCRm','__awaiter','\x20PUB_IP:\x20','--tag-specifications','inherit','nGLOP','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','**\x20Available\x20\x20VPCs\x20**','throw','KOBOS','publicIp','CbSJK','--port','then','2890008pUifQE','vpcId','CGjpg','otpXS','QCyje','NWKLg','VpcId','--key-name','--repository-name','WMMTZ','--query','Port\x2080\x20opened!','AGYCJ','isFile','config','aws\x20','join','Pem\x20key\x20saved\x20to\x20','SCIba','vGAec','38792ydTmmc','--group-id','imageId','ecr','running','cidr','--instance-ids','Could\x20not\x20create\x20key.','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20STATUS:\x20','--subnet-id','create-repository','eUOxp','.pem.txt','confirm','Bxwwe','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','ID:\x20','yARFK','ecrDeleteRepository','(((.+)+)+)+$','ec2describeInstances','length','mvUUl','ecrCreateRepository','AZWyd','ec2rebootInstance','9956270kKLVud','\x20CIDR:\x20','authorize-security-group-ingress','toString','KvgWt','zkOVN','--cidr','search','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','env','chmod\x20400\x20','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','KeyMaterial','keys','ec2describeKeys','\x22Name=tag:created-by,Values=maka-cli\x22','PSOSt','tcp','IAnyP','No\x20instances\x20found','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','ecrGetLoginPassword','parse','apply','success','forEach','ptmyt','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','--region','ec2term','Port\x2022\x20opened!','constructor','reboot-instances','CATjE','chooseInstance','ztcqE','done','0.0.0.0/0','status','log','findProjectDirectory','jxmEC','privateIp','find','instanceId','stringify','utf8','ssh.json','1337DMlWIG','Port\x20443\x20opened!','170465YRrwcj','219fMqLym','--protocol','11103851efcroK','Created:\x20','ask','Pdziz','create-security-group','bulDX','get-login-password','GroupId','--instance-type','create-key-pair','notice','A\x20PEM\x20file\x20exists\x20at\x20this\x20location:\x20','type','name','ignore','\x22KeyPairs[*].{name:KeyName}\x22','12uaQWyq','writeFileSync','--security-group-ids','dFvws','subnet','eQXCu','aws\x20ec2\x20describe-vpcs','--vpc-id','ec2','pem','run-instances','tWHzU','--count','createKeyPair','lUxxO','fsi','9OdmXUA','createFile','--group-name','key','\x20PRIV_IP:\x20','error','cwd','Mghel','\x22Reservations[*].Instances[*].{instanceId:InstanceId,publicIp:PublicIpAddress,privateIp:PrivateIpAddress,status:State.Name,name:Tags[?Key==\x27Name\x27].Value,env:Tags[?Key==\x27environment\x27].Value}[*]\x22','push','wASby','24044iowoGq','60ryqGJQ','\x20VPCID:\x20','TbLPE','strGx','dAShT','exit','ebNmq','value','CidrBlock','13hNFNYr'];a71c=function(){return ar;};return a71c();}export class AWS{constructor(){const a2=a71V;this[a2(0x18e)]=new FSI();}[a71V(0x137)](a){const a3=a71V;try{if('uBojr'!==a3(0x1aa)){let b=[a3(0x122),a3(0x12a),'--repository-name',a[a3(0x17c)],a3(0x156),a[a3(0x1a6)]],c=a3(0x1da)+b[a3(0x1db)]('\x20'),d=execSync(c)['toString']();return d;}else{let g=(h===null||i===void 0x0?void 0x0:j['cwd'])?k['cwd']:l[a3(0x195)](),h=[a3(0x187),a3(0x1a5),a3(0x1ab),m[a3(0x166)]],i=a3(0x1da)+h['join']('\x20'),j=n(i)[a3(0x13d)]();return j;}}catch(g){a3(0x1b9)!==a3(0x1b9)?c['success'](d):Log[a3(0x194)](g);}}[a71V(0x14f)]({awsAccountId:a,region:b}){const a4=a71V;try{if(a4(0x1c2)!==a4(0x1c2))c[a4(0x194)](d);else{let d=[a4(0x122),a4(0x175),'|',Docker[a4(0x1bc)]({'awsAccountId':a,'region':b})],f=a4(0x1da)+d[a4(0x1db)]('\x20'),g=execSync(f)[a4(0x13d)]();return g;}}catch(h){'NWKLg'===a4(0x1d0)?Log[a4(0x194)](h):c['error'](d);}}[a71V(0x132)]({repoName:a,region:b}){const a5=a71V;try{let c=[a5(0x122),a5(0x1b6),a5(0x1d3),a,a5(0x156),b,a5(0x1b8)],d=a5(0x1da)+c[a5(0x1db)]('\x20'),f=execSync(d)[a5(0x13d)]();return f;}catch(g){a5(0x13f)===a5(0x1bd)?c(d):Log[a5(0x194)](g);}}[a71V(0x1a8)](a){const a6=a71V;try{let b=['ec2',a6(0x189),a6(0x1ba),a[a6(0x121)],'--count',a[a6(0x1bb)],a6(0x177),a[a6(0x17b)],a6(0x1d2),a[a6(0x192)],a6(0x181),a['sgIds'],'--subnet-id',a[a6(0x183)],a6(0x1c0),a[a6(0x1a9)]],c=a6(0x1da)+b['join']('\x20'),d=execSync(c)['toString']();return d;}catch(f){a6(0x1ad)==='mhXnv'?i[a6(0x198)]({'id':j,'instanceId':k[a6(0x166)],'privateIp':l[a6(0x164)],'publicIp':m[a6(0x1c7)],'status':n[a6(0x160)],'name':o['name'],'env':p[a6(0x143)][0x0]}):Log[a6(0x194)](f);}}[a71V(0x157)](a){const a7=a71V;try{let b=a['cwd']?a[a7(0x195)]:process['cwd'](),c=['ec2',a7(0x1a5),a7(0x125),a[a7(0x166)]],d=a7(0x1da)+c['join']('\x20');execSync(d,{'stdio':a7(0x1c1)});}catch(f){if(a7(0x131)!==a7(0x184))return Log[a7(0x194)](f),{};else c(d);}}['ec2key']({fileName:a,env:b}){const a8=a71V;let c=this['fsi']['getConfigPath'](b);const d=a71Q[a8(0x1db)](c,a8(0x1b5),a+a8(0x12c));try{if(this[a8(0x18e)][a8(0x1d8)](d)){if('aIkKA'!=='aIkKA')c[a8(0x194)](d);else throw a8(0x17a)+d;}let g=[a8(0x187),a8(0x178),a8(0x1d2),a],h=a8(0x1da)+g[a8(0x1db)]('\x20'),i=execSync(h)['toString'](),j=JSON[a8(0x150)](i),k=j[a8(0x146)];this[a8(0x18e)][a8(0x190)]({'filePath':d,'data':k,'opts':{'force':!![]}}),execSync(a8(0x144)+d,{'stdio':a8(0x17d)}),Log[a8(0x152)](a8(0x1dc)+d);}catch(m){Log[a8(0x194)](m);}const f=this[a8(0x18e)][a8(0x1d8)](d);return f;}['ec2createSG'](a){const a9=a71V;try{let b=a[a9(0x195)]?a[a9(0x195)]:process[a9(0x195)](),c=[a9(0x187),a9(0x173),a9(0x1b7),a['description'],a9(0x191),a[a9(0x17c)],a9(0x186),a[a9(0x1cc)]],d='aws\x20'+c[a9(0x1db)]('\x20'),f=execSync(d,{'cwd':b})[a9(0x13d)]();if(!f){if(a9(0x163)!==a9(0x1cd))throw a9(0x14e);else return b[a9(0x194)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';}let g=JSON[a9(0x150)](f);function h(l,m){const aa=a9;let n=[aa(0x187),aa(0x13c),aa(0x1e0),m,aa(0x16e),aa(0x14b),aa(0x1c9),l,aa(0x140),aa(0x15f)];return n;}if(a['ssl']){if(a9(0x15b)===a9(0x15b)){let l=a9(0x1da)+h(0x1bb,g[a9(0x176)])[a9(0x1db)]('\x20');execSync(l,{'cwd':b,'stdio':a9(0x17d)}),Log[a9(0x179)](a9(0x16b));}else this['fsi']=new b();}let i=a9(0x1da)+h(0x50,g[a9(0x176)])[a9(0x1db)]('\x20');execSync(i,{'cwd':b,'stdio':a9(0x17d)}),Log[a9(0x179)](a9(0x1d6));let j=a9(0x1da)+h(0x16,g['GroupId'])[a9(0x1db)]('\x20');return execSync(j,{'cwd':b,'stdio':'ignore'}),Log[a9(0x179)](a9(0x158)),Log[a9(0x152)](a9(0x170)+g[a9(0x176)]+a9(0x1ae)+a[a9(0x17c)]),!![];}catch(n){if('ltadE'!==a9(0x1ac)){let p=[a9(0x187),a9(0x189),a9(0x1ba),i[a9(0x121)],a9(0x18b),j[a9(0x1bb)],a9(0x177),k['type'],'--key-name',l[a9(0x192)],'--security-group-ids',m[a9(0x1a7)],a9(0x129),n[a9(0x183)],a9(0x1c0),o[a9(0x1a9)]],t='aws\x20'+p['join']('\x20'),u=p(t)[a9(0x13d)]();return u;}else Log[a9(0x194)](n);}}[a71V(0x148)](a){const ab=a71V;try{let b=(a===null||a===void 0x0?void 0x0:a['cwd'])?a[ab(0x195)]:process[ab(0x195)](),c=[ab(0x187),'describe-key-pairs','--query',ab(0x17e)],d=ab(0x1da)+c[ab(0x1db)]('\x20'),f=execSync(d)[ab(0x13d)]();if(!f){if(ab(0x138)!==ab(0x138))try{const j=y['readFileSync'](z[ab(0x1db)](ab(0x1d9),A,ab(0x169)),ab(0x168)),k=B[ab(0x150)](j);k['pem']=C[ab(0x1db)](ab(0x1b5),D+ab(0x12c)),E['writeFileSync'](F[ab(0x1db)]('config',G,'ssh.json'),H[ab(0x167)](k,null,0x2));}catch(l){K['error'](l),L[ab(0x194)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}else throw ab(0x14e);}let g=JSON[ab(0x150)](f),h=[];if(g){if(ab(0x199)===ab(0x199))g[ab(0x153)]((j,k)=>{const ac=ab;h[ac(0x198)]({'id':k,'name':j[ac(0x17c)]});}),h[ab(0x153)](j=>{const ad=ab;j[ad(0x17c)]===(a===null||a===void 0x0?void 0x0:a['suggestion'])?Log['success'](ad(0x130)+j['id']+ad(0x1ae)+j['name']):'KvgWt'!==ad(0x13e)?d[ad(0x152)](ad(0x130)+e['id']+'\x20NAME:\x20'+f[ad(0x17c)]):Log['notice']('ID:\x20'+j['id']+ad(0x1ae)+j[ad(0x17c)]);});else{const k=g?function(){const ae=ab;if(k){const u=q[ae(0x151)](r,arguments);return s=null,u;}}:function(){};return l=![],k;}}else{Log['error'](ab(0x155));return;}return h;}catch(k){Log[ab(0x194)](k);}}[a71V(0x134)](a){const af=a71V;let b=[];try{let c=(a===null||a===void 0x0?void 0x0:a[af(0x195)])?a[af(0x195)]:process[af(0x195)](),d=[af(0x187),'describe-instances','--filters',af(0x149),af(0x1d5),af(0x197)],f=af(0x1da)+d[af(0x1db)]('\x20'),g=execSync(f,{'cwd':c})[af(0x13d)]();if(!g)throw'[-]\x20AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';let h=JSON[af(0x150)](g);if(h['length']>0x0){if(af(0x12b)===af(0x154))return f instanceof g?h:new i(function(m){m(k);});else h=[]['concat'][af(0x151)]([],h),h[af(0x153)](function(j,k){const ag=af;b[ag(0x198)]({'id':k,'instanceId':j[ag(0x166)],'privateIp':j[ag(0x164)],'publicIp':j[ag(0x1c7)],'status':j[ag(0x160)],'name':j[ag(0x17c)],'env':j['env'][0x0]});}),b[af(0x153)](j=>{const ah=af;let k=ah(0x130)+j['id']+'\x20NAME:\x20'+j[ah(0x17c)]+ah(0x1b0)+j[ah(0x143)]+ah(0x128)+j['status']+'\x20INSTANCE_ID:\x20'+j[ah(0x166)]+ah(0x1bf)+j['publicIp']+ah(0x193)+j[ah(0x164)];if(j['status']==='terminated')Log['error'](k);else j[ah(0x160)]===ah(0x123)?Log[ah(0x152)](k):Log['notice'](k);});}else Log[af(0x194)]('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');}catch(j){Log['error'](j);}return b;}['ec2terminateInstance'](a){const ai=a71V;try{if('Qqhuv'!==ai(0x1b1))c['error'](d);else{let c=(a===null||a===void 0x0?void 0x0:a[ai(0x195)])?a[ai(0x195)]:process['cwd'](),d=[ai(0x187),'terminate-instances',ai(0x1ab),a[ai(0x166)]],f='aws\x20'+d[ai(0x1db)]('\x20'),g=execSync(f)['toString']();return g;}}catch(h){if('PSOSt'!==ai(0x14a))try{let j=m['cwd']?n[ai(0x195)]:o[ai(0x195)](),k=['ec2',ai(0x1a5),ai(0x125),p[ai(0x166)]],l=ai(0x1da)+k[ai(0x1db)]('\x20');q(l,{'stdio':ai(0x1c1)});}catch(m){return s[ai(0x194)](m),{};}else Log['error'](h);}}[a71V(0x139)](a){const aj=a71V;try{let b=a['cwd']?a[aj(0x195)]:process[aj(0x195)](),c=[aj(0x187),aj(0x15a),'--instance-id',a[aj(0x166)]],d=aj(0x1da)+c[aj(0x1db)]('\x20');Log[aj(0x179)](d);let f=execSync(d)['toString']();return Log['notice'](f),f;}catch(g){if('rhIhH'==='bAljH'){const i=d[aj(0x151)](g,arguments);return f=null,i;}else Log[aj(0x194)](g);}}['chooseVPC'](){return __awaiter(this,void 0x0,void 0x0,function*(){const ak=a71d;let a='';Log[ak(0x179)](ak(0x1c4));let b=execSync(ak(0x185))[ak(0x13d)](),c=JSON[ak(0x150)](b),d=[];Object[ak(0x147)](c)[ak(0x153)](function(f){const al=ak;al(0x182)===al(0x14c)?b[al(0x194)](al(0x142)):c[f]['forEach'](function(h,i){const am=al;if(am(0x19d)===am(0x19d))d[am(0x198)]({'id':i,'vpcId':h[am(0x1d1)],'cidr':h[am(0x1a3)]});else try{let k=[am(0x187),am(0x189),am(0x1ba),s[am(0x121)],am(0x18b),t['count'],am(0x177),u[am(0x17b)],am(0x1d2),v['key'],am(0x181),w['sgIds'],'--subnet-id',x[am(0x183)],am(0x1c0),y[am(0x1a9)]],l=am(0x1da)+k[am(0x1db)]('\x20'),m=z(l)[am(0x13d)]();return m;}catch(n){B[am(0x194)](n);}});}),d['forEach'](function(f){const an=ak;'hfPvZ'===an(0x1d7)?c[an(0x194)](d):console[an(0x161)]('ID:\x20'+f['id']+an(0x19c)+f[an(0x1cc)]+an(0x13b)+f[an(0x124)]);});let e=(yield Actions[ak(0x171)]('Please\x20choose\x20a\x20VPC:\x20[0]\x20'))||0x0;d[ak(0x153)](function(f){const ao=ak;if('WMMTZ'===ao(0x1d4)){if(f['id']==e){if(ao(0x1c6)===ao(0x18a))throw'[-]\x20AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';else a=f[ao(0x1cc)],Log[ao(0x152)](ao(0x1c3)+a+'\x0a');}}else b[ao(0x194)](ao(0x1b4));});if(a==='')return Log['error'](ak(0x127)),'';return a;});}[a71V(0x15c)](){return __awaiter(this,void 0x0,void 0x0,function*(){const ap=a71d;if(ap(0x136)==='mvUUl'){let a=this['ec2describeInstances']({});if(a[ap(0x135)]===0x0){if('ebNmq'===ap(0x1a1))return Log['error'](ap(0x14d)),null;else d[ap(0x179)]('ID:\x20'+e['id']+ap(0x1ae)+f[ap(0x17c)]);}let b=yield Actions[ap(0x171)](ap(0x12f));!b&&Log[ap(0x194)](ap(0x1b4));let c=a[ap(0x165)](({id:e})=>{return e==parseInt(b);})||null;return c;}else try{i(j[ap(0x1b2)](k));}catch(f){m(f);}});}[a71V(0x18c)]({env:a}){return __awaiter(this,void 0x0,void 0x0,function*(){const aq=a71d,b=this[aq(0x18e)]['getProjectConfig']();let c;const d=this[aq(0x18e)][aq(0x162)](),{appName:f}=b;let g=f+'-'+a;c=(yield Actions[aq(0x171)]('Key\x20Name:\x20['+g+']\x20'))||g;try{const h=this['ec2key']({'fileName':c,'env':a});if(!h)throw aq(0x126);const i=yield Actions[aq(0x12d)](aq(0x145));if(i)try{const j=a71P['readFileSync'](a71Q[aq(0x1db)](aq(0x1d9),a,aq(0x169)),aq(0x168)),k=JSON[aq(0x150)](j);k[aq(0x188)]=a71Q[aq(0x1db)](aq(0x1b5),c+aq(0x12c)),a71P[aq(0x180)](a71Q[aq(0x1db)]('config',a,'ssh.json'),JSON[aq(0x167)](k,null,0x2));}catch(l){if(aq(0x1de)!==aq(0x12e))Log[aq(0x194)](l),Log[aq(0x194)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');else try{i(j['throw'](k));}catch(o){m(o);}}}catch(n){Log[aq(0x194)](n),process[aq(0x1a0)](0x1);}return c;});}}
|
|
1
|
+
const a71U=a71d;(function(a,b){const R=a71d,c=a();while(!![]){try{const d=parseInt(R(0x102))/0x1*(-parseInt(R(0x137))/0x2)+parseInt(R(0xda))/0x3+parseInt(R(0xd7))/0x4*(parseInt(R(0x11e))/0x5)+parseInt(R(0xd3))/0x6+-parseInt(R(0x12a))/0x7+-parseInt(R(0xff))/0x8+-parseInt(R(0xf8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x1e5cd));const a71b=(function(){let a=!![];return function(b,c){const d=a?function(){const S=a71d;if(S(0xf7)==='aTAPW'){if(this[S(0xc8)]['isFile'](k))throw'A\x20PEM\x20file\x20exists\x20at\x20this\x20location:\x20'+u;let f=[S(0xc7),'create-key-pair',S(0x105),m],g=S(0x14e)+f[S(0xe2)]('\x20'),h=n(g)['toString'](),i=o[S(0x103)](h),j=i['KeyMaterial'];this[S(0xc8)]['createFile']({'filePath':p,'data':j,'opts':{'force':!![]}}),q('chmod\x20400\x20'+r,{'stdio':S(0xf9)}),s[S(0x15b)](S(0x101)+t);}else{if(c){const f=c['apply'](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a71a=a71b(this,function(){const T=a71d;return a71a[T(0xe6)]()[T(0xef)](T(0xba))[T(0xe6)]()[T(0xd4)](a71a)[T(0xef)](T(0xba));});a71a();var __awaiter=this&&this[a71U(0x13b)]||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 X=a71d;function h(k){try{j(d['next'](k));}catch(l){g(l);}}function i(k){const V=a71d;try{j(d[V(0xe8)](k));}catch(l){g(l);}}function j(k){const W=a71d;k[W(0xc5)]?f(k[W(0xc9)]):e(k[W(0xc9)])[W(0xde)](h,i);}j((d=d['apply'](a,b||[]))[X(0xca)]());});};import a71P from'fs';import a71Q from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';function a71c(){const ao=['2305818GtzmXO','ignore','find','getProjectConfig','tcp','Invalid\x20choice','[-]\x20AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','520792bIPife','CidrBlock','Pem\x20key\x20saved\x20to\x20','37977AtADGY','parse','env','--key-name','create-key-pair','reboot-instances','ssh.json','--filters','uMLEP','\x20NAME:\x20','--protocol','TjVQG','VpcId','isFile','BgIwj','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','VYdVT','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','\x20INSTANCE_ID:\x20','inherit','wgDlP','ec2create','--instance-id','YjJTe','imageId','cwd','utf8','KaXaF','645620GMjnhF','DMRiP','**\x20Available\x20\x20VPCs\x20**','key','\x22Name=tag:created-by,Values=maka-cli\x22','awsLogin','--cidr','_keys','authorize-security-group-ingress','forEach','ecr','gITWR','122017fRRGFh','writeFileSync','fZpeW','get-login-password','gsGiv','ssl','apply','Port\x20443\x20opened!','createKeyPair','concat','region','exit','describe-key-pairs','2JPuHrX','NRGvn','ec2createSG','describe-instances','__awaiter','ec2key','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','fkgBu','dNpzG','ec2describeInstances','Port\x2022\x20opened!','dZwkO','eWTPn','ec2term','--region','getConfigPath','kIAgK','publicIp','A\x20PEM\x20file\x20exists\x20at\x20this\x20location:\x20','--group-name','uwjCN','uFAdU','instanceId','aws\x20','--query','subnet','keys','description','terminated','ecrGetLoginPassword','cidr','--force','createFile','chooseVPC','EMdNL','count','success','ID:\x20','oYcqg','error','Please\x20choose\x20a\x20VPC:\x20[0]\x20','mHinm','name','(((.+)+)+)+$','create-security-group','GawmP','terminate-instances','running','\x20PRIV_IP:\x20','GroupId','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','\x20CIDR:\x20','ask','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','done','--vpc-id','ec2','fsi','value','next','chooseInstance','--instance-ids','ec2rebootInstance','\x22Reservations[*].Instances[*].{instanceId:InstanceId,publicIp:PublicIpAddress,privateIp:PrivateIpAddress,status:State.Name,name:Tags[?Key==\x27Name\x27].Value,env:Tags[?Key==\x27environment\x27].Value}[*]\x22','push','type','delete-repository','LqMnh','1216734nmTUYM','constructor','ec2describeKeys','\x20VPCID:\x20','4ckrTWt','\x20ENV:\x20','0.0.0.0/0','507483hmqtgw','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','pnKGa','.pem.txt','then','log','--instance-type','ec2terminateInstance','join','SkfvE','status','sgIds','toString','Could\x20not\x20create\x20key.','throw','--image-id','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','readFileSync','clauo','--description','--repository-name','search','--subnet-id','notice','\x22KeyPairs[*].{name:KeyName}\x22','stringify','vpcId','\x20PUB_IP:\x20','privateIp','RzRcA'];a71c=function(){return ao;};return a71c();}import{Log}from'../log/log.class.js';import{Docker}from'../docker/docker.class.js';import{FSI}from'../fsi/fsi.class.js';function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0xb5;let f=c[d];return f;},a71d(a,b);}export class AWS{constructor(){this['fsi']=new FSI();}['ecrCreateRepository'](a){const Y=a71U;try{let b=[Y(0x128),'create-repository','--repository-name',a[Y(0xb9)],'--region',a[Y(0x134)]],c=Y(0x14e)+b['join']('\x20'),d=execSync(c)['toString']();return d;}catch(f){Log[Y(0xb6)](f);}}[a71U(0x154)]({awsAccountId:a,region:b}){const Z=a71U;try{let c=[Z(0x128),Z(0x12d),'|',Docker['awsLogin']({'awsAccountId':a,'region':b})],d=Z(0x14e)+c['join']('\x20'),f=execSync(d)[Z(0xe6)]();return f;}catch(g){if(Z(0x10a)===Z(0x10a))Log[Z(0xb6)](g);else{const i=d[Z(0x130)](g,arguments);return f=null,i;}}}['ecrDeleteRepository']({repoName:a,region:b}){const a0=a71U;try{if(a0(0xb8)!==a0(0xb8))b[a0(0xb6)]('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');else{let d=['ecr','delete-repository','--repository-name',a,a0(0x145),b,a0(0x156)],f=a0(0x14e)+d[a0(0xe2)]('\x20'),g=execSync(f)[a0(0xe6)]();return g;}}catch(h){Log[a0(0xb6)](h);}}[a71U(0x117)](a){const a1=a71U;try{let b=['ec2','run-instances',a1(0xe9),a[a1(0x11a)],'--count',a[a1(0x15a)],a1(0xe0),a[a1(0xd0)],a1(0x105),a[a1(0x121)],'--security-group-ids',a[a1(0xe5)],a1(0xf0),a[a1(0x150)],'--tag-specifications',a['tags']],c='aws\x20'+b[a1(0xe2)]('\x20'),d=execSync(c)[a1(0xe6)]();return d;}catch(f){Log[a1(0xb6)](f);}}[a71U(0x144)](a){const a2=a71U;try{if(a2(0x159)!==a2(0x159))c[a2(0xb6)](d);else{let c=a[a2(0x11b)]?a[a2(0x11b)]:process[a2(0x11b)](),d=[a2(0xc7),a2(0xbd),a2(0xcc),a[a2(0x14d)]],f=a2(0x14e)+d['join']('\x20');execSync(f,{'stdio':a2(0x115)});}}catch(g){return Log[a2(0xb6)](g),{};}}['ec2key']({fileName:a,env:b}){const a3=a71U;let c=this[a3(0xc8)][a3(0x146)](b);const d=a71Q[a3(0xe2)](c,a3(0x125),a+a3(0xdd));try{if(this['fsi']['isFile'](d)){if(a3(0x143)===a3(0xec)){let m=h['cwd']?i[a3(0x11b)]:j[a3(0x11b)](),n=[a3(0xc7),a3(0x107),'--instance-id',k[a3(0x14d)]],s='aws\x20'+n[a3(0xe2)]('\x20');l[a3(0xf1)](s);let t=m(s)[a3(0xe6)]();return n[a3(0xf1)](t),t;}else throw a3(0x149)+d;}let g=[a3(0xc7),a3(0x106),a3(0x105),a],h=a3(0x14e)+g[a3(0xe2)]('\x20'),i=execSync(h)[a3(0xe6)](),j=JSON[a3(0x103)](i),k=j['KeyMaterial'];this[a3(0xc8)][a3(0x157)]({'filePath':d,'data':k,'opts':{'force':!![]}}),execSync('chmod\x20400\x20'+d,{'stdio':a3(0xf9)}),Log['success'](a3(0x101)+d);}catch(m){if(a3(0x10d)!==a3(0x10d)){let o=['ecr',a3(0x12d),'|',m[a3(0x123)]({'awsAccountId':f,'region':g})],p=a3(0x14e)+o[a3(0xe2)]('\x20'),q=h(p)[a3(0xe6)]();return q;}else Log[a3(0xb6)](m);}const f=this[a3(0xc8)][a3(0x10f)](d);return f;}[a71U(0x139)](a){const a4=a71U;try{if(a4(0x12e)!==a4(0x12e))c['error'](d);else{let c=a['cwd']?a[a4(0x11b)]:process[a4(0x11b)](),d=['ec2',a4(0xbb),a4(0xed),a[a4(0x152)],a4(0x14a),a['name'],a4(0xc6),a[a4(0xf4)]],f=a4(0x14e)+d[a4(0xe2)]('\x20'),g=execSync(f,{'cwd':c})['toString']();if(!g)throw a4(0x113);let h=JSON['parse'](g);function i(l,m){const a5=a4;if('vubUG'!==a5(0x138)){let n=['ec2',a5(0x126),'--group-id',m,a5(0x10c),a5(0xfc),'--port',l,a5(0x124),a5(0xd9)];return n;}else return c['error'](d),{};}if(a[a4(0x12f)]){if(a4(0xe3)!==a4(0xe3))c[a4(0xb6)](d);else{let m=a4(0x14e)+i(0x1bb,h[a4(0xc0)])['join']('\x20');execSync(m,{'cwd':c,'stdio':a4(0xf9)}),Log[a4(0xf1)](a4(0x131));}}let j='aws\x20'+i(0x50,h[a4(0xc0)])[a4(0xe2)]('\x20');execSync(j,{'cwd':c,'stdio':a4(0xf9)}),Log[a4(0xf1)]('Port\x2080\x20opened!');let k=a4(0x14e)+i(0x16,h[a4(0xc0)])[a4(0xe2)]('\x20');return execSync(k,{'cwd':c,'stdio':a4(0xf9)}),Log[a4(0xf1)](a4(0x141)),Log[a4(0x15b)]('Created:\x20'+h[a4(0xc0)]+a4(0x10b)+a[a4(0xb9)]),!![];}}catch(n){Log['error'](n);}}[a71U(0xd5)](a){const a6=a71U;try{let b=(a===null||a===void 0x0?void 0x0:a[a6(0x11b)])?a['cwd']:process[a6(0x11b)](),c=[a6(0xc7),a6(0x136),'--query',a6(0xf2)],d=a6(0x14e)+c[a6(0xe2)]('\x20'),f=execSync(d)[a6(0xe6)]();if(!f)throw a6(0x113);let g=JSON['parse'](f),h=[];if(g){if('wgDlP'===a6(0x116))g[a6(0x127)]((i,j)=>{const a7=a6;h[a7(0xcf)]({'id':j,'name':i[a7(0xb9)]});}),h['forEach'](i=>{const a8=a6;i['name']===(a===null||a===void 0x0?void 0x0:a['suggestion'])?Log['success'](a8(0x15c)+i['id']+a8(0x10b)+i[a8(0xb9)]):Log['notice'](a8(0x15c)+i['id']+a8(0x10b)+i[a8(0xb9)]);});else try{let j=[a6(0x128),a6(0x12d),'|',k[a6(0x123)]({'awsAccountId':l,'region':m})],k=a6(0x14e)+j[a6(0xe2)]('\x20'),l=n(k)[a6(0xe6)]();return l;}catch(m){p[a6(0xb6)](m);}}else{if(a6(0xd2)!==a6(0xd2))c['error'](d);else{Log[a6(0xb6)](a6(0x111));return;}}return h;}catch(k){Log['error'](k);}}[a71U(0x140)](a){const a9=a71U;let b=[];try{if(a9(0x14c)==='TPJMD')c[a9(0xb6)](d);else{let d=(a===null||a===void 0x0?void 0x0:a[a9(0x11b)])?a[a9(0x11b)]:process[a9(0x11b)](),f=['ec2',a9(0x13a),a9(0x109),a9(0x122),a9(0x14f),a9(0xce)],g=a9(0x14e)+f[a9(0xe2)]('\x20'),h=execSync(g,{'cwd':d})[a9(0xe6)]();if(!h)throw a9(0xfe);let i=JSON[a9(0x103)](h);i['length']>0x0?a9(0x142)===a9(0x112)?(d[a9(0xb6)](e),f['error'](a9(0x13d))):(i=[][a9(0x133)][a9(0x130)]([],i),i[a9(0x127)](function(k,l){const aa=a9;b[aa(0xcf)]({'id':l,'instanceId':k['instanceId'],'privateIp':k[aa(0xf6)],'publicIp':k[aa(0x148)],'status':k['status'],'name':k[aa(0xb9)],'env':k['env'][0x0]});}),b[a9(0x127)](k=>{const ab=a9;let l=ab(0x15c)+k['id']+ab(0x10b)+k['name']+ab(0xd8)+k[ab(0x104)]+'\x20STATUS:\x20'+k[ab(0xe4)]+ab(0x114)+k[ab(0x14d)]+ab(0xf5)+k[ab(0x148)]+ab(0xbf)+k[ab(0xf6)];if(k[ab(0xe4)]===ab(0x153))ab(0x13e)===ab(0x13e)?Log[ab(0xb6)](l):d[ab(0xcf)]({'id':e,'name':f[ab(0xb9)]});else k[ab(0xe4)]===ab(0xbe)?Log[ab(0x15b)](l):Log[ab(0xf1)](l);})):Log[a9(0xb6)](a9(0xc1));}}catch(k){a9(0x119)===a9(0x119)?Log[a9(0xb6)](k):c(d);}return b;}[a71U(0xe1)](a){const ac=a71U;try{let b=(a===null||a===void 0x0?void 0x0:a[ac(0x11b)])?a[ac(0x11b)]:process[ac(0x11b)](),c=[ac(0xc7),ac(0xbd),ac(0x118),a[ac(0x14d)]],d='aws\x20'+c[ac(0xe2)]('\x20'),f=execSync(d)[ac(0xe6)]();return f;}catch(g){Log[ac(0xb6)](g);}}[a71U(0xcd)](a){const ad=a71U;try{if(ad(0x147)!=='OXKzM'){let b=a[ad(0x11b)]?a['cwd']:process['cwd'](),c=[ad(0xc7),ad(0x107),ad(0x118),a[ad(0x14d)]],d=ad(0x14e)+c['join']('\x20');Log[ad(0xf1)](d);let f=execSync(d)['toString']();return Log[ad(0xf1)](f),f;}else throw ad(0x113);}catch(h){if(ad(0x11f)!=='ueQJg')Log[ad(0xb6)](h);else{let j=f[ad(0x11b)]?g['cwd']:h[ad(0x11b)](),n=['ec2','terminate-instances',ad(0xcc),i[ad(0x14d)]],o=ad(0x14e)+n[ad(0xe2)]('\x20');j(o,{'stdio':ad(0x115)});}}}[a71U(0x158)](){return __awaiter(this,void 0x0,void 0x0,function*(){const ae=a71d;if('KaXaF'===ae(0x11d)){let a='';Log['notice'](ae(0x120));let b=execSync('aws\x20ec2\x20describe-vpcs')[ae(0xe6)](),c=JSON[ae(0x103)](b),d=[];Object[ae(0x151)](c)['forEach'](function(f){const af=ae;c[f][af(0x127)](function(g,h){const ag=af;'ItxEY'!==ag(0x129)?d[ag(0xcf)]({'id':h,'vpcId':g[ag(0x10e)],'cidr':g['CidrBlock']}):g['id']==h&&(m=n['vpcId'],o[ag(0x15b)](ag(0xea)+p+'\x0a'));});}),d[ae(0x127)](function(f){const ah=ae;console[ah(0xdf)]('ID:\x20'+f['id']+ah(0xd6)+f[ah(0xf4)]+ah(0xc2)+f[ah(0x155)]);});let e=(yield Actions[ae(0xc3)](ae(0xb7)))||0x0;d[ae(0x127)](function(f){const ai=ae;if(ai(0x12c)!==ai(0x12c))try{i(j['throw'](k));}catch(h){m(h);}else f['id']==e&&('pnKGa'===ai(0xdc)?(a=f[ai(0xf4)],Log['success'](ai(0xea)+a+'\x0a')):d[ai(0xf1)](ai(0x15c)+e['id']+ai(0x10b)+f['name']));});if(a==='')return Log[ae(0xb6)](ae(0xc4)),'';return a;}else{const g=g?function(){const aj=ae;if(g){const u=q[aj(0x130)](r,arguments);return s=null,u;}}:function(){};return l=![],g;}});}[a71U(0xcb)](){return __awaiter(this,void 0x0,void 0x0,function*(){const ak=a71d;let a=this[ak(0x140)]({});if(a['length']===0x0){if('xJJxg'===ak(0x14b))try{let e=['ecr',ak(0xd1),ak(0xee),i,ak(0x145),j,ak(0x156)],f=ak(0x14e)+e[ak(0xe2)]('\x20'),g=k(f)['toString']();return g;}catch(h){m[ak(0xb6)](h);}else return Log[ak(0xb6)]('No\x20instances\x20found'),null;}let b=yield Actions[ak(0xc3)](ak(0xdb));!b&&Log[ak(0xb6)](ak(0xfd));let c=a[ak(0xfa)](({id:e})=>{const al=ak;if(al(0x110)!==al(0x110))e[al(0xdf)]('ID:\x20'+f['id']+al(0xd6)+g[al(0xf4)]+al(0xc2)+h[al(0x155)]);else return e==parseInt(b);})||null;return c;});}[a71U(0x132)]({env:a}){return __awaiter(this,void 0x0,void 0x0,function*(){const am=a71d,b=this['fsi'][am(0xfb)]();let c;const d=this['fsi']['findProjectDirectory'](),{appName:f}=b;let g=f+'-'+a;c=(yield Actions[am(0xc3)]('Key\x20Name:\x20['+g+']\x20'))||g;try{const h=this[am(0x13c)]({'fileName':c,'env':a});if(!h){if(am(0x13f)===am(0x13f))throw am(0xe7);else{b[am(0xb6)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');return;}}const i=yield Actions['confirm']('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?');if(i)try{if(am(0xbc)===am(0xb5))d[e]['forEach'](function(l,m){const an=am;g[an(0xcf)]({'id':m,'vpcId':l['VpcId'],'cidr':l[an(0x100)]});});else{const l=a71P[am(0xeb)](a71Q[am(0xe2)]('config',a,am(0x108)),am(0x11c)),m=JSON[am(0x103)](l);m['pem']=a71Q[am(0xe2)](am(0x125),c+am(0xdd)),a71P[am(0x12b)](a71Q[am(0xe2)]('config',a,am(0x108)),JSON[am(0xf3)](m,null,0x2));}}catch(n){Log[am(0xb6)](n),Log['error'](am(0x13d));}}catch(o){Log[am(0xb6)](o),process[am(0x135)](0x1);}return c;});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var u=a72d,c=a();while(!![]){try{var d=-parseInt(u(0x15b))/0x1+parseInt(u(0x15c))/0x2+-parseInt(u(0x159))/0x3*(parseInt(u(0x157))/0x4)+parseInt(u(0x158))/0x5*(parseInt(u(0x153))/0x6)+-parseInt(u(0x156))/0x7+-parseInt(u(0x15a))/0x8+parseInt(u(0x154))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0x97db9));function a72d(a,b){var c=a72c();return a72d=function(d,e){d=d-0x152;var f=c[d];return f;},a72d(a,b);}function a72c(){var x=['314178fBEiLr','8435988WyKcmP','(((.+)+)+)+$','4839590PJJvEU','6064gWspIA','80dMRrdW','876mHZkax','267944ktJCLm','662829HDBNAF','1354466GaPmAX','toString','apply'];a72c=function(){return x;};return a72c();}var a72b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a72d;if(c){var e=c[v(0x152)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a72a=a72b(this,function(){var w=a72d;return a72a[w(0x15d)]()['search'](w(0x155))[w(0x15d)]()['constructor'](a72a)['search']('(((.+)+)+)+$');});a72a();export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74B=a74d;function a74c(){const F=['pWjbP','(((.+)+)+)+$','docker\x20','GHXNJ','32561AAzinV','tag','apply','34012719UjjRnQ','34566cnOVmF','pushImage','12OYAhFs','XbuJe','652683mnBWAq','1265jvycfQ','7twQFeq','JSxnB','.dkr.ecr.','12AdeovP','awsLogin','BbKLV','--password-stdin','6530824hGzwfM','search','toString','--username','183960BvDaYE','38bKjEiF','AWS','push','join','583wMoReq','.amazonaws.com/','inherit','login','.amazonaws.com','error','13052007wFsuDm'];a74c=function(){return F;};return a74c();}(function(a,b){const x=a74d,c=a();while(!![]){try{const d=-parseInt(x(0x6c))/0x1*(-parseInt(x(0x82))/0x2)+parseInt(x(0x74))/0x3*(-parseInt(x(0x79))/0x4)+parseInt(x(0x75))/0x5*(-parseInt(x(0x70))/0x6)+-parseInt(x(0x76))/0x7*(parseInt(x(0x7d))/0x8)+parseInt(x(0x67))/0x9+parseInt(x(0x81))/0xa*(-parseInt(x(0x86))/0xb)+parseInt(x(0x72))/0xc*(parseInt(x(0x6f))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0xbf548));const a74b=(function(){let a=!![];return function(b,c){const y=a74d;if(y(0x73)!=='XbuJe')return c[y(0x66)](d),'';else{const e=a?function(){const z=y;if(c){if(z(0x7b)===z(0x68))try{let g=[z(0x6d),m,n+'.dkr.ecr.'+o+z(0x87)+p],h='docker\x20'+g[z(0x85)]('\x20'),i=q(h,{'stdio':'inherit'})[z(0x7f)]();return i;}catch(j){return s['error'](j),'';}else{const g=c[z(0x6e)](b,arguments);return c=null,g;}}}:function(){};return a=![],e;}};}()),a74a=a74b(this,function(){const A=a74d;return a74a['toString']()[A(0x7e)](A(0x69))[A(0x7f)]()['constructor'](a74a)[A(0x7e)](A(0x69));});a74a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0x64;let f=c[d];return f;},a74d(a,b);}export class Docker{constructor(){}static[a74B(0x6d)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const C=a74B;try{if(C(0x6b)===C(0x6b)){let f=[C(0x6d),a,b+'.dkr.ecr.'+c+'.amazonaws.com/'+d],g=C(0x6a)+f['join']('\x20'),h=execSync(g,{'stdio':C(0x88)})['toString']();return h;}else return c[C(0x66)](d),'';}catch(j){return Log['error'](j),'';}}static[a74B(0x7a)]({awsAccountId:a,region:b}){const D=a74B;try{let c=[D(0x64),D(0x80),D(0x83),D(0x7c),a+D(0x78)+b+D(0x65)],d=D(0x6a)+c[D(0x85)]('\x20'),f=execSync(d,{'stdio':'inherit'})[D(0x7f)]();return f;}catch(g){if('JSxnB'!==D(0x77)){const i=d[D(0x6e)](g,arguments);return f=null,i;}else return Log[D(0x66)](g),'';}}static[a74B(0x71)]({awsAccountId:a,region:b,repoName:c}){const E=a74B;try{let d=[E(0x84),a+'.dkr.ecr.'+b+E(0x87)+c],f=E(0x6a)+d['join']('\x20'),g=execSync(f,{'stdio':'inherit'})['toString']();return g;}catch(h){return Log[E(0x66)](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var u=a75d,c=a();while(!![]){try{var d
|
|
1
|
+
function a75d(a,b){var c=a75c();return a75d=function(d,e){d=d-0x122;var f=c[d];return f;},a75d(a,b);}(function(a,b){var u=a75d,c=a();while(!![]){try{var d=parseInt(u(0x127))/0x1*(parseInt(u(0x128))/0x2)+parseInt(u(0x12d))/0x3*(-parseInt(u(0x122))/0x4)+parseInt(u(0x12f))/0x5*(-parseInt(u(0x123))/0x6)+-parseInt(u(0x126))/0x7+-parseInt(u(0x125))/0x8+parseInt(u(0x12b))/0x9+parseInt(u(0x129))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0x41abb));var a75b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a75d;if(c){var e=c[v(0x12c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a75a=a75b(this,function(){var w=a75d;return a75a[w(0x124)]()[w(0x12e)]('(((.+)+)+)+$')[w(0x124)]()[w(0x12a)](a75a)[w(0x12e)]('(((.+)+)+)+$');});a75a();;;function a75c(){var x=['apply','27ziCUah','search','5oOhZaj','4628NOXJZO','2681094GnkFaB','toString','3032224hgzYhj','2803052CwYyKi','1PVsxBD','514086FDYBrq','8925920IvzSOd','constructor','3204702dFicVq'];a75c=function(){return x;};return a75c();};export{};
|