Skip to content

Commit 748f7d8

Browse files
authored
Fix: Add extension to relative imports (#1227)
* Add js extension to relative imports * Increment package versions
1 parent 43940b8 commit 748f7d8

File tree

100 files changed

+316
-311
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+316
-311
lines changed

packages/coinbase/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/coinbase",
3-
"version": "2.1.0",
3+
"version": "2.1.1-alpha.1",
44
"description": "Coinbase SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"keywords": [
66
"Ethereum",
@@ -59,6 +59,6 @@
5959
},
6060
"dependencies": {
6161
"@coinbase/wallet-sdk": "^3.0.5",
62-
"@web3-onboard/common": "^2.2.0"
62+
"@web3-onboard/common": "^2.2.1-alpha.1"
6363
}
6464
}

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/common",
3-
"version": "2.2.0",
3+
"version": "2.2.1-alpha.1",
44
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"keywords": [
66
"Ethereum",

packages/common/src/eip-1193.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type {
44
ChainId,
55
EIP1193Provider,
66
ProviderAccounts
7-
} from './types'
8-
import { ProviderRpcError } from './errors'
7+
} from './types.js'
8+
import { ProviderRpcError } from './errors.js'
99

1010
/**
1111
* Takes a provider instance along with events

packages/common/src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ProviderRpcErrorCode } from './types'
1+
import type { ProviderRpcErrorCode } from './types.js'
22

33
export class ProviderRpcError extends Error {
44
message: string

packages/common/src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
export { ProviderRpcError } from './errors'
2-
export { createEIP1193Provider } from './eip-1193'
3-
export { SofiaProLight, SofiaProRegular, SofiaProSemiBold } from './fonts'
4-
export { weiToEth } from './utils'
1+
export { ProviderRpcError } from './errors.js'
2+
export { createEIP1193Provider } from './eip-1193.js'
3+
export { SofiaProLight, SofiaProRegular, SofiaProSemiBold } from './fonts.js'
4+
export { weiToEth } from './utils.js'
55

6-
export * from './types'
7-
export * from './validation'
6+
export * from './types.js'
7+
export * from './validation.js'

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/core",
3-
"version": "2.8.0",
3+
"version": "2.8.1-alpha.1",
44
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"keywords": [
66
"Ethereum",
@@ -82,7 +82,7 @@
8282
"typescript": "^4.5.5"
8383
},
8484
"dependencies": {
85-
"@web3-onboard/common": "^2.2.0",
85+
"@web3-onboard/common": "^2.2.1-alpha.1",
8686
"bignumber.js": "^9.0.0",
8787
"bnc-sdk": "^4.4.1",
8888
"bowser": "^2.11.0",

packages/core/src/chain.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { firstValueFrom } from 'rxjs'
22
import { filter, map } from 'rxjs/operators'
33
import { ProviderRpcErrorCode } from '@web3-onboard/common'
4-
import { addNewChain, switchChain } from './provider'
5-
import { state } from './store'
6-
import { switchChainModal$ } from './streams'
7-
import { validateSetChainOptions } from './validation'
8-
import type { WalletState } from './types'
9-
import { toHexString } from './utils'
4+
import { addNewChain, switchChain } from './provider.js'
5+
import { state } from './store/index.js'
6+
import { switchChainModal$ } from './streams.js'
7+
import { validateSetChainOptions } from './validation.js'
8+
import type { WalletState } from './types.js'
9+
import { toHexString } from './utils.js'
1010

1111
async function setChain(options: {
1212
chainId: string | number

packages/core/src/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Configuration } from './types'
2-
import { getDevice } from './utils'
1+
import type { Configuration } from './types.js'
2+
import { getDevice } from './utils.js'
33

44
export let configuration: Configuration = {
55
svelteInstance: null,

packages/core/src/connect.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
import { firstValueFrom } from 'rxjs'
22
import { filter, withLatestFrom, pluck } from 'rxjs/operators'
3-
import { configuration } from './configuration'
4-
import { state } from './store'
5-
import { setWalletModules } from './store/actions'
6-
import { connectWallet$, wallets$ } from './streams'
7-
import type { ConnectOptions, ConnectOptionsString, WalletState } from './types'
8-
import { wait } from './utils'
9-
import { validateConnectOptions } from './validation'
3+
import { configuration } from './configuration.js'
4+
import { state } from './store/index.js'
5+
import { setWalletModules } from './store/actions.js'
6+
import { connectWallet$, wallets$ } from './streams.js'
7+
import type {
8+
ConnectOptions,
9+
ConnectOptionsString,
10+
WalletState
11+
} from './types.js'
12+
import { wait } from './utils.js'
13+
import { validateConnectOptions } from './validation.js'
1014

1115
async function connect(
1216
options?: ConnectOptions | ConnectOptionsString
@@ -25,8 +29,8 @@ async function connect(
2529
if (!chains.length)
2630
throw new Error(
2731
'At least one chain must be set before attempting to connect a wallet'
28-
)
29-
32+
)
33+
3034
const { autoSelect } = options || {
3135
autoSelect: { label: '', disableModals: false }
3236
}

packages/core/src/constants.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { configuration } from './configuration'
2-
import type { AppState } from './types'
1+
import { configuration } from './configuration.js'
2+
import type { AppState } from './types.js'
33

44
export const APP_INITIAL_STATE: AppState = {
55
wallets: [],
@@ -25,7 +25,7 @@ export const APP_INITIAL_STATE: AppState = {
2525
},
2626
notifications: [],
2727
locale: '',
28-
connect : {
28+
connect: {
2929
showSidebar: true
3030
}
3131
}

0 commit comments

Comments
 (0)