vite 6.0.3 → 6.0.4
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.
Potentially problematic release.
This version of vite might be problematic. Click here for more details.
- package/dist/client/client.mjs +4 -4
- package/dist/node/chunks/{dep-yUJfKD1i.js → dep-BZMjGe_U.js} +453 -195
- package/dist/node/chunks/{dep-CjE1AkI6.js → dep-CrWUFq3l.js} +1 -1
- package/dist/node/chunks/{dep-BiVmWRQp.js → dep-pSQn2Hds.js} +1 -1
- package/dist/node/cli.js +5 -5
- package/dist/node/index.d.ts +12 -7
- package/dist/node/index.js +2 -2
- package/dist/node/module-runner.js +2 -2
- package/dist/node-cjs/publicUtils.cjs +104 -66
- package/package.json +13 -12
package/dist/client/client.mjs
CHANGED
@@ -286,11 +286,11 @@ const createInvokeableTransport = (transport) => {
|
|
286
286
|
if (!promise) return;
|
287
287
|
if (promise.timeoutId) clearTimeout(promise.timeoutId);
|
288
288
|
rpcPromises.delete(invokeId);
|
289
|
-
const {
|
290
|
-
if (
|
291
|
-
promise.reject(
|
289
|
+
const { error, result } = data.data;
|
290
|
+
if (error) {
|
291
|
+
promise.reject(error);
|
292
292
|
} else {
|
293
|
-
promise.resolve(
|
293
|
+
promise.resolve(result);
|
294
294
|
}
|
295
295
|
return;
|
296
296
|
}
|