-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fully qualified imports for esm compatibility
ESM requires fully qualified imports, but tsc can't do that when transpiling. Add eslint rules to enforce esm-compliant source and fix existing code. This makes it possible to use cardano-js-sdk in node.js with ESM. Previously it was possible with --experimental-specifier-resolution=node, but this option has now been removed from node.js
- Loading branch information
1 parent
9a7856a
commit 0b8d7f5
Showing
1,285 changed files
with
15,657 additions
and
5,578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
packages/cardano-services-client/src/AssetInfoProvider/assetInfoHttpProvider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/cardano-services-client/src/AssetInfoProvider/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './assetInfoHttpProvider'; | ||
export * from './assetInfoHttpProvider.js'; |
8 changes: 5 additions & 3 deletions
8
packages/cardano-services-client/src/ChainHistoryProvider/chainHistoryHttpProvider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/cardano-services-client/src/ChainHistoryProvider/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './chainHistoryHttpProvider'; | ||
export * from './chainHistoryHttpProvider.js'; |
8 changes: 5 additions & 3 deletions
8
packages/cardano-services-client/src/HandleProvider/handleHttpProvider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './handleHttpProvider'; | ||
export * from './handleHttpProvider.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/cardano-services-client/src/NetworkInfoProvider/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './networkInfoHttpProvider'; | ||
export * from './networkInfoHttpProvider.js'; |
7 changes: 4 additions & 3 deletions
7
packages/cardano-services-client/src/NetworkInfoProvider/networkInfoHttpProvider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './rewardsHttpProvider'; | ||
export * from './rewardsHttpProvider.js'; |
10 changes: 6 additions & 4 deletions
10
packages/cardano-services-client/src/RewardsProvider/rewardsHttpProvider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/cardano-services-client/src/StakePoolProvider/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './stakePoolHttpProvider'; | ||
export * from './stakePoolHttpProvider.js'; |
7 changes: 4 additions & 3 deletions
7
packages/cardano-services-client/src/StakePoolProvider/stakePoolHttpProvider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
packages/cardano-services-client/src/TxSubmitProvider/TxSubmitApiProvider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/cardano-services-client/src/TxSubmitProvider/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './TxSubmitApiProvider'; | ||
export * from './txSubmitHttpProvider'; | ||
export * from './TxSubmitApiProvider.js'; | ||
export * from './txSubmitHttpProvider.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './utxoHttpProvider'; | ||
export * from './utxoHttpProvider.js'; |
10 changes: 6 additions & 4 deletions
10
packages/cardano-services-client/src/UtxoProvider/utxoHttpProvider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
export * from './AssetInfoProvider'; | ||
export * from './HttpProvider'; | ||
export * from './TxSubmitProvider'; | ||
export * from './StakePoolProvider'; | ||
export * from './UtxoProvider'; | ||
export * from './ChainHistoryProvider'; | ||
export * from './NetworkInfoProvider'; | ||
export * from './RewardsProvider'; | ||
export * from './HandleProvider'; | ||
export * from './version'; | ||
export * from './AssetInfoProvider/index.js'; | ||
export * from './HttpProvider.js'; | ||
export * from './TxSubmitProvider/index.js'; | ||
export * from './StakePoolProvider/index.js'; | ||
export * from './UtxoProvider/index.js'; | ||
export * from './ChainHistoryProvider/index.js'; | ||
export * from './NetworkInfoProvider/index.js'; | ||
export * from './RewardsProvider/index.js'; | ||
export * from './HandleProvider/index.js'; | ||
export * from './version.js'; |
4 changes: 2 additions & 2 deletions
4
packages/cardano-services-client/test/AssetInfoProvider/assetInfoHttpProvider.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/cardano-services-client/test/ChainHistoryProvider/chainHistoryProvider.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/cardano-services-client/test/HandleProvider/handleHttpProvider.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/cardano-services-client/test/NetworkInfo/networkInfoHttpProvider.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
packages/cardano-services-client/test/RewardProvider/rewardsHttpProvider.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/cardano-services-client/test/StakePoolProvider/stakePoolHttpProvider.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/cardano-services-client/test/TxSubmitProvider/cardanoTxSubmitErrorMapper.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/cardano-services-client/test/Utxo/utxoHttpProvider.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.