@lvce-editor/text-search-worker 4.10.0 → 4.11.0
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.
|
@@ -1141,7 +1141,7 @@ const collapseDetails = state => {
|
|
|
1141
1141
|
};
|
|
1142
1142
|
|
|
1143
1143
|
const rpcs = Object.create(null);
|
|
1144
|
-
const set$
|
|
1144
|
+
const set$g = (id, rpc) => {
|
|
1145
1145
|
rpcs[id] = rpc;
|
|
1146
1146
|
};
|
|
1147
1147
|
const get$1 = id => {
|
|
@@ -1165,7 +1165,11 @@ const create$3 = rpcId => {
|
|
|
1165
1165
|
return rpc.invokeAndTransfer(method, ...params);
|
|
1166
1166
|
},
|
|
1167
1167
|
set(rpc) {
|
|
1168
|
-
set$
|
|
1168
|
+
set$g(rpcId, rpc);
|
|
1169
|
+
},
|
|
1170
|
+
async dispose() {
|
|
1171
|
+
const rpc = get$1(rpcId);
|
|
1172
|
+
await rpc.dispose();
|
|
1169
1173
|
}
|
|
1170
1174
|
};
|
|
1171
1175
|
};
|
|
@@ -1173,8 +1177,7 @@ const RendererWorker$1 = 1;
|
|
|
1173
1177
|
const {
|
|
1174
1178
|
invoke: invoke$3,
|
|
1175
1179
|
invokeAndTransfer: invokeAndTransfer$3,
|
|
1176
|
-
set: set$3
|
|
1177
|
-
} = create$3(RendererWorker$1);
|
|
1180
|
+
set: set$3} = create$3(RendererWorker$1);
|
|
1178
1181
|
const RendererWorker = {
|
|
1179
1182
|
__proto__: null,
|
|
1180
1183
|
invoke: invoke$3,
|