{"name":"@azure/functions","version":"4.0.0-alpha.2","description":"Microsoft Azure Functions NodeJS Framework","keywords":["azure","azure-functions","serverless","typescript"],"author":{"name":"Microsoft"},"license":"MIT","homepage":"https://github.com/Azure/azure-functions-nodejs-library","repository":{"type":"git","url":"git+https://github.com/Azure/azure-functions-nodejs-library.git"},"bugs":{"url":"https://github.com/Azure/azure-functions-nodejs-library/issues"},"main":"dist/src/index-bundle.js","types":"types/index.d.ts","engines":{"node":">=18.0"},"scripts":{"build":"node ./node_modules/typescript/bin/tsc","test":"node ./dist/test/index.js","lint":"eslint .","lint-fix":"eslint . --fix","updateVersion":"ts-node ./scripts/updateVersion.ts","watch":"node ./node_modules/typescript/bin/tsc --watch","webpack":"webpack --mode production"},"dependencies":{"fs-extra":"^10.0.1","long":"^4.0.0","undici":"^5.8.2","uuid":"^8.3.0"},"devDependencies":{"@types/chai":"^4.2.22","@types/chai-as-promised":"^7.1.5","@types/fs-extra":"^9.0.13","@types/long":"^4.0.2","@types/minimist":"^1.2.2","@types/mocha":"^9.1.1","@types/mock-fs":"^4.13.1","@types/mock-require":"^2.0.1","@types/node":"^18.0.0","@types/semver":"^7.3.9","@types/sinon":"^7.0.0","@types/uuid":"^8.3.4","@typescript-eslint/eslint-plugin":"^5.12.1","@typescript-eslint/parser":"^5.12.1","chai":"^4.2.0","chai-as-promised":"^7.1.1","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-deprecation":"^1.3.2","eslint-plugin-header":"^3.1.1","eslint-plugin-prettier":"^4.0.0","globby":"^11.0.0","minimist":"^1.2.6","mocha":"^9.1.1","mocha-junit-reporter":"^2.0.2","mocha-multi-reporters":"^1.5.1","mock-fs":"^5.1.2","mock-require":"^2.0.2","prettier":"^2.4.1","rimraf":"^2.6.3","semver":"^7.3.5","shx":"^0.3.3","sinon":"^7.0.0","ts-node":"^3.3.0","typescript":"^4.5.5","typescript4":"npm:typescript@~4.0.0","webpack":"^5.72.1","webpack-cli":"^4.8.0"},"readme":"# Azure Functions Node.js Framework\r\n\r\n|Branch|Status|Support level|Node.js Versions|\r\n|---|---|---|---|\r\n|v4.x|[![Build Status](https://img.shields.io/azure-devops/build/azfunc/Azure%2520Functions/145/v4.x)](https://azfunc.visualstudio.com/Azure%20Functions/_build/latest?definitionId=145&branchName=v4.x) [![Test Status](https://img.shields.io/azure-devops/tests/azfunc/Azure%2520Functions/146/v4.x?compact_message)](https://azfunc.visualstudio.com/Azure%20Functions/_build/latest?definitionId=146&branchName=v4.x)|Preview|18 (preview)|\r\n|v3.x (default)|[![Build Status](https://img.shields.io/azure-devops/build/azfunc/Azure%2520Functions/145/v3.x)](https://azfunc.visualstudio.com/Azure%20Functions/_build/latest?definitionId=145&branchName=v3.x) [![Test Status](https://img.shields.io/azure-devops/tests/azfunc/Azure%2520Functions/146/v3.x?compact_message)](https://azfunc.visualstudio.com/Azure%20Functions/_build/latest?definitionId=146&branchName=v3.x)|GA (Recommended)|18 (preview), 16, 14|\r\n\r\n## Install\r\n\r\n```\r\nnpm install @azure/functions\r\n```\r\n\r\n## Usage\r\n\r\n_**UPDATE**_: **See here for important information on v4 of the Azure Functions Node.js Framework: https://aka.ms/AzFuncNodeV4**\r\n\r\nPrior 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.\r\n\r\n### TypeScript:\r\n\r\nFor a full tutorial, see [how to create your first TypeScript function](https://docs.microsoft.com/azure/azure-functions/create-first-function-vs-code-typescript).\r\n\r\n1. Specify a main entrypoint in your package.json\r\n    ```json\r\n    \"main\": \"dist/src/index.js\"\r\n    ```\r\n2. Add the following code to your entrypoint file (e.g. `src/index.ts`):\r\n    ```typescript\r\n    import * as func from '@azure/functions';\r\n\r\n    func.setup();\r\n    ```\r\n\r\n**IMPORTANT NOTE**: If you only want this package for the TypeScript type definitions, you may list this package in the \"devDependencies\" section of your package.json. If you are overriding the default shipped in Azure as described above, the package must be listed in the production \"dependencies\" section of your package.json.\r\n\r\nFor more documentation, see the [TypeScript developer guide](https://docs.microsoft.com/azure/azure-functions/functions-reference-node#typescript).\r\n\r\n### JavaScript\r\n\r\nFor a full tutorial, see [how to create your first JavaScript function](https://docs.microsoft.com/azure/azure-functions/create-first-function-vs-code-node).\r\n\r\n1. Specify a main entrypoint in your package.json\r\n    ```json\r\n    \"main\": \"src/index.js\"\r\n    ```\r\n2. Add the following code to your entrypoint file:\r\n    ```javascript\r\n    const func = require('@azure/functions');\r\n    \r\n    func.setup();\r\n    ```\r\n\r\nFor more documentation, see the [JavaScript developer guide](https://docs.microsoft.com/azure/azure-functions/functions-reference-node).\r\n\r\n## Contributing\r\n\r\n- Clone the repository locally and open in VS Code\r\n- Run \"Extensions: Show Recommended Extensions\" from the [command palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) and install all extensions listed under \"Workspace Recommendations\"\r\n- Run `npm install`\r\n- Run `npm run build`\r\n- Run `npm link`\r\n- Create or open a local function app to test with\r\n- In the local function app:\r\n  - Make sure you are calling `func.setup()` somewhere in your app, as described above in the \"Usage\" section\r\n  - Run `npm link @azure/functions`. This will point your app to the local repository for the framework package\r\n  - Add the following settings to your \"local.settings.json\" file or configure them directly as environment variables\r\n    - `languageWorkers__node__arguments`: `--inspect`\r\n      > 💡 Tip: Set `logging__logLevel__Worker` to `debug` if you want to view worker-specific logs in the output of `func start`\r\n  - Start the app (i.e. run `func start` or press <kbd>F5</kbd>)\r\n- Back in the framework repository, press <kbd>F5</kbd> and select the process for your running function app\r\n- Before you submit a PR, run `npm run lint` and `npm test` and fix any issues. If you want to debug the tests, switch your [launch profile](https://code.visualstudio.com/docs/editor/debugging) in VS Code to \"Launch Unit Tests\" and press <kbd>F5</kbd>.\r\n\r\n### Code of Conduct\r\n\r\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\r\n\r\n### Contributing to type definitions\r\n\r\nThe type definitions are located in the `types` folder. Please make sure to update the tests in `./test/types/index.test.ts` as well.","readmeFilename":"README.md","_id":"@azure/functions@4.0.0-alpha.2","_integrity":"sha512-B8WADqrlAkqjJ5y1z1SqeuiVuCPzOAKZIgAxzuecdsE0E+Wax7OIhJ+OU2gXDKydXGoReHpYdkxLxzYKzBovjA==","_resolved":"/mnt/vss/_work/1/nodeLibraryCI/drop/package.tgz","_from":"file:package.tgz","_nodeVersion":"18.8.0","_npmVersion":"8.18.0","dist":{"integrity":"sha512-B8WADqrlAkqjJ5y1z1SqeuiVuCPzOAKZIgAxzuecdsE0E+Wax7OIhJ+OU2gXDKydXGoReHpYdkxLxzYKzBovjA==","shasum":"1d263c3c4d92d66e49fa1c3552a174aeda055290","tarball":"http://registry-npm.ywwl.com/@azure/functions/download/@azure/functions-4.0.0-alpha.2.tgz","fileCount":17,"unpackedSize":400736,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGomQnRPutpz1X5rUS+KjtAH08dszdT7/W28OSHUO2pBAiAaj60CDULNb2eflQYm+t1QUtsWuVNNrBrDcuEXuGkzuA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjCVU7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrXXg/+MyIhlIVyEHfjkagp2PecvfhZZespJZ/d+tJmCr4cnSe43PTk\r\nWFuVtfM/89a8rJSpq0K4Yqtbe3p0I4AZkym0yJ9ckxWOfwrx/ISlCSwBpO1b\r\nwfQO1kiMUuZoi/uYexJLiZb7GBiFnXiLgGAdLWpOuQnZ0VAJUF2uqjD6UXEM\r\n33xBUPmYgBvTWaWlcAHne2kkFDvEKcW0OxYz6LC/nPiLYrP0OAsdXBTFpKx5\r\n0HjG+NM1qEeEJTjjGgDYqkP5BLUy1Zf1QxwCzHF3sEpgLym9VEJAutUyMWq/\r\nPa7QUb0zGYa4zhJgK8Me0TNQ9LUat21DYm214r8tdcVG4R2g2mXzleQNQIKC\r\nRPcInaqpIdPa8s0Etupnh4T81sNnxiHliZMWjPy/TJW16NKWBLiPAPytPqk/\r\nEyI2PD79kOHjStlWZ93vNy8coYQoqBtanyhEHyWPmcpN8HI+WE+IVaZWq9Gh\r\nzin9Cm8JAWrIaxem3bexloWgg1F/2RoYFfRvIkbuk/5luqkdiu+0iJiMG4Ry\r\nxAzGE6r+fy6MAum2ZWmoNT3uIePapVKAIvQZwCCtKFF89wiVGVmAjRSRiVgC\r\nUVXgz4sy5Pm0eik33+g9HvGce8849zwyn4UpMoqUCPTK5DbmBlmLUJQjCd7k\r\nhZ78/avVcSDpF5YpPlsPl7QdeU2e89DMOI4=\r\n=J1C+\r\n-----END PGP SIGNATURE-----\r\n","size":113760,"noattachment":false,"key":"/@azure/functions/-/@azure/functions-4.0.0-alpha.2.tgz"},"_npmUser":{"name":"erijiz","email":"erijiz@microsoft.com"},"directories":{},"maintainers":[{"name":"erijiz","email":"erijiz@microsoft.com"},{"name":"anatolib","email":"anatolib@microsoft.com"},{"name":"pgopa","email":"pgopa@microsoft.com"},{"name":"paulbatum","email":"paul.batum@gmail.com"},{"name":"facavalcante","email":"facaval@microsoft.com"},{"name":"ahmelsayed","email":"ahmelsayed@outlook.com"},{"name":"mahoeger","email":"mahoeger@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/functions_4.0.0-alpha.2_1661556027530_0.679815713915954"},"_hasShrinkwrap":false,"publish_time":1661556027761,"_cnpm_publish_time":1661556027761,"dist-tags":{"beta":"4.11.1","latest":"4.17.0","next":"4.11.1","preview":"4.16.0-preview"}}