New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

troi-library

Package Overview
Dependencies
Maintainers
5
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

troi-library - npm Package Compare versions

Comparing version

to
1.1.1

23

index.js

@@ -228,2 +228,25 @@ import debugModule from "debug";

}
async getCalendarEvents(type, startDate, endDate) {
const calendarEvents = await this.makeRequest({
url: "/calendarEvents",
params: {
start: startDate,
end: endDate,
type: type,
},
}) || [];
return calendarEvents
.map((obj) => {
return {
id: obj.id,
startDate: obj.Start,
endDate: obj.End,
subject: obj.Subject,
type: obj.Type,
};
})
.sort((a, b) => (a.startDate > b.startDate ? 1 : -1));
}
}

2

package.json
{
"name": "troi-library",
"version": "1.0.1",
"version": "1.1.1",
"description": "API library wrapper to interact with troi",

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