{"name":"@azure/functions","version":"4.0.0-alpha.9","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/azure-functions.js","types":"types/index.d.ts","engines":{"node":">=18.0"},"scripts":{"build":"webpack --mode development","minify":"webpack --mode production","test":"ts-node ./test/index.ts","lint":"eslint . --fix","updateVersion":"ts-node ./scripts/updateVersion.ts","watch":"webpack --watch --mode development"},"dependencies":{"long":"^4.0.0","undici":"^5.13.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/node":"^18.0.0","@types/semver":"^7.3.9","@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","eslint-webpack-plugin":"^3.2.0","fork-ts-checker-webpack-plugin":"^7.2.13","fs-extra":"^10.0.1","globby":"^11.0.0","minimist":"^1.2.6","mocha":"^9.1.1","mocha-junit-reporter":"^2.0.2","mocha-multi-reporters":"^1.5.1","prettier":"^2.4.1","semver":"^7.3.5","ts-loader":"^9.3.1","ts-node":"^3.3.0","typescript":"^4.5.5","typescript4":"npm:typescript@~4.0.0","webpack":"^5.74.0","webpack-cli":"^4.10.0"},"readme":"# Azure Functions Node.js Programming Model\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|\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, 16, 14|\r\n\r\n## Install\r\n\r\n```bash\r\nnpm install @azure/functions@preview\r\n```\r\n\r\n## Documentation\r\n\r\n- [Azure Functions JavaScript Developer Guide](https://learn.microsoft.com/azure/azure-functions/functions-reference-node?pivots=nodejs-model-v4)\r\n- [Upgrade guide from v3 to v4](https://learn.microsoft.com/azure/azure-functions/functions-node-upgrade-v4)\r\n- [Create your first TypeScript function](https://docs.microsoft.com/azure/azure-functions/create-first-function-vs-code-typescript?pivots=nodejs-model-v4)\r\n- [Create your first JavaScript function](https://docs.microsoft.com/azure/azure-functions/create-first-function-vs-code-node?pivots=nodejs-model-v4)\r\n\r\n## Considerations\r\n\r\n- During preview, the v4 model requires you to set the app setting `AzureWebJobsFeatureFlags` to `EnableWorkerIndexing`. For more information, see [Enable v4 programming model](https://learn.microsoft.com/azure/azure-functions/functions-reference-node?pivots=nodejs-model-v4#enable-v4-programming-model).\r\n- The Node.js \"programming model\" shouldn't be confused with the Azure Functions \"runtime\".\r\n  - _**Programming model**_: Defines how you author your code and is specific to JavaScript and TypeScript.\r\n  - _**Runtime**_: Defines underlying behavior of Azure Functions and is shared across all languages.\r\n- The programming model version is strictly tied to the version of the [`@azure/functions`](https://www.npmjs.com/package/@azure/functions) npm package, and is versioned independently of the [runtime](https://learn.microsoft.com/azure/azure-functions/functions-versions?pivots=programming-language-javascript). Both the runtime and the programming model use \"4\" as their latest major version, but that is purely a coincidence.\r\n\r\n## Usage\r\n\r\n### TypeScript\r\n\r\n```typescript\r\nimport { app, HttpRequest, HttpResponseInit, InvocationContext } from \"@azure/functions\";\r\n\r\nexport async function httpTrigger1(request: HttpRequest, context: InvocationContext): Promise<HttpResponseInit> {\r\n    context.log(`Http function processed request for url \"${request.url}\"`);\r\n\r\n    const name = request.query.get('name') || await request.text() || 'world';\r\n\r\n    return { body: `Hello, ${name}!` };\r\n};\r\n\r\napp.http('httpTrigger1', {\r\n    methods: ['GET', 'POST'],\r\n    authLevel: 'anonymous',\r\n    handler: httpTrigger1\r\n});\r\n```\r\n\r\n### JavaScript\r\n\r\n```javascript\r\nconst { app } = require('@azure/functions');\r\n\r\napp.http('httpTrigger1', {\r\n    methods: ['GET', 'POST'],\r\n    authLevel: 'anonymous',\r\n    handler: async (request, context) => {\r\n        context.log(`Http function processed request for url \"${request.url}\"`);\r\n\r\n        const name = request.query.get('name') || await request.text() || 'world';\r\n\r\n        return { body: `Hello, ${name}!` };\r\n    }\r\n});\r\n```\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  - Run `npm link @azure/functions`. This will point your app to the local repository for the `@azure/functions` 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 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.\r\n","readmeFilename":"README.md","_id":"@azure/functions@4.0.0-alpha.9","_integrity":"sha512-iAFb7sUXE4MmZd699UvR06/6ljSTIQfJ72Q/oy4tT3LomhonE1fptdUXglh5uZ3JqBIkpb5Lj+pwhvwuNYi8qQ==","_resolved":"/mnt/vss/_work/1/nodeLibraryCI/drop/package.tgz","_from":"file:package.tgz","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-iAFb7sUXE4MmZd699UvR06/6ljSTIQfJ72Q/oy4tT3LomhonE1fptdUXglh5uZ3JqBIkpb5Lj+pwhvwuNYi8qQ==","shasum":"729e060bcd7aa310e7f7a18b766872184f91d91d","tarball":"http://registry-npm.ywwl.com/@azure/functions/download/@azure/functions-4.0.0-alpha.9.tgz","fileCount":53,"unpackedSize":473027,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpv5QPhTwKHj/1sUY/DJZ9aJcZsgoIuGNXw1gNEY5lPAIgJjPsehVVqIVSXvt4pPJGIim17AHpebWZkSE8awRZ/Fs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHM5tACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqUHw//as8qLC0X7WZ3qMj6MvGVgjXrQiqpQixFja3ajNFJEFUuWbVg\r\ngRDBQ9/HG8Bhjs+HDMn/hc/vcLHEqBASEYq6wL8T86p+e7C4jIaUKf29Ec3/\r\nHV4zli7SnoDJXgmu3O6OB7cJS7HqkeFaW+jJGS3QnsneqQOgqL7g08ndJZiv\r\nS6n2KSOotgPKZ+1Lbedefpm8JznpnzdA/NHjAIVfhVeprzsnILLLtC5dTfJN\r\nCOmjByLtiV1Gn1ss/rXGqNIMgBE3WKGhJkSnP22i28guif2U+8V7+XcB7RDG\r\nji07FttOOxQIk0su7OOzana3MJKilVZm/uCnwqrFGQm88O8AjBDH665pbwYJ\r\ngnBWEPnUXBbQI+nDejYkkgZC2Xg7FDe6P2+ndSw+vTwJGpwjd2PJUPgnMSKL\r\n5l3gbESbKr0BGY4/SApGrBlld3JHgsUI7gP60pcE3+SzkfzjveI7pJcpETjs\r\n1ydTJ5HTfStGHyf3dcUp+6uxBMF7hL1VZrq+IAvoWdkrh//mjC8KIPk/nOID\r\nqaDgV8YNOOweHOGwRB7whLG8h13/T9jYA67ERjrEunc8ZIvftEgygLJHBg4v\r\nPLjaZkUA77MUTDXNpIWrp2y6OAjPUxpGDA/E5od1l8xGIlbXr3OiftP087EM\r\nVexS6VNEAMqLKqmJhhr7FAWPCTSt/yXgxV4=\r\n=YtgR\r\n-----END PGP SIGNATURE-----\r\n","size":94882,"noattachment":false,"key":"/@azure/functions/-/@azure/functions-4.0.0-alpha.9.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.9_1679609453017_0.08977439672637377"},"_hasShrinkwrap":false,"publish_time":1679609453211,"_cnpm_publish_time":1679609453211,"dist-tags":{"beta":"4.11.1","latest":"4.17.0","next":"4.11.1","preview":"4.16.0-preview"}}