Socket
Socket
Sign inDemoInstall

aio-date

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc