@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.
package/package.json
CHANGED
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.
|
|
532
|
-
"resolved": "https://registry.npmjs.org/ky/-/ky-1.14.
|
|
533
|
-
"integrity": "sha512-
|
|
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"
|