@colisweb/rescript-toolkit 4.10.4 → 4.10.6

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colisweb/rescript-toolkit",
3
- "version": "4.10.4",
3
+ "version": "4.10.6",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -159,8 +159,8 @@ module.exports = {
159
159
  "src/main.jsx",
160
160
  "node_modules/@colisweb/rescript-toolkit/lib/es6_global/src/**/**.(c)?js",
161
161
  "node_modules/@colisweb/rescript-toolkit/src/**/**.(c)?js",
162
- "node_modules/@colisweb/api-components/lib/es6_global/src/**/**.(c)?js",
163
- "node_modules/@colisweb/api-components/src/**/**.(c)?js",
162
+ "node_modules/@colisweb/api/lib/es6_global/src/**/**.(c)?js",
163
+ "node_modules/@colisweb/api/src/**/**.(c)?js",
164
164
  "playground/**/*.(c)?js",
165
165
  "lib/es6_global/playground/**/*.(c)?js",
166
166
  ],
@@ -53,7 +53,11 @@ external parseISO: string => Js.Date.t = "parseISO"
53
53
 
54
54
  @module("date-fns") external formatWithPattern: (Js.Date.t, string) => string = "format"
55
55
 
56
- type formatWithPatternOptions = {locale: dateFnsLocale}
56
+ type formatWithPatternOptions = {
57
+ locale?: dateFnsLocale,
58
+ weekStartsOn?: int,
59
+ firstWeekContainsDate?: int,
60
+ }
57
61
  @module("date-fns")
58
62
  external formatWithPatternWithOptions: (Js.Date.t, string, formatWithPatternOptions) => string =
59
63
  "format"
@@ -67,6 +71,8 @@ external setMinutes: (Js.Date.t, float) => Js.Date.t = "setMinutes"
67
71
  @module("date-fns")
68
72
  external addMinutes: (Js.Date.t, float) => Js.Date.t = "addMinutes"
69
73
  @module("date-fns")
74
+ external addSeconds: (Js.Date.t, float) => Js.Date.t = "addSeconds"
75
+ @module("date-fns")
70
76
  external setHours: (Js.Date.t, float) => Js.Date.t = "setHours"
71
77
  @module("date-fns")
72
78
  external addHours: (Js.Date.t, float) => Js.Date.t = "addHours"
@@ -75,6 +81,8 @@ external addDays: (Js.Date.t, int) => Js.Date.t = "addDays"
75
81
  @module("date-fns")
76
82
  external subDays: (Js.Date.t, int) => Js.Date.t = "subDays"
77
83
  @module("date-fns")
84
+ external subMinutes: (Js.Date.t, float) => Js.Date.t = "subMinutes"
85
+ @module("date-fns")
78
86
  external startOfDay: Js.Date.t => Js.Date.t = "startOfDay"
79
87
  @module("date-fns")
80
88
  external endOfDay: Js.Date.t => Js.Date.t = "endOfDay"
@@ -163,3 +171,9 @@ external isFriday: Js.Date.t => bool = "isFriday"
163
171
  external isSaturday: Js.Date.t => bool = "isSaturday"
164
172
  @module("date-fns")
165
173
  external isSunday: Js.Date.t => bool = "isSunday"
174
+
175
+ @module("date-fns")
176
+ external minutesToHours: int => int = "minutesToHours"
177
+
178
+ @module("date-fns")
179
+ external lightFormat: (Js.Date.t, string) => string = "lightFormat"