File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.0.2
2
+
3
+ * Properly use ` BASE64 ` from ` dart:convert ` rather than ` crypto ` .
4
+
1
5
## 1.0.1
2
6
3
7
* Add support for ` crypto ` 1.0.0.
Original file line number Diff line number Diff line change 3
3
// BSD-style license that can be found in the LICENSE file.
4
4
5
5
import 'dart:async' ;
6
+ import 'dart:convert' as convert;
6
7
7
8
import 'package:async/async.dart' ;
8
9
import 'package:crypto/crypto.dart' ;
@@ -64,7 +65,8 @@ class WebSocketChannel extends StreamChannelMixin {
64
65
static String signKey (String key) {
65
66
// We use [codeUnits] here rather than UTF-8-decoding the string because
66
67
// [key] is expected to be base64 encoded, and so will be pure ASCII.
67
- return BASE64 .encode (sha1.convert ((key + webSocketGUID).codeUnits).bytes);
68
+ return convert.BASE64 .encode (
69
+ sha1.convert ((key + webSocketGUID).codeUnits).bytes);
68
70
}
69
71
70
72
/// Creates a new WebSocket handling messaging across an existing [channel] .
Original file line number Diff line number Diff line change 1
1
name : web_socket_channel
2
- version : 1.0.1
2
+ version : 1.0.2
3
3
description : StreamChannel wrappers for WebSockets.
4
4
author : Dart Team <misc@dartlang.org>
5
5
homepage : https://github.com/dart-lang/web_socket_channel
6
6
7
7
environment :
8
- sdk : ' >=1.8 .0 <2.0.0'
8
+ sdk : ' >=1.13 .0 <2.0.0'
9
9
10
10
dependencies :
11
11
async : ' ^1.3.0'
You can’t perform that action at this time.
0 commit comments