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

@formatjs/intl-relativetimeformat

Package Overview
Dependencies
Maintainers
3
Versions
189
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formatjs/intl-relativetimeformat - npm Package Compare versions

Comparing version 8.1.2 to 8.1.3

4

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

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