sst 3.2.38 → 3.2.40

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.
@@ -1,2 +1,2 @@
1
- declare const _default: import("hono/tiny").Hono<import("hono").Env, import("hono/types").BlankSchema, "/">;
1
+ declare const _default: import("hono/hono-base").HonoBase<import("hono").Env, import("hono/types").BlankSchema, string>;
2
2
  export default _default;
@@ -2,7 +2,6 @@
2
2
  import { Adapter } from "./adapter/adapter.js";
3
3
  import { JWTPayload } from "jose";
4
4
  import { SessionBuilder } from "./session.js";
5
- import { Hono } from "hono/tiny";
6
5
  export interface OnSuccessResponder<T extends {
7
6
  type: any;
8
7
  properties: any;
@@ -37,6 +36,7 @@ export declare function AuthHandler<Providers extends Record<string, Adapter<any
37
36
  provider: key;
38
37
  } & (Providers[key] extends Adapter<infer T> ? T : {})>;
39
38
  }[keyof Providers]>(input: {
39
+ basePath?: string;
40
40
  stream?: boolean;
41
41
  session?: Sessions;
42
42
  providers: Providers;
@@ -55,4 +55,4 @@ export declare function AuthHandler<Providers extends Record<string, Adapter<any
55
55
  success?(session: Sessions["$typeValues"], input: {}): Promise<Response>;
56
56
  };
57
57
  };
58
- }): Hono<import("hono").Env, import("hono/types").BlankSchema, "/">;
58
+ }): import("hono/hono-base").HonoBase<import("hono").Env, import("hono/types").BlankSchema, string>;
@@ -39,7 +39,7 @@ import process from "node:process";
39
39
  import { Resource } from "../resource.js";
40
40
  export const aws = awsHandle;
41
41
  export function AuthHandler(input) {
42
- const app = new Hono();
42
+ const app = input.basePath ? new Hono().basePath(input.basePath) : new Hono();
43
43
  if (!input.callbacks.auth.error) {
44
44
  input.callbacks.auth.error = async (err) => {
45
45
  return new Response(err.message, {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "sst",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
- "version": "3.2.38",
6
+ "version": "3.2.40",
7
7
  "main": "./dist/index.js",
8
8
  "exports": {
9
9
  ".": "./dist/index.js",
@@ -47,11 +47,11 @@
47
47
  }
48
48
  },
49
49
  "optionalDependencies": {
50
- "sst-linux-x86": "3.2.38",
51
- "sst-linux-x64": "3.2.38",
52
- "sst-linux-arm64": "3.2.38",
53
- "sst-darwin-x64": "3.2.38",
54
- "sst-darwin-arm64": "3.2.38"
50
+ "sst-linux-x86": "3.2.40",
51
+ "sst-linux-arm64": "3.2.40",
52
+ "sst-linux-x64": "3.2.40",
53
+ "sst-darwin-x64": "3.2.40",
54
+ "sst-darwin-arm64": "3.2.40"
55
55
  },
56
56
  "dependencies": {
57
57
  "aws4fetch": "^1.0.18",