@wordpress/date
Advanced tools
Comparing version 4.16.0 to 4.16.1-next.957ca95e4c.0
@@ -559,3 +559,6 @@ /** | ||
if (timezone && !isUTCOffset(timezone)) { | ||
return dateMoment.tz(String(timezone)); | ||
// The ! isUTCOffset() check guarantees that timezone is a string. | ||
return dateMoment.tz( | ||
/** @type {string} */ | ||
timezone); | ||
} | ||
@@ -562,0 +565,0 @@ |
@@ -591,3 +591,6 @@ "use strict"; | ||
if (timezone && !isUTCOffset(timezone)) { | ||
return dateMoment.tz(String(timezone)); | ||
// The ! isUTCOffset() check guarantees that timezone is a string. | ||
return dateMoment.tz( | ||
/** @type {string} */ | ||
timezone); | ||
} | ||
@@ -594,0 +597,0 @@ |
{ | ||
"name": "@wordpress/date", | ||
"version": "4.16.0", | ||
"version": "4.16.1-next.957ca95e4c.0", | ||
"description": "Date module for WordPress.", | ||
@@ -36,3 +36,3 @@ "author": "The WordPress Contributors", | ||
}, | ||
"gitHead": "171b87c7465b93e685e081c5f57f153507363c95" | ||
"gitHead": "272a74bbbaab10ee24424eafe9578e705fbfbbb4" | ||
} |
@@ -583,3 +583,4 @@ /** | ||
if ( timezone && ! isUTCOffset( timezone ) ) { | ||
return dateMoment.tz( String( timezone ) ); | ||
// The ! isUTCOffset() check guarantees that timezone is a string. | ||
return dateMoment.tz( /** @type {string} */ ( timezone ) ); | ||
} | ||
@@ -586,0 +587,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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
190905
2370
1