@wagmi/core 3.3.0 → 3.3.2
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/dist/esm/exports/internal.js.map +1 -1
- package/dist/esm/tempo/KeyManager.js +4 -4
- package/dist/esm/tempo/KeyManager.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/exports/internal.d.ts +1 -1
- package/dist/types/exports/internal.d.ts.map +1 -1
- package/dist/types/types/properties.d.ts +6 -0
- package/dist/types/types/properties.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/exports/internal.ts +2 -0
- package/src/tempo/KeyManager.ts +6 -4
- package/src/types/properties.ts +8 -0
- package/src/version.ts +1 -1
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '3.3.
|
|
1
|
+
export const version = '3.3.2';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { type WatchChainsParameters, type WatchChainsReturnType, watchChains, } from '../actions/watchChains.js';
|
|
2
2
|
export { createEmitter, Emitter, type EventData, } from '../createEmitter.js';
|
|
3
3
|
export type { SelectChains } from '../types/chain.js';
|
|
4
|
-
export type { ChainIdParameter, ConnectorParameter, ScopeKeyParameter, } from '../types/properties.js';
|
|
4
|
+
export type { ChainIdParameter, ConfigParameter, ConnectorParameter, EnabledParameter, ScopeKeyParameter, } from '../types/properties.js';
|
|
5
5
|
export type { QueryParameter } from '../types/query.js';
|
|
6
6
|
export type { Compute, ExactPartial, FixedArray, Mutable, OneOf, PartialBy, RemoveUndefined, RequiredBy, StrictOmit as Omit, UnionCompute, UnionExactPartial, UnionLooseOmit, UnionStrictOmit, } from '../types/utils.js';
|
|
7
7
|
export { deepEqual } from '../utils/deepEqual.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/exports/internal.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,WAAW,GACZ,MAAM,2BAA2B,CAAA;AAMlC,OAAO,EACL,aAAa,EACb,OAAO,EACP,KAAK,SAAS,GACf,MAAM,qBAAqB,CAAA;AAM5B,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,wBAAwB,CAAA;AAE/B,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEvD,YAAY,EACV,OAAO,EACP,YAAY,EACZ,UAAU,EACV,OAAO,EACP,KAAK,EACL,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,IAAI,IAAI,EAClB,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,eAAe,GAChB,MAAM,mBAAmB,CAAA;AAM1B,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/exports/internal.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,WAAW,GACZ,MAAM,2BAA2B,CAAA;AAMlC,OAAO,EACL,aAAa,EACb,OAAO,EACP,KAAK,SAAS,GACf,MAAM,qBAAqB,CAAA;AAM5B,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,YAAY,EACV,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,wBAAwB,CAAA;AAE/B,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEvD,YAAY,EACV,OAAO,EACP,YAAY,EACZ,UAAU,EACV,OAAO,EACP,KAAK,EACL,SAAS,EACT,eAAe,EACf,UAAU,EACV,UAAU,IAAI,IAAI,EAClB,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,eAAe,GAChB,MAAM,mBAAmB,CAAA;AAM1B,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -2,9 +2,15 @@ import type { Config, Connector } from '../createConfig.js';
|
|
|
2
2
|
export type ChainIdParameter<config extends Config, chainId extends config['chains'][number]['id'] | undefined = config['chains'][number]['id']> = {
|
|
3
3
|
chainId?: (chainId extends config['chains'][number]['id'] ? chainId : undefined) | config['chains'][number]['id'] | undefined;
|
|
4
4
|
};
|
|
5
|
+
export type ConfigParameter<config extends Config = Config> = {
|
|
6
|
+
config?: Config | config | undefined;
|
|
7
|
+
};
|
|
5
8
|
export type ConnectorParameter = {
|
|
6
9
|
connector?: Connector | undefined;
|
|
7
10
|
};
|
|
11
|
+
export type EnabledParameter = {
|
|
12
|
+
enabled?: boolean | undefined;
|
|
13
|
+
};
|
|
8
14
|
export type ScopeKeyParameter = {
|
|
9
15
|
scopeKey?: string | undefined;
|
|
10
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../src/types/properties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE3D,MAAM,MAAM,gBAAgB,CAC1B,MAAM,SAAS,MAAM,EACrB,OAAO,SACH,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAC9B,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAC5C;IACF,OAAO,CAAC,EACJ,CAAC,OAAO,SAAS,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC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G,SAAS,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAA;AAEjE,MAAM,MAAM,2BAA2B,GAAG;IACxC,kBAAkB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACzC,CAAA"}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "3.3.
|
|
1
|
+
export declare const version = "3.3.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
package/src/exports/internal.ts
CHANGED
package/src/tempo/KeyManager.ts
CHANGED
|
@@ -200,22 +200,24 @@ function serializeCredential(
|
|
|
200
200
|
...('getAuthenticatorData' in response &&
|
|
201
201
|
typeof response.getAuthenticatorData === 'function' && {
|
|
202
202
|
authenticatorData: Base64.fromBytes(
|
|
203
|
-
new Uint8Array(
|
|
203
|
+
new Uint8Array(
|
|
204
|
+
response.getAuthenticatorData.call(response) as ArrayBuffer,
|
|
205
|
+
),
|
|
204
206
|
),
|
|
205
207
|
}),
|
|
206
208
|
...('getPublicKey' in response &&
|
|
207
209
|
typeof response.getPublicKey === 'function' && {
|
|
208
210
|
publicKey: Base64.fromBytes(
|
|
209
|
-
new Uint8Array(response.getPublicKey() as ArrayBuffer),
|
|
211
|
+
new Uint8Array(response.getPublicKey.call(response) as ArrayBuffer),
|
|
210
212
|
),
|
|
211
213
|
}),
|
|
212
214
|
...('getPublicKeyAlgorithm' in response &&
|
|
213
215
|
typeof response.getPublicKeyAlgorithm === 'function' && {
|
|
214
|
-
publicKeyAlgorithm: response.getPublicKeyAlgorithm(),
|
|
216
|
+
publicKeyAlgorithm: response.getPublicKeyAlgorithm.call(response),
|
|
215
217
|
}),
|
|
216
218
|
...('getTransports' in response &&
|
|
217
219
|
typeof response.getTransports === 'function' && {
|
|
218
|
-
transports: response.getTransports(),
|
|
220
|
+
transports: response.getTransports.call(response),
|
|
219
221
|
}),
|
|
220
222
|
...('authenticatorData' in response && {
|
|
221
223
|
authenticatorData: Base64.fromBytes(
|
package/src/types/properties.ts
CHANGED
|
@@ -12,10 +12,18 @@ export type ChainIdParameter<
|
|
|
12
12
|
| undefined
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
export type ConfigParameter<config extends Config = Config> = {
|
|
16
|
+
config?: Config | config | undefined
|
|
17
|
+
}
|
|
18
|
+
|
|
15
19
|
export type ConnectorParameter = {
|
|
16
20
|
connector?: Connector | undefined
|
|
17
21
|
}
|
|
18
22
|
|
|
23
|
+
export type EnabledParameter = {
|
|
24
|
+
enabled?: boolean | undefined
|
|
25
|
+
}
|
|
26
|
+
|
|
19
27
|
export type ScopeKeyParameter = { scopeKey?: string | undefined }
|
|
20
28
|
|
|
21
29
|
export type SyncConnectedChainParameter = {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '3.3.
|
|
1
|
+
export const version = '3.3.2'
|