@fromeroc9/testform 1.0.12 → 1.0.13

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 (70) hide show
  1. package/dist/index.js +360 -649
  2. package/package.json +12 -6
  3. package/dist/action/index.js +0 -242
  4. package/dist/action.js +0 -60
  5. package/dist/adapters/github.js +0 -467
  6. package/dist/adapters/resources.js +0 -363
  7. package/dist/cli/136.index.js +0 -990
  8. package/dist/cli/360.index.js +0 -92
  9. package/dist/cli/443.index.js +0 -724
  10. package/dist/cli/449.index.js +0 -13
  11. package/dist/cli/566.index.js +0 -385
  12. package/dist/cli/605.index.js +0 -241
  13. package/dist/cli/762.index.js +0 -583
  14. package/dist/cli/869.index.js +0 -529
  15. package/dist/cli/956.index.js +0 -117
  16. package/dist/cli/998.index.js +0 -894
  17. package/dist/cli/index.js +0 -241
  18. package/dist/commands/apply.js +0 -390
  19. package/dist/commands/destroy.js +0 -85
  20. package/dist/commands/diff.js +0 -131
  21. package/dist/commands/fmt.js +0 -166
  22. package/dist/commands/force-unlock.js +0 -55
  23. package/dist/commands/generate.js +0 -143
  24. package/dist/commands/graph.js +0 -159
  25. package/dist/commands/import.js +0 -222
  26. package/dist/commands/init.js +0 -167
  27. package/dist/commands/login.js +0 -71
  28. package/dist/commands/logout.js +0 -20
  29. package/dist/commands/plan.js +0 -250
  30. package/dist/commands/refresh.js +0 -165
  31. package/dist/commands/report.js +0 -724
  32. package/dist/commands/show.js +0 -61
  33. package/dist/commands/state.js +0 -197
  34. package/dist/commands/taint.js +0 -49
  35. package/dist/commands/validate.js +0 -128
  36. package/dist/commands/workspace.js +0 -102
  37. package/dist/const.js +0 -105
  38. package/dist/core/backends/azurerm.js +0 -201
  39. package/dist/core/backends/backend.js +0 -2
  40. package/dist/core/backends/gcs.js +0 -200
  41. package/dist/core/backends/local.js +0 -162
  42. package/dist/core/backends/s3.js +0 -224
  43. package/dist/core/command-context.js +0 -59
  44. package/dist/core/config.js +0 -131
  45. package/dist/core/credentials.js +0 -53
  46. package/dist/core/parser.js +0 -62
  47. package/dist/core/parsers/base-parser.js +0 -215
  48. package/dist/core/parsers/testcase-parser.js +0 -115
  49. package/dist/core/parsers/testplan-parser.js +0 -41
  50. package/dist/core/parsers/testrun-parser.js +0 -43
  51. package/dist/core/policy.js +0 -341
  52. package/dist/core/prompt.js +0 -109
  53. package/dist/core/state.js +0 -185
  54. package/dist/core/utils.js +0 -94
  55. package/dist/core/variables.js +0 -108
  56. package/dist/core/workspace.js +0 -56
  57. package/dist/help.js +0 -797
  58. package/dist/logger.js +0 -134
  59. package/dist/notify.js +0 -36
  60. package/dist/types.js +0 -2
  61. /package/dist/{action/136.index.js → 136.index.js} +0 -0
  62. /package/dist/{action/360.index.js → 360.index.js} +0 -0
  63. /package/dist/{action/443.index.js → 443.index.js} +0 -0
  64. /package/dist/{action/449.index.js → 449.index.js} +0 -0
  65. /package/dist/{action/566.index.js → 566.index.js} +0 -0
  66. /package/dist/{action/605.index.js → 605.index.js} +0 -0
  67. /package/dist/{action/762.index.js → 762.index.js} +0 -0
  68. /package/dist/{action/869.index.js → 869.index.js} +0 -0
  69. /package/dist/{action/956.index.js → 956.index.js} +0 -0
  70. /package/dist/{action/998.index.js → 998.index.js} +0 -0
@@ -1,92 +0,0 @@
1
- "use strict";
2
- exports.id = 360;
3
- exports.ids = [360];
4
- exports.modules = {
5
-
6
- /***/ 75360:
7
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
8
-
9
-
10
-
11
- var config = __webpack_require__(47291);
12
- var node_child_process = __webpack_require__(31421);
13
- var node_util = __webpack_require__(57975);
14
- var client = __webpack_require__(5152);
15
-
16
- const getValidatedProcessCredentials = (profileName, data, profiles) => {
17
- if (data.Version !== 1) {
18
- throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
19
- }
20
- if (data.AccessKeyId === undefined || data.SecretAccessKey === undefined) {
21
- throw Error(`Profile ${profileName} credential_process returned invalid credentials.`);
22
- }
23
- if (data.Expiration) {
24
- const currentTime = new Date();
25
- const expireTime = new Date(data.Expiration);
26
- if (expireTime < currentTime) {
27
- throw Error(`Profile ${profileName} credential_process returned expired credentials.`);
28
- }
29
- }
30
- let accountId = data.AccountId;
31
- if (!accountId && profiles?.[profileName]?.aws_account_id) {
32
- accountId = profiles[profileName].aws_account_id;
33
- }
34
- const credentials = {
35
- accessKeyId: data.AccessKeyId,
36
- secretAccessKey: data.SecretAccessKey,
37
- ...(data.SessionToken && { sessionToken: data.SessionToken }),
38
- ...(data.Expiration && { expiration: new Date(data.Expiration) }),
39
- ...(data.CredentialScope && { credentialScope: data.CredentialScope }),
40
- ...(accountId && { accountId }),
41
- };
42
- client.setCredentialFeature(credentials, "CREDENTIALS_PROCESS", "w");
43
- return credentials;
44
- };
45
-
46
- const resolveProcessCredentials = async (profileName, profiles, logger) => {
47
- const profile = profiles[profileName];
48
- if (profiles[profileName]) {
49
- const credentialProcess = profile["credential_process"];
50
- if (credentialProcess !== undefined) {
51
- const execPromise = node_util.promisify(config.externalDataInterceptor?.getTokenRecord?.().exec ?? node_child_process.exec);
52
- try {
53
- const { stdout } = await execPromise(credentialProcess);
54
- let data;
55
- try {
56
- data = JSON.parse(stdout.trim());
57
- }
58
- catch {
59
- throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);
60
- }
61
- return getValidatedProcessCredentials(profileName, data, profiles);
62
- }
63
- catch (error) {
64
- throw new config.CredentialsProviderError(error.message, { logger });
65
- }
66
- }
67
- else {
68
- throw new config.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
69
- }
70
- }
71
- else {
72
- throw new config.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
73
- logger,
74
- });
75
- }
76
- };
77
-
78
- const fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
79
- init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
80
- const profiles = await config.parseKnownFiles(init);
81
- return resolveProcessCredentials(config.getProfileName({
82
- profile: init.profile ?? callerClientConfig?.profile,
83
- }), profiles, init.logger);
84
- };
85
-
86
- exports.fromProcess = fromProcess;
87
-
88
-
89
- /***/ })
90
-
91
- };
92
- ;