@fable-org/fable-library-js 1.2.0 → 1.3.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/Boolean.js +2 -2
- package/CHANGELOG.md +4 -0
- package/Date.js +1 -1
- package/package.json +1 -1
package/Boolean.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FSharpRef } from "./Types.js";
|
|
2
2
|
export function tryParse(str, defValue) {
|
|
3
|
-
if (str.match(/^\s*true\s*$/i)) {
|
|
3
|
+
if (str != null && str.match(/^\s*true\s*$/i)) {
|
|
4
4
|
defValue.contents = true;
|
|
5
5
|
return true;
|
|
6
6
|
}
|
|
7
|
-
else if (str.match(/^\s*false\s*$/i)) {
|
|
7
|
+
else if (str != null && str.match(/^\s*false\s*$/i)) {
|
|
8
8
|
defValue.contents = false;
|
|
9
9
|
return true;
|
|
10
10
|
}
|
package/CHANGELOG.md
CHANGED
package/Date.js
CHANGED
|
@@ -655,7 +655,7 @@ export function dayOfYear(d) {
|
|
|
655
655
|
}
|
|
656
656
|
export function add(d, ts) {
|
|
657
657
|
const newDate = DateTime(d.getTime() + ts, d.kind);
|
|
658
|
-
if (d.kind
|
|
658
|
+
if (d.kind !== 1 /* DateKind.UTC */) {
|
|
659
659
|
const oldTzOffset = d.getTimezoneOffset();
|
|
660
660
|
const newTzOffset = newDate.getTimezoneOffset();
|
|
661
661
|
return oldTzOffset !== newTzOffset
|
package/package.json
CHANGED