@primate/core 0.9.19 → 0.9.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,7 @@ import Store from "#store/Store";
2
2
  declare const _default: import("pema").ObjectType<import("pema").NormalizeSchemaObject<{
3
3
  readonly cookie: {
4
4
  httpOnly: import("pema").DefaultType<import("pema").BooleanType<undefined>, true>;
5
+ maxAge: import("pema").OptionalType<import("pema").UintType<"u32", undefined>>;
5
6
  name: import("pema").DefaultType<import("pema").StringType, "session_id">;
6
7
  path: import("pema").DefaultType<import("pema").StringType, "/">;
7
8
  sameSite: import("pema").DefaultType<import("pema").UnionType<[import("pema").LiteralType<"Strict", undefined>, import("pema").LiteralType<"Lax", undefined>, import("pema").LiteralType<"None", undefined>], undefined>, "Lax" | "None" | "Strict">;
@@ -10,6 +11,7 @@ declare const _default: import("pema").ObjectType<import("pema").NormalizeSchema
10
11
  }>, undefined, {
11
12
  cookie: {
12
13
  httpOnly: boolean;
14
+ maxAge: number | undefined;
13
15
  name: string;
14
16
  path: string;
15
17
  sameSite: "Lax" | "None" | "Strict";
@@ -6,6 +6,7 @@ import p from "pema";
6
6
  export default p({
7
7
  cookie: {
8
8
  httpOnly: p.boolean.default(true),
9
+ maxAge: p.u32.optional(),
9
10
  name: p.string.default("session_id"),
10
11
  path: p.string.startsWith("/").default("/"),
11
12
  sameSite: p.union("Strict", "Lax", "None").default("Lax"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primate/core",
3
- "version": "0.9.19",
3
+ "version": "0.9.20",
4
4
  "description": "The universal web framework",
5
5
  "homepage": "https://primate.run",
6
6
  "bugs": "https://github.com/primate-run/primate/issues",