@pooflabs/core 0.0.30 → 0.0.31
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/client/operations.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
|
@@ -71,4 +71,4 @@ export declare function setFile(path: string, file: File | null): Promise<boolea
|
|
|
71
71
|
export declare function signMessage(message: string): Promise<string>;
|
|
72
72
|
export declare function signTransaction(transaction: Transaction | VersionedTransaction): Promise<Transaction | VersionedTransaction>;
|
|
73
73
|
export declare function signAndSubmitTransaction(transaction: Transaction | VersionedTransaction, feePayer?: PublicKey): Promise<string>;
|
|
74
|
-
export declare function syncItems(paths: string[]): Promise<any>;
|
|
74
|
+
export declare function syncItems(paths: string[], options?: SetOptions): Promise<any>;
|
package/dist/index.js
CHANGED
|
@@ -3591,7 +3591,7 @@ async function setMany(many, options) {
|
|
|
3591
3591
|
// Sync items after all transactions are confirmed
|
|
3592
3592
|
// Wait for 1.5 seconds to ensure all transactions are confirmed
|
|
3593
3593
|
await new Promise(resolve => setTimeout(resolve, 1500));
|
|
3594
|
-
await syncItems(many.map(m => m.path));
|
|
3594
|
+
await syncItems(many.map(m => m.path), options);
|
|
3595
3595
|
// TODO: Should we wait here or do the optimistic subscription updates like below?
|
|
3596
3596
|
return Object.assign(Object.assign({}, documents.map(d => d.document)), { transactionId: lastTxSignature, signedTransaction: signedTransaction });
|
|
3597
3597
|
}
|
|
@@ -3816,9 +3816,9 @@ async function signAndSubmitTransaction(transaction, feePayer) {
|
|
|
3816
3816
|
}
|
|
3817
3817
|
return config.authProvider.signAndSubmitTransaction(transaction, feePayer);
|
|
3818
3818
|
}
|
|
3819
|
-
async function syncItems(paths) {
|
|
3819
|
+
async function syncItems(paths, options) {
|
|
3820
3820
|
try {
|
|
3821
|
-
const response = await makeApiRequest('PUT', 'items/sync', { paths },
|
|
3821
|
+
const response = await makeApiRequest('PUT', 'items/sync', { paths }, options === null || options === void 0 ? void 0 : options._overrides);
|
|
3822
3822
|
return response.data;
|
|
3823
3823
|
}
|
|
3824
3824
|
catch (error) {
|
package/dist/index.mjs
CHANGED
|
@@ -3571,7 +3571,7 @@ async function setMany(many, options) {
|
|
|
3571
3571
|
// Sync items after all transactions are confirmed
|
|
3572
3572
|
// Wait for 1.5 seconds to ensure all transactions are confirmed
|
|
3573
3573
|
await new Promise(resolve => setTimeout(resolve, 1500));
|
|
3574
|
-
await syncItems(many.map(m => m.path));
|
|
3574
|
+
await syncItems(many.map(m => m.path), options);
|
|
3575
3575
|
// TODO: Should we wait here or do the optimistic subscription updates like below?
|
|
3576
3576
|
return Object.assign(Object.assign({}, documents.map(d => d.document)), { transactionId: lastTxSignature, signedTransaction: signedTransaction });
|
|
3577
3577
|
}
|
|
@@ -3796,9 +3796,9 @@ async function signAndSubmitTransaction(transaction, feePayer) {
|
|
|
3796
3796
|
}
|
|
3797
3797
|
return config.authProvider.signAndSubmitTransaction(transaction, feePayer);
|
|
3798
3798
|
}
|
|
3799
|
-
async function syncItems(paths) {
|
|
3799
|
+
async function syncItems(paths, options) {
|
|
3800
3800
|
try {
|
|
3801
|
-
const response = await makeApiRequest('PUT', 'items/sync', { paths },
|
|
3801
|
+
const response = await makeApiRequest('PUT', 'items/sync', { paths }, options === null || options === void 0 ? void 0 : options._overrides);
|
|
3802
3802
|
return response.data;
|
|
3803
3803
|
}
|
|
3804
3804
|
catch (error) {
|