@fuel-ts/account 0.0.0-pr-1699-20240214162234 → 0.0.0-pr-1784-20240221124858
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.
Potentially problematic release.
This version of @fuel-ts/account might be problematic. Click here for more details.
- package/dist/account.d.ts +7 -4
- package/dist/account.d.ts.map +1 -1
- package/dist/connectors/fuel.d.ts +5 -6
- package/dist/connectors/fuel.d.ts.map +1 -1
- package/dist/connectors/index.d.ts +0 -2
- package/dist/connectors/index.d.ts.map +1 -1
- package/dist/connectors/types/asset.d.ts +0 -14
- package/dist/connectors/types/asset.d.ts.map +1 -1
- package/dist/connectors/types/data-type.d.ts +0 -4
- package/dist/connectors/types/data-type.d.ts.map +1 -1
- package/dist/connectors/types/events.d.ts +0 -5
- package/dist/connectors/types/events.d.ts.map +1 -1
- package/dist/connectors/types/index.d.ts +0 -2
- package/dist/connectors/types/index.d.ts.map +1 -1
- package/dist/connectors/utils/cache.d.ts.map +1 -1
- package/dist/connectors/utils/index.d.ts +0 -1
- package/dist/connectors/utils/index.d.ts.map +1 -1
- package/dist/index.global.js +718 -605
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +278 -162
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +336 -220
- package/dist/index.mjs.map +1 -1
- package/dist/predicate/predicate.d.ts.map +1 -1
- package/dist/providers/assets/index.d.ts +4 -0
- package/dist/providers/assets/index.d.ts.map +1 -0
- package/dist/providers/assets/types.d.ts +36 -0
- package/dist/providers/assets/types.d.ts.map +1 -0
- package/dist/providers/assets/utils/index.d.ts +4 -0
- package/dist/providers/assets/utils/index.d.ts.map +1 -0
- package/dist/providers/assets/utils/network.d.ts +33 -0
- package/dist/providers/assets/utils/network.d.ts.map +1 -0
- package/dist/providers/assets/utils/resolveIconPaths.d.ts +14 -0
- package/dist/providers/assets/utils/resolveIconPaths.d.ts.map +1 -0
- package/dist/providers/assets/utils/url.d.ts +2 -0
- package/dist/providers/assets/utils/url.d.ts.map +1 -0
- package/dist/providers/chains.d.ts +11 -0
- package/dist/providers/chains.d.ts.map +1 -0
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/provider.d.ts +14 -6
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/transaction-request/transaction-request.d.ts +3 -10
- package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
- package/dist/providers/utils/json.d.ts.map +1 -1
- package/dist/test-utils.global.js +593 -496
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +176 -79
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +231 -134
- package/dist/test-utils.mjs.map +1 -1
- package/dist/wallet/base-wallet-unlocked.d.ts +3 -3
- package/dist/wallet/base-wallet-unlocked.d.ts.map +1 -1
- package/package.json +17 -17
- package/dist/connectors/fixtures/generate-accounts.d.ts +0 -2
- package/dist/connectors/fixtures/generate-accounts.d.ts.map +0 -1
- package/dist/connectors/fixtures/mocked-connector.d.ts +0 -45
- package/dist/connectors/fixtures/mocked-connector.d.ts.map +0 -1
- package/dist/connectors/fixtures/promise-callback.d.ts +0 -7
- package/dist/connectors/fixtures/promise-callback.d.ts.map +0 -1
- package/dist/connectors/fuel-wallet-locked.d.ts +0 -13
- package/dist/connectors/fuel-wallet-locked.d.ts.map +0 -1
- package/dist/connectors/fuel-wallet-provider.d.ts +0 -14
- package/dist/connectors/fuel-wallet-provider.d.ts.map +0 -1
- package/dist/connectors/types/connection.d.ts +0 -7
- package/dist/connectors/types/connection.d.ts.map +0 -1
- package/dist/connectors/types/nertwork-data.d.ts +0 -7
- package/dist/connectors/types/nertwork-data.d.ts.map +0 -1
- package/dist/connectors/utils/get-asset-by-chain.d.ts +0 -3
- package/dist/connectors/utils/get-asset-by-chain.d.ts.map +0 -1
package/dist/account.d.ts
CHANGED
@@ -2,7 +2,8 @@ import { AbstractAccount } from '@fuel-ts/interfaces';
|
|
2
2
|
import type { AbstractAddress } from '@fuel-ts/interfaces';
|
3
3
|
import type { BigNumberish, BN } from '@fuel-ts/math';
|
4
4
|
import type { BytesLike } from 'ethers';
|
5
|
-
import type {
|
5
|
+
import type { FuelConnector } from './connectors';
|
6
|
+
import type { TransactionRequestLike, CallResult, TransactionRequest, Coin, CoinQuantityLike, CoinQuantity, Message, Resource, ExcludeResourcesOption, Provider, ScriptTransactionRequestLike, ProviderSendTxParams, TransactionResponse, EstimateTransactionParams } from './providers';
|
6
7
|
export type TxParamsType = Pick<ScriptTransactionRequestLike, 'gasLimit' | 'gasPrice' | 'maturity' | 'maxFee' | 'witnessLimit'>;
|
7
8
|
/**
|
8
9
|
* `Account` provides an abstraction for interacting with accounts or wallets on the network.
|
@@ -16,13 +17,14 @@ export declare class Account extends AbstractAccount {
|
|
16
17
|
* The provider used to interact with the network.
|
17
18
|
*/
|
18
19
|
protected _provider?: Provider;
|
20
|
+
protected _connector?: FuelConnector;
|
19
21
|
/**
|
20
22
|
* Creates a new Account instance.
|
21
23
|
*
|
22
24
|
* @param address - The address of the account.
|
23
25
|
* @param provider - A Provider instance (optional).
|
24
26
|
*/
|
25
|
-
constructor(address: string | AbstractAddress, provider?: Provider);
|
27
|
+
constructor(address: string | AbstractAddress, provider?: Provider, connector?: FuelConnector);
|
26
28
|
/**
|
27
29
|
* The provider used to interact with the network.
|
28
30
|
*
|
@@ -156,20 +158,21 @@ export declare class Account extends AbstractAccount {
|
|
156
158
|
amount: BigNumberish,
|
157
159
|
/** Tx Params */
|
158
160
|
txParams?: TxParamsType): Promise<TransactionResponse>;
|
161
|
+
signMessage(message: string): Promise<string>;
|
159
162
|
/**
|
160
163
|
* Sends a transaction to the network.
|
161
164
|
*
|
162
165
|
* @param transactionRequestLike - The transaction request to be sent.
|
163
166
|
* @returns A promise that resolves to the transaction response.
|
164
167
|
*/
|
165
|
-
sendTransaction(transactionRequestLike: TransactionRequestLike,
|
168
|
+
sendTransaction(transactionRequestLike: TransactionRequestLike, { estimateTxDependencies, awaitExecution }?: ProviderSendTxParams): Promise<TransactionResponse>;
|
166
169
|
/**
|
167
170
|
* Simulates a transaction.
|
168
171
|
*
|
169
172
|
* @param transactionRequestLike - The transaction request to be simulated.
|
170
173
|
* @returns A promise that resolves to the call result.
|
171
174
|
*/
|
172
|
-
simulateTransaction(transactionRequestLike: TransactionRequestLike): Promise<CallResult>;
|
175
|
+
simulateTransaction(transactionRequestLike: TransactionRequestLike, { estimateTxDependencies }?: EstimateTransactionParams): Promise<CallResult>;
|
173
176
|
private validateGas;
|
174
177
|
}
|
175
178
|
//# sourceMappingURL=account.d.ts.map
|
package/dist/account.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAGtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,KAAK,EACV,sBAAsB,EACtB,UAAU,EACV,kBAAkB,EAClB,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,sBAAsB,EACtB,
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAGtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EACV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D;;;;;OAKG;IACG,eAAe,CACnB,sBAAsB,EAAE,sBAAsB,EAC9C,EAAE,sBAA6B,EAAE,cAAc,EAAE,GAAE,oBAAyB,GAC3E,OAAO,CAAC,mBAAmB,CAAC;IAgB/B;;;;;OAKG;IACG,mBAAmB,CACvB,sBAAsB,EAAE,sBAAsB,EAC9C,EAAE,sBAA6B,EAAE,GAAE,yBAA8B,GAChE,OAAO,CAAC,UAAU,CAAC;IAQtB,OAAO,CAAC,WAAW;CAyBpB"}
|
@@ -1,14 +1,13 @@
|
|
1
1
|
import type { AbstractAddress } from '@fuel-ts/interfaces';
|
2
|
+
import { Account } from '../account';
|
3
|
+
import { Provider } from '../providers';
|
2
4
|
import type { StorageAbstract } from '../wallet-manager';
|
3
5
|
import { FuelConnector } from './fuel-connector';
|
4
|
-
import { FuelWalletLocked } from './fuel-wallet-locked';
|
5
|
-
import { FuelWalletProvider } from './fuel-wallet-provider';
|
6
6
|
import type { Network, TargetObject } from './types';
|
7
7
|
export type FuelConfig = {
|
8
8
|
connectors?: Array<FuelConnector>;
|
9
9
|
storage?: StorageAbstract | null;
|
10
10
|
targetObject?: TargetObject;
|
11
|
-
devMode?: boolean;
|
12
11
|
};
|
13
12
|
export type FuelConnectorSelectOptions = {
|
14
13
|
emitEvents?: boolean;
|
@@ -104,9 +103,9 @@ export declare class Fuel extends FuelConnector {
|
|
104
103
|
* Return a Fuel Provider instance with extends features to work with
|
105
104
|
* connectors.
|
106
105
|
*
|
107
|
-
* @deprecated
|
106
|
+
* @deprecated getProvider is deprecated and is going to be removed in the future, use getWallet instead.
|
108
107
|
*/
|
109
|
-
getProvider(providerOrNetwork?:
|
108
|
+
getProvider(providerOrNetwork?: Provider | Network): Promise<Provider>;
|
110
109
|
/**
|
111
110
|
* Return a Fuel Provider instance with extends features to work with
|
112
111
|
* connectors.
|
@@ -116,7 +115,7 @@ export declare class Fuel extends FuelConnector {
|
|
116
115
|
* Return a Fuel Wallet Locked instance with extends features to work with
|
117
116
|
* connectors.
|
118
117
|
*/
|
119
|
-
getWallet(address: string | AbstractAddress, providerOrNetwork?:
|
118
|
+
getWallet(address: string | AbstractAddress, providerOrNetwork?: Provider | Network): Promise<Account>;
|
120
119
|
/**
|
121
120
|
* Remove all open listeners this is useful when you want to
|
122
121
|
* remove the Fuel instance and avoid memory leaks.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fuel.d.ts","sourceRoot":"","sources":["../../src/connectors/fuel.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"fuel.d.ts","sourceRoot":"","sources":["../../src/connectors/fuel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOjD,OAAO,KAAK,EAAE,OAAO,EAA2B,YAAY,EAAE,MAAM,SAAS,CAAC;AAe9E,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACjC,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,qBAAa,IAAK,SAAQ,aAAa;IACrC,MAAM,CAAC,WAAW,SAA4B;IAC9C,MAAM,CAAC,aAAa,EAAE,UAAU,CAAM;IACtC,OAAO,CAAC,QAAQ,CAAC,CAAgC;IACjD,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MAAM,GAAG,eAAe,EACjC,iBAAiB,CAAC,EAAE,QAAQ,GAAG,OAAO,GACrC,OAAO,CAAC,OAAO,CAAC;IAKnB;;;OAGG;IACH,WAAW,IAAI,IAAI;IAQnB;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAI/B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/connectors/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/connectors/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC"}
|
@@ -1,16 +1,2 @@
|
|
1
|
-
import type { BNInput } from '@fuel-ts/math';
|
2
1
|
export type { Asset, Fuel as AssetFuel, Ethereum as AssetEthereum } from '@fuels/assets';
|
3
|
-
export type AssetData = {
|
4
|
-
name?: string;
|
5
|
-
assetId: string;
|
6
|
-
imageUrl?: string;
|
7
|
-
symbol?: string;
|
8
|
-
decimals?: number;
|
9
|
-
isCustom?: boolean;
|
10
|
-
chainId?: number;
|
11
|
-
network?: string;
|
12
|
-
};
|
13
|
-
export type AssetAmount = AssetData & {
|
14
|
-
amount?: BNInput;
|
15
|
-
};
|
16
2
|
//# sourceMappingURL=asset.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/asset.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/asset.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,IAAI,IAAI,SAAS,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,eAAe,CAAC"}
|
@@ -31,10 +31,6 @@ export type Network = {
|
|
31
31
|
* Read more at: https://docs.fuel.network/docs/specs/abi/json-abi-format/
|
32
32
|
*/
|
33
33
|
export type FuelABI = JsonAbi;
|
34
|
-
export type FuelProviderConfig = {
|
35
|
-
id?: string;
|
36
|
-
url: string;
|
37
|
-
};
|
38
34
|
export declare enum MessageTypes {
|
39
35
|
ping = "ping",
|
40
36
|
uiEvent = "uiEvent",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-type.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/data-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC;AAE9B,
|
1
|
+
{"version":3,"file":"data-type.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/data-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC;AAE9B,oBAAY,YAAY;IACtB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,gBAAgB,qBAAqB;CACtC"}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { Asset } from '@fuels/assets';
|
2
|
-
import type { ICreateChange, IUpdateChange, IDeleteChange } from 'dexie-observable/api';
|
3
2
|
import type { JSONRPCRequest, JSONRPCResponse } from 'json-rpc-2.0';
|
4
3
|
import type { FuelConnector } from '../fuel-connector';
|
5
4
|
import type { FuelConnectorEventTypes } from './connector-types';
|
@@ -48,10 +47,6 @@ export type EventMessage<T = EventMessageEvents> = BaseEvent<{
|
|
48
47
|
readonly type: MessageTypes.event;
|
49
48
|
readonly events: T;
|
50
49
|
}>;
|
51
|
-
export type CommunicationEventArg<T> = T extends MessageTypes.request ? RequestMessage : T extends MessageTypes.response ? ResponseMessage : T extends MessageTypes.uiEvent ? UIEventMessage : T extends MessageTypes.event ? EventMessage : T extends MessageTypes.removeConnection ? string : unknown;
|
52
|
-
export type DatabaseEvents = ['delete', 'create', 'update'];
|
53
|
-
export type DatabaseObservableEvent<T extends Array<string>> = `${T[number]}:${DatabaseEvents[number]}`;
|
54
|
-
export type DatabaseEventArg<T extends string> = T extends `${string}:create` ? ICreateChange : T extends `${string}:update` ? IUpdateChange : T extends `${string}:delete` ? IDeleteChange : unknown;
|
55
50
|
/**
|
56
51
|
* Event trigger when the accounts available to the
|
57
52
|
* connection changes.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"events.d.ts","source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eAAe,GAAG;IAC5B,IAAI,EAAE,uBAAuB,CAAC,UAAU,CAAC;IACzC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAC5B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,uBAAuB,CAAC,gBAAgB,CAAC;IAC/C,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,uBAAuB,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC3B,eAAe,GACf,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,aAAa,GACb,eAAe,GACf,cAAc,GACd,WAAW,CAAC;AAEhB,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC"}
|
@@ -1,10 +1,8 @@
|
|
1
1
|
export * from './connector-metadata';
|
2
2
|
export * from './connector-types';
|
3
|
-
export * from './constants';
|
4
3
|
export * from './data-type';
|
5
4
|
export * from './events';
|
6
5
|
export * from './local-storage';
|
7
|
-
export * from './nertwork-data';
|
8
6
|
export * from './target-object';
|
9
7
|
export * from './message';
|
10
8
|
export * from './asset';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../src/connectors/utils/cache.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../src/connectors/utils/cache.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,QAAQ,GAAG;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,OAAO,CAAC;KAChB,GAAG,IAAI,CAAC;CACV,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,QAAQ,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,OAAO,CAAC,EACzE,EAAE,EAAE,CAAC,EACL,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,eAAe,GACzC,CAAC,CAqBH"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connectors/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,iCAAiC,CAAC;AAChD,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connectors/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,iCAAiC,CAAC;AAChD,cAAc,YAAY,CAAC"}
|