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

aio-date

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aio-date - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

7

index.js

@@ -254,4 +254,3 @@ function AIODate(){

date.push(dateObject.getHours());
if(unit === 'day'){date[3] = 0;}
if(unit === 'month'){date[2] = 1; date[3] = 0;}
date.push(dateObject.getMinutes());
return date;

@@ -261,5 +260,3 @@ },

var date = new Date();
var result = [date.getFullYear(),date.getMonth() + 1,date.getDate(),date.getHours()]
if(unit === 'day'){date[3] = 0;}
if(unit === 'month'){date[2] = 1; date[3] = 0;}
var result = [date.getFullYear(),date.getMonth() + 1,date.getDate(),date.getHours(),date.getMinutes()]
return result;

@@ -266,0 +263,0 @@ }

{
"name": "aio-date",
"version": "1.0.2",
"version": "1.0.3",
"description": "",

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

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