{"id":20079977,"url":"https://github.com/lei1248276/uni-use-interceptor","last_synced_at":"2026-01-24T12:47:02.023Z","repository":{"id":253737470,"uuid":"844381241","full_name":"lei1248276/uni-use-interceptor","owner":"lei1248276","description":"uni-app 优化版 uni Interceptor","archived":false,"fork":false,"pushed_at":"2024-08-19T06:24:25.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-26T12:58:58.964Z","etag":null,"topics":["interceptor","typescript","uni-api","uni-app"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/uni-use-interceptor","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lei1248276.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-19T06:24:05.000Z","updated_at":"2024-08-19T06:31:05.000Z","dependencies_parsed_at":"2024-08-19T06:54:44.605Z","dependency_job_id":"ded2552d-9bac-4f91-8106-6be5c2c95ee6","html_url":"https://github.com/lei1248276/uni-use-interceptor","commit_stats":null,"previous_names":["lei1248276/uni-use-interceptor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lei1248276/uni-use-interceptor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lei1248276%2Funi-use-interceptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lei1248276%2Funi-use-interceptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lei1248276%2Funi-use-interceptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lei1248276%2Funi-use-interceptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lei1248276","download_url":"https://codeload.github.com/lei1248276/uni-use-interceptor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lei1248276%2Funi-use-interceptor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28727923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["interceptor","typescript","uni-api","uni-app"],"created_at":"2024-11-13T15:25:32.888Z","updated_at":"2026-01-24T12:47:02.005Z","avatar_url":"https://github.com/lei1248276.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uni-use-interceptor\n- 优化版 uni Interceptor，使用方式与\"uni.addInterceptor\"一致，不同点在于\"uni.removeInterceptor\"是移除指定API所有拦截器，该实现可以移除其中一个或所有。\n\n\n## Install \n```bash\npnpm add uni-use-interceptor\n```\n```bash\nyarn add uni-use-interceptor\n```\n```bash\nnpm install uni-use-interceptor\n```\n\n## Usage\n```typescript\nimport useInterceptor, { removeAllInterceptor } from 'uni-use-interceptor'\nconst stop = useInterceptor('request', {\n  invoke(args) {\n    args.url = 'https://www.example.com/' + args.url\n  }\n})\n// 移除指定拦截器\nstop()\n// 移除所有拦截器\nremoveAllInterceptor('request')\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flei1248276%2Funi-use-interceptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flei1248276%2Funi-use-interceptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flei1248276%2Funi-use-interceptor/lists"}