@awsless/cli 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/app.json +1 -1
  2. package/dist/app.stage.json +1 -1
  3. package/dist/bin.js +10463 -47449
  4. package/dist/build-json-schema.js +308 -175
  5. package/dist/prebuild/icon/bundle.zip +0 -0
  6. package/dist/prebuild/image/bundle.zip +0 -0
  7. package/dist/prebuild/on-error-log/bundle.zip +0 -0
  8. package/dist/prebuild/on-failure/bundle.zip +0 -0
  9. package/dist/prebuild/rpc/HASH +1 -1
  10. package/dist/prebuild/rpc/bundle.zip +0 -0
  11. package/dist/stack.json +1 -1
  12. package/dist/stack.stage.json +1 -1
  13. package/package.json +19 -9
  14. package/dist/chunk-2TBBLACH.js +0 -37
  15. package/dist/chunk-3YEPERYO.js +0 -1021
  16. package/dist/chunk-4JFIJMQ6.js +0 -46
  17. package/dist/chunk-5TWBDDXS.js +0 -60
  18. package/dist/chunk-7NRPMOO4.js +0 -876
  19. package/dist/chunk-7XIGSOF4.js +0 -100
  20. package/dist/chunk-DSXFE5X2.js +0 -174
  21. package/dist/chunk-E7FQOYML.js +0 -12
  22. package/dist/chunk-GH475CSF.js +0 -5005
  23. package/dist/chunk-JHYKYQ5P.js +0 -163
  24. package/dist/chunk-LBISIOIM.js +0 -28
  25. package/dist/chunk-RCNT4C4P.js +0 -50
  26. package/dist/chunk-SIAA4J6H.js +0 -21
  27. package/dist/chunk-XNYTWFP6.js +0 -241
  28. package/dist/chunk-Z37AK4IA.js +0 -546
  29. package/dist/chunk-ZKH7AMP3.js +0 -42
  30. package/dist/dist-es-GXHCNXAC.js +0 -489
  31. package/dist/dist-es-J7SL4PXO.js +0 -88
  32. package/dist/dist-es-LL3VAI2X.js +0 -70
  33. package/dist/dist-es-QND3CYLI.js +0 -380
  34. package/dist/dist-es-STVZUSZG.js +0 -21
  35. package/dist/dist-es-TCFHB4OF.js +0 -324
  36. package/dist/dist-es-YFQTZTNE.js +0 -167
  37. package/dist/event-streams-74K5M656.js +0 -244
  38. package/dist/loadSso-O7PM54HL.js +0 -592
  39. package/dist/signin-6SPMGGJN.js +0 -704
  40. package/dist/sso-oidc-5IIWGKXY.js +0 -829
  41. package/dist/sts-6SQWH4BL.js +0 -3788
@@ -1,46 +0,0 @@
1
- import {
2
- setCredentialFeature
3
- } from "./chunk-E7FQOYML.js";
4
- import {
5
- CredentialsProviderError
6
- } from "./chunk-2TBBLACH.js";
7
-
8
- // ../../node_modules/.pnpm/@aws-sdk+credential-provider-env@3.972.24/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
9
- var ENV_KEY = "AWS_ACCESS_KEY_ID";
10
- var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
11
- var ENV_SESSION = "AWS_SESSION_TOKEN";
12
- var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
13
- var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
14
- var ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID";
15
- var fromEnv = (init) => async () => {
16
- init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
17
- const accessKeyId = process.env[ENV_KEY];
18
- const secretAccessKey = process.env[ENV_SECRET];
19
- const sessionToken = process.env[ENV_SESSION];
20
- const expiry = process.env[ENV_EXPIRATION];
21
- const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];
22
- const accountId = process.env[ENV_ACCOUNT_ID];
23
- if (accessKeyId && secretAccessKey) {
24
- const credentials = {
25
- accessKeyId,
26
- secretAccessKey,
27
- ...sessionToken && { sessionToken },
28
- ...expiry && { expiration: new Date(expiry) },
29
- ...credentialScope && { credentialScope },
30
- ...accountId && { accountId }
31
- };
32
- setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
33
- return credentials;
34
- }
35
- throw new CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
36
- };
37
-
38
- export {
39
- ENV_KEY,
40
- ENV_SECRET,
41
- ENV_SESSION,
42
- ENV_EXPIRATION,
43
- ENV_CREDENTIAL_SCOPE,
44
- ENV_ACCOUNT_ID,
45
- fromEnv
46
- };
@@ -1,60 +0,0 @@
1
- // ../../node_modules/.pnpm/@smithy+protocol-http@5.3.12/node_modules/@smithy/protocol-http/dist-es/httpRequest.js
2
- var HttpRequest = class _HttpRequest {
3
- method;
4
- protocol;
5
- hostname;
6
- port;
7
- path;
8
- query;
9
- headers;
10
- username;
11
- password;
12
- fragment;
13
- body;
14
- constructor(options) {
15
- this.method = options.method || "GET";
16
- this.hostname = options.hostname || "localhost";
17
- this.port = options.port;
18
- this.query = options.query || {};
19
- this.headers = options.headers || {};
20
- this.body = options.body;
21
- this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:";
22
- this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/";
23
- this.username = options.username;
24
- this.password = options.password;
25
- this.fragment = options.fragment;
26
- }
27
- static clone(request) {
28
- const cloned = new _HttpRequest({
29
- ...request,
30
- headers: { ...request.headers }
31
- });
32
- if (cloned.query) {
33
- cloned.query = cloneQuery(cloned.query);
34
- }
35
- return cloned;
36
- }
37
- static isInstance(request) {
38
- if (!request) {
39
- return false;
40
- }
41
- const req = request;
42
- return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object";
43
- }
44
- clone() {
45
- return _HttpRequest.clone(this);
46
- }
47
- };
48
- function cloneQuery(query) {
49
- return Object.keys(query).reduce((carry, paramName) => {
50
- const param = query[paramName];
51
- return {
52
- ...carry,
53
- [paramName]: Array.isArray(param) ? [...param] : param
54
- };
55
- }, {});
56
- }
57
-
58
- export {
59
- HttpRequest
60
- };