Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

luxon

Package Overview
Dependencies
Maintainers
1
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

luxon - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

5

changelog.md
# 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 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc