fix: exports (#3379)
* fix: cjs in cra * chore: wrap cjs for mjs * chore: export cjs and esm * chore: export chunks * fix: correctly export locales * chore: note exports compat * fix: use cjs for common deps * chore: bump to v0.0.20-beta * chore: rm outdated comment
This commit is contained in:
parent
db17dcbf2c
commit
59c6ab16dd
1
.gitignore
vendored
1
.gitignore
vendored
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
# builds
|
# builds
|
||||||
/build
|
/build
|
||||||
|
/cosmos-export
|
||||||
/dist
|
/dist
|
||||||
/dts
|
/dts
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
],
|
],
|
||||||
"webpack": {
|
"webpack": {
|
||||||
"configPath": "react-scripts/config/webpack.config",
|
"configPath": "react-scripts/config/webpack.config",
|
||||||
"overridePath": "cosmos.override.js"
|
"overridePath": "cosmos.override.cjs"
|
||||||
},
|
},
|
||||||
"port": 5001
|
"port": 5001
|
||||||
}
|
}
|
40
package.json
40
package.json
@ -1,24 +1,29 @@
|
|||||||
{
|
{
|
||||||
"name": "@uniswap/widgets",
|
"name": "@uniswap/widgets",
|
||||||
"version": "0.0.18-beta",
|
"version": "0.0.20-beta",
|
||||||
"description": "Uniswap Interface",
|
"description": "Uniswap Interface",
|
||||||
"homepage": ".",
|
"homepage": ".",
|
||||||
"files": [
|
"files": [
|
||||||
"lib",
|
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
|
"type": "module",
|
||||||
|
"types": "dist/index.d.ts",
|
||||||
|
"main": "dist/cjs/index.cjs",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./dist/widgets.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"import": "./dist/widgets.cjs",
|
"import": "./dist/index.js",
|
||||||
"require": "./dist/widgets.cjs"
|
"require": "./dist/cjs/index.cjs"
|
||||||
|
},
|
||||||
|
"./locales/*": {
|
||||||
|
"import": "./dist/locales/*.js",
|
||||||
|
"require": "./dist/cjs/locales/*.cjs"
|
||||||
},
|
},
|
||||||
"./fonts.css": {
|
"./fonts.css": {
|
||||||
"import": "./dist/fonts.css",
|
"import": "./dist/fonts.css",
|
||||||
"require": "./dist/fonts.css"
|
"require": "./dist/fonts.css"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"types": "./dist/widgets.d.ts",
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/plugin-transform-runtime": "^7.17.0",
|
"@babel/plugin-transform-runtime": "^7.17.0",
|
||||||
"@babel/preset-env": "^7.16.11",
|
"@babel/preset-env": "^7.16.11",
|
||||||
@ -30,6 +35,9 @@
|
|||||||
"@graphql-codegen/typescript-operations": "^1.18.2",
|
"@graphql-codegen/typescript-operations": "^1.18.2",
|
||||||
"@graphql-codegen/typescript-rtk-query": "^1.1.1",
|
"@graphql-codegen/typescript-rtk-query": "^1.1.1",
|
||||||
"@lingui/cli": "^3.9.0",
|
"@lingui/cli": "^3.9.0",
|
||||||
|
"@lingui/core": "^3.9.0",
|
||||||
|
"@lingui/macro": "^3.9.0",
|
||||||
|
"@lingui/react": "^3.9.0",
|
||||||
"@metamask/jazzicon": "^2.0.0",
|
"@metamask/jazzicon": "^2.0.0",
|
||||||
"@reach/dialog": "^0.10.3",
|
"@reach/dialog": "^0.10.3",
|
||||||
"@reach/portal": "^0.10.3",
|
"@reach/portal": "^0.10.3",
|
||||||
@ -80,8 +88,8 @@
|
|||||||
"@uniswap/v2-periphery": "^1.1.0-beta.0",
|
"@uniswap/v2-periphery": "^1.1.0-beta.0",
|
||||||
"@uniswap/v3-core": "1.0.0",
|
"@uniswap/v3-core": "1.0.0",
|
||||||
"@uniswap/v3-periphery": "^1.1.1",
|
"@uniswap/v3-periphery": "^1.1.1",
|
||||||
"@web3-react/metamask": "8.0.10-beta.0",
|
"@web3-react/metamask": "8.0.13-beta.0",
|
||||||
"@web3-react/walletconnect": "8.0.15-beta.0",
|
"@web3-react/walletconnect": "8.0.18-beta.0",
|
||||||
"array.prototype.flat": "^1.2.4",
|
"array.prototype.flat": "^1.2.4",
|
||||||
"array.prototype.flatmap": "^1.2.4",
|
"array.prototype.flatmap": "^1.2.4",
|
||||||
"babel-plugin-macros": "^3.1.0",
|
"babel-plugin-macros": "^3.1.0",
|
||||||
@ -123,6 +131,7 @@
|
|||||||
"rollup-plugin-copy": "^3.4.0",
|
"rollup-plugin-copy": "^3.4.0",
|
||||||
"rollup-plugin-delete": "^2.0.0",
|
"rollup-plugin-delete": "^2.0.0",
|
||||||
"rollup-plugin-dts": "^4.1.0",
|
"rollup-plugin-dts": "^4.1.0",
|
||||||
|
"rollup-plugin-multi-input": "^1.3.1",
|
||||||
"rollup-plugin-node-externals": "^3.1.2",
|
"rollup-plugin-node-externals": "^3.1.2",
|
||||||
"rollup-plugin-scss": "^3.0.0",
|
"rollup-plugin-scss": "^3.0.0",
|
||||||
"rollup-plugin-typescript2": "^0.31.1",
|
"rollup-plugin-typescript2": "^0.31.1",
|
||||||
@ -163,7 +172,7 @@
|
|||||||
"prepublishOnly": "yarn widgets:build",
|
"prepublishOnly": "yarn widgets:build",
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"test": "react-scripts test --env=./custom-test-env.js",
|
"test": "react-scripts test --env=./custom-test-env.cjs",
|
||||||
"test:e2e": "start-server-and-test 'serve build -l 3000' http://localhost:3000 'cypress run --record'",
|
"test:e2e": "start-server-and-test 'serve build -l 3000' http://localhost:3000 'cypress run --record'",
|
||||||
"widgets:start": "cosmos",
|
"widgets:start": "cosmos",
|
||||||
"widgets:build": "rollup --config --failAfterWarnings --configPlugin typescript2"
|
"widgets:build": "rollup --config --failAfterWarnings --configPlugin typescript2"
|
||||||
@ -200,9 +209,6 @@
|
|||||||
"@ethersproject/wallet": "^5.4.0",
|
"@ethersproject/wallet": "^5.4.0",
|
||||||
"@fontsource/ibm-plex-mono": "^4.5.1",
|
"@fontsource/ibm-plex-mono": "^4.5.1",
|
||||||
"@fontsource/inter": "^4.5.1",
|
"@fontsource/inter": "^4.5.1",
|
||||||
"@lingui/core": "^3.9.0",
|
|
||||||
"@lingui/macro": "^3.9.0",
|
|
||||||
"@lingui/react": "^3.9.0",
|
|
||||||
"@popperjs/core": "^2.4.4",
|
"@popperjs/core": "^2.4.4",
|
||||||
"@reduxjs/toolkit": "^1.6.1",
|
"@reduxjs/toolkit": "^1.6.1",
|
||||||
"@uniswap/redux-multicall": "^1.0.0",
|
"@uniswap/redux-multicall": "^1.0.0",
|
||||||
@ -212,11 +218,11 @@
|
|||||||
"@uniswap/token-lists": "^1.0.0-beta.27",
|
"@uniswap/token-lists": "^1.0.0-beta.27",
|
||||||
"@uniswap/v2-sdk": "^3.0.1",
|
"@uniswap/v2-sdk": "^3.0.1",
|
||||||
"@uniswap/v3-sdk": "^3.8.2",
|
"@uniswap/v3-sdk": "^3.8.2",
|
||||||
"@web3-react/core": "8.0.14-beta.0",
|
"@web3-react/core": "8.0.17-beta.0",
|
||||||
"@web3-react/eip1193": "8.0.9-beta.0",
|
"@web3-react/eip1193": "8.0.12-beta.0",
|
||||||
"@web3-react/empty": "8.0.7-beta.0",
|
"@web3-react/empty": "8.0.10-beta.0",
|
||||||
"@web3-react/types": "8.0.7-beta.0",
|
"@web3-react/types": "8.0.10-beta.0",
|
||||||
"@web3-react/url": "8.0.9-beta.0",
|
"@web3-react/url": "8.0.12-beta.0",
|
||||||
"ajv": "^6.12.3",
|
"ajv": "^6.12.3",
|
||||||
"cids": "^1.0.0",
|
"cids": "^1.0.0",
|
||||||
"immer": "^9.0.6",
|
"immer": "^9.0.6",
|
||||||
|
@ -17,6 +17,8 @@ import { RollupWarning } from 'rollup'
|
|||||||
import copy from 'rollup-plugin-copy'
|
import copy from 'rollup-plugin-copy'
|
||||||
import del from 'rollup-plugin-delete'
|
import del from 'rollup-plugin-delete'
|
||||||
import dts from 'rollup-plugin-dts'
|
import dts from 'rollup-plugin-dts'
|
||||||
|
// @ts-ignore // missing types
|
||||||
|
import multi from 'rollup-plugin-multi-input'
|
||||||
import externals from 'rollup-plugin-node-externals'
|
import externals from 'rollup-plugin-node-externals'
|
||||||
import sass from 'rollup-plugin-scss'
|
import sass from 'rollup-plugin-scss'
|
||||||
import { CompilerOptions } from 'typescript'
|
import { CompilerOptions } from 'typescript'
|
||||||
@ -24,6 +26,8 @@ import { CompilerOptions } from 'typescript'
|
|||||||
const REPLACEMENTS = {
|
const REPLACEMENTS = {
|
||||||
'process.env.REACT_APP_IS_WIDGET': true,
|
'process.env.REACT_APP_IS_WIDGET': true,
|
||||||
'process.env.REACT_APP_LOCALES': '"./locales"',
|
'process.env.REACT_APP_LOCALES': '"./locales"',
|
||||||
|
// esm requires fully-specified paths:
|
||||||
|
'react/jsx-runtime': 'react/jsx-runtime.js',
|
||||||
}
|
}
|
||||||
|
|
||||||
const EXTENSIONS = ['.js', '.jsx', '.ts', '.tsx']
|
const EXTENSIONS = ['.js', '.jsx', '.ts', '.tsx']
|
||||||
@ -45,7 +49,6 @@ const aliases = Object.entries({ ...paths }).flatMap(([find, replacements]) => {
|
|||||||
|
|
||||||
const plugins = [
|
const plugins = [
|
||||||
// Dependency resolution
|
// Dependency resolution
|
||||||
externals({ exclude: ['constants'], deps: true, peerDeps: true }), // marks builtins, dependencies, and peerDependencies external
|
|
||||||
resolve({ extensions: EXTENSIONS }), // resolves third-party modules within node_modules/
|
resolve({ extensions: EXTENSIONS }), // resolves third-party modules within node_modules/
|
||||||
alias({ entries: aliases }), // resolves paths aliased through the tsconfig (babel does not use tsconfig path resolution)
|
alias({ entries: aliases }), // resolves paths aliased through the tsconfig (babel does not use tsconfig path resolution)
|
||||||
|
|
||||||
@ -56,32 +59,69 @@ const plugins = [
|
|||||||
|
|
||||||
const check = {
|
const check = {
|
||||||
input: 'src/lib/index.tsx',
|
input: 'src/lib/index.tsx',
|
||||||
output: { file: 'dist/widgets.tsc' },
|
output: { file: 'dist/widgets.tsc', inlineDynamicImports: true },
|
||||||
external: isAsset,
|
external: isAsset,
|
||||||
plugins: [...plugins, typescript({ tsconfig: TS_CONFIG })],
|
plugins: [
|
||||||
|
externals({ exclude: ['constants'], deps: true, peerDeps: true }), // marks builtins, dependencies, and peerDependencies external
|
||||||
|
...plugins,
|
||||||
|
typescript({ tsconfig: TS_CONFIG }),
|
||||||
|
],
|
||||||
onwarn: squelchTranspilationWarnings, // this pipeline is only for typechecking and generating definitions
|
onwarn: squelchTranspilationWarnings, // this pipeline is only for typechecking and generating definitions
|
||||||
}
|
}
|
||||||
|
|
||||||
const type = {
|
const type = {
|
||||||
input: 'dist/dts/lib/index.d.ts',
|
input: 'dist/dts/lib/index.d.ts',
|
||||||
output: { file: 'dist/widgets.d.ts' },
|
output: { file: 'dist/index.d.ts' },
|
||||||
external: isAsset,
|
external: isAsset,
|
||||||
plugins: [
|
plugins: [
|
||||||
|
externals({ exclude: ['constants'], deps: true, peerDeps: true }),
|
||||||
dts({ compilerOptions: { baseUrl: 'dist/dts' } }),
|
dts({ compilerOptions: { baseUrl: 'dist/dts' } }),
|
||||||
process.env.ROLLUP_WATCH ? undefined : del({ hook: 'buildEnd', targets: ['dist/widgets.tsc', 'dist/dts'] }),
|
process.env.ROLLUP_WATCH ? undefined : del({ hook: 'buildEnd', targets: ['dist/widgets.tsc', 'dist/dts'] }),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This exports scheme works for nextjs and for CRA5.
|
||||||
|
*
|
||||||
|
* It will also work for CRA4 if you use direct imports:
|
||||||
|
* instead of `import { SwapWidget } from '@uniswap/widgets'`,
|
||||||
|
* `import { SwapWidget } from '@uniswap/widgets/dist/index.js'`.
|
||||||
|
* I do not know why CRA4 does not seem to use exports for resolution.
|
||||||
|
*
|
||||||
|
* Note that chunks are enabled. This is so the tokenlist spec can be loaded async,
|
||||||
|
* to improve first load time (due to ajv). Locales are also in separate chunks.
|
||||||
|
*
|
||||||
|
* Lastly, note that JSON and lingui are bundled into the library, as neither are fully
|
||||||
|
* supported/compatible with ES Modules. Both _could_ be bundled only with esm, but this
|
||||||
|
* yields a less complex pipeline.
|
||||||
|
*/
|
||||||
|
|
||||||
const transpile = {
|
const transpile = {
|
||||||
input: 'src/lib/index.tsx',
|
input: 'src/lib/index.tsx',
|
||||||
output: [
|
output: [
|
||||||
{
|
{
|
||||||
file: 'dist/widgets.cjs',
|
dir: 'dist',
|
||||||
|
format: 'esm',
|
||||||
|
sourcemap: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
dir: 'dist/cjs',
|
||||||
|
entryFileNames: '[name].cjs',
|
||||||
|
chunkFileNames: '[name]-[hash].cjs',
|
||||||
format: 'cjs',
|
format: 'cjs',
|
||||||
sourcemap: true,
|
sourcemap: false,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
|
externals({
|
||||||
|
exclude: [
|
||||||
|
'constants',
|
||||||
|
/@lingui\/(core|react)/, // @lingui incorrectly exports esm, so it must be bundled in
|
||||||
|
/\.json$/, // esm does not support JSON loading, so it must be bundled in
|
||||||
|
],
|
||||||
|
deps: true,
|
||||||
|
peerDeps: true,
|
||||||
|
}),
|
||||||
...plugins,
|
...plugins,
|
||||||
|
|
||||||
// Source code transformation
|
// Source code transformation
|
||||||
@ -99,16 +139,30 @@ const transpile = {
|
|||||||
'@babel/plugin-transform-runtime', // embeds the babel runtime for library distribution
|
'@babel/plugin-transform-runtime', // embeds the babel runtime for library distribution
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
|
|
||||||
copy({
|
|
||||||
copyOnce: true,
|
|
||||||
targets: [{ src: 'src/locales/*.js', dest: 'dist/locales' }],
|
|
||||||
}),
|
|
||||||
],
|
],
|
||||||
onwarn: squelchTypeWarnings, // this pipeline is only for transpilation
|
onwarn: squelchTypeWarnings, // this pipeline is only for transpilation
|
||||||
}
|
}
|
||||||
|
|
||||||
const config = [check, type, transpile]
|
const locales = {
|
||||||
|
input: 'src/locales/*.js',
|
||||||
|
output: [
|
||||||
|
{
|
||||||
|
dir: 'dist',
|
||||||
|
format: 'esm',
|
||||||
|
sourcemap: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
plugins: [
|
||||||
|
copy({
|
||||||
|
copyOnce: true,
|
||||||
|
targets: [{ src: 'src/locales/*.js', dest: 'dist/cjs/locales', rename: (name) => `${name}.cjs` }],
|
||||||
|
}),
|
||||||
|
commonjs(),
|
||||||
|
multi(),
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
|
const config = [check, type, transpile, locales]
|
||||||
export default config
|
export default config
|
||||||
|
|
||||||
function squelchTranspilationWarnings(warning: RollupWarning, warn: (warning: RollupWarning) => void) {
|
function squelchTranspilationWarnings(warning: RollupWarning, warn: (warning: RollupWarning) => void) {
|
||||||
|
@ -82,7 +82,8 @@ export async function dynamicActivate(locale: SupportedLocale) {
|
|||||||
// see https://github.com/lingui/js-lingui/issues/388#issuecomment-497779030
|
// see https://github.com/lingui/js-lingui/issues/388#issuecomment-497779030
|
||||||
const catalog =
|
const catalog =
|
||||||
locale === DEFAULT_LOCALE ? DEFAULT_CATALOG : await import(`${process.env.REACT_APP_LOCALES}/${locale}`)
|
locale === DEFAULT_LOCALE ? DEFAULT_CATALOG : await import(`${process.env.REACT_APP_LOCALES}/${locale}`)
|
||||||
i18n.load(locale, catalog.messages)
|
// Bundlers will either export it as default or as a named export named default.
|
||||||
|
i18n.load(locale, catalog.messages || catalog.default.messages)
|
||||||
i18n.activate(locale)
|
i18n.activate(locale)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
122
yarn.lock
122
yarn.lock
@ -5325,75 +5325,75 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@web3-react/types" "^6.0.7"
|
"@web3-react/types" "^6.0.7"
|
||||||
|
|
||||||
"@web3-react/core@8.0.14-beta.0":
|
"@web3-react/core@8.0.17-beta.0":
|
||||||
version "8.0.14-beta.0"
|
version "8.0.17-beta.0"
|
||||||
resolved "https://registry.yarnpkg.com/@web3-react/core/-/core-8.0.14-beta.0.tgz#c1573a6426524f9753450dc80918eb2164c2ac94"
|
resolved "https://registry.yarnpkg.com/@web3-react/core/-/core-8.0.17-beta.0.tgz#02d516047555df59f8f98d2c5819638fd65cf7c6"
|
||||||
integrity sha512-A/vigfEI/UmMuoqibyKpQho3aTwj+5reYc9DwB2pyuhKcDsVyMwukU+i/+R9I6k6iO0Kns24+xV+1z8vgCL9lQ==
|
integrity sha512-9o//tcmJNM3UTQD6aOu0S9Ll3ZwpIZfXm5Gc3yFvVTHMRvUDT+bI/ntcSVLhp1DhA4oX+TTIrI6YrzzQdUaA1Q==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@web3-react/store" "^8.0.9-beta.0"
|
"@web3-react/store" "^8.0.12-beta.0"
|
||||||
"@web3-react/types" "^8.0.7-beta.0"
|
"@web3-react/types" "^8.0.10-beta.0"
|
||||||
zustand "^4.0.0-beta.1"
|
zustand "^4.0.0-beta.2"
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
"@ethersproject/providers" "^5.5.1"
|
"@ethersproject/providers" "^5.5.1"
|
||||||
|
|
||||||
"@web3-react/eip1193@8.0.9-beta.0":
|
"@web3-react/eip1193@8.0.12-beta.0":
|
||||||
version "8.0.9-beta.0"
|
version "8.0.12-beta.0"
|
||||||
resolved "https://registry.yarnpkg.com/@web3-react/eip1193/-/eip1193-8.0.9-beta.0.tgz#f485b33b0188600eeebe640c7bb37a946c89ff49"
|
resolved "https://registry.yarnpkg.com/@web3-react/eip1193/-/eip1193-8.0.12-beta.0.tgz#07aae52dd1b10870b29889499d9854b7e81322ee"
|
||||||
integrity sha512-aIFhQzMhdj9VfaGCEBlDwymQn1hznCHkzgEr6E2dEDYDhesrQ8l1FLdcohV858l7j2WAUK58Vv+Lp2wWcU7EdA==
|
integrity sha512-Euj/JL3S3V4BuBI9qe/DdcviQ3VK+PItcdmyn/cdieaejiRUfgGj7Nqa3uhvlD98zvzeoGKBX5mzU10gvx7PGQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@web3-react/types" "^8.0.7-beta.0"
|
"@web3-react/types" "^8.0.10-beta.0"
|
||||||
|
|
||||||
"@web3-react/empty@8.0.7-beta.0":
|
"@web3-react/empty@8.0.10-beta.0":
|
||||||
version "8.0.7-beta.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/@web3-react/empty/-/empty-8.0.7-beta.0.tgz#b945863044a46287323e4607c3aaa0fa61271606"
|
|
||||||
integrity sha512-uaG4/gJwGhoJOrYEqXTTSL+/E4L1jTGKNhbAxF25cYIa8UGALnE1NgcwicmNkuGhk5gHJ0sZVVmcxBa8aHwHJA==
|
|
||||||
dependencies:
|
|
||||||
"@web3-react/types" "^8.0.7-beta.0"
|
|
||||||
|
|
||||||
"@web3-react/metamask@8.0.10-beta.0":
|
|
||||||
version "8.0.10-beta.0"
|
version "8.0.10-beta.0"
|
||||||
resolved "https://registry.yarnpkg.com/@web3-react/metamask/-/metamask-8.0.10-beta.0.tgz#619606f34aa414e4d8c586bffe8025148dce0d7d"
|
resolved "https://registry.yarnpkg.com/@web3-react/empty/-/empty-8.0.10-beta.0.tgz#3064df6ef146c4a33064248030d8bd6d10e6a90e"
|
||||||
integrity sha512-FfblBxlGgkcq7QtPKUm9VjZvs57D5oW7PBWdW0rLyksg06DIDOASTM6FL7BSfFzvROCwE1anX38Q8Fk3XdajpA==
|
integrity sha512-/8b7tuXEhMOU7iUIjMyr3Gk4HINOkiweYxDLeMXyMUSkIDZ2Dl0JGoAVnMexA6vLBcmUX8B8zK2KzjeQ7cdXyw==
|
||||||
|
dependencies:
|
||||||
|
"@web3-react/types" "^8.0.10-beta.0"
|
||||||
|
|
||||||
|
"@web3-react/metamask@8.0.13-beta.0":
|
||||||
|
version "8.0.13-beta.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@web3-react/metamask/-/metamask-8.0.13-beta.0.tgz#e6df1b522094e3bf2de9db3170434684cafcfef4"
|
||||||
|
integrity sha512-ePJ9phls0dar3+DnmkAhIyniQ8G4nAvNpcvVwgfuhTn/ZFKU9SHpslWo9BpuYReUqYtsoBsYCMe4zYNaLCHcOA==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@metamask/detect-provider" "^1.2.0"
|
"@metamask/detect-provider" "^1.2.0"
|
||||||
"@web3-react/types" "^8.0.7-beta.0"
|
"@web3-react/types" "^8.0.10-beta.0"
|
||||||
|
|
||||||
"@web3-react/store@^8.0.9-beta.0":
|
"@web3-react/store@^8.0.12-beta.0":
|
||||||
version "8.0.9-beta.0"
|
version "8.0.12-beta.0"
|
||||||
resolved "https://registry.yarnpkg.com/@web3-react/store/-/store-8.0.9-beta.0.tgz#094a2d7da4e4318df445874b153384d93bebc28c"
|
resolved "https://registry.yarnpkg.com/@web3-react/store/-/store-8.0.12-beta.0.tgz#a68ae04f15fe41e96874657ccf4967b09852f9a3"
|
||||||
integrity sha512-NsNRpzTdIkYMPmCnaPRNiHD4mJQSHkCuyFSFsEVJ3UXRuvDWwS/hFmMdFKWDN2PSeHIzAnj4ERHZL+PTAVQVGw==
|
integrity sha512-HlxZuTWTRwCSQhYTUjfQVi8jGAKlKmBBg1A6QD19MUopzJHVoCsUMcI2nWyPXv0DLDi8GQJ6FYqeEpG8pIQwYw==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@ethersproject/address" "^5.4.0"
|
"@ethersproject/address" "^5.4.0"
|
||||||
"@web3-react/types" "^8.0.7-beta.0"
|
"@web3-react/types" "^8.0.10-beta.0"
|
||||||
zustand "^4.0.0-beta.1"
|
zustand "^4.0.0-beta.2"
|
||||||
|
|
||||||
"@web3-react/types@8.0.7-beta.0", "@web3-react/types@^8.0.7-beta.0":
|
"@web3-react/types@8.0.10-beta.0", "@web3-react/types@^8.0.10-beta.0":
|
||||||
version "8.0.7-beta.0"
|
version "8.0.10-beta.0"
|
||||||
resolved "https://registry.yarnpkg.com/@web3-react/types/-/types-8.0.7-beta.0.tgz#8f93b8fab8428ec7de8138afdb956783c5834e65"
|
resolved "https://registry.yarnpkg.com/@web3-react/types/-/types-8.0.10-beta.0.tgz#8ed9f1b5e40dcbe2a08be5ce9dd9e3ef2b2a6908"
|
||||||
integrity sha512-s8b0Yt1As69xQ3kiTT+2iBirelgvOzN8Dt/P0p58GiCMPU57DojQsElYxUBO1easTngC4VdCsbhW2kfegVolug==
|
integrity sha512-HitBmoKHyLDeRrJgtkImPddb8nzsb/FroAdiaYA15gAwAE3Y/p7Nd/TN8IANlgKcMkuyGyUjPD27fE7Mvw9rEA==
|
||||||
dependencies:
|
dependencies:
|
||||||
zustand "^4.0.0-beta.1"
|
zustand "^4.0.0-beta.2"
|
||||||
|
|
||||||
"@web3-react/types@^6.0.7", "web3-react-types@npm:@web3-react/types@^6.0.7":
|
"@web3-react/types@^6.0.7", "web3-react-types@npm:@web3-react/types@^6.0.7":
|
||||||
version "6.0.7"
|
version "6.0.7"
|
||||||
resolved "https://registry.yarnpkg.com/@web3-react/types/-/types-6.0.7.tgz#34a6204224467eedc6123abaf55fbb6baeb2809f"
|
resolved "https://registry.yarnpkg.com/@web3-react/types/-/types-6.0.7.tgz#34a6204224467eedc6123abaf55fbb6baeb2809f"
|
||||||
integrity sha512-ofGmfDhxmNT1/P/MgVa8IKSkCStFiyvXe+U5tyZurKdrtTDFU+wJ/LxClPDtFerWpczNFPUSrKcuhfPX1sI6+A==
|
integrity sha512-ofGmfDhxmNT1/P/MgVa8IKSkCStFiyvXe+U5tyZurKdrtTDFU+wJ/LxClPDtFerWpczNFPUSrKcuhfPX1sI6+A==
|
||||||
|
|
||||||
"@web3-react/url@8.0.9-beta.0":
|
"@web3-react/url@8.0.12-beta.0":
|
||||||
version "8.0.9-beta.0"
|
version "8.0.12-beta.0"
|
||||||
resolved "https://registry.yarnpkg.com/@web3-react/url/-/url-8.0.9-beta.0.tgz#bb663d275b9a518890d13b2714292b927033bbc6"
|
resolved "https://registry.yarnpkg.com/@web3-react/url/-/url-8.0.12-beta.0.tgz#5be7281c3d384d6976cb55acbeb620a6d0f6e872"
|
||||||
integrity sha512-zjS06dQsndyE4d0iY4ZaEIh6MTcbYkXHMnp9ygociZ/ttJjd6HL1fOrga4YrmwnFKyd6yDXLzv++Uk7n36jDog==
|
integrity sha512-NnNfsHsNUaKhdKZW90mKSFJCH6M22z9rgGme+knxb6Ips2KCCo06IxGDPufrjfEvYIOislAN/vXwHBekbUW4ug==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@ethersproject/experimental" "^5.5.0"
|
"@ethersproject/experimental" "^5.5.0"
|
||||||
"@ethersproject/providers" "^5.5.1"
|
"@ethersproject/providers" "^5.5.1"
|
||||||
"@web3-react/types" "^8.0.7-beta.0"
|
"@web3-react/types" "^8.0.10-beta.0"
|
||||||
|
|
||||||
"@web3-react/walletconnect@8.0.15-beta.0":
|
"@web3-react/walletconnect@8.0.18-beta.0":
|
||||||
version "8.0.15-beta.0"
|
version "8.0.18-beta.0"
|
||||||
resolved "https://registry.yarnpkg.com/@web3-react/walletconnect/-/walletconnect-8.0.15-beta.0.tgz#9f1dfa2ec5f4cfd609dd2bd22876f1474c4a7820"
|
resolved "https://registry.yarnpkg.com/@web3-react/walletconnect/-/walletconnect-8.0.18-beta.0.tgz#c50d31c0ac0fc28f1ae79af44034bf5d2ef78bda"
|
||||||
integrity sha512-CQF9DDSJRPSCblh9C97CBl3CXh9s1OrOjlUitS+h6pkRiFKh4mM/ueSPOUkqaaD0oAiRwQfSDUQSrl1f1YFO/g==
|
integrity sha512-9kabpz4RFojECvGs+RI29ySmJapfW8KdkXZerSkHpyJtAVz12ga5RR2vW4KVB9Heh4F23qOyHn9Z3pcYxS6YNQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@web3-react/types" "^8.0.7-beta.0"
|
"@web3-react/types" "^8.0.10-beta.0"
|
||||||
eventemitter3 "^4.0.7"
|
eventemitter3 "^4.0.7"
|
||||||
|
|
||||||
"@webassemblyjs/ast@1.9.0":
|
"@webassemblyjs/ast@1.9.0":
|
||||||
@ -7855,6 +7855,11 @@ core-js@^2.4.0:
|
|||||||
resolved "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz"
|
resolved "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz"
|
||||||
integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==
|
integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==
|
||||||
|
|
||||||
|
core-js@^3.1.3:
|
||||||
|
version "3.21.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.21.1.tgz#f2e0ddc1fc43da6f904706e8e955bc19d06a0d94"
|
||||||
|
integrity sha512-FRq5b/VMrWlrmCzwRrpDYNxyHP9BcAZC+xHJaqTgIE5091ZV1NTmyh0sGOg5XqpnHvR0svdy0sv1gWA1zmhxig==
|
||||||
|
|
||||||
core-js@^3.15.1, core-js@^3.6.5:
|
core-js@^3.15.1, core-js@^3.6.5:
|
||||||
version "3.18.1"
|
version "3.18.1"
|
||||||
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.18.1.tgz#289d4be2ce0085d40fc1244c0b1a54c00454622f"
|
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.18.1.tgz#289d4be2ce0085d40fc1244c0b1a54c00454622f"
|
||||||
@ -10384,7 +10389,7 @@ fast-diff@^1.1.2:
|
|||||||
resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03"
|
resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03"
|
||||||
integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==
|
integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==
|
||||||
|
|
||||||
fast-glob@^3.0.3, fast-glob@^3.1.1:
|
fast-glob@^3.0.0, fast-glob@^3.0.3, fast-glob@^3.1.1:
|
||||||
version "3.2.11"
|
version "3.2.11"
|
||||||
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9"
|
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9"
|
||||||
integrity sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==
|
integrity sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==
|
||||||
@ -17581,6 +17586,15 @@ rollup-plugin-dts@^4.1.0:
|
|||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
"@babel/code-frame" "^7.16.0"
|
"@babel/code-frame" "^7.16.0"
|
||||||
|
|
||||||
|
rollup-plugin-multi-input@^1.3.1:
|
||||||
|
version "1.3.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/rollup-plugin-multi-input/-/rollup-plugin-multi-input-1.3.1.tgz#07b903b618c005871fea1bd0c4efae7d1aac4fa1"
|
||||||
|
integrity sha512-bPsxHR6dUney7zsCAAlfkq7lbuy5xph2CvUstSv88oqhtRiLWXwVjiA1Gb4HVjC6I9sJI2eZeQlozXa+GXJKDA==
|
||||||
|
dependencies:
|
||||||
|
core-js "^3.1.3"
|
||||||
|
fast-glob "^3.0.0"
|
||||||
|
lodash "^4.17.11"
|
||||||
|
|
||||||
rollup-plugin-node-externals@^3.1.2:
|
rollup-plugin-node-externals@^3.1.2:
|
||||||
version "3.1.2"
|
version "3.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/rollup-plugin-node-externals/-/rollup-plugin-node-externals-3.1.2.tgz#1604aa28384a8771735168fe900d6f00f450d0fa"
|
resolved "https://registry.yarnpkg.com/rollup-plugin-node-externals/-/rollup-plugin-node-externals-3.1.2.tgz#1604aa28384a8771735168fe900d6f00f450d0fa"
|
||||||
@ -19739,10 +19753,10 @@ use-sidecar@^1.0.1:
|
|||||||
detect-node-es "^1.1.0"
|
detect-node-es "^1.1.0"
|
||||||
tslib "^1.9.3"
|
tslib "^1.9.3"
|
||||||
|
|
||||||
use-sync-external-store@1.0.0-rc.0:
|
use-sync-external-store@1.0.0-rc.1-next-629036a9c-20220224:
|
||||||
version "1.0.0-rc.0"
|
version "1.0.0-rc.1-next-629036a9c-20220224"
|
||||||
resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.0.0-rc.0.tgz#0d8fb7cbc31ddfb3ee01225f6b0a700cf59c449b"
|
resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.0.0-rc.1-next-629036a9c-20220224.tgz#40cf472454789403c2de6c8471d177459d184dc1"
|
||||||
integrity sha512-0U9Xlc2QDFzSGMB0DvcJQL0+DIdxDPJC7mnZlYFbl7wrSrPMcs89X5TVkNB6Dzg618m8lZop+U+J6ow3vq9RAQ==
|
integrity sha512-IhuMl0apVVYsT3XPfV+0nuwf0T6+3d4YxQXV4tDRsGpSQcYVG4zoWwfX4zdtouUfuelYg4t2SEmFifIMrxPfIw==
|
||||||
|
|
||||||
use@^3.1.0:
|
use@^3.1.0:
|
||||||
version "3.1.1"
|
version "3.1.1"
|
||||||
@ -20845,9 +20859,9 @@ yocto-queue@^1.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-1.0.0.tgz#7f816433fb2cbc511ec8bf7d263c3b58a1a3c251"
|
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-1.0.0.tgz#7f816433fb2cbc511ec8bf7d263c3b58a1a3c251"
|
||||||
integrity sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==
|
integrity sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==
|
||||||
|
|
||||||
zustand@^4.0.0-beta.1:
|
zustand@^4.0.0-beta.2:
|
||||||
version "4.0.0-beta.1"
|
version "4.0.0-beta.2"
|
||||||
resolved "https://registry.yarnpkg.com/zustand/-/zustand-4.0.0-beta.1.tgz#70ac562616a5a9f711a036290132432abb73b149"
|
resolved "https://registry.yarnpkg.com/zustand/-/zustand-4.0.0-beta.2.tgz#27fdc32b62225cc18976c0cf8866ecee9a9f4a98"
|
||||||
integrity sha512-XdKfCM6I2k758AQY/WaUZoC0uQjj7z6NfvvYBo+cxU58M3iMsrHU9w7yUkUNIOKc9T8/5S0j54ga7wVGQWhcvA==
|
integrity sha512-aJ5ypnOwPIa/uSjdZv/oHChTWPplpFOG/hvWwzkR5ahFiPI5R6ifyObf8Fz1Vi6Obz2wY1N32fT2pNrpT2hzPw==
|
||||||
dependencies:
|
dependencies:
|
||||||
use-sync-external-store "1.0.0-rc.0"
|
use-sync-external-store "1.0.0-rc.1-next-629036a9c-20220224"
|
||||||
|
Loading…
Reference in New Issue
Block a user