New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lucia

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lucia - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

6

CHANGELOG.md
# lucia
## 2.1.0
### Minor changes
- [#911](https://github.com/pilcrowOnPaper/lucia/pull/911) by [@pilcrowOnPaper](https://github.com/pilcrowOnPaper) : Allow `null` in `csrfProtection.allowedSubdomains` configuration array
## 2.0.0

@@ -4,0 +10,0 @@

2

dist/utils/url.d.ts
export declare const isAllowedUrl: (incomingUrl: string | URL, app: {
url: string | URL;
allowedSubdomains: "*" | string[];
allowedSubdomains: "*" | (string | null)[];
}) => boolean;

@@ -18,2 +18,4 @@ export const isAllowedUrl = (incomingUrl, app) => {

const allowedHosts = app.allowedSubdomains.map((subdomain) => {
if (subdomain === null)
return appBaseDomain;
return [subdomain, appBaseDomain].join(".");

@@ -20,0 +22,0 @@ });

{
"name": "lucia",
"version": "2.0.0",
"version": "2.1.0",
"description": "A simple and flexible authentication library",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc