File tree 7 files changed +33
-34
lines changed
7 files changed +33
-34
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 (#17 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-nullable" : " ^5.0.0 " ,
19
- "purescript-web-events" : " ^3.0.0 "
18
+ "purescript-nullable" : " main " ,
19
+ "purescript-web-events" : " 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 . _key = function ( storage ) {
1
+ export function _key ( storage ) {
4
2
return storage . key ;
5
- } ;
3
+ }
6
4
7
- exports . _oldValue = function ( storage ) {
5
+ export function _oldValue ( storage ) {
8
6
return storage . oldValue ;
9
- } ;
7
+ }
10
8
11
- exports . _newValue = function ( storage ) {
9
+ export function _newValue ( storage ) {
12
10
return storage . newValue ;
13
- } ;
11
+ }
14
12
15
- exports . url = function ( storage ) {
13
+ export function url ( storage ) {
16
14
return storage . url ;
17
- } ;
15
+ }
18
16
19
- exports . _storageArea = function ( storage ) {
17
+ export function _storageArea ( storage ) {
20
18
return storage . storageArea ;
21
- } ;
19
+ }
Original file line number Diff line number Diff line change 1
- "use strict" ;
2
-
3
- exports . length = function ( storage ) {
1
+ export function length ( storage ) {
4
2
return function ( ) {
5
3
return storage . length ;
6
4
} ;
7
- } ;
5
+ }
8
6
9
- exports . _key = function ( index ) {
7
+ export function _key ( index ) {
10
8
return function ( storage ) {
11
9
return function ( ) {
12
10
return storage . key ( index ) ;
13
11
} ;
14
12
} ;
15
- } ;
13
+ }
16
14
17
- exports . _getItem = function ( key ) {
15
+ export function _getItem ( key ) {
18
16
return function ( storage ) {
19
17
return function ( ) {
20
18
return storage . getItem ( key ) ;
21
19
} ;
22
20
} ;
23
- } ;
21
+ }
24
22
25
- exports . setItem = function ( key ) {
23
+ export function setItem ( key ) {
26
24
return function ( value ) {
27
25
return function ( storage ) {
28
26
return function ( ) {
29
27
storage . setItem ( key , value ) ;
30
28
} ;
31
29
} ;
32
30
} ;
33
- } ;
31
+ }
34
32
35
- exports . removeItem = function ( key ) {
33
+ export function removeItem ( key ) {
36
34
return function ( storage ) {
37
35
return function ( ) {
38
36
storage . removeItem ( key ) ;
39
37
} ;
40
38
} ;
41
- } ;
39
+ }
42
40
43
- exports . clear = function ( storage ) {
41
+ export function clear ( storage ) {
44
42
return function ( ) {
45
43
storage . clear ( ) ;
46
44
} ;
47
- } ;
45
+ }
You can’t perform that action at this time.
0 commit comments