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