@hyperlane-xyz/cli 3.9.0 → 3.10.1-beta0
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/README.md +5 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +13 -1
- package/dist/cli.js.map +1 -1
- package/dist/env.d.ts +2 -0
- package/dist/env.d.ts.map +1 -0
- package/dist/env.js +14 -0
- package/dist/env.js.map +1 -0
- package/dist/src/commands/chains.js +22 -31
- package/dist/src/commands/chains.js.map +1 -1
- package/dist/src/commands/config.js +1 -1
- package/dist/src/commands/config.js.map +1 -1
- package/dist/src/commands/deploy.d.ts +6 -0
- package/dist/src/commands/deploy.d.ts.map +1 -1
- package/dist/src/commands/deploy.js +67 -55
- package/dist/src/commands/deploy.js.map +1 -1
- package/dist/src/commands/hook.d.ts +7 -0
- package/dist/src/commands/hook.d.ts.map +1 -0
- package/dist/src/commands/hook.js +42 -0
- package/dist/src/commands/hook.js.map +1 -0
- package/dist/src/commands/ism.d.ts +7 -0
- package/dist/src/commands/ism.d.ts.map +1 -0
- package/dist/src/commands/ism.js +44 -0
- package/dist/src/commands/ism.js.map +1 -0
- package/dist/src/commands/options.d.ts +39 -2
- package/dist/src/commands/options.d.ts.map +1 -1
- package/dist/src/commands/options.js +56 -2
- package/dist/src/commands/options.js.map +1 -1
- package/dist/src/commands/send.d.ts +8 -1
- package/dist/src/commands/send.d.ts.map +1 -1
- package/dist/src/commands/send.js +15 -5
- package/dist/src/commands/send.js.map +1 -1
- package/dist/src/commands/status.d.ts.map +1 -1
- package/dist/src/commands/status.js +8 -7
- package/dist/src/commands/status.js.map +1 -1
- package/dist/src/config/artifacts.d.ts +6 -1
- package/dist/src/config/artifacts.d.ts.map +1 -1
- package/dist/src/config/artifacts.js +8 -2
- package/dist/src/config/artifacts.js.map +1 -1
- package/dist/src/config/chain.js +1 -1
- package/dist/src/config/chain.js.map +1 -1
- package/dist/src/config/hooks.js +1 -1
- package/dist/src/config/hooks.js.map +1 -1
- package/dist/src/config/ism.d.ts +18 -0
- package/dist/src/config/ism.d.ts.map +1 -1
- package/dist/src/config/ism.js +23 -8
- package/dist/src/config/ism.js.map +1 -1
- package/dist/src/config/multisig.js +1 -1
- package/dist/src/config/multisig.js.map +1 -1
- package/dist/src/config/warp.d.ts +30 -180
- package/dist/src/config/warp.d.ts.map +1 -1
- package/dist/src/config/warp.js +20 -57
- package/dist/src/config/warp.js.map +1 -1
- package/dist/src/context.d.ts +22 -5
- package/dist/src/context.d.ts.map +1 -1
- package/dist/src/context.js +57 -18
- package/dist/src/context.js.map +1 -1
- package/dist/src/deploy/agent.js +1 -1
- package/dist/src/deploy/agent.js.map +1 -1
- package/dist/src/deploy/core.d.ts +6 -2
- package/dist/src/deploy/core.d.ts.map +1 -1
- package/dist/src/deploy/core.js +38 -17
- package/dist/src/deploy/core.js.map +1 -1
- package/dist/src/deploy/dry-run.d.ts +20 -0
- package/dist/src/deploy/dry-run.d.ts.map +1 -0
- package/dist/src/deploy/dry-run.js +45 -0
- package/dist/src/deploy/dry-run.js.map +1 -0
- package/dist/src/deploy/utils.d.ts +6 -1
- package/dist/src/deploy/utils.d.ts.map +1 -1
- package/dist/src/deploy/utils.js +40 -6
- package/dist/src/deploy/utils.js.map +1 -1
- package/dist/src/deploy/warp.d.ts +3 -2
- package/dist/src/deploy/warp.d.ts.map +1 -1
- package/dist/src/deploy/warp.js +97 -92
- package/dist/src/deploy/warp.js.map +1 -1
- package/dist/src/hook/read.d.ts +14 -0
- package/dist/src/hook/read.d.ts.map +1 -0
- package/dist/src/hook/read.js +29 -0
- package/dist/src/hook/read.js.map +1 -0
- package/dist/src/ism/read.d.ts +14 -0
- package/dist/src/ism/read.d.ts.map +1 -0
- package/dist/src/ism/read.js +29 -0
- package/dist/src/ism/read.js.map +1 -0
- package/dist/{logger.d.ts → src/logger.d.ts} +7 -5
- package/dist/src/logger.d.ts.map +1 -0
- package/dist/src/logger.js +32 -0
- package/dist/src/logger.js.map +1 -0
- package/dist/src/send/message.d.ts +3 -2
- package/dist/src/send/message.d.ts.map +1 -1
- package/dist/src/send/message.js +9 -3
- package/dist/src/send/message.js.map +1 -1
- package/dist/src/send/transfer.d.ts +3 -2
- package/dist/src/send/transfer.d.ts.map +1 -1
- package/dist/src/send/transfer.js +10 -4
- package/dist/src/send/transfer.js.map +1 -1
- package/dist/src/status/message.d.ts +4 -1
- package/dist/src/status/message.d.ts.map +1 -1
- package/dist/src/status/message.js +15 -4
- package/dist/src/status/message.js.map +1 -1
- package/dist/src/tests/deployTestErc20.js +4 -4
- package/dist/src/tests/deployTestErc20.js.map +1 -1
- package/dist/src/utils/chains.js +1 -1
- package/dist/src/utils/chains.js.map +1 -1
- package/dist/src/utils/env.d.ts +2 -0
- package/dist/src/utils/env.d.ts.map +1 -1
- package/dist/src/utils/env.js +2 -0
- package/dist/src/utils/env.js.map +1 -1
- package/dist/src/utils/files.d.ts +12 -4
- package/dist/src/utils/files.d.ts.map +1 -1
- package/dist/src/utils/files.js +36 -12
- package/dist/src/utils/files.js.map +1 -1
- package/dist/src/utils/fork.d.ts +37 -0
- package/dist/src/utils/fork.d.ts.map +1 -0
- package/dist/src/utils/fork.js +91 -0
- package/dist/src/utils/fork.js.map +1 -0
- package/dist/src/utils/keys.d.ts +16 -2
- package/dist/src/utils/keys.d.ts.map +1 -1
- package/dist/src/utils/keys.js +67 -6
- package/dist/src/utils/keys.js.map +1 -1
- package/dist/src/utils/version-check.js +1 -1
- package/dist/src/utils/version-check.js.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.d.ts.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/examples/dry-run/anvil-chains.yaml +17 -0
- package/examples/dry-run/ism.yaml +8 -0
- package/examples/dry-run/warp-route-deployment.yaml +4 -0
- package/examples/fork/warp-route-deployment.yaml +17 -9
- package/examples/warp-route-deployment.yaml +17 -10
- package/package.json +11 -9
- package/dist/logger.d.ts.map +0 -1
- package/dist/logger.js +0 -46
- package/dist/logger.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../src/utils/keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../src/utils/keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAa,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAW,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIzD,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,gBAAgB,GAAG,aAAa,CAAC;AACvC,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAExC;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAA4B,EACzD,SAAS,EACT,gBAAgB,GACd;IACF,IAAI,CAAC,SAAS;QAAE,OAAO,SAAS,CAAC;IAEjC,MAAM,GAAG,GAAG,MAAM,WAAW,CAAC,gBAAgB,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;IAE7E,OAAO,kBAAkB,CAAC,GAAG,CAAC,CAAC;AACjC,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAA4B,EACrE,SAAS,EACT,gBAAgB,GACd;IACF,IAAI,CAAC,SAAS;QAAE,OAAO,SAAS,CAAC;IAEjC,MAAM,GAAG,GAAG,MAAM,WAAW,CAC3B,qBAAqB,EACrB,SAAS,EACT,gBAAgB,CACjB,CAAC;IAEF,OAAO,MAAM,2BAA2B,CAAC,GAAG,CAAC,CAAC;AAChD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,MAAq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e,EACf,SAAoB,EACpB,gBAAqC;IAErC,IAAI,SAAS,CAAC,GAAG;QAAE,OAAO,SAAS,CAAC,GAAG,CAAC;SACnC,IAAI,gBAAgB;QAAE,MAAM,IAAI,KAAK,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;;QAEnE,OAAO,MAAM,KAAK,CAAC;YACjB,OAAO,EACL,SAAS,CAAC,aAAa;gBACvB,gBAAgB,OAAO,2CAA2C;SACrE,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import latestVersion from 'latest-version';
|
|
2
|
-
import { log } from '
|
|
2
|
+
import { log } from '../logger.js';
|
|
3
3
|
import { VERSION } from '../version.js';
|
|
4
4
|
export async function checkVersion() {
|
|
5
5
|
const currentVersion = await latestVersion('@hyperlane-xyz/cli');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-check.js","sourceRoot":"","sources":["../../../src/utils/version-check.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"version-check.js","sourceRoot":"","sources":["../../../src/utils/version-check.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,CAAC,KAAK,UAAU,YAAY;IAChC,MAAM,cAAc,GAAG,MAAM,aAAa,CAAC,oBAAoB,CAAC,CAAC;IACjE,IAAI,OAAO,GAAG,cAAc,EAAE,CAAC;QAC7B,GAAG,CAAC,qBAAqB,OAAO,qBAAqB,cAAc,EAAE,CAAC,CAAC;IACzE,CAAC;AACH,CAAC"}
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.10.1-beta0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,iBAAiB,CAAC"}
|
package/dist/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.10.1-beta0';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/dist/src/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
anvil:
|
|
2
|
+
chainId: 31337
|
|
3
|
+
domainId: 31337
|
|
4
|
+
name: anvil
|
|
5
|
+
protocol: ethereum
|
|
6
|
+
rpcUrls:
|
|
7
|
+
- http: http://127.0.0.1:8545
|
|
8
|
+
nativeToken:
|
|
9
|
+
name: Ether
|
|
10
|
+
symbol: ETH
|
|
11
|
+
decimals: 18
|
|
12
|
+
alfajores:
|
|
13
|
+
rpcUrls:
|
|
14
|
+
- http: https://alfajores-forno.celo-testnet.org
|
|
15
|
+
blocks:
|
|
16
|
+
confirmations: 1
|
|
17
|
+
estimateBlockTime: 1
|
|
@@ -10,17 +10,25 @@
|
|
|
10
10
|
# fastCollateral
|
|
11
11
|
# fastSynthetic
|
|
12
12
|
---
|
|
13
|
-
|
|
14
|
-
chainName: anvil
|
|
13
|
+
anvil:
|
|
15
14
|
type: native
|
|
16
|
-
#
|
|
15
|
+
# token: "0x123" # Collateral/vault address. Required for collateral types
|
|
16
|
+
# owner: "0x123" # Optional owner address for synthetic token
|
|
17
|
+
# mailbox: "0x123" # mailbox address route
|
|
18
|
+
# interchainGasPaymaster: "0x123" # Optional interchainGasPaymaster address
|
|
17
19
|
# isNft: true # If the token is an NFT (ERC721), set to true
|
|
18
|
-
#
|
|
19
|
-
#
|
|
20
|
-
#
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
# You can optionally set the token metadata
|
|
21
|
+
# name: "MyCollateralToken"
|
|
22
|
+
# symbol: "MCT"
|
|
23
|
+
# totalSupply: 10000000
|
|
24
|
+
|
|
25
|
+
ethereum:
|
|
26
|
+
type: synthetic
|
|
27
|
+
# token: "0x123" # Collateral/vault address. Required for collateral types
|
|
28
|
+
# owner: "0x123" # Optional owner address for synthetic token
|
|
29
|
+
# mailbox: "0x123" # mailbox address route
|
|
30
|
+
# interchainGasPaymaster: "0x123" # Optional interchainGasPaymaster address
|
|
31
|
+
# You can optionally set the token metadata
|
|
24
32
|
# name: "MySyntheticToken"
|
|
25
33
|
# symbol: "MST"
|
|
26
34
|
# totalSupply: 10000000
|
|
@@ -4,24 +4,31 @@
|
|
|
4
4
|
# Token Types:
|
|
5
5
|
# native
|
|
6
6
|
# collateral
|
|
7
|
-
# collateralVault
|
|
8
7
|
# synthetic
|
|
9
8
|
# collateralUri
|
|
10
9
|
# syntheticUri
|
|
11
10
|
# fastCollateral
|
|
12
11
|
# fastSynthetic
|
|
13
12
|
---
|
|
14
|
-
|
|
15
|
-
chainName: anvil1
|
|
13
|
+
anvil1:
|
|
16
14
|
type: native
|
|
17
|
-
#
|
|
15
|
+
# token: "0x123" # Collateral/vault address. Required for collateral types
|
|
16
|
+
# owner: "0x123" # Optional owner address for synthetic token
|
|
17
|
+
# mailbox: "0x123" # mailbox address route
|
|
18
|
+
# interchainGasPaymaster: "0x123" # Optional interchainGasPaymaster address
|
|
18
19
|
# isNft: true # If the token is an NFT (ERC721), set to true
|
|
19
|
-
#
|
|
20
|
-
#
|
|
21
|
-
#
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
# You can optionally set the token metadata
|
|
21
|
+
# name: "MyCollateralToken"
|
|
22
|
+
# symbol: "MCT"
|
|
23
|
+
# totalSupply: 10000000
|
|
24
|
+
|
|
25
|
+
anvil2:
|
|
26
|
+
type: synthetic
|
|
27
|
+
# token: "0x123" # Collateral/vault address. Required for collateral types
|
|
28
|
+
# owner: "0x123" # Optional owner address for synthetic token
|
|
29
|
+
# mailbox: "0x123" # mailbox address route
|
|
30
|
+
# interchainGasPaymaster: "0x123" # Optional interchainGasPaymaster address
|
|
31
|
+
# You can optionally set the token metadata
|
|
25
32
|
# name: "MySyntheticToken"
|
|
26
33
|
# symbol: "MST"
|
|
27
34
|
# totalSupply: 10000000
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperlane-xyz/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.1-beta0",
|
|
4
4
|
"description": "A command-line utility for common Hyperlane operations",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@hyperlane-xyz/sdk": "3.
|
|
7
|
-
"@hyperlane-xyz/utils": "3.
|
|
6
|
+
"@hyperlane-xyz/sdk": "3.10.0",
|
|
7
|
+
"@hyperlane-xyz/utils": "3.10.0",
|
|
8
8
|
"@inquirer/prompts": "^3.0.0",
|
|
9
9
|
"bignumber.js": "^9.1.1",
|
|
10
10
|
"chalk": "^5.3.0",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"@types/mocha": "^10.0.1",
|
|
21
21
|
"@types/node": "^18.14.5",
|
|
22
22
|
"@types/yargs": "^17.0.24",
|
|
23
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
24
|
-
"@typescript-eslint/parser": "^
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "^7.4.0",
|
|
24
|
+
"@typescript-eslint/parser": "^7.4.0",
|
|
25
25
|
"chai": "^4.3.6",
|
|
26
|
-
"eslint": "^8.
|
|
27
|
-
"eslint-config-prettier": "^
|
|
26
|
+
"eslint": "^8.57.0",
|
|
27
|
+
"eslint-config-prettier": "^9.1.0",
|
|
28
28
|
"mocha": "^10.2.0",
|
|
29
29
|
"prettier": "^2.8.8",
|
|
30
30
|
"typescript": "^5.1.6"
|
|
@@ -48,6 +48,9 @@
|
|
|
48
48
|
"main": "./dist/index.js",
|
|
49
49
|
"types": "./dist/index.d.ts",
|
|
50
50
|
"type": "module",
|
|
51
|
+
"engines": {
|
|
52
|
+
"node": ">=16"
|
|
53
|
+
},
|
|
51
54
|
"bin": {
|
|
52
55
|
"hyperlane": "./dist/cli.js"
|
|
53
56
|
},
|
|
@@ -63,6 +66,5 @@
|
|
|
63
66
|
"Permissionless",
|
|
64
67
|
"Deployment",
|
|
65
68
|
"Typescript"
|
|
66
|
-
]
|
|
67
|
-
"packageManager": "yarn@4.0.1"
|
|
69
|
+
]
|
|
68
70
|
}
|
package/dist/logger.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../logger.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,eAAO,MAAM,MAAM,gBAAsB,CAAC;AAC1C,eAAO,MAAM,KAAK,gBAAiC,CAAC;AAEpD,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,UAAQ,kBAE9D;AAoBD,eAAO,MAAM,OAAO,YAAa,GAAG,SAAqC,CAAC;AAC1E,eAAO,MAAM,OAAO,YAAa,GAAG,SACO,CAAC;AAC5C,eAAO,MAAM,OAAO,YAAa,GAAG,SAAqC,CAAC;AAC1E,eAAO,MAAM,QAAQ,YAAa,GAAG,SAAsC,CAAC;AAC5E,eAAO,MAAM,MAAM,YAAa,GAAG,SAAoC,CAAC;AACxE,eAAO,MAAM,oBAAoB,YAAa,GAAG,SACD,CAAC;AACjD,eAAO,MAAM,MAAM,YAAa,GAAG,SAAyC,CAAC;AAC7E,eAAO,MAAM,QAAQ,YAAa,GAAG,SAAsC,CAAC;AAC5E,eAAO,MAAM,GAAG,YAAa,GAAG,SAAyB,CAAC;AAC1D,eAAO,MAAM,QAAQ,YAAa,GAAG,SAA2B,CAAC"}
|
package/dist/logger.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// This file isn't in the src dir so it it's imported before others after import sort
|
|
2
|
-
// See bigint hack below and https://github.com/trivago/prettier-plugin-sort-imports/issues/112
|
|
3
|
-
import chalk from 'chalk';
|
|
4
|
-
import debug from 'debug';
|
|
5
|
-
// Workaround for bug in bigint-buffer which solana-web3.js depends on
|
|
6
|
-
// https://github.com/no2chem/bigint-buffer/issues/31#issuecomment-1752134062
|
|
7
|
-
const defaultWarn = console.warn;
|
|
8
|
-
console.warn = (...args) => {
|
|
9
|
-
if (args &&
|
|
10
|
-
typeof args[0] === 'string' &&
|
|
11
|
-
args[0]?.includes('bigint: Failed to load bindings'))
|
|
12
|
-
return;
|
|
13
|
-
defaultWarn(...args);
|
|
14
|
-
};
|
|
15
|
-
const HYPERLANE_NS = 'hyperlane';
|
|
16
|
-
// Default root logger for use in utils/scripts
|
|
17
|
-
export const logger = debug(HYPERLANE_NS);
|
|
18
|
-
export const error = debug(`${HYPERLANE_NS}:ERROR`);
|
|
19
|
-
export function createLogger(namespace, isError = false) {
|
|
20
|
-
return isError ? error.extend(namespace) : logger.extend(namespace);
|
|
21
|
-
}
|
|
22
|
-
// Ensure hyperlane logging is enabled by forcing inclusion of hyperlane namespace
|
|
23
|
-
const activeNamespaces = debug.disable();
|
|
24
|
-
const otherNamespaces = activeNamespaces
|
|
25
|
-
.split(',')
|
|
26
|
-
.filter((ns) => ns.includes(HYPERLANE_NS));
|
|
27
|
-
const hypNamespaces = `${HYPERLANE_NS},${HYPERLANE_NS}:*`;
|
|
28
|
-
debug.enable(otherNamespaces ? `${otherNamespaces},${hypNamespaces}` : `${hypNamespaces}`);
|
|
29
|
-
// Change Debug's output format to remove prefixes + postfixes
|
|
30
|
-
function formatArgs(args) {
|
|
31
|
-
args.push(debug.humanize(this.diff));
|
|
32
|
-
args.pop();
|
|
33
|
-
}
|
|
34
|
-
debug.formatArgs = formatArgs;
|
|
35
|
-
// Colored logs directly to console
|
|
36
|
-
export const logBlue = (...args) => console.log(chalk.blue(...args));
|
|
37
|
-
export const logPink = (...args) => console.log(chalk.magentaBright(...args));
|
|
38
|
-
export const logGray = (...args) => console.log(chalk.gray(...args));
|
|
39
|
-
export const logGreen = (...args) => console.log(chalk.green(...args));
|
|
40
|
-
export const logRed = (...args) => console.log(chalk.red(...args));
|
|
41
|
-
export const logBoldUnderlinedRed = (...args) => console.log(chalk.red.bold.underline(...args));
|
|
42
|
-
export const logTip = (...args) => console.log(chalk.bgYellow(...args));
|
|
43
|
-
export const errorRed = (...args) => console.error(chalk.red(...args));
|
|
44
|
-
export const log = (...args) => console.log(...args);
|
|
45
|
-
export const logTable = (...args) => console.table(...args);
|
|
46
|
-
//# sourceMappingURL=logger.js.map
|
package/dist/logger.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../logger.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,+FAA+F;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,sEAAsE;AACtE,6EAA6E;AAC7E,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;AACjC,OAAO,CAAC,IAAI,GAAG,CAAC,GAAG,IAAS,EAAE,EAAE;IAC9B,IACE,IAAI;QACJ,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;QAC3B,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,i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