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

instadate

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

instadate - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

instadate.js

@@ -240,2 +240,6 @@ var difference = require('lodash.difference');

isoWeekDay: function (d) {
return d.getDay() || 7;
},
};

@@ -242,0 +246,0 @@

2

package.json
{
"name": "instadate",
"version": "0.1.1",
"version": "0.1.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "instadate.js",

@@ -427,1 +427,13 @@ var test = require('tape');

});
test('isoWeekDay', function (t) {
var d = new Date('Mon Jan 18 2016 13:07:17 GMT+0200 (EET)');
t.equal(instadate.isoWeekDay(d), 1);
t.equal(instadate.isoWeekDay(instadate.addDays(d, 1)), 2);
t.equal(instadate.isoWeekDay(instadate.addDays(d, 2)), 3);
t.equal(instadate.isoWeekDay(instadate.addDays(d, 3)), 4);
t.equal(instadate.isoWeekDay(instadate.addDays(d, 5)), 6);
t.equal(instadate.isoWeekDay(instadate.addDays(d, 6)), 7);
t.equal(instadate.isoWeekDay(instadate.addDays(d, 7)), 1);
t.end();
})
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