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

timeeditapi

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timeeditapi - npm Package Compare versions

Comparing version 1.0.0 to 1.0.5

README.mb

4

lib/timeEditApi.js

@@ -20,3 +20,3 @@ 'use strict';

const parsedJson = JSON.parse(jsonString);
resolve(dataParser.buildTodaysSchedule(parsedJson));
resolve(dataParser.buildTodaysSchedule(parsedJson, roomId));
}).catch((er) => {

@@ -38,3 +38,3 @@ reject(er);

const parsedJson = JSON.parse(jsonString);
resolve(dataParser.buildRoomSchedule(parsedJson));
resolve(dataParser.buildRoomSchedule(parsedJson, roomId));
}).catch((er) => {

@@ -41,0 +41,0 @@ reject(er);

@@ -19,4 +19,4 @@ 'use strict';

*/
buildTodaysSchedule(object){
return this.buildRoomSchedule(object)
buildTodaysSchedule(object, roomId){
return this.buildRoomSchedule(object, roomId)
.filter((reservation) => {

@@ -36,3 +36,3 @@ let reservationDate = this.parseDate(reservation.booking.time.startDate);

*/
buildRoomSchedule(object){
buildRoomSchedule(object, roomId){
if(!object.hasOwnProperty('reservations')){ throw 'invalid search result'; }

@@ -49,2 +49,3 @@ return object.reservations

},
roomId,
id: reservation.id,

@@ -51,0 +52,0 @@ other: reservation.columns[8],

{
"name": "timeeditapi",
"version": "1.0.0",
"version": "1.0.5",
"description": "api to easy get schedule information from timeedit",

@@ -9,4 +9,12 @@ "main": "index.js",

},
"repository": {
"type": "git",
"url": "git+https://github.com/TimeWarriors/TimeEdit.git"
},
"author": "richard soderman",
"license": "ISC",
"license": "ISC","bugs": {
"url": "https://github.com/TimeWarriors/TimeEdit/issues"
},
"homepage": "https://github.com/TimeWarriors/TimeEdit.git#readme",
"dependencies": {

@@ -13,0 +21,0 @@ "cheerio": "^0.19.0",

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