scandoc-ai-components 0.1.4 → 0.1.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.
- package/dist/index.js +16 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11195,6 +11195,20 @@ class ExtractorVideo {
|
|
|
11195
11195
|
this.waitingForSecondSide = false;
|
|
11196
11196
|
this.hasShownTurnMessage = false;
|
|
11197
11197
|
this.turnMessageTimer = null;
|
|
11198
|
+
|
|
11199
|
+
// DEBUG: detect overwrites
|
|
11200
|
+
Object.defineProperty(this, "onExtractedResults", {
|
|
11201
|
+
configurable: true,
|
|
11202
|
+
get: () => this.__onExtractedResults,
|
|
11203
|
+
set: v => {
|
|
11204
|
+
console.log("[ScanDocAI] onExtractedResults set to:", v, "type:", typeof v);
|
|
11205
|
+
console.trace("[ScanDocAI] onExtractedResults overwrite stack");
|
|
11206
|
+
this.__onExtractedResults = v;
|
|
11207
|
+
}
|
|
11208
|
+
});
|
|
11209
|
+
|
|
11210
|
+
// initialize through setter so we see the first set too:
|
|
11211
|
+
this.onExtractedResults = onExtractedResults;
|
|
11198
11212
|
}
|
|
11199
11213
|
reset() {
|
|
11200
11214
|
this.stopVideo();
|
|
@@ -11670,6 +11684,8 @@ function getExtractionVideo(tokenOrCallback, maybeCallback) {
|
|
|
11670
11684
|
// If called again, update callback too
|
|
11671
11685
|
if (typeof cb === "function") {
|
|
11672
11686
|
EXTRACTION_VIDEO.onExtractedResults = cb;
|
|
11687
|
+
} else if (cb !== undefined) {
|
|
11688
|
+
console.warn("Ignoring non-function callback passed to getExtractionVideo:", cb);
|
|
11673
11689
|
}
|
|
11674
11690
|
return EXTRACTION_VIDEO;
|
|
11675
11691
|
}
|