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

@js-joda/core

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@js-joda/core - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

4

CHANGELOG.md

@@ -6,2 +6,6 @@ Changelog

### 3.2.0
* add typescript definitions for OffsetDateTime and OffsetTime #448 by jonfreedman
### 3.1.0

@@ -8,0 +12,0 @@

2

package.json
{
"name": "@js-joda/core",
"version": "3.1.0",
"version": "3.2.0",
"description": "a date and time library for javascript",

@@ -5,0 +5,0 @@ "repository": {

@@ -0,1 +1,7 @@

/**
* @copyright (c) 2016-present, Philipp Thürwächter & Pattrick Hüper & js-joda contributors
* @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
*/
import {ChronoField} from './temporal/ChronoField';

@@ -22,3 +28,7 @@ import {ChronoUnit} from './temporal/ChronoUnit';

export class OffsetDateTime extends DefaultInterfaceTemporal{
/**
* A date-time with an offset from UTC/Greenwich in the ISO-8601 calendar system,
* such as 2007-12-23T10:15:30+01:00.
*/
export class OffsetDateTime extends DefaultInterfaceTemporal {
/**

@@ -722,2 +732,10 @@ * @param {TemporaroAccessor} temporal

/**
*
* @return {string} same as {@link LocalDateTime.toString}
*/
toJSON() {
return this.toString();
}
/**
* @param {DateTimeFormatter} formatter

@@ -724,0 +742,0 @@ * @return {string}

@@ -0,1 +1,7 @@

/**
* @copyright (c) 2016-present, Philipp Thürwächter & Pattrick Hüper & js-joda contributors
* @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
*/
import {ChronoField} from './temporal/ChronoField';

@@ -17,2 +23,5 @@ import {ChronoUnit} from './temporal/ChronoUnit';

/**
* A time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as 10:15:30+01:00.
*/
export class OffsetTime extends DefaultInterfaceTemporal {

@@ -594,2 +603,10 @@ /**

}
/**
*
* @return {string} same as {@link LocalDateTime.toString}
*/
toJSON() {
return this.toString();
}
}

@@ -596,0 +613,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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 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