@lvce-editor/test-worker 5.3.0 → 5.4.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/api.d.ts CHANGED
@@ -33,7 +33,7 @@ declare const toggleDeveloperTools: () => Promise<void>;
33
33
  declare const showSaveFilePicker: () => Promise<void>;
34
34
  declare const mockSaveFilePicker: (fn: () => string) => Promise<void>;
35
35
  declare const mockConfirm: (fn: () => boolean) => Promise<void>;
36
- declare const executeMock: (id: number) => string;
36
+ declare const executeMock: (id: number, ...args: readonly any[]) => string;
37
37
  declare const setCursor: (rowIndex: number, columnIndex: number) => Promise<void>;
38
38
  declare const openCompletion: () => Promise<void>;
39
39
  declare const closeCompletion: () => Promise<void>;
@@ -1833,9 +1833,9 @@ const registerMock = fn => {
1833
1833
  mocks[id] = fn;
1834
1834
  return id;
1835
1835
  };
1836
- const executeMock$1 = id => {
1836
+ const executeMock$1 = (id, ...args) => {
1837
1837
  const fn = mocks[id];
1838
- return fn();
1838
+ return fn(...args);
1839
1839
  };
1840
1840
 
1841
1841
  const showSaveFilePicker = async () => {
@@ -1852,8 +1852,8 @@ const mockConfirm = async fn => {
1852
1852
  // @ts-ignore
1853
1853
  await invoke$1('ConfirmPrompt.mock', id);
1854
1854
  };
1855
- const executeMock = id => {
1856
- return executeMock$1(id);
1855
+ const executeMock = (id, ...args) => {
1856
+ return executeMock$1(id, ...args);
1857
1857
  };
1858
1858
 
1859
1859
  const TestFrameWorkComponentDialog = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "description": "Test Worker",
5
5
  "repository": {
6
6
  "type": "git",