File tree 8 files changed +43
-46
lines changed
8 files changed +43
-46
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"parserOptions" : {
3
- "ecmaVersion" : 5
3
+ "ecmaVersion" : 6 ,
4
+ "sourceType" : " module"
4
5
},
5
6
"extends" : " eslint:recommended" ,
6
7
"env" : {
7
- "commonjs" : true ,
8
8
"browser" : true
9
9
},
10
10
"rules" : {
Original file line number Diff line number Diff line change @@ -13,10 +13,12 @@ jobs:
13
13
- uses : actions/checkout@v2
14
14
15
15
- uses : purescript-contrib/setup-purescript@main
16
+ with :
17
+ purescript : " unstable"
16
18
17
- - uses : actions/setup-node@v1
19
+ - uses : actions/setup-node@v2
18
20
with :
19
- node-version : " 10 "
21
+ node-version : " 14 "
20
22
21
23
- name : Install dependencies
22
24
run : |
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Notable changes to this project are documented in this file. The format is based
5
5
## [ Unreleased]
6
6
7
7
Breaking changes:
8
+ - Migrate FFI to ES modules (#12 by @JordanMartinez )
8
9
9
10
New features:
10
11
Original file line number Diff line number Diff line change 15
15
" package.json"
16
16
],
17
17
"dependencies" : {
18
- "purescript-arraybuffer-types" : " ^3.0.0 " ,
19
- "purescript-web-file" : " ^3.0.0 "
18
+ "purescript-arraybuffer-types" : " main " ,
19
+ "purescript-web-file" : " master "
20
20
}
21
21
}
Original file line number Diff line number Diff line change 6
6
},
7
7
"devDependencies" : {
8
8
"eslint" : " ^7.15.0" ,
9
- "pulp" : " ^15 .0.0" ,
10
- "purescript-psa" : " ^0.8.0 " ,
9
+ "pulp" : " 16 .0.0- 0" ,
10
+ "purescript-psa" : " ^0.8.2 " ,
11
11
"rimraf" : " ^3.0.2"
12
12
}
13
13
}
Original file line number Diff line number Diff line change 1
- "use strict" ;
2
-
3
- exports . code = function ( e ) {
1
+ export function code ( e ) {
4
2
return e . code ;
5
- } ;
3
+ }
6
4
7
- exports . reason = function ( e ) {
5
+ export function reason ( e ) {
8
6
return e . reason ;
9
- } ;
7
+ }
10
8
11
- exports . wasClean = function ( e ) {
9
+ export function wasClean ( e ) {
12
10
return e . wasClean ;
13
- } ;
11
+ }
Original file line number Diff line number Diff line change 1
- "use strict" ;
2
-
3
- exports . data_ = function ( e ) {
1
+ export function data_ ( e ) {
4
2
return e . data ;
5
- } ;
3
+ }
6
4
7
- exports . origin = function ( e ) {
5
+ export function origin ( e ) {
8
6
return e . origin ;
9
- } ;
7
+ }
10
8
11
- exports . lastEventId = function ( e ) {
9
+ export function lastEventId ( e ) {
12
10
return e . lastEventId ;
13
- } ;
11
+ }
Original file line number Diff line number Diff line change 1
- "use strict" ;
2
-
3
- exports . create = function ( url ) {
1
+ export function create ( url ) {
4
2
return function ( protocols ) {
5
3
return function ( ) {
6
4
return new WebSocket ( url , protocols ) ;
7
5
} ;
8
6
} ;
9
- } ;
7
+ }
10
8
11
- exports . url = function ( ws ) {
9
+ export function url ( ws ) {
12
10
return function ( ) {
13
11
return ws . url ;
14
12
} ;
15
- } ;
13
+ }
16
14
17
- exports . readyStateImpl = function ( ws ) {
15
+ export function readyStateImpl ( ws ) {
18
16
return function ( ) {
19
17
return ws . readyState ;
20
18
} ;
21
- } ;
19
+ }
22
20
23
- exports . bufferedAmount = function ( ws ) {
21
+ export function bufferedAmount ( ws ) {
24
22
return function ( ) {
25
23
return ws . bufferedAmount ;
26
24
} ;
27
- } ;
25
+ }
28
26
29
- exports . extensions = function ( ws ) {
27
+ export function extensions ( ws ) {
30
28
return function ( ) {
31
29
return ws . extensions ;
32
30
} ;
33
- } ;
31
+ }
34
32
35
- exports . protocol = function ( ws ) {
33
+ export function protocol ( ws ) {
36
34
return function ( ) {
37
35
return ws . protocol ;
38
36
} ;
39
- } ;
37
+ }
40
38
41
- exports . close = function ( ws ) {
39
+ export function close ( ws ) {
42
40
return function ( ) {
43
41
return ws . close ( ) ;
44
42
} ;
45
- } ;
43
+ }
46
44
47
- exports . getBinaryTypeImpl = function ( ws ) {
45
+ export function getBinaryTypeImpl ( ws ) {
48
46
return function ( ) {
49
47
return ws . binaryType ;
50
48
} ;
51
- } ;
49
+ }
52
50
53
- exports . setBinaryTypeImpl = function ( ws ) {
51
+ export function setBinaryTypeImpl ( ws ) {
54
52
return function ( bt ) {
55
53
return function ( ) {
56
54
ws . binaryType = bt ;
57
55
} ;
58
56
} ;
59
- } ;
57
+ }
60
58
61
- exports . sendImpl = function ( ws ) {
59
+ export function sendImpl ( ws ) {
62
60
return function ( value ) {
63
61
return function ( ) {
64
62
ws . send ( value ) ;
65
63
} ;
66
64
} ;
67
- } ;
65
+ }
You can’t perform that action at this time.
0 commit comments