From 62a18b8f9ce8afbe6e543df84f320715e5906750 Mon Sep 17 00:00:00 2001 From: anzharip <10259593+anzharip@users.noreply.github.com> Date: Wed, 22 Jun 2022 22:10:13 +0900 Subject: [PATCH] fix: @azure/functions type definition change --- package-lock.json | 14 +++++++------- package.json | 2 +- test/index.spec.ts | 6 +++++- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3657e7a..72c3ba5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.2.1", "license": "SEE LICENSE IN LICENSE", "dependencies": { - "@azure/functions": "^3.0.0", + "@azure/functions": "^3.2.0", "@types/busboy": "^1.3.0", "@types/node": "^17.0.0", "busboy": "^1.6.0" @@ -34,9 +34,9 @@ } }, "node_modules/@azure/functions": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@azure/functions/-/functions-3.0.0.tgz", - "integrity": "sha512-nxOdQdYoy9JEdAPsQlBWavsRvbH5qT2fpwMcY64s1sLIT8QwtW7ebh/MJNgzeAac+JaC6IED7plDiizq8oZUNw==" + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@azure/functions/-/functions-3.2.0.tgz", + "integrity": "sha512-HbE7iORnYcjLzKNf5mIQRJQDTsVxhoXHRWEZ6KWdGh4e7+F9xTloiBicavbSoVmlAYivenIVpryHanVwsQaHUw==" }, "node_modules/@babel/code-frame": { "version": "7.16.0", @@ -6324,9 +6324,9 @@ }, "dependencies": { "@azure/functions": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@azure/functions/-/functions-3.0.0.tgz", - "integrity": "sha512-nxOdQdYoy9JEdAPsQlBWavsRvbH5qT2fpwMcY64s1sLIT8QwtW7ebh/MJNgzeAac+JaC6IED7plDiizq8oZUNw==" + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@azure/functions/-/functions-3.2.0.tgz", + "integrity": "sha512-HbE7iORnYcjLzKNf5mIQRJQDTsVxhoXHRWEZ6KWdGh4e7+F9xTloiBicavbSoVmlAYivenIVpryHanVwsQaHUw==" }, "@babel/code-frame": { "version": "7.16.0", diff --git a/package.json b/package.json index d0bd81b..4c22313 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "typescript": "^4.2.3" }, "dependencies": { - "@azure/functions": "^3.0.0", + "@azure/functions": "^3.2.0", "@types/busboy": "^1.3.0", "@types/node": "^17.0.0", "busboy": "^1.6.0" diff --git a/test/index.spec.ts b/test/index.spec.ts index ee11f0b..ee34dd9 100644 --- a/test/index.spec.ts +++ b/test/index.spec.ts @@ -1,4 +1,4 @@ -import { HttpRequest } from "@azure/functions"; +import { HttpRequest, Form } from "@azure/functions"; import FormData from "form-data"; import fs from "fs"; import parseMultipartFormData from "../src/index"; @@ -23,6 +23,10 @@ describe("index.js", () => { body: body.getBuffer(), query: {}, params: {}, + parseFormBody() { + return {} as Form; + }, + user: null, }; });