clickgo 3.16.13 → 3.16.15

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/README.md CHANGED
@@ -25,7 +25,7 @@ Load the module loader first, and then load it using the module loader.
25
25
  **index.html**
26
26
 
27
27
  ```html
28
- <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.8/dist/loader.min.js?path=index&npm={'clickgo':'3.16.13'}"></script>
28
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.8/dist/loader.min.js?path=index&npm={'clickgo':'3.16.15'}"></script>
29
29
  ```
30
30
 
31
31
  **index.js**
package/dist/clickgo.js CHANGED
@@ -39,7 +39,7 @@ exports.isNative = isNative;
39
39
  exports.getPlatform = getPlatform;
40
40
  exports.isImmersion = isImmersion;
41
41
  exports.hasFrame = hasFrame;
42
- const version = '3.16.13';
42
+ const version = '3.16.15';
43
43
  function getVersion() {
44
44
  return version;
45
45
  }
package/dist/clickgo.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- const version = '3.16.13';
16
+ const version = '3.16.15';
17
17
  export function getVersion(): string {
18
18
  return version;
19
19
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/lib/tool.js CHANGED
@@ -873,7 +873,7 @@ function request(url, opt) {
873
873
  if (opt.timeout) {
874
874
  xhr.timeout = opt.timeout;
875
875
  }
876
- if (opt.headers) {
876
+ if (opt.headers && !Array.isArray(opt.headers)) {
877
877
  for (const k in opt.headers) {
878
878
  xhr.setRequestHeader(k, opt.headers[k]);
879
879
  }
package/dist/lib/tool.ts CHANGED
@@ -1069,7 +1069,7 @@ export function request(url: string, opt: types.IRequestOptions): Promise<null |
1069
1069
  if (opt.timeout) {
1070
1070
  xhr.timeout = opt.timeout;
1071
1071
  }
1072
- if (opt.headers) {
1072
+ if (opt.headers && !Array.isArray(opt.headers)) {
1073
1073
  for (const k in opt.headers) {
1074
1074
  xhr.setRequestHeader(k, (opt.headers as any)[k]);
1075
1075
  }
@@ -1137,7 +1137,7 @@ export function execCommand(ac: string): void {
1137
1137
  if (!['copy', 'cut'].includes(ac)) {
1138
1138
  return;
1139
1139
  }
1140
- // eslint-disable-next-line deprecation/deprecation
1140
+ // eslint-disable-next-line @typescript-eslint/no-deprecated
1141
1141
  document.execCommand(ac);
1142
1142
  }
1143
1143
 
Binary file
Binary file
Binary file
package/eslint.config.js CHANGED
@@ -1,14 +1,11 @@
1
1
  // eslint.config.js
2
- const LitertEslintRules = require('@litert/eslint-plugin-rules');
2
+ const rules = require('@litert/eslint-plugin-recommended-rules');
3
3
 
4
4
  module.exports = [
5
- ...LitertEslintRules.configs.typescript,
5
+ ...rules.typescript,
6
6
  {
7
- plugins: {
8
- '@litert/rules': require('@litert/eslint-plugin-rules'),
9
- },
10
7
  files: [
11
- '**/*.ts',
8
+ '**/*.ts', // don't add `./` before the path
12
9
  ],
13
10
  languageOptions: {
14
11
  parserOptions: {
@@ -18,7 +15,8 @@ module.exports = [
18
15
  },
19
16
  rules: {
20
17
  '@typescript-eslint/no-explicit-any': 'off',
21
- 'max-lines': 3000
18
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
19
+ 'max-lines': ['warn', 5000]
22
20
  }
23
21
  }
24
22
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.16.13",
3
+ "version": "3.16.15",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",
@@ -18,12 +18,12 @@
18
18
  "native4": "electron ./dist/test/native/index4"
19
19
  },
20
20
  "devDependencies": {
21
- "@litert/eslint-plugin-rules": "^0.2.5",
21
+ "@litert/eslint-plugin-rules": "^0.3.1",
22
22
  "@litert/loader": "^3.5.8",
23
- "@types/node": "^22.13.5",
24
- "electron": "^34.2.0",
23
+ "@types/node": "^24.0.1",
24
+ "electron": "^36.4.0",
25
25
  "jszip": "^3.10.1",
26
- "terser": "^5.39.0",
27
- "typescript": "^5.7.3"
26
+ "terser": "^5.42.0",
27
+ "typescript": "^5.8.3"
28
28
  }
29
29
  }
package/types/index.d.ts CHANGED
@@ -926,6 +926,15 @@ export interface IGreatselectAddEvent extends ICustomEvent {
926
926
  };
927
927
  }
928
928
 
929
+ // --- Captcha Control ---
930
+
931
+ export interface ICaptchaResultEvent {
932
+ 'detail': {
933
+ 'result': number;
934
+ 'token': string;
935
+ };
936
+ }
937
+
929
938
  // --- Pdf Control ---
930
939
 
931
940
  export interface IPdfViewEvent {