@liminalfunctions/framework 1.0.53 → 1.0.54

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.
@@ -22,6 +22,7 @@ export declare abstract class F_Security_Model<Collection_ID extends string, Zod
22
22
  export type Auth_Data = {
23
23
  user_id: string;
24
24
  layers: {
25
+ layer: string;
25
26
  layer_id: string;
26
27
  permissions: {
27
28
  [key: string]: Operation[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liminalfunctions/framework",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "main": "./dist/index.js",
5
5
  "type": "module",
6
6
  "scripts": {
package/src/F_Compile.ts CHANGED
@@ -24,6 +24,12 @@ export function compile<Collection_ID extends string, ZodSchema extends z.ZodObj
24
24
  next();
25
25
  })*/
26
26
 
27
+ let me_path = [api_prefix, 'me'].join('/');
28
+ app.get(me_path, async (req: Request, res: Response) => {
29
+ let auth_data = await F_Security_Model.auth_fetcher(req);
30
+ res.json(auth_data)
31
+ });
32
+
27
33
 
28
34
  for(let access_layers of collection.access_layers){
29
35
  for(let layer of access_layers.layers){
@@ -72,6 +72,7 @@ export abstract class F_Security_Model<Collection_ID extends string, ZodSchema e
72
72
  export type Auth_Data = {
73
73
  user_id: string,
74
74
  layers: {
75
+ layer: string,
75
76
  layer_id: string,
76
77
  permissions: {[key: string]: Operation[]},
77
78
  special_permissions: {[key: string]: string[]}
@@ -528,9 +528,9 @@
528
528
  }
529
529
  },
530
530
  "node_modules/ky": {
531
- "version": "1.14.0",
532
- "resolved": "https://registry.npmjs.org/ky/-/ky-1.14.0.tgz",
533
- "integrity": "sha512-Rczb6FMM6JT0lvrOlP5WUOCB7s9XKxzwgErzhKlKde1bEV90FXplV1o87fpt4PU/asJFiqjYJxAJyzJhcrxOsQ==",
531
+ "version": "1.14.1",
532
+ "resolved": "https://registry.npmjs.org/ky/-/ky-1.14.1.tgz",
533
+ "integrity": "sha512-hYje4L9JCmpEQBtudo+v52X5X8tgWXUYyPcxKSuxQNboqufecl9VMWjGiucAFH060AwPXHZuH+WB2rrqfkmafw==",
534
534
  "license": "MIT",
535
535
  "engines": {
536
536
  "node": ">=18"