Skip to content

Commit 64e4832

Browse files
committed
Fix imports and publish new package
1 parent 61a9152 commit 64e4832

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

packages/injected/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/injected-wallets",
3-
"version": "2.0.0-alpha.4",
3+
"version": "2.0.0-alpha.5",
44
"description": "Injected wallets module for web3-onboard",
55
"module": "dist/index.js",
66
"browser": "dist/index.js",

packages/injected/src/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ProviderRpcErrorCode, WalletModule } from '@web3-onboard/common'
2-
import { ProviderLabel } from './types'
2+
import { ProviderLabel } from './types.js'
33

44
export class ProviderRpcError extends Error {
55
message: string

packages/injected/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import uniqBy from 'lodash.uniqby'
22

33
import type { WalletInit } from '@web3-onboard/common'
4-
import type { InjectedWalletOptions, CustomWindow } from './types'
5-
import { ProviderLabel } from './types'
4+
import type { InjectedWalletOptions, CustomWindow } from './types.js'
5+
import { ProviderLabel } from './types.js'
66

77
import standardWallets from './wallets.js'
88
import { remove } from './helpers.js'
99
import { validateWalletOptions } from './validation.js'
1010

1111
declare const window: CustomWindow
1212

13-
export { ProviderIdentityFlag, ProviderLabel } from './types'
13+
export { ProviderIdentityFlag, ProviderLabel } from './types.js'
1414

1515
function injected(options?: InjectedWalletOptions): WalletInit {
1616
if (typeof window === 'undefined') return () => null

packages/injected/src/validation.ts

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

33
import Joi from 'joi'
44

packages/injected/src/wallets.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import type { EIP1193Provider, ChainListener } from '@web3-onboard/common'
22
import { createEIP1193Provider } from '@web3-onboard/common'
3-
import type { InjectedWalletModule, CustomWindow } from './types'
4-
import { InjectedNameSpace, ProviderIdentityFlag, ProviderLabel } from './types'
3+
import type { InjectedWalletModule, CustomWindow } from './types.js'
4+
import {
5+
InjectedNameSpace,
6+
ProviderIdentityFlag,
7+
ProviderLabel
8+
} from './types.js'
59

610
declare const window: CustomWindow
711

0 commit comments

Comments
 (0)