@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/README.md +0 -3
- package/dist/{chunk-U5QCC3U4.js → chunk-JITMWCAX.js} +1 -1
- package/dist/{chunk-U5QCC3U4.js.map → chunk-JITMWCAX.js.map} +1 -1
- package/dist/{chunk-MZGTF76B.js → chunk-UZCYXPAL.js} +1 -1
- package/dist/handler.js +1 -1
- package/dist/headers.js +1 -1
- package/dist/trigger.js +1 -1
- package/dist/types.d.ts +27 -5
- package/dist/types.js.map +1 -1
- package/package.json +1 -2
- /package/dist/{chunk-MZGTF76B.js.map → chunk-UZCYXPAL.js.map} +0 -0
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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":["
|
|
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.
|
|
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",
|
|
File without changes
|