🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

reactstrap-react-lib

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reactstrap-react-lib - npm Package Compare versions

Comparing version

to
11.0.4

1

lib/lib/TimeZone/index.d.ts

@@ -60,2 +60,3 @@ import { AgeType } from "../Interfaces/types";

getNextDayFromDate(IsoDateString: string): string;
getPreviousDayFromDate(IsoDateString: string): string;
getUTCOffset(timezone: TimeZomes): any;

@@ -62,0 +63,0 @@ /**

@@ -154,2 +154,11 @@ "use strict";

}
getPreviousDayFromDate(IsoDateString) {
// Parse the input date string to a Date object
const date = new Date(IsoDateString);
// Subtract 1 day
date.setDate(date.getDate() - 1);
// Format the previous day in YYYY-MM-DD format
const previousDay = date.toISOString().split('T')[0];
return previousDay;
}
getUTCOffset(timezone) {

@@ -156,0 +165,0 @@ const now = new Date();

2

package.json
{
"name": "reactstrap-react-lib",
"version": "11.0.3",
"version": "11.0.4",
"description": "This is a lib for react and next",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet