Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azure/functions

Package Overview
Dependencies
Maintainers
7
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/functions - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

20

_manifest/manifest.json

@@ -11,21 +11,21 @@ {

"AzureArtifactsHash": "047B0D0A20202020226E616D65223A202240617A7572652F66756E6374696F6E7322",
"Sha256Hash": "A2FF68EC98EC9C7574F8CD5A7C9E3C9F256C34C02C8020016F8B68AD90C234EE"
"Sha256Hash": "7DFC1C696EB8507F0AA41CDC029B0B6C654655DAD624EB858C4F389A4772E1ED"
},
{
"Source": "/index.d.ts",
"AzureArtifactsHash": "042F2F20436F7079726967687420286329202E4E455420466F756E646174696F6E2E",
"Sha256Hash": "6CC29D13453DA63B1C229CBD3A2DE14C23F1404E0B2BA63894973543BC03C029"
},
{
"Source": "/README.md",
"AzureArtifactsHash": "0423205479706520646566696E6974696F6E7320666F7220417A7572652046756E63",
"Sha256Hash": "2EF28364DA5CA0161A12B1BC3E2CA792753271CE456B0340D348E30E1F9F8885"
},
{
"Source": "/index.d.ts",
"AzureArtifactsHash": "042F2F20436F7079726967687420286329202E4E455420466F756E646174696F6E2E",
"Sha256Hash": "02BE45F19C7024C9D52589C47F6480DF325D1EDC18814FD4E737BC351504C860"
}
],
"CloudBuildId": "71778",
"CloudBuildId": "71779",
"Repo": "https://github.com/Azure/azure-functions-nodejs-worker",
"Branch": "v3.1.0",
"CommitId": "9557399e7b70b9e4ffac7a5c22a568b63775b69c",
"Branch": "v3.2.0",
"CommitId": "6ad4bfebce122de15a4e0dd4ea9e76cd89d39d60",
"Version": "0.0.1",
"Timestamp": 1653333302
"Timestamp": 1653333332
}

@@ -23,12 +23,12 @@ {

{
"fileName": "./package.json",
"SPDXID": "SPDXRef-File--package.json-69EE185296814F4B91183FF662624CAED8DA0DB7",
"fileName": "./index.d.ts",
"SPDXID": "SPDXRef-File--index.d.ts-08FB297C45C69BE92DD3F1B71E079D55E8488510",
"checksums": [
{
"algorithm": "SHA256",
"checksumValue": "a2ff68ec98ec9c7574f8cd5a7c9e3c9f256c34c02c8020016f8b68ad90c234ee"
"checksumValue": "6cc29d13453da63b1c229cbd3a2de14c23f1404e0b2ba63894973543bc03c029"
},
{
"algorithm": "SHA1",
"checksumValue": "69ee185296814f4b91183ff662624caed8da0db7"
"checksumValue": "08fb297c45c69be92dd3f1b71e079d55e8488510"
}

@@ -43,12 +43,12 @@ ],

{
"fileName": "./index.d.ts",
"SPDXID": "SPDXRef-File--index.d.ts-C9B882D04C5DC3C9A30613AB80B6ED4C664C6A20",
"fileName": "./package.json",
"SPDXID": "SPDXRef-File--package.json-454808FE5FF4166F60ECD2FBEDE9796044AAF9BD",
"checksums": [
{
"algorithm": "SHA256",
"checksumValue": "02be45f19c7024c9d52589c47f6480df325d1edc18814fd4e737bc351504c860"
"checksumValue": "7dfc1c696eb8507f0aa41cdc029b0b6c654655dad624eb858c4f389a4772e1ed"
},
{
"algorithm": "SHA1",
"checksumValue": "c9b882d04c5dc3c9a30613ab80b6ed4c664c6a20"
"checksumValue": "454808fe5ff4166f60ecd2fbede9796044aaf9bd"
}

@@ -109,3 +109,3 @@ ],

"packageVerificationCode": {
"packageVerificationCodeValue": "b39f7e5c49dbf9bfbba408316b26e060b3ba0827"
"packageVerificationCodeValue": "bd0f7664507a301b7a3989e82fefdd12d4333cb6"
},

@@ -119,9 +119,9 @@ "filesAnalyzed": true,

"copyrightText": "NOASSERTION",
"versionInfo": "71778",
"versionInfo": "71779",
"supplier": "Organization: Microsoft",
"hasFiles": [
"SPDXRef-File--README.md-B9D820DDBD380B95C0E7E7D2D1704F27FC538C61",
"SPDXRef-File--LICENSE-14CB404E9DE5F2B618AD67DDA908AF2452A4B2B4",
"SPDXRef-File--index.d.ts-C9B882D04C5DC3C9A30613AB80B6ED4C664C6A20",
"SPDXRef-File--package.json-69EE185296814F4B91183FF662624CAED8DA0DB7"
"SPDXRef-File--package.json-454808FE5FF4166F60ECD2FBEDE9796044AAF9BD",
"SPDXRef-File--index.d.ts-08FB297C45C69BE92DD3F1B71E079D55E8488510",
"SPDXRef-File--README.md-B9D820DDBD380B95C0E7E7D2D1704F27FC538C61"
]

@@ -133,10 +133,10 @@ }

{
"relationshipType": "DESCRIBES",
"relatedSpdxElement": "SPDXRef-RootPackage",
"spdxElementId": "SPDXRef-DOCUMENT"
},
{
"relationshipType": "DEPENDS_ON",
"relatedSpdxElement": "SPDXRef-Package-2EC7DF3D857F71BD437D264EB60F888924EB6C43962A25373BEBF759A78279B8",
"spdxElementId": "SPDXRef-RootPackage"
},
{
"relationshipType": "DESCRIBES",
"relatedSpdxElement": "SPDXRef-RootPackage",
"spdxElementId": "SPDXRef-DOCUMENT"
}

@@ -147,6 +147,6 @@ ],

"SPDXID": "SPDXRef-DOCUMENT",
"name": "Azure Functions Type Definitions 71778",
"documentNamespace": "https://sbom.microsoft/1:vB_F0XdED0q5n_yQEwCaWA:kgyn5ihBn0OAEjgv541jlg/10:71778/H2lUEB93Kkmm5abf7ii-1w",
"name": "Azure Functions Type Definitions 71779",
"documentNamespace": "https://sbom.microsoft/1:vB_F0XdED0q5n_yQEwCaWA:kgyn5ihBn0OAEjgv541jlg/10:71779/DrWyZRj_jU6Z9P8MDTN2hA",
"creationInfo": {
"created": "2022-05-23T19:15:02Z",
"created": "2022-05-23T19:15:32Z",
"creators": [

@@ -153,0 +153,0 @@ "Organization: Microsoft",

@@ -79,2 +79,5 @@ // Copyright (c) .NET Foundation. All rights reserved.

* a string, Buffer, ArrayBufferView, or number.
*
* @deprecated Use of sync functions with `context.done()` is not recommended. Use async/await and pass the response as the return value instead.
* See the docs here for more information: https://aka.ms/functions-js-async-await
*/

@@ -100,2 +103,8 @@ done(err?: Error | string | null, result?: any): void;

/**
* HTTP response headers.
*/
export interface HttpResponseHeaders {
[name: string]: string;
}
/**
* Query string parameter keys and values from the URL.

@@ -179,3 +188,49 @@ */

rawBody?: any;
/**
* Parses the body and returns an object representing a form
* @throws if the content type is not "multipart/form-data" or "application/x-www-form-urlencoded"
*/
parseFormBody(): Form;
}
export interface Form extends Iterable<[string, FormPart]> {
/**
* Returns the value of the first name-value pair whose name is `name`. If there are no such pairs, `null` is returned.
*/
get(name: string): FormPart | null;
/**
* Returns the values of all name-value pairs whose name is `name`. If there are no such pairs, an empty array is returned.
*/
getAll(name: string): FormPart[];
/**
* Returns `true` if there is at least one name-value pair whose name is `name`.
*/
has(name: string): boolean;
/**
* The number of parts in this form
*/
length: number;
}
export interface FormPart {
/**
* The value for this part of the form
*/
value: Buffer;
/**
* The file name for this part of the form, if specified
*/
fileName?: string;
/**
* The content type for this part of the form, assumed to be "text/plain" if not specified
*/
contentType?: string;
}
/**

@@ -190,2 +245,141 @@ * Possible values for an HTTP request method.

/**
* Http response object and methods.
* This is the default of the res property in the Context object provided to your function when using HTTP triggers.
*/
export interface HttpResponseFull {
/**
* HTTP response headers.
*/
headers?: HttpResponseHeaders;
/**
* HTTP response cookies.
*/
cookies?: Cookie[];
/**
* HTTP response body.
*/
body?: any;
/**
* HTTP response status code.
* @default 200
*/
statusCode?: number | string;
/**
* Enable content negotiation of response body if true
* If false, treat response body as raw
* @default false
*/
enableContentNegotiation?: boolean;
/**
* Sets the HTTP response status code
* @returns the updated HttpResponseFull instance
*/
status: (statusCode: number | string) => HttpResponseFull;
/**
* Sets a particular header field to a value
* @returns the updated HttpResponseFull instance
*/
setHeader(field: string, val: any): HttpResponseFull;
/**
* Has the same functionality as setHeader.
* Sets a particular header field to a value
* @returns the updated HttpResponseFull instance
*/
header(field: string, val: any): HttpResponseFull;
/**
* Has the same functionality as setHeader.
* Sets a particular header field to a value
* @returns the updated HttpResponseFull instance
*/
set(field: string, val: any): HttpResponseFull;
/**
* Get the value of a particular header field
*/
getHeader(field: string): any;
/**
* Has the same functionality as getHeader
* Get the value of a particular header field
*/
get(field: string): any;
/**
* Removes a particular header field
* @returns the updated HttpResponseFull instance
*/
removeHeader(field: string): HttpResponseFull;
/**
* Set the 'Content-Type' header to a particular value
* @returns the updated HttpResponseFull instance
*/
type(type: string): HttpResponseFull;
/**
* Automatically sets the content-type then calls context.done()
* @returns updated HttpResponseFull instance
* @deprecated this method calls context.done() which is deprecated, use async/await and pass the response as the return value instead.
* See the docs here for more information: https://aka.ms/functions-js-async-await
*/
send(body?: any): HttpResponseFull;
/**
* Same as send()
* Automatically sets the content-type then calls context.done()
* @returns updated HttpResponseFull instance
* @deprecated this method calls context.done() which is deprecated, use async/await and pass the response as your function's return value instead.
* See the docs here for more information: https://aka.ms/functions-js-async-await
*/
end(body?: any): HttpResponseFull;
/**
* Sets the status code then calls send()
* @returns updated HttpResponseFull instance
* @deprecated this method calls context.done() which is deprecated, use async/await and pass the response as your function's return value instead.
* See the docs here for more information: https://aka.ms/functions-js-async-await
*/
sendStatus(statusCode: string | number): HttpResponseFull;
/**
* Sets the 'Content-Type' header to 'application/json' then calls send(body)
* @deprecated this method calls context.done() which is deprecated, use async/await and pass the response as your function's return value instead.
* See the docs here for more information: https://aka.ms/functions-js-async-await
*/
json(body?: any): void;
}
/**
* Http response object.
* This is not the default on the Context object, but you may replace context.res with an object of this type when using HTTP triggers.
*/
export interface HttpResponseSimple {
/**
* HTTP response headers.
*/
headers?: HttpResponseHeaders;
/**
* HTTP response cookies.
*/
cookies?: Cookie[];
/**
* HTTP response body.
*/
body?: any;
/**
* HTTP response status code.
* This property takes precedence over the `status` property
* @default 200
*/
statusCode?: number | string;
/**
* HTTP response status code
* The same as `statusCode`. This property is ignored if `statusCode` is set
* @default 200
*/
status?: number | string;
/**
* Enable content negotiation of response body if true
* If false, treat response body as raw
* @default false
*/
enableContentNegotiation?: boolean;
}
/**
* Http response type.
*/
export type HttpResponse = HttpResponseSimple | HttpResponseFull;
/**
* Http response cookie object to "Set-Cookie"

@@ -192,0 +386,0 @@ */

{
"name": "@azure/functions",
"version": "3.1.0",
"version": "3.2.0",
"description": "Azure Functions types for Typescript",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc