fix(core): centralize `isDate` fn and use in all adapters
☕️ Reasoning
- Each adapter had (the same)
isDatefunction andisoDateregexp - Centralized in
@auth/core/adaptersand imported in each adapter- This creates the first non-type export from
core/adapters, therefore it needed a new entry in the export map. Cool with yall?
- This creates the first non-type export from
🧢 Checklist
- [ ] Documentation
- [ ] Tests
- [x] Ready to be merged
🎫 Affected issues
📌 Resources
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| auth-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 14, 2024 9:55am |
2 Ignored Deployments
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| next-auth-docs | ⬜️ Ignored (Inspect) | Visit Preview | May 14, 2024 9:55am | |
| proxy | ⬜️ Ignored (Inspect) | Visit Preview | May 14, 2024 9:55am |
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
| Package | New capabilities | Transitives | Size | Publisher |
|---|---|---|---|---|
| npm/@auth/[email protected] | None | +1 |
144 kB | balazsorban |
| npm/[email protected] | Transitive: environment, eval, filesystem, unsafe | +24 |
10.3 MB | svelte-language-tools-deploy |
| npm/[email protected] | Transitive: unsafe | +13 |
5.9 MB | svelte-admin |
| npm/[email protected] | environment, eval, filesystem, network, shell, unsafe | +18 |
50.4 MB | vitebot |
🚮 Removed packages: npm/@types/[email protected], npm/@typescript-eslint/[email protected], npm/@typescript-eslint/[email protected]
Codecov Report
Attention: Patch coverage is 78.37838% with 8 lines in your changes are missing coverage. Please review.
Project coverage is 38.35%. Comparing base (
30cb59a) to head (b9f2f22).
| Files | Patch % | Lines |
|---|---|---|
| packages/core/src/adapters.ts | 0.00% | 8 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #10872 +/- ##
==========================================
- Coverage 38.47% 38.35% -0.12%
==========================================
Files 175 175
Lines 27476 27437 -39
Branches 1218 1206 -12
==========================================
- Hits 10571 10524 -47
- Misses 16905 16913 +8
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎
To accept the risk, merge this PR and you will not be notified again.
| Alert | Package | Note | Source |
|---|---|---|---|
| Install scripts | npm/[email protected] |
| |
| Install scripts | npm/@sveltejs/[email protected] |
|
|
Next steps
What is an install script?
Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.
Take a deeper look at the dependency
Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.
Remove the package
If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.
Mark a package as acceptable risk
To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all
@SocketSecurity ignore npm/[email protected]@SocketSecurity ignore npm/@sveltejs/[email protected]