Skip to content

Updating Undici dependency #346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 3 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure/functions",
"version": "4.7.1-preview",
"version": "4.7.2",
"description": "Microsoft Azure Functions NodeJS Framework",
"keywords": [
"azure",
Expand Down Expand Up @@ -44,7 +44,7 @@
"@azure/functions-extensions-base": "0.1.0-preview",
"cookie": "^0.7.0",
"long": "^4.0.0",
"undici": "^5.13.0"
"undici": "^5.29.0"
},
"devDependencies": {
"@types/chai": "^4.2.22",
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License.

export const version = '4.7.1-preview';
export const version = '4.7.2';

export const returnBindingKey = '$return';
2 changes: 1 addition & 1 deletion src/converters/fromRpcTypedData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function fromRpcTypedData(data: RpcTypedData | null | undefined): unknown
return resourceFactoryResolver.createClient(data.modelBindingData.source, data.modelBindingData);
} catch (exception) {
throw new Error(
'Unable to create client. Please register the extensions library with your function app. ' +
'Please register the extensions library with your function app. ' +
`Error: ${exception instanceof Error ? exception.message : String(exception)}`
);
}
Expand Down
9 changes: 3 additions & 6 deletions test/converters/fromRpcTypedData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ describe('fromRpcTypedData - modelBindingData path', () => {

// Act & Assert
expect(() => fromRpcTypedData(data)).to.throw(
'Unable to create client. Please register the extensions library with your function app. ' +
'Error: Factory not registered'
'Please register the extensions library with your function app. ' + 'Error: Factory not registered'
);
});

Expand All @@ -240,8 +239,7 @@ describe('fromRpcTypedData - modelBindingData path', () => {

// Act & Assert
expect(() => fromRpcTypedData(data)).to.throw(
'Unable to create client. Please register the extensions library with your function app. ' +
'Error: Resolver not initialized'
'Please register the extensions library with your function app. ' + 'Error: Resolver not initialized'
);
});

Expand All @@ -265,8 +263,7 @@ describe('fromRpcTypedData - modelBindingData path', () => {

// Act & Assert
expect(() => fromRpcTypedData(data)).to.throw(
'Unable to create client. Please register the extensions library with your function app. ' +
'Error: Sinon-provided String exception'
'Please register the extensions library with your function app. ' + 'Error: Sinon-provided String exception'
);
});
});
Loading