@lvce-editor/test-worker 3.8.0 → 3.9.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.
@@ -1055,6 +1055,11 @@ const expect$1 = locator => {
1055
1055
  };
1056
1056
  };
1057
1057
 
1058
+ const Expect = {
1059
+ __proto__: null,
1060
+ expect: expect$1
1061
+ };
1062
+
1058
1063
  const nameAnonymousFunction = (fn, name) => {
1059
1064
  Object.defineProperty(fn, 'name', {
1060
1065
  value: name
@@ -1178,7 +1183,9 @@ test.skip = async id => {
1178
1183
  const text = `test skipped ${id}`;
1179
1184
  await invoke('TestFrameWork.showOverlay', state, background, text);
1180
1185
  };
1181
- const expect = expect$1;
1186
+ const {
1187
+ expect
1188
+ } = Expect;
1182
1189
 
1183
1190
  const TestFrameWork = {
1184
1191
  __proto__: null,
@@ -1624,9 +1631,18 @@ const TestFrameWorkComponentExtension = {
1624
1631
 
1625
1632
  const Memfs = 'memfs';
1626
1633
 
1634
+ const Backslash = '\\';
1627
1635
  const Slash$1 = '/';
1628
1636
 
1629
- const Slash = Slash$1;
1637
+ const Character = {
1638
+ __proto__: null,
1639
+ Backslash,
1640
+ Slash: Slash$1
1641
+ };
1642
+
1643
+ const {
1644
+ Slash
1645
+ } = Character;
1630
1646
 
1631
1647
  const writeFile = async (path, content) => {
1632
1648
  await invoke('FileSystem.writeFile', path, content);
@@ -2115,6 +2131,7 @@ const getPortTuple = () => {
2115
2131
  };
2116
2132
  };
2117
2133
 
2134
+ // eslint-disable-next-line @typescript-eslint/prefer-readonly-parameter-types
2118
2135
  const waitForFirstEventEvent = async port => {
2119
2136
  const {
2120
2137
  resolve,
package/package.json CHANGED
@@ -1,77 +1,23 @@
1
1
  {
2
2
  "name": "@lvce-editor/test-worker",
3
- "version": "3.8.0",
3
+ "version": "3.9.0",
4
4
  "description": "",
5
- "main": "dist/testWorkerMain.js",
5
+ "keywords": [],
6
+ "license": "MIT",
7
+ "author": "",
6
8
  "type": "module",
9
+ "main": "dist/testWorkerMain.js",
7
10
  "directories": {
8
11
  "test": "test"
9
12
  },
10
- "keywords": [],
11
- "author": "",
12
- "license": "MIT",
13
- "xo": {
14
- "rules": {
15
- "unicorn/filename-case": "off",
16
- "unicorn/prefer-query-selector": "off",
17
- "indent": "off",
18
- "semi": "off",
19
- "no-unused-vars": "off",
20
- "unicorn/numeric-separators-style": "off",
21
- "no-extra-semi": "off",
22
- "arrow-body-style": "off",
23
- "padded-blocks": "off",
24
- "capitalized-comments": "off",
25
- "padding-line-between-statements": "off",
26
- "arrow-parens": "off",
27
- "no-warning-comments": "off",
28
- "array-bracket-spacing": "off",
29
- "comma-spacing": "off",
30
- "unicorn/no-array-callback-reference": "off",
31
- "comma-dangle": "off",
32
- "operator-linebreak": "off",
33
- "no-case-declarations": "off",
34
- "no-undef": "off",
35
- "object-curly-spacing": "off",
36
- "object-shorthand": "off",
37
- "complexity": "off",
38
- "no-labels": "off",
39
- "no-multi-assign": "off",
40
- "max-params": "off",
41
- "no-bitwise": "off",
42
- "unicorn/prefer-math-trunc": "off",
43
- "no-await-in-loop": "off",
44
- "unicorn/prefer-add-event-listener": "off",
45
- "no-unused-expressions": "off",
46
- "node/prefer-global/process": "off",
47
- "unicorn/no-for-loop": "off",
48
- "unicorn/prevent-abbreviations": "off",
49
- "unicorn/switch-case-braces": "off",
50
- "quotes": "off",
51
- "@typescript-eslint/semi": "off",
52
- "object-curly-newline": "off",
53
- "@typescript-eslint/naming-convention": "off",
54
- "@typescript-eslint/indent": "off",
55
- "n/file-extension-in-import": "off",
56
- "@typescript-eslint/promise-function-async": "off",
57
- "@typescript-eslint/no-unsafe-argument": "off",
58
- "@typescript-eslint/quotes": "off",
59
- "@typescript-eslint/object-curly-spacing": "off",
60
- "@typescript-eslint/padding-line-between-statements": "off",
61
- "@typescript-eslint/prefer-ts-expect-error": "off",
62
- "@typescript-eslint/consistent-type-definitions": "off",
63
- "@typescript-eslint/ban-ts-comment": "off",
64
- "@typescript-eslint/no-confusing-void-expression": "off"
65
- },
66
- "ignores": [
67
- "distmin"
68
- ]
69
- },
70
13
  "nodemonConfig": {
71
14
  "watch": [
72
15
  "src"
73
16
  ],
74
17
  "ext": "ts,js",
75
18
  "exec": "node scripts/build.js"
19
+ },
20
+ "engines": {
21
+ "node": ">=22"
76
22
  }
77
23
  }