@humanode-hyperlane/cli 30.0.0 → 1045.2.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 (53) hide show
  1. package/README.md +1 -1
  2. package/bundle/154.index.js +462 -0
  3. package/bundle/230.index.js +572 -0
  4. package/bundle/25.index.js +9569 -0
  5. package/bundle/{214.index.js → 308.index.js} +192 -88
  6. package/bundle/367.index.js +4 -0
  7. package/bundle/461.index.js +49 -0
  8. package/bundle/505.index.js +126369 -0
  9. package/bundle/529.index.js +3603 -0
  10. package/bundle/576.index.js +36 -0
  11. package/bundle/610.index.js +86 -0
  12. package/bundle/628.index.js +152 -0
  13. package/bundle/633.index.js +86 -0
  14. package/bundle/697.index.js +410 -0
  15. package/bundle/{30fb121a258f7502fa97.js → 7183ea1c1bf0a5da980d.js} +1 -1
  16. package/bundle/748.index.js +674 -0
  17. package/bundle/78.index.js +372 -0
  18. package/bundle/787.index.js +175 -0
  19. package/bundle/841.index.js +2093 -0
  20. package/bundle/{172.index.js → 848.index.js} +779 -915
  21. package/bundle/868.index.js +460 -0
  22. package/bundle/902.index.js +173 -0
  23. package/bundle/956.index.js +9901 -0
  24. package/bundle/aleo_wasm.wasm +0 -0
  25. package/bundle/aleo_wasm1.wasm +0 -0
  26. package/bundle/build/Release/bigint_buffer.node +0 -0
  27. package/bundle/index.js +2 -2
  28. package/bundle/worker2.js +9123 -3469
  29. package/bundle/worker3.js +9109 -3455
  30. package/examples/layerzero/layerzero-warp-route.yaml +91 -0
  31. package/examples/sealevel/core-config-composite-ism.yaml +21 -0
  32. package/examples/sealevel/igp-hook-config.yaml +13 -0
  33. package/examples/sealevel/warp-config-routing-message-id-multisig-ism.yaml +21 -0
  34. package/examples/warp-base.yaml +24 -0
  35. package/examples/warp-config-predicate-mainnet.yaml +14 -0
  36. package/examples/warp-deployed-predicate-mainnet.yaml +19 -0
  37. package/examples/warp-ethereum.yaml +19 -0
  38. package/examples/wormhole/wormhole-warp-route.yaml +46 -0
  39. package/package.json +35 -28
  40. package/bundle/100.index.js +0 -1453
  41. package/bundle/12.index.js +0 -91
  42. package/bundle/213.index.js +0 -901
  43. package/bundle/306.index.js +0 -1037
  44. package/bundle/467.index.js +0 -222
  45. package/bundle/485.index.js +0 -85430
  46. package/bundle/515.index.js +0 -5191
  47. package/bundle/544.index.js +0 -792
  48. package/bundle/617.index.js +0 -1612
  49. package/bundle/660.index.js +0 -223
  50. package/bundle/688.index.js +0 -232
  51. package/bundle/756.index.js +0 -8595
  52. package/bundle/824.index.js +0 -385
  53. package/bundle/95.index.js +0 -264
@@ -1,91 +0,0 @@
1
- export const id = 12;
2
- export const ids = [12];
3
- export const modules = {
4
-
5
- /***/ 15012:
6
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
7
-
8
-
9
-
10
- var sharedIniFileLoader = __webpack_require__(91271);
11
- var propertyProvider = __webpack_require__(7894);
12
- var child_process = __webpack_require__(35317);
13
- var util = __webpack_require__(39023);
14
- var client = __webpack_require__(55134);
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 = util.promisify(sharedIniFileLoader.externalDataInterceptor?.getTokenRecord?.().exec ?? 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 propertyProvider.CredentialsProviderError(error.message, { logger });
65
- }
66
- }
67
- else {
68
- throw new propertyProvider.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
69
- }
70
- }
71
- else {
72
- throw new propertyProvider.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 sharedIniFileLoader.parseKnownFiles(init);
81
- return resolveProcessCredentials(sharedIniFileLoader.getProfileName({
82
- profile: init.profile ?? callerClientConfig?.profile,
83
- }), profiles, init.logger);
84
- };
85
-
86
- exports.fromProcess = fromProcess;
87
-
88
-
89
- /***/ })
90
-
91
- };