@pooflabs/web 0.0.40 → 0.0.43
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/{index-BSBKiLWi.esm.js → index-D4AGvIAD.esm.js} +2 -2
- package/dist/{index-BSBKiLWi.esm.js.map → index-D4AGvIAD.esm.js.map} +1 -1
- package/dist/{index-CdHX3Tgg.js → index-DhhR0WRy.js} +15 -2
- package/dist/index-DhhR0WRy.js.map +1 -0
- package/dist/{index-YqkhFncb.esm.js → index-DsQ3lRxj.esm.js} +15 -2
- package/dist/index-DsQ3lRxj.esm.js.map +1 -0
- package/dist/{index-UIsHf4b_.js → index-pn682_P9.js} +2 -2
- package/dist/{index-UIsHf4b_.js.map → index-pn682_P9.js.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +5 -3
- package/dist/index-CdHX3Tgg.js.map +0 -1
- package/dist/index-YqkhFncb.esm.js.map +0 -1
|
@@ -9870,6 +9870,10 @@ async function setMany(many, options) {
|
|
|
9870
9870
|
lastTxSignature = transactionResult.transactionSignature;
|
|
9871
9871
|
signedTransaction = transactionResult.signedTransaction;
|
|
9872
9872
|
}
|
|
9873
|
+
// Sync items after all transactions are confirmed
|
|
9874
|
+
// Wait for 1.5 seconds to ensure all transactions are confirmed
|
|
9875
|
+
await new Promise(resolve => setTimeout(resolve, 1500));
|
|
9876
|
+
await syncItems(many.map(m => m.path));
|
|
9873
9877
|
// TODO: Should we wait here or do the optimistic subscription updates like below?
|
|
9874
9878
|
return Object.assign(Object.assign({}, documents.map(d => d.document)), { transactionId: lastTxSignature, signedTransaction: signedTransaction });
|
|
9875
9879
|
}
|
|
@@ -10081,6 +10085,15 @@ async function signAndSubmitTransaction(transaction, feePayer) {
|
|
|
10081
10085
|
}
|
|
10082
10086
|
return config.authProvider.signAndSubmitTransaction(transaction, feePayer);
|
|
10083
10087
|
}
|
|
10088
|
+
async function syncItems(paths) {
|
|
10089
|
+
try {
|
|
10090
|
+
const response = await makeApiRequest('PUT', 'items/sync', { paths }, undefined);
|
|
10091
|
+
return response.data;
|
|
10092
|
+
}
|
|
10093
|
+
catch (error) {
|
|
10094
|
+
throw error;
|
|
10095
|
+
}
|
|
10096
|
+
}
|
|
10084
10097
|
|
|
10085
10098
|
/**
|
|
10086
10099
|
* WebSocket v2 Subscription Manager
|
|
@@ -13052,7 +13065,7 @@ async function loadDependencies() {
|
|
|
13052
13065
|
const [reactModule, reactDomModule, phantomModule] = await Promise.all([
|
|
13053
13066
|
import('react'),
|
|
13054
13067
|
import('react-dom/client'),
|
|
13055
|
-
Promise.resolve().then(function () { return require('./index-
|
|
13068
|
+
Promise.resolve().then(function () { return require('./index-pn682_P9.js'); })
|
|
13056
13069
|
]);
|
|
13057
13070
|
React$1 = reactModule;
|
|
13058
13071
|
ReactDOM$1 = reactDomModule;
|
|
@@ -34230,4 +34243,4 @@ exports.signSessionCreateMessage = signSessionCreateMessage;
|
|
|
34230
34243
|
exports.signTransaction = signTransaction;
|
|
34231
34244
|
exports.subscribe = subscribe;
|
|
34232
34245
|
exports.useAuth = useAuth;
|
|
34233
|
-
//# sourceMappingURL=index-
|
|
34246
|
+
//# sourceMappingURL=index-DhhR0WRy.js.map
|