Commit Graph
30 Commits
Author SHA1 Message Date
Tony 6d901cb7dc style(eslint): add eslint-unicorn (#14257)
* style: add eslint-unicorn

* style: fix unicorn/no-useless-spread

* style: fix unicorn/no-useless-promise-resolve-reject

* style: fix unicorn/no-for-loop

* fix: codeql bad HTML filtering regexp

* fix: codeql incomplete replace

* fix: unicorn/no-abusive-eslint-disable

* style: fix unicorn/no-new-array

* style: fix unicorn/no-typeof-undefined

* style: fix unicorn/no-zero-fractions

* style: fix unicorn/no-empty-file

* style: fix unicorn/prefer-date-now

* revert: auto fix unicorn/prefer-switch on lib/v2/kuaidi100/utils.js

* style: fix unicorn/prefer-array-find

* style: fix unicorn/prefer-array-flat

* style: fix unicorn/prefer-array-flat-map

* style: fix unicorn/prefer-at

* style: fix unicorn/prefer-string-starts-ends-with

* style: fix unicorn/prefer-includes

* fix: codeql URL substring sanitization

* style: fix unicorn/prefer-optional-catch-binding

* style: fix unicorn/catch-error-name

* style: fix unicorn/escape-case

* style: fix unicorn/prefer-native-coercion-functions

* style: fix unicorn/prefer-regexp-test

* style: fix unicorn/require-array-join-separator

* style: fix unicorn/prefer-math-trunc

* style: fix unicorn/prefer-negative-index

* style: fix unicorn/prefer-dom-node-dataset

* style: fix unicorn/prefer-dom-node-text-content

* style: fix unicorn/prefer-query-selector

* style: fix unicorn/no-array-for-each

* style: fix unicorn/no-negated-condition

* style: fix unicorn/prefer-add-event-listener

* style: fix unicorn/import-style

* style: fix prefer-regex-literals

* style: disable unicorn/no-useless-switch-case

* style: disable unicorn/text-encoding-identifier-case

* style: fix unicorn/prefer-set-has

* style: fix unicorn/prefer-spread

* revert: auto fix on lib/routes/universities/ynnu/edu/base64.js

* style: fix unicorn/no-useless-undefined

* style: fix unicorn/no-array-push-push

* style: fix unicorn/no-useless-undefined again

* style: fix unicorn/no-lonely-if

* style: fix unicorn/prefer-reflect-apply

* style: fix unicorn/switch-case-braces

* style: fix unicorn/prefer-switch

* style: fix unicorn/prefer-array-some

* fix: deepscan UNUSED_VAR_ASSIGN

* style: fix unicorn/prefer-ternary

* fix: follow-up of unicorn/prefer-ternary

* revert: auto fix of unicorn/prefer-string-slice for substring()

* style: disable unicorn/prefer-string-slice

fix: auto fix slice over deprecated substr

* style: fix unicorn/throw-new-error

* style: fix unicorn/filename-case

* test: fix dateParser renaming

* style: fix unicorn/better-regex

* style: fix unicorn/prefer-string-replace-all

* fix(deps): add sanitize-html

* style: fix no-prototype-builtins

* style: fix unicorn/consistent-destructuring

* style: fix unicorn/consistent-function-scoping

* style: fix unicorn/prefer-regexp-test

* style: fix unicorn/prefer-logical-operator-over-ternary

* style: fix unicorn/no-array-callback-reference

* style: add prefer-object-has-own

* style: warn unicorn/no-empty-file

* style: fix unicorn/prefer-number-properties

* style: fix no-useless-undefined again

* style: fix unicorn/numeric-separators-style

* style: disable unicorn/no-array-callback-reference

false postive with cheerio
2024-01-18 20:43:40 +08:00
dependabot[bot] 8e49c5df65 chore(deps): bump @sentry/node from 7.88.0 to 7.89.0 (#14083)
* chore(deps): bump @sentry/node from 7.88.0 to 7.89.0

Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript) from 7.88.0 to 7.89.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/7.88.0...7.89.0)

---
updated-dependencies:
- dependency-name: "@sentry/node"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: fix pnpm install

* fix: replace deprecated `configureScope` in favor of `getCurrentScope()`

ref: https://github.com/getsentry/sentry-javascript/blob/b27c2367acb312c4e9c2fd1aa2cdaf5b8cff1dad/MIGRATION.md

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-24 03:51:46 +08:00
Tony 7da162041f fix(core): duplicated path if the error is thrown from parameter (#13967)
* fix(core): double namespace if the error is thrown from parameter

* test: fix test case
2023-12-06 08:00:00 +08:00
Tony 7dee6a82d4 fix(core): v2 route path should keep mounted in stats if error throws (#13965) 2023-12-06 02:11:36 +08:00
Rongrong e1ee28267e fix(core): RequestInProgressError cache age (#9850)
* fix(core): RequestInProgressError cache age

Signed-off-by: Rongrong <i@rong.moe>

* fix: ci test

Signed-off-by: Rongrong <i@rong.moe>
2022-05-30 17:30:41 +08:00
TonyRL ac43d15af0 chore: fix vercel git hash
docs: https://vercel.com/docs/concepts/git/vercel-for-github
2022-05-21 15:20:21 +00:00
Tony baeafb97a5 feat: git hash on error (#9373) 2022-03-24 01:10:47 +08:00
NeverBehave 0792f7ba25 feat(core): first attempt to init script standard (#8224)
- lazy load
- rate limit per path
- init .debug.json support
- docs
- maintainer
- radar
2021-09-22 05:41:00 -07:00
Sukka ea21cfdd28 perf: lazyload sentry sdk for faster cold start speed (#8125) 2021-09-01 15:53:04 +08:00
SettingDust 4db1c91cfa fix(route): pixiv login (#7623) 2021-06-23 20:37:55 -07:00
DIYgod 177c36cae7 feat: sentry route timeout 2021-02-01 20:06:23 +08:00
Henry c292502e14 feat: 优化错误输出
fix #5982

通过`NODE_ENV`控制错误输出
2020-10-23 17:35:24 +01:00
Henry Wang d984ffa849 doc: 增加 PR 模板,修改 issue 模板 (#5314) 2020-07-31 18:43:31 +01:00
Henry Wang bffb7200e4 fix: producthunt URL (#5163) 2020-07-10 14:13:36 +08:00
Henry Wang 7475bcacfb feat: 报错页面增加一个快速生成 issue 的按钮 (#5141) 2020-07-07 17:41:10 +08:00
howel52 3e846e6919 fix: only collect errors which route path was matched (#4673) 2020-05-08 11:27:48 +08:00
DIYgod 7bdda509fe feat(pkg): error handling 2019-09-19 18:15:51 +08:00
DIYgod 4445443946 feat: use dynamical config 2019-09-18 17:45:21 +08:00
DIYgod 889f3118b1 test: add SENTRY env 2019-09-09 14:47:44 +08:00
DIYgod 16263b020c test: fix debug test case 2019-09-04 21:56:16 +08:00
DIYgod 24cab914d8 feat: error page 2019-09-04 16:00:00 +08:00
DIYgod 0af16097b3 feat: replace text 2019-09-04 14:28:29 +08:00
DIYgod 223d426d91 feat: handle HTTPError 2019-09-04 14:27:38 +08:00
DIYgod 3cebb70ef4 feat: name field for sentry 2019-09-03 23:06:44 +08:00
DIYgod 7c65bb5b18 feat: support Sentry 2019-09-03 18:11:05 +08:00
DIYgod f7e8682ba8 feat: add error routes and error paths info 2019-08-23 00:15:13 +08:00
DIYgod dea283d0bd test: filter_time 2019-06-13 16:10:08 +08:00
DIYgod e2badbfa98 chore: module alias for all routes 2019-05-15 15:27:15 +08:00
DIYgod cc7d8ed4a1 remove sentry 2019-01-31 12:04:20 +08:00
DIYgod 38a90e29b0 optimize directory structure 2018-12-26 18:35:10 +08:00