🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

is-number-object

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-number-object - npm Package Compare versions

Comparing version

to
1.0.6

8

CHANGELOG.md

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

## [v1.0.6](https://github.com/inspect-js/is-number-object/compare/v1.0.5...v1.0.6) - 2021-08-05
### Commits
- [Tests] run tests with core-js as well [`5177312`](https://github.com/inspect-js/is-number-object/commit/51773120b18e27bfe8a3bd228ef2e21f5802f338)
- [Refactor] use `has-tostringtag` to behave correctly in the presence of symbol shams [`ca2b31d`](https://github.com/inspect-js/is-number-object/commit/ca2b31d81c5d7d9b11e812dee58cd627a6d634e2)
- [Dev Deps] update `auto-changelog`, `core-js`, `eslint`, `tape` [`50950f9`](https://github.com/inspect-js/is-number-object/commit/50950f962a4b1188c478f6034194d7eb4314c884)
## [v1.0.5](https://github.com/inspect-js/is-number-object/compare/v1.0.4...v1.0.5) - 2021-05-07

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

2

index.js

@@ -14,3 +14,3 @@ 'use strict';

var numClass = '[object Number]';
var hasToStringTag = typeof Symbol === 'function' && !!Symbol.toStringTag;
var hasToStringTag = require('has-tostringtag/shams')();

@@ -17,0 +17,0 @@ module.exports = function isNumberObject(value) {

{
"name": "is-number-object",
"version": "1.0.5",
"version": "1.0.6",
"author": "Jordan Harband <ljharb@gmail.com>",

@@ -16,3 +16,4 @@ "funding": {

"tests-only": "nyc tape 'test/**/*.js'",
"test": "npm run tests-only",
"test:corejs": "nyc tape test-corejs.js",
"test": "npm run tests-only && npm run test:corejs",
"posttest": "npx aud --production",

@@ -38,8 +39,7 @@ "lint": "eslint .",

"aud": "^1.1.5",
"auto-changelog": "^2.2.1",
"core-js": "^3.12.0",
"auto-changelog": "^2.3.0",
"core-js": "^3.16.0",
"eclint": "^2.8.1",
"eslint": "^7.25.0",
"eslint": "^7.32.0",
"foreach": "^2.0.5",
"has-symbols": "^1.0.2",
"indexof": "^0.0.1",

@@ -49,3 +49,3 @@ "is": "^3.3.0",

"safe-publish-latest": "^1.1.4",
"tape": "^5.2.2"
"tape": "^5.3.0"
},

@@ -80,3 +80,6 @@ "testling": {

"hideCredit": true
},
"dependencies": {
"has-tostringtag": "^1.0.0"
}
}

@@ -5,3 +5,3 @@ 'use strict';

var isNumber = require('../');
var hasSymbols = require('has-symbols/shams')();
var hasToStringTag = require('has-tostringtag/shams')();

@@ -23,3 +23,3 @@ test('not Numbers', function (t) {

test('@@toStringTag', { skip: !hasSymbols || !Symbol.toStringTag }, function (t) {
test('@@toStringTag', { skip: !hasToStringTag }, function (t) {
var fakeNumber = {

@@ -26,0 +26,0 @@ toString: function () { return '7'; },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet