File tree Expand file tree Collapse file tree 11 files changed +50
-59
lines changed Expand file tree Collapse file tree 11 files changed +50
-59
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 (#14 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-web-dom" : " ^5.0.0 " ,
19
- "purescript-web-html" : " ^3.0.0 " ,
20
- "purescript-web-uievents" : " ^3.0.0 "
18
+ "purescript-web-dom" : " master " ,
19
+ "purescript-web-html" : " master " ,
20
+ "purescript-web-uievents" : " master "
21
21
}
22
22
}
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
1
// Web.CSSOM
2
- "use strict" ;
3
-
4
- exports . getStyleSheets = function ( doc ) {
2
+ export function getStyleSheets ( doc ) {
5
3
return function ( ) {
6
4
return doc . styleSheets ;
7
5
} ;
8
- } ;
6
+ }
Original file line number Diff line number Diff line change 1
- "use strict" ;
2
-
3
- exports . cssText = function ( style ) {
1
+ export function cssText ( style ) {
4
2
return function ( ) {
5
3
return style . cssText ;
6
4
} ;
7
- } ;
5
+ }
8
6
9
- exports . setCssText = function ( style ) {
7
+ export function setCssText ( style ) {
10
8
return function ( newCSS ) {
11
9
return function ( ) {
12
10
style . cssText = newCSS ;
13
11
} ;
14
12
} ;
15
- } ;
13
+ }
16
14
17
- exports . length = function ( style ) {
15
+ export function length ( style ) {
18
16
return function ( ) {
19
17
return style . length ;
20
18
} ;
21
- } ;
19
+ }
22
20
23
- exports . getPropertyPriority = function ( style ) {
21
+ export function getPropertyPriority ( style ) {
24
22
return function ( propName ) {
25
23
return function ( ) {
26
24
return style . getPropertyPriority ( propName ) ;
27
25
} ;
28
26
} ;
29
- } ;
27
+ }
30
28
31
- exports . getPropertyValue = function ( style ) {
29
+ export function getPropertyValue ( style ) {
32
30
return function ( propName ) {
33
31
return function ( ) {
34
32
return style . getPropertyValue ( propName ) ;
35
33
} ;
36
34
} ;
37
- } ;
35
+ }
38
36
39
- exports . removeProperty = function ( style ) {
37
+ export function removeProperty ( style ) {
40
38
return function ( propName ) {
41
39
return function ( ) {
42
40
style . removeProperty ( propName ) ;
43
41
} ;
44
42
} ;
45
- } ;
43
+ }
46
44
47
- exports . setProperty = function ( style ) {
45
+ export function setProperty ( style ) {
48
46
return function ( propName ) {
49
47
return function ( propValue ) {
50
48
return function ( ) {
51
49
style . setProperty ( propName , propValue ) ;
52
50
} ;
53
51
} ;
54
52
} ;
55
- } ;
53
+ }
Original file line number Diff line number Diff line change 1
- "use strict" ;
2
-
3
1
var getProp = function ( name ) {
4
2
return function ( sheet ) {
5
3
return sheet [ name ] ;
6
4
} ;
7
5
} ;
8
6
9
- exports . disabled = getProp ( "disabled" ) ;
10
- exports . _href = getProp ( "href" ) ;
11
- exports . _ownerNode = getProp ( "ownerNode" ) ;
12
- exports . _parentStyleSheet = getProp ( "parentStyleSheet" ) ;
13
- exports . _title = getProp ( "title" ) ;
14
- exports . _type = getProp ( "type" ) ;
7
+ export const disabled = getProp ( "disabled" ) ;
8
+ export const _href = getProp ( "href" ) ;
9
+ export const _ownerNode = getProp ( "ownerNode" ) ;
10
+ export const _parentStyleSheet = getProp ( "parentStyleSheet" ) ;
11
+ export const _title = getProp ( "title" ) ;
12
+ export const _type = getProp ( "type" ) ;
15
13
16
- exports . setDisabled = function ( bool ) {
14
+ export function setDisabled ( bool ) {
17
15
return function ( sheet ) {
18
16
return function ( ) {
19
17
sheet . disabled = bool ;
20
18
} ;
21
19
} ;
22
- } ;
20
+ }
23
21
24
- exports . toggleDisabled = function ( sheet ) {
22
+ export function toggleDisabled ( sheet ) {
25
23
return function ( ) {
26
24
var bool = ! sheet . disabled ;
27
25
sheet . disabled = bool ;
28
26
return bool ;
29
27
} ;
30
- } ;
28
+ }
Original file line number Diff line number Diff line change 1
- "use strict" ;
2
-
3
- exports . style = function ( el ) {
1
+ export function style ( el ) {
4
2
return function ( ) {
5
3
return el . style ;
6
4
} ;
7
- } ;
5
+ }
Original file line number Diff line number Diff line change 1
- "use strict" ;
2
-
3
- exports . offsetX = function ( e ) {
1
+ export function offsetX ( e ) {
4
2
return e . offsetX ;
5
- } ;
3
+ }
6
4
7
- exports . offsetY = function ( e ) {
5
+ export function offsetY ( e ) {
8
6
return e . offsetY ;
9
- } ;
7
+ }
Original file line number Diff line number Diff line change 1
- "use strict" ;
2
-
3
- exports . length = function ( list ) {
1
+ export function length ( list ) {
4
2
return function ( ) {
5
3
return list . length ;
6
4
} ;
7
- } ;
5
+ }
8
6
9
- exports . toArray = function ( list ) {
7
+ export function toArray ( list ) {
10
8
return function ( ) {
11
9
return Array . prototype . slice . call ( list ) ;
12
10
} ;
13
- } ;
11
+ }
14
12
15
- exports . _item = function ( index ) {
13
+ export function _item ( index ) {
16
14
return function ( list ) {
17
15
return function ( ) {
18
16
return list . item ( index ) ;
19
17
} ;
20
18
} ;
21
- } ;
19
+ }
You can’t perform that action at this time.
0 commit comments