sst 3.0.31 → 3.0.33

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.
@@ -9,7 +9,7 @@ export const OauthAdapter =
9
9
  return async function (routes, ctx) {
10
10
  function getClient(c) {
11
11
  const callback = new URL(c.req.url);
12
- callback.pathname = callback.pathname.replace(/authorize\/.*$/, "callback");
12
+ callback.pathname = callback.pathname.replace(/authorize.*$/, "callback");
13
13
  callback.search = "";
14
14
  callback.host = c.req.header("x-forwarded-host") || callback.host;
15
15
  return [
@@ -4,7 +4,7 @@ export const OidcAdapter = /* @__PURE__ */ (config) => {
4
4
  return async function (routes, ctx) {
5
5
  routes.get("/authorize", async (c) => {
6
6
  const callback = new URL(c.req.url);
7
- callback.pathname = callback.pathname.replace(/authorize\/.*$/, "callback");
7
+ callback.pathname = callback.pathname.replace(/authorize.*$/, "callback");
8
8
  callback.search = "";
9
9
  callback.host = c.req.header("x-forwarded-host") || callback.host;
10
10
  const client = new config.issuer.Client({
package/dist/resource.js CHANGED
@@ -1,4 +1,4 @@
1
- import { env } from "node:process";
1
+ import { env } from "process";
2
2
  const raw = {
3
3
  // @ts-expect-error,
4
4
  ...globalThis.$SST_LINKS,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "sst",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
- "version": "3.0.31",
6
+ "version": "3.0.33",
7
7
  "main": "./dist/index.js",
8
8
  "exports": {
9
9
  ".": "./dist/index.js",