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

@formatjs/intl-durationformat

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formatjs/intl-durationformat - npm Package Compare versions

Comparing version 0.6.5 to 0.7.0

8

lib/src/abstract/ToIntegerIfIntegral.js

@@ -1,8 +0,6 @@

import { ToNumber } from '@formatjs/ecma402-abstract';
import { invariant, ToNumber } from '@formatjs/ecma402-abstract';
export function ToIntegerIfIntegral(arg) {
var number = ToNumber(arg);
if (!Number.isInteger(number)) {
throw new RangeError("".concat(arg, " is not an integer"));
}
return number;
invariant(number.isInteger(), "".concat(arg, " is not an integer"));
return number.toNumber();
}
{
"name": "@formatjs/intl-durationformat",
"version": "0.6.5",
"version": "0.7.0",
"description": "Intl.DurationFormat polyfill",

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

"tslib": "2",
"@formatjs/ecma402-abstract": "2.2.5",
"@formatjs/intl-localematcher": "0.5.8"
"@formatjs/ecma402-abstract": "2.3.0",
"@formatjs/intl-localematcher": "0.5.9"
}
}

@@ -7,6 +7,4 @@ "use strict";

var number = (0, ecma402_abstract_1.ToNumber)(arg);
if (!Number.isInteger(number)) {
throw new RangeError("".concat(arg, " is not an integer"));
}
return number;
(0, ecma402_abstract_1.invariant)(number.isInteger(), "".concat(arg, " is not an integer"));
return number.toNumber();
}
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