@okf/ootils 1.21.0 → 1.21.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/browser.js CHANGED
@@ -634,7 +634,8 @@ var BASE_BULLMQ_CONFIG = {
634
634
  }
635
635
  },
636
636
  workerConfig: {
637
- concurrency: 50,
637
+ concurrency: 1,
638
+ // Sequential processing to avoid MongoDB write conflicts
638
639
  lockDuration: 3e5,
639
640
  // 5 minutes lock duration since annotation can be slow
640
641
  maxStalledCount: 3
@@ -773,7 +774,7 @@ var mergeAnnoDataIntoAnnotationsTags = ({
773
774
  prevObj,
774
775
  newLexValue,
775
776
  thisBlockValuePath,
776
- author = { id: null, name: "AI" }
777
+ author
777
778
  }) => {
778
779
  let newConsolidated = (0, import_lodash.cloneDeep)(prevObj) || {};
779
780
  const { annoData = {} } = newLexValue || {};
package/dist/browser.mjs CHANGED
@@ -597,7 +597,8 @@ var BASE_BULLMQ_CONFIG = {
597
597
  }
598
598
  },
599
599
  workerConfig: {
600
- concurrency: 50,
600
+ concurrency: 1,
601
+ // Sequential processing to avoid MongoDB write conflicts
601
602
  lockDuration: 3e5,
602
603
  // 5 minutes lock duration since annotation can be slow
603
604
  maxStalledCount: 3
@@ -736,7 +737,7 @@ var mergeAnnoDataIntoAnnotationsTags = ({
736
737
  prevObj,
737
738
  newLexValue,
738
739
  thisBlockValuePath,
739
- author = { id: null, name: "AI" }
740
+ author
740
741
  }) => {
741
742
  let newConsolidated = cloneDeep(prevObj) || {};
742
743
  const { annoData = {} } = newLexValue || {};
package/dist/node.js CHANGED
@@ -237,7 +237,8 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
237
237
  }
238
238
  },
239
239
  workerConfig: {
240
- concurrency: 50,
240
+ concurrency: 1,
241
+ // Sequential processing to avoid MongoDB write conflicts
241
242
  lockDuration: 3e5,
242
243
  // 5 minutes lock duration since annotation can be slow
243
244
  maxStalledCount: 3
@@ -2114,7 +2115,7 @@ var mergeAnnoDataIntoAnnotationsTags = ({
2114
2115
  prevObj,
2115
2116
  newLexValue,
2116
2117
  thisBlockValuePath,
2117
- author = { id: null, name: "AI" }
2118
+ author
2118
2119
  }) => {
2119
2120
  let newConsolidated = (0, import_lodash.cloneDeep)(prevObj) || {};
2120
2121
  const { annoData = {} } = newLexValue || {};
package/dist/node.mjs CHANGED
@@ -242,7 +242,8 @@ var init_GLOBAL_BULLMQ_CONFIG = __esm({
242
242
  }
243
243
  },
244
244
  workerConfig: {
245
- concurrency: 50,
245
+ concurrency: 1,
246
+ // Sequential processing to avoid MongoDB write conflicts
246
247
  lockDuration: 3e5,
247
248
  // 5 minutes lock duration since annotation can be slow
248
249
  maxStalledCount: 3
@@ -2079,7 +2080,7 @@ var mergeAnnoDataIntoAnnotationsTags = ({
2079
2080
  prevObj,
2080
2081
  newLexValue,
2081
2082
  thisBlockValuePath,
2082
- author = { id: null, name: "AI" }
2083
+ author
2083
2084
  }) => {
2084
2085
  let newConsolidated = cloneDeep(prevObj) || {};
2085
2086
  const { annoData = {} } = newLexValue || {};
package/dist/universal.js CHANGED
@@ -634,7 +634,8 @@ var BASE_BULLMQ_CONFIG = {
634
634
  }
635
635
  },
636
636
  workerConfig: {
637
- concurrency: 50,
637
+ concurrency: 1,
638
+ // Sequential processing to avoid MongoDB write conflicts
638
639
  lockDuration: 3e5,
639
640
  // 5 minutes lock duration since annotation can be slow
640
641
  maxStalledCount: 3
@@ -773,7 +774,7 @@ var mergeAnnoDataIntoAnnotationsTags = ({
773
774
  prevObj,
774
775
  newLexValue,
775
776
  thisBlockValuePath,
776
- author = { id: null, name: "AI" }
777
+ author
777
778
  }) => {
778
779
  let newConsolidated = (0, import_lodash.cloneDeep)(prevObj) || {};
779
780
  const { annoData = {} } = newLexValue || {};
@@ -597,7 +597,8 @@ var BASE_BULLMQ_CONFIG = {
597
597
  }
598
598
  },
599
599
  workerConfig: {
600
- concurrency: 50,
600
+ concurrency: 1,
601
+ // Sequential processing to avoid MongoDB write conflicts
601
602
  lockDuration: 3e5,
602
603
  // 5 minutes lock duration since annotation can be slow
603
604
  maxStalledCount: 3
@@ -736,7 +737,7 @@ var mergeAnnoDataIntoAnnotationsTags = ({
736
737
  prevObj,
737
738
  newLexValue,
738
739
  thisBlockValuePath,
739
- author = { id: null, name: "AI" }
740
+ author
740
741
  }) => {
741
742
  let newConsolidated = cloneDeep(prevObj) || {};
742
743
  const { annoData = {} } = newLexValue || {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.21.0",
6
+ "version": "1.21.2",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",