-
-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: [#1693] Adds CookieSameSiteEnum and IVirtualServer as exports to…
… the index file (#1699)
- Loading branch information
1 parent
8d1cf8f
commit 02130fb
Showing
8 changed files
with
151 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import CookieSameSiteEnum from './enums/CookieSameSiteEnum.js'; | ||
import ICookie from './ICookie.js'; | ||
|
||
export default <ICookie>{ | ||
// Required | ||
key: null, | ||
originURL: null, | ||
|
||
// Optional | ||
value: null, | ||
domain: '', | ||
path: '', | ||
expires: null, | ||
httpOnly: false, | ||
secure: false, | ||
sameSite: CookieSameSiteEnum.lax | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import CookieSameSiteEnum from './enums/CookieSameSiteEnum.js'; | ||
|
||
export default interface IOptionalCookie { | ||
// Required | ||
key: string; | ||
originURL: URL; | ||
|
||
// Optional | ||
value?: string | null; | ||
domain?: string; | ||
path?: string; | ||
expires?: Date | null; | ||
httpOnly?: boolean; | ||
secure?: boolean; | ||
sameSite?: CookieSameSiteEnum; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters