Skip to content

Commit

Permalink
correctly organize imports in files
Browse files Browse the repository at this point in the history
  • Loading branch information
om26er committed May 8, 2024
1 parent 1386ab1 commit 3f05ed2
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 14 deletions.
1 change: 1 addition & 0 deletions lib/exports.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export "src/client.dart" show Client;
export "src/router.dart" show Router;
export "src/server.dart" show Server;
export "src/session.dart" show Session;
export "src/types.dart" show Event, Invocation, Registration, Result, Subscription;
7 changes: 4 additions & 3 deletions lib/src/client.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import "package:wamp/src/session.dart";
import "package:wamp/src/types.dart";
import "package:wamp/src/wsjoiner.dart";
import "package:wampproto/auth.dart";
import "package:wampproto/serializers.dart";

import "package:xconn/src/session.dart";
import "package:xconn/src/types.dart";
import "package:xconn/src/wsjoiner.dart";

class Client {
Client({IClientAuthenticator? authenticator, Serializer? serializer}) {
_authenticator = authenticator;
Expand Down
5 changes: 3 additions & 2 deletions lib/src/router.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import "package:wamp/src/realm.dart";
import "package:wamp/src/types.dart";
import "package:wampproto/messages.dart";

import "package:xconn/src/realm.dart";
import "package:xconn/src/types.dart";

class Router {
final Map<String, Realm> _realms = {};

Expand Down
8 changes: 4 additions & 4 deletions lib/src/server.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import "dart:async";
import "dart:io";

import "package:wamp/exports.dart";
import "package:wamp/src/helpers.dart";
import "package:wamp/src/types.dart";
import "package:wamp/src/wsacceptor.dart";
import "package:xconn/exports.dart";
import "package:xconn/src/helpers.dart";
import "package:xconn/src/types.dart";
import "package:xconn/src/wsacceptor.dart";

class Server {
Server(this._router);
Expand Down
5 changes: 3 additions & 2 deletions lib/src/wsacceptor.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import "dart:async";
import "dart:io";

import "package:wamp/src/helpers.dart";
import "package:wamp/src/types.dart";
import "package:wampproto/acceptor.dart";
import "package:wampproto/auth.dart";
import "package:wampproto/serializers.dart";

import "package:xconn/src/helpers.dart";
import "package:xconn/src/types.dart";

class WAMPSessionAcceptor {
WAMPSessionAcceptor({IServerAuthenticator? authenticator}) {
_authenticator = authenticator;
Expand Down
5 changes: 3 additions & 2 deletions lib/src/wsjoiner.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import "dart:async";
import "dart:io";

import "package:wamp/src/helpers.dart";
import "package:wamp/src/types.dart";
import "package:wampproto/auth.dart";
import "package:wampproto/joiner.dart";
import "package:wampproto/serializers.dart";

import "package:xconn/src/helpers.dart";
import "package:xconn/src/types.dart";

class WAMPSessionJoiner {
WAMPSessionJoiner({IClientAuthenticator? authenticator, Serializer? serializer}) {
_serializer = serializer ?? JSONSerializer();
Expand Down
3 changes: 2 additions & 1 deletion test/wamp_session_joiner_test.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import "dart:typed_data";

import "package:test/test.dart";
import "package:wamp/src/helpers.dart";
import "package:wampproto/messages.dart";
import "package:wampproto/serializers.dart";

import "package:xconn/src/helpers.dart";

class TestSerializer implements Serializer {
@override
Uint8List serialize(final Message message) {
Expand Down

0 comments on commit 3f05ed2

Please sign in to comment.