Skip to content

Commit

Permalink
Merge pull request #24 from RatakondalaArun/release/v3.0.1
Browse files Browse the repository at this point in the history
🏷️release/v3.0.1
  • Loading branch information
RatakondalaArun authored Feb 13, 2022
2 parents 0573270 + 138eee9 commit 2ff51b3
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 45 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

- Upgraded dependencies
- Fixed linter warnings

## 3.0.0

Complete rewrite of this package.
Expand Down
6 changes: 4 additions & 2 deletions lib/src/virtual_directory.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import 'dart:async';
import 'dart:convert';
import 'dart:io';

import 'package:http_parser/http_parser.dart' as hp;
import 'package:mime/mime.dart' as mime;
import 'package:path/path.dart' as path;
import 'package:shelf/shelf.dart';
import 'package:shelf_router/shelf_router.dart';
import 'package:http_parser/http_parser.dart' as hp;

part 'html_templates.dart';

Expand Down Expand Up @@ -337,7 +337,9 @@ class ShelfVirtualDirectory {
headers: {HttpHeaders.contentTypeHeader: 'text/html'},
);
} on FileSystemException catch (err) {
stderr..writeln(err)..writeln(StackTrace.current);
stderr
..writeln(err)
..writeln(StackTrace.current);
return Response.forbidden('Forbidden');
} catch (e) {
rethrow;
Expand Down
65 changes: 29 additions & 36 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@ packages:
name: _fe_analyzer_shared
url: "https://pub.dartlang.org"
source: hosted
version: "22.0.0"
version: "34.0.0"
analyzer:
dependency: transitive
description:
name: analyzer
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.1"
version: "3.2.0"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
version: "2.3.0"
async:
dependency: transitive
description:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.8.2"
boolean_selector:
dependency: transitive
description:
Expand All @@ -42,14 +42,14 @@ packages:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.3.1"
cli_util:
dependency: transitive
description:
name: cli_util
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.3"
version: "0.3.5"
collection:
dependency: transitive
description:
Expand All @@ -70,7 +70,7 @@ packages:
name: coverage
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.3"
version: "1.1.0"
crypto:
dependency: transitive
description:
Expand All @@ -91,21 +91,21 @@ packages:
name: frontend_server_client
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.2"
glob:
dependency: transitive
description:
name: glob
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
version: "2.0.2"
http:
dependency: "direct dev"
description:
name: http
url: "https://pub.dartlang.org"
source: hosted
version: "0.13.3"
version: "0.13.4"
http_methods:
dependency: transitive
description:
Expand All @@ -119,7 +119,7 @@ packages:
name: http_multi_server
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
version: "3.2.0"
http_parser:
dependency: "direct main"
description:
Expand All @@ -140,7 +140,7 @@ packages:
name: js
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.3"
version: "0.6.4"
lints:
dependency: "direct dev"
description:
Expand All @@ -154,28 +154,28 @@ packages:
name: logging
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
version: "1.0.2"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10"
version: "0.12.11"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.7.0"
mime:
dependency: "direct main"
description:
name: mime
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "1.0.1"
node_preamble:
dependency: transitive
description:
Expand All @@ -189,21 +189,14 @@ packages:
name: package_config
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.0.2"
path:
dependency: "direct main"
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
pedantic:
dependency: transitive
description:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
version: "1.11.1"
version: "1.8.1"
pool:
dependency: transitive
description:
Expand All @@ -217,14 +210,14 @@ packages:
name: pub_semver
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.1.0"
shelf:
dependency: "direct main"
description:
name: shelf
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.4"
version: "1.2.0"
shelf_packages_handler:
dependency: transitive
description:
Expand All @@ -238,14 +231,14 @@ packages:
name: shelf_router
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.1.2"
shelf_static:
dependency: transitive
description:
name: shelf_static
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "1.1.0"
shelf_web_socket:
dependency: transitive
description:
Expand Down Expand Up @@ -273,7 +266,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 @@ -308,21 +301,21 @@ packages:
name: test
url: "https://pub.dartlang.org"
source: hosted
version: "1.17.9"
version: "1.20.1"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.1"
version: "0.4.9"
test_core:
dependency: transitive
description:
name: test_core
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.29"
version: "0.4.11"
typed_data:
dependency: transitive
description:
Expand All @@ -336,14 +329,14 @@ packages:
name: vm_service
url: "https://pub.dartlang.org"
source: hosted
version: "7.1.0"
version: "8.1.0"
watcher:
dependency: transitive
description:
name: watcher
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "1.0.1"
web_socket_channel:
dependency: transitive
description:
Expand All @@ -366,4 +359,4 @@ packages:
source: hosted
version: "3.1.0"
sdks:
dart: ">=2.12.0 <3.0.0"
dart: ">=2.16.0-100.0.dev <3.0.0"
14 changes: 7 additions & 7 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: shelf_virtual_directory
version: 3.0.0
version: 3.0.1
description: >-
This package provides a virtual directory to serve static files from a shelf
server.
issue_tracker: https://github.com/RatakondalaArun/shelf_virtual_directory/issues
# author: Ratakondala Arun<arunratakondala3470@gmail.com>
# author: Ratakondala Arun<ratakondalaarun@gmail.com>
repository: https://github.com/RatakondalaArun/shelf_virtual_directory.git

environment:
sdk: ">=2.12.0 <3.0.0"

dependencies:
http_parser: ^4.0.0
mime: ^1.0.0
mime: ^1.0.1
path: ^1.8.0
shelf: ^1.1.4
shelf_router: ^1.1.0
shelf: ^1.2.0
shelf_router: ^1.1.2

dev_dependencies:
http: ^0.13.3
http: ^0.13.4
lints: ^1.0.1
test: ^1.17.9
test: ^1.20.1

0 comments on commit 2ff51b3

Please sign in to comment.