Skip to content

Added customMiddleware to allow for easy request intercepting #317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion examples/fullstack/backend/bin/server.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 38 additions & 38 deletions examples/fullstack/backend/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ packages:
name: _fe_analyzer_shared
url: "https://pub.dartlang.org"
source: hosted
version: "29.0.0"
version: "38.0.0"
analyzer:
dependency: transitive
description:
name: analyzer
url: "https://pub.dartlang.org"
source: hosted
version: "2.6.0"
version: "3.4.1"
args:
dependency: transitive
description:
Expand Down Expand Up @@ -42,7 +42,7 @@ packages:
name: build
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
version: "2.2.1"
build_config:
dependency: transitive
description:
Expand All @@ -63,21 +63,21 @@ packages:
name: build_resolvers
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.4"
version: "2.0.6"
build_runner:
dependency: "direct dev"
description:
name: build_runner
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
version: "2.1.8"
build_runner_core:
dependency: transitive
description:
name: build_runner_core
url: "https://pub.dartlang.org"
source: hosted
version: "7.2.2"
version: "7.2.3"
built_collection:
dependency: transitive
description:
Expand All @@ -91,7 +91,7 @@ packages:
name: built_value
url: "https://pub.dartlang.org"
source: hosted
version: "8.1.2"
version: "8.1.4"
charcode:
dependency: transitive
description:
Expand All @@ -106,13 +106,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
cli_util:
dependency: transitive
description:
name: cli_util
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.5"
code_builder:
dependency: transitive
description:
Expand All @@ -126,7 +119,7 @@ packages:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0"
version: "1.16.0"
convert:
dependency: transitive
description:
Expand All @@ -140,7 +133,7 @@ packages:
name: coverage
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.3"
version: "1.2.0"
crypto:
dependency: transitive
description:
Expand All @@ -154,7 +147,7 @@ packages:
name: dart_style
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.0"
version: "2.2.2"
file:
dependency: transitive
description:
Expand All @@ -179,17 +172,17 @@ packages:
functions_framework:
dependency: "direct main"
description:
name: functions_framework
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.1"
path: "../../../functions_framework"
relative: true
source: path
version: "0.4.2-dev"
functions_framework_builder:
dependency: "direct dev"
description:
name: functions_framework_builder
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.4"
version: "0.4.5"
glob:
dependency: transitive
description:
Expand Down Expand Up @@ -217,7 +210,7 @@ packages:
name: http_multi_server
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
version: "3.2.0"
http_parser:
dependency: transitive
description:
Expand All @@ -238,21 +231,21 @@ packages:
name: js
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.3"
version: "0.6.4"
json_annotation:
dependency: "direct main"
description:
name: json_annotation
url: "https://pub.dartlang.org"
source: hosted
version: "4.3.0"
version: "4.4.0"
json_serializable:
dependency: "direct dev"
description:
name: json_serializable
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.0"
version: "6.1.5"
lints:
dependency: "direct dev"
description:
Expand Down Expand Up @@ -287,7 +280,7 @@ packages:
name: mime
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "1.0.1"
node_preamble:
dependency: transitive
description:
Expand All @@ -308,7 +301,7 @@ packages:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.1"
pool:
dependency: transitive
description:
Expand All @@ -322,21 +315,28 @@ packages:
name: pub_semver
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
pubspec_parse:
dependency: transitive
description:
name: pubspec_parse
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.2.0"
shelf:
dependency: "direct main"
description:
name: shelf
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
shelf_cors_headers:
dependency: "direct main"
description:
name: shelf_cors_headers
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2"
shelf_packages_handler:
dependency: transitive
description:
Expand Down Expand Up @@ -364,14 +364,14 @@ packages:
name: source_gen
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.1"
version: "1.2.1"
source_helper:
dependency: transitive
description:
name: source_helper
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.3.1"
source_map_stack_trace:
dependency: transitive
description:
Expand All @@ -392,7 +392,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.1"
version: "1.8.2"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -434,21 +434,21 @@ packages:
name: test
url: "https://pub.dartlang.org"
source: hosted
version: "1.18.2"
version: "1.20.2"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.5"
version: "0.4.9"
test_core:
dependency: transitive
description:
name: test_core
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.5"
version: "0.4.11"
test_process:
dependency: "direct dev"
description:
Expand Down Expand Up @@ -476,7 +476,7 @@ packages:
name: vm_service
url: "https://pub.dartlang.org"
source: hosted
version: "7.3.0"
version: "8.2.2"
watcher:
dependency: transitive
description:
Expand Down Expand Up @@ -506,4 +506,4 @@ packages:
source: hosted
version: "3.1.0"
sdks:
dart: ">=2.14.0 <3.0.0"
dart: ">=2.16.0-100.0.dev <3.0.0"
15 changes: 11 additions & 4 deletions examples/fullstack/backend/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@ name: backend
publish_to: none

environment:
sdk: '>=2.14.0 <3.0.0'
sdk: ">=2.14.0 <3.0.0"

dependencies:
functions_framework: ^0.4.0
functions_framework: ^0.4.2
json_annotation: ^4.3.0
shelf: ^1.0.0
shelf: ^1.2.0
shelf_cors_headers: ^0.1.2

# Override required until 0.4.2 is released as the new attributes do not yet
# exist in 0.4.1
dependency_overrides:
functions_framework:
path: ../../../functions_framework

dev_dependencies:
build_runner: ^2.0.0
functions_framework_builder: ^0.4.0
http: ^0.13.0
json_serializable: ^6.0.0
lints: ^1.0.0
lints: ^1.0.1
test: ^1.15.7
test_process: ^2.0.0
Loading