@pancakeswap/token-lists 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +29 -0
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +3 -3
- package/dist/react.d.ts +1 -1
- package/dist/react.js +3 -3
- package/dist/react.mjs +3 -3
- package/dist/{types-d752b62d.d.ts → types-d6730d17.d.ts} +1 -1
- package/package.json +4 -4
- package/react/lists.ts +2 -2
- package/src/types.ts +1 -1
- package/src/wrappedTokenInfo.ts +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
> @pancakeswap/token-lists@0.0.8 build /home/runner/work/pancake-frontend/pancake-frontend/packages/token-lists
|
|
3
|
+
> tsup
|
|
4
|
+
|
|
5
|
+
[34mCLI[39m Building entry: {"index":"./src/index.ts","react":"./react/index.ts"}
|
|
6
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
+
[34mCLI[39m tsup v6.7.0
|
|
8
|
+
[34mCLI[39m Using tsup config: /home/runner/work/pancake-frontend/pancake-frontend/packages/token-lists/tsup.config.ts
|
|
9
|
+
[34mCLI[39m Target: es6
|
|
10
|
+
[34mESM[39m Build start
|
|
11
|
+
[34mCJS[39m Build start
|
|
12
|
+
Entry module "dist/getTokenList-YNKBKHZ3.js" is using named and default exports together. Consumers of your bundle will have to use `chunk.default` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
|
|
13
|
+
[32mESM[39m [1mdist/chunk-2L3ZO4UM.mjs [22m[32m1.42 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m160.00 B[39m
|
|
15
|
+
[32mESM[39m [1mdist/chunk-COROHIJN.mjs [22m[32m2.67 KB[39m
|
|
16
|
+
[32mESM[39m [1mdist/getTokenList-2FAKUE6D.mjs [22m[32m13.40 KB[39m
|
|
17
|
+
[32mESM[39m [1mdist/react.mjs [22m[32m8.29 KB[39m
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 996ms
|
|
19
|
+
[32mCJS[39m [1mdist/chunk-4TPCCB4K.js [22m[32m1.49 KB[39m
|
|
20
|
+
[32mCJS[39m [1mdist/index.js [22m[32m815.00 B[39m
|
|
21
|
+
[32mCJS[39m [1mdist/chunk-OGWZ2K32.js [22m[32m2.83 KB[39m
|
|
22
|
+
[32mCJS[39m [1mdist/getTokenList-YNKBKHZ3.js [22m[32m13.76 KB[39m
|
|
23
|
+
[32mCJS[39m [1mdist/react.js [22m[32m8.97 KB[39m
|
|
24
|
+
[32mCJS[39m ⚡️ Build success in 1012ms
|
|
25
|
+
[34mDTS[39m Build start
|
|
26
|
+
[32mDTS[39m ⚡️ Build success in 5666ms
|
|
27
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m1.68 KB[39m
|
|
28
|
+
[32mDTS[39m [1mdist/react.d.ts [22m[32m2.50 KB[39m
|
|
29
|
+
[32mDTS[39m [1mdist/types-d6730d17.d.ts [22m[32m1.03 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SerializedToken, Token } from '@pancakeswap/swap-sdk-core';
|
|
2
|
-
import { T as TokenInfo, a as TokenList, V as Version } from './types-
|
|
3
|
-
export { b as Tags } from './types-
|
|
2
|
+
import { T as TokenInfo, a as TokenList, V as Version } from './types-d6730d17.js';
|
|
3
|
+
export { b as Tags } from './types-d6730d17.js';
|
|
4
4
|
|
|
5
5
|
interface SerializedWrappedToken extends SerializedToken {
|
|
6
6
|
chainId: number;
|
|
7
|
-
address: string
|
|
7
|
+
address: `0x${string}`;
|
|
8
8
|
decimals: number;
|
|
9
9
|
symbol: string;
|
|
10
10
|
name?: string;
|
package/dist/react.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _reduxjs_toolkit_dist_createReducer from '@reduxjs/toolkit/dist/createReducer';
|
|
2
|
-
import { a as TokenList, V as Version } from './types-
|
|
2
|
+
import { a as TokenList, V as Version } from './types-d6730d17.js';
|
|
3
3
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
4
4
|
import { ActionCreatorWithPayload } from '@reduxjs/toolkit';
|
|
5
5
|
import * as jotai from 'jotai';
|
package/dist/react.js
CHANGED
|
@@ -199,9 +199,9 @@ var createListsAtom = (storeName, reducer, initialState) => {
|
|
|
199
199
|
}
|
|
200
200
|
return got;
|
|
201
201
|
},
|
|
202
|
-
(get, set, action) => {
|
|
203
|
-
set(listsStorageAtom, reducer(get(defaultStateAtom), action));
|
|
204
|
-
}
|
|
202
|
+
(get, set, action) => chunk4TPCCB4K_js.__async(void 0, null, function* () {
|
|
203
|
+
set(listsStorageAtom, reducer(yield get(defaultStateAtom), action));
|
|
204
|
+
})
|
|
205
205
|
);
|
|
206
206
|
const isReadyAtom = jotai.atom((get) => get(listsStorageAtom) !== EMPTY);
|
|
207
207
|
function useListState() {
|
package/dist/react.mjs
CHANGED
|
@@ -193,9 +193,9 @@ var createListsAtom = (storeName, reducer, initialState) => {
|
|
|
193
193
|
}
|
|
194
194
|
return got;
|
|
195
195
|
},
|
|
196
|
-
(get, set, action) => {
|
|
197
|
-
set(listsStorageAtom, reducer(get(defaultStateAtom), action));
|
|
198
|
-
}
|
|
196
|
+
(get, set, action) => __async(void 0, null, function* () {
|
|
197
|
+
set(listsStorageAtom, reducer(yield get(defaultStateAtom), action));
|
|
198
|
+
})
|
|
199
199
|
);
|
|
200
200
|
const isReadyAtom = atom((get) => get(listsStorageAtom) !== EMPTY);
|
|
201
201
|
function useListState() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pancakeswap/token-lists",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"@reduxjs/toolkit": "^1.9.1",
|
|
14
14
|
"localforage": "^1.10.0",
|
|
15
|
-
"jotai": "^2.
|
|
15
|
+
"jotai": "^2.2.1",
|
|
16
16
|
"react": "^18.2.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/react": "^18.0.17",
|
|
20
20
|
"localforage": "^1.10.0",
|
|
21
|
-
"jotai": "^2.
|
|
21
|
+
"jotai": "^2.2.1",
|
|
22
22
|
"@reduxjs/toolkit": "^1.9.1",
|
|
23
23
|
"react": "^18.2.0",
|
|
24
24
|
"tsup": "^6.7.0",
|
|
25
|
-
"@pancakeswap/utils": "
|
|
25
|
+
"@pancakeswap/utils": "2.0.1"
|
|
26
26
|
},
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
package/react/lists.ts
CHANGED
|
@@ -62,8 +62,8 @@ export const createListsAtom = (storeName: string, reducer: any, initialState: a
|
|
|
62
62
|
}
|
|
63
63
|
return got
|
|
64
64
|
},
|
|
65
|
-
(get, set, action) => {
|
|
66
|
-
set(listsStorageAtom, reducer(get(defaultStateAtom), action))
|
|
65
|
+
async (get, set, action) => {
|
|
66
|
+
set(listsStorageAtom, reducer(await get(defaultStateAtom), action))
|
|
67
67
|
},
|
|
68
68
|
)
|
|
69
69
|
|
package/src/types.ts
CHANGED
package/src/wrappedTokenInfo.ts
CHANGED