@formatjs/intl-relativetimeformat
Advanced tools
Comparing version 8.1.4 to 8.1.5
MIT License | ||
Copyright (c) 2019 FormatJS | ||
Copyright (c) 2021 FormatJS | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
{ | ||
"name": "@formatjs/intl-relativetimeformat", | ||
"version": "8.1.4", | ||
"version": "8.1.5", | ||
"description": "Formats JavaScript dates to relative time strings.", | ||
@@ -23,3 +23,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@formatjs/ecma402-abstract": "1.6.4", | ||
"@formatjs/ecma402-abstract": "1.6.5", | ||
"tslib": "^2.1.0" | ||
@@ -26,0 +26,0 @@ }, |
@@ -37,3 +37,3 @@ (function() { | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/utils.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/utils.js | ||
var UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi; | ||
@@ -49,3 +49,3 @@ function invariant(condition, message, Err) { | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/types/date-time.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/types/date-time.js | ||
var RangePatternType; | ||
@@ -58,3 +58,3 @@ (function(RangePatternType2) { | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/CanonicalizeLocaleList.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/CanonicalizeLocaleList.js | ||
function CanonicalizeLocaleList(locales) { | ||
@@ -64,3 +64,3 @@ return Intl.getCanonicalLocales(locales); | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/262.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/262.js | ||
function ToString(o) { | ||
@@ -119,3 +119,3 @@ if (typeof o === "symbol") { | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/CoerceOptionsToObject.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/CoerceOptionsToObject.js | ||
function CoerceOptionsToObject(options) { | ||
@@ -128,3 +128,3 @@ if (typeof options === "undefined") { | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/PartitionPattern.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/PartitionPattern.js | ||
function PartitionPattern(pattern) { | ||
@@ -161,3 +161,3 @@ var result = []; | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/GetOption.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/GetOption.js | ||
function GetOption(opts, prop, type, values, fallback) { | ||
@@ -188,3 +188,3 @@ if (typeof opts !== "object") { | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/BestAvailableLocale.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/BestAvailableLocale.js | ||
function BestAvailableLocale(availableLocales, locale) { | ||
@@ -207,3 +207,3 @@ var candidate = locale; | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/LookupMatcher.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/LookupMatcher.js | ||
function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) { | ||
@@ -227,3 +227,3 @@ var result = {locale: ""}; | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/BestFitMatcher.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/BestFitMatcher.js | ||
function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) { | ||
@@ -266,3 +266,3 @@ var minimizedAvailableLocaleMap = {}; | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/UnicodeExtensionValue.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/UnicodeExtensionValue.js | ||
function UnicodeExtensionValue(extension, key) { | ||
@@ -306,3 +306,3 @@ invariant(key.length === 2, "key must have 2 elements"); | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/ResolveLocale.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/ResolveLocale.js | ||
function ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) { | ||
@@ -371,3 +371,3 @@ var matcher = options.localeMatcher; | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js | ||
var SANCTIONED_UNITS = [ | ||
@@ -423,3 +423,3 @@ "angle-degree", | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/format_to_parts.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/format_to_parts.js | ||
var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B98-\u2BFF\u2CE5-\u2CEA\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9B\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD10-\uDD6C\uDD70-\uDDAC\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED5\uDEE0-\uDEEC\uDEF0-\uDEFA\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDD00-\uDD0B\uDD0D-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95]/; | ||
@@ -429,3 +429,3 @@ var CARET_S_UNICODE_REGEX = new RegExp("^" + S_UNICODE_REGEX.source); | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/RelativeTimeFormat/SingularRelativeTimeUnit.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/RelativeTimeFormat/SingularRelativeTimeUnit.js | ||
function SingularRelativeTimeUnit(unit) { | ||
@@ -455,3 +455,3 @@ invariant(Type(unit) === "String", "unit must be a string"); | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/RelativeTimeFormat/MakePartsList.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/RelativeTimeFormat/MakePartsList.js | ||
function MakePartsList(pattern, unit, parts) { | ||
@@ -482,3 +482,3 @@ var patternParts = PartitionPattern(pattern); | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/RelativeTimeFormat/PartitionRelativeTimePattern.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/RelativeTimeFormat/PartitionRelativeTimePattern.js | ||
function PartitionRelativeTimePattern(rtf, value, unit, _a) { | ||
@@ -530,3 +530,3 @@ var getInternalSlots2 = _a.getInternalSlots; | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/RelativeTimeFormat/InitializeRelativeTimeFormat.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/RelativeTimeFormat/InitializeRelativeTimeFormat.js | ||
var NUMBERING_SYSTEM_REGEX = /^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i; | ||
@@ -563,3 +563,3 @@ function InitializeRelativeTimeFormat(rtf, locales, options, _a) { | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/LookupSupportedLocales.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/LookupSupportedLocales.js | ||
function LookupSupportedLocales(availableLocales, requestedLocales) { | ||
@@ -578,3 +578,3 @@ var subset = []; | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/SupportedLocales.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/SupportedLocales.js | ||
function SupportedLocales(availableLocales, requestedLocales, options) { | ||
@@ -592,3 +592,3 @@ var matcher = "best fit"; | ||
// bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/data.js | ||
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/data.js | ||
var MissingLocaleDataError = function(_super) { | ||
@@ -604,3 +604,3 @@ __extends(MissingLocaleDataError2, _super); | ||
// bazel-out/darwin-fastbuild/bin/packages/intl-relativetimeformat/lib/get_internal_slots.js | ||
// bazel-out/k8-fastbuild/bin/packages/intl-relativetimeformat/lib/get_internal_slots.js | ||
var internalSlotMap = new WeakMap(); | ||
@@ -616,3 +616,3 @@ function getInternalSlots(x) { | ||
// bazel-out/darwin-fastbuild/bin/packages/intl-relativetimeformat/lib/index.js | ||
// bazel-out/k8-fastbuild/bin/packages/intl-relativetimeformat/lib/index.js | ||
var RelativeTimeFormat = function() { | ||
@@ -725,3 +725,3 @@ function RelativeTimeFormat2(locales, options) { | ||
// bazel-out/darwin-fastbuild/bin/packages/intl-relativetimeformat/lib/should-polyfill.js | ||
// bazel-out/k8-fastbuild/bin/packages/intl-relativetimeformat/lib/should-polyfill.js | ||
function shouldPolyfill() { | ||
@@ -731,3 +731,3 @@ return typeof Intl === "undefined" || !("RelativeTimeFormat" in Intl); | ||
// bazel-out/darwin-fastbuild/bin/packages/intl-relativetimeformat/lib/polyfill.js | ||
// bazel-out/k8-fastbuild/bin/packages/intl-relativetimeformat/lib/polyfill.js | ||
if (shouldPolyfill()) { | ||
@@ -734,0 +734,0 @@ Object.defineProperty(Intl, "RelativeTimeFormat", { |
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
2695257
+ Added@formatjs/ecma402-abstract@1.6.5(transitive)
- Removed@formatjs/ecma402-abstract@1.6.4(transitive)