修正 fetchScriptBody 的 Accept 设定,避免触发 Error 406 #1306
+17
−4
Annotations
11 warnings
|
Complete job
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Lint:
src/pages/options/routes/script/ScriptEditor.tsx#L471
React Hook useEffect has missing dependencies: 'pageInit', 'pageUrlSearchParams', 'scriptDAO', and 'setPageUrlSearchParams'. Either include them or remove the dependency array
|
|
Lint:
src/pages/options/routes/script/ScriptEditor.tsx#L81
React Hook useEffect has missing dependencies: 'callbackEditor', 'hotKeys', 'node', 'onChange', and 'script'. Either include them or remove the dependency array. If 'callbackEditor' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
|
Lint:
src/pages/options/routes/ScriptList/index.tsx#L259
React Hook useEffect has a missing dependency: 'usp'. Either include it or remove the dependency array
|
|
Lint:
src/pages/options/routes/Logger.tsx#L107
React Hook useEffect has missing dependencies: 'init', 'labels', and 'loggerDAO'. Either include them or remove the dependency array
|
|
Lint:
src/pages/options/routes/Logger.tsx#L78
React Hook useEffect has missing dependencies: 'defaultQuery' and 'onQueryLog'. Either include them or remove the dependency array
|
|
Lint:
src/pages/install/App.tsx#L662
React Hook useEffect has missing dependencies: 'localFileHandle', 'scriptInfo?.uuid', 'setupWatchFile', and 'watchFile'. Either include them or remove the dependency array
|
|
Lint:
src/pages/install/App.tsx#L347
React Hook useEffect has a missing dependency: 'initAsync'. Either include it or remove the dependency array
|
|
Lint:
src/pages/confirm/App.tsx#L42
React Hook useEffect has missing dependencies: 't' and 'uuid'. Either include them or remove the dependency array
|
|
Lint:
src/pages/components/ScriptSetting/Match.tsx#L90
React Hook useEffect has a missing dependency: 'refreshMatch'. Either include it or remove the dependency array
|
|
Lint:
src/pages/components/CloudScriptPlan/index.tsx#L60
React Hook useEffect has a missing dependency: 'form'. Either include it or remove the dependency array
|
Loading