Socket
Socket
Sign inDemoInstall

is-negative-zero

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.0.3

index.d.ts

11

CHANGELOG.md

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

## [v2.0.3](https://github.com/inspect-js/is-negative-zero/compare/v2.0.2...v2.0.3) - 2024-02-19
### Commits
- add types [`e28f0d5`](https://github.com/inspect-js/is-negative-zero/commit/e28f0d59cffc61bd3d41c10563105e8adb868e59)
- [meta] use `npmignore` to autogenerate an npmignore file [`f68ec13`](https://github.com/inspect-js/is-negative-zero/commit/f68ec13c1d04a2ef1e1c72506ae9c2ac0567bcdd)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `tape` [`70abff7`](https://github.com/inspect-js/is-negative-zero/commit/70abff788bb0156f300a09c2f5cc7d30d5618184)
- [actions] update rebase action to use reusable workflow [`6e1356e`](https://github.com/inspect-js/is-negative-zero/commit/6e1356e9fc5fee1bcae20b365c7d71b14ecf876d)
- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `npmignore`, `tape` [`c00d4ab`](https://github.com/inspect-js/is-negative-zero/commit/c00d4ab5c381d22ac3e6d89180b3e012c479f13f)
- [meta] add `sideEffects` flag [`9c45539`](https://github.com/inspect-js/is-negative-zero/commit/9c455398988d2db940fe6644541d09d510b6661f)
## [v2.0.2](https://github.com/inspect-js/is-negative-zero/compare/v2.0.1...v2.0.2) - 2021-12-10

@@ -10,0 +21,0 @@

1

index.js
'use strict';
/** @type {import('.')} */
module.exports = function isNegativeZero(number) {

@@ -4,0 +5,0 @@ return number === 0 && (1 / number) === -Infinity;

25

package.json
{
"name": "is-negative-zero",
"version": "2.0.2",
"version": "2.0.3",
"description": "Is this value negative zero? === will lie to you",

@@ -11,3 +11,6 @@ "author": "Jordan Harband <ljharb@gmail.com>",

"main": "index.js",
"types": "./index.d.ts",
"sideEffects": false,
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublishOnly": "safe-publish-latest",

@@ -20,2 +23,3 @@ "prepublish": "not-in-publish || npm run prepublishOnly",

"lint": "eslint --ext=js,mjs .",
"postlint": "tsc -p .",
"version": "auto-changelog && git add CHANGELOG.md",

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

"devDependencies": {
"@ljharb/eslint-config": "^20.0.0",
"aud": "^1.1.5",
"auto-changelog": "^2.3.0",
"eslint": "^8.4.1",
"@ljharb/eslint-config": "^21.1.0",
"@types/tape": "^5.6.4",
"aud": "^2.0.4",
"auto-changelog": "^2.4.0",
"eslint": "=8.8.0",
"in-publish": "^2.0.1",
"npmignore": "^0.3.1",
"nyc": "^10.3.2",
"safe-publish-latest": "^2.0.0",
"tape": "^5.3.2"
"tape": "^5.7.5",
"typescript": "next"
},

@@ -81,3 +89,8 @@ "testling": {

"hideCredit": true
},
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}

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

test('not negative zero', function (t) {
// @ts-expect-error
t.notOk(isNegativeZero(), 'undefined is not negative zero');

@@ -9,0 +10,0 @@ t.notOk(isNegativeZero(null), 'null is not negative zero');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc