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

@wordpress/date

Package Overview
Dependencies
Maintainers
24
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/date - npm Package Compare versions

Comparing version 4.50.0 to 4.51.0

14

build-module/index.js

@@ -34,5 +34,6 @@ /**

* @typedef TimezoneConfig
* @property {string} offset Offset setting.
* @property {string} string The timezone as a string (e.g., `'America/Los_Angeles'`).
* @property {string} abbr Abbreviation for the timezone.
* @property {string} offset Offset setting.
* @property {string} offsetFormatted Offset setting with decimals formatted to minutes.
* @property {string} string The timezone as a string (e.g., `'America/Los_Angeles'`).
* @property {string} abbr Abbreviation for the timezone.
*/

@@ -67,4 +68,4 @@

// Changes made here will likely need to be made in `lib/client-assets.php` as
// well because it uses the `setSettings()` function to change these settings.
// Changes made here will likely need to be synced with Core in the file
// src/wp-includes/script-loader.php in `wp_default_packages_inline_scripts()`.
/** @type {DateSettings} */

@@ -110,2 +111,3 @@ let settings = {

offset: '0',
offsetFormatted: '0',
string: '',

@@ -409,3 +411,3 @@ abbr: ''

if (char in formatMap) {
const formatter = formatMap[/** @type {keyof formatMap} */char];
const formatter = formatMap[( /** @type {keyof formatMap} */char)];
if (typeof formatter !== 'string') {

@@ -412,0 +414,0 @@ // If the format is a function, call it.

@@ -162,2 +162,6 @@ /**

/**
* Offset setting with decimals formatted to minutes.
*/
offsetFormatted: string;
/**
* The timezone as a string (e.g., `'America/Los_Angeles'`).

@@ -164,0 +168,0 @@ */

@@ -51,5 +51,6 @@ "use strict";

* @typedef TimezoneConfig
* @property {string} offset Offset setting.
* @property {string} string The timezone as a string (e.g., `'America/Los_Angeles'`).
* @property {string} abbr Abbreviation for the timezone.
* @property {string} offset Offset setting.
* @property {string} offsetFormatted Offset setting with decimals formatted to minutes.
* @property {string} string The timezone as a string (e.g., `'America/Los_Angeles'`).
* @property {string} abbr Abbreviation for the timezone.
*/

@@ -84,4 +85,4 @@

// Changes made here will likely need to be made in `lib/client-assets.php` as
// well because it uses the `setSettings()` function to change these settings.
// Changes made here will likely need to be synced with Core in the file
// src/wp-includes/script-loader.php in `wp_default_packages_inline_scripts()`.
/** @type {DateSettings} */

@@ -127,2 +128,3 @@ let settings = {

offset: '0',
offsetFormatted: '0',
string: '',

@@ -426,3 +428,3 @@ abbr: ''

if (char in formatMap) {
const formatter = formatMap[/** @type {keyof formatMap} */char];
const formatter = formatMap[( /** @type {keyof formatMap} */char)];
if (typeof formatter !== 'string') {

@@ -429,0 +431,0 @@ // If the format is a function, call it.

@@ -5,2 +5,4 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->

## 4.51.0 (2024-02-09)
## 4.50.0 (2024-01-24)

@@ -7,0 +9,0 @@

{
"name": "@wordpress/date",
"version": "4.50.0",
"version": "4.51.0",
"description": "Date module for WordPress.",

@@ -30,3 +30,3 @@ "author": "The WordPress Contributors",

"@babel/runtime": "^7.16.0",
"@wordpress/deprecated": "^3.50.0",
"@wordpress/deprecated": "^3.51.0",
"moment": "^2.29.4",

@@ -38,3 +38,3 @@ "moment-timezone": "^0.5.40"

},
"gitHead": "45de2cb4212fed7f2763e95f10300d1ff9d0ec08"
"gitHead": "eb796371e9630636a4a8837033807b0c4a06ed67"
}

@@ -34,5 +34,6 @@ /**

* @typedef TimezoneConfig
* @property {string} offset Offset setting.
* @property {string} string The timezone as a string (e.g., `'America/Los_Angeles'`).
* @property {string} abbr Abbreviation for the timezone.
* @property {string} offset Offset setting.
* @property {string} offsetFormatted Offset setting with decimals formatted to minutes.
* @property {string} string The timezone as a string (e.g., `'America/Los_Angeles'`).
* @property {string} abbr Abbreviation for the timezone.
*/

@@ -67,4 +68,4 @@

// Changes made here will likely need to be made in `lib/client-assets.php` as
// well because it uses the `setSettings()` function to change these settings.
// Changes made here will likely need to be synced with Core in the file
// src/wp-includes/script-loader.php in `wp_default_packages_inline_scripts()`.
/** @type {DateSettings} */

@@ -137,3 +138,3 @@ let settings = {

},
timezone: { offset: '0', string: '', abbr: '' },
timezone: { offset: '0', offsetFormatted: '0', string: '', abbr: '' },
};

@@ -140,0 +141,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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