scrapely 1.2.28 → 1.2.29
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/actor.d.ts +2 -0
- package/dist/actor.js +6 -0
- package/package.json +1 -1
package/dist/actor.d.ts
CHANGED
|
@@ -469,6 +469,8 @@ export declare class Actor {
|
|
|
469
469
|
* item's URL or id, for platform diagnostics. Does nothing unless the platform enabled
|
|
470
470
|
* capture for this run (SCRAPELY_DEBUG_CAPTURE=1 on its own diagnostic runs).
|
|
471
471
|
*/
|
|
472
|
+
/** debugCapture for synchronous code: fire and forget. Does nothing unless capture is enabled for the run. */
|
|
473
|
+
static debugCaptureSync(key: string, payload: unknown): void;
|
|
472
474
|
static debugCapture(key: string, payload: unknown): Promise<void>;
|
|
473
475
|
/**
|
|
474
476
|
* Helper to resolve storage identifier to a string ID or name.
|
package/dist/actor.js
CHANGED
|
@@ -669,6 +669,12 @@ class Actor {
|
|
|
669
669
|
* item's URL or id, for platform diagnostics. Does nothing unless the platform enabled
|
|
670
670
|
* capture for this run (SCRAPELY_DEBUG_CAPTURE=1 on its own diagnostic runs).
|
|
671
671
|
*/
|
|
672
|
+
/** debugCapture for synchronous code: fire and forget. Does nothing unless capture is enabled for the run. */
|
|
673
|
+
static debugCaptureSync(key, payload) {
|
|
674
|
+
if (process.env.SCRAPELY_DEBUG_CAPTURE !== '1' || !key)
|
|
675
|
+
return;
|
|
676
|
+
void Actor.debugCapture(key, payload);
|
|
677
|
+
}
|
|
672
678
|
static async debugCapture(key, payload) {
|
|
673
679
|
if (process.env.SCRAPELY_DEBUG_CAPTURE !== '1' || !key)
|
|
674
680
|
return;
|