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

@formatjs/intl-utils

Package Overview
Dependencies
Maintainers
3
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formatjs/intl-utils - npm Package Compare versions

Comparing version 3.8.3 to 3.8.4

2

_validate_dist_options.optionsvalid.d.ts
// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/893/execroot/formatjs/node_modules/@bazel/typescript/internal/ts_project_options_validator.js checked attributes for //packages/intl-utils:dist
// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/4/execroot/formatjs/node_modules/@bazel/typescript/internal/ts_project_options_validator.js checked attributes for //packages/intl-utils:dist
// composite: false

@@ -4,0 +4,0 @@ // declaration: true

// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/894/execroot/formatjs/node_modules/@bazel/typescript/internal/ts_project_options_validator.js checked attributes for //packages/intl-utils:dist-esm
// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/2/execroot/formatjs/node_modules/@bazel/typescript/internal/ts_project_options_validator.js checked attributes for //packages/intl-utils:dist-esm
// composite: false

@@ -4,0 +4,0 @@ // declaration: true

"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
var diff_1 = require("./src/diff");
exports.selectUnit = diff_1.selectUnit;
Object.defineProperty(exports, "selectUnit", { enumerable: true, get: function () { return diff_1.selectUnit; } });
var polyfill_utils_1 = require("./src/polyfill-utils");
exports.defaultNumberOption = polyfill_utils_1.defaultNumberOption;
exports.getInternalSlot = polyfill_utils_1.getInternalSlot;
exports.getMultiInternalSlots = polyfill_utils_1.getMultiInternalSlots;
exports.getNumberOption = polyfill_utils_1.getNumberOption;
exports.getOption = polyfill_utils_1.getOption;
exports.isLiteralPart = polyfill_utils_1.isLiteralPart;
exports.partitionPattern = polyfill_utils_1.partitionPattern;
exports.setInternalSlot = polyfill_utils_1.setInternalSlot;
exports.setMultiInternalSlots = polyfill_utils_1.setMultiInternalSlots;
exports.setNumberFormatDigitOptions = polyfill_utils_1.setNumberFormatDigitOptions;
exports.toObject = polyfill_utils_1.toObject;
exports.objectIs = polyfill_utils_1.objectIs;
exports.isWellFormedCurrencyCode = polyfill_utils_1.isWellFormedCurrencyCode;
exports.toString = polyfill_utils_1.toString;
exports.formatNumericToString = polyfill_utils_1.formatNumericToString;
exports.toRawFixed = polyfill_utils_1.toRawFixed;
exports.toRawPrecision = polyfill_utils_1.toRawPrecision;
exports.getMagnitude = polyfill_utils_1.getMagnitude;
exports.repeat = polyfill_utils_1.repeat;
exports.hasOwnProperty = polyfill_utils_1.hasOwnProperty;
exports.isWellFormedUnitIdentifier = polyfill_utils_1.isWellFormedUnitIdentifier;
exports.defineProperty = polyfill_utils_1.defineProperty;
Object.defineProperty(exports, "defaultNumberOption", { enumerable: true, get: function () { return polyfill_utils_1.defaultNumberOption; } });
Object.defineProperty(exports, "getInternalSlot", { enumerable: true, get: function () { return polyfill_utils_1.getInternalSlot; } });
Object.defineProperty(exports, "getMultiInternalSlots", { enumerable: true, get: function () { return polyfill_utils_1.getMultiInternalSlots; } });
Object.defineProperty(exports, "getNumberOption", { enumerable: true, get: function () { return polyfill_utils_1.getNumberOption; } });
Object.defineProperty(exports, "getOption", { enumerable: true, get: function () { return polyfill_utils_1.getOption; } });
Object.defineProperty(exports, "isLiteralPart", { enumerable: true, get: function () { return polyfill_utils_1.isLiteralPart; } });
Object.defineProperty(exports, "partitionPattern", { enumerable: true, get: function () { return polyfill_utils_1.partitionPattern; } });
Object.defineProperty(exports, "setInternalSlot", { enumerable: true, get: function () { return polyfill_utils_1.setInternalSlot; } });
Object.defineProperty(exports, "setMultiInternalSlots", { enumerable: true, get: function () { return polyfill_utils_1.setMultiInternalSlots; } });
Object.defineProperty(exports, "setNumberFormatDigitOptions", { enumerable: true, get: function () { return polyfill_utils_1.setNumberFormatDigitOptions; } });
Object.defineProperty(exports, "toObject", { enumerable: true, get: function () { return polyfill_utils_1.toObject; } });
Object.defineProperty(exports, "objectIs", { enumerable: true, get: function () { return polyfill_utils_1.objectIs; } });
Object.defineProperty(exports, "isWellFormedCurrencyCode", { enumerable: true, get: function () { return polyfill_utils_1.isWellFormedCurrencyCode; } });
Object.defineProperty(exports, "toString", { enumerable: true, get: function () { return polyfill_utils_1.toString; } });
Object.defineProperty(exports, "formatNumericToString", { enumerable: true, get: function () { return polyfill_utils_1.formatNumericToString; } });
Object.defineProperty(exports, "toRawFixed", { enumerable: true, get: function () { return polyfill_utils_1.toRawFixed; } });
Object.defineProperty(exports, "toRawPrecision", { enumerable: true, get: function () { return polyfill_utils_1.toRawPrecision; } });
Object.defineProperty(exports, "getMagnitude", { enumerable: true, get: function () { return polyfill_utils_1.getMagnitude; } });
Object.defineProperty(exports, "repeat", { enumerable: true, get: function () { return polyfill_utils_1.repeat; } });
Object.defineProperty(exports, "hasOwnProperty", { enumerable: true, get: function () { return polyfill_utils_1.hasOwnProperty; } });
Object.defineProperty(exports, "isWellFormedUnitIdentifier", { enumerable: true, get: function () { return polyfill_utils_1.isWellFormedUnitIdentifier; } });
Object.defineProperty(exports, "defineProperty", { enumerable: true, get: function () { return polyfill_utils_1.defineProperty; } });
var resolve_locale_1 = require("./src/resolve-locale");
exports.createResolveLocale = resolve_locale_1.createResolveLocale;
exports.getLocaleHierarchy = resolve_locale_1.getLocaleHierarchy;
exports.supportedLocales = resolve_locale_1.supportedLocales;
exports.unpackData = resolve_locale_1.unpackData;
exports.isMissingLocaleDataError = resolve_locale_1.isMissingLocaleDataError;
__export(require("./src/units"));
Object.defineProperty(exports, "createResolveLocale", { enumerable: true, get: function () { return resolve_locale_1.createResolveLocale; } });
Object.defineProperty(exports, "getLocaleHierarchy", { enumerable: true, get: function () { return resolve_locale_1.getLocaleHierarchy; } });
Object.defineProperty(exports, "supportedLocales", { enumerable: true, get: function () { return resolve_locale_1.supportedLocales; } });
Object.defineProperty(exports, "unpackData", { enumerable: true, get: function () { return resolve_locale_1.unpackData; } });
Object.defineProperty(exports, "isMissingLocaleDataError", { enumerable: true, get: function () { return resolve_locale_1.isMissingLocaleDataError; } });
__exportStar(require("./src/units"), exports);
__exportStar(require("./src/relative-time-types"), exports);
__exportStar(require("./src/list-types"), exports);
__exportStar(require("./src/plural-rules-types"), exports);
__exportStar(require("./src/number-types"), exports);
__exportStar(require("./src/displaynames-types"), exports);
var invariant_1 = require("./src/invariant");
exports.invariant = invariant_1.invariant;
Object.defineProperty(exports, "invariant", { enumerable: true, get: function () { return invariant_1.invariant; } });

@@ -5,2 +5,7 @@ export { selectUnit } from './src/diff';

export * from './src/units';
export * from './src/relative-time-types';
export * from './src/list-types';
export * from './src/plural-rules-types';
export * from './src/number-types';
export * from './src/displaynames-types';
export { invariant } from './src/invariant';

@@ -86,2 +86,3 @@ import { LDMLPluralRule } from './plural-rules-types';

decimal: Record<NumberingSystem, {
standard: string;
long: Record<DecimalFormatNum, LDMLPluralRuleMap<string>>;

@@ -88,0 +89,0 @@ short: Record<DecimalFormatNum, LDMLPluralRuleMap<string>>;

{
"name": "@formatjs/intl-utils",
"version": "3.8.3",
"version": "3.8.4",
"description": "Smartly determine best unit for relative time format",

@@ -5,0 +5,0 @@ "keywords": [

@@ -14,2 +14,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_THRESHOLDS = exports.selectUnit = void 0;
var MS_PER_SECOND = 1e3;

@@ -16,0 +17,0 @@ var SECS_PER_MIN = 60;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.invariant = void 0;
function invariant(condition, message, Err) {

@@ -4,0 +5,0 @@ if (Err === void 0) { Err = Error; }

@@ -86,2 +86,3 @@ import { LDMLPluralRule } from './plural-rules-types';

decimal: Record<NumberingSystem, {
standard: string;
long: Record<DecimalFormatNum, LDMLPluralRuleMap<string>>;

@@ -88,0 +89,0 @@ short: Record<DecimalFormatNum, LDMLPluralRuleMap<string>>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.defineProperty = exports.isWellFormedUnitIdentifier = exports.getMagnitude = exports.repeat = exports.toRawPrecision = exports.toRawFixed = exports.formatNumericToString = exports.isWellFormedCurrencyCode = exports.objectIs = exports.setNumberFormatDigitOptions = exports.partitionPattern = exports.isLiteralPart = exports.getMultiInternalSlots = exports.getInternalSlot = exports.setMultiInternalSlots = exports.setInternalSlot = exports.getNumberOption = exports.defaultNumberOption = exports.getOption = exports.toString = exports.toObject = exports.hasOwnProperty = void 0;
var invariant_1 = require("./invariant");

@@ -4,0 +5,0 @@ var units_1 = require("./units");

@@ -27,2 +27,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.unpackData = exports.isMissingLocaleDataError = exports.supportedLocales = exports.getLocaleHierarchy = exports.createResolveLocale = void 0;
var invariant_1 = require("./invariant");

@@ -29,0 +30,0 @@ var polyfill_utils_1 = require("./polyfill-utils");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeUnitNamespace = exports.SANCTIONED_UNITS = void 0;
// https://tc39.es/ecma402/#sec-issanctionedsimpleunitidentifier

@@ -4,0 +5,0 @@ exports.SANCTIONED_UNITS = [

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