@azure/functions
Advanced tools
Comparing version 1.2.3 to 2.0.0-beta.0
{ | ||
"name": "@azure/functions", | ||
"version": "1.2.3", | ||
"description": "Azure Functions types for Typescript", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Azure/azure-functions-nodejs-worker/tree/master/types/public" | ||
}, | ||
"keywords": [ | ||
"azure-functions", | ||
"typescript" | ||
], | ||
"types": "./Interfaces.d.ts", | ||
"author": "Microsoft", | ||
"license": "MIT" | ||
} | ||
"name": "@azure/functions", | ||
"version": "2.0.0-beta.0", | ||
"description": "Azure Functions types for Typescript", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Azure/azure-functions-nodejs-worker/tree/v2.x/types" | ||
}, | ||
"keywords": [ | ||
"azure-functions", | ||
"typescript" | ||
], | ||
"types": "./index.d.ts", | ||
"author": "Microsoft", | ||
"license": "MIT" | ||
} |
# Type definitions for Azure Functions | ||
This package contains type definitions for using TypeScript with Azure Functions. | ||
This package contains type definitions for using TypeScript with Azure Functions. Follow [this tutorial](https://docs.microsoft.com/azure/azure-functions/create-first-function-vs-code-typescript) to create your first TypeScript function. | ||
These typings are for common objects that will be passed to your Azure Functions function code. Azure Functions supports TypeScript development, but does not support directly running TypeScript code without transpilation. | ||
# Versioning | ||
The version of the package matches the version of the [Node.js worker](https://github.com/Azure/azure-functions-nodejs-worker). It is recommended to install the latest version of the package matching the major version of your worker. | ||
Read more on [configuring entry points](https://docs.microsoft.com/azure/azure-functions/functions-reference-node#configure-function-entry-point) in your Azure Functions function app. | ||
|Worker Version|[Runtime Version](https://docs.microsoft.com/azure/azure-functions/functions-versions)|Support level|Node.js Versions| | ||
|---|---|---|---| | ||
|3|4|Preview|14| | ||
|2|3|GA (Recommended)|14, 12, 10| | ||
|1|2|GA (Maintenance mode)|10, 8| | ||
# Install | ||
Because this package only contains TypeScript type definitions, it should be saved under `devDependencies`. | ||
Because this package only contains type definitions, it should be saved under `devDependencies`. | ||
@@ -14,3 +19,3 @@ `npm install @azure/functions --save-dev` | ||
# Usage | ||
```javascript | ||
```typescript | ||
import { AzureFunction, Context, HttpRequest } from "@azure/functions"; | ||
@@ -36,10 +41,4 @@ | ||
# Versions | ||
Versioning of @azure/functions is tied to the version of the [Azure Functions Node.js Worker](https://github.com/Azure/azure-functions-nodejs-worker/releases) the types were generated from. You can find the Azure Functions Node.js Worker version of a given Function Runtime Version [here](https://github.com/Azure/azure-functions-host/releases). It is recommended that you take the latest version available. | ||
# Contributing | ||
# Getting Started with Azure Functions | ||
If you are getting started with Azure Functions, you can follow this tutorial to [create and deploy your first JavaScript function](https://docs.microsoft.com/azure/azure-functions/functions-create-first-function-vs-code). We recommend that you use Visual Studio Code and the [Azure Functions extension](https://code.visualstudio.com/tutorials/functions-extension/getting-started). | ||
The [Azure Functions developer guide](https://docs.microsoft.com/azure/azure-functions/functions-reference) and the [JavaScript-specific developer guide](https://docs.microsoft.com/azure/azure-functions/functions-reference-node) are good resources to gain an understanding of more Azure Functions concepts. | ||
See "Contributing" section on the Node.js worker repo [here](https://github.com/Azure/azure-functions-nodejs-worker#contributing). |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
13907
4
296
2
43
2