File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed
Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 55 "build" : " rescript" ,
66 "clean" : " rescript clean" ,
77 "start" : " rescript build -w" ,
8- "test" : " pta 'lib/js/test/atomic/*.test.bs.js'" ,
8+ "test" : " rescript && pta 'lib/js/test/atomic/*.test.bs.js'" ,
99 "clean-build" : " yarn clean && yarn build" ,
1010 "clean-start" : " yarn clean && yarn start" ,
1111 "clean-test" : " yarn clean && yarn build test" ,
2626 "description" : " Node bindings for ReScript" ,
2727 "license" : " MIT" ,
2828 "devDependencies" : {
29- "@dusty-phillips/rescript-zora" : " ^2 .0.0" ,
29+ "@dusty-phillips/rescript-zora" : " ^3 .0.0" ,
3030 "onchange" : " ^7.1.0" ,
3131 "pta" : " ^1.0.0" ,
3232 "rescript" : " ^9.1.4" ,
Original file line number Diff line number Diff line change 11open Fs
22open Zora
33
4- // avoid using rescript-zora `then` or `done`, to retain commonjs compatibility
5- let {then , resolve : done } = module (Promise )
6-
74zora ("Fs" , t => {
85 t -> test ("readFile should read entire file" , t => {
96 open_ (Global .filename , Flag .read )
107 -> then (fh =>
11- Fs . FileHandle .readFile (fh )-> then (buffer => FileHandle .close (fh )-> then (_ => done (buffer )))
8+ FileHandle .readFile (fh )-> then (buffer => FileHandle .close (fh )-> then (_ => done (buffer )))
129 )
1310 -> then (buffer => {
1411 let needle = "Random string: Gh2e71pdHhPxU"
@@ -20,7 +17,7 @@ zora("Fs", t => {
2017 t -> test ("readFileWith should read entire file as a string" , t => {
2118 open_ (Global .filename , Flag .read )
2219 -> then (fh =>
23- Fs . FileHandle .readFileWith (fh , ~encoding = "UTF-8" )-> then (buffer =>
20+ FileHandle .readFileWith (fh , readFileOptions ( ~encoding = "UTF-8" , ()) )-> then (buffer =>
2421 FileHandle .close (fh )-> then (_ => done (buffer ))
2522 )
2623 )
Original file line number Diff line number Diff line change 1212 resolved "https://registry.yarnpkg.com/@blakeembrey/template/-/template-1.0.0.tgz#bf8828bc3ae8004d97904d78f64e3cc2cd216438"
1313 integrity sha512-J6WGZqCLdRMHUkyRG6fBSIFJ0rL60/nsQNh5rQvsYZ5u0PsKw6XQcJcA3DWvd9cN3j/IQx5yB1fexhCafwwUUw==
1414
15- " @dusty-phillips/rescript-zora@^2 .0.0 " :
16- version "2 .0.0"
17- resolved "https://registry.yarnpkg.com/@dusty-phillips/rescript-zora/-/rescript-zora-2 .0.0.tgz#fbc60eb897f580c5d52a6457f4fe026001127bb7 "
18- integrity sha512-MJKjYRqg+8U+ESvdZ9niZeWfEmpBz3eGCHtWuxROWKH0NQKyc4Ok2EbMbs3Bb/p/F9FFdY3Cv/KNVix25KC8sA ==
15+ " @dusty-phillips/rescript-zora@^3 .0.0 " :
16+ version "3 .0.0"
17+ resolved "https://registry.yarnpkg.com/@dusty-phillips/rescript-zora/-/rescript-zora-3 .0.0.tgz#f5f2d626c7f4d6d4eb65a4c3c47e4702e7a8657a "
18+ integrity sha512-I3KQwmPB5Ezw9nVn0QxIyoOUY95/0SHfKmBA4OlzKwmTjRE1sNiziUeEuwuldULJo6/qX5xcDkTRYb2AtcM2RQ ==
1919 dependencies :
2020 " @ryyppy/rescript-promise" " ^2.1.0"
2121 pta "^1.0.0"
You can’t perform that action at this time.
0 commit comments