@server/next 0.28.13 → 0.28.15

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.
Files changed (3) hide show
  1. package/index.d.ts +1 -1
  2. package/index.js +2 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -224,7 +224,7 @@ declare global {
224
224
  var env: Record<string, any>;
225
225
  }
226
226
 
227
- type Mids<O, Path extends string> = Middleware<O, PathToParams<Path>>[];
227
+ type Mids<O extends ServerConfig, Path extends string> = Middleware<O, PathToParams<Path>>[];
228
228
  type PathOrMiddle<O extends ServerConfig = object> = string | Middleware<O>;
229
229
  type FullRoute = [RouterMethod, string, ...Middleware[]][];
230
230
  declare class Router<O extends ServerConfig = object> {
package/index.js CHANGED
@@ -334,7 +334,9 @@ var callback = async (ctx) => {
334
334
  email: profile.email,
335
335
  time: (/* @__PURE__ */ new Date()).toISOString().replace(/\.[0-9]*/, "")
336
336
  };
337
+ const existing = await store.get(String(profile.id));
337
338
  const user = cleanUser({
339
+ ...existing ?? {},
338
340
  id: profile.id,
339
341
  name: profile.name,
340
342
  email: profile.email,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@server/next",
3
- "version": "0.28.13",
3
+ "version": "0.28.15",
4
4
  "description": "A fully-fledged web server with routing, file uploads, sessions, static files, schema validation, websockets, testing, etc.",
5
5
  "homepage": "https://server-js.com/",
6
6
  "repository": "https://github.com/franciscop/server-next.git",