@azure/functions
Advanced tools
Comparing version 3.5.0-alpha.3 to 4.0.0-alpha.1
{ | ||
"Outputs": [ | ||
{ | ||
"Source": "/dist/src/index-bundle.js", | ||
"AzureArtifactsHash": "042828293D3E7B76617220653D7B3332373A28652C742C69293D3E7B227573652073", | ||
"Sha256Hash": "42354CF3288A88B475409EE2D1B45C7DF6639123FEA03222556B1AA96655E3F9" | ||
"Source": "/types/cosmosDB.d.ts", | ||
"AzureArtifactsHash": "042F2F20436F7079726967687420286329202E4E455420466F756E646174696F6E2E", | ||
"Sha256Hash": "0F292E09CEA5B3C3FF288616C335D860CF5D5D13417145D5FC4B22F3AA08ACE5" | ||
}, | ||
{ | ||
"Source": "/package.json", | ||
"AzureArtifactsHash": "047B0D0A20202020226E616D65223A202240617A7572652F66756E6374696F6E7322", | ||
"Sha256Hash": "DFA06936AC427F825D39223B9D3D1D1520CC79713F0754603294FEAA1CC9E077" | ||
}, | ||
{ | ||
"Source": "/types/http.d.ts", | ||
"AzureArtifactsHash": "042F2F20436F7079726967687420286329202E4E455420466F756E646174696F6E2E", | ||
"Sha256Hash": "8D87ECFF5F9D70740E1ED6FFF7E7DF8184D432FDC282D83599FD99C313E4BF9A" | ||
"Sha256Hash": "591731C22CD837DBC65FA4B88AA13A1C385D51844E4109AD88BFD4113F58792B" | ||
}, | ||
{ | ||
"Source": "/NOTICE.html", | ||
"AzureArtifactsHash": "043C21444F43545950452068746D6C3E0D0A3C68746D6C206C616E673D22656E223E", | ||
"Sha256Hash": "688BA11707547792129B8611A5F4D97B8108CED977009274750E47E197FB92E4" | ||
"Source": "/README.md", | ||
"AzureArtifactsHash": "042320417A7572652046756E6374696F6E73204E6F64652E6A73204672616D65776F", | ||
"Sha256Hash": "A6CB65D0771BA96CF0A2BA6B58E3A4B9470774D6B75F2257FA6D0FB7D89A492E" | ||
}, | ||
{ | ||
"Source": "/package.json", | ||
"AzureArtifactsHash": "047B0D0A20202020226E616D65223A202240617A7572652F66756E6374696F6E7322", | ||
"Sha256Hash": "AE493189CEB77C6AC0850329B5A110DBCDAA4738CEA37E105430DAFBAA92934C" | ||
"Source": "/dist/src/index-bundle.js", | ||
"AzureArtifactsHash": "042F2A2120466F72206C6963656E736520696E666F726D6174696F6E20706C656173", | ||
"Sha256Hash": "81BBF733DF0F81B69ED44DBEE2834053A874AB53484167459570F39FE46D79F8" | ||
}, | ||
{ | ||
"Source": "/LICENSE", | ||
"AzureArtifactsHash": "04202020204D4954204C6963656E73650D0A0D0A20202020436F7079726967687420", | ||
"Sha256Hash": "9FA73CB72FB654D029C9214F0E3EEC32C301A0C23BE71B50FE3910E61553FA34" | ||
}, | ||
{ | ||
"Source": "/types/index.d.ts", | ||
"AzureArtifactsHash": "042F2F20436F7079726967687420286329202E4E455420466F756E646174696F6E2E", | ||
"Sha256Hash": "EC76173D16EC1D7785A7D254BEBD0B8744273D7A4E8662F56CF5FAD46226CCF7" | ||
"Sha256Hash": "3747EA9DA29F82AC9ACCCC9A9651596EE758A1EBAC2D7C28E078F8849DD307A2" | ||
}, | ||
{ | ||
"Source": "/LICENSE", | ||
"AzureArtifactsHash": "04202020204D4954204C6963656E73650D0A0D0A20202020436F7079726967687420", | ||
"Sha256Hash": "9FA73CB72FB654D029C9214F0E3EEC32C301A0C23BE71B50FE3910E61553FA34" | ||
"Source": "/types/serviceBus.d.ts", | ||
"AzureArtifactsHash": "042F2F20436F7079726967687420286329202E4E455420466F756E646174696F6E2E", | ||
"Sha256Hash": "E0BC0C6BE513A41C10879697D7BEF23AD7C9265F556350F3BA8F4894161222DC" | ||
}, | ||
{ | ||
"Source": "/README.md", | ||
"AzureArtifactsHash": "042320417A7572652046756E6374696F6E73204E6F64652E6A73204672616D65776F", | ||
"Sha256Hash": "A8E057ABD2454F3311C6039C90C10EA0831E1897C95882508AF387E682589F6A" | ||
"Source": "/types/eventHub.d.ts", | ||
"AzureArtifactsHash": "042F2F20436F7079726967687420286329202E4E455420466F756E646174696F6E2E", | ||
"Sha256Hash": "010A88AB288D81D96FF27D01766082A8483B25D9CF03CD7BFCB468D7FBD89269" | ||
}, | ||
{ | ||
"Source": "/types/Context.d.ts", | ||
"Source": "/NOTICE.html", | ||
"AzureArtifactsHash": "043C21444F43545950452068746D6C3E0D0A3C68746D6C206C616E673D22656E223E", | ||
"Sha256Hash": "268BB778AA03CAA778C9D47BA467E1E4681AA44E61A01F32191D66A2223D638A" | ||
}, | ||
{ | ||
"Source": "/types/InvocationContext.d.ts", | ||
"AzureArtifactsHash": "042F2F20436F7079726967687420286329202E4E455420466F756E646174696F6E2E", | ||
"Sha256Hash": "44E304600881E1C1DD1A8079FB5C1BEF04B5F1E34E84CCA023EDA22927296498" | ||
"Sha256Hash": "2CFC66E61341D4FC929BA964DAA5A96D600ED0E601A04DA4FD48A84481A40E3C" | ||
}, | ||
{ | ||
"Source": "/types/storage.d.ts", | ||
"AzureArtifactsHash": "042F2F20436F7079726967687420286329202E4E455420466F756E646174696F6E2E", | ||
"Sha256Hash": "49ED28AD7BC438DAFC5A26F4089D2F58582B89352302BF8DB518D0D4AD4337A4" | ||
}, | ||
{ | ||
"Source": "/types/timer.d.ts", | ||
"AzureArtifactsHash": "042F2F20436F7079726967687420286329202E4E455420466F756E646174696F6E2E", | ||
"Sha256Hash": "79136E02501BE24ED04EBAFB5E31A43432C473EBFCE05D8B62A47CE91A6D34FF" | ||
"Sha256Hash": "49FAB7A94EAE0F861A8E7E1685905E58EFC615DCF61824EA2BD5D6F51ABAB5B5" | ||
} | ||
], | ||
"CloudBuildId": "91010", | ||
"CloudBuildId": "91218", | ||
"Repo": "https://github.com/Azure/azure-functions-nodejs-library", | ||
"Branch": "v3.x", | ||
"CommitId": "3059701721e9cb7b3a43d3ff2136d3fc69da199a", | ||
"Branch": "v4.x", | ||
"CommitId": "9a9ba677a63de6099128306891cb798a194f77a4", | ||
"Version": "0.0.1", | ||
"Timestamp": 1661476928 | ||
"Timestamp": 1661544840 | ||
} |
{ | ||
"files": [ | ||
{ | ||
"fileName": "./types/index.d.ts", | ||
"SPDXID": "SPDXRef-File--types-index.d.ts-3C5BE1EC98F825EE5C044DD8A3903DB4C5521417", | ||
"fileName": "./types/http.d.ts", | ||
"SPDXID": "SPDXRef-File--types-http.d.ts-F3F2CA1C9BF18EC13684DF6D1D4D995FC0C60164", | ||
"checksums": [ | ||
{ | ||
"algorithm": "SHA256", | ||
"checksumValue": "ec76173d16ec1d7785a7d254bebd0b8744273d7a4e8662f56cf5fad46226ccf7" | ||
"checksumValue": "591731c22cd837dbc65fa4b88aa13a1c385d51844e4109ad88bfd4113f58792b" | ||
}, | ||
{ | ||
"algorithm": "SHA1", | ||
"checksumValue": "3c5be1ec98f825ee5c044dd8a3903db4c5521417" | ||
"checksumValue": "f3f2ca1c9bf18ec13684df6d1d4d995fc0c60164" | ||
} | ||
@@ -23,12 +23,12 @@ ], | ||
{ | ||
"fileName": "./NOTICE.html", | ||
"SPDXID": "SPDXRef-File--NOTICE.html-248AFB41CE25A073DFD9C301AFCC8E36B8F09551", | ||
"fileName": "./LICENSE", | ||
"SPDXID": "SPDXRef-File--LICENSE-14CB404E9DE5F2B618AD67DDA908AF2452A4B2B4", | ||
"checksums": [ | ||
{ | ||
"algorithm": "SHA256", | ||
"checksumValue": "688ba11707547792129b8611a5f4d97b8108ced977009274750e47e197fb92e4" | ||
"checksumValue": "9fa73cb72fb654d029c9214f0e3eec32c301a0c23be71b50fe3910e61553fa34" | ||
}, | ||
{ | ||
"algorithm": "SHA1", | ||
"checksumValue": "248afb41ce25a073dfd9c301afcc8e36b8f09551" | ||
"checksumValue": "14cb404e9de5f2b618ad67dda908af2452a4b2b4" | ||
} | ||
@@ -43,12 +43,12 @@ ], | ||
{ | ||
"fileName": "./package.json", | ||
"SPDXID": "SPDXRef-File--package.json-93C59FF3942E2AD8DA80038D063C4C682E90FB6F", | ||
"fileName": "./types/cosmosDB.d.ts", | ||
"SPDXID": "SPDXRef-File--types-cosmosDB.d.ts-4DB7D5FC461D1654232447131672BC3DB7D1E1EF", | ||
"checksums": [ | ||
{ | ||
"algorithm": "SHA256", | ||
"checksumValue": "ae493189ceb77c6ac0850329b5a110dbcdaa4738cea37e105430dafbaa92934c" | ||
"checksumValue": "0f292e09cea5b3c3ff288616c335d860cf5d5d13417145d5fc4b22f3aa08ace5" | ||
}, | ||
{ | ||
"algorithm": "SHA1", | ||
"checksumValue": "93c59ff3942e2ad8da80038d063c4c682e90fb6f" | ||
"checksumValue": "4db7d5fc461d1654232447131672bc3db7d1e1ef" | ||
} | ||
@@ -63,12 +63,12 @@ ], | ||
{ | ||
"fileName": "./LICENSE", | ||
"SPDXID": "SPDXRef-File--LICENSE-14CB404E9DE5F2B618AD67DDA908AF2452A4B2B4", | ||
"fileName": "./types/index.d.ts", | ||
"SPDXID": "SPDXRef-File--types-index.d.ts-6C9D3738A0CC706604CC08AD8D979D7D8FD0C1F1", | ||
"checksums": [ | ||
{ | ||
"algorithm": "SHA256", | ||
"checksumValue": "9fa73cb72fb654d029c9214f0e3eec32c301a0c23be71b50fe3910e61553fa34" | ||
"checksumValue": "3747ea9da29f82ac9acccc9a9651596ee758a1ebac2d7c28e078f8849dd307a2" | ||
}, | ||
{ | ||
"algorithm": "SHA1", | ||
"checksumValue": "14cb404e9de5f2b618ad67dda908af2452a4b2b4" | ||
"checksumValue": "6c9d3738a0cc706604cc08ad8d979d7d8fd0c1f1" | ||
} | ||
@@ -83,12 +83,12 @@ ], | ||
{ | ||
"fileName": "./types/http.d.ts", | ||
"SPDXID": "SPDXRef-File--types-http.d.ts-0715B884769DEC086F1B2E2D6B6DB99B2536F110", | ||
"fileName": "./package.json", | ||
"SPDXID": "SPDXRef-File--package.json-3BC9B5A75025A6EC6309BDFDDB8B97372998579D", | ||
"checksums": [ | ||
{ | ||
"algorithm": "SHA256", | ||
"checksumValue": "8d87ecff5f9d70740e1ed6fff7e7df8184d432fdc282d83599fd99c313e4bf9a" | ||
"checksumValue": "dfa06936ac427f825d39223b9d3d1d1520cc79713f0754603294feaa1cc9e077" | ||
}, | ||
{ | ||
"algorithm": "SHA1", | ||
"checksumValue": "0715b884769dec086f1b2e2d6b6db99b2536f110" | ||
"checksumValue": "3bc9b5a75025a6ec6309bdfddb8b97372998579d" | ||
} | ||
@@ -104,11 +104,11 @@ ], | ||
"fileName": "./README.md", | ||
"SPDXID": "SPDXRef-File--README.md-481BADFB13AF41763B7075CA39CBB08E0F12A762", | ||
"SPDXID": "SPDXRef-File--README.md-85EE5A278586AD0AAB40A123DE4E2AEAD120FAD0", | ||
"checksums": [ | ||
{ | ||
"algorithm": "SHA256", | ||
"checksumValue": "a8e057abd2454f3311c6039c90c10ea0831e1897c95882508af387e682589f6a" | ||
"checksumValue": "a6cb65d0771ba96cf0a2ba6b58e3a4b9470774d6b75f2257fa6d0fb7d89a492e" | ||
}, | ||
{ | ||
"algorithm": "SHA1", | ||
"checksumValue": "481badfb13af41763b7075ca39cbb08e0f12a762" | ||
"checksumValue": "85ee5a278586ad0aab40a123de4e2aead120fad0" | ||
} | ||
@@ -123,12 +123,12 @@ ], | ||
{ | ||
"fileName": "./types/Context.d.ts", | ||
"SPDXID": "SPDXRef-File--types-Context.d.ts-C6009DB952E419F7F7B7F729EE16A528C6C5A6C3", | ||
"fileName": "./types/serviceBus.d.ts", | ||
"SPDXID": "SPDXRef-File--types-serviceBus.d.ts-810F49ED3BECCEEE0722D80662242397B86AE2F1", | ||
"checksums": [ | ||
{ | ||
"algorithm": "SHA256", | ||
"checksumValue": "44e304600881e1c1dd1a8079fb5c1bef04b5f1e34e84cca023eda22927296498" | ||
"checksumValue": "e0bc0c6be513a41c10879697d7bef23ad7c9265f556350f3ba8f4894161222dc" | ||
}, | ||
{ | ||
"algorithm": "SHA1", | ||
"checksumValue": "c6009db952e419f7f7b7f729ee16a528c6c5a6c3" | ||
"checksumValue": "810f49ed3becceee0722d80662242397b86ae2f1" | ||
} | ||
@@ -144,11 +144,11 @@ ], | ||
"fileName": "./dist/src/index-bundle.js", | ||
"SPDXID": "SPDXRef-File--dist-src-index-bundle.js-EAF8957D4E6D072C6C723BE7CA483EF2694DC374", | ||
"SPDXID": "SPDXRef-File--dist-src-index-bundle.js-B4B22B0D0A69B3B0E4C10B89728B1DFC8A82EF5C", | ||
"checksums": [ | ||
{ | ||
"algorithm": "SHA256", | ||
"checksumValue": "42354cf3288a88b475409ee2d1b45c7df6639123fea03222556b1aa96655e3f9" | ||
"checksumValue": "81bbf733df0f81b69ed44dbee2834053a874ab53484167459570f39fe46d79f8" | ||
}, | ||
{ | ||
"algorithm": "SHA1", | ||
"checksumValue": "eaf8957d4e6d072c6c723be7ca483ef2694dc374" | ||
"checksumValue": "b4b22b0d0a69b3b0e4c10b89728b1dfc8a82ef5c" | ||
} | ||
@@ -163,12 +163,12 @@ ], | ||
{ | ||
"fileName": "./types/timer.d.ts", | ||
"SPDXID": "SPDXRef-File--types-timer.d.ts-30568EA8963367C127F87B7D5E29468ED1802773", | ||
"fileName": "./types/eventHub.d.ts", | ||
"SPDXID": "SPDXRef-File--types-eventHub.d.ts-A08D02982B9CE2953DDA117D995DC823F138954E", | ||
"checksums": [ | ||
{ | ||
"algorithm": "SHA256", | ||
"checksumValue": "79136e02501be24ed04ebafb5e31a43432c473ebfce05d8b62a47ce91a6d34ff" | ||
"checksumValue": "010a88ab288d81d96ff27d01766082a8483b25d9cf03cd7bfcb468d7fbd89269" | ||
}, | ||
{ | ||
"algorithm": "SHA1", | ||
"checksumValue": "30568ea8963367c127f87b7d5e29468ed1802773" | ||
"checksumValue": "a08d02982b9ce2953dda117d995dc823f138954e" | ||
} | ||
@@ -181,50 +181,84 @@ ], | ||
"copyrightText": "NOASSERTION" | ||
} | ||
], | ||
"packages": [ | ||
}, | ||
{ | ||
"name": "jsonfile", | ||
"SPDXID": "SPDXRef-Package-6902D247E9BD5206CA1344524C608D2E4F1ECDF5994CE7CD6FB3A9DA716B6757", | ||
"downloadLocation": "NOASSERTION", | ||
"filesAnalyzed": false, | ||
"fileName": "./NOTICE.html", | ||
"SPDXID": "SPDXRef-File--NOTICE.html-43B9F500D4820A1D898A0F2041C02F6349F3158C", | ||
"checksums": [ | ||
{ | ||
"algorithm": "SHA256", | ||
"checksumValue": "268bb778aa03caa778c9d47ba467e1e4681aa44e61a01f32191d66a2223d638a" | ||
}, | ||
{ | ||
"algorithm": "SHA1", | ||
"checksumValue": "43b9f500d4820a1d898a0f2041c02f6349f3158c" | ||
} | ||
], | ||
"licenseConcluded": "NOASSERTION", | ||
"licenseInfoFromFiles": [ | ||
"licenseInfoInFiles": [ | ||
"NOASSERTION" | ||
], | ||
"licenseDeclared": "NOASSERTION", | ||
"copyrightText": "NOASSERTION", | ||
"versionInfo": "6.1.0", | ||
"externalRefs": [ | ||
"copyrightText": "NOASSERTION" | ||
}, | ||
{ | ||
"fileName": "./types/InvocationContext.d.ts", | ||
"SPDXID": "SPDXRef-File--types-InvocationContext.d.ts-17E4EF1D089B3A1758960EAEBD5D8CBB9430E695", | ||
"checksums": [ | ||
{ | ||
"referenceCategory": "PACKAGE_MANAGER", | ||
"referenceType": "purl", | ||
"referenceLocator": "pkg:npm/jsonfile%406.1.0" | ||
"algorithm": "SHA256", | ||
"checksumValue": "2cfc66e61341d4fc929ba964daa5a96d600ed0e601a04da4fd48a84481a40e3c" | ||
}, | ||
{ | ||
"algorithm": "SHA1", | ||
"checksumValue": "17e4ef1d089b3a1758960eaebd5d8cbb9430e695" | ||
} | ||
], | ||
"supplier": "Organization: JP Richardson (jprichardson@gmail.com)" | ||
"licenseConcluded": "NOASSERTION", | ||
"licenseInfoInFiles": [ | ||
"NOASSERTION" | ||
], | ||
"copyrightText": "NOASSERTION" | ||
}, | ||
{ | ||
"name": "uuid", | ||
"SPDXID": "SPDXRef-Package-600583B2E250C50BD2B3DF84DD1393CD34F6DFD02BEB03AA9530C9FA393BDF96", | ||
"downloadLocation": "NOASSERTION", | ||
"filesAnalyzed": false, | ||
"fileName": "./types/storage.d.ts", | ||
"SPDXID": "SPDXRef-File--types-storage.d.ts-5663F7A5CCE45A80F6BDAEC0BE783DEEB4074D36", | ||
"checksums": [ | ||
{ | ||
"algorithm": "SHA256", | ||
"checksumValue": "49ed28ad7bc438dafc5a26f4089d2f58582b89352302bf8db518d0d4ad4337a4" | ||
}, | ||
{ | ||
"algorithm": "SHA1", | ||
"checksumValue": "5663f7a5cce45a80f6bdaec0be783deeb4074d36" | ||
} | ||
], | ||
"licenseConcluded": "NOASSERTION", | ||
"licenseInfoFromFiles": [ | ||
"licenseInfoInFiles": [ | ||
"NOASSERTION" | ||
], | ||
"licenseDeclared": "NOASSERTION", | ||
"copyrightText": "NOASSERTION", | ||
"versionInfo": "8.3.0", | ||
"externalRefs": [ | ||
"copyrightText": "NOASSERTION" | ||
}, | ||
{ | ||
"fileName": "./types/timer.d.ts", | ||
"SPDXID": "SPDXRef-File--types-timer.d.ts-49211A7F5FAFD063FC5009EB4AF6A9C6E16BD050", | ||
"checksums": [ | ||
{ | ||
"referenceCategory": "PACKAGE_MANAGER", | ||
"referenceType": "purl", | ||
"referenceLocator": "pkg:npm/uuid%408.3.0" | ||
"algorithm": "SHA256", | ||
"checksumValue": "49fab7a94eae0f861a8e7e1685905e58efc615dcf61824ea2bd5d6f51abab5b5" | ||
}, | ||
{ | ||
"algorithm": "SHA1", | ||
"checksumValue": "49211a7f5fafd063fc5009eb4af6a9c6e16bd050" | ||
} | ||
], | ||
"supplier": "NOASSERTION" | ||
}, | ||
"licenseConcluded": "NOASSERTION", | ||
"licenseInfoInFiles": [ | ||
"NOASSERTION" | ||
], | ||
"copyrightText": "NOASSERTION" | ||
} | ||
], | ||
"packages": [ | ||
{ | ||
"name": "graceful-fs", | ||
"SPDXID": "SPDXRef-Package-8B598FBFF684BA9D1CEE650F75CEF0EF36EC523B445379C005D15378AC7C256A", | ||
"name": "uuid", | ||
"SPDXID": "SPDXRef-Package-600583B2E250C50BD2B3DF84DD1393CD34F6DFD02BEB03AA9530C9FA393BDF96", | ||
"downloadLocation": "NOASSERTION", | ||
@@ -238,3 +272,3 @@ "filesAnalyzed": false, | ||
"copyrightText": "NOASSERTION", | ||
"versionInfo": "4.2.10", | ||
"versionInfo": "8.3.0", | ||
"externalRefs": [ | ||
@@ -244,3 +278,3 @@ { | ||
"referenceType": "purl", | ||
"referenceLocator": "pkg:npm/graceful-fs%404.2.10" | ||
"referenceLocator": "pkg:npm/uuid%408.3.0" | ||
} | ||
@@ -272,4 +306,4 @@ ], | ||
{ | ||
"name": "long", | ||
"SPDXID": "SPDXRef-Package-044336899C3AD719572161F32356DFBD386B721EFA99ECA36B059C7A2374DA68", | ||
"name": "universalify", | ||
"SPDXID": "SPDXRef-Package-990E20CB1EE9CEFE84A73723FDDF02BF285221FA46B1B84F9C3073F48E4B23AA", | ||
"downloadLocation": "NOASSERTION", | ||
@@ -283,3 +317,3 @@ "filesAnalyzed": false, | ||
"copyrightText": "NOASSERTION", | ||
"versionInfo": "4.0.0", | ||
"versionInfo": "2.0.0", | ||
"externalRefs": [ | ||
@@ -289,10 +323,10 @@ { | ||
"referenceType": "purl", | ||
"referenceLocator": "pkg:npm/long%404.0.0" | ||
"referenceLocator": "pkg:npm/universalify%402.0.0" | ||
} | ||
], | ||
"supplier": "Organization: Daniel Wirtz (dcode@dcode.io)" | ||
"supplier": "Organization: Ryan Zimmerman (opensrc@ryanzim.com)" | ||
}, | ||
{ | ||
"name": "safer-buffer", | ||
"SPDXID": "SPDXRef-Package-DBA0EACCA85A46E91A7567F20D60695AF5D117996500EFA78FD8F82CB177F801", | ||
"name": "long", | ||
"SPDXID": "SPDXRef-Package-044336899C3AD719572161F32356DFBD386B721EFA99ECA36B059C7A2374DA68", | ||
"downloadLocation": "NOASSERTION", | ||
@@ -306,3 +340,3 @@ "filesAnalyzed": false, | ||
"copyrightText": "NOASSERTION", | ||
"versionInfo": "2.1.2", | ||
"versionInfo": "4.0.0", | ||
"externalRefs": [ | ||
@@ -312,10 +346,10 @@ { | ||
"referenceType": "purl", | ||
"referenceLocator": "pkg:npm/safer-buffer%402.1.2" | ||
"referenceLocator": "pkg:npm/long%404.0.0" | ||
} | ||
], | ||
"supplier": "Organization: Nikita Skovoroda (chalkerx@gmail.com)" | ||
"supplier": "Organization: Daniel Wirtz (dcode@dcode.io)" | ||
}, | ||
{ | ||
"name": "universalify", | ||
"SPDXID": "SPDXRef-Package-990E20CB1EE9CEFE84A73723FDDF02BF285221FA46B1B84F9C3073F48E4B23AA", | ||
"name": "fs-extra", | ||
"SPDXID": "SPDXRef-Package-098FADCB01CEB1326E6817ECE1B0C63E28E778027F2600D410523E6FBC45BA03", | ||
"downloadLocation": "NOASSERTION", | ||
@@ -329,3 +363,3 @@ "filesAnalyzed": false, | ||
"copyrightText": "NOASSERTION", | ||
"versionInfo": "2.0.0", | ||
"versionInfo": "10.0.1", | ||
"externalRefs": [ | ||
@@ -335,10 +369,10 @@ { | ||
"referenceType": "purl", | ||
"referenceLocator": "pkg:npm/universalify%402.0.0" | ||
"referenceLocator": "pkg:npm/fs-extra%4010.0.1" | ||
} | ||
], | ||
"supplier": "Organization: Ryan Zimmerman (opensrc@ryanzim.com)" | ||
"supplier": "Organization: JP Richardson (jprichardson@gmail.com)" | ||
}, | ||
{ | ||
"name": "fsevents", | ||
"SPDXID": "SPDXRef-Package-EEEEEE210EC980714C74E979E40F36ED52F648607F8D185171F56D224912356C", | ||
"name": "graceful-fs", | ||
"SPDXID": "SPDXRef-Package-8B598FBFF684BA9D1CEE650F75CEF0EF36EC523B445379C005D15378AC7C256A", | ||
"downloadLocation": "NOASSERTION", | ||
@@ -352,3 +386,3 @@ "filesAnalyzed": false, | ||
"copyrightText": "NOASSERTION", | ||
"versionInfo": "2.3.2", | ||
"versionInfo": "4.2.10", | ||
"externalRefs": [ | ||
@@ -358,3 +392,3 @@ { | ||
"referenceType": "purl", | ||
"referenceLocator": "pkg:npm/fsevents%402.3.2" | ||
"referenceLocator": "pkg:npm/graceful-fs%404.2.10" | ||
} | ||
@@ -365,4 +399,4 @@ ], | ||
{ | ||
"name": "fs-extra", | ||
"SPDXID": "SPDXRef-Package-098FADCB01CEB1326E6817ECE1B0C63E28E778027F2600D410523E6FBC45BA03", | ||
"name": "undici", | ||
"SPDXID": "SPDXRef-Package-7C6C8D9DC7757DACAB04B220DC4BD547A3242C46DAD9947EDB58B3A852E54BDF", | ||
"downloadLocation": "NOASSERTION", | ||
@@ -376,3 +410,3 @@ "filesAnalyzed": false, | ||
"copyrightText": "NOASSERTION", | ||
"versionInfo": "10.0.1", | ||
"versionInfo": "5.9.1", | ||
"externalRefs": [ | ||
@@ -382,10 +416,10 @@ { | ||
"referenceType": "purl", | ||
"referenceLocator": "pkg:npm/fs-extra%4010.0.1" | ||
"referenceLocator": "pkg:npm/undici%405.9.1" | ||
} | ||
], | ||
"supplier": "Organization: JP Richardson (jprichardson@gmail.com)" | ||
"supplier": "Organization: Matteo Collina (hello@matteocollina.com)" | ||
}, | ||
{ | ||
"name": "iconv-lite", | ||
"SPDXID": "SPDXRef-Package-258FE309BEE2AEAB9851C2B85FE2F1B65229406867D180D7F84D975D6DDE8134", | ||
"name": "jsonfile", | ||
"SPDXID": "SPDXRef-Package-6902D247E9BD5206CA1344524C608D2E4F1ECDF5994CE7CD6FB3A9DA716B6757", | ||
"downloadLocation": "NOASSERTION", | ||
@@ -399,3 +433,3 @@ "filesAnalyzed": false, | ||
"copyrightText": "NOASSERTION", | ||
"versionInfo": "0.6.3", | ||
"versionInfo": "6.1.0", | ||
"externalRefs": [ | ||
@@ -405,6 +439,6 @@ { | ||
"referenceType": "purl", | ||
"referenceLocator": "pkg:npm/iconv-lite%400.6.3" | ||
"referenceLocator": "pkg:npm/jsonfile%406.1.0" | ||
} | ||
], | ||
"supplier": "Organization: Alexander Shtuchkin (ashtuchkin@gmail.com)" | ||
"supplier": "Organization: JP Richardson (jprichardson@gmail.com)" | ||
}, | ||
@@ -416,3 +450,3 @@ { | ||
"packageVerificationCode": { | ||
"packageVerificationCodeValue": "8c3ec524d29c1355484d9c1e0416ff2849808746" | ||
"packageVerificationCodeValue": "ec83e35076e26d13d5333a003064b50cb4dfbe05" | ||
}, | ||
@@ -426,14 +460,18 @@ "filesAnalyzed": true, | ||
"copyrightText": "NOASSERTION", | ||
"versionInfo": "91010", | ||
"versionInfo": "91218", | ||
"supplier": "Organization: Microsoft", | ||
"hasFiles": [ | ||
"SPDXRef-File--dist-src-index-bundle.js-EAF8957D4E6D072C6C723BE7CA483EF2694DC374", | ||
"SPDXRef-File--README.md-481BADFB13AF41763B7075CA39CBB08E0F12A762", | ||
"SPDXRef-File--types-Context.d.ts-C6009DB952E419F7F7B7F729EE16A528C6C5A6C3", | ||
"SPDXRef-File--types-http.d.ts-0715B884769DEC086F1B2E2D6B6DB99B2536F110", | ||
"SPDXRef-File--types-timer.d.ts-30568EA8963367C127F87B7D5E29468ED1802773", | ||
"SPDXRef-File--types-http.d.ts-F3F2CA1C9BF18EC13684DF6D1D4D995FC0C60164", | ||
"SPDXRef-File--types-timer.d.ts-49211A7F5FAFD063FC5009EB4AF6A9C6E16BD050", | ||
"SPDXRef-File--types-serviceBus.d.ts-810F49ED3BECCEEE0722D80662242397B86AE2F1", | ||
"SPDXRef-File--package.json-3BC9B5A75025A6EC6309BDFDDB8B97372998579D", | ||
"SPDXRef-File--types-InvocationContext.d.ts-17E4EF1D089B3A1758960EAEBD5D8CBB9430E695", | ||
"SPDXRef-File--NOTICE.html-43B9F500D4820A1D898A0F2041C02F6349F3158C", | ||
"SPDXRef-File--types-index.d.ts-6C9D3738A0CC706604CC08AD8D979D7D8FD0C1F1", | ||
"SPDXRef-File--LICENSE-14CB404E9DE5F2B618AD67DDA908AF2452A4B2B4", | ||
"SPDXRef-File--package.json-93C59FF3942E2AD8DA80038D063C4C682E90FB6F", | ||
"SPDXRef-File--NOTICE.html-248AFB41CE25A073DFD9C301AFCC8E36B8F09551", | ||
"SPDXRef-File--types-index.d.ts-3C5BE1EC98F825EE5C044DD8A3903DB4C5521417" | ||
"SPDXRef-File--types-eventHub.d.ts-A08D02982B9CE2953DDA117D995DC823F138954E", | ||
"SPDXRef-File--types-storage.d.ts-5663F7A5CCE45A80F6BDAEC0BE783DEEB4074D36", | ||
"SPDXRef-File--README.md-85EE5A278586AD0AAB40A123DE4E2AEAD120FAD0", | ||
"SPDXRef-File--dist-src-index-bundle.js-B4B22B0D0A69B3B0E4C10B89728B1DFC8A82EF5C", | ||
"SPDXRef-File--types-cosmosDB.d.ts-4DB7D5FC461D1654232447131672BC3DB7D1E1EF" | ||
] | ||
@@ -445,2 +483,7 @@ } | ||
{ | ||
"relationshipType": "DEPENDS_ON", | ||
"relatedSpdxElement": "SPDXRef-Package-6902D247E9BD5206CA1344524C608D2E4F1ECDF5994CE7CD6FB3A9DA716B6757", | ||
"spdxElementId": "SPDXRef-RootPackage" | ||
}, | ||
{ | ||
"relationshipType": "DESCRIBES", | ||
@@ -452,3 +495,3 @@ "relatedSpdxElement": "SPDXRef-RootPackage", | ||
"relationshipType": "DEPENDS_ON", | ||
"relatedSpdxElement": "SPDXRef-Package-EEEEEE210EC980714C74E979E40F36ED52F648607F8D185171F56D224912356C", | ||
"relatedSpdxElement": "SPDXRef-Package-7C6C8D9DC7757DACAB04B220DC4BD547A3242C46DAD9947EDB58B3A852E54BDF", | ||
"spdxElementId": "SPDXRef-RootPackage" | ||
@@ -458,3 +501,3 @@ }, | ||
"relationshipType": "DEPENDS_ON", | ||
"relatedSpdxElement": "SPDXRef-Package-990E20CB1EE9CEFE84A73723FDDF02BF285221FA46B1B84F9C3073F48E4B23AA", | ||
"relatedSpdxElement": "SPDXRef-Package-600583B2E250C50BD2B3DF84DD1393CD34F6DFD02BEB03AA9530C9FA393BDF96", | ||
"spdxElementId": "SPDXRef-RootPackage" | ||
@@ -464,3 +507,3 @@ }, | ||
"relationshipType": "DEPENDS_ON", | ||
"relatedSpdxElement": "SPDXRef-Package-DBA0EACCA85A46E91A7567F20D60695AF5D117996500EFA78FD8F82CB177F801", | ||
"relatedSpdxElement": "SPDXRef-Package-044336899C3AD719572161F32356DFBD386B721EFA99ECA36B059C7A2374DA68", | ||
"spdxElementId": "SPDXRef-RootPackage" | ||
@@ -470,3 +513,3 @@ }, | ||
"relationshipType": "DEPENDS_ON", | ||
"relatedSpdxElement": "SPDXRef-Package-05242FB313153705B9D3E0F5989D924C6A45B6BF7372AFF026C8588474C719F1", | ||
"relatedSpdxElement": "SPDXRef-Package-990E20CB1EE9CEFE84A73723FDDF02BF285221FA46B1B84F9C3073F48E4B23AA", | ||
"spdxElementId": "SPDXRef-RootPackage" | ||
@@ -476,3 +519,3 @@ }, | ||
"relationshipType": "DEPENDS_ON", | ||
"relatedSpdxElement": "SPDXRef-Package-258FE309BEE2AEAB9851C2B85FE2F1B65229406867D180D7F84D975D6DDE8134", | ||
"relatedSpdxElement": "SPDXRef-Package-05242FB313153705B9D3E0F5989D924C6A45B6BF7372AFF026C8588474C719F1", | ||
"spdxElementId": "SPDXRef-RootPackage" | ||
@@ -482,7 +525,2 @@ }, | ||
"relationshipType": "DEPENDS_ON", | ||
"relatedSpdxElement": "SPDXRef-Package-044336899C3AD719572161F32356DFBD386B721EFA99ECA36B059C7A2374DA68", | ||
"spdxElementId": "SPDXRef-RootPackage" | ||
}, | ||
{ | ||
"relationshipType": "DEPENDS_ON", | ||
"relatedSpdxElement": "SPDXRef-Package-098FADCB01CEB1326E6817ECE1B0C63E28E778027F2600D410523E6FBC45BA03", | ||
@@ -493,14 +531,4 @@ "spdxElementId": "SPDXRef-RootPackage" | ||
"relationshipType": "DEPENDS_ON", | ||
"relatedSpdxElement": "SPDXRef-Package-600583B2E250C50BD2B3DF84DD1393CD34F6DFD02BEB03AA9530C9FA393BDF96", | ||
"spdxElementId": "SPDXRef-RootPackage" | ||
}, | ||
{ | ||
"relationshipType": "DEPENDS_ON", | ||
"relatedSpdxElement": "SPDXRef-Package-8B598FBFF684BA9D1CEE650F75CEF0EF36EC523B445379C005D15378AC7C256A", | ||
"spdxElementId": "SPDXRef-RootPackage" | ||
}, | ||
{ | ||
"relationshipType": "DEPENDS_ON", | ||
"relatedSpdxElement": "SPDXRef-Package-6902D247E9BD5206CA1344524C608D2E4F1ECDF5994CE7CD6FB3A9DA716B6757", | ||
"spdxElementId": "SPDXRef-RootPackage" | ||
} | ||
@@ -511,6 +539,6 @@ ], | ||
"SPDXID": "SPDXRef-DOCUMENT", | ||
"name": "Azure Functions Node.js Framework 91010", | ||
"documentNamespace": "https://sbom.microsoft/1:vB_F0XdED0q5n_yQEwCaWA:kgyn5ihBn0OAEjgv541jlg/145:91010/dJxrS-GQWE6VRaE9M-H3zw", | ||
"name": "Azure Functions Node.js Framework 91218", | ||
"documentNamespace": "https://sbom.microsoft/1:vB_F0XdED0q5n_yQEwCaWA:kgyn5ihBn0OAEjgv541jlg/145:91218/4HlAE3ls_EWCiiTBCnAWLQ", | ||
"creationInfo": { | ||
"created": "2022-08-26T01:22:08Z", | ||
"created": "2022-08-26T20:14:00Z", | ||
"creators": [ | ||
@@ -517,0 +545,0 @@ "Organization: Microsoft", |
{ | ||
"name": "@azure/functions", | ||
"version": "3.5.0-alpha.3", | ||
"version": "4.0.0-alpha.1", | ||
"description": "Microsoft Azure Functions NodeJS Framework", | ||
@@ -43,4 +43,4 @@ "keywords": [ | ||
"long": "^4.0.0", | ||
"uuid": "^8.3.0", | ||
"iconv-lite": "^0.6.3" | ||
"undici": "^5.8.2", | ||
"uuid": "^8.3.0" | ||
}, | ||
@@ -56,3 +56,3 @@ "devDependencies": { | ||
"@types/mock-require": "^2.0.1", | ||
"@types/node": "^16.9.6", | ||
"@types/node": "^18.0.0", | ||
"@types/semver": "^7.3.9", | ||
@@ -84,3 +84,2 @@ "@types/sinon": "^7.0.0", | ||
"typescript": "^4.5.5", | ||
"typescript3": "npm:typescript@~3.7.0", | ||
"typescript4": "npm:typescript@~4.0.0", | ||
@@ -87,0 +86,0 @@ "webpack": "^5.72.1", |
@@ -16,2 +16,4 @@ # Azure Functions Node.js Framework | ||
_**UPDATE**_: **See here for important information on v4 of the Azure Functions Node.js Framework: https://aka.ms/AzFuncNodeV4** | ||
Prior to version 3.5.0, this package only contained TypeScript type definitions. Starting with version 3.5.0 it _also_ contains the underlying Azure Functions Framework for Node.js. This framework package is included by default in [v4.x of the Azure Functions runtime](https://docs.microsoft.com/azure/azure-functions/functions-versions?pivots=programming-language-javascript), meaning you do _not_ need to include the package in your app. However, there may be cases where you want a specific version of the package, so you can override the default shipped in Azure with the below steps. | ||
@@ -18,0 +20,0 @@ |
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the MIT License. | ||
/** | ||
* HTTP request headers. | ||
*/ | ||
export interface HttpRequestHeaders { | ||
[name: string]: string; | ||
} | ||
import { Blob } from 'buffer'; | ||
import { ReadableStream } from 'stream/web'; | ||
import { FormData, Headers, HeadersInit } from 'undici'; | ||
import { URLSearchParams } from 'url'; | ||
import { FunctionOptions, FunctionOutput, FunctionResult, FunctionTrigger } from './index'; | ||
import { InvocationContext } from './InvocationContext'; | ||
/** | ||
* HTTP response headers. | ||
*/ | ||
export interface HttpResponseHeaders { | ||
[name: string]: string; | ||
} | ||
export type HttpHandler = (context: InvocationContext, request: HttpRequest) => FunctionResult<HttpResponse>; | ||
/** | ||
* Query string parameter keys and values from the URL. | ||
*/ | ||
export interface HttpRequestQuery { | ||
[name: string]: string; | ||
} | ||
export interface HttpFunctionOptions extends HttpTriggerOptions, Partial<FunctionOptions> { | ||
handler: HttpHandler; | ||
/** | ||
* Route parameter keys and values. | ||
*/ | ||
export interface HttpRequestParams { | ||
[name: string]: string; | ||
trigger?: HttpTrigger; | ||
/** | ||
* Configuration for the optional primary output of the function. If not set, this will default to a standard http response output | ||
* This is the main output that you should set as the return value of the function handler during invocation | ||
*/ | ||
return?: FunctionOutput; | ||
} | ||
/** | ||
* Object representing logged-in user, either through | ||
* AppService/Functions authentication, or SWA Authentication | ||
*/ | ||
export interface HttpRequestUser { | ||
export interface HttpTriggerOptions { | ||
/** | ||
* Type of authentication, either AppService or StaticWebApps | ||
* The function HTTP authorization level | ||
* Defaults to 'anonymous' if not specified | ||
*/ | ||
type: HttpRequestUserType; | ||
authLevel?: 'anonymous' | 'function' | 'admin'; | ||
/** | ||
* unique user GUID | ||
* An array of the http methods for this http input | ||
* Defaults to ["get", "post"] if not specified | ||
*/ | ||
id: string; | ||
methods?: HttpMethod[]; | ||
/** | ||
* unique username | ||
* The route for this http input. If not specified, the function name will be used | ||
*/ | ||
username: string; | ||
route?: string; | ||
} | ||
export interface HttpTrigger extends FunctionTrigger { | ||
/** | ||
* provider of authentication service | ||
* The function HTTP authorization level. | ||
*/ | ||
identityProvider: string; | ||
authLevel: 'anonymous' | 'function' | 'admin'; | ||
/** | ||
* Extra authentication information, dependent on auth type | ||
* and auth provider | ||
* An array of the http methods for this http input | ||
*/ | ||
claimsPrincipalData: { | ||
[key: string]: any; | ||
}; | ||
methods: HttpMethod[]; | ||
/** | ||
* The route for this http input. If not specified, the function name will be used | ||
*/ | ||
route?: string; | ||
} | ||
/** | ||
* At this point in time there are no http output specific options | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export interface HttpOutputOptions {} | ||
export type HttpOutput = FunctionOutput & HttpOutputOptions; | ||
/** | ||
* HTTP request object. Provided to your function when using HTTP Bindings. | ||
*/ | ||
export interface HttpRequest { | ||
export declare class HttpRequest { | ||
/** | ||
* For testing purposes only. This will always be constructed for you when run in the context of the Azure Functions runtime | ||
*/ | ||
constructor(httpRequestInit: HttpRequestInit); | ||
/** | ||
* HTTP request method used to invoke this function. | ||
*/ | ||
method: HttpMethod | null; | ||
method: HttpMethod; | ||
/** | ||
@@ -74,10 +87,13 @@ * Request URL. | ||
url: string; | ||
/** | ||
* HTTP request headers. | ||
*/ | ||
headers: HttpRequestHeaders; | ||
headers: Headers; | ||
/** | ||
* Query string parameter keys and values from the URL. | ||
*/ | ||
query: HttpRequestQuery; | ||
query: URLSearchParams; | ||
/** | ||
@@ -87,2 +103,3 @@ * Route parameter keys and values. | ||
params: HttpRequestParams; | ||
/** | ||
@@ -94,70 +111,74 @@ * Object representing logged-in user, either through | ||
user: HttpRequestUser | null; | ||
/** | ||
* The HTTP request body. | ||
* If the media type is 'application/octet-stream' or 'multipart/*', this will be a Buffer | ||
* If the value is a JSON parse-able string, this will be the parsed object | ||
* Otherwise, this will be a string | ||
* Returns the body as a ReadableStream | ||
*/ | ||
body?: any; | ||
readonly body: ReadableStream | null; | ||
/** | ||
* The HTTP request body as a UTF-8 string. In this case, the name "raw" is used because the string will never be parsed to an object even if it is json. | ||
* Improvements to the naming are tracked in https://github.com/Azure/azure-functions-nodejs-worker/issues/294 | ||
* Returns whether the body has been read from | ||
*/ | ||
rawBody?: any; | ||
readonly bodyUsed: boolean; | ||
/** | ||
* The raw Buffer representing the body before any decoding or parsing has been done | ||
* Returns a promise fulfilled with the body as an ArrayBuffer | ||
*/ | ||
bufferBody?: Buffer; | ||
readonly arrayBuffer: () => Promise<ArrayBuffer>; | ||
/** | ||
* Get the value of a particular header field | ||
* Returns a promise fulfilled with the body as a Blob | ||
*/ | ||
get(field: string): string | undefined; | ||
readonly blob: () => Promise<Blob>; | ||
/** | ||
* 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" | ||
* Returns a promise fulfilled with the body as FormData | ||
*/ | ||
parseFormBody(): Form; | ||
} | ||
readonly formData: () => Promise<FormData>; | ||
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. | ||
* Returns a promise fulfilled with the body parsed as JSON | ||
*/ | ||
get(name: string): FormPart | null; | ||
readonly json: () => Promise<unknown>; | ||
/** | ||
* Returns the values of all name-value pairs whose name is `name`. If there are no such pairs, an empty array is returned. | ||
* Returns a promise fulfilled with the body as a string | ||
*/ | ||
getAll(name: string): FormPart[]; | ||
readonly text: () => Promise<string>; | ||
} | ||
/** | ||
* Route parameter keys and values. | ||
*/ | ||
export type HttpRequestParams = Record<string, string>; | ||
/** | ||
* Object representing logged-in user, either through | ||
* AppService/Functions authentication, or SWA Authentication | ||
*/ | ||
export interface HttpRequestUser { | ||
/** | ||
* Returns `true` if there is at least one name-value pair whose name is `name`. | ||
* Type of authentication, either AppService or StaticWebApps | ||
*/ | ||
has(name: string): boolean; | ||
type: HttpRequestUserType; | ||
/** | ||
* The number of parts in this form | ||
* unique user GUID | ||
*/ | ||
length: number; | ||
} | ||
id: string; | ||
export interface FormPart { | ||
/** | ||
* The value for this part of the form | ||
* unique username | ||
*/ | ||
value: Buffer; | ||
username: string; | ||
/** | ||
* The file name for this part of the form, if specified | ||
* provider of authentication service | ||
*/ | ||
fileName?: string; | ||
identityProvider: string; | ||
/** | ||
* The content type for this part of the form, assumed to be "text/plain" if not specified | ||
* Extra authentication information, dependent on auth type | ||
* and auth provider | ||
*/ | ||
contentType?: string; | ||
claimsPrincipalData: Record<string, unknown>; | ||
} | ||
@@ -175,24 +196,26 @@ | ||
/** | ||
* 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 { | ||
export type HttpResponseBody = string | Buffer | NodeJS.ArrayBufferView | number | object; | ||
export interface HttpResponse { | ||
/** | ||
* HTTP response headers. | ||
* HTTP response body | ||
*/ | ||
headers?: HttpResponseHeaders; | ||
body?: HttpResponseBody; | ||
/** | ||
* HTTP response cookies. | ||
* HTTP response status code | ||
* @default 200 | ||
*/ | ||
cookies?: Cookie[]; | ||
status?: number; | ||
/** | ||
* HTTP response body. | ||
* HTTP response headers | ||
*/ | ||
body?: any; | ||
headers?: HeadersInit; | ||
/** | ||
* HTTP response status code. | ||
* @default 200 | ||
* HTTP response cookies | ||
*/ | ||
statusCode?: number | string; | ||
cookies?: Cookie[]; | ||
/** | ||
@@ -204,141 +227,80 @@ * Enable content negotiation of response body if true | ||
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. | ||
* Http response cookie object to "Set-Cookie" | ||
*/ | ||
export interface HttpResponseSimple { | ||
export interface Cookie { | ||
name: string; | ||
value: string; | ||
/** | ||
* HTTP response headers. | ||
* Specifies allowed hosts to receive the cookie | ||
*/ | ||
headers?: HttpResponseHeaders; | ||
domain?: string; | ||
/** | ||
* HTTP response cookies. | ||
* Specifies URL path that must exist in the requested URL | ||
*/ | ||
cookies?: Cookie[]; | ||
path?: string; | ||
/** | ||
* HTTP response body. | ||
* NOTE: It is generally recommended that you use maxAge over expires. | ||
* Sets the cookie to expire at a specific date instead of when the client closes. | ||
* This can be a Javascript Date or Unix time in milliseconds. | ||
*/ | ||
body?: any; | ||
expires?: Date | number; | ||
/** | ||
* HTTP response status code. | ||
* This property takes precedence over the `status` property | ||
* @default 200 | ||
* Sets the cookie to only be sent with an encrypted request | ||
*/ | ||
statusCode?: number | string; | ||
secure?: boolean; | ||
/** | ||
* HTTP response status code | ||
* The same as `statusCode`. This property is ignored if `statusCode` is set | ||
* @default 200 | ||
* Sets the cookie to be inaccessible to JavaScript's Document.cookie API | ||
*/ | ||
status?: number | string; | ||
httpOnly?: boolean; | ||
/** | ||
* Enable content negotiation of response body if true | ||
* If false, treat response body as raw | ||
* @default false | ||
* Can restrict the cookie to not be sent with cross-site requests | ||
*/ | ||
enableContentNegotiation?: boolean; | ||
sameSite?: 'Strict' | 'Lax' | 'None' | undefined; | ||
/** | ||
* Number of seconds until the cookie expires. A zero or negative number will expire the cookie immediately. | ||
*/ | ||
maxAge?: number; | ||
} | ||
/** | ||
* Http response type. | ||
* For testing purposes only. This will always be constructed for you when run in the context of the Azure Functions runtime | ||
*/ | ||
export type HttpResponse = HttpResponseSimple | HttpResponseFull; | ||
export interface HttpRequestInit { | ||
method?: HttpMethod; | ||
url?: string; | ||
body?: HttpRequestBodyInit; | ||
headers?: Record<string, string>; | ||
query?: Record<string, string>; | ||
params?: Record<string, string>; | ||
} | ||
/** | ||
* Http response cookie object to "Set-Cookie" | ||
* For testing purposes only. This will always be constructed for you when run in the context of the Azure Functions runtime | ||
*/ | ||
export interface Cookie { | ||
/** Cookie name */ | ||
name: string; | ||
/** Cookie value */ | ||
value: string; | ||
/** Specifies allowed hosts to receive the cookie */ | ||
domain?: string; | ||
/** Specifies URL path that must exist in the requested URL */ | ||
path?: string; | ||
export interface HttpRequestBodyInit { | ||
/** | ||
* NOTE: It is generally recommended that you use maxAge over expires. | ||
* Sets the cookie to expire at a specific date instead of when the client closes. | ||
* This can be a Javascript Date or Unix time in milliseconds. | ||
* The body as a buffer. You only need to specify one of the `bytes` or `string` properties | ||
*/ | ||
expires?: Date | number; | ||
/** Sets the cookie to only be sent with an encrypted request */ | ||
secure?: boolean; | ||
/** Sets the cookie to be inaccessible to JavaScript's Document.cookie API */ | ||
httpOnly?: boolean; | ||
/** Can restrict the cookie to not be sent with cross-site requests */ | ||
sameSite?: 'Strict' | 'Lax' | 'None' | undefined; | ||
/** Number of seconds until the cookie expires. A zero or negative number will expire the cookie immediately. */ | ||
maxAge?: number; | ||
bytes?: Uint8Array; | ||
/** | ||
* The body as a buffer. You only need to specify one of the `bytes` or `string` properties | ||
*/ | ||
string?: string; | ||
} |
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the MIT License. | ||
import { Context } from './Context'; | ||
import { | ||
CosmosDBFunctionOptions, | ||
CosmosDBInput, | ||
CosmosDBInputOptions, | ||
CosmosDBOutput, | ||
CosmosDBOutputOptions, | ||
CosmosDBTrigger, | ||
CosmosDBTriggerOptions, | ||
} from './cosmosDB'; | ||
import { | ||
EventHubFunctionOptions, | ||
EventHubOutput, | ||
EventHubOutputOptions, | ||
EventHubTrigger, | ||
EventHubTriggerOptions, | ||
} from './eventHub'; | ||
import { | ||
HttpFunctionOptions, | ||
HttpHandler, | ||
HttpOutput, | ||
HttpOutputOptions, | ||
HttpTrigger, | ||
HttpTriggerOptions, | ||
} from './http'; | ||
import { InvocationContext } from './InvocationContext'; | ||
import { | ||
ServiceBusQueueFunctionOptions, | ||
ServiceBusQueueOutput, | ||
ServiceBusQueueOutputOptions, | ||
ServiceBusQueueTrigger, | ||
ServiceBusQueueTriggerOptions, | ||
ServiceBusTopicFunctionOptions, | ||
ServiceBusTopicOutput, | ||
ServiceBusTopicOutputOptions, | ||
ServiceBusTopicTrigger, | ||
ServiceBusTopicTriggerOptions, | ||
} from './serviceBus'; | ||
import { | ||
StorageBlobFunctionOptions, | ||
StorageBlobInput, | ||
StorageBlobInputOptions, | ||
StorageBlobOutput, | ||
StorageBlobOutputOptions, | ||
StorageBlobTrigger, | ||
StorageBlobTriggerOptions, | ||
StorageQueueFunctionOptions, | ||
StorageQueueOutput, | ||
StorageQueueOutputOptions, | ||
StorageQueueTrigger, | ||
StorageQueueTriggerOptions, | ||
} from './storage'; | ||
import { TimerFunctionOptions, TimerTrigger, TimerTriggerOptions } from './timer'; | ||
export * from './Context'; | ||
export * from './cosmosDB'; | ||
export * from './eventHub'; | ||
export * from './http'; | ||
export * from './InvocationContext'; | ||
export * from './serviceBus'; | ||
export * from './storage'; | ||
export * from './timer'; | ||
/** | ||
* Sets the programming model contained in this package to be the one used by the Azure Functions worker | ||
* The root namespace for performing operations on your Azure Function App | ||
*/ | ||
export declare function setup(): void; | ||
export namespace app { | ||
/** | ||
* Registers an http function in your app that will be triggered by making a request to the function url | ||
* @param name The name of the function. This will be the route unless a route is explicitly configured in the `HttpTriggerOptions` | ||
* @param options Configuration options describing the inputs, outputs, and handler for this function | ||
*/ | ||
export function http(name: string, options: HttpFunctionOptions): void; | ||
/** | ||
* Registers an http function in your app that will be triggered by making a 'GET' request to the function url | ||
* @param name The name of the function. This will be the route unless a route is explicitly configured in the `HttpTriggerOptions` | ||
* @param handler The handler for this function | ||
*/ | ||
export function get(name: string, handler: HttpHandler): void; | ||
/** | ||
* Registers an http function in your app that will be triggered by making a 'GET' request to the function url | ||
* @param name The name of the function. This will be the route unless a route is explicitly configured in the `HttpTriggerOptions` | ||
* @param options Configuration options describing the inputs, outputs, and handler for this function | ||
*/ | ||
export function get(name: string, options: HttpFunctionOptions): void; | ||
/** | ||
* Registers an http function in your app that will be triggered by making a 'PUT' request to the function url | ||
* @param name The name of the function. This will be the route unless a route is explicitly configured in the `HttpTriggerOptions` | ||
* @param handler The handler for this function | ||
*/ | ||
export function put(name: string, handler: HttpHandler): void; | ||
/** | ||
* Registers an http function in your app that will be triggered by making a 'PUT' request to the function url | ||
* @param name The name of the function. This will be the route unless a route is explicitly configured in the `HttpTriggerOptions` | ||
* @param options Configuration options describing the inputs, outputs, and handler for this function | ||
*/ | ||
export function put(name: string, options: HttpFunctionOptions): void; | ||
/** | ||
* Registers an http function in your app that will be triggered by making a 'POST' request to the function url | ||
* @param name The name of the function. This will be the route unless a route is explicitly configured in the `HttpTriggerOptions` | ||
* @param handler The handler for this function | ||
*/ | ||
export function post(name: string, handler: HttpHandler): void; | ||
/** | ||
* Registers an http function in your app that will be triggered by making a 'POST' request to the function url | ||
* @param name The name of the function. This will be the route unless a route is explicitly configured in the `HttpTriggerOptions` | ||
* @param options Configuration options describing the inputs, outputs, and handler for this function | ||
*/ | ||
export function post(name: string, options: HttpFunctionOptions): void; | ||
/** | ||
* Registers an http function in your app that will be triggered by making a 'PATCH' request to the function url | ||
* @param name The name of the function. This will be the route unless a route is explicitly configured in the `HttpTriggerOptions` | ||
* @param handler The handler for this function | ||
*/ | ||
export function patch(name: string, handler: HttpHandler): void; | ||
/** | ||
* Registers an http function in your app that will be triggered by making a 'PATCH' request to the function url | ||
* @param name The name of the function. This will be the route unless a route is explicitly configured in the `HttpTriggerOptions` | ||
* @param options Configuration options describing the inputs, outputs, and handler for this function | ||
*/ | ||
export function patch(name: string, options: HttpFunctionOptions): void; | ||
/** | ||
* Registers an http function in your app that will be triggered by making a 'DELETE' request to the function url | ||
* @param name The name of the function. This will be the route unless a route is explicitly configured in the `HttpTriggerOptions` | ||
* @param handler The handler for this function | ||
*/ | ||
export function deleteRequest(name: string, handler: HttpHandler): void; | ||
/** | ||
* Registers an http function in your app that will be triggered by making a 'DELETE' request to the function url | ||
* @param name The name of the function. This will be the route unless a route is explicitly configured in the `HttpTriggerOptions` | ||
* @param options Configuration options describing the inputs, outputs, and handler for this function | ||
*/ | ||
export function deleteRequest(name: string, options: HttpFunctionOptions): void; | ||
/** | ||
* Registers a timer function in your app that will be triggered on a schedule | ||
* @param name The name of the function. The name must be unique within your app and will mostly be used for your own tracking purposes | ||
* @param options Configuration options describing the inputs, outputs, and handler for this function | ||
*/ | ||
export function timer(name: string, options: TimerFunctionOptions): void; | ||
/** | ||
* Registers a function in your app that will be triggered whenever an item is added to a storage blob path | ||
* @param name The name of the function. The name must be unique within your app and will mostly be used for your own tracking purposes | ||
* @param options Configuration options describing the inputs, outputs, and handler for this function | ||
*/ | ||
export function storageBlob(name: string, options: StorageBlobFunctionOptions): void; | ||
/** | ||
* Registers a function in your app that will be triggered whenever an item is added to a storage queue | ||
* @param name The name of the function. The name must be unique within your app and will mostly be used for your own tracking purposes | ||
* @param options Configuration options describing the inputs, outputs, and handler for this function | ||
*/ | ||
export function storageQueue(name: string, options: StorageQueueFunctionOptions): void; | ||
/** | ||
* Registers a function in your app that will be triggered whenever a message is added to a service bus queue | ||
* @param name The name of the function. The name must be unique within your app and will mostly be used for your own tracking purposes | ||
* @param options Configuration options describing the inputs, outputs, and handler for this function | ||
*/ | ||
export function serviceBusQueue(name: string, options: ServiceBusQueueFunctionOptions): void; | ||
/** | ||
* Registers a function in your app that will be triggered whenever a message is added to a service bus topic | ||
* @param name The name of the function. The name must be unique within your app and will mostly be used for your own tracking purposes | ||
* @param options Configuration options describing the inputs, outputs, and handler for this function | ||
*/ | ||
export function serviceBusTopic(name: string, options: ServiceBusTopicFunctionOptions): void; | ||
/** | ||
* Registers a function in your app that will be triggered whenever a message is added to an event hub | ||
* @param name The name of the function. The name must be unique within your app and will mostly be used for your own tracking purposes | ||
* @param options Configuration options describing the inputs, outputs, and handler for this function | ||
*/ | ||
export function eventHub(name: string, options: EventHubFunctionOptions): void; | ||
/** | ||
* Registers a Cosmos DB function in your app that will be triggered whenever inserts and updates occur (not deletions) | ||
* @param name The name of the function. The name must be unique within your app and will mostly be used for your own tracking purposes | ||
* @param options Configuration options describing the inputs, outputs, and handler for this function | ||
*/ | ||
export function cosmosDB(name: string, options: CosmosDBFunctionOptions): void; | ||
/** | ||
* Registers a generic function in your app that will be triggered based on the `triggerType` | ||
* @param name The name of the function. The name must be unique within your app and will mostly be used for your own tracking purposes | ||
* @param options Configuration options describing the inputs, outputs, and handler for this function | ||
*/ | ||
export function generic(triggerType: string, name: string, options: FunctionOptions): void; | ||
} | ||
/** | ||
* Interface for your Azure Function code. This function must be exported (via module.exports or exports) | ||
* and will execute when triggered. It is recommended that you declare this function as async, which | ||
* implicitly returns a Promise. | ||
* @param context Context object passed to your function from the Azure Functions runtime. | ||
* @param {any[]} args Optional array of input and trigger binding data. These binding data are passed to the | ||
* function in the same order that they are defined in function.json. Valid input types are string, HttpRequest, | ||
* and Buffer. | ||
* @returns Output bindings (optional). If you are returning a result from a Promise (or an async function), this | ||
* result will be passed to JSON.stringify unless it is a string, Buffer, ArrayBufferView, or number. | ||
* The root namespace used to help create trigger configuration (the primary input) | ||
*/ | ||
export type AzureFunction = (context: Context, ...args: any[]) => Promise<any> | void; | ||
export namespace trigger { | ||
/** | ||
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-http-webhook-trigger?&pivots=programming-language-javascript) | ||
*/ | ||
export function http(options: HttpTriggerOptions): HttpTrigger; | ||
/** | ||
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-timer?pivots=programming-language-javascript) | ||
*/ | ||
export function timer(options: TimerTriggerOptions): TimerTrigger; | ||
/** | ||
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-storage-blob-trigger?pivots=programming-language-javascript) | ||
*/ | ||
export function storageBlob(options: StorageBlobTriggerOptions): StorageBlobTrigger; | ||
/** | ||
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-storage-queue-trigger?pivots=programming-language-javascript) | ||
*/ | ||
export function storageQueue(options: StorageQueueTriggerOptions): StorageQueueTrigger; | ||
/** | ||
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-service-bus-trigger?pivots=programming-language-javascript) | ||
*/ | ||
export function serviceBusQueue(options: ServiceBusQueueTriggerOptions): ServiceBusQueueTrigger; | ||
/** | ||
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-service-bus-trigger?pivots=programming-language-javascript) | ||
*/ | ||
export function serviceBusTopic(options: ServiceBusTopicTriggerOptions): ServiceBusTopicTrigger; | ||
/** | ||
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-event-hubs-trigger?pivots=programming-language-javascript) | ||
*/ | ||
export function eventHub(options: EventHubTriggerOptions): EventHubTrigger; | ||
/** | ||
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-cosmosdb-v2-trigger?pivots=programming-language-javascript) | ||
*/ | ||
export function cosmosDB(options: CosmosDBTriggerOptions): CosmosDBTrigger; | ||
export function generic(options: { type: string }): FunctionTrigger; | ||
} | ||
/** | ||
* The root namespace used to help create secondary input configuration ("trigger" is the primary input) | ||
* NOTE: Not all triggers can be used as secondary inputs | ||
*/ | ||
export namespace input { | ||
/** | ||
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-storage-blob-input?pivots=programming-language-javascript) | ||
*/ | ||
export function storageBlob(options: StorageBlobInputOptions): StorageBlobInput; | ||
/** | ||
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-cosmosdb-v2-input?pivots=programming-language-javascript) | ||
*/ | ||
export function cosmosDB(options: CosmosDBInputOptions): CosmosDBInput; | ||
export function generic(options: { type: string }): FunctionInput; | ||
} | ||
/** | ||
* The root namespace used to help create output configuration | ||
*/ | ||
export namespace output { | ||
/** | ||
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-http-webhook-output?&pivots=programming-language-javascript) | ||
*/ | ||
export function http(options: HttpOutputOptions): HttpOutput; | ||
/** | ||
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-storage-blob-output?pivots=programming-language-javascript) | ||
*/ | ||
export function storageBlob(options: StorageBlobOutputOptions): StorageBlobOutput; | ||
/** | ||
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-storage-queue-output?pivots=programming-language-javascript) | ||
*/ | ||
export function storageQueue(options: StorageQueueOutputOptions): StorageQueueOutput; | ||
/** | ||
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-service-bus-output?pivots=programming-language-javascript) | ||
*/ | ||
export function serviceBusQueue(options: ServiceBusQueueOutputOptions): ServiceBusQueueOutput; | ||
/** | ||
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-service-bus-output?pivots=programming-language-javascript) | ||
*/ | ||
export function serviceBusTopic(options: ServiceBusTopicOutputOptions): ServiceBusTopicOutput; | ||
/** | ||
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-event-hubs-output?pivots=programming-language-javascript) | ||
*/ | ||
export function eventHub(options: EventHubOutputOptions): EventHubOutput; | ||
/** | ||
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-cosmosdb-v2-output?pivots=programming-language-javascript) | ||
*/ | ||
export function cosmosDB(options: CosmosDBOutputOptions): CosmosDBOutput; | ||
export function generic(options: { type: string }): FunctionOutput; | ||
} | ||
/** | ||
* Void if no `return` output is registered | ||
* Otherwise, the registered `return` output | ||
*/ | ||
export type FunctionResult<T = unknown> = T | Promise<T>; | ||
export type FunctionHandler = (context: InvocationContext, triggerInput: any) => FunctionResult<any>; | ||
/** | ||
* Configures the inputs, outputs, and handler for an Azure Function | ||
*/ | ||
export interface FunctionOptions { | ||
/** | ||
* The code that will be executed when your function is triggered | ||
*/ | ||
handler: FunctionHandler; | ||
/** | ||
* Configuration for the primary input to the function, aka the reason it will be triggered | ||
* This is the only input that is passed as an argument to the function handler during invocation | ||
*/ | ||
trigger: FunctionTrigger; | ||
/** | ||
* Configuration for the optional primary output of the function | ||
* This is the main output that you should set as the return value of the function handler during invocation | ||
*/ | ||
return?: FunctionOutput; | ||
/** | ||
* Configuration for an optional set of secondary inputs | ||
* During invocation, get these values with `context.extraInputs.get()` | ||
*/ | ||
extraInputs?: FunctionInput[]; | ||
/** | ||
* Configuration for an optional set of secondary outputs | ||
* During invocation, set these values with `context.extraOutputs.set()` | ||
*/ | ||
extraOutputs?: FunctionOutput[]; | ||
} | ||
/** | ||
* Full configuration for the primary input to a function | ||
*/ | ||
export interface FunctionTrigger { | ||
type: string; | ||
name: string; | ||
} | ||
/** | ||
* Full configuration for the secondary input to a function ("trigger" is the primary input) | ||
*/ | ||
export interface FunctionInput { | ||
type: string; | ||
name: string; | ||
} | ||
/** | ||
* Full configuration for the output to a function | ||
*/ | ||
export interface FunctionOutput { | ||
type: string; | ||
name: string; | ||
} |
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the MIT License. | ||
import { FunctionOptions, FunctionResult, FunctionTrigger } from './index'; | ||
import { InvocationContext } from './InvocationContext'; | ||
export type TimerHandler = (context: InvocationContext, myTimer: Timer) => FunctionResult; | ||
export interface TimerFunctionOptions extends TimerTriggerOptions, Partial<FunctionOptions> { | ||
handler: TimerHandler; | ||
trigger?: TimerTrigger; | ||
} | ||
export interface TimerTriggerOptions { | ||
/** | ||
* A [cron expression](https://docs.microsoft.com/azure/azure-functions/functions-bindings-timer?pivots=programming-language-javascript#ncrontab-expressions) of the format '{second} {minute} {hour} {day} {month} {day of week}' to specify the schedule | ||
*/ | ||
schedule: string; | ||
/** | ||
* If `true`, the function is invoked when the runtime starts. | ||
* For example, the runtime starts when the function app wakes up after going idle due to inactivity, when the function app restarts due to function changes, and when the function app scales out. | ||
* _Use with caution_. runOnStartup should rarely if ever be set to `true`, especially in production. | ||
*/ | ||
runOnStartup?: boolean; | ||
/** | ||
* When true, schedule will be persisted to aid in maintaining the correct schedule even through restarts. Defaults to true for schedules with interval >= 1 minute | ||
*/ | ||
useMonitor?: boolean; | ||
} | ||
export type TimerTrigger = FunctionTrigger & TimerTriggerOptions; | ||
/** | ||
@@ -5,0 +37,0 @@ * Timer schedule information. Provided to your function when using a timer binding. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 3 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
400661
38
17
1677
80
7
6
+ Addedundici@^5.8.2
+ Added@fastify/busboy@2.1.1(transitive)
+ Addedundici@5.28.4(transitive)
- Removediconv-lite@^0.6.3
- Removediconv-lite@0.6.3(transitive)
- Removedsafer-buffer@2.1.2(transitive)