@shellicar/svelte-adapter-azure-functions 0.2.1 → 0.2.2

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/dist/types.d.ts CHANGED
@@ -1,8 +1,30 @@
1
+ type ClientPrincipalClaim = {
2
+ /**
3
+ * Type
4
+ */
5
+ typ: string;
6
+ /**
7
+ * Value
8
+ */
9
+ val: string;
10
+ };
1
11
  type ClientPrincipal = {
2
- identityProvider: string;
3
- userId: string;
4
- userDetails: string;
5
- userRoles: string[];
12
+ /**
13
+ * Identity Provider
14
+ */
15
+ auth_typ: string;
16
+ /**
17
+ * Claims
18
+ */
19
+ claims: ClientPrincipalClaim[];
20
+ /**
21
+ * Name Claim Type
22
+ */
23
+ name_typ: string;
24
+ /**
25
+ * Role Claim Type
26
+ */
27
+ role_typ: string;
6
28
  };
7
29
 
8
- export type { ClientPrincipal };
30
+ export type { ClientPrincipal, ClientPrincipalClaim };
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/types.ts"],"sourcesContent":["export type ClientPrincipal = {\n identityProvider: string;\n userId: string;\n userDetails: string;\n userRoles: string[];\n};\n"],"mappings":";;;;;AAAA;","names":[]}
1
+ {"version":3,"sources":["../src/types.ts"],"sourcesContent":["// https://learn.microsoft.com/en-us/azure/app-service/configure-authentication-user-identities#decoding-the-client-principal-header\n\nexport type ClientPrincipalClaim = {\n /**\n * Type\n */\n typ: string;\n /**\n * Value\n */\n val: string;\n};\n\nexport type ClientPrincipal = {\n /**\n * Identity Provider\n */\n auth_typ: string;\n /**\n * Claims\n */\n claims: ClientPrincipalClaim[];\n /**\n * Name Claim Type\n */\n name_typ: string;\n /**\n * Role Claim Type\n */\n role_typ: string;\n};\n"],"mappings":";;;;;AAAA;","names":[]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shellicar/svelte-adapter-azure-functions",
3
3
  "private": false,
4
- "version": "0.2.1",
4
+ "version": "0.2.2",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": "Stephen Hellicar",
@@ -39,7 +39,6 @@
39
39
  "@sveltejs/kit": "^2.15.2",
40
40
  "@types/node": "^22.10.5",
41
41
  "@types/set-cookie-parser": "^2.4.10",
42
- "escape-string-regexp": "^5.0.0",
43
42
  "set-cookie-parser": "^2.7.1",
44
43
  "terser": "^5.37.0",
45
44
  "tsup": "^8.3.5",