@colisweb/rescript-toolkit 2.12.0 → 2.13.0
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/package.json
CHANGED
|
@@ -17,6 +17,11 @@ let debug2 = (str, str2) => {
|
|
|
17
17
|
Js.Console.log4("%cDEBUG", debugStyle, str, str2)
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
+
let debug3 = (str, str2, str3) => {
|
|
21
|
+
if nodeEnv !== "production" {
|
|
22
|
+
Js.Console.logMany(["%cDEBUG", debugStyle, str, str2, str3])
|
|
23
|
+
}
|
|
24
|
+
}
|
|
20
25
|
|
|
21
26
|
let warning = str => {
|
|
22
27
|
if nodeEnv !== "production" {
|
|
@@ -30,6 +35,12 @@ let warning2 = (str, str2) => {
|
|
|
30
35
|
}
|
|
31
36
|
}
|
|
32
37
|
|
|
38
|
+
let warning3 = (str, str2, str3) => {
|
|
39
|
+
if nodeEnv !== "production" {
|
|
40
|
+
Js.Console.logMany(["%cWARN", warningStyle, str, str2, str3])
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
33
44
|
let error = str => {
|
|
34
45
|
if nodeEnv !== "production" {
|
|
35
46
|
Js.Console.log3("%cERROR", errorStyle, str)
|
|
@@ -52,3 +63,30 @@ let error2 = (str, str2) => {
|
|
|
52
63
|
})
|
|
53
64
|
}
|
|
54
65
|
}
|
|
66
|
+
|
|
67
|
+
let error3 = (str, str2, str3) => {
|
|
68
|
+
if nodeEnv !== "production" {
|
|
69
|
+
Js.Console.logMany(["%cERROR", errorStyle, str, str2, str3])
|
|
70
|
+
} else {
|
|
71
|
+
open Sentry
|
|
72
|
+
withScope(scope => {
|
|
73
|
+
scope->Scope.setExtra("1-data", str2)
|
|
74
|
+
scope->Scope.setExtra("2-data", str3)
|
|
75
|
+
captureMessage(Obj.magic(str))
|
|
76
|
+
})
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
let error4 = (str, str2, str3, str4) => {
|
|
81
|
+
if nodeEnv !== "production" {
|
|
82
|
+
Js.Console.logMany(["%cERROR", errorStyle, str, str2, str3, str4])
|
|
83
|
+
} else {
|
|
84
|
+
open Sentry
|
|
85
|
+
withScope(scope => {
|
|
86
|
+
scope->Scope.setExtra("1-data", str2)
|
|
87
|
+
scope->Scope.setExtra("2-data", str3)
|
|
88
|
+
scope->Scope.setExtra("3-data", str4)
|
|
89
|
+
captureMessage(Obj.magic(str))
|
|
90
|
+
})
|
|
91
|
+
}
|
|
92
|
+
}
|