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

dateonly

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dateonly - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

dateonly.js

@@ -19,2 +19,6 @@ (function(name, definition) {

DateOnly.toDate = function(dateOnlyStamp) {
return new DateOnly(dateOnlyStamp).toDate();
};
DateOnly.prototype.saveDateOnly = function(date) {

@@ -21,0 +25,0 @@ this.date = date.getDate();

2

package.json
{
"name": "dateonly",
"version": "1.0.1",
"version": "1.0.2",
"description": "A JavaScript class that stores a date without a time.",

@@ -5,0 +5,0 @@ "dependencies": {},

@@ -69,2 +69,7 @@ var assert = require('assert')

});
it('should implement a static toDate method', function() {
var date = 20120215;
assert.equal(DateOnly.toDate(date).valueOf(), new Date('03/15/2012').valueOf());
});
});
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