Comparing version 1.3.1 to 1.3.2
# Changelog | ||
## 1.3.2 | ||
* DateTime.fromMillis will throw if passed a non-number | ||
* Fixes for type checking across JS contexts | ||
## 1.3.1 | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "luxon", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Immutable date wrapper", | ||
@@ -5,0 +5,0 @@ "author": "Isaac Cambron", |
@@ -160,3 +160,3 @@ import { isUndefined, isNumber, normalizeObject, customInspectSymbol } from './impl/util'; | ||
return duration; | ||
} else if (duration instanceof Object) { | ||
} else if (typeof duration === 'object') { | ||
return Duration.fromObject(duration); | ||
@@ -223,3 +223,3 @@ } else { | ||
/** | ||
* Create a Duration from a Javascript object with keys like 'years' and 'hours. | ||
* Create a Duration from a Javascript object with keys like 'years' and 'hours. | ||
* If this object is empty then zero milliseconds duration is returned. | ||
@@ -226,0 +226,0 @@ * @param {Object} obj - the object to create the DateTime from |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
2278270
28606