@microsoft/agents-hosting-storage-blob 1.4.0-beta.7.g541749904d → 1.4.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/src/ignoreError.d.ts +2 -1
- package/package.json +3 -3
- package/src/ignoreError.ts +1 -1
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* @param err - The error to check.
|
|
4
4
|
* @returns A boolean indicating whether the error should be ignored.
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
type IgnoreError = (err: Error) => boolean;
|
|
7
7
|
export declare function ignoreError<T>(promise: Promise<T>, ignore: IgnoreError): Promise<T | null>;
|
|
8
8
|
export declare function isStatusCodeError(...codes: number[]): IgnoreError;
|
|
9
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@microsoft/agents-hosting-storage-blob",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.2",
|
|
5
5
|
"homepage": "https://github.com/microsoft/Agents-for-js",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@azure/core-auth": "^1.10.1",
|
|
20
20
|
"@azure/storage-blob": "^12.31.0",
|
|
21
|
-
"@microsoft/agents-hosting": "1.4.
|
|
22
|
-
"@microsoft/agents-activity": "1.4.
|
|
21
|
+
"@microsoft/agents-hosting": "1.4.2",
|
|
22
|
+
"@microsoft/agents-activity": "1.4.2",
|
|
23
23
|
"zod": "^3.25.75"
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
package/src/ignoreError.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @param err - The error to check.
|
|
4
4
|
* @returns A boolean indicating whether the error should be ignored.
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
type IgnoreError = (err: Error) => boolean
|
|
7
7
|
|
|
8
8
|
export async function ignoreError<T> (promise: Promise<T>, ignore: IgnoreError): Promise<T | null> {
|
|
9
9
|
try {
|