@vunk/plus 1.6.9 → 1.6.10
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/package.json
CHANGED
|
@@ -77,7 +77,11 @@ function Ht($, C = "Operation failed") {
|
|
|
77
77
|
}
|
|
78
78
|
class Gt {
|
|
79
79
|
constructor() {
|
|
80
|
-
this.errorHandler = Ht("FeatureExtractorService"), this.worker = xt.path ? new Worker(
|
|
80
|
+
this.errorHandler = Ht("FeatureExtractorService"), this.worker = xt.path ? new Worker(
|
|
81
|
+
/* @vite-ignore */
|
|
82
|
+
`${xt.path}/feature.worker.js`,
|
|
83
|
+
{ type: "module" }
|
|
84
|
+
) : new Worker(
|
|
81
85
|
new URL(
|
|
82
86
|
/* @vite-ignore */
|
|
83
87
|
"/feature.worker.js",
|
|
@@ -357,7 +361,11 @@ class oe {
|
|
|
357
361
|
* @param onReady Worker初始化完成回调
|
|
358
362
|
*/
|
|
359
363
|
constructor(C, n) {
|
|
360
|
-
this.worker = null, this.callbacks = {}, this.isInitialized = !1, this.pendingChunks = /* @__PURE__ */ new Map(), this.completedChunks = /* @__PURE__ */ new Set(), this.totalFrames = 0, this.isProcessing = !1, this.globalChunkIndex = 0, this._def = new Nt(), this.worker = xt.path ? new Worker(
|
|
364
|
+
this.worker = null, this.callbacks = {}, this.isInitialized = !1, this.pendingChunks = /* @__PURE__ */ new Map(), this.completedChunks = /* @__PURE__ */ new Set(), this.totalFrames = 0, this.isProcessing = !1, this.globalChunkIndex = 0, this._def = new Nt(), this.worker = xt.path ? new Worker(
|
|
365
|
+
/* @vite-ignore */
|
|
366
|
+
`${xt.path}/streaming.inference.worker.js`,
|
|
367
|
+
{ type: "module" }
|
|
368
|
+
) : new Worker(
|
|
361
369
|
new URL(
|
|
362
370
|
/* @vite-ignore */
|
|
363
371
|
"/streaming.inference.worker.js",
|