firstly 0.0.14 → 0.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # firstly
2
2
 
3
+ ## 0.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [#98](https://github.com/jycouet/firstly/pull/98)
8
+ [`0d708f6`](https://github.com/jycouet/firstly/commit/0d708f605dc9d2943730f68ebf99c1d2f8a49926)
9
+ Thanks [@jycouet](https://github.com/jycouet)! - prepare JYC 0.0.15
10
+
3
11
  ## 0.0.14
4
12
 
5
13
  ### Patch Changes
@@ -252,9 +252,10 @@ export class AuthControllerServer {
252
252
  const validPassword = oSafe.password.verify(password ?? '', existingAccount?.hashPassword ?? '');
253
253
  if (validPassword) {
254
254
  const session = await ff_createSession(existingAccount.userId);
255
+ const user = await repo(oSafe.User).findId(existingAccount.userId);
255
256
  return {
256
257
  message: 'ok',
257
- user: oSafe.transformDbUserToClientUser(session, existingAccount.user),
258
+ user: oSafe.transformDbUserToClientUser(session, user),
258
259
  };
259
260
  }
260
261
  authModuleRaw.log.error({ email, passwordLength: password.length });
@@ -1,6 +1,6 @@
1
1
  import type { OAuth2Tokens } from 'arctic';
2
2
  import type { ClassType, UserInfo } from 'remult';
3
- import { Module } from '../../api';
3
+ import { Module } from '../../server';
4
4
  import type { RecursivePartial } from '../../utils/types';
5
5
  import { FFAuthAccount, FFAuthUser, FFAuthUserSession } from '../Entities';
6
6
  import type { FirstlyData, FirstlyDataAuth, ProviderAuthorizationURLOptions } from '../types';
@@ -5,7 +5,7 @@ import { getRelativePackagePath } from '@kitql/internals';
5
5
  import { building } from '$app/environment';
6
6
  import { AuthController } from '..';
7
7
  import { FF_Role } from '../..';
8
- import { Module } from '../../api';
8
+ import { Module } from '../../server';
9
9
  import { FF_Role_Auth, FFAuthAccount, FFAuthUser, FFAuthUserSession } from '../Entities';
10
10
  import { AuthControllerServer } from './AuthController.server';
11
11
  import { validateSessionToken } from './helperDb';
@@ -1,6 +1,6 @@
1
1
  export { a as default };
2
2
  declare function a(e: any, s: any): any;
3
3
  declare namespace a {
4
- let ______13017: string;
5
- export { ______13017 as __@$@13017 };
4
+ let ______13020: string;
5
+ export { ______13020 as __@$@13020 };
6
6
  }
@@ -1 +1 @@
1
- import{v as r,x as l,aa as m,J as o,K as d,M as n,O as p,P as u,R as i}from"./index-C9jzxOBu.js";p();a[u]="src/lib/modules/admin/Page.svelte";function a(e,s){r(new.target),l(s,!1,a);var t=m("Hello from admin");return o(e,t),d({...n()})}i(a);export{a as default};
1
+ import{v as r,x as l,aa as m,J as o,K as d,M as n,O as p,P as u,R as i}from"./index-7Nh2ct-y.js";p();a[u]="src/lib/modules/admin/Page.svelte";function a(e,s){r(new.target),l(s,!1,a);var t=m("Hello from admin");return o(e,t),d({...n()})}i(a);export{a as default};
@@ -1,6 +1,6 @@
1
1
  export { a as default };
2
2
  declare function a(e: any, s: any): any;
3
3
  declare namespace a {
4
- let ______13017: string;
5
- export { ______13017 as __@$@13017 };
4
+ let ______13020: string;
5
+ export { ______13020 as __@$@13020 };
6
6
  }
@@ -1 +1 @@
1
- import{v as r,x as l,aa as o,J as m,K as p,M as u,O as d,P as f,R as g}from"./index-C9jzxOBu.js";d();a[f]="src/lib/modules/storage/Page.svelte";function a(e,s){r(new.target),l(s,!1,a);var t=o("Hello from files");return m(e,t),p({...u()})}g(a);export{a as default};
1
+ import{v as r,x as l,aa as o,J as m,K as p,M as u,O as d,P as f,R as g}from"./index-7Nh2ct-y.js";d();a[f]="src/lib/modules/storage/Page.svelte";function a(e,s){r(new.target),l(s,!1,a);var t=o("Hello from files");return m(e,t),p({...u()})}g(a);export{a as default};
@@ -1,6 +1,6 @@
1
1
  export { Q as default };
2
2
  declare function Q(n: any, e: any): any;
3
3
  declare namespace Q {
4
- let ______13017: string;
5
- export { ______13017 as __@$@13017 };
4
+ let ______13020: string;
5
+ export { ______13020 as __@$@13020 };
6
6
  }