@adobe/spacecat-shared-scrape-client 1.0.3 → 1.0.4
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-scrape-client-v1.0.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-scrape-client-v1.0.3...@adobe/spacecat-shared-scrape-client-v1.0.4) (2025-07-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* (scrape-job-supervisor): add offset for URL numbering in batches ([#868](https://github.com/adobe/spacecat-shared/issues/868)) ([12789c0](https://github.com/adobe/spacecat-shared/commit/12789c0cabe33ad5e526793d645bfef421a851af))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-scrape-client-v1.0.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-scrape-client-v1.0.2...@adobe/spacecat-shared-scrape-client-v1.0.3) (2025-07-21)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -173,11 +173,14 @@ function ScrapeJobSupervisor(services, config) {
|
|
|
173
173
|
urlBatches = [urls]; // Wrap in an array to maintain consistent structure
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
for (const batch of urlBatches) {
|
|
176
|
+
for (const [index, batch] of urlBatches.entries()) {
|
|
177
|
+
// Calculate the offset for numbering the URLs in the batch
|
|
178
|
+
const offset = index * maxUrlsPerMessage;
|
|
177
179
|
const message = {
|
|
178
180
|
processingType,
|
|
179
181
|
jobId: scrapeJob.getId(),
|
|
180
182
|
batch,
|
|
183
|
+
batchOffset: offset,
|
|
181
184
|
customHeaders,
|
|
182
185
|
options,
|
|
183
186
|
};
|