@lvce-editor/extension-host-helper-process 0.103.8 → 0.103.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-host-helper-process",
3
- "version": "0.103.8",
3
+ "version": "0.103.10",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1,4 +1,5 @@
1
1
  import * as Assert from '../Assert/Assert.js'
2
+ import * as CommandMapRef from '../CommandMapRef/CommandMapRef.js'
2
3
  import * as IpcChild from '../IpcChild/IpcChild.js'
3
4
  import * as IpcChildType from '../IpcChildType/IpcChildType.js'
4
5
  import * as HandleIpcClosed from '../HandleIpcClosed/HandleIpcClosed.js'
@@ -9,6 +10,7 @@ export const handleWebSocket = async (handle, request) => {
9
10
  Assert.object(request)
10
11
  handle.on('close', HandleIpcClosed.handleIpcClosed)
11
12
  await IpcChild.listen({
13
+ commandMap: CommandMapRef.commandMapRef,
12
14
  method: IpcChildType.WebSocket,
13
15
  request,
14
16
  handle,
@@ -1,6 +1,7 @@
1
1
  import { resolve, sep } from 'node:path'
2
2
  import * as Command from '@lvce-editor/command'
3
3
  import * as Assert from '../Assert/Assert.js'
4
+ import * as CommandMapRef from '../CommandMapRef/CommandMapRef.js'
4
5
  import * as ImportScript from '../ImportScript/ImportScript.js'
5
6
  import { VError } from '../VError/VError.js'
6
7
 
@@ -31,6 +32,7 @@ export const loadFile = async (path) => {
31
32
  if (module && module.commandMap) {
32
33
  const commandMap = module.commandMap
33
34
  Command.register(commandMap)
35
+ Object.assign(CommandMapRef.commandMapRef, commandMap)
34
36
  } else if (module && module.execute) {
35
37
  throw new Error(`execute function is not supported anymore. Use commandMap instead`)
36
38
  } else {