quantum-resistant-rustykey 0.13.3 → 0.13.5

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.
@@ -1589,9 +1589,18 @@ async function handleOp(request) {
1589
1589
  };
1590
1590
  }
1591
1591
  }
1592
+ var opChain = Promise.resolve();
1593
+ function enqueueOp(request) {
1594
+ const result = opChain.then(() => handleOp(request));
1595
+ opChain = result.then(
1596
+ () => void 0,
1597
+ () => void 0
1598
+ );
1599
+ return result;
1600
+ }
1592
1601
  var workerScope = self;
1593
1602
  workerScope.onmessage = (event) => {
1594
- void handleOp(event.data).then((result) => {
1603
+ void enqueueOp(event.data).then((result) => {
1595
1604
  const transfers = [];
1596
1605
  if (result.ok) {
1597
1606
  if (result.pk) transfers.push(result.pk.buffer);