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

math-intrinsics

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

math-intrinsics - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

round.d.ts

8

CHANGELOG.md

@@ -8,2 +8,10 @@ # Changelog

## [v1.1.0](https://github.com/es-shims/math-intrinsics/compare/v1.0.0...v1.1.0) - 2024-12-18
### Commits
- [New] add `round` [`7cfb044`](https://github.com/es-shims/math-intrinsics/commit/7cfb04460c0fbdf1ca101eecbac3f59d11994130)
- [Tests] add attw [`e96be8f`](https://github.com/es-shims/math-intrinsics/commit/e96be8fbf58449eafe976446a0470e6ea561ad8d)
- [Dev Deps] update `@types/tape` [`30d0023`](https://github.com/es-shims/math-intrinsics/commit/30d00234ce8a3fa0094a61cd55d6686eb91e36ec)
## v1.0.0 - 2024-12-11

@@ -10,0 +18,0 @@

2

floor.js
'use strict';
/** @type {import('./abs')} */
/** @type {import('./floor')} */
module.exports = Math.floor;
{
"name": "math-intrinsics",
"version": "1.0.0",
"version": "1.1.0",
"description": "ES Math-related intrinsics and helpers, robustly cached.",

@@ -18,2 +18,3 @@ "main": false,

"./sign": "./sign.js",
"./round": "./round.js",
"./constants/maxArrayLength": "./constants/maxArrayLength.js",

@@ -33,5 +34,5 @@ "./constants/maxSafeInteger": "./constants/maxSafeInteger.js",

"posttest": "npx npm@'>= 10.2' audit --production",
"prelint": "evalmd README.md",
"prelint": "evalmd README.md && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)",
"lint": "eslint --ext=js,mjs .",
"postlint": "tsc -p . && eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' | grep -v dist/)",
"postlint": "tsc && attw -P",
"version": "auto-changelog && git add CHANGELOG.md",

@@ -56,3 +57,3 @@ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""

"@types/object-inspect": "^1.13.0",
"@types/tape": "^5.6.5",
"@types/tape": "^5.8.0",
"auto-changelog": "^2.5.0",

@@ -59,0 +60,0 @@ "eclint": "^2.8.1",

@@ -22,2 +22,3 @@ # math-intrinsics <sup>[![Version Badge][npm-version-svg]][package-url]</sup>

- `pow`
- `round`
- `sign`

@@ -24,0 +25,0 @@ - `constants/maxArrayLength`

@@ -18,2 +18,3 @@ 'use strict';

var pow = require('../pow');
var round = require('../round');
var sign = require('../sign');

@@ -164,2 +165,10 @@

test('round', function (t) {
t.equal(round(1.1), 1, 'round(1.1) === 1');
t.equal(round(1.5), 2, 'round(1.5) === 2');
t.equal(round(1.9), 2, 'round(1.9) === 2');
t.end();
});
test('sign', function (t) {

@@ -166,0 +175,0 @@ t.equal(sign(-1), -1, 'sign(-1) === -1');

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