diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index bfac4a67..8129cfef 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: node-version: [16] - dapr-version: [1.6.3, 1.7.4, 1.8.3, 1.9.0] + dapr-version: [1.6.3, 1.7.4, 1.8.3, 1.9.2] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} diff --git a/docs/generated/api.json b/docs/generated/api.json index 9b12d3f4..f5e091fb 100644 --- a/docs/generated/api.json +++ b/docs/generated/api.json @@ -1,8 +1,8 @@ { "metadata": { "toolPackage": "@microsoft/api-extractor", - "toolVersion": "7.32.0", - "schemaVersion": 1009, + "toolVersion": "7.33.5", + "schemaVersion": 1010, "oldestForwardsCompatibleVersion": 1001, "tsdocConfig": { "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", @@ -195,6 +195,7 @@ "text": ") => void" } ], + "fileUrlPath": "src/function_registry.ts", "isReadonly": true, "releaseTag": "Public", "name": "cloudEvent", @@ -221,6 +222,7 @@ "text": "> " } ], + "fileUrlPath": "src/functions.ts", "releaseTag": "Public", "typeParameters": [ { @@ -307,6 +309,7 @@ "text": "> " } ], + "fileUrlPath": "src/functions.ts", "releaseTag": "Public", "typeParameters": [ { @@ -402,6 +405,7 @@ "text": "export interface CloudFunctionsContext " } ], + "fileUrlPath": "src/functions.ts", "releaseTag": "Public", "name": "CloudFunctionsContext", "preserveMemberOrder": false, @@ -527,6 +531,7 @@ "text": "export declare enum ComponentType " } ], + "fileUrlPath": "src/openfunction/context.ts", "releaseTag": "Public", "name": "ComponentType", "preserveMemberOrder": false, @@ -607,6 +612,7 @@ "text": ";" } ], + "fileUrlPath": "src/functions.ts", "releaseTag": "Public", "name": "Context", "typeTokenRange": { @@ -624,6 +630,7 @@ "text": "export declare class ContextUtils " } ], + "fileUrlPath": "src/openfunction/context.ts", "releaseTag": "Public", "name": "ContextUtils", "preserveMemberOrder": false, @@ -833,6 +840,7 @@ "text": "export interface Data " } ], + "fileUrlPath": "src/functions.ts", "releaseTag": "Public", "name": "Data", "preserveMemberOrder": false, @@ -877,6 +885,7 @@ "text": "export interface EventFunction " } ], + "fileUrlPath": "src/functions.ts", "releaseTag": "Public", "name": "EventFunction", "preserveMemberOrder": false, @@ -954,6 +963,7 @@ "text": "export interface EventFunctionWithCallback " } ], + "fileUrlPath": "src/functions.ts", "releaseTag": "Public", "name": "EventFunctionWithCallback", "preserveMemberOrder": false, @@ -1114,6 +1124,7 @@ "text": ";" } ], + "fileUrlPath": "src/functions.ts", "releaseTag": "Public", "name": "HandlerFunction", "typeParameters": [ @@ -1157,6 +1168,7 @@ "text": ") => void" } ], + "fileUrlPath": "src/function_registry.ts", "isReadonly": true, "releaseTag": "Public", "name": "http", @@ -1175,6 +1187,7 @@ "text": "export interface HttpFunction " } ], + "fileUrlPath": "src/functions.ts", "releaseTag": "Public", "name": "HttpFunction", "preserveMemberOrder": false, @@ -1253,6 +1266,7 @@ "text": "export interface HttpFunctionResponse " } ], + "fileUrlPath": "src/functions.ts", "releaseTag": "Public", "name": "HttpFunctionResponse", "preserveMemberOrder": false, @@ -1374,6 +1388,7 @@ "text": ";" } ], + "fileUrlPath": "src/functions.ts", "releaseTag": "Public", "name": "LegacyCloudFunctionsContext", "typeTokenRange": { @@ -1391,6 +1406,7 @@ "text": "export interface LegacyEvent " } ], + "fileUrlPath": "src/functions.ts", "releaseTag": "Public", "name": "LegacyEvent", "preserveMemberOrder": false, @@ -1463,6 +1479,7 @@ "text": "export interface OpenFunction " } ], + "fileUrlPath": "src/functions.ts", "releaseTag": "Public", "name": "OpenFunction", "preserveMemberOrder": false, @@ -1553,6 +1570,7 @@ "text": ") => void" } ], + "fileUrlPath": "src/function_registry.ts", "isReadonly": true, "releaseTag": "Public", "name": "openfunction", @@ -1571,6 +1589,7 @@ "text": "export interface OpenFunctionComponent " } ], + "fileUrlPath": "src/openfunction/context.ts", "releaseTag": "Public", "name": "OpenFunctionComponent", "preserveMemberOrder": false, @@ -1737,6 +1756,7 @@ "text": "export interface OpenFunctionContext " } ], + "fileUrlPath": "src/openfunction/context.ts", "releaseTag": "Public", "name": "OpenFunctionContext", "preserveMemberOrder": false, @@ -2071,6 +2091,7 @@ "text": "export declare abstract class OpenFunctionRuntime " } ], + "fileUrlPath": "src/openfunction/runtime.ts", "releaseTag": "Public", "name": "OpenFunctionRuntime", "preserveMemberOrder": false, @@ -2740,6 +2761,7 @@ "text": "export declare class Plugin " } ], + "fileUrlPath": "src/openfunction/plugin.ts", "releaseTag": "Public", "name": "Plugin_2", "preserveMemberOrder": false, @@ -2985,7 +3007,16 @@ }, { "kind": "Content", - "text": "any" + "text": "string extends infer T ? T extends string ? T extends keyof this ? this[T] : T extends `${infer FieldKey}[${infer IndexKey}]` ? FieldKey extends keyof this ? import(\"lodash\")." + }, + { + "kind": "Reference", + "text": "IndexedFieldWithPossiblyUndefined", + "canonicalReference": "@types/lodash!\"\\\"../index\\\"\".IndexedFieldWithPossiblyUndefined:type" + }, + { + "kind": "Content", + "text": " : undefined : undefined : never : never" }, { "kind": "Content", @@ -2995,7 +3026,7 @@ "isStatic": false, "returnTypeTokenRange": { "startIndex": 3, - "endIndex": 4 + "endIndex": 6 }, "releaseTag": "Public", "isProtected": false, @@ -3093,6 +3124,7 @@ "text": " " } ], + "fileUrlPath": "src/functions.ts", "releaseTag": "Public", "name": "Request_2", "preserveMemberOrder": false, @@ -3143,6 +3175,7 @@ "text": "export declare enum RuntimeType " } ], + "fileUrlPath": "src/openfunction/context.ts", "releaseTag": "Public", "name": "RuntimeType", "preserveMemberOrder": false, @@ -3201,6 +3234,7 @@ "text": "export interface TraceConfig " } ], + "fileUrlPath": "src/openfunction/context.ts", "releaseTag": "Public", "name": "TraceConfig", "preserveMemberOrder": false, @@ -3337,6 +3371,7 @@ "text": "export interface TraceProvider " } ], + "fileUrlPath": "src/openfunction/context.ts", "releaseTag": "Public", "name": "TraceProvider", "preserveMemberOrder": false, @@ -3453,6 +3488,7 @@ "text": "export declare enum TraceProviderType " } ], + "fileUrlPath": "src/openfunction/context.ts", "releaseTag": "Public", "name": "TraceProviderType", "preserveMemberOrder": false, diff --git a/docs/generated/api.md b/docs/generated/api.md index e99f057e..496a8337 100644 --- a/docs/generated/api.md +++ b/docs/generated/api.md @@ -8,6 +8,7 @@ /// import { CloudEventV1 as CloudEvent } from 'cloudevents'; +import { IndexedFieldWithPossiblyUndefined } from 'lodash'; import { ParamsDictionary } from 'express-serve-static-core'; import { ParsedQs } from 'qs'; import { Request as Request_3 } from 'express'; @@ -165,7 +166,7 @@ class Plugin_2 { constructor(name: string, version?: string); execPostHook(ctx: OpenFunctionRuntime | null, plugins: Record): Promise; execPreHook(ctx: OpenFunctionRuntime | null, plugins: Record): Promise; - get(prop: string): any; + get(prop: string): string extends infer T ? T extends string ? T extends keyof this ? this[T] : T extends `${infer FieldKey}[${infer IndexKey}]` ? FieldKey extends keyof this ? IndexedFieldWithPossiblyUndefined : undefined : undefined : never : never; readonly name: string; readonly version: string; } diff --git a/package-lock.json b/package-lock.json index dfc1ed36..49fcca47 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,11 +13,11 @@ "body-parser": "^1.20.1", "cloudevents": "^6.0.2", "debug": "^4.3.4", - "express": "^4.18.1", + "express": "^4.18.2", "express-interceptor": "^1.2.0", "http-terminator": "^3.2.0", "lodash": "^4.17.21", - "minimist": "^1.2.6", + "minimist": "^1.2.7", "on-finished": "^2.4.1", "read-pkg-up": "^7.0.1", "semver": "^7.3.8", @@ -28,34 +28,34 @@ "functions-framework-nodejs": "build/src/main.js" }, "devDependencies": { - "@microsoft/api-extractor": "^7.32.0", + "@microsoft/api-extractor": "^7.33.5", "@types/body-parser": "1.19.2", "@types/debug": "^4.1.7", "@types/express": "4.17.14", "@types/google-protobuf": "^3.15.6", - "@types/lodash": "^4.14.186", + "@types/lodash": "^4.14.187", "@types/minimist": "1.2.2", "@types/mocha": "10.0.0", "@types/node": "14.18.11", "@types/node-fetch": "^2.6.2", "@types/on-finished": "2.3.1", - "@types/semver": "^7.3.12", + "@types/semver": "^7.3.13", "@types/shelljs": "^0.8.11", "@types/sinon": "10.0.11", "@types/supertest": "2.0.12", "aedes": "0.47.0", "clean-pkg-json": "^1.2.0", - "concurrently": "^7.4.0", + "concurrently": "^7.5.0", "cross-env": "^7.0.3", "env-cmd": "^10.1.0", "graphql-request": "^5.0.0", "gts": "^3.1.1", - "mocha": "10.0.0", + "mocha": "10.1.0", "pack-n-play": "^1.0.0-2", "pre-push": "^0.1.4", "shelljs": "^0.8.5", "sinon": "^14.0.1", - "supertest": "6.3.0", + "supertest": "6.3.1", "typescript": "^4.8.4", "wait-on": "^6.0.1" }, @@ -251,17 +251,17 @@ "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" }, "node_modules/@microsoft/api-extractor": { - "version": "7.32.0", - "resolved": "https://registry.npmmirror.com/@microsoft/api-extractor/-/api-extractor-7.32.0.tgz", - "integrity": "sha512-BfvPpeVzWLFTdairVItzWQGsZr82fR4RH+8Q4I7t0f9xq66v4Qz9K+u25jbL5R42X01b/vvJMuRhX5KhU8J1Ug==", + "version": "7.33.5", + "resolved": "https://registry.npmmirror.com/@microsoft/api-extractor/-/api-extractor-7.33.5.tgz", + "integrity": "sha512-ENoWpTWarKNuodpRFDQr3jyBigHuv98KuJ8H5qXc1LZ1aP5Mk77lCo88HbPisTmSnGevJJHTScfd/DPznOb4CQ==", "dev": true, "dependencies": { - "@microsoft/api-extractor-model": "7.24.3", - "@microsoft/tsdoc": "0.14.1", + "@microsoft/api-extractor-model": "7.25.2", + "@microsoft/tsdoc": "0.14.2", "@microsoft/tsdoc-config": "~0.16.1", - "@rushstack/node-core-library": "3.53.0", - "@rushstack/rig-package": "0.3.16", - "@rushstack/ts-command-line": "4.12.4", + "@rushstack/node-core-library": "3.53.2", + "@rushstack/rig-package": "0.3.17", + "@rushstack/ts-command-line": "4.13.0", "colors": "~1.2.1", "lodash": "~4.17.15", "resolve": "~1.17.0", @@ -274,14 +274,14 @@ } }, "node_modules/@microsoft/api-extractor-model": { - "version": "7.24.3", - "resolved": "https://registry.npmmirror.com/@microsoft/api-extractor-model/-/api-extractor-model-7.24.3.tgz", - "integrity": "sha512-JElpLULqYDXQb0YIKKQhOJaNWBXsYeYu5J51Z4O6RGbOq7Tby9ViVfpDuXVXa87AMOSR5WKuaxG/5SnQVVNxiw==", + "version": "7.25.2", + "resolved": "https://registry.npmmirror.com/@microsoft/api-extractor-model/-/api-extractor-model-7.25.2.tgz", + "integrity": "sha512-+h1uCrLQXFAKMUdghhdDcnniDB+6UA/lS9ArlB4QZQ34UbLuXNy2oQ6fafFK8cKXU4mUPTF/yGRjv7JKD5L7eg==", "dev": true, "dependencies": { - "@microsoft/tsdoc": "0.14.1", + "@microsoft/tsdoc": "0.14.2", "@microsoft/tsdoc-config": "~0.16.1", - "@rushstack/node-core-library": "3.53.0" + "@rushstack/node-core-library": "3.53.2" } }, "node_modules/@microsoft/api-extractor/node_modules/resolve": { @@ -294,9 +294,9 @@ } }, "node_modules/@microsoft/tsdoc": { - "version": "0.14.1", - "resolved": "https://registry.npmmirror.com/@microsoft/tsdoc/-/tsdoc-0.14.1.tgz", - "integrity": "sha512-6Wci+Tp3CgPt/B9B0a3J4s3yMgLNSku6w5TV6mN+61C71UqsRBv2FUibBf3tPGlNxebgPHMEUzKpb1ggE8KCKw==", + "version": "0.14.2", + "resolved": "https://registry.npmmirror.com/@microsoft/tsdoc/-/tsdoc-0.14.2.tgz", + "integrity": "sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==", "dev": true }, "node_modules/@microsoft/tsdoc-config": { @@ -311,12 +311,6 @@ "resolve": "~1.19.0" } }, - "node_modules/@microsoft/tsdoc-config/node_modules/@microsoft/tsdoc": { - "version": "0.14.2", - "resolved": "https://registry.npmmirror.com/@microsoft/tsdoc/-/tsdoc-0.14.2.tgz", - "integrity": "sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==", - "dev": true - }, "node_modules/@microsoft/tsdoc-config/node_modules/resolve": { "version": "1.19.0", "resolved": "https://registry.npmmirror.com/resolve/-/resolve-1.19.0.tgz", @@ -417,9 +411,9 @@ "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" }, "node_modules/@rushstack/node-core-library": { - "version": "3.53.0", - "resolved": "https://registry.npmmirror.com/@rushstack/node-core-library/-/node-core-library-3.53.0.tgz", - "integrity": "sha512-FXk3eDtTHKnaUq+fLyNY867ioRhMa6CJDJO5hZ3wuGlxm184nckAFiU+hx027AodjpnqjX6pYF0zZGq7k7P/vg==", + "version": "3.53.2", + "resolved": "https://registry.npmmirror.com/@rushstack/node-core-library/-/node-core-library-3.53.2.tgz", + "integrity": "sha512-FggLe5DQs0X9MNFeJN3/EXwb+8hyZUTEp2i+V1e8r4Va4JgkjBNY0BuEaQI+3DW6S4apV3UtXU3im17MSY00DA==", "dev": true, "dependencies": { "@types/node": "12.20.24", @@ -448,9 +442,9 @@ } }, "node_modules/@rushstack/rig-package": { - "version": "0.3.16", - "resolved": "https://registry.npmmirror.com/@rushstack/rig-package/-/rig-package-0.3.16.tgz", - "integrity": "sha512-FoSQng2RtapEUe+CBPKxbpZUhUht5s2+mMiztRH95qqp81dsUpfEWojtV6XrUVyWIRk2/cY1CDZUKJWxMrT26Q==", + "version": "0.3.17", + "resolved": "https://registry.npmmirror.com/@rushstack/rig-package/-/rig-package-0.3.17.tgz", + "integrity": "sha512-nxvAGeIMnHl1LlZSQmacgcRV4y1EYtgcDIrw6KkeVjudOMonlxO482PhDj3LVZEp6L7emSf6YSO2s5JkHlwfZA==", "dev": true, "dependencies": { "resolve": "~1.17.0", @@ -467,9 +461,9 @@ } }, "node_modules/@rushstack/ts-command-line": { - "version": "4.12.4", - "resolved": "https://registry.npmmirror.com/@rushstack/ts-command-line/-/ts-command-line-4.12.4.tgz", - "integrity": "sha512-ckZHEfPiJCmBdWd/syve5zu2TNsPIqbFie3jWzM/izZa6ZOkDwex/K1ww+kJ12hFBnN44lMD7voJvKXajUCEDA==", + "version": "4.13.0", + "resolved": "https://registry.npmmirror.com/@rushstack/ts-command-line/-/ts-command-line-4.13.0.tgz", + "integrity": "sha512-crLT31kl+qilz0eBRjqqYO06CqwbElc0EvzS6jI69B9Ikt1SkkSzIZ2iDP7zt/rd1ZYipKIS9hf9CQR9swDIKg==", "dev": true, "dependencies": { "@types/argparse": "1.0.38", @@ -619,9 +613,9 @@ "dev": true }, "node_modules/@types/lodash": { - "version": "4.14.186", - "resolved": "https://registry.npmmirror.com/@types/lodash/-/lodash-4.14.186.tgz", - "integrity": "sha512-eHcVlLXP0c2FlMPm56ITode2AgLMSa6aJ05JTTbYbI+7EMkCEE5qk2E41d5g2lCVTqRe0GnnRFurmlCsDODrPw==", + "version": "4.14.187", + "resolved": "https://registry.npmmirror.com/@types/lodash/-/lodash-4.14.187.tgz", + "integrity": "sha512-MrO/xLXCaUgZy3y96C/iOsaIqZSeupyTImKClHunL5GrmaiII2VwvWmLBu2hwa0Kp0sV19CsyjtrTc/Fx8rg/A==", "dev": true }, "node_modules/@types/long": { @@ -713,9 +707,9 @@ "dev": true }, "node_modules/@types/semver": { - "version": "7.3.12", - "resolved": "https://registry.npmmirror.com/@types/semver/-/semver-7.3.12.tgz", - "integrity": "sha512-WwA1MW0++RfXmCr12xeYOOC5baSC9mSb0ZqCquFzKhcoF4TvHu5MKOuXsncgZcpVFhB1pXd5hZmM0ryAoCp12A==", + "version": "7.3.13", + "resolved": "https://registry.npmmirror.com/@types/semver/-/semver-7.3.13.tgz", + "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", "dev": true }, "node_modules/@types/serve-static": { @@ -929,12 +923,6 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@ungap/promise-all-settled": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", - "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", - "dev": true - }, "node_modules/0http": { "version": "3.2.0", "resolved": "https://registry.npmmirror.com/0http/-/0http-3.2.0.tgz", @@ -1292,17 +1280,6 @@ "resolved": "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, - "node_modules/body-parser/node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmmirror.com/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", - "dependencies": { - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">=0.6" - } - }, "node_modules/boolean": { "version": "3.2.0", "resolved": "https://registry.npmmirror.com/boolean/-/boolean-3.2.0.tgz", @@ -1655,9 +1632,9 @@ } }, "node_modules/concurrently": { - "version": "7.4.0", - "resolved": "https://registry.npmmirror.com/concurrently/-/concurrently-7.4.0.tgz", - "integrity": "sha512-M6AfrueDt/GEna/Vg9BqQ+93yuvzkSKmoTixnwEJkH0LlcGrRC2eCmjeG1tLLHIYfpYJABokqSGyMcXjm96AFA==", + "version": "7.5.0", + "resolved": "https://registry.npmmirror.com/concurrently/-/concurrently-7.5.0.tgz", + "integrity": "sha512-5E3mwiS+i2JYBzr5BpXkFxOnleZTMsG+WnE/dCG4/P+oiVXrbmrBwJ2ozn4SxwB2EZDrKR568X+puVohxz3/Mg==", "dev": true, "dependencies": { "chalk": "^4.1.0", @@ -2682,13 +2659,13 @@ } }, "node_modules/express": { - "version": "4.18.1", - "resolved": "https://registry.npmjs.org/express/-/express-4.18.1.tgz", - "integrity": "sha512-zZBcOX9TfehHQhtupq57OF8lFZ3UZi08Y97dwFCkD8p9d/d2Y3M+ykKcwaMDEL+4qyUolgBDX6AblpR3fL212Q==", + "version": "4.18.2", + "resolved": "https://registry.npmmirror.com/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", - "body-parser": "1.20.0", + "body-parser": "1.20.1", "content-disposition": "0.5.4", "content-type": "~1.0.4", "cookie": "0.5.0", @@ -2707,7 +2684,7 @@ "parseurl": "~1.3.3", "path-to-regexp": "0.1.7", "proxy-addr": "~2.0.7", - "qs": "6.10.3", + "qs": "6.11.0", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", "send": "0.18.0", @@ -2743,29 +2720,6 @@ "resolved": "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, - "node_modules/express/node_modules/body-parser": { - "version": "1.20.0", - "resolved": "https://registry.npmmirror.com/body-parser/-/body-parser-1.20.0.tgz", - "integrity": "sha512-DfJ+q6EPcGKZD1QWUjSpqp+Q7bDQTsQIF4zfUAtZ6qk+H/3/QRhg9CEp39ss+/T2vw0+HaidC0ecJj/DRLIaKg==", - "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.10.3", - "raw-body": "2.5.1", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, "node_modules/express/node_modules/debug": { "version": "2.6.9", "resolved": "https://registry.npmmirror.com/debug/-/debug-2.6.9.tgz", @@ -4592,9 +4546,9 @@ } }, "node_modules/minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==" + "version": "1.2.7", + "resolved": "https://registry.npmmirror.com/minimist/-/minimist-1.2.7.tgz", + "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==" }, "node_modules/minimist-options": { "version": "4.1.0", @@ -4648,12 +4602,11 @@ } }, "node_modules/mocha": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.0.0.tgz", - "integrity": "sha512-0Wl+elVUD43Y0BqPZBzZt8Tnkw9CMUdNYnUsTfOM1vuhJVZL+kiesFYsqwBkEEuEixaiPe5ZQdqDgX2jddhmoA==", + "version": "10.1.0", + "resolved": "https://registry.npmmirror.com/mocha/-/mocha-10.1.0.tgz", + "integrity": "sha512-vUF7IYxEoN7XhQpFLxQAEMtE4W91acW4B6En9l97MwE9stL1A9gusXfoHZCLVHDUJ/7V5+lbCM6yMqzo5vNymg==", "dev": true, "dependencies": { - "@ungap/promise-all-settled": "1.1.2", "ansi-colors": "4.1.1", "browser-stdout": "1.3.1", "chokidar": "3.5.3", @@ -4682,10 +4635,6 @@ }, "engines": { "node": ">= 14.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mochajs" } }, "node_modules/mocha/node_modules/argparse": { @@ -5522,17 +5471,14 @@ } }, "node_modules/qs": { - "version": "6.10.3", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.10.3.tgz", - "integrity": "sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ==", + "version": "6.11.0", + "resolved": "https://registry.npmmirror.com/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", "dependencies": { "side-channel": "^1.0.4" }, "engines": { "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, "node_modules/queue-microtask": { @@ -6364,10 +6310,9 @@ } }, "node_modules/superagent": { - "version": "8.0.2", - "resolved": "https://registry.npmmirror.com/superagent/-/superagent-8.0.2.tgz", - "integrity": "sha512-QtYZ9uaNAMexI7XWl2vAXAh0j4q9H7T0WVEI/y5qaUB3QLwxo+voUgCQ217AokJzUTIVOp0RTo7fhZrwhD7A2Q==", - "deprecated": "Please use v8.0.0 until https://github.com/visionmedia/superagent/issues/1743 is resolved", + "version": "8.0.3", + "resolved": "https://registry.npmmirror.com/superagent/-/superagent-8.0.3.tgz", + "integrity": "sha512-oBC+aNsCjzzjmO5AOPBPFS+Z7HPzlx+DQr/aHwM08kI+R24gsDmAS1LMfza1fK+P+SKlTAoNZpOvooE/pRO1HA==", "dev": true, "dependencies": { "component-emitter": "^1.3.0", @@ -6379,7 +6324,7 @@ "methods": "^1.1.2", "mime": "2.6.0", "qs": "^6.11.0", - "semver": "^7.3.7" + "semver": "^7.3.8" }, "engines": { "node": ">=6.4.0 <13 || >=14" @@ -6397,26 +6342,14 @@ "node": ">=4.0.0" } }, - "node_modules/superagent/node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmmirror.com/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", - "dev": true, - "dependencies": { - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">=0.6" - } - }, "node_modules/supertest": { - "version": "6.3.0", - "resolved": "https://registry.npmmirror.com/supertest/-/supertest-6.3.0.tgz", - "integrity": "sha512-QgWju1cNoacP81Rv88NKkQ4oXTzGg0eNZtOoxp1ROpbS4OHY/eK5b8meShuFtdni161o5X0VQvgo7ErVyKK+Ow==", + "version": "6.3.1", + "resolved": "https://registry.npmmirror.com/supertest/-/supertest-6.3.1.tgz", + "integrity": "sha512-hRohNeIfk/cA48Cxpa/w48hktP6ZaRqXb0QV5rLvW0C7paRsBU3Q5zydzYrslOJtj/gd48qx540jKtcs6vG1fQ==", "dev": true, "dependencies": { "methods": "^1.1.2", - "superagent": "^8.0.0" + "superagent": "^8.0.3" }, "engines": { "node": ">=6.4.0" @@ -7289,17 +7222,17 @@ } }, "@microsoft/api-extractor": { - "version": "7.32.0", - "resolved": "https://registry.npmmirror.com/@microsoft/api-extractor/-/api-extractor-7.32.0.tgz", - "integrity": "sha512-BfvPpeVzWLFTdairVItzWQGsZr82fR4RH+8Q4I7t0f9xq66v4Qz9K+u25jbL5R42X01b/vvJMuRhX5KhU8J1Ug==", + "version": "7.33.5", + "resolved": "https://registry.npmmirror.com/@microsoft/api-extractor/-/api-extractor-7.33.5.tgz", + "integrity": "sha512-ENoWpTWarKNuodpRFDQr3jyBigHuv98KuJ8H5qXc1LZ1aP5Mk77lCo88HbPisTmSnGevJJHTScfd/DPznOb4CQ==", "dev": true, "requires": { - "@microsoft/api-extractor-model": "7.24.3", - "@microsoft/tsdoc": "0.14.1", + "@microsoft/api-extractor-model": "7.25.2", + "@microsoft/tsdoc": "0.14.2", "@microsoft/tsdoc-config": "~0.16.1", - "@rushstack/node-core-library": "3.53.0", - "@rushstack/rig-package": "0.3.16", - "@rushstack/ts-command-line": "4.12.4", + "@rushstack/node-core-library": "3.53.2", + "@rushstack/rig-package": "0.3.17", + "@rushstack/ts-command-line": "4.13.0", "colors": "~1.2.1", "lodash": "~4.17.15", "resolve": "~1.17.0", @@ -7320,20 +7253,20 @@ } }, "@microsoft/api-extractor-model": { - "version": "7.24.3", - "resolved": "https://registry.npmmirror.com/@microsoft/api-extractor-model/-/api-extractor-model-7.24.3.tgz", - "integrity": "sha512-JElpLULqYDXQb0YIKKQhOJaNWBXsYeYu5J51Z4O6RGbOq7Tby9ViVfpDuXVXa87AMOSR5WKuaxG/5SnQVVNxiw==", + "version": "7.25.2", + "resolved": "https://registry.npmmirror.com/@microsoft/api-extractor-model/-/api-extractor-model-7.25.2.tgz", + "integrity": "sha512-+h1uCrLQXFAKMUdghhdDcnniDB+6UA/lS9ArlB4QZQ34UbLuXNy2oQ6fafFK8cKXU4mUPTF/yGRjv7JKD5L7eg==", "dev": true, "requires": { - "@microsoft/tsdoc": "0.14.1", + "@microsoft/tsdoc": "0.14.2", "@microsoft/tsdoc-config": "~0.16.1", - "@rushstack/node-core-library": "3.53.0" + "@rushstack/node-core-library": "3.53.2" } }, "@microsoft/tsdoc": { - "version": "0.14.1", - "resolved": "https://registry.npmmirror.com/@microsoft/tsdoc/-/tsdoc-0.14.1.tgz", - "integrity": "sha512-6Wci+Tp3CgPt/B9B0a3J4s3yMgLNSku6w5TV6mN+61C71UqsRBv2FUibBf3tPGlNxebgPHMEUzKpb1ggE8KCKw==", + "version": "0.14.2", + "resolved": "https://registry.npmmirror.com/@microsoft/tsdoc/-/tsdoc-0.14.2.tgz", + "integrity": "sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==", "dev": true }, "@microsoft/tsdoc-config": { @@ -7348,12 +7281,6 @@ "resolve": "~1.19.0" }, "dependencies": { - "@microsoft/tsdoc": { - "version": "0.14.2", - "resolved": "https://registry.npmmirror.com/@microsoft/tsdoc/-/tsdoc-0.14.2.tgz", - "integrity": "sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==", - "dev": true - }, "resolve": { "version": "1.19.0", "resolved": "https://registry.npmmirror.com/resolve/-/resolve-1.19.0.tgz", @@ -7447,9 +7374,9 @@ "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" }, "@rushstack/node-core-library": { - "version": "3.53.0", - "resolved": "https://registry.npmmirror.com/@rushstack/node-core-library/-/node-core-library-3.53.0.tgz", - "integrity": "sha512-FXk3eDtTHKnaUq+fLyNY867ioRhMa6CJDJO5hZ3wuGlxm184nckAFiU+hx027AodjpnqjX6pYF0zZGq7k7P/vg==", + "version": "3.53.2", + "resolved": "https://registry.npmmirror.com/@rushstack/node-core-library/-/node-core-library-3.53.2.tgz", + "integrity": "sha512-FggLe5DQs0X9MNFeJN3/EXwb+8hyZUTEp2i+V1e8r4Va4JgkjBNY0BuEaQI+3DW6S4apV3UtXU3im17MSY00DA==", "dev": true, "requires": { "@types/node": "12.20.24", @@ -7480,9 +7407,9 @@ } }, "@rushstack/rig-package": { - "version": "0.3.16", - "resolved": "https://registry.npmmirror.com/@rushstack/rig-package/-/rig-package-0.3.16.tgz", - "integrity": "sha512-FoSQng2RtapEUe+CBPKxbpZUhUht5s2+mMiztRH95qqp81dsUpfEWojtV6XrUVyWIRk2/cY1CDZUKJWxMrT26Q==", + "version": "0.3.17", + "resolved": "https://registry.npmmirror.com/@rushstack/rig-package/-/rig-package-0.3.17.tgz", + "integrity": "sha512-nxvAGeIMnHl1LlZSQmacgcRV4y1EYtgcDIrw6KkeVjudOMonlxO482PhDj3LVZEp6L7emSf6YSO2s5JkHlwfZA==", "dev": true, "requires": { "resolve": "~1.17.0", @@ -7501,9 +7428,9 @@ } }, "@rushstack/ts-command-line": { - "version": "4.12.4", - "resolved": "https://registry.npmmirror.com/@rushstack/ts-command-line/-/ts-command-line-4.12.4.tgz", - "integrity": "sha512-ckZHEfPiJCmBdWd/syve5zu2TNsPIqbFie3jWzM/izZa6ZOkDwex/K1ww+kJ12hFBnN44lMD7voJvKXajUCEDA==", + "version": "4.13.0", + "resolved": "https://registry.npmmirror.com/@rushstack/ts-command-line/-/ts-command-line-4.13.0.tgz", + "integrity": "sha512-crLT31kl+qilz0eBRjqqYO06CqwbElc0EvzS6jI69B9Ikt1SkkSzIZ2iDP7zt/rd1ZYipKIS9hf9CQR9swDIKg==", "dev": true, "requires": { "@types/argparse": "1.0.38", @@ -7653,9 +7580,9 @@ "dev": true }, "@types/lodash": { - "version": "4.14.186", - "resolved": "https://registry.npmmirror.com/@types/lodash/-/lodash-4.14.186.tgz", - "integrity": "sha512-eHcVlLXP0c2FlMPm56ITode2AgLMSa6aJ05JTTbYbI+7EMkCEE5qk2E41d5g2lCVTqRe0GnnRFurmlCsDODrPw==", + "version": "4.14.187", + "resolved": "https://registry.npmmirror.com/@types/lodash/-/lodash-4.14.187.tgz", + "integrity": "sha512-MrO/xLXCaUgZy3y96C/iOsaIqZSeupyTImKClHunL5GrmaiII2VwvWmLBu2hwa0Kp0sV19CsyjtrTc/Fx8rg/A==", "dev": true }, "@types/long": { @@ -7746,9 +7673,9 @@ "dev": true }, "@types/semver": { - "version": "7.3.12", - "resolved": "https://registry.npmmirror.com/@types/semver/-/semver-7.3.12.tgz", - "integrity": "sha512-WwA1MW0++RfXmCr12xeYOOC5baSC9mSb0ZqCquFzKhcoF4TvHu5MKOuXsncgZcpVFhB1pXd5hZmM0ryAoCp12A==", + "version": "7.3.13", + "resolved": "https://registry.npmmirror.com/@types/semver/-/semver-7.3.13.tgz", + "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", "dev": true }, "@types/serve-static": { @@ -7888,12 +7815,6 @@ "eslint-visitor-keys": "^2.0.0" } }, - "@ungap/promise-all-settled": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", - "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", - "dev": true - }, "0http": { "version": "3.2.0", "resolved": "https://registry.npmmirror.com/0http/-/0http-3.2.0.tgz", @@ -8166,14 +8087,6 @@ "version": "2.0.0", "resolved": "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "qs": { - "version": "6.11.0", - "resolved": "https://registry.npmmirror.com/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", - "requires": { - "side-channel": "^1.0.4" - } } } }, @@ -8476,9 +8389,9 @@ } }, "concurrently": { - "version": "7.4.0", - "resolved": "https://registry.npmmirror.com/concurrently/-/concurrently-7.4.0.tgz", - "integrity": "sha512-M6AfrueDt/GEna/Vg9BqQ+93yuvzkSKmoTixnwEJkH0LlcGrRC2eCmjeG1tLLHIYfpYJABokqSGyMcXjm96AFA==", + "version": "7.5.0", + "resolved": "https://registry.npmmirror.com/concurrently/-/concurrently-7.5.0.tgz", + "integrity": "sha512-5E3mwiS+i2JYBzr5BpXkFxOnleZTMsG+WnE/dCG4/P+oiVXrbmrBwJ2ozn4SxwB2EZDrKR568X+puVohxz3/Mg==", "dev": true, "requires": { "chalk": "^4.1.0", @@ -9224,13 +9137,13 @@ } }, "express": { - "version": "4.18.1", - "resolved": "https://registry.npmjs.org/express/-/express-4.18.1.tgz", - "integrity": "sha512-zZBcOX9TfehHQhtupq57OF8lFZ3UZi08Y97dwFCkD8p9d/d2Y3M+ykKcwaMDEL+4qyUolgBDX6AblpR3fL212Q==", + "version": "4.18.2", + "resolved": "https://registry.npmmirror.com/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", "requires": { "accepts": "~1.3.8", "array-flatten": "1.1.1", - "body-parser": "1.20.0", + "body-parser": "1.20.1", "content-disposition": "0.5.4", "content-type": "~1.0.4", "cookie": "0.5.0", @@ -9249,7 +9162,7 @@ "parseurl": "~1.3.3", "path-to-regexp": "0.1.7", "proxy-addr": "~2.0.7", - "qs": "6.10.3", + "qs": "6.11.0", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", "send": "0.18.0", @@ -9261,25 +9174,6 @@ "vary": "~1.1.2" }, "dependencies": { - "body-parser": { - "version": "1.20.0", - "resolved": "https://registry.npmmirror.com/body-parser/-/body-parser-1.20.0.tgz", - "integrity": "sha512-DfJ+q6EPcGKZD1QWUjSpqp+Q7bDQTsQIF4zfUAtZ6qk+H/3/QRhg9CEp39ss+/T2vw0+HaidC0ecJj/DRLIaKg==", - "requires": { - "bytes": "3.1.2", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.10.3", - "raw-body": "2.5.1", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - } - }, "debug": { "version": "2.6.9", "resolved": "https://registry.npmmirror.com/debug/-/debug-2.6.9.tgz", @@ -10658,9 +10552,9 @@ } }, "minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==" + "version": "1.2.7", + "resolved": "https://registry.npmmirror.com/minimist/-/minimist-1.2.7.tgz", + "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==" }, "minimist-options": { "version": "4.1.0", @@ -10702,12 +10596,11 @@ } }, "mocha": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.0.0.tgz", - "integrity": "sha512-0Wl+elVUD43Y0BqPZBzZt8Tnkw9CMUdNYnUsTfOM1vuhJVZL+kiesFYsqwBkEEuEixaiPe5ZQdqDgX2jddhmoA==", + "version": "10.1.0", + "resolved": "https://registry.npmmirror.com/mocha/-/mocha-10.1.0.tgz", + "integrity": "sha512-vUF7IYxEoN7XhQpFLxQAEMtE4W91acW4B6En9l97MwE9stL1A9gusXfoHZCLVHDUJ/7V5+lbCM6yMqzo5vNymg==", "dev": true, "requires": { - "@ungap/promise-all-settled": "1.1.2", "ansi-colors": "4.1.1", "browser-stdout": "1.3.1", "chokidar": "3.5.3", @@ -11358,9 +11251,9 @@ "dev": true }, "qs": { - "version": "6.10.3", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.10.3.tgz", - "integrity": "sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ==", + "version": "6.11.0", + "resolved": "https://registry.npmmirror.com/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", "requires": { "side-channel": "^1.0.4" } @@ -11997,9 +11890,9 @@ "dev": true }, "superagent": { - "version": "8.0.2", - "resolved": "https://registry.npmmirror.com/superagent/-/superagent-8.0.2.tgz", - "integrity": "sha512-QtYZ9uaNAMexI7XWl2vAXAh0j4q9H7T0WVEI/y5qaUB3QLwxo+voUgCQ217AokJzUTIVOp0RTo7fhZrwhD7A2Q==", + "version": "8.0.3", + "resolved": "https://registry.npmmirror.com/superagent/-/superagent-8.0.3.tgz", + "integrity": "sha512-oBC+aNsCjzzjmO5AOPBPFS+Z7HPzlx+DQr/aHwM08kI+R24gsDmAS1LMfza1fK+P+SKlTAoNZpOvooE/pRO1HA==", "dev": true, "requires": { "component-emitter": "^1.3.0", @@ -12011,7 +11904,7 @@ "methods": "^1.1.2", "mime": "2.6.0", "qs": "^6.11.0", - "semver": "^7.3.7" + "semver": "^7.3.8" }, "dependencies": { "mime": { @@ -12019,26 +11912,17 @@ "resolved": "https://registry.npmmirror.com/mime/-/mime-2.6.0.tgz", "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", "dev": true - }, - "qs": { - "version": "6.11.0", - "resolved": "https://registry.npmmirror.com/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", - "dev": true, - "requires": { - "side-channel": "^1.0.4" - } } } }, "supertest": { - "version": "6.3.0", - "resolved": "https://registry.npmmirror.com/supertest/-/supertest-6.3.0.tgz", - "integrity": "sha512-QgWju1cNoacP81Rv88NKkQ4oXTzGg0eNZtOoxp1ROpbS4OHY/eK5b8meShuFtdni161o5X0VQvgo7ErVyKK+Ow==", + "version": "6.3.1", + "resolved": "https://registry.npmmirror.com/supertest/-/supertest-6.3.1.tgz", + "integrity": "sha512-hRohNeIfk/cA48Cxpa/w48hktP6ZaRqXb0QV5rLvW0C7paRsBU3Q5zydzYrslOJtj/gd48qx540jKtcs6vG1fQ==", "dev": true, "requires": { "methods": "^1.1.2", - "superagent": "^8.0.0" + "superagent": "^8.0.3" } }, "supports-color": { diff --git a/package.json b/package.json index 30d89a6d..28842b52 100644 --- a/package.json +++ b/package.json @@ -17,11 +17,11 @@ "body-parser": "^1.20.1", "cloudevents": "^6.0.2", "debug": "^4.3.4", - "express": "^4.18.1", + "express": "^4.18.2", "express-interceptor": "^1.2.0", "http-terminator": "^3.2.0", "lodash": "^4.17.21", - "minimist": "^1.2.6", + "minimist": "^1.2.7", "on-finished": "^2.4.1", "read-pkg-up": "^7.0.1", "semver": "^7.3.8", @@ -55,34 +55,34 @@ "author": "OpenFunction", "license": "Apache-2.0", "devDependencies": { - "@microsoft/api-extractor": "^7.32.0", + "@microsoft/api-extractor": "^7.33.5", "@types/body-parser": "1.19.2", "@types/debug": "^4.1.7", "@types/express": "4.17.14", "@types/google-protobuf": "^3.15.6", - "@types/lodash": "^4.14.186", + "@types/lodash": "^4.14.187", "@types/minimist": "1.2.2", "@types/mocha": "10.0.0", "@types/node": "14.18.11", "@types/node-fetch": "^2.6.2", "@types/on-finished": "2.3.1", - "@types/semver": "^7.3.12", + "@types/semver": "^7.3.13", "@types/shelljs": "^0.8.11", "@types/sinon": "10.0.11", "@types/supertest": "2.0.12", "aedes": "0.47.0", "clean-pkg-json": "^1.2.0", - "concurrently": "^7.4.0", + "concurrently": "^7.5.0", "cross-env": "^7.0.3", "env-cmd": "^10.1.0", "graphql-request": "^5.0.0", "gts": "^3.1.1", - "mocha": "10.0.0", + "mocha": "10.1.0", "pack-n-play": "^1.0.0-2", "pre-push": "^0.1.4", "shelljs": "^0.8.5", "sinon": "^14.0.1", - "supertest": "6.3.0", + "supertest": "6.3.1", "typescript": "^4.8.4", "wait-on": "^6.0.1" } diff --git a/src/openfunction/plugin.ts b/src/openfunction/plugin.ts index 7637b875..25d4096e 100644 --- a/src/openfunction/plugin.ts +++ b/src/openfunction/plugin.ts @@ -176,7 +176,7 @@ export class PluginStore { await this.#invokePluginBySeq( ctx, 'execPreHook', - seq || (this.#isCustomStore && get(ctx, 'prePlugins')) + seq || (this.#isCustomStore && get(ctx, 'prePlugins')) || [] ); } @@ -189,7 +189,7 @@ export class PluginStore { await this.#invokePluginBySeq( ctx, 'execPostHook', - seq || (this.#isCustomStore && get(ctx, 'postPlugins')) + seq || (this.#isCustomStore && get(ctx, 'postPlugins')) || [] ); } diff --git a/src/openfunction/plugins/tracing/skywalking.ts b/src/openfunction/plugins/tracing/skywalking.ts index 32a1baaa..f5d1b872 100644 --- a/src/openfunction/plugins/tracing/skywalking.ts +++ b/src/openfunction/plugins/tracing/skywalking.ts @@ -42,14 +42,14 @@ export default class SkyWalking extends Tracing { ContextManager.currentSpan ?? context.newEntrySpan('/', this.#getCarrier(ctx)); - span.operation = get(ctx, 'name'); + span.operation = get(ctx, 'name')!; span.component = this.#component; span.layer = SpanLayer.FAAS; // Pass through some typical tags per the context span.tag({ key: 'runtime', - val: get(ctx, 'runtime'), + val: get(ctx, 'runtime')!, overridable: false, }); diff --git a/test/integration/async_server.ts b/test/integration/async_server.ts index 1c568cf4..74534563 100644 --- a/test/integration/async_server.ts +++ b/test/integration/async_server.ts @@ -109,7 +109,7 @@ describe('OpenFunction - Async', () => { // Then forward received data to output channel const output = 'mqtt_pub'; broker.subscribe( - get(TEST_CONTEXT, `outputs.${output}.uri`), + get(TEST_CONTEXT, `outputs.${output}.uri`)!, // eslint-disable-next-line @typescript-eslint/no-unused-vars (packet, _) => { const payload = JSON.parse(Buffer.from(packet.payload).toString()); @@ -153,7 +153,7 @@ describe('OpenFunction - Async', () => { // Set local data for post hook plugin ctx.locals.start = start; - ctx.locals.end = -start; + ctx.locals.end = -start!; // Passthrough test done handler ctx.locals.done = done; diff --git a/test/plugin.ts b/test/plugin.ts index 000bd46c..78fdb117 100644 --- a/test/plugin.ts +++ b/test/plugin.ts @@ -46,7 +46,7 @@ describe('Store for custom and builtin plugins', () => { it('ensures the sequence of long running async plugins', async () => { customs.register(new Concater()); - const size = random(0, 9); + const size = random(1, 9); const concater = customs.get('concater'); const seq = fill(Array(size), concater.name);