@tellahq/rescript 10.1.0-alpha.1 → 10.1.4-republish-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +204 -2
- package/README.md +1 -1
- package/darwinarm64/bsb_helper.exe +0 -0
- package/darwinarm64/bsc.exe +0 -0
- package/darwinarm64/rescript.exe +0 -0
- package/docs/docson/build-schema.json +497 -516
- package/lib/4.06.1/bsb_helper.ml +6 -1
- package/lib/4.06.1/rescript.ml +1414 -1191
- package/lib/4.06.1/whole_compiler.ml +69871 -69087
- package/lib/es6/belt_internalBuckets.js +13 -13
- package/lib/es6/caml_float.js +5 -5
- package/lib/es6/caml_format.js +1 -1
- package/lib/es6/caml_int64.js +1 -1
- package/lib/es6/caml_obj.js +26 -6
- package/lib/es6/complex.js +4 -4
- package/lib/es6/js.js +3 -0
- package/lib/es6/js_promise2.js +16 -0
- package/lib/es6/jsxPPXReactSupport.js +26 -0
- package/lib/js/belt_internalBuckets.js +13 -13
- package/lib/js/caml_float.js +5 -5
- package/lib/js/caml_format.js +1 -1
- package/lib/js/caml_int64.js +1 -1
- package/lib/js/caml_obj.js +26 -6
- package/lib/js/complex.js +4 -4
- package/lib/js/js.js +3 -0
- package/lib/js/js_promise2.js +14 -0
- package/lib/js/jsxPPXReactSupport.js +24 -0
- package/lib/ocaml/arg.cmi +0 -0
- package/lib/ocaml/arg.cmt +0 -0
- package/lib/ocaml/arg.cmti +0 -0
- package/lib/ocaml/arg.ml +2 -2
- package/lib/ocaml/array.cmi +0 -0
- package/lib/ocaml/array.cmt +0 -0
- package/lib/ocaml/array.cmti +0 -0
- package/lib/ocaml/arrayLabels.cmi +0 -0
- package/lib/ocaml/arrayLabels.cmt +0 -0
- package/lib/ocaml/arrayLabels.cmti +0 -0
- package/lib/ocaml/belt.cmt +0 -0
- package/lib/ocaml/belt_Array.cmi +0 -0
- package/lib/ocaml/belt_Array.cmt +0 -0
- package/lib/ocaml/belt_Array.cmti +0 -0
- package/lib/ocaml/belt_Float.cmt +0 -0
- package/lib/ocaml/belt_Float.cmti +0 -0
- package/lib/ocaml/belt_HashMap.cmi +0 -0
- package/lib/ocaml/belt_HashMap.cmt +0 -0
- package/lib/ocaml/belt_HashMap.cmti +0 -0
- package/lib/ocaml/belt_HashMapInt.cmi +0 -0
- package/lib/ocaml/belt_HashMapInt.cmt +0 -0
- package/lib/ocaml/belt_HashMapInt.cmti +0 -0
- package/lib/ocaml/belt_HashMapString.cmi +0 -0
- package/lib/ocaml/belt_HashMapString.cmt +0 -0
- package/lib/ocaml/belt_HashMapString.cmti +0 -0
- package/lib/ocaml/belt_HashSet.cmi +0 -0
- package/lib/ocaml/belt_HashSet.cmt +0 -0
- package/lib/ocaml/belt_HashSet.cmti +0 -0
- package/lib/ocaml/belt_HashSetInt.cmi +0 -0
- package/lib/ocaml/belt_HashSetInt.cmt +0 -0
- package/lib/ocaml/belt_HashSetInt.cmti +0 -0
- package/lib/ocaml/belt_HashSetString.cmi +0 -0
- package/lib/ocaml/belt_HashSetString.cmt +0 -0
- package/lib/ocaml/belt_HashSetString.cmti +0 -0
- package/lib/ocaml/belt_Id.cmi +0 -0
- package/lib/ocaml/belt_Id.cmt +0 -0
- package/lib/ocaml/belt_Id.cmti +0 -0
- package/lib/ocaml/belt_Int.cmt +0 -0
- package/lib/ocaml/belt_Int.cmti +0 -0
- package/lib/ocaml/belt_List.cmi +0 -0
- package/lib/ocaml/belt_List.cmt +0 -0
- package/lib/ocaml/belt_List.cmti +0 -0
- package/lib/ocaml/belt_Map.cmi +0 -0
- package/lib/ocaml/belt_Map.cmt +0 -0
- package/lib/ocaml/belt_Map.cmti +0 -0
- package/lib/ocaml/belt_MapDict.cmi +0 -0
- package/lib/ocaml/belt_MapDict.cmt +0 -0
- package/lib/ocaml/belt_MapDict.cmti +0 -0
- package/lib/ocaml/belt_MapInt.cmi +0 -0
- package/lib/ocaml/belt_MapInt.cmt +0 -0
- package/lib/ocaml/belt_MapInt.cmti +0 -0
- package/lib/ocaml/belt_MapString.cmi +0 -0
- package/lib/ocaml/belt_MapString.cmt +0 -0
- package/lib/ocaml/belt_MapString.cmti +0 -0
- package/lib/ocaml/belt_MutableMap.cmi +0 -0
- package/lib/ocaml/belt_MutableMap.cmt +0 -0
- package/lib/ocaml/belt_MutableMap.cmti +0 -0
- package/lib/ocaml/belt_MutableMapInt.cmi +0 -0
- package/lib/ocaml/belt_MutableMapInt.cmt +0 -0
- package/lib/ocaml/belt_MutableMapInt.cmti +0 -0
- package/lib/ocaml/belt_MutableMapString.cmi +0 -0
- package/lib/ocaml/belt_MutableMapString.cmt +0 -0
- package/lib/ocaml/belt_MutableMapString.cmti +0 -0
- package/lib/ocaml/belt_MutableQueue.cmi +0 -0
- package/lib/ocaml/belt_MutableQueue.cmt +0 -0
- package/lib/ocaml/belt_MutableQueue.cmti +0 -0
- package/lib/ocaml/belt_MutableSet.cmi +0 -0
- package/lib/ocaml/belt_MutableSet.cmt +0 -0
- package/lib/ocaml/belt_MutableSet.cmti +0 -0
- package/lib/ocaml/belt_MutableSetInt.cmi +0 -0
- package/lib/ocaml/belt_MutableSetInt.cmt +0 -0
- package/lib/ocaml/belt_MutableSetInt.cmti +0 -0
- package/lib/ocaml/belt_MutableSetString.cmi +0 -0
- package/lib/ocaml/belt_MutableSetString.cmt +0 -0
- package/lib/ocaml/belt_MutableSetString.cmti +0 -0
- package/lib/ocaml/belt_MutableStack.cmi +0 -0
- package/lib/ocaml/belt_MutableStack.cmt +0 -0
- package/lib/ocaml/belt_MutableStack.cmti +0 -0
- package/lib/ocaml/belt_Option.cmi +0 -0
- package/lib/ocaml/belt_Option.cmt +0 -0
- package/lib/ocaml/belt_Option.cmti +0 -0
- package/lib/ocaml/belt_Range.cmi +0 -0
- package/lib/ocaml/belt_Range.cmt +0 -0
- package/lib/ocaml/belt_Range.cmti +0 -0
- package/lib/ocaml/belt_Result.cmi +0 -0
- package/lib/ocaml/belt_Result.cmt +0 -0
- package/lib/ocaml/belt_Result.cmti +0 -0
- package/lib/ocaml/belt_Set.cmi +0 -0
- package/lib/ocaml/belt_Set.cmt +0 -0
- package/lib/ocaml/belt_Set.cmti +0 -0
- package/lib/ocaml/belt_SetDict.cmi +0 -0
- package/lib/ocaml/belt_SetDict.cmt +0 -0
- package/lib/ocaml/belt_SetDict.cmti +0 -0
- package/lib/ocaml/belt_SetInt.cmi +0 -0
- package/lib/ocaml/belt_SetInt.cmt +0 -0
- package/lib/ocaml/belt_SetInt.cmti +0 -0
- package/lib/ocaml/belt_SetString.cmi +0 -0
- package/lib/ocaml/belt_SetString.cmt +0 -0
- package/lib/ocaml/belt_SetString.cmti +0 -0
- package/lib/ocaml/belt_SortArray.cmi +0 -0
- package/lib/ocaml/belt_SortArray.cmt +0 -0
- package/lib/ocaml/belt_SortArray.cmti +0 -0
- package/lib/ocaml/belt_SortArrayInt.cmt +0 -0
- package/lib/ocaml/belt_SortArrayInt.cmti +0 -0
- package/lib/ocaml/belt_SortArrayString.cmt +0 -0
- package/lib/ocaml/belt_SortArrayString.cmti +0 -0
- package/lib/ocaml/belt_internalAVLset.cmt +0 -0
- package/lib/ocaml/belt_internalAVLset.cmti +0 -0
- package/lib/ocaml/belt_internalAVLtree.cmt +0 -0
- package/lib/ocaml/belt_internalAVLtree.cmti +0 -0
- package/lib/ocaml/belt_internalBuckets.cmt +0 -0
- package/lib/ocaml/belt_internalBuckets.cmti +0 -0
- package/lib/ocaml/belt_internalBucketsType.cmt +0 -0
- package/lib/ocaml/belt_internalBucketsType.cmti +0 -0
- package/lib/ocaml/belt_internalMapInt.cmt +0 -0
- package/lib/ocaml/belt_internalMapString.cmt +0 -0
- package/lib/ocaml/belt_internalSetBuckets.cmt +0 -0
- package/lib/ocaml/belt_internalSetBuckets.cmti +0 -0
- package/lib/ocaml/belt_internalSetInt.cmt +0 -0
- package/lib/ocaml/belt_internalSetString.cmt +0 -0
- package/lib/ocaml/belt_internals.cmti +0 -0
- package/lib/ocaml/buffer.cmi +0 -0
- package/lib/ocaml/buffer.cmt +0 -0
- package/lib/ocaml/buffer.cmti +0 -0
- package/lib/ocaml/bytes.cmi +0 -0
- package/lib/ocaml/bytes.cmt +0 -0
- package/lib/ocaml/bytes.cmti +0 -0
- package/lib/ocaml/bytesLabels.cmi +0 -0
- package/lib/ocaml/bytesLabels.cmt +0 -0
- package/lib/ocaml/bytesLabels.cmti +0 -0
- package/lib/ocaml/callback.cmi +0 -0
- package/lib/ocaml/callback.cmt +0 -0
- package/lib/ocaml/callback.cmti +0 -0
- package/lib/ocaml/camlinternalLazy.cmi +0 -0
- package/lib/ocaml/camlinternalLazy.cmt +0 -0
- package/lib/ocaml/camlinternalLazy.cmti +0 -0
- package/lib/ocaml/camlinternalMod.cmi +0 -0
- package/lib/ocaml/camlinternalMod.cmt +0 -0
- package/lib/ocaml/camlinternalMod.cmti +0 -0
- package/lib/ocaml/char.cmi +0 -0
- package/lib/ocaml/char.cmt +0 -0
- package/lib/ocaml/char.cmti +0 -0
- package/lib/ocaml/complex.cmi +0 -0
- package/lib/ocaml/complex.cmt +0 -0
- package/lib/ocaml/complex.cmti +0 -0
- package/lib/ocaml/digest.cmi +0 -0
- package/lib/ocaml/digest.cmt +0 -0
- package/lib/ocaml/digest.cmti +0 -0
- package/lib/ocaml/dom.cmt +0 -0
- package/lib/ocaml/dom_storage.cmt +0 -0
- package/lib/ocaml/dom_storage2.cmt +0 -0
- package/lib/ocaml/filename.cmi +0 -0
- package/lib/ocaml/filename.cmt +0 -0
- package/lib/ocaml/filename.cmti +0 -0
- package/lib/ocaml/genlex.cmi +0 -0
- package/lib/ocaml/genlex.cmt +0 -0
- package/lib/ocaml/genlex.cmti +0 -0
- package/lib/ocaml/hashtbl.cmi +0 -0
- package/lib/ocaml/hashtbl.cmt +0 -0
- package/lib/ocaml/hashtbl.cmti +0 -0
- package/lib/ocaml/hashtblLabels.cmi +0 -0
- package/lib/ocaml/hashtblLabels.cmt +0 -0
- package/lib/ocaml/int32.cmi +0 -0
- package/lib/ocaml/int32.cmt +0 -0
- package/lib/ocaml/int32.cmti +0 -0
- package/lib/ocaml/int64.cmi +0 -0
- package/lib/ocaml/int64.cmt +0 -0
- package/lib/ocaml/int64.cmti +0 -0
- package/lib/ocaml/js.cmi +0 -0
- package/lib/ocaml/js.cmt +0 -0
- package/lib/ocaml/js.ml +3 -0
- package/lib/ocaml/js_OO.cmt +0 -0
- package/lib/ocaml/js_array.cmt +0 -0
- package/lib/ocaml/js_array2.cmt +0 -0
- package/lib/ocaml/js_bigint.cmt +0 -0
- package/lib/ocaml/js_cast.cmt +0 -0
- package/lib/ocaml/js_cast.cmti +0 -0
- package/lib/ocaml/js_console.cmt +0 -0
- package/lib/ocaml/js_date.cmt +0 -0
- package/lib/ocaml/js_dict.cmi +0 -0
- package/lib/ocaml/js_dict.cmt +0 -0
- package/lib/ocaml/js_dict.cmti +0 -0
- package/lib/ocaml/js_exn.cmt +0 -0
- package/lib/ocaml/js_exn.cmti +0 -0
- package/lib/ocaml/js_float.cmt +0 -0
- package/lib/ocaml/js_global.cmt +0 -0
- package/lib/ocaml/js_int.cmt +0 -0
- package/lib/ocaml/js_json.cmi +0 -0
- package/lib/ocaml/js_json.cmt +0 -0
- package/lib/ocaml/js_json.cmti +0 -0
- package/lib/ocaml/js_list.cmi +0 -0
- package/lib/ocaml/js_list.cmt +0 -0
- package/lib/ocaml/js_list.cmti +0 -0
- package/lib/ocaml/js_map.cmt +0 -0
- package/lib/ocaml/js_mapperRt.cmt +0 -0
- package/lib/ocaml/js_mapperRt.cmti +0 -0
- package/lib/ocaml/js_math.cmi +0 -0
- package/lib/ocaml/js_math.cmt +0 -0
- package/lib/ocaml/js_math.ml +1 -1
- package/lib/ocaml/js_null.cmi +0 -0
- package/lib/ocaml/js_null.cmt +0 -0
- package/lib/ocaml/js_null.cmti +0 -0
- package/lib/ocaml/js_null_undefined.cmi +0 -0
- package/lib/ocaml/js_null_undefined.cmt +0 -0
- package/lib/ocaml/js_null_undefined.cmti +0 -0
- package/lib/ocaml/js_obj.cmt +0 -0
- package/lib/ocaml/js_option.cmi +0 -0
- package/lib/ocaml/js_option.cmt +0 -0
- package/lib/ocaml/js_option.cmti +0 -0
- package/lib/ocaml/js_promise.cmi +0 -0
- package/lib/ocaml/js_promise.cmt +0 -0
- package/lib/ocaml/js_promise.ml +19 -19
- package/lib/ocaml/js_promise2.cmi +0 -0
- package/lib/ocaml/js_promise2.cmt +0 -0
- package/lib/ocaml/js_promise2.res +58 -0
- package/lib/ocaml/js_re.cmi +0 -0
- package/lib/ocaml/js_re.cmt +0 -0
- package/lib/ocaml/js_result.cmt +0 -0
- package/lib/ocaml/js_result.cmti +0 -0
- package/lib/ocaml/js_set.cmt +0 -0
- package/lib/ocaml/js_string.cmi +0 -0
- package/lib/ocaml/js_string.cmt +0 -0
- package/lib/ocaml/js_string2.cmi +0 -0
- package/lib/ocaml/js_string2.cmt +0 -0
- package/lib/ocaml/js_typed_array.cmi +0 -0
- package/lib/ocaml/js_typed_array.cmt +0 -0
- package/lib/ocaml/js_typed_array2.cmi +0 -0
- package/lib/ocaml/js_typed_array2.cmt +0 -0
- package/lib/ocaml/js_types.cmt +0 -0
- package/lib/ocaml/js_types.cmti +0 -0
- package/lib/ocaml/js_undefined.cmi +0 -0
- package/lib/ocaml/js_undefined.cmt +0 -0
- package/lib/ocaml/js_undefined.cmti +0 -0
- package/lib/ocaml/js_vector.cmi +0 -0
- package/lib/ocaml/js_vector.cmt +0 -0
- package/lib/ocaml/js_vector.cmti +0 -0
- package/lib/ocaml/js_weakmap.cmt +0 -0
- package/lib/ocaml/js_weakset.cmt +0 -0
- package/lib/ocaml/jsx.cmi +0 -0
- package/lib/ocaml/jsx.cmt +0 -0
- package/lib/ocaml/{jsx.ml → jsx.res} +13 -12
- package/lib/ocaml/jsxDOM.cmi +0 -0
- package/lib/ocaml/jsxDOM.cmt +0 -0
- package/lib/ocaml/jsxDOM.res +620 -0
- package/lib/ocaml/jsxDOMStyle.cmi +0 -0
- package/lib/ocaml/jsxDOMStyle.cmt +0 -0
- package/lib/ocaml/jsxDOMStyle.ml +4 -0
- package/lib/ocaml/jsxEvent.cmt +0 -0
- package/lib/ocaml/jsxPPXReactSupport.cmi +0 -0
- package/lib/ocaml/jsxPPXReactSupport.cmt +0 -0
- package/{scripts/LICENSE.ml → lib/ocaml/jsxPPXReactSupport.res} +25 -4
- package/lib/ocaml/lazy.cmi +0 -0
- package/lib/ocaml/lazy.cmt +0 -0
- package/lib/ocaml/lazy.cmti +0 -0
- package/lib/ocaml/lexing.cmi +0 -0
- package/lib/ocaml/lexing.cmt +0 -0
- package/lib/ocaml/lexing.cmti +0 -0
- package/lib/ocaml/list.cmi +0 -0
- package/lib/ocaml/list.cmt +0 -0
- package/lib/ocaml/list.cmti +0 -0
- package/lib/ocaml/listLabels.cmi +0 -0
- package/lib/ocaml/listLabels.cmt +0 -0
- package/lib/ocaml/listLabels.cmti +0 -0
- package/lib/ocaml/map.cmi +0 -0
- package/lib/ocaml/map.cmt +0 -0
- package/lib/ocaml/map.cmti +0 -0
- package/lib/ocaml/mapLabels.cmi +0 -0
- package/lib/ocaml/mapLabels.cmt +0 -0
- package/lib/ocaml/moreLabels.cmi +0 -0
- package/lib/ocaml/moreLabels.cmt +0 -0
- package/lib/ocaml/moreLabels.cmti +0 -0
- package/lib/ocaml/node.cmi +0 -0
- package/lib/ocaml/node.cmt +0 -0
- package/lib/ocaml/node_buffer.cmi +0 -0
- package/lib/ocaml/node_buffer.cmt +0 -0
- package/lib/ocaml/node_child_process.cmi +0 -0
- package/lib/ocaml/node_child_process.cmt +0 -0
- package/lib/ocaml/node_fs.cmi +0 -0
- package/lib/ocaml/node_fs.cmt +0 -0
- package/lib/ocaml/node_module.cmi +0 -0
- package/lib/ocaml/node_module.cmt +0 -0
- package/lib/ocaml/node_path.cmt +0 -0
- package/lib/ocaml/node_process.cmi +0 -0
- package/lib/ocaml/node_process.cmt +0 -0
- package/lib/ocaml/node_process.cmti +0 -0
- package/lib/ocaml/obj.cmi +0 -0
- package/lib/ocaml/obj.cmt +0 -0
- package/lib/ocaml/obj.cmti +0 -0
- package/lib/ocaml/parsing.cmi +0 -0
- package/lib/ocaml/parsing.cmt +0 -0
- package/lib/ocaml/parsing.cmti +0 -0
- package/lib/ocaml/pervasives.cmi +0 -0
- package/lib/ocaml/pervasives.cmt +0 -0
- package/lib/ocaml/pervasives.cmti +0 -0
- package/lib/ocaml/printexc.cmi +0 -0
- package/lib/ocaml/printexc.cmt +0 -0
- package/lib/ocaml/printexc.cmti +0 -0
- package/lib/ocaml/printexc.ml +28 -32
- package/lib/ocaml/queue.cmi +0 -0
- package/lib/ocaml/queue.cmt +0 -0
- package/lib/ocaml/queue.cmti +0 -0
- package/lib/ocaml/random.cmi +0 -0
- package/lib/ocaml/random.cmt +0 -0
- package/lib/ocaml/random.cmti +0 -0
- package/lib/ocaml/set.cmi +0 -0
- package/lib/ocaml/set.cmt +0 -0
- package/lib/ocaml/set.cmti +0 -0
- package/lib/ocaml/setLabels.cmi +0 -0
- package/lib/ocaml/setLabels.cmt +0 -0
- package/lib/ocaml/sort.cmi +0 -0
- package/lib/ocaml/sort.cmt +0 -0
- package/lib/ocaml/sort.cmti +0 -0
- package/lib/ocaml/stack.cmi +0 -0
- package/lib/ocaml/stack.cmt +0 -0
- package/lib/ocaml/stack.cmti +0 -0
- package/lib/ocaml/stdLabels.cmi +0 -0
- package/lib/ocaml/stdLabels.cmt +0 -0
- package/lib/ocaml/stdLabels.cmti +0 -0
- package/lib/ocaml/stream.cmi +0 -0
- package/lib/ocaml/stream.cmt +0 -0
- package/lib/ocaml/stream.cmti +0 -0
- package/lib/ocaml/string.cmi +0 -0
- package/lib/ocaml/string.cmt +0 -0
- package/lib/ocaml/string.cmti +0 -0
- package/lib/ocaml/stringLabels.cmi +0 -0
- package/lib/ocaml/stringLabels.cmt +0 -0
- package/lib/ocaml/stringLabels.cmti +0 -0
- package/lib/ocaml/sys.cmi +0 -0
- package/lib/ocaml/sys.cmt +0 -0
- package/lib/ocaml/sys.cmti +0 -0
- package/lib/ocaml/uchar.cmi +0 -0
- package/lib/ocaml/uchar.cmt +0 -0
- package/lib/ocaml/uchar.cmti +0 -0
- package/package.json +2 -1
- package/scripts/buildNinjaBinary.js +29 -0
- package/scripts/install.js +7 -3
- package/scripts/installUtils.js +9 -1
- package/scripts/rescript_arg.js +2 -4
- package/scripts/rescript_format.js +73 -39
- package/win32/refmt.exe +0 -0
- package/darwin/bsb_helper.exe +0 -0
- package/darwin/bsc.exe +0 -0
- package/darwin/ninja.COPYING +0 -202
- package/darwin/ninja.exe +0 -0
- package/darwin/rescript.exe +0 -0
- package/darwinarm64/ninja.COPYING +0 -202
- package/freebsd/ninja.COPYING +0 -202
- package/lib/ocaml/jsxDOM.ml +0 -2087
- package/linux/bsb_helper.exe +0 -0
- package/linux/bsc.exe +0 -0
- package/linux/ninja.COPYING +0 -202
- package/linux/ninja.exe +0 -0
- package/linux/rescript.exe +0 -0
- package/openbsd/.keep +0 -0
- package/scripts/buckle_lto.js +0 -55
- package/scripts/build_sorted.ml +0 -233
- package/scripts/caml_oo_curry_gen.ml +0 -71
- package/scripts/checkUnused.js +0 -63
- package/scripts/ciTest.js +0 -172
- package/scripts/cover.sh +0 -3
- package/scripts/curry_gen.ml +0 -167
- package/scripts/dbg +0 -13
- package/scripts/dedupe.js +0 -44
- package/scripts/doc_gen.js +0 -117
- package/scripts/js_internal_gen.js +0 -135
- package/scripts/jsconfig.json +0 -12
- package/scripts/littlecase.js +0 -21
- package/scripts/ninja.js +0 -1980
- package/scripts/pack.js +0 -107
- package/scripts/prebuilt.js +0 -99
- package/scripts/release.js +0 -41
- package/scripts/repl.js +0 -151
- package/scripts/shake.js +0 -138
- package/scripts/tasks.js +0 -149
- package/scripts/test.sh +0 -3
- package/scripts/tmp.js +0 -98
- package/scripts/validate.js +0 -41
- package/vendor/ninja.tar.gz +0 -0
- package/win32/bsb_helper.exe +0 -0
- package/win32/bsc.exe +0 -0
- package/win32/ninja.COPYING +0 -202
- package/win32/ninja.exe +0 -0
- package/win32/rescript.exe +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/belt_Range.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/belt_Range.cmt
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/belt_Set.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/belt_Set.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/belt_Set.cmti
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/buffer.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/buffer.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/buffer.cmti
CHANGED
|
Binary file
|
package/lib/ocaml/bytes.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/bytes.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/bytes.cmti
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/callback.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/callback.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/callback.cmti
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/char.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/char.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/char.cmti
CHANGED
|
Binary file
|
package/lib/ocaml/complex.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/complex.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/complex.cmti
CHANGED
|
Binary file
|
package/lib/ocaml/digest.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/digest.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/digest.cmti
CHANGED
|
Binary file
|
package/lib/ocaml/dom.cmt
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/filename.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/filename.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/filename.cmti
CHANGED
|
Binary file
|
package/lib/ocaml/genlex.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/genlex.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/genlex.cmti
CHANGED
|
Binary file
|
package/lib/ocaml/hashtbl.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/hashtbl.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/hashtbl.cmti
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/int32.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/int32.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/int32.cmti
CHANGED
|
Binary file
|
package/lib/ocaml/int64.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/int64.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/int64.cmti
CHANGED
|
Binary file
|
package/lib/ocaml/js.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/js.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js.ml
CHANGED
package/lib/ocaml/js_OO.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_array.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_array2.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_bigint.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_cast.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_cast.cmti
CHANGED
|
Binary file
|
package/lib/ocaml/js_console.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_date.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_dict.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/js_dict.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_dict.cmti
CHANGED
|
Binary file
|
package/lib/ocaml/js_exn.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_exn.cmti
CHANGED
|
Binary file
|
package/lib/ocaml/js_float.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_global.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_int.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_json.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/js_json.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_json.cmti
CHANGED
|
Binary file
|
package/lib/ocaml/js_list.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/js_list.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_list.cmti
CHANGED
|
Binary file
|
package/lib/ocaml/js_map.cmt
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/js_math.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/js_math.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_math.ml
CHANGED
|
@@ -496,7 +496,7 @@ external minMany_float : float array -> float = "min" [@@bs.val] [@@bs.splice] [
|
|
|
496
496
|
```
|
|
497
497
|
*)
|
|
498
498
|
external pow_int : base:int -> exp:int -> int = "pow" [@@bs.val] [@@bs.scope "Math"]
|
|
499
|
-
[@@deprecated "use `
|
|
499
|
+
[@@deprecated "use `pow_float` instead, the return type may be not int"]
|
|
500
500
|
|
|
501
501
|
(**
|
|
502
502
|
Raises the given base to the given exponent. (Arguments and result are
|
package/lib/ocaml/js_null.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/js_null.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_null.cmti
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/js_obj.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_option.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/js_option.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_option.cmti
CHANGED
|
Binary file
|
package/lib/ocaml/js_promise.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/js_promise.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_promise.ml
CHANGED
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
|
|
32
32
|
[@@@warning "-103"]
|
|
33
33
|
|
|
34
|
-
type +'a t
|
|
35
|
-
type error
|
|
34
|
+
type +'a t = 'a promise
|
|
35
|
+
type error = Js_promise2.error
|
|
36
36
|
|
|
37
37
|
(*
|
|
38
38
|
```res prelude
|
|
@@ -43,43 +43,43 @@ type error
|
|
|
43
43
|
external make :
|
|
44
44
|
((resolve:(('a -> unit)[@bs]) -> reject:((exn -> unit)[@bs]) -> unit)
|
|
45
45
|
[@bs.uncurry]) ->
|
|
46
|
-
'a
|
|
46
|
+
'a promise = "Promise"
|
|
47
47
|
[@@bs.new]
|
|
48
48
|
|
|
49
49
|
(* `make (fun resolve reject -> .. )` *)
|
|
50
|
-
external resolve : 'a -> 'a
|
|
51
|
-
external reject : exn -> 'a
|
|
50
|
+
external resolve : 'a -> 'a promise = "resolve" [@@bs.val] [@@bs.scope "Promise"]
|
|
51
|
+
external reject : exn -> 'a promise = "reject" [@@bs.val] [@@bs.scope "Promise"]
|
|
52
52
|
|
|
53
|
-
external all : 'a
|
|
53
|
+
external all : 'a promise array -> 'a array promise = "all"
|
|
54
54
|
[@@bs.val] [@@bs.scope "Promise"]
|
|
55
55
|
|
|
56
|
-
external all2 : 'a0
|
|
56
|
+
external all2 : 'a0 promise * 'a1 promise -> ('a0 * 'a1) promise = "all"
|
|
57
57
|
[@@bs.val] [@@bs.scope "Promise"]
|
|
58
58
|
|
|
59
|
-
external all3 : 'a0
|
|
59
|
+
external all3 : 'a0 promise * 'a1 promise * 'a2 promise -> ('a0 * 'a1 * 'a2) promise = "all"
|
|
60
60
|
[@@bs.val] [@@bs.scope "Promise"]
|
|
61
61
|
|
|
62
|
-
external all4 : 'a0
|
|
62
|
+
external all4 : 'a0 promise * 'a1 promise * 'a2 promise * 'a3 promise -> ('a0 * 'a1 * 'a2 * 'a3) promise
|
|
63
63
|
= "all"
|
|
64
64
|
[@@bs.val] [@@bs.scope "Promise"]
|
|
65
65
|
|
|
66
66
|
external all5 :
|
|
67
|
-
'a0
|
|
67
|
+
'a0 promise * 'a1 promise * 'a2 promise * 'a3 promise * 'a4 promise -> ('a0 * 'a1 * 'a2 * 'a3 * 'a4) promise
|
|
68
68
|
= "all"
|
|
69
69
|
[@@bs.val] [@@bs.scope "Promise"]
|
|
70
70
|
|
|
71
71
|
external all6 :
|
|
72
|
-
'a0
|
|
73
|
-
('a0 * 'a1 * 'a2 * 'a3 * 'a4 * 'a5)
|
|
72
|
+
'a0 promise * 'a1 promise * 'a2 promise * 'a3 promise * 'a4 promise * 'a5 promise ->
|
|
73
|
+
('a0 * 'a1 * 'a2 * 'a3 * 'a4 * 'a5) promise = "all"
|
|
74
74
|
[@@bs.val] [@@bs.scope "Promise"]
|
|
75
75
|
|
|
76
|
-
external race : 'a
|
|
76
|
+
external race : 'a promise array -> 'a promise = "race" [@@bs.val] [@@bs.scope "Promise"]
|
|
77
77
|
|
|
78
|
-
external then_ : (('a -> 'b
|
|
79
|
-
[@@bs.send.pipe: 'a
|
|
78
|
+
external then_ : (('a -> 'b promise)[@bs.uncurry]) -> 'b promise = "then"
|
|
79
|
+
[@@bs.send.pipe: 'a promise]
|
|
80
80
|
|
|
81
|
-
external catch : ((error -> 'a
|
|
82
|
-
[@@bs.send.pipe: 'a
|
|
81
|
+
external catch : ((error -> 'a promise)[@bs.uncurry]) -> 'a promise = "catch"
|
|
82
|
+
[@@bs.send.pipe: 'a promise]
|
|
83
83
|
(* ` p|> catch handler`
|
|
84
84
|
Note in JS the returned promise type is actually runtime dependent,
|
|
85
85
|
if promise is rejected, it will pick the `handler` otherwise the original promise,
|
|
@@ -87,8 +87,8 @@ external catch : ((error -> 'a t)[@bs.uncurry]) -> 'a t = "catch"
|
|
|
87
87
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/catch
|
|
88
88
|
*)
|
|
89
89
|
|
|
90
|
-
external unsafe_async : 'a -> 'a
|
|
91
|
-
external unsafe_await : 'a
|
|
90
|
+
external unsafe_async : 'a -> 'a promise = "%identity"
|
|
91
|
+
external unsafe_await : 'a promise -> 'a = "?await"
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
(*
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
type t<+'a> = promise<'a>
|
|
2
|
+
type error
|
|
3
|
+
|
|
4
|
+
/** Type-safe t-first then */
|
|
5
|
+
let then: (promise<'a>, 'a => promise<'b>) => promise<'b> = %raw(`
|
|
6
|
+
function(p, cont) {
|
|
7
|
+
return Promise.resolve(p).then(cont)
|
|
8
|
+
}
|
|
9
|
+
`)
|
|
10
|
+
|
|
11
|
+
/** Type-safe t-first catch */
|
|
12
|
+
let catch: (promise<'a>, error => promise<'a>) => promise<'a> = %raw(`
|
|
13
|
+
function(p, cont) {
|
|
14
|
+
return Promise.resolve(p).catch(cont)
|
|
15
|
+
}
|
|
16
|
+
`)
|
|
17
|
+
|
|
18
|
+
@new
|
|
19
|
+
external make: ((@uncurry ~resolve: (. 'a) => unit, ~reject: (. exn) => unit) => unit) => promise<
|
|
20
|
+
'a,
|
|
21
|
+
> = "Promise"
|
|
22
|
+
|
|
23
|
+
@val @scope("Promise") external resolve: 'a => promise<'a> = "resolve"
|
|
24
|
+
@val @scope("Promise") external reject: exn => promise<'a> = "reject"
|
|
25
|
+
|
|
26
|
+
@val @scope("Promise") external all: array<promise<'a>> => promise<array<'a>> = "all"
|
|
27
|
+
|
|
28
|
+
@val @scope("Promise") external all2: ((promise<'a0>, promise<'a1>)) => promise<('a0, 'a1)> = "all"
|
|
29
|
+
|
|
30
|
+
@val @scope("Promise")
|
|
31
|
+
external all3: ((promise<'a0>, promise<'a1>, promise<'a2>)) => promise<('a0, 'a1, 'a2)> = "all"
|
|
32
|
+
|
|
33
|
+
@val @scope("Promise")
|
|
34
|
+
external all4: ((promise<'a0>, promise<'a1>, promise<'a2>, promise<'a3>)) => promise<(
|
|
35
|
+
'a0,
|
|
36
|
+
'a1,
|
|
37
|
+
'a2,
|
|
38
|
+
'a3,
|
|
39
|
+
)> = "all"
|
|
40
|
+
|
|
41
|
+
@val @scope("Promise")
|
|
42
|
+
external all5: ((promise<'a0>, promise<'a1>, promise<'a2>, promise<'a3>, promise<'a4>)) => promise<(
|
|
43
|
+
'a0,
|
|
44
|
+
'a1,
|
|
45
|
+
'a2,
|
|
46
|
+
'a3,
|
|
47
|
+
'a4,
|
|
48
|
+
)> = "all"
|
|
49
|
+
|
|
50
|
+
@val @scope("Promise")
|
|
51
|
+
external all6: (
|
|
52
|
+
(promise<'a0>, promise<'a1>, promise<'a2>, promise<'a3>, promise<'a4>, promise<'a5>)
|
|
53
|
+
) => promise<('a0, 'a1, 'a2, 'a3, 'a4, 'a5)> = "all"
|
|
54
|
+
|
|
55
|
+
@val @scope("Promise") external race: array<promise<'a>> => promise<'a> = "race"
|
|
56
|
+
|
|
57
|
+
external unsafe_async: 'a => promise<'a> = "%identity"
|
|
58
|
+
external unsafe_await: promise<'a> => 'a = "?await"
|
package/lib/ocaml/js_re.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/js_re.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_result.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_result.cmti
CHANGED
|
Binary file
|
package/lib/ocaml/js_set.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_string.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/js_string.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_string2.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/js_string2.cmt
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/js_types.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_types.cmti
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/js_vector.cmi
CHANGED
|
Binary file
|
package/lib/ocaml/js_vector.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_vector.cmti
CHANGED
|
Binary file
|
package/lib/ocaml/js_weakmap.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/js_weakset.cmt
CHANGED
|
Binary file
|
package/lib/ocaml/jsx.cmi
CHANGED
|
Binary file
|