@awsless/cli 0.0.1

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 (50) hide show
  1. package/README.MD +487 -0
  2. package/dist/app.json +1 -0
  3. package/dist/app.stage.json +1 -0
  4. package/dist/bin.d.ts +1 -0
  5. package/dist/bin.js +49025 -0
  6. package/dist/build-json-schema.js +1925 -0
  7. package/dist/chunk-2TBBLACH.js +37 -0
  8. package/dist/chunk-3YEPERYO.js +1021 -0
  9. package/dist/chunk-4JFIJMQ6.js +46 -0
  10. package/dist/chunk-5TWBDDXS.js +60 -0
  11. package/dist/chunk-7NRPMOO4.js +876 -0
  12. package/dist/chunk-7XIGSOF4.js +100 -0
  13. package/dist/chunk-DSXFE5X2.js +174 -0
  14. package/dist/chunk-E7FQOYML.js +12 -0
  15. package/dist/chunk-GH475CSF.js +5005 -0
  16. package/dist/chunk-JHYKYQ5P.js +163 -0
  17. package/dist/chunk-LBISIOIM.js +28 -0
  18. package/dist/chunk-RCNT4C4P.js +50 -0
  19. package/dist/chunk-SIAA4J6H.js +21 -0
  20. package/dist/chunk-XNYTWFP6.js +241 -0
  21. package/dist/chunk-Z37AK4IA.js +546 -0
  22. package/dist/chunk-ZKH7AMP3.js +42 -0
  23. package/dist/dist-es-GXHCNXAC.js +489 -0
  24. package/dist/dist-es-J7SL4PXO.js +88 -0
  25. package/dist/dist-es-LL3VAI2X.js +70 -0
  26. package/dist/dist-es-QND3CYLI.js +380 -0
  27. package/dist/dist-es-STVZUSZG.js +21 -0
  28. package/dist/dist-es-TCFHB4OF.js +324 -0
  29. package/dist/dist-es-YFQTZTNE.js +167 -0
  30. package/dist/event-streams-74K5M656.js +244 -0
  31. package/dist/layers/sharp-arm.zip +0 -0
  32. package/dist/loadSso-O7PM54HL.js +592 -0
  33. package/dist/prebuild/icon/HASH +1 -0
  34. package/dist/prebuild/icon/bundle.zip +0 -0
  35. package/dist/prebuild/image/HASH +1 -0
  36. package/dist/prebuild/image/bundle.zip +0 -0
  37. package/dist/prebuild/on-error-log/HASH +1 -0
  38. package/dist/prebuild/on-error-log/bundle.zip +0 -0
  39. package/dist/prebuild/on-failure/HASH +1 -0
  40. package/dist/prebuild/on-failure/bundle.zip +0 -0
  41. package/dist/prebuild/rpc/HASH +1 -0
  42. package/dist/prebuild/rpc/bundle.zip +0 -0
  43. package/dist/prebuild.js +159 -0
  44. package/dist/signin-6SPMGGJN.js +704 -0
  45. package/dist/sso-oidc-5IIWGKXY.js +829 -0
  46. package/dist/stack.json +1 -0
  47. package/dist/stack.stage.json +1 -0
  48. package/dist/sts-6SQWH4BL.js +3788 -0
  49. package/dist/test-global-setup.js +22 -0
  50. package/package.json +120 -0
@@ -0,0 +1,46 @@
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
+ };
@@ -0,0 +1,60 @@
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
+ };