Skip to content

Commit

Permalink
Merge pull request #15 from niftykit-inc/deps-upgrade
Browse files Browse the repository at this point in the history
Updated old walletlink dependency
  • Loading branch information
jcurbelo authored May 12, 2022
2 parents 3321c3e + c28b139 commit 1d7b8c8
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 46 deletions.
128 changes: 88 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@
"generate": "stencil generate"
},
"dependencies": {
"@coinbase/wallet-sdk": "^3.0.12",
"@material/button": "^13.0.0",
"@material/circular-progress": "^13.0.0",
"@material/ripple": "^13.0.0",
"@material/select": "^13.0.0",
"@stencil/core": "^2.13.0",
"@walletconnect/web3-provider": "^1.7.1",
"dropkit.js": "^0.0.15",
"ethers": "^5.5.4",
"walletlink": "^2.4.7"
"ethers": "^5.5.4"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.1",
Expand Down
4 changes: 2 additions & 2 deletions src/components/nk-dropkit/nk-dropkit.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, Event, EventEmitter, Prop, State, Host, h, Method } from '@stencil/core';
import { Env } from '@stencil/core';
import Dropkit from 'dropkit.js';
import WalletLink from 'walletlink';
import CoinbaseWalletSDK from '@coinbase/wallet-sdk';
import WalletConnectProvider from '@walletconnect/web3-provider';
import { DropCollection } from '../../types/drop-collection.interface';
import { Msg } from '../../types/message.type';
Expand Down Expand Up @@ -193,7 +193,7 @@ export class NkDropkit {
if (infuraId && this.multiple) {
providers = {
walletlink: {
package: WalletLink,
package: CoinbaseWalletSDK,
options: {
appName: 'Dropkit',
infuraId,
Expand Down
4 changes: 2 additions & 2 deletions stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export const config: Config = {
before: [
replace({
'process.env.NODE_DEBUG': null,
'process.env.WALLETLINK_URL': null,
'process.env.WALLETLINK_VERSION': null,
'process.env.LINK_API_URL': null,
'process.env.SDK_VERSION': null,
}),
rollupCommonjs({
transformMixedEsModules: true,
Expand Down

0 comments on commit 1d7b8c8

Please sign in to comment.