├── .eslintignore ├── .eslintrc.json ├── .github ├── blunderbuss.yml ├── release-please.yml ├── renovate.json └── workflows │ ├── buildpack-integration-test.yml │ ├── codeql.yml │ ├── conformance.yml │ ├── dependency-review.yml │ ├── docs.yml │ ├── lint.yml │ ├── publish.yml │ ├── scorecard.yml │ └── unit.yml ├── .gitignore ├── .prettierrc.js ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── api-extractor.json ├── docs ├── README.md ├── cloudevents.md ├── debugging.md ├── docker.md ├── esm.md ├── esm │ ├── README.md │ ├── consts.js │ ├── index.js │ ├── package-lock.json │ └── package.json ├── events.md ├── generated │ ├── api.json │ ├── api.md │ └── api.md.api.md ├── testing-functions.md ├── typescript-pubsub.md └── typescript.md ├── package.json ├── run_conformance_tests.sh ├── src ├── async_local_storage.ts ├── cloud_events.ts ├── execution_context.ts ├── function_registry.ts ├── function_wrappers.ts ├── functions.ts ├── index.ts ├── invoker.ts ├── loader.ts ├── logger.ts ├── main.ts ├── middleware │ ├── background_event_to_cloud_event.ts │ ├── cloud_event_to_background_event.ts │ └── timeout.ts ├── options.ts ├── pubsub_middleware.ts ├── server.ts ├── testing.ts └── types.ts ├── test ├── async_local_storage.ts ├── conformance │ ├── .gitignore │ ├── function.js │ ├── package.json │ └── prerun.sh ├── data │ ├── esm_mjs │ │ ├── foo.mjs │ │ └── package.json │ ├── esm_nested │ │ ├── nested │ │ │ └── foo.js │ │ └── package.json │ ├── esm_type │ │ ├── foo.js │ │ └── package.json │ ├── with_main │ │ ├── foo.js │ │ └── package.json │ └── without_main │ │ └── function.js ├── execution_context.ts ├── function_registry.ts ├── function_wrappers.ts ├── integration │ ├── cloud_event.ts │ ├── http.ts │ └── legacy_event.ts ├── loader.ts ├── logger.ts ├── middleware │ ├── background_event_to_cloud_event.ts │ ├── cloud_event_to_background_event.ts │ └── timeout.ts ├── options.ts ├── pubsub_middleware.ts └── system-test │ └── pack_n_play.ts └── tsconfig.json /.eslintignore: -------------------------------------------------------------------------------- 1 | **/node_modules 2 | build/ 3 | test/data/esm_* 4 | docs/ 5 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/blunderbuss.yml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.github/release-please.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/.github/release-please.yml -------------------------------------------------------------------------------- /.github/renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/.github/renovate.json -------------------------------------------------------------------------------- /.github/workflows/buildpack-integration-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/.github/workflows/buildpack-integration-test.yml -------------------------------------------------------------------------------- /.github/workflows/codeql.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/.github/workflows/codeql.yml -------------------------------------------------------------------------------- /.github/workflows/conformance.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/.github/workflows/conformance.yml -------------------------------------------------------------------------------- /.github/workflows/dependency-review.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/.github/workflows/dependency-review.yml -------------------------------------------------------------------------------- /.github/workflows/docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/.github/workflows/docs.yml -------------------------------------------------------------------------------- /.github/workflows/lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/.github/workflows/lint.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/scorecard.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/.github/workflows/scorecard.yml -------------------------------------------------------------------------------- /.github/workflows/unit.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/.github/workflows/unit.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | ...require('gts/.prettierrc.json') 3 | } 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/README.md -------------------------------------------------------------------------------- /api-extractor.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/api-extractor.json -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/docs/README.md -------------------------------------------------------------------------------- /docs/cloudevents.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/docs/cloudevents.md -------------------------------------------------------------------------------- /docs/debugging.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/docs/debugging.md -------------------------------------------------------------------------------- /docs/docker.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/docs/docker.md -------------------------------------------------------------------------------- /docs/esm.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/docs/esm.md -------------------------------------------------------------------------------- /docs/esm/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/docs/esm/README.md -------------------------------------------------------------------------------- /docs/esm/consts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/docs/esm/consts.js -------------------------------------------------------------------------------- /docs/esm/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/docs/esm/index.js -------------------------------------------------------------------------------- /docs/esm/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/docs/esm/package-lock.json -------------------------------------------------------------------------------- /docs/esm/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/docs/esm/package.json -------------------------------------------------------------------------------- /docs/events.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/docs/events.md -------------------------------------------------------------------------------- /docs/generated/api.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/docs/generated/api.json -------------------------------------------------------------------------------- /docs/generated/api.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/docs/generated/api.md -------------------------------------------------------------------------------- /docs/generated/api.md.api.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/docs/generated/api.md.api.md -------------------------------------------------------------------------------- /docs/testing-functions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/docs/testing-functions.md -------------------------------------------------------------------------------- /docs/typescript-pubsub.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/docs/typescript-pubsub.md -------------------------------------------------------------------------------- /docs/typescript.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/docs/typescript.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/package.json -------------------------------------------------------------------------------- /run_conformance_tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/run_conformance_tests.sh -------------------------------------------------------------------------------- /src/async_local_storage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/async_local_storage.ts -------------------------------------------------------------------------------- /src/cloud_events.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/cloud_events.ts -------------------------------------------------------------------------------- /src/execution_context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/execution_context.ts -------------------------------------------------------------------------------- /src/function_registry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/function_registry.ts -------------------------------------------------------------------------------- /src/function_wrappers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/function_wrappers.ts -------------------------------------------------------------------------------- /src/functions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/functions.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/invoker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/invoker.ts -------------------------------------------------------------------------------- /src/loader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/loader.ts -------------------------------------------------------------------------------- /src/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/logger.ts -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/middleware/background_event_to_cloud_event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/middleware/background_event_to_cloud_event.ts -------------------------------------------------------------------------------- /src/middleware/cloud_event_to_background_event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/middleware/cloud_event_to_background_event.ts -------------------------------------------------------------------------------- /src/middleware/timeout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/middleware/timeout.ts -------------------------------------------------------------------------------- /src/options.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/options.ts -------------------------------------------------------------------------------- /src/pubsub_middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/pubsub_middleware.ts -------------------------------------------------------------------------------- /src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/server.ts -------------------------------------------------------------------------------- /src/testing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/testing.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/src/types.ts -------------------------------------------------------------------------------- /test/async_local_storage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/async_local_storage.ts -------------------------------------------------------------------------------- /test/conformance/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/conformance/.gitignore -------------------------------------------------------------------------------- /test/conformance/function.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/conformance/function.js -------------------------------------------------------------------------------- /test/conformance/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/conformance/package.json -------------------------------------------------------------------------------- /test/conformance/prerun.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/conformance/prerun.sh -------------------------------------------------------------------------------- /test/data/esm_mjs/foo.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/data/esm_mjs/foo.mjs -------------------------------------------------------------------------------- /test/data/esm_mjs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "foo.mjs" 3 | } 4 | -------------------------------------------------------------------------------- /test/data/esm_nested/nested/foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/data/esm_nested/nested/foo.js -------------------------------------------------------------------------------- /test/data/esm_nested/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/data/esm_nested/package.json -------------------------------------------------------------------------------- /test/data/esm_type/foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/data/esm_type/foo.js -------------------------------------------------------------------------------- /test/data/esm_type/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/data/esm_type/package.json -------------------------------------------------------------------------------- /test/data/with_main/foo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/data/with_main/foo.js -------------------------------------------------------------------------------- /test/data/with_main/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "foo.js" 3 | } -------------------------------------------------------------------------------- /test/data/without_main/function.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/data/without_main/function.js -------------------------------------------------------------------------------- /test/execution_context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/execution_context.ts -------------------------------------------------------------------------------- /test/function_registry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/function_registry.ts -------------------------------------------------------------------------------- /test/function_wrappers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/function_wrappers.ts -------------------------------------------------------------------------------- /test/integration/cloud_event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/integration/cloud_event.ts -------------------------------------------------------------------------------- /test/integration/http.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/integration/http.ts -------------------------------------------------------------------------------- /test/integration/legacy_event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/integration/legacy_event.ts -------------------------------------------------------------------------------- /test/loader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/loader.ts -------------------------------------------------------------------------------- /test/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/logger.ts -------------------------------------------------------------------------------- /test/middleware/background_event_to_cloud_event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/middleware/background_event_to_cloud_event.ts -------------------------------------------------------------------------------- /test/middleware/cloud_event_to_background_event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/middleware/cloud_event_to_background_event.ts -------------------------------------------------------------------------------- /test/middleware/timeout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/middleware/timeout.ts -------------------------------------------------------------------------------- /test/options.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/options.ts -------------------------------------------------------------------------------- /test/pubsub_middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/pubsub_middleware.ts -------------------------------------------------------------------------------- /test/system-test/pack_n_play.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/test/system-test/pack_n_play.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/functions-framework-nodejs/HEAD/tsconfig.json --------------------------------------------------------------------------------