@lvce-editor/typescript-compile-process 4.1.0 → 5.0.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.
- package/dist/index.js +9 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1168,12 +1168,12 @@ const Auto = () => {
|
|
|
1168
1168
|
|
|
1169
1169
|
const getModule = method => {
|
|
1170
1170
|
switch (method) {
|
|
1171
|
-
case NodeForkedProcess:
|
|
1172
|
-
return NodeForkedProcessRpcClient;
|
|
1173
|
-
case ElectronUtilityProcess:
|
|
1174
|
-
return ElectronUtilityProcessRpcClient;
|
|
1175
1171
|
case ElectronMessagePort:
|
|
1176
1172
|
return ElectronMessagePortRpcClient;
|
|
1173
|
+
case ElectronUtilityProcess:
|
|
1174
|
+
return ElectronUtilityProcessRpcClient;
|
|
1175
|
+
case NodeForkedProcess:
|
|
1176
|
+
return NodeForkedProcessRpcClient;
|
|
1177
1177
|
case WebSocket:
|
|
1178
1178
|
return WebSocketRpcParent;
|
|
1179
1179
|
default:
|
|
@@ -1196,8 +1196,8 @@ const handleElectronMessagePort = async (messagePort, ipcId) => {
|
|
|
1196
1196
|
// Assert.number(ipcId)
|
|
1197
1197
|
// TODO use handleIncomingIpc function
|
|
1198
1198
|
await listen$1({
|
|
1199
|
-
|
|
1200
|
-
|
|
1199
|
+
messagePort,
|
|
1200
|
+
method: ElectronMessagePort
|
|
1201
1201
|
});
|
|
1202
1202
|
};
|
|
1203
1203
|
|
|
@@ -1222,8 +1222,8 @@ const isModuleNotFoundError = error => {
|
|
|
1222
1222
|
};
|
|
1223
1223
|
|
|
1224
1224
|
class TypeScriptNotFoundError extends Error {
|
|
1225
|
-
constructor() {
|
|
1226
|
-
super(
|
|
1225
|
+
constructor(typescriptPath) {
|
|
1226
|
+
super(`Failed to load typescript: Typescript not found at "${typescriptPath}"`);
|
|
1227
1227
|
this.code = 'E_TYPESCRIPT_NOT_FOUND';
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
@@ -1238,7 +1238,7 @@ const loadTypeScript = async typescriptPath => {
|
|
|
1238
1238
|
return actual;
|
|
1239
1239
|
} catch (error) {
|
|
1240
1240
|
if (isModuleNotFoundError(error)) {
|
|
1241
|
-
throw new TypeScriptNotFoundError();
|
|
1241
|
+
throw new TypeScriptNotFoundError(typescriptPath);
|
|
1242
1242
|
}
|
|
1243
1243
|
throw new VError(error, `Failed to load typescript`);
|
|
1244
1244
|
}
|