@azure/functions-authentication-events 1.0.0-alpha.20250131.1 → 1.0.0-alpha.20250204.1

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ Copyright (c) Microsoft Corporation.
2
2
 
3
- Copyright (c) 2020 Microsoft
3
+ MIT License
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -12,7 +12,7 @@ furnished to do so, subject to the following conditions:
12
12
  The above copyright notice and this permission notice shall be included in all
13
13
  copies or substantial portions of the Software.
14
14
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
package/README.md CHANGED
@@ -214,6 +214,18 @@ To Test Token Augmentation, please do the following.
214
214
  - If you see the following error on Windows (it's a bug) when trying to run the created projected.
215
215
  - This can be resolved by executing this command in powershell `Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine` more info on this can be found [here](https://github.com/Azure/azure-functions-core-tools/issues/1821) and [here](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7)
216
216
 
217
+ ### Logging
218
+
219
+ Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
220
+
221
+ ```ts snippet:SetLogLevel
222
+ import { setLogLevel } from "@azure/logger";
223
+
224
+ setLogLevel("info");
225
+ ```
226
+
227
+ For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
228
+
217
229
  ## Next steps
218
230
 
219
231
  For more information on Azure SDK, please refer to [this website](https://azure.github.io/azure-sdk/)
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.49.1"
8
+ "packageVersion": "7.49.2"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure/functions-authentication-events",
3
- "version": "1.0.0-alpha.20250131.1",
3
+ "version": "1.0.0-alpha.20250204.1",
4
4
  "description": "Typescript Trigger SDK for Azure AD Authentication event custom extensions. Lets you focus on your business logic.",
5
5
  "sdk-type": "client",
6
6
  "main": "./dist/commonjs/index.js",
@@ -27,8 +27,8 @@
27
27
  "test:node": "npm run clean && dev-tool run build-package && npm run integration-test:node",
28
28
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",
29
29
  "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
30
- "unit-test:node": "dev-tool run test:vitest",
31
- "update-snippets": "echo skipped"
30
+ "unit-test:node": "dev-tool run test:vitest --no-test-proxy",
31
+ "update-snippets": "dev-tool run update-snippets --no-test-proxy"
32
32
  },
33
33
  "files": [
34
34
  "dist/",
@@ -55,22 +55,23 @@
55
55
  "dependencies": {
56
56
  "@azure/core-auth": "^1.9.0",
57
57
  "@azure/core-client": "^1.9.2",
58
- "@azure/core-rest-pipeline": "^1.18.0",
58
+ "@azure/core-rest-pipeline": "^1.18.2",
59
59
  "@azure/core-tracing": "^1.2.0",
60
60
  "@azure/logger": "^1.1.4",
61
- "tslib": "^2.2.0"
61
+ "tslib": "^2.8.1"
62
62
  },
63
63
  "devDependencies": {
64
+ "@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
64
65
  "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
65
66
  "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
66
67
  "@azure/functions": "^3.2.0",
67
- "@azure/identity": "^4.5.0",
68
+ "@azure/identity": "^4.6.0",
68
69
  "@types/node": "^18.0.0",
69
70
  "@vitest/browser": "^3.0.3",
70
71
  "@vitest/coverage-istanbul": "^3.0.3",
71
72
  "dotenv": "^16.0.0",
72
73
  "eslint": "^9.9.0",
73
- "playwright": "^1.49.0",
74
+ "playwright": "^1.50.1",
74
75
  "typescript": "~5.7.2",
75
76
  "vitest": "^3.0.3"
76
77
  },
@@ -86,6 +87,7 @@
86
87
  },
87
88
  "type": "module",
88
89
  "tshy": {
90
+ "project": "./tsconfig.src.json",
89
91
  "exports": {
90
92
  "./package.json": "./package.json",
91
93
  ".": "./src/index.ts"
@@ -98,8 +100,7 @@
98
100
  "browser",
99
101
  "react-native"
100
102
  ],
101
- "selfLink": false,
102
- "project": "./tsconfig.src.json"
103
+ "selfLink": false
103
104
  },
104
105
  "browser": "./dist/browser/index.js",
105
106
  "exports": {
@@ -122,5 +123,6 @@
122
123
  "default": "./dist/commonjs/index.js"
123
124
  }
124
125
  }
125
- }
126
+ },
127
+ "react-native": "./dist/react-native/index.js"
126
128
  }