@formatjs/intl-relativetimeformat
Advanced tools
Comparing version 8.1.2 to 8.1.3
{ | ||
"name": "@formatjs/intl-relativetimeformat", | ||
"version": "8.1.2", | ||
"version": "8.1.3", | ||
"description": "Formats JavaScript dates to relative time strings.", | ||
@@ -23,3 +23,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@formatjs/ecma402-abstract": "1.6.2", | ||
"@formatjs/ecma402-abstract": "1.6.3", | ||
"tslib": "^2.1.0" | ||
@@ -26,0 +26,0 @@ }, |
@@ -115,2 +115,10 @@ (function() { | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/CoerceOptionsToObject.js | ||
function CoerceOptionsToObject(options) { | ||
if (typeof options === "undefined") { | ||
return Object.create(null); | ||
} | ||
return ToObject(options); | ||
} | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/PartitionPattern.js | ||
@@ -150,2 +158,5 @@ function PartitionPattern(pattern) { | ||
function GetOption(opts, prop, type, values, fallback) { | ||
if (typeof opts !== "object") { | ||
throw new TypeError("Options must be an object"); | ||
} | ||
var value = opts[prop]; | ||
@@ -512,3 +523,3 @@ if (value !== void 0) { | ||
var opt = Object.create(null); | ||
var opts = options === void 0 ? Object.create(null) : ToObject(options); | ||
var opts = CoerceOptionsToObject(options); | ||
var matcher = GetOption(opts, "localeMatcher", "string", ["best fit", "lookup"], "best fit"); | ||
@@ -515,0 +526,0 @@ opt.localeMatcher = matcher; |
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
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
5241178
23343
+ Added@formatjs/ecma402-abstract@1.6.3(transitive)
- Removed@formatjs/ecma402-abstract@1.6.2(transitive)