@keplr-wallet/common 0.13.3 → 0.13.4
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/.eslintrc.json +10 -0
- package/LICENSE +1 -20
- package/build/kv-store/memory.js.map +1 -1
- package/package.json +6 -5
- package/src/kv-store/memory.ts +1 -1
- package/tsconfig.check.json +88 -0
- package/tsconfig.json +0 -1
package/.eslintrc.json
ADDED
package/LICENSE
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
License: Apache2.0 (Extension) / All rights reserved (Mobile)
|
|
2
|
-
|
|
3
|
-
## Keplr Extension License:
|
|
4
|
-
|
|
5
1
|
Apache License
|
|
6
2
|
Version 2.0, January 2004
|
|
7
3
|
http://www.apache.org/licenses/
|
|
@@ -179,18 +175,7 @@ License: Apache2.0 (Extension) / All rights reserved (Mobile)
|
|
|
179
175
|
|
|
180
176
|
END OF TERMS AND CONDITIONS
|
|
181
177
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
To apply the Apache License to your work, attach the following
|
|
185
|
-
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
186
|
-
replaced with your own identifying information. (Don't include
|
|
187
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
188
|
-
comment syntax for the file format. We also recommend that a
|
|
189
|
-
file or class name and description of purpose be included on the
|
|
190
|
-
same "printed page" as the copyright notice for easier
|
|
191
|
-
identification within third-party archives.
|
|
192
|
-
|
|
193
|
-
Copyright 2020 Chainapsis, Inc
|
|
178
|
+
Copyright 2026, KPLR Pte Ltd
|
|
194
179
|
|
|
195
180
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
196
181
|
you may not use this file except in compliance with the License.
|
|
@@ -203,7 +188,3 @@ License: Apache2.0 (Extension) / All rights reserved (Mobile)
|
|
|
203
188
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
204
189
|
See the License for the specific language governing permissions and
|
|
205
190
|
limitations under the License.
|
|
206
|
-
|
|
207
|
-
## Keplr Mobile License
|
|
208
|
-
|
|
209
|
-
Copyright (c) 2021 Chainapsis Inc. All rights reserved.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/kv-store/memory.ts"],"names":[],"mappings":";;;AAAA,iCAAqC;AAGrC,MAAM,qBAAqB;IAA3B;QACU,UAAK,GAA2B,EAAE,CAAC;IAsC7C,CAAC;IApCC,GAAG,CAAC,GAAW;QACb,OAAO,OAAO,CAAC,OAAO,CAAC;YACrB,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;SACvB,CAAC,CAAC;IACL,CAAC;IAED,GAAG,CAAC,KAA6B;QAC/B,+DAA+D;QAC/D,wGAAwG;QACxG,uFAAuF;QACvF,IACE,OAAO,OAAO,KAAK,WAAW;YAC9B,
|
|
1
|
+
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/kv-store/memory.ts"],"names":[],"mappings":";;;AAAA,iCAAqC;AAGrC,MAAM,qBAAqB;IAA3B;QACU,UAAK,GAA2B,EAAE,CAAC;IAsC7C,CAAC;IApCC,GAAG,CAAC,GAAW;QACb,OAAO,OAAO,CAAC,OAAO,CAAC;YACrB,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;SACvB,CAAC,CAAC;IACL,CAAC;IAED,GAAG,CAAC,KAA6B;QAC/B,+DAA+D;QAC/D,wGAAwG;QACxG,uFAAuF;QACvF,IACE,OAAO,OAAO,KAAK,WAAW;YAC9B,CAAE,OAAO,CAAC,GAAG,CAAC,UAAU,CAAS,KAAK,MAAM;gBAC1C,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,aAAa,CAAC,EAC5C;YACA,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;SACpC;QAED,IAAI,CAAC,KAAK,mCAAQ,IAAI,CAAC,KAAK,GAAK,KAAK,CAAE,CAAC;QACzC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAES,sBAAsB,CAAC,KAA6B;QAC5D,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YACjC,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;YACzB,IAAI,KAAK,IAAI,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;gBAC9C,IAAI,KAAK,CAAC,WAAW,KAAK,MAAM,IAAI,KAAK,CAAC,WAAW,KAAK,KAAK,EAAE;oBAC/D,MAAM,IAAI,KAAK,CACb,GAAG,GAAG,6BAA6B,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,CAC5D,CAAC;iBACH;gBAED,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;aACpC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAa,aAAc,SAAQ,kBAAW;IAC5C,YAAY,MAAc;QACxB,KAAK,CAAC,IAAI,qBAAqB,EAAE,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;CACF;AAJD,sCAIC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keplr-wallet/common",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.4",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"author": "chainapsis",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -17,14 +17,15 @@
|
|
|
17
17
|
"dev": "npx tsc -w",
|
|
18
18
|
"test": "npx jest --passWithNoTests",
|
|
19
19
|
"lint-test": "npx eslint \"src/**/*\" && npx prettier --check \"src/**/*\"",
|
|
20
|
-
"lint-fix": "npx eslint --fix \"src/**/*\" && npx prettier --write \"src/**/*\""
|
|
20
|
+
"lint-fix": "npx eslint --fix \"src/**/*\" && npx prettier --write \"src/**/*\"",
|
|
21
|
+
"typecheck": "npx tsc -p tsconfig.check.json"
|
|
21
22
|
},
|
|
22
23
|
"dependencies": {
|
|
23
|
-
"@keplr-wallet/crypto": "0.13.
|
|
24
|
-
"@keplr-wallet/types": "0.13.
|
|
24
|
+
"@keplr-wallet/crypto": "0.13.4",
|
|
25
|
+
"@keplr-wallet/types": "0.13.4",
|
|
25
26
|
"buffer": "^6.0.3",
|
|
26
27
|
"delay": "^4.4.0",
|
|
27
28
|
"p-queue": "^6.6.2"
|
|
28
29
|
},
|
|
29
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "7fbcc0426b16155e284289a7213b055ecc506686"
|
|
30
31
|
}
|
package/src/kv-store/memory.ts
CHANGED
|
@@ -16,7 +16,7 @@ class MemoryKVStoreProvider implements KVStoreProvider {
|
|
|
16
16
|
// To mitigate the risk, we check the type of value to be stored if env is for testing.
|
|
17
17
|
if (
|
|
18
18
|
typeof process !== "undefined" &&
|
|
19
|
-
(process.env["NODE_ENV"] === "test" ||
|
|
19
|
+
((process.env["NODE_ENV"] as any) === "test" ||
|
|
20
20
|
process.env["NODE_ENV"] === "development")
|
|
21
21
|
) {
|
|
22
22
|
this.checkNotPrimitiveField(items);
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"baseUrl": ".",
|
|
5
|
+
"rootDir": "../..",
|
|
6
|
+
"noEmit": true,
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"paths": {
|
|
9
|
+
"@keplr-wallet/analytics": ["../analytics/src"],
|
|
10
|
+
"@keplr-wallet/analytics/build/*": ["../analytics/src/*"],
|
|
11
|
+
"@keplr-wallet/background": ["../background/src"],
|
|
12
|
+
"@keplr-wallet/background/build/*": ["../background/src/*"],
|
|
13
|
+
"@keplr-wallet/chain-validator": ["../chain-validator/src"],
|
|
14
|
+
"@keplr-wallet/chain-validator/build/*": ["../chain-validator/src/*"],
|
|
15
|
+
"@keplr-wallet/common": ["src"],
|
|
16
|
+
"@keplr-wallet/common/build/*": ["src/*"],
|
|
17
|
+
"@keplr-wallet/cosmos": ["../cosmos/src"],
|
|
18
|
+
"@keplr-wallet/cosmos/build/*": ["../cosmos/src/*"],
|
|
19
|
+
"@keplr-wallet/crypto": ["../crypto/src"],
|
|
20
|
+
"@keplr-wallet/crypto/build/*": ["../crypto/src/*"],
|
|
21
|
+
"@keplr-wallet/hooks": ["../hooks/src"],
|
|
22
|
+
"@keplr-wallet/hooks/build/*": ["../hooks/src/*"],
|
|
23
|
+
"@keplr-wallet/hooks-bitcoin": ["../hooks-bitcoin/src"],
|
|
24
|
+
"@keplr-wallet/hooks-bitcoin/build/*": ["../hooks-bitcoin/src/*"],
|
|
25
|
+
"@keplr-wallet/hooks-starknet": ["../hooks-starknet/src"],
|
|
26
|
+
"@keplr-wallet/hooks-starknet/build/*": ["../hooks-starknet/src/*"],
|
|
27
|
+
"@keplr-wallet/ledger-cosmos": ["../ledger-cosmos/src"],
|
|
28
|
+
"@keplr-wallet/ledger-cosmos/build/*": ["../ledger-cosmos/src/*"],
|
|
29
|
+
"@keplr-wallet/mobx-utils": ["../mobx-utils/src"],
|
|
30
|
+
"@keplr-wallet/mobx-utils/build/*": ["../mobx-utils/src/*"],
|
|
31
|
+
"@keplr-wallet/popup": ["../popup/src"],
|
|
32
|
+
"@keplr-wallet/popup/build/*": ["../popup/src/*"],
|
|
33
|
+
"@keplr-wallet/provider": ["../provider/src"],
|
|
34
|
+
"@keplr-wallet/provider/build/*": ["../provider/src/*"],
|
|
35
|
+
"@keplr-wallet/provider-extension": ["../provider-extension/src"],
|
|
36
|
+
"@keplr-wallet/provider-extension/build/*": [
|
|
37
|
+
"../provider-extension/src/*"
|
|
38
|
+
],
|
|
39
|
+
"@keplr-wallet/provider-mock": ["../provider-mock/src"],
|
|
40
|
+
"@keplr-wallet/provider-mock/build/*": ["../provider-mock/src/*"],
|
|
41
|
+
"@keplr-wallet/router": ["../router/src"],
|
|
42
|
+
"@keplr-wallet/router/build/*": ["../router/src/*"],
|
|
43
|
+
"@keplr-wallet/router-extension": ["../router-extension/src"],
|
|
44
|
+
"@keplr-wallet/router-extension/build/*": ["../router-extension/src/*"],
|
|
45
|
+
"@keplr-wallet/router-mock": ["../router-mock/src"],
|
|
46
|
+
"@keplr-wallet/router-mock/build/*": ["../router-mock/src/*"],
|
|
47
|
+
"@keplr-wallet/simple-fetch": ["../simple-fetch/src"],
|
|
48
|
+
"@keplr-wallet/simple-fetch/build/*": ["../simple-fetch/src/*"],
|
|
49
|
+
"@keplr-wallet/stores": ["../stores/src"],
|
|
50
|
+
"@keplr-wallet/stores/build/*": ["../stores/src/*"],
|
|
51
|
+
"@keplr-wallet/stores-bitcoin": ["../stores-bitcoin/src"],
|
|
52
|
+
"@keplr-wallet/stores-bitcoin/build/*": ["../stores-bitcoin/src/*"],
|
|
53
|
+
"@keplr-wallet/stores-core": ["../stores-core/src"],
|
|
54
|
+
"@keplr-wallet/stores-core/build/*": ["../stores-core/src/*"],
|
|
55
|
+
"@keplr-wallet/stores-etc": ["../stores-etc/src"],
|
|
56
|
+
"@keplr-wallet/stores-etc/build/*": ["../stores-etc/src/*"],
|
|
57
|
+
"@keplr-wallet/stores-eth": ["../stores-eth/src"],
|
|
58
|
+
"@keplr-wallet/stores-eth/build/*": ["../stores-eth/src/*"],
|
|
59
|
+
"@keplr-wallet/stores-ibc": ["../stores-ibc/src"],
|
|
60
|
+
"@keplr-wallet/stores-ibc/build/*": ["../stores-ibc/src/*"],
|
|
61
|
+
"@keplr-wallet/stores-starknet": ["../stores-starknet/src"],
|
|
62
|
+
"@keplr-wallet/stores-starknet/build/*": ["../stores-starknet/src/*"],
|
|
63
|
+
"@keplr-wallet/topup-client": ["../topup-client/src"],
|
|
64
|
+
"@keplr-wallet/topup-client/build/*": ["../topup-client/src/*"],
|
|
65
|
+
"@keplr-wallet/types": ["../types/src"],
|
|
66
|
+
"@keplr-wallet/types/build/*": ["../types/src/*"],
|
|
67
|
+
"@keplr-wallet/unit": ["../unit/src"],
|
|
68
|
+
"@keplr-wallet/unit/build/*": ["../unit/src/*"],
|
|
69
|
+
"@keplr-wallet/wc-client": ["../wc-client/src"],
|
|
70
|
+
"@keplr-wallet/wc-client/build/*": ["../wc-client/src/*"],
|
|
71
|
+
"@keplr-wallet/wc-client-example": ["../wc-client-example/src"],
|
|
72
|
+
"@keplr-wallet/wc-client-example/build/*": ["../wc-client-example/src/*"],
|
|
73
|
+
"@keplr-wallet/wc-qrcode-modal": ["../wc-qrcode-modal/src"],
|
|
74
|
+
"@keplr-wallet/wc-qrcode-modal/build/*": ["../wc-qrcode-modal/src/*"],
|
|
75
|
+
"@keplr-wallet/extension": ["../../apps/extension/src"],
|
|
76
|
+
"@keplr-wallet/extension/build/*": ["../../apps/extension/src/*"],
|
|
77
|
+
"@keplr-wallet/hooks-internal": ["../../apps/hooks-internal/src"],
|
|
78
|
+
"@keplr-wallet/hooks-internal/build/*": [
|
|
79
|
+
"../../apps/hooks-internal/src/*"
|
|
80
|
+
],
|
|
81
|
+
"@keplr-wallet/stores-internal": ["../../apps/stores-internal/src"],
|
|
82
|
+
"@keplr-wallet/stores-internal/build/*": [
|
|
83
|
+
"../../apps/stores-internal/src/*"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"include": ["src/**/*", "../../packages/*/src/**/*.d.ts"]
|
|
88
|
+
}
|