mirror of
https://github.com/felixblaschke/shelf_plus.git
synced 2025-08-03 17:43:18 +08:00
Release 1.10.1 - Expose correct port in onStarted()
for random port launches
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
## 1.10.1
|
||||
|
||||
- Expose correct port in `onStarted()` if server is launched with random port (thanks to [rodolfogoulart](https://github.com/rodolfogoulart))
|
||||
- Remove library name (following lint `unnecessary_library_name`)
|
||||
|
||||
## 1.10.0
|
||||
|
||||
- Upgraded dependencies (thanks to [pulyaevskiy](https://github.com/pulyaevskiy))
|
||||
|
@ -1,7 +1,3 @@
|
||||
/// Shelf Plus is a quality of life addon for your server-side
|
||||
/// development within the Shelf platform.
|
||||
library shelf_plus;
|
||||
|
||||
export 'package:shelf/shelf.dart';
|
||||
export 'package:shelf_router/shelf_router.dart';
|
||||
export 'package:shelf_static/shelf_static.dart';
|
||||
|
@ -105,8 +105,7 @@ Future<HttpServer> _createServer(
|
||||
if (onStarted == null) {
|
||||
print('shelfRun HTTP service running on port ${server.port}');
|
||||
} else {
|
||||
port = server.port;
|
||||
onStarted(address, port);
|
||||
onStarted(address, server.port);
|
||||
}
|
||||
return server;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: shelf_plus
|
||||
description: Shelf Plus is a quality of life addon for your server-side development within the Shelf platform.
|
||||
version: 1.10.0
|
||||
version: 1.10.1
|
||||
repository: https://github.com/felixblaschke/shelf_plus
|
||||
|
||||
environment:
|
||||
|
Reference in New Issue
Block a user