Socket
Socket
Sign inDemoInstall

is-date-object

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

8

CHANGELOG.md

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

## [v1.0.4](https://github.com/inspect-js/is-date-object/compare/v1.0.3...v1.0.4) - 2021-05-07
### Commits
- [Fix] do not use `Object.prototype.toString` when `Symbol.toStringTag` is shammed [`8943a4a`](https://github.com/inspect-js/is-date-object/commit/8943a4a5035b3f2c8cee9a5edabb55579c16983d)
- [readme] make all URLs https [`1d4d6cd`](https://github.com/inspect-js/is-date-object/commit/1d4d6cd37365c3a36f98e3f82cfe6262227437db)
- [Dev Deps] update `eslint` [`a7abeaa`](https://github.com/inspect-js/is-date-object/commit/a7abeaa2409d3a34fccebcb5b362e0b90d0a8883)
## [v1.0.3](https://github.com/inspect-js/is-date-object/compare/v1.0.2...v1.0.3) - 2021-05-05

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

2

index.js

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

var dateClass = '[object Date]';
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
var hasToStringTag = typeof Symbol === 'function' && !!Symbol.toStringTag;

@@ -18,0 +18,0 @@ module.exports = function isDateObject(value) {

{
"name": "is-date-object",
"version": "1.0.3",
"version": "1.0.4",
"author": "Jordan Harband",

@@ -15,4 +15,5 @@ "funding": {

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

@@ -38,3 +39,4 @@ "lint": "eslint .",

"auto-changelog": "^2.2.1",
"eslint": "^7.25.0",
"core-js": "^3.12.0",
"eslint": "^7.26.0",
"foreach": "^2.0.5",

@@ -41,0 +43,0 @@ "indexof": "^0.0.1",

@@ -39,3 +39,3 @@ # is-date-object <sup>[![Version Badge][2]][1]</sup>

[1]: https://npmjs.org/package/is-date-object
[2]: http://versionbadg.es/inspect-js/is-date-object.svg
[2]: https://versionbadg.es/inspect-js/is-date-object.svg
[5]: https://david-dm.org/inspect-js/is-date-object.svg

@@ -46,6 +46,6 @@ [6]: https://david-dm.org/inspect-js/is-date-object

[11]: https://nodei.co/npm/is-date-object.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/is-date-object.svg
[license-image]: https://img.shields.io/npm/l/is-date-object.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/is-date-object.svg
[downloads-url]: http://npm-stat.com/charts.html?package=is-date-object
[downloads-image]: https://img.shields.io/npm/dm/is-date-object.svg
[downloads-url]: https://npm-stat.com/charts.html?package=is-date-object
[codecov-image]: https://codecov.io/gh/inspect-js/is-date-object/branch/main/graphs/badge.svg

@@ -52,0 +52,0 @@ [codecov-url]: https://app.codecov.io/gh/inspect-js/is-date-object/

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

var isDate = require('../');
var hasSymbols = typeof Symbol === 'function' && typeof Symbol('') === 'symbol';
var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator !== 'undefined';

@@ -8,0 +8,0 @@ test('not Dates', function (t) {

Sorry, the diff of this file is not supported yet

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