@rescript/std
Advanced tools
Comparing version 8.5.0 to 9.0.0
@@ -21,7 +21,7 @@ 'use strict'; | ||
var Bad = Caml_exceptions.create("Arg.Bad"); | ||
var Bad = /* @__PURE__ */Caml_exceptions.create("Arg.Bad"); | ||
var Help = Caml_exceptions.create("Arg.Help"); | ||
var Help = /* @__PURE__ */Caml_exceptions.create("Arg.Help"); | ||
var Stop = Caml_exceptions.create("Arg.Stop"); | ||
var Stop = /* @__PURE__ */Caml_exceptions.create("Arg.Stop"); | ||
@@ -28,0 +28,0 @@ function assoc3(x, _l) { |
@@ -298,3 +298,3 @@ 'use strict'; | ||
var Bottom = Caml_exceptions.create("Array.Bottom"); | ||
var Bottom = /* @__PURE__ */Caml_exceptions.create("Array.Bottom"); | ||
@@ -301,0 +301,0 @@ function sort(cmp, a) { |
@@ -198,9 +198,9 @@ 'use strict'; | ||
case /* Oct */0 : | ||
threshold = Caml_int64.mk(-1, 536870911); | ||
threshold = /* @__PURE__ */Caml_int64.mk(-1, 536870911); | ||
break; | ||
case /* Hex */1 : | ||
threshold = Caml_int64.mk(-1, 268435455); | ||
threshold = /* @__PURE__ */Caml_int64.mk(-1, 268435455); | ||
break; | ||
case /* Dec */2 : | ||
threshold = Caml_int64.mk(-1717986919, 429496729); | ||
threshold = /* @__PURE__ */Caml_int64.mk(-1717986919, 429496729); | ||
break; | ||
@@ -250,3 +250,3 @@ case /* Bin */3 : | ||
var or_res = Caml_int64.or_(res, Caml_int64.zero); | ||
if (Caml_int64.eq(base, Caml_int64.mk(10, 0)) && Caml_int64.neq(res, or_res)) { | ||
if (Caml_int64.eq(base, /* @__PURE__ */Caml_int64.mk(10, 0)) && Caml_int64.neq(res, or_res)) { | ||
throw { | ||
@@ -558,7 +558,7 @@ RE_EXN_ID: "Failure", | ||
} | ||
var wbase = Caml_int64.mk(10, 0); | ||
var wbase = /* @__PURE__ */Caml_int64.mk(10, 0); | ||
var y = Caml_int64.discard_sign(x); | ||
var match = Caml_int64.div_mod(y, wbase); | ||
var match$1 = Caml_int64.div_mod(Caml_int64.add(Caml_int64.mk(8, 0), match[1]), wbase); | ||
var quotient = Caml_int64.add(Caml_int64.add(Caml_int64.mk(-858993460, 214748364), match[0]), match$1[0]); | ||
var match$1 = Caml_int64.div_mod(Caml_int64.add(/* @__PURE__ */Caml_int64.mk(8, 0), match[1]), wbase); | ||
var quotient = Caml_int64.add(Caml_int64.add(/* @__PURE__ */Caml_int64.mk(-858993460, 214748364), match[0]), match$1[0]); | ||
return Caml_int64.to_string(quotient) + "0123456789"[Caml_int64.to_int32(match$1[1])]; | ||
@@ -569,3 +569,3 @@ } | ||
var s = ""; | ||
var wbase = Caml_int64.mk(8, 0); | ||
var wbase = /* @__PURE__ */Caml_int64.mk(8, 0); | ||
var cvtbl = "01234567"; | ||
@@ -575,3 +575,3 @@ if (Caml_int64.lt(x, Caml_int64.zero)) { | ||
var match = Caml_int64.div_mod(y, wbase); | ||
var quotient = Caml_int64.add(Caml_int64.mk(0, 268435456), match[0]); | ||
var quotient = Caml_int64.add(/* @__PURE__ */Caml_int64.mk(0, 268435456), match[0]); | ||
var modulus = match[1]; | ||
@@ -578,0 +578,0 @@ s = cvtbl[Caml_int64.to_int32(modulus)] + s; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var $$Error = Caml_exceptions.create("Caml_js_exceptions.Error"); | ||
var $$Error = /* @__PURE__ */Caml_exceptions.create("Caml_js_exceptions.Error"); | ||
@@ -9,0 +9,0 @@ function internalToOCamlException(e) { |
@@ -9,3 +9,3 @@ 'use strict'; | ||
var Undefined = Caml_exceptions.create("CamlinternalLazy.Undefined"); | ||
var Undefined = /* @__PURE__ */Caml_exceptions.create("CamlinternalLazy.Undefined"); | ||
@@ -12,0 +12,0 @@ function forward_with_closure(blk, closure) { |
@@ -32,3 +32,3 @@ 'use strict'; | ||
var Empty_queue = Caml_exceptions.create("Format.Empty_queue"); | ||
var Empty_queue = /* @__PURE__ */Caml_exceptions.create("Format.Empty_queue"); | ||
@@ -35,0 +35,0 @@ function peek_queue(param) { |
@@ -12,5 +12,5 @@ 'use strict'; | ||
var YYexit = Caml_exceptions.create("Parsing.YYexit"); | ||
var YYexit = /* @__PURE__ */Caml_exceptions.create("Parsing.YYexit"); | ||
var Parse_error = Caml_exceptions.create("Parsing.Parse_error"); | ||
var Parse_error = /* @__PURE__ */Caml_exceptions.create("Parsing.Parse_error"); | ||
@@ -17,0 +17,0 @@ var env = { |
@@ -29,3 +29,3 @@ 'use strict'; | ||
var Exit = Caml_exceptions.create("Pervasives.Exit"); | ||
var Exit = /* @__PURE__ */Caml_exceptions.create("Pervasives.Exit"); | ||
@@ -32,0 +32,0 @@ function abs(x) { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var Empty = Caml_exceptions.create("Queue.Empty"); | ||
var Empty = /* @__PURE__ */Caml_exceptions.create("Queue.Empty"); | ||
@@ -9,0 +9,0 @@ function create(param) { |
@@ -275,3 +275,3 @@ 'use strict'; | ||
var Scan_failure = Caml_exceptions.create("Scanf.Scan_failure"); | ||
var Scan_failure = /* @__PURE__ */Caml_exceptions.create("Scanf.Scan_failure"); | ||
@@ -278,0 +278,0 @@ function bad_input_escape(c) { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var Empty = Caml_exceptions.create("Stack.Empty"); | ||
var Empty = /* @__PURE__ */Caml_exceptions.create("Stack.Empty"); | ||
@@ -9,0 +9,0 @@ function create(param) { |
@@ -12,5 +12,5 @@ 'use strict'; | ||
var Failure = Caml_exceptions.create("Stream.Failure"); | ||
var Failure = /* @__PURE__ */Caml_exceptions.create("Stream.Failure"); | ||
var $$Error = Caml_exceptions.create("Stream.Error"); | ||
var $$Error = /* @__PURE__ */Caml_exceptions.create("Stream.Error"); | ||
@@ -17,0 +17,0 @@ function count(param) { |
@@ -36,3 +36,3 @@ 'use strict'; | ||
var Break = Caml_exceptions.create("Sys.Break"); | ||
var Break = /* @__PURE__ */Caml_exceptions.create("Sys.Break"); | ||
@@ -39,0 +39,0 @@ function catch_break(on) { |
{ | ||
"name": "@rescript/std", | ||
"version": "8.5.0", | ||
"version": "9.0.0", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "rescript", |
# The lightweight standard library for ReScript | ||
# A light weight runtime for ReScript. | ||
The motivation of this repo is that when ReScript users want to | ||
share their library with JS users, JS users don't need | ||
The motiviation of this repo is that when ReScript users want to | ||
share their library with JS users, the JS users don't need have | ||
ReScript toolchain installed, this makes sharing code with JS users easier. | ||
It shares the same version schema with [ReScript compiler](https://github.com/rescript-lang/rescript-compiler). | ||
It shares the same version schema with ReScript compiler. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2271954
87397