scripting-cli 1.2.2 → 1.2.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.
@@ -30,8 +30,8 @@ class Controller {
30
30
  socket.emit("socketId", socket.id);
31
31
  // socket.on('syncScriptFromClient', this.handleSyncScriptFromClient);
32
32
  // socket.on("syncScriptFromServer", this.handleSyncScriptFromClient);
33
- // socket.on('stopDebugScript', this.handleStopDebugScript);
34
33
  // socket.on("getFileContent", this.handleGetFileContent);
34
+ socket.on('stopDebugScript', this.handleStopDebugScript);
35
35
  socket.on("log", this.handleLog);
36
36
  socket.on("openFile", this.handleOpenFile);
37
37
  socket.on('disconnect', (reason) => {
@@ -160,8 +160,8 @@ class Controller {
160
160
  this.watcher = null;
161
161
  }
162
162
  await (0, util_1.writeDtsFiles)({
163
- globalDtsFileName: data[const_1.globalDtsFileName],
164
- scriptingDtsFileName: data[const_1.scriptingDtsFileName],
163
+ [const_1.globalDtsFileName]: data[const_1.globalDtsFileName],
164
+ [const_1.scriptingDtsFileName]: data[const_1.scriptingDtsFileName],
165
165
  });
166
166
  const scriptDir = (0, util_1.getScriptPath)(data.scriptName);
167
167
  if (!fs_1.default.existsSync(scriptDir)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scripting-cli",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "This plugin integrates the desktop editor synchronization feature of the Scripting app.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
package/src/controller.ts CHANGED
@@ -36,10 +36,10 @@ export class Controller {
36
36
 
37
37
  // socket.on("syncScriptFromServer", this.handleSyncScriptFromClient);
38
38
 
39
- // socket.on('stopDebugScript', this.handleStopDebugScript);
40
-
41
39
  // socket.on("getFileContent", this.handleGetFileContent);
42
40
 
41
+ socket.on('stopDebugScript', this.handleStopDebugScript);
42
+
43
43
  socket.on("log", this.handleLog);
44
44
 
45
45
  socket.on("openFile", this.handleOpenFile)
@@ -217,8 +217,8 @@ export class Controller {
217
217
  }
218
218
 
219
219
  await writeDtsFiles({
220
- globalDtsFileName: data[globalDtsFileName],
221
- scriptingDtsFileName: data[scriptingDtsFileName],
220
+ [globalDtsFileName]: data[globalDtsFileName],
221
+ [scriptingDtsFileName]: data[scriptingDtsFileName],
222
222
  });
223
223
 
224
224
  const scriptDir = getScriptPath(data.scriptName);