File tree Expand file tree Collapse file tree 8 files changed +43
-46
lines changed Expand file tree Collapse file tree 8 files changed +43
-46
lines changed Original file line number Diff line number Diff line change 11{
22 "parserOptions" : {
3- "ecmaVersion" : 5
3+ "ecmaVersion" : 6 ,
4+ "sourceType" : " module"
45 },
56 "extends" : " eslint:recommended" ,
67 "env" : {
7- "commonjs" : true ,
88 "browser" : true
99 },
1010 "rules" : {
Original file line number Diff line number Diff line change @@ -13,10 +13,12 @@ jobs:
1313 - uses : actions/checkout@v2
1414
1515 - uses : purescript-contrib/setup-purescript@main
16+ with :
17+ purescript : " unstable"
1618
17- - uses : actions/setup-node@v1
19+ - uses : actions/setup-node@v2
1820 with :
19- node-version : " 10 "
21+ node-version : " 14 "
2022
2123 - name : Install dependencies
2224 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
55## [ Unreleased]
66
77Breaking changes:
8+ - Migrate FFI to ES modules (#12 by @JordanMartinez )
89
910New features:
1011
Original file line number Diff line number Diff line change 1515 " package.json"
1616 ],
1717 "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 "
2020 }
2121}
Original file line number Diff line number Diff line change 66 },
77 "devDependencies" : {
88 "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 " ,
1111 "rimraf" : " ^3.0.2"
1212 }
1313}
Original file line number Diff line number Diff line change 1- "use strict" ;
2-
3- exports . code = function ( e ) {
1+ export function code ( e ) {
42 return e . code ;
5- } ;
3+ }
64
7- exports . reason = function ( e ) {
5+ export function reason ( e ) {
86 return e . reason ;
9- } ;
7+ }
108
11- exports . wasClean = function ( e ) {
9+ export function wasClean ( e ) {
1210 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 ) {
42 return e . data ;
5- } ;
3+ }
64
7- exports . origin = function ( e ) {
5+ export function origin ( e ) {
86 return e . origin ;
9- } ;
7+ }
108
11- exports . lastEventId = function ( e ) {
9+ export function lastEventId ( e ) {
1210 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 ) {
42 return function ( protocols ) {
53 return function ( ) {
64 return new WebSocket ( url , protocols ) ;
75 } ;
86 } ;
9- } ;
7+ }
108
11- exports . url = function ( ws ) {
9+ export function url ( ws ) {
1210 return function ( ) {
1311 return ws . url ;
1412 } ;
15- } ;
13+ }
1614
17- exports . readyStateImpl = function ( ws ) {
15+ export function readyStateImpl ( ws ) {
1816 return function ( ) {
1917 return ws . readyState ;
2018 } ;
21- } ;
19+ }
2220
23- exports . bufferedAmount = function ( ws ) {
21+ export function bufferedAmount ( ws ) {
2422 return function ( ) {
2523 return ws . bufferedAmount ;
2624 } ;
27- } ;
25+ }
2826
29- exports . extensions = function ( ws ) {
27+ export function extensions ( ws ) {
3028 return function ( ) {
3129 return ws . extensions ;
3230 } ;
33- } ;
31+ }
3432
35- exports . protocol = function ( ws ) {
33+ export function protocol ( ws ) {
3634 return function ( ) {
3735 return ws . protocol ;
3836 } ;
39- } ;
37+ }
4038
41- exports . close = function ( ws ) {
39+ export function close ( ws ) {
4240 return function ( ) {
4341 return ws . close ( ) ;
4442 } ;
45- } ;
43+ }
4644
47- exports . getBinaryTypeImpl = function ( ws ) {
45+ export function getBinaryTypeImpl ( ws ) {
4846 return function ( ) {
4947 return ws . binaryType ;
5048 } ;
51- } ;
49+ }
5250
53- exports . setBinaryTypeImpl = function ( ws ) {
51+ export function setBinaryTypeImpl ( ws ) {
5452 return function ( bt ) {
5553 return function ( ) {
5654 ws . binaryType = bt ;
5755 } ;
5856 } ;
59- } ;
57+ }
6058
61- exports . sendImpl = function ( ws ) {
59+ export function sendImpl ( ws ) {
6260 return function ( value ) {
6361 return function ( ) {
6462 ws . send ( value ) ;
6563 } ;
6664 } ;
67- } ;
65+ }
You can’t perform that action at this time.
0 commit comments